diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-15 12:30:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-15 12:30:40 +0000 |
commit | 2d41efb71e2ef083f8e68fb23f763891cd746e0d (patch) | |
tree | 1dc0d716400e5d7ae1deebcb3a799cdf48957f6e /ares | |
parent | 7abf2f44ec58eece7c200c54d7e5c76bf43354e2 (diff) |
don't assume we can use gcc 2.96+ options
Diffstat (limited to 'ares')
-rw-r--r-- | ares/configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ares/configure.ac b/ares/configure.ac index 448faecb8..362370d67 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -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="" |