aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorSebastien Tandel <sebastien@tandel.be>2007-04-13 23:10:13 +0000
committerSebastien Tandel <sebastien@tandel.be>2007-04-13 23:10:13 +0000
commitd9e06450f401f55f27423146a2a0868719139128 (patch)
treeec496476fcee809894c7f8a1e10f30ccef6b30f3 /wiretap
parent7098b76ee012a7365dca35eb85ea57f8e5c7a310 (diff)
change the script to automatically stop on warning if compiling with gcc.
svn path=/trunk/; revision=21422
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/configure.in20
1 files changed, 11 insertions, 9 deletions
diff --git a/wiretap/configure.in b/wiretap/configure.in
index 0f978d8fbd..8c47fdbaf5 100644
--- a/wiretap/configure.in
+++ b/wiretap/configure.in
@@ -84,17 +84,19 @@ fi
rm -rf conftest*
AC_ARG_WITH(warnings-as-errors,
-[ --with-warnings-as-errors Treat warnings as errors (if using gcc). [default=no]],
-[
+ AC_HELP_STRING( [--without-warnings-as-errors],
+ [Don't treat warnings as errors (only for gcc). [default=yes]]),
+[
+ without_warnings_as_errors="no"
+ if test "x$GCC" != "x" && test "x$withval" = "xno"; then
+ without_warnings_as_errors="yes"
+ fi
+],
if test "x$GCC" != "x"; then
- if test "x$withval" != "xno"; then
- with_warnings_as_errors="yes"
- fi
- else
- with_warnings_as_errors="no"
+ without_warnings_as_errors="no"
fi
-],)
-AM_CONDITIONAL(HAVE_WARNINGS_AS_ERRORS, test "x$with_warnings_as_errors" = "xyes")
+)
+AM_CONDITIONAL(HAVE_WARNINGS_AS_ERRORS, test "x$without_warnings_as_errors" = "xno")
#
# Add any platform-specific compiler flags needed.