X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=configure.in;fp=configure.in;h=7a95f8cb5f7238c66ec136da072bd377847f2bcb;hb=375ad7d822a4bbc121a79ce7e927385d6be7f754;hp=b6b849d4d3c29ebf7dd0de483970200f3e7a373f;hpb=58c2d4be4aad0966e52336a1d071aa4e182c9301;p=awesomized%2Flibmemcached diff --git a/configure.in b/configure.in index b6b849d4..7a95f8cb 100644 --- a/configure.in +++ b/configure.in @@ -8,12 +8,18 @@ AC_PROG_LIBTOOL LIBTOOL="$LIBTOOL --preserve-dup-deps" AC_SUBST(LIBTOOL)dnl +sinclude(config/debug.m4) sinclude(config/dtrace.m4) # We only support GCC and Sun's forte at the moment if test "$GCC" = "yes" then - CFLAGS="-Wall -ggdb" + if test "$ENABLE_DEBUG" = "yes" + then + CFLAGS="-Wall -ggdb" + else + CFLAGS="-Wall -O3" + fi else CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -fast -m64" LDFLAGS="-lsocket -lnsl"