X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=configure.ac;h=dc560daf1a15a79bc66e17ef9051822c1c6e11a4;hb=7da7d839bffc2b41ea532c70dbe386fb742e714d;hp=53a4234954c9f363ced853fa0c4f9344529c46b6;hpb=93a5a39800fce1f1ee70edf0968f6a5407682ad2;p=m6w6%2Flibmemcached diff --git a/configure.ac b/configure.ac index 53a42349..dc560daf 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,7 @@ AC_SUBST(HASHKIT_LIBRARY_VERSION) AC_SEARCH_LIBS(getopt_long, gnugetopt) AC_SEARCH_LIBS(gethostbyname, nsl) -AC_CHECK_FUNCS_ONCE([getline]) +AC_CHECK_FUNCS([getline]) PANDORA_HAVE_LIBEVENT PANDORA_REQUIRE_PTHREAD @@ -54,19 +54,21 @@ WITH_MEMCACHED ENABLE_DEPRECATED PANDORA_HAVE_LIBINNODB PANDORA_PRINT_CALLSTACK +DETECT_BITFIELD AC_CHECK_HEADERS([atomic.h]) -AS_IF([test "x$ac_cv_header_atomic_h" = "xyes"], +AS_IF([test "x$ac_cv_header_atomic_h" = "xyes"],[ AC_CHECK_FUNCS(atomic_add_64) AC_CHECK_FUNCS(atomic_add_32) - AS_IF([test "x$ac_cv_func_atomic_add_64" = "xyes" -a "x$ac_cv_func_atomic_add_32" = "xyes"], + AS_IF([test "x$ac_cv_func_atomic_add_64" = "xyes" -a "x$ac_cv_func_atomic_add_32" = "xyes"],[ AC_DEFINE([USE_ATOMIC_H], [1], - [Define to true if you want to use functions from atomic.h]))) + [Define to true if you want to use functions from atomic.h])])]) AC_CONFIG_FILES([ Makefile docs/Makefile + libhashkit/configure.h libmemcached/configure.h support/libmemcached.pc support/libmemcached.spec