Merge Monty
[m6w6/libmemcached] / m4 / enable_utillib.m4
1 AC_DEFUN([ENABLE_UTILLIB],[
2 AC_ARG_ENABLE([utils],
3 [AS_HELP_STRING([--disable-utils],
4 [Disable libmemcachedutils @<:@default=on@:>@])],
5 [BUILD_UTILLIB="$enableval"],
6 [BUILD_UTILLIB="yes"])
7
8 if test "x$BUILD_UTILLIB" = "xyes"; then
9 if test x"$acx_pthread_ok" != "xyes"; then
10 AC_MSG_ERROR([Sorry you need POSIX thread library to build libmemcachedutil.])
11 fi
12 AC_DEFINE([HAVE_LIBMEMCACHEDUTIL], [1], [Enables libmemcachedutil Support])
13 fi
14
15 AM_CONDITIONAL([BUILD_LIBMEMCACHEDUTIL],[test "x$BUILD_UTILLIB" = "xyes"])
16 ])