]> granicus.if.org Git - curl/commitdiff
check for sys/ioctl.h as well
authorDaniel Stenberg <daniel@haxx.se>
Thu, 29 Jan 2004 15:38:27 +0000 (15:38 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Jan 2004 15:38:27 +0000 (15:38 +0000)
added commented more aggressive compiler options for gcc, subject to be used
instead of the current ones when --enable-debug is used

configure.ac

index d5d63655a4cdd553d4e7811b0353b2aa3f019777..6b4059e02c23c99be28b04ec8caf1d89f6138305 100644 (file)
@@ -849,6 +849,7 @@ AC_CHECK_HEADERS(
         sys/time.h \
         sys/select.h \
         sys/socket.h \
+        sys/ioctl.h \
         assert.h \
         unistd.h \
         malloc.h \
@@ -1013,6 +1014,9 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
     CFLAGS="$CFLAGS -g" 
     if test "$GCC" = "yes"; then
        CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs"
+
+       dnl here's a more aggressive set to use:
+       dnl 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"
     fi
     dnl strip off optimizer flags
     NEWFLAGS=""