diff options
author | Dustin Sallings <dustin@spy.net> | 2009-07-09 10:44:56 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2009-07-09 10:47:42 -0700 |
commit | 12ae767849673b7f457516f4f578b256df97fe74 (patch) | |
tree | 631d45fad25204376d13c4da288c3e77a2e12c22 | |
parent | 5419eb03a3c3840f71c2f46bb66156a99ab29b74 (diff) | |
download | memcached-1.4-rc1.tar.gz |
-rw-r--r-- | configure.ac | 8 |
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 |