summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2009-07-09 10:44:56 -0700
committerdormando <dormando@rydia.net>2009-07-09 10:47:42 -0700
commit12ae767849673b7f457516f4f578b256df97fe74 (patch)
tree631d45fad25204376d13c4da288c3e77a2e12c22
parent5419eb03a3c3840f71c2f46bb66156a99ab29b74 (diff)
downloadmemcached-1.4-rc1.tar.gz
Only turn off strict aliasing for gcc 4.4.*1.4.01.4-rc1
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2ef2073..b93254c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -364,7 +364,13 @@ then
AC_DEFINE([_GNU_SOURCE],[1],[find sigignore on Linux])
elif test "$GCC" = "yes"
then
- CFLAGS="$CFLAGS -Wall -Werror -pedantic -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
+ GCC_VERSION=`gcc -dumpversion`
+ CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
+ case $GCC_VERSION in
+ 4.4.*)
+ CFLAGS="$CFLAGS -fno-strict-aliasing"
+ ;;
+ esac
AC_DEFINE([_GNU_SOURCE],[1],[find sigignore on Linux])
elif test "$SUNCC" = "yes"
then