1 dnl modules enabled in this directory by default
3 dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
5 APACHE_MODPATH_INIT(cache)
7 APACHE_MODULE(file_cache, File cache, , , most)
9 dnl # list of object files for mod_cache
15 APACHE_MODULE(cache, dynamic file caching, $cache_objs, , most)
16 APACHE_MODULE(disk_cache, disk caching module, , , most)
18 AC_DEFUN([CHECK_DISTCACHE], [
19 AC_MSG_CHECKING(whether Distcache is required)
23 AC_ARG_ENABLE(distcache,
24 APACHE_HELP_STRING(--enable-distcache,Enable distcache support),
25 ap_ssltk_dc="$enableval"
28 if test "x$ap_ssltk_dc" = "x"; then
30 dnl our "error"s become "tests revealed that..."
33 if test "$ap_ssltk_dc" != "yes" -a "$ap_ssltk_dc" != "no"; then
34 tmp_nomessage="--enable-distcache had illegal syntax - disabling"
37 if test "$tmp_forced" = "no"; then
38 AC_MSG_RESULT($ap_ssltk_dc (default))
40 AC_MSG_RESULT($ap_ssltk_dc (specified))
42 if test "$tmp_forced" = "yes" -a "x$ap_ssltk_dc" = "xno" -a "x$tmp_nomessage" != "x"; then
43 AC_MSG_ERROR(distcache support failed: $tmp_nomessage)
45 if test "$ap_ssltk_dc" = "yes"; then
47 [distcache/dc_client.h],
49 [tmp_nomessage="can't include distcache headers"
51 if test "$tmp_forced" = "yes" -a "x$ap_ssltk_dc" = "xno"; then
52 AC_MSG_ERROR(distcache support failed: $tmp_nomessage)
55 if test "$ap_ssltk_dc" = "yes"; then
56 AC_MSG_CHECKING(for Distcache version)
58 [#include <distcache/dc_client.h>],
59 [#if DISTCACHE_CLIENT_API != 0x0001
60 #error "distcache API version is unrecognised"
63 [tmp_nomessage="distcache has an unsupported API version"
65 AC_MSG_RESULT($ap_ssltk_dc)
66 if test "$tmp_forced" = "yes" -a "x$ap_ssltk_dc" = "xno"; then
67 AC_MSG_ERROR(distcache support failed: $tmp_nomessage)
70 if test "$ap_ssltk_dc" = "yes"; then
71 AC_MSG_CHECKING(for Distcache libraries)
73 LIBS="$LIBS -ldistcache -lnal"
75 [#include <distcache/dc_client.h>],
76 [DC_CTX *foo = DC_CTX_new((const char *)0,0);],
78 [tmp_no_message="failed to link with distcache libraries"
81 AC_MSG_RESULT($ap_ssltk_dc)
82 if test "$tmp_forced" = "yes" -a "x$ap_ssltk_dc" = "xno"; then
83 AC_MSG_ERROR(distcache support failed: $tmp_nomessage)
85 APR_ADDTO(MOD_SOCACHE_LDADD, [-ldistcache -lnal])
86 AC_DEFINE(HAVE_DISTCACHE, 1, [Define if distcache support is enabled])
91 APACHE_MODULE(socache_shmcb, shmcb small object cache provider, , , most)
92 APACHE_MODULE(socache_dbm, dbm small object cache provider, , , most)
93 APACHE_MODULE(socache_memcache, memcache small object cache provider, , , most)
94 APACHE_MODULE(socache_dc, distcache small object cache provider, , , no, [
98 APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
100 APACHE_MODPATH_FINISH