aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 8e383ba5..19979626 100644
--- a/configure.in
+++ b/configure.in
@@ -455,6 +455,9 @@ if eval "test x$GCC = xyes"; then
if test "`echo $CFLAGS | grep '\-Wall' 2> /dev/null`" = ""; then
CFLAGS="$CFLAGS -Wall"
fi
+ if test "`echo $CFLAGS | grep -e '-W ' -e '-W$' ' 2> /dev/null`" = ""; then
+ CFLAGS="$CFLAGS -W"
+ fi
if test "`echo $CFLAGS | grep '\-W[^a]' 2> /dev/null`" = ""; then
if test "`$CC -v 2>&1 | grep 'version 3'`" != ""; then
CFLAGS="$CFLAGS -W -Wno-unused-parameter"