summaryrefslogtreecommitdiffstats
path: root/mod_gnutls_apr_memcache_m4_dirty.patch
blob: 028ebe18ef951c8d62106fe906474b3d17d7c362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- mod_gnutls-0.5.10/m4/apr_memcache.m4	2011-07-08 23:29:46.000000000 +0200
+++ mod_gnutls-0.5.10/m4/apr_memcache.m4.new	2011-09-15 20:04:00.117806214 +0200
@@ -40,21 +40,20 @@
 if test -n "$apr_memcache_includes"; then
     apr_memcache_includedir=$apr_memcache_includes
 elif test -n "$apr_memcache_prefix"; then
-    apr_memcache_includedir=$apr_memcache_prefix/include/apr_memcache-0
+    apr_memcache_includedir=$apr_memcache_prefix/include/aprutil-1
 else
-    apr_memcache_includedir=$includedir/apr_memcache-0
+    apr_memcache_includedir=$includedir/aprutil-1
 fi
+
 CFLAGS="-I$apr_memcache_includedir $CFLAGS"
 
+
 AC_CHECK_LIB(
-    apr_memcache,
+    aprutil-1,
     apr_memcache_create,
     [
-	APR_MEMCACHE_LIBS="-lapr_memcache"
-	if test -n "$apr_memcache_libdir"; then
-	    APR_MEMCACHE_LIBS="-R$apr_memcache_libdir -L$apr_memcache_libdir $APR_MEMCACHE_LIBS"
-	fi
-	APR_MEMCACHE_CFLAGS="-I$apr_memcache_includedir"
+    APR_MEMCACHE_LIBS="`apu-1-config --link-ld`"
+    APR_MEMCACHE_CFLAGS="`apu-1-config --includes`"
     ]
 )
 CFLAGS=$save_CFLAGS