don't assume we can use gcc 2.96+ options
authorDaniel Stenberg <daniel@haxx.se>
Sun, 15 Feb 2004 12:30:40 +0000 (12:30 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 15 Feb 2004 12:30:40 +0000 (12:30 +0000)
configure.ac

index 448faec..362370d 100644 (file)
@@ -31,7 +31,9 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
     CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
     CFLAGS="$CFLAGS -g" 
     if test "$GCC" = "yes"; then
-       CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wfloat-equal -Wsign-compare -Wunreachable-code"
+       dnl these work for gcc 2.95
+       CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wsign-compare"
+       dnl 2.96 or higher: -Wfloat-equal -Wunreachable-code
     fi
     dnl strip off optimizer flags
     NEWFLAGS=""