X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_optimize.m4;h=17b636bfd09a144ba67ed5a5700894031c04e5e1;hb=d9dab0a24eebad142b33d00ccb0f87b083f02195;hp=627bb277c3db8b4697dad0ca1086725b1503794d;hpb=2d9a2c63003b507c96c6fe470a98c3dd41f4f29c;p=m6w6%2Flibmemcached diff --git a/m4/pandora_optimize.m4 b/m4/pandora_optimize.m4 index 627bb277..17b636bf 100644 --- a/m4/pandora_optimize.m4 +++ b/m4/pandora_optimize.m4 @@ -6,9 +6,7 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([PANDORA_OPTIMIZE],[ dnl Build optimized or debug version ? dnl First check for gcc and g++ - AS_IF([test "$GCC" = "yes"],[ - - AC_DEFINE([_GNU_SOURCE],[1],[Fix problem with S_ISLNK() on Linux]) + AS_IF([test "$GCC" = "yes" -a "$INTELCC" = "no"],[ dnl The following is required for portable results of floating point dnl calculations on PowerPC. The same must also be done for IA-64, but @@ -32,6 +30,20 @@ AC_DEFUN([PANDORA_OPTIMIZE],[ OPTIMIZE_CFLAGS="-O3" OPTIMIZE_CXXFLAGS="-O3" ]) + AS_IF([test "$INTELCC" = "yes"],[ + dnl Once we can use a modern autoconf, we can replace the std=gnu99 here + dnl with using AC_CC_STD_C99 above + CC="${CC} -std=c99" + + AM_CPPFLAGS="-g ${AM_CPPFLAGS}" + + DEBUG_CFLAGS="-O0" + DEBUG_CXXFLAGS="-O0" + + OPTIMIZE_CFLAGS="-xHOST -O3 -no-prec-div -static" + OPTIMIZE_CXXFLAGS="${OPTIMIZE_CFLAGS}" + + ]) AS_IF([test "$SUNCC" = "yes"],[ dnl Once we can use a modern autoconf, we can replace the -xc99=all here dnl with using AC_CC_STD_C99 above