X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=m4%2Fax_platform.m4;fp=m4%2Fax_platform.m4;h=bf4ff0e455daac5993af77844a78b6c1defc3c94;hb=414e14aa19894d353e8e56396988505d2729e7ac;hp=c1403b8c2e58b55d4e9ef7e6200bda2b54b37736;hpb=d7074cbf00c63fad11bae0750f48508fba43aceb;p=awesomized%2Flibmemcached diff --git a/m4/ax_platform.m4 b/m4/ax_platform.m4 index c1403b8c..bf4ff0e4 100644 --- a/m4/ax_platform.m4 +++ b/m4/ax_platform.m4 @@ -20,21 +20,21 @@ # warranty. #serial 1 - AC_DEFUN([AX_PLATFORM],[ - AC_REQUIRE([AC_CANONICAL_HOST]) + AC_DEFUN([AX_PLATFORM], + [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_CANONICAL_TARGET]) - AC_DEFINE_UNQUOTED([HOST_VENDOR], ["$host_vendor"],[Vendor of Build System]) - AC_DEFINE_UNQUOTED([HOST_OS], ["$host_os"], [OS of Build System]) - AC_DEFINE_UNQUOTED([HOST_CPU], ["$host_cpu"], [CPU of Build System]) + AC_DEFINE_UNQUOTED([HOST_VENDOR],["$host_vendor"],[Vendor of Build System]) + AC_DEFINE_UNQUOTED([HOST_OS],["$host_os"], [OS of Build System]) + AC_DEFINE_UNQUOTED([HOST_CPU],["$host_cpu"], [CPU of Build System]) - AC_DEFINE_UNQUOTED([TARGET_VENDOR], ["$target_vendor"],[Vendor of Target System]) - AC_DEFINE_UNQUOTED([TARGET_OS], ["$target_os"], [OS of Target System]) - AC_DEFINE_UNQUOTED([TARGET_CPU], ["$target_cpu"], [CPU of Target System]) + AC_DEFINE_UNQUOTED([TARGET_VENDOR],["$target_vendor"],[Vendor of Target System]) + AC_DEFINE_UNQUOTED([TARGET_OS],["$target_os"], [OS of Target System]) + AC_DEFINE_UNQUOTED([TARGET_CPU],["$target_cpu"], [CPU of Target System]) - AS_CASE([$target_os],[ - *mingw32*],[ - AC_DEFINE([TARGET_OS_WINDOWS], [1], [Whether we are building for Windows]) + AS_CASE([$target_os], + [*mingw32*], + [AC_DEFINE([TARGET_OS_WINDOWS], [1], [Whether we are building for Windows]) AC_DEFINE([WINVER], [WindowsXP], [Version of Windows]) AC_DEFINE([_WIN32_WINNT], [0x0501], [Magical number to make things work]) AC_DEFINE([EAI_SYSTEM], [11], [Another magical number]) @@ -44,23 +44,14 @@ # define SHUT_WR SD_SEND # define SHUT_RDWR SD_BOTH #endif - ]) - ],[ - *freebsd*],[ - AC_DEFINE([TARGET_OS_FREEBSD], [1], [Whether we are building for FreeBSD]) - AC_DEFINE([__APPLE_CC__],[1],[Workaround for bug in FreeBSD headers]) - ],[ - *solaris*],[ - AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris]) - ],[ - *darwin*],[ - AC_DEFINE([TARGET_OS_OSX], [1], [Whether we build for OSX]) - ],[ - *linux*],[ - AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux]) - ]) + ])], + [*freebsd*],[AC_DEFINE([TARGET_OS_FREEBSD],[1],[Whether we are building for FreeBSD]) + AC_DEFINE([__APPLE_CC__],[1],[Workaround for bug in FreeBSD headers])], + [*solaris*],[AC_DEFINE([TARGET_OS_SOLARIS],[1],[Whether we are building for Solaris])], + [*darwin*],[AC_DEFINE([TARGET_OS_OSX],[1],[Whether we build for OSX])], + [*linux*],[AC_DEFINE([TARGET_OS_LINUX],[1],[Whether we build for Linux])]) - 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"]) - ]) + 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"]) + ])