X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fhave_cstdint.m4;h=43e39bd8559d5b05d6183d09ff2fd0d69a601851;hb=ae86283e79c226f2a24d5c74e3ffc8f38f0a66a8;hp=11d9616f2abdddd885e0df3e8a3a7e9355795648;hpb=d7074cbf00c63fad11bae0750f48508fba43aceb;p=awesomized%2Flibmemcached diff --git a/m4/have_cstdint.m4 b/m4/have_cstdint.m4 index 11d9616f..43e39bd8 100644 --- a/m4/have_cstdint.m4 +++ b/m4/have_cstdint.m4 @@ -40,7 +40,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 2 +#serial 4 AC_DEFUN([AX_CXX_CSTDINT], [ @@ -53,16 +53,22 @@ AC_DEFUN([AX_CXX_CSTDINT], [ CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}" AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([#include ], [ uint32_t t ])], + AC_LANG_PROGRAM([#include ], [ + uint32_t t + ])], [ac_cxx_cstdint_cstdint=""]) - AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([#include ], [ uint32_t t ])], - [ac_cxx_cstdint_tr1_cstdint=""]) + AS_IF([test -z "$ac_cxx_cstdint_cstdint"],[ + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([#include ], [ uint32_t t ])], + [ac_cxx_cstdint_tr1_cstdint=""]) - AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([#include ], [ uint32_t t ])], - [ac_cxx_cstdint_boost_cstdint_hpp=""]) + AS_IF([test -z "$ac_cxx_cstdint_tr1_cstdint"],[ + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([#include ], [ uint32_t t ])], + [ac_cxx_cstdint_boost_cstdint_hpp=""]) + ]) + ]) AC_LANG_POP AX_RESTORE_FLAGS @@ -72,10 +78,9 @@ AC_DEFUN([AX_CXX_CSTDINT], [ [test -n "$ac_cxx_cstdint_boost_cstdint_hpp"], [ac_cv_cxx_cstdint=$ac_cxx_cstdint_boost_cstdint_hpp]) ]) - AS_IF([test -n "$ac_cv_cxx_cstdint"], [AC_MSG_RESULT([$ac_cv_cxx_cstdint])], [ + AS_IF([test -n "$ac_cv_cxx_cstdint"], [:], [ ac_cv_cxx_cstdint="" AC_MSG_WARN([Could not find a cstdint header.]) - AC_MSG_RESULT([$ac_cv_cxx_cstdint]) ]) AC_DEFINE_UNQUOTED([CSTDINT_H],[$ac_cv_cxx_cstdint], [the location of ])