summaryrefslogtreecommitdiffstats
path: root/mod_auth_xradius-0.4.6-memcache.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-08-02 10:27:36 +0200
committerRemi Collet <fedora@famillecollet.com>2012-08-02 10:27:36 +0200
commit7eb0164469a58a67053d99d582ed0f05c9179d83 (patch)
tree68979351e9dc85feb93a2eeec43652a4cc94b11e /mod_auth_xradius-0.4.6-memcache.patch
mod_auth_xradius: import from rawhide
Diffstat (limited to 'mod_auth_xradius-0.4.6-memcache.patch')
-rw-r--r--mod_auth_xradius-0.4.6-memcache.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/mod_auth_xradius-0.4.6-memcache.patch b/mod_auth_xradius-0.4.6-memcache.patch
new file mode 100644
index 0000000..0a93dd9
--- /dev/null
+++ b/mod_auth_xradius-0.4.6-memcache.patch
@@ -0,0 +1,47 @@
+diff -Naur mod_auth_xradius-0.4.6.old/configure mod_auth_xradius-0.4.6.memcache/configure
+--- mod_auth_xradius-0.4.6.old/configure 2012-05-30 10:27:39.230465050 +0200
++++ mod_auth_xradius-0.4.6.memcache/configure 2012-05-30 11:06:40.236546705 +0200
+@@ -4476,8 +4476,8 @@
+ echo "${ECHO_T}$ac_cv_lib_apr_memcache_apr_memcache_create" >&6
+ if test $ac_cv_lib_apr_memcache_apr_memcache_create = yes; then
+
+- APR_MEMCACHE_LIBS="-R$x/lib -L$x/lib -lapr_memcache"
+- APR_MEMCACHE_CFLAGS="-I$x/include/apr_memcache-0"
++ APR_MEMCACHE_LIBS="`apu-1-config --link-ld`"
++ APR_MEMCACHE_CFLAGS="`apu-1-config --includes`"
+
+ fi
+
+diff -Naur mod_auth_xradius-0.4.6.old/m4/apr_memcache.m4 mod_auth_xradius-0.4.6.memcache/m4/apr_memcache.m4
+--- mod_auth_xradius-0.4.6.old/m4/apr_memcache.m4 2012-05-30 10:27:39.228465017 +0200
++++ mod_auth_xradius-0.4.6.memcache/m4/apr_memcache.m4 2012-05-30 11:11:30.271831333 +0200
+@@ -20,23 +20,19 @@
+ test_paths="${mc_path}"
+ fi
+
+-if test -n ${AP_PREFIX}; then
+- test_paths="${AP_PREFIX} ${test_paths}"
+-fi
+-
+ for x in $test_paths ; do
+- amc_shlib="${x}/libapr_memcache${shrext_cmds}"
+- AC_MSG_CHECKING([for apr_memcache library in ${x}/lib])
++ amc_shlib="${x}/libaprutil-1${shrext_cmds}"
++ AC_MSG_CHECKING([for apr_memcache library in ${libdir}])
+ if test -f ${amc_shlib}; then
+ AC_MSG_RESULT([yes])
+ save_CFLAGS=$CFLAGS
+ save_LDFLAGS=$LDFLAGS
+ CFLAGS="$CFLAGS"
+- LDFLAGS="-L$x/lib $LDFLAGS"
+- AC_CHECK_LIB(apr_memcache, apr_memcache_create,
++ LDFLAGS="-L${libdir} $LDFLAGS"
++ AC_CHECK_LIB(aprutil-1, apr_memcache_create,
+ [
+- APR_MEMCACHE_LIBS="-R$x/lib -L$x/lib -lapr_memcache"
+- APR_MEMCACHE_CFLAGS="-I$x/include/apr_memcache-0"
++ APR_MEMCACHE_LIBS="`apu-1-config --link-ld`"
++ APR_MEMCACHE_CFLAGS="`apu-1-config --includes`"
+ ])
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS