aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorGravatar Nokis Mavrogiannopoulos 2008-03-05 21:46:21 +0000
committerGravatar Nokis Mavrogiannopoulos 2008-03-05 21:46:21 +0000
commitbd993b4273e8bbb69c7b2ade188cc7311eca0152 (patch)
treed66ec69ff4ef738bd461306bf61c9d49cd786a09 /m4
parentc7fe85efa8bdba2c156e3e220a0ebfc06288d52c (diff)
added new apr_memcache.m4 from Guillaume Rousse0.4.x
Diffstat (limited to 'm4')
-rw-r--r--m4/apr_memcache.m431
1 files changed, 24 insertions, 7 deletions
diff --git a/m4/apr_memcache.m4 b/m4/apr_memcache.m4
index 71ab2b6..c8f6a7e 100644
--- a/m4/apr_memcache.m4
+++ b/m4/apr_memcache.m4
@@ -9,19 +9,16 @@ AC_ARG_WITH(
9 apr-memcache-prefix, 9 apr-memcache-prefix,
10 [AC_HELP_STRING([--with-apr-memcache-prefix=PATH],[Install prefix for apr_memcache])], 10 [AC_HELP_STRING([--with-apr-memcache-prefix=PATH],[Install prefix for apr_memcache])],
11 apr_memcache_prefix="$withval", 11 apr_memcache_prefix="$withval",
12 apr_memcache_prefix="/usr",
13 :) 12 :)
14AC_ARG_WITH( 13AC_ARG_WITH(
15 apr-memcache-libs, 14 apr-memcache-libs,
16 [AC_HELP_STRING([--with-apr-memcache-libs=PATH],[Path to apr_memcache libs])], 15 [AC_HELP_STRING([--with-apr-memcache-libs=PATH],[Path to apr_memcache libs])],
17 apr_memcache_libs="$withval", 16 apr_memcache_libs="$withval",
18 apr_memcache_libs="$apr_memcache_prefix/lib"
19 :) 17 :)
20AC_ARG_WITH( 18AC_ARG_WITH(
21 apr-memcache-includes, 19 apr-memcache-includes,
22 [AC_HELP_STRING([--with-apr-memcache-includes=PATH],[Path to apr_memcache includes])], 20 [AC_HELP_STRING([--with-apr-memcache-includes=PATH],[Path to apr_memcache includes])],
23 apr_memcache_includes="$withval", 21 apr_memcache_includes="$withval",
24 apr_memcache_includes="$apr_memcache_prefix/include/apr_memcache-0"
25 :) 22 :)
26 23
27 24
@@ -30,14 +27,34 @@ AC_LIBTOOL_SYS_DYNAMIC_LINKER
30dnl # Determine memcache lib directory 27dnl # Determine memcache lib directory
31save_CFLAGS=$CFLAGS 28save_CFLAGS=$CFLAGS
32save_LDFLAGS=$LDFLAGS 29save_LDFLAGS=$LDFLAGS
33CFLAGS="-I$apr_memcache_includes $APR_INCLUDES $CFLAGS" 30
34LDFLAGS="-L$apr_memcache_libs $LDFLAGS" 31if test -n "$apr_memcache_libs"; then
32 apr_memcache_libdir=$apr_memcache_libs
33elif test -n "$apr_memcache_prefix"; then
34 apr_memcache_libdir=$apr_memcache_prefix/lib
35fi
36if test -n "$apr_memcache_libdir"; then
37 LDFLAGS="-L$apr_memcache_libdir $LDFLAGS"
38fi
39
40if test -n "$apr_memcache_includes"; then
41 apr_memcache_includedir=$apr_memcache_includes
42elif test -n "$apr_memcache_prefix"; then
43 apr_memcache_includedir=$apr_memcache_prefix/include/apr_memcache-0
44else
45 apr_memcache_includedir=$includedir/apr_memcache-0
46fi
47CFLAGS="-I$apr_memcache_includedir $CFLAGS"
48
35AC_CHECK_LIB( 49AC_CHECK_LIB(
36 apr_memcache, 50 apr_memcache,
37 apr_memcache_create, 51 apr_memcache_create,
38 [ 52 [
39 APR_MEMCACHE_LIBS="-R$apr_memcache_libs -L$apr_memcache_libs -lapr_memcache" 53 APR_MEMCACHE_LIBS="-lapr_memcache"
40 APR_MEMCACHE_CFLAGS="-I$apr_memcache_includes" 54 if test -n "$apr_memcache_libdir"; then
55 APR_MEMCACHE_LIBS="-R$apr_memcache_libdir -L$apr_memcache_libdir $APR_MEMCACHE_LIBS"
56 fi
57 APR_MEMCACHE_CFLAGS="-I$apr_memcache_includedir"
41 ] 58 ]
42) 59)
43CFLAGS=$save_CFLAGS 60CFLAGS=$save_CFLAGS