Description: Fix AX_PROG_MEMCACHED for when memcached is not present
 When the memcached binary is not present (as is the case when building the
 Debian package in a clean chroot), MEMCACHED_BINARY is not defined at all and
 the test suite fails to build as it's using regular ifs rather than
 preprocessor ifdefs. The fix is similar to how e.g. the GEARMAND detection
 works.
Author: Faidon Liambotis <paravoid@debian.org>
Last-Update: 2013-06-12
Forwarded: no

--- a/m4/ax_memcached.m4
+++ b/m4/ax_memcached.m4
@@ -54,5 +54,8 @@ AC_DEFUN([AX_PROG_MEMCACHED],
       ax_memcached_version=`$MEMCACHED_BINARY -h | sed 1q | awk '{print \$ 2 }' | sed 's|[\-a-z0-9]*$||' | awk -F. '{printf "%d.%d.%d", $[]1, $[]2, $[]3}'`
       AC_MSG_RESULT([memcached version "$ax_memcached_version"])
       AC_DEFINE_UNQUOTED([MEMCACHED_VERSION],"$ax_memcached_version",[Memcached binary version])
+      ],
+      [AC_DEFINE([HAVE_MEMCACHED_BINARY],[0],[If Memcached binary is available])
+      AC_DEFINE([MEMCACHED_BINARY],[0],[Name of the memcached binary used in make test])
       ])
     ])
