projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
2207cb2
)
Clean up the compiler flag section
author
Trond Norbye
<trond.norbye@sun.com>
Tue, 19 Aug 2008 21:17:11 +0000
(23:17 +0200)
committer
Trond Norbye
<trond.norbye@sun.com>
Tue, 19 Aug 2008 21:17:11 +0000
(23:17 +0200)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 43e642570d8895be8729f24cce3379a504b41ff2..410a2af887e5bb6317ce77f2a1afd4c8f4f74079 100644
(file)
--- 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
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
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
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"
fi
else
CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ $CFLAGS"
+ if test "$ENABLE_DEBUG" = "yes"
+ then
+ CFLAGS="$CFLAGS -DHAVE_DEBUG"
+ fi
DTRACEFLAGS="$DTRACEFLAGS"
fi
DTRACEFLAGS="$DTRACEFLAGS"
fi