Browse Source

fixed memcache detection

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@436 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.3.15
Jan Kneschke 17 years ago
parent
commit
4ef82e88c2
  1. 4
      configure.in
  2. 4
      src/mod_trigger_b4_dl.c

4
configure.in

@ -259,8 +259,8 @@ AC_ARG_WITH(gdbm, AC_HELP_STRING([--with-gdbm],[gdbm storage for mod_trigger_b4_
],[AC_MSG_RESULT(no)])
AC_SUBST(GDBM_LIB)
AC_MSG_CHECKING(for libmemcache)
AC_ARG_WITH(gdbm, AC_HELP_STRING([--with-libmemcache],[memcached storage for mod_trigger_b4_dl]),
AC_MSG_CHECKING(for memcache)
AC_ARG_WITH(memcache, AC_HELP_STRING([--with-memcache],[memcached storage for mod_trigger_b4_dl]),
[AC_MSG_RESULT(yes)
AC_CHECK_LIB(memcache, mc_new, [
AC_CHECK_HEADERS([memcache.h],[

4
src/mod_trigger_b4_dl.c

@ -341,9 +341,9 @@ URIHANDLER_FUNC(mod_trigger_b4_dl_uri_handler) {
return HANDLER_GO_ON;
}
# elif defined(HAVE_GDBM_H)
if (!p->conf.db) return HANDLER_GO;
if (!p->conf.db) return HANDLER_GO_ON;
# else
if (!p->conf.mc) return HANDLER_GO;
if (!p->conf.mc) return HANDLER_GO_ON;
# endif
if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "X-Forwarded-For"))) {

Loading…
Cancel
Save