use "-Werror" only with GCC. Thanks to Matthias Koeppe!
authorMarius Vollmer <mvo@zagadka.de>
Thu, 19 Jun 2003 20:09:05 +0000 (20:09 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Thu, 19 Jun 2003 20:09:05 +0000 (20:09 +0000)
configure.in

index 717611a..674e8f2 100644 (file)
@@ -969,15 +969,6 @@ if test "$cross_compiling" = "yes"; then
 fi
 AC_SUBST(GUILE_FOR_BUILD)
                        
-# Do this here so we don't screw up any of the tests above that might
-# not be "warning free"
-
-if test "${GUILE_ERROR_ON_WARNING}" = yes
-then
-  CFLAGS="${CFLAGS} -Werror"
-  enable_compile_warnings=no
-fi
-
 ## If we're using GCC, ask for aggressive warnings.
 case "$GCC" in
   yes )
@@ -986,7 +977,15 @@ case "$GCC" in
     ## less than exasperating.
     ## -Wpointer-arith was here too, but something changed in gcc/glibc
     ## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2).
-    CFLAGS="$CFLAGS -Wall -Wmissing-prototypes" ;;
+    CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
+    # Do this here so we don't screw up any of the tests above that might
+    # not be "warning free"
+    if test "${GUILE_ERROR_ON_WARNING}" = yes
+    then
+       CFLAGS="${CFLAGS} -Werror"
+       enable_compile_warnings=no
+    fi
+    ;;
 esac
 
 ## NOTE the code below sets LIBOBJS directly and so is now forbidden