X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=inline;f=m4%2Fpandora_platform.m4;h=2372e0d6556c303547c7d40ec34e1e4ccb4489b1;hb=f253a58a663bfcbc0f9a3115745299b3bd5367ea;hp=4d51d2b5d1865a203af87bdd0776a255b6831aeb;hpb=1805d9d7e2c959f92c28057b7cfadcd48ba9a68a;p=awesomized%2Flibmemcached diff --git a/m4/pandora_platform.m4 b/m4/pandora_platform.m4 index 4d51d2b5..2372e0d6 100644 --- a/m4/pandora_platform.m4 +++ b/m4/pandora_platform.m4 @@ -10,6 +10,8 @@ dnl dnl From Monty Taylor AC_DEFUN([PANDORA_PLATFORM],[ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_CANONICAL_TARGET]) dnl Canonicalize the configuration name. @@ -88,11 +90,13 @@ AC_DEFUN([PANDORA_PLATFORM],[ AM_CFLAGS="${AM_CFLAGS} -I\${top_srcdir}/win32/mingw -I\${top_builddir}/win32/mingw -I\${top_srcdir}/win32 -I\${top_builddir}/win32" ;; esac - AM_CONDITIONAL(TARGET_LINUX, [test "x${TARGET_LINUX}" = "xtrue"]) AM_CONDITIONAL(BUILD_WIN32, [test "x${TARGET_WINDOWS}" = "xtrue"]) + AM_CONDITIONAL(TARGET_OSX, [test "x${TARGET_OSX}" = "xtrue"]) + AM_CONDITIONAL(TARGET_LINUX, [test "x${TARGET_LINUX}" = "xtrue"]) AC_SUBST(PANDORA_OPTIMIZE_BITFIELD) + AC_CHECK_DECL([__clang__], [CLANG="yes"], [CLANG="no"]) AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) AC_CHECK_DECL([__ICC], [INTELCC="yes"], [INTELCC="no"])