asynciodebian/masterdebian/stretch-backportsjessie-backportsproxy-ticketupstream
Last change
on this file since c0bb823 was
d6a575c,
checked in by Thomas Klute <thomas2.klute@…>, 5 years ago
|
Use apr_memcache from APR Utility Library only
apr_memcache has been included (and maintained) in the APR Utility
Library for years. Even Apache 2.2 requires a newer version than the
first one to include apr_memcache. Remove support for the separate
apr_memcache library and rely on APR Util only.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[abce298] | 1 | dnl Check for memcache client libraries |
---|
| 2 | dnl CHECK_APR_MEMCACHE(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) |
---|
| 3 | dnl Sets: |
---|
| 4 | dnl APR_MEMCACHE_LIBS |
---|
[d6a575c] | 5 | dnl APR_MEMCACHE_CFLAGS |
---|
[abce298] | 6 | AC_DEFUN([CHECK_APR_MEMCACHE], |
---|
| 7 | [dnl |
---|
| 8 | |
---|
| 9 | AC_ARG_WITH( |
---|
[d6a575c] | 10 | [apu-config], |
---|
| 11 | [AC_HELP_STRING([--with-apu-config=PATH],[Path to APR Utility Library config tool (apu-1-config)])], |
---|
| 12 | [apr_util_config="$withval"], |
---|
| 13 | []) |
---|
[abce298] | 14 | |
---|
| 15 | AC_LIBTOOL_SYS_DYNAMIC_LINKER |
---|
| 16 | |
---|
| 17 | save_CFLAGS=$CFLAGS |
---|
| 18 | save_LDFLAGS=$LDFLAGS |
---|
[0e277f2] | 19 | |
---|
[d6a575c] | 20 | dnl # If path to apu-1-config hasn't been set explicitly, try to find it |
---|
| 21 | if test -z "$apr_util_config"; then |
---|
| 22 | AC_PATH_PROGS([APR_UTIL_CONF], [apu-1-config], [no], [$PATH:/usr/sbin]) |
---|
[0e277f2] | 23 | else |
---|
[d6a575c] | 24 | AC_MSG_NOTICE([using apu-1-config path set by user: $apr_util_config]) |
---|
| 25 | APR_UTIL_CONF="$apr_util_config" |
---|
[0e277f2] | 26 | fi |
---|
[70509f8] | 27 | |
---|
[d6a575c] | 28 | CFLAGS="`$APR_UTIL_CONF --includes` $CFLAGS" |
---|
| 29 | LDFLAGS="`$APR_UTIL_CONF --link-ld` $LDFLAGS" |
---|
[70509f8] | 30 | |
---|
[abce298] | 31 | AC_CHECK_LIB( |
---|
[70509f8] | 32 | aprutil-1, |
---|
| 33 | apr_memcache_create, |
---|
| 34 | [ |
---|
[d6a575c] | 35 | APR_MEMCACHE_LIBS="`$APR_UTIL_CONF --link-ld`" |
---|
| 36 | APR_MEMCACHE_CFLAGS="`$APR_UTIL_CONF --includes`" |
---|
[70509f8] | 37 | ] |
---|
[d6a575c] | 38 | ) |
---|
[70509f8] | 39 | |
---|
[abce298] | 40 | CFLAGS=$save_CFLAGS |
---|
| 41 | LDFLAGS=$save_LDFLAGS |
---|
| 42 | |
---|
| 43 | AC_SUBST(APR_MEMCACHE_LIBS) |
---|
| 44 | AC_SUBST(APR_MEMCACHE_CFLAGS) |
---|
| 45 | |
---|
| 46 | if test -z "${APR_MEMCACHE_LIBS}"; then |
---|
| 47 | AC_MSG_NOTICE([*** memcache library not found.]) |
---|
| 48 | ifelse([$2], , AC_MSG_ERROR([memcache library is required]), $2) |
---|
| 49 | else |
---|
| 50 | AC_MSG_NOTICE([using '${APR_MEMCACHE_LIBS}' for memcache]) |
---|
| 51 | ifelse([$1], , , $1) |
---|
| 52 | fi |
---|
| 53 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.