X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_platform.m4;h=4e54562dce534597cbaa7db144a49ca5b20fb07e;hb=1d8231fc194a56976c5bb14a75ff548ef5440191;hp=76ef66bc1ac05910083f93654df5ce3b12080c18;hpb=1b18496b3d1399d90cfba1975f23aee9c747445a;p=awesomized%2Flibmemcached diff --git a/m4/pandora_platform.m4 b/m4/pandora_platform.m4 index 76ef66bc..4e54562d 100644 --- a/m4/pandora_platform.m4 +++ b/m4/pandora_platform.m4 @@ -3,7 +3,7 @@ dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab: dnl dnl pandora-build: A pedantic build system dnl Copyright (C) 2009 Sun Microsystems, Inc. -dnl This file is free software; the Free Software Foundation +dnl This file is free software; Sun Microsystems dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl @@ -63,6 +63,23 @@ AC_DEFUN([PANDORA_PLATFORM],[ AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) AC_CHECK_DECL([__ICC], [INTELCC="yes"], [INTELCC="no"]) - AS_IF([test "x$INTELCC" = "xyes"], [enable_rpath=no]) + AS_IF([test "$INTELCC" = "yes"], [enable_rpath=no]) + + dnl By default, Sun Studio grabs special versions of limits.h and string.h + dnl when you use and . By setting this define, we can + dnl disable that and cause those to wrap the standard headers instead. + dnl http://www.stlport.com/doc/configure.html + AS_IF([test "$SUNCC" = "yes"],[ + AC_DEFINE([_STLP_NO_NEW_C_HEADERS],[1], + [Cause Sun Studio to not be quite so strict with standards conflicts]) + ]) + + AS_IF([test "x$TARGET_OSX" = "xtrue"],[ + AS_IF([test "x$ac_enable_fat_binaries" = "xyes"],[ + AM_CFLAGS="-arch i386 -arch x86_64 -arch ppc" + AM_CXXFLAGS="-arch i386 -arch x86_64 -arch ppc" + AM_LDFLAGS="-arch i386 -arch x86_64 -arch ppc" + ]) + ]) ])