From: Trond Norbye Date: Tue, 19 Aug 2008 21:17:11 +0000 (+0200) Subject: Clean up the compiler flag section X-Git-Tag: 0.23~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=0dcffff2ef5818da721934ea2b22bfd2e2d83779;p=awesomized%2Flibmemcached Clean up the compiler flag section --- diff --git a/configure.ac b/configure.ac index 43e64257..410a2af8 100644 --- a/configure.ac +++ b/configure.ac @@ -56,16 +56,21 @@ sinclude(config/64bit.m4) sinclude(config/protocol_binary.m4) # We only support GCC and Sun's forte at the moment +CFLAGS="-DMEMCACHED_INTERNAL $CFLAGS" if test "$GCC" = "yes" then + CFLAGS="-W -Wall -Wextra -Wstrict-aliasing -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -03 $CFLAGS" + if test "$ENABLE_DEBUG" = "yes" then - CFLAGS="-W -Wall -Wextra -Wstrict-aliasing -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -03 -ggdb -DMEMCACHED_INTERNAL -DHAVE_DEBUG $CFLAGS" - else - CFLAGS="-W -Wall -Wextra -Wstrict-aliasing -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -O3 -DMEMCACHED_INTERNAL $CFLAGS" + CFLAGS="$CFLAGS -ggdb -DHAVE_DEBUG" fi else CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ $CFLAGS" + if test "$ENABLE_DEBUG" = "yes" + then + CFLAGS="$CFLAGS -DHAVE_DEBUG" + fi DTRACEFLAGS="$DTRACEFLAGS" fi