X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fhsieh.m4;h=c4f3df04372bf86c09fec4d133636ff02c8e0263;hb=b341b2b8f8b566641704161f9cc9c28f2d77a358;hp=f958f469d6410a3baf0ac4c63c8e1124f0c1349e;hpb=4cf3ce236b4a17092ca192becbd0a2f30d0ac576;p=m6w6%2Flibmemcached diff --git a/m4/hsieh.m4 b/m4/hsieh.m4 index f958f469..c4f3df04 100644 --- a/m4/hsieh.m4 +++ b/m4/hsieh.m4 @@ -1,22 +1,18 @@ dnl --------------------------------------------------------------------------- -dnl Macro: HSIEH_HASH +dnl Macro: ENABLE_HSIEH_HASH dnl --------------------------------------------------------------------------- -AC_ARG_ENABLE(hsieh_hash, - [ --enable-hsieh_hash build with support for hsieh hashing.], - [ - if test "x$enableval" != "xno"; then - ENABLE_HSIEH="true" - AC_DEFINE([HAVE_HSIEH_HASH], [1], [Enables hsieh hashing support]) - else - ENABLE_HSIEH="false" - fi - ], - [ - ENABLE_HSIEH="false" - ] -) +AC_DEFUN([ENABLE_HSIEH_HASH], + [AC_ARG_ENABLE([hsieh_hash], + [AS_HELP_STRING([--enable-hsieh_hash], + [build with support for hsieh hashing. @<:@default=off@:>@])], + [ac_cv_enable_hsieh_hash=yes], + [ac_cv_enable_hsieh_hash=no]) -AM_CONDITIONAL([INCLUDE_HSIEH_SRC], [test "x$ENABLE_HSIEH" = "xtrue"]) + AS_IF([test "$ac_cv_enable_hsieh_hash" = "yes"], + [AC_DEFINE([HAVE_HSIEH_HASH], [1], [Enables hsieh hashing support])]) + + AM_CONDITIONAL([INCLUDE_HSIEH_SRC], [test "$ac_cv_enable_hsieh_hash" = "yes"]) +]) dnl --------------------------------------------------------------------------- -dnl End Macro: HSIEH_HASH +dnl End Macro: ENABLE_HSIEH_HASH dnl ---------------------------------------------------------------------------