X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_canonical.m4;h=c18ee3f2ac4327e1c4828f96e1a5cf1fe8822198;hb=a2d3699da26720a399bd7f563ccdbccf26e610c5;hp=e876a8fa77bea1cdcf60a1147d3859597125f95c;hpb=1fcd4c0fbe57bb3f4f68725bf8173fa522354b07;p=awesomized%2Flibmemcached diff --git a/m4/pandora_canonical.m4 b/m4/pandora_canonical.m4 index e876a8fa..c18ee3f2 100644 --- a/m4/pandora_canonical.m4 +++ b/m4/pandora_canonical.m4 @@ -61,7 +61,7 @@ AC_DEFUN([PANDORA_CANONICAL_TARGET],[ AS_IF([test "x${ac_cv_env_CXXFLAGS_set}" = "x"], [CXXFLAGS=""]) - AM_INIT_AUTOMAKE(-Wall -Werror -Wno-portability subdir-objects foreign tar-ustar) + AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability subdir-objects foreign tar-ustar]) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) @@ -114,14 +114,11 @@ AC_DEFUN([PANDORA_CANONICAL_TARGET],[ 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 - PANDORA_CHECK_CXX_STANDARD m4_if(PCT_REQUIRE_CXX, [yes], [ AS_IF([test "$ac_cv_cxx_stdcxx_98" = "no"],[ AC_MSG_ERROR([No working C++ Compiler has been found. ${PACKAGE} requires a C++ compiler that can handle C++98]) ]) ]) - PANDORA_CXX_CSTDINT - PANDORA_CXX_CINTTYPES m4_if(m4_substr(m4_esyscmd(test -d gnulib && echo 0),0,1),0,[ gl_INIT @@ -171,25 +168,6 @@ AC_DEFUN([PANDORA_CANONICAL_TARGET],[ AC_DEFINE([TIME_T_UNSIGNED], 1, [Define to 1 if time_t is unsigned]) ]) - AC_CACHE_CHECK([if system defines RUSAGE_THREAD], [ac_cv_rusage_thread],[ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [[ -#include -#include - ]],[[ - int x= RUSAGE_THREAD; - ]]) - ],[ - ac_cv_rusage_thread=yes - ],[ - ac_cv_rusage_thread=no - ]) - ]) - AS_IF([test "$ac_cv_rusage_thread" = "no"],[ - AC_DEFINE([RUSAGE_THREAD], [RUSAGE_SELF], - [Define if system doesn't define]) - ]) - AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)]) AC_CHECK_FUNC(bind, [], [AC_CHECK_LIB(bind, bind)])