Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
25f2cb3
)
If using GCC, try to turn on -Wall. I want to be clean with respect
author
Martin Pool
<mbp@samba.org>
Tue, 15 Jan 2002 09:43:21 +0000
(09:43 +0000)
committer
Martin Pool
<mbp@samba.org>
Tue, 15 Jan 2002 09:43:21 +0000
(09:43 +0000)
to -Wall.
configure.in
patch
|
blob
|
blame
|
history
diff --git
a/configure.in
b/configure.in
index
f7704cb
..
2931927
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-30,6
+30,9
@@
fi
# compile with optimisation and without debugging by default, unless
# --debug is given. We must decide this before testing the compiler.
# compile with optimisation and without debugging by default, unless
# --debug is given. We must decide this before testing the compiler.
+# Please allow this to default to yes, so that your users have more
+# chance of getting a useful stack trace if problems occur.
+
AC_MSG_CHECKING([whether to include debugging symbols])
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
AC_MSG_CHECKING([whether to include debugging symbols])
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
@@
-49,6
+52,12
@@
fi
CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
+# If GCC, turn on warnings.
+if test "x$GCC" = "xyes"
+then
+ CFLAGS="$CFLAGS -Wall"
+fi
+
AC_ARG_WITH(included-popt,
[ --with-included-popt use bundled popt library, not from system])
AC_ARG_WITH(included-popt,
[ --with-included-popt use bundled popt library, not from system])