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 disk_cache_objs="mod_disk_cache.lo"
19 # OS/2 DLLs must resolve all symbols at build time
20 # and we need some from main cache module
21 disk_cache_objs="$disk_cache_objs mod_cache.la"
25 APACHE_MODULE(cache, dynamic file caching. At least one storage management module (e.g. mod_disk_cache) is also necessary., $cache_objs, , most)
26 APACHE_MODULE(disk_cache, disk caching module, $disk_cache_objs, , most)
28 AC_DEFUN([CHECK_DISTCACHE], [
30 [distcache/dc_client.h],
33 if test "$have_distcache" = "yes"; then
34 AC_MSG_CHECKING(for Distcache version)
36 [#include <distcache/dc_client.h>],
37 [#if DISTCACHE_CLIENT_API != 0x0001
38 #error "distcache API version is unrecognised"
42 AC_MSG_RESULT($have_distcache)
44 if test "$have_distcache" = "yes"; then
45 AC_MSG_CHECKING(for Distcache libraries)
47 LIBS="$LIBS -ldistcache -lnal"
49 [#include <distcache/dc_client.h>],
50 [DC_CTX *foo = DC_CTX_new((const char *)0,0);],
54 AC_MSG_RESULT($have_distcache)
56 if test "$have_distcache" = "yes"; then
57 APR_ADDTO(MOD_SOCACHE_LDADD, [-ldistcache -lnal])
58 AC_DEFINE(HAVE_DISTCACHE, 1, [Define if distcache support is enabled])
64 APACHE_MODULE(socache_shmcb, shmcb small object cache provider, , , most)
65 APACHE_MODULE(socache_dbm, dbm small object cache provider, , , most)
66 APACHE_MODULE(socache_memcache, memcache small object cache provider, , , most)
67 APACHE_MODULE(socache_dc, distcache small object cache provider, , , no, [
71 APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])