X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_canonical.m4;h=576a81ca31abf9d1b9b64d6325bc1cf85a81c99e;hb=05768496dca9b3648464616a808848490131e753;hp=ef5e1983df69d9f05cf9874ad840f4072801a623;hpb=d9dab0a24eebad142b33d00ccb0f87b083f02195;p=awesomized%2Flibmemcached diff --git a/m4/pandora_canonical.m4 b/m4/pandora_canonical.m4 index ef5e1983..576a81ca 100644 --- a/m4/pandora_canonical.m4 +++ b/m4/pandora_canonical.m4 @@ -4,13 +4,23 @@ dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Which version of the canonical setup we're using -AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.80]) +AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.96]) AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[ + AC_ARG_ENABLE([fat-binaries], + [AS_HELP_STRING([--enable-fat-binaries], + [Enable fat binary support on OSX @<:@default=off@:>@])], + [ac_enable_fat_binaries="$enableval"], + [ac_enable_fat_binaries="no"]) + dnl Force dependency tracking on for Sun Studio builds AS_IF([test "x${enable_dependency_tracking}" = "x"],[ enable_dependency_tracking=yes ]) + dnl If we're building OSX Fat Binaries, we have to turn off -M options + AS_IF([test "x${ac_enable_fat_binaries}" = "xyes"],[ + enable_dependency_tracking=no + ]) ]) dnl The standard setup for how we build Pandora projects @@ -97,13 +107,6 @@ AC_DEFUN([PANDORA_CANONICAL_TARGET],[ PANDORA_LIBTOOL - AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[ - ${LD} --help | grep default-symver >/dev/null 2>&1 - AS_IF([test $? -eq 0],[ - AM_LDFLAGS="${AM_LDFLAGS} -Wl,--default-symver" - ]) - ]) - dnl autoconf doesn't automatically provide a fail-if-no-C++ macro dnl so we check c++98 features and fail if we don't have them, mainly dnl for that reason @@ -176,13 +179,7 @@ AC_DEFUN([PANDORA_CANONICAL_TARGET],[ dnl alloca - but we need to know it anyway for check_stack_overrun. PANDORA_STACK_DIRECTION - save_LIBS="${LIBS}" - LIBS="" - AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity)) - LIBM="${LIBS}" - LIBS="${save_LIBS}" - AC_SUBST([LIBM]) - + AC_CHECK_FUNC(floorf, [], [AC_CHECK_LIB(m, floorf)]) AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)]) AC_CHECK_FUNC(bind, [], [AC_CHECK_LIB(bind, bind)]) @@ -207,7 +204,7 @@ AC_DEFUN([PANDORA_CANONICAL_TARGET],[ dnl We need to inject error into the cflags to test if visibility works or not save_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} -Werror" - gl_VISIBILITY + PANDORA_VISIBILITY CFLAGS="${save_CFLAGS}" ])