1
AC_DEFUN([PANDORA_WITH_MEMCACHED],[
3
AC_ARG_WITH([memcached],
4
[AS_HELP_STRING([--with-memcached],
5
[Memcached binary to use for make test])],
6
[ac_cv_with_memcached="$withval"],
7
[ac_cv_with_memcached=memcached])
9
# just ignore the user if --without-memcached is passed.. it is
10
# only used by make test
11
AS_IF([test "x$withval" = "xno"],[
12
ac_cv_with_memcached=memcached
13
MEMCACHED_BINARY=memcached
15
AS_IF([test -f "$withval"],[
16
ac_cv_with_memcached=$withval
17
MEMCACHED_BINARY=$withval
19
AC_PATH_PROG([MEMCACHED_BINARY], [$ac_cv_with_memcached], "no")
20
AS_IF([test "x$MEMCACHED_BINARY" = "xno"],[
21
AC_MSG_ERROR(["could not find memcached binary"])