08c768e
--- mod_gnutls-0.5.10/m4/apr_memcache.m4	2011-07-08 23:29:46.000000000 +0200
08c768e
+++ mod_gnutls-0.5.10/m4/apr_memcache.m4.new	2011-09-15 20:04:00.117806214 +0200
08c768e
@@ -40,21 +40,20 @@
08c768e
 if test -n "$apr_memcache_includes"; then
08c768e
     apr_memcache_includedir=$apr_memcache_includes
08c768e
 elif test -n "$apr_memcache_prefix"; then
08c768e
-    apr_memcache_includedir=$apr_memcache_prefix/include/apr_memcache-0
08c768e
+    apr_memcache_includedir=$apr_memcache_prefix/include/aprutil-1
08c768e
 else
08c768e
-    apr_memcache_includedir=$includedir/apr_memcache-0
08c768e
+    apr_memcache_includedir=$includedir/aprutil-1
08c768e
 fi
08c768e
+
08c768e
 CFLAGS="-I$apr_memcache_includedir $CFLAGS"
08c768e
 
08c768e
+
08c768e
 AC_CHECK_LIB(
08c768e
-    apr_memcache,
08c768e
+    aprutil-1,
08c768e
     apr_memcache_create,
08c768e
     [
08c768e
-	APR_MEMCACHE_LIBS="-lapr_memcache"
08c768e
-	if test -n "$apr_memcache_libdir"; then
08c768e
-	    APR_MEMCACHE_LIBS="-R$apr_memcache_libdir -L$apr_memcache_libdir $APR_MEMCACHE_LIBS"
08c768e
-	fi
08c768e
-	APR_MEMCACHE_CFLAGS="-I$apr_memcache_includedir"
08c768e
+    APR_MEMCACHE_LIBS="`apu-1-config --link-ld`"
08c768e
+    APR_MEMCACHE_CFLAGS="`apu-1-config --includes`"
08c768e
     ]
08c768e
 )
08c768e
 CFLAGS=$save_CFLAGS