From: Adam Dickmeiss Date: Mon, 20 Jan 2014 14:28:49 +0000 (+0100) Subject: Add configure check for memcached headers+libs X-Git-Tag: v5.0.13~51 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=be89f721ce59303c3f7261b7bf86b971dff18376;p=yaz-moved-to-github.git Add configure check for memcached headers+libs --- diff --git a/configure.ac b/configure.ac index 1be1a8b..f4a79c6 100644 --- a/configure.ac +++ b/configure.ac @@ -59,8 +59,15 @@ if test "$checkBoth" = "1"; then AC_CHECK_FUNC([accept], , [LIBS=$oldLibs]) fi AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])]) -dnl - +dnl ------ memcached +memcached=default +AC_ARG_WITH([memcached], [ --with-memcached Memcached library], [memcached=$withval]) +if test "$memcached" != "no"; then + AC_CHECK_LIB([memcached],[memcached_get]) + if test "$ac_cv_lib_memcached_memcached_get" = "yes"; then + AC_CHECK_HEADERS([libmemcached/memcached.h]) + fi +fi dnl ------ OpenSSL AC_SUBST([SSL_CFLAGS]) AC_SUBST([SSL_LIBS])