Added new command: memcached_flush_buffers
[m6w6/libmemcached] / config / memcached.m4
1 AC_ARG_WITH(memcached,
2 [[ --with-memcached[=memcached binary]
3 Memcached binary to use for make test]],
4 [
5 if test -n "$withval"
6 then
7 MEMC_BINARY="$withval"
8 fi
9
10 if test x$withval == xyes
11 then
12 MEMC_BINARY=memcached
13 fi
14
15 # just ignore the user if --without-memcached is passed.. it is
16 # only used by make test
17 if test x$withval == xno
18 then
19 MEMC_BINARY=memcached
20 fi
21 ],
22 [
23 AC_PATH_PROG([MEMC_BINARY], [memcached], "no", [$PATH])
24 ])
25
26 if test x$MEMC_BINARY == "xno"
27 then
28 AC_MSG_ERROR(["could not find memcached binary"])
29 fi
30
31 AC_DEFINE_UNQUOTED([MEMCACHED_BINARY], "$MEMC_BINARY",
32 [Name of the memcached binary used in make test])