File: configure.ac

package info (click to toggle)
libapr-memcache 0.7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 996 kB
  • sloc: sh: 8,435; ansic: 1,272; makefile: 38
file content (62 lines) | stat: -rw-r--r-- 1,513 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
AC_INIT(apr_memcache, 0.7.0)
AC_CONFIG_MACRO_DIR([m4])
OOO_CONFIG_NICE(config.nice)
AC_PREREQ(2.53)
AC_CONFIG_SRCDIR([memcache/apr_memcache.c])
AC_CONFIG_AUX_DIR(config)
AM_MAINTAINER_MODE
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
LT_INIT
AM_CONFIG_HEADER([include/apr_memcache_config.h:config.in])
AC_PROG_CC
AC_PROG_LD
AC_PROG_INSTALL


APR_FIND_APR( , , 1, 1)
if test "$apr_found" != "yes"; then
    AC_MSG_ERROR([*** apr-config could not be found!])
    AC_MSG_ERROR([*** Use the --with-apr option to set the prefix for apr])
fi;

APR_CFLAGS=`${apr_config} --cflags --cppflags --includes`
APR_LIBS=`${apr_config} --ldflags --link-ld --libs`

APR_FIND_APU( , , 1, 1)
if test "$apu_found" != "yes"; then
    AC_MSG_ERROR([*** apu-config could not be found!])
    AC_MSG_ERROR([*** Use the --with-apr-util option to set the prefix for apr-util])
fi;

APU_LIBS=`${apu_config} --ldflags --link-ld --libs`

LIBTOOL="`${apr_config} --apr-libtool`"
AC_SUBST(LIBTOOL)

MODULE_CFLAGS="-I../include ${APR_CFLAGS}"
MODULE_LIBS="${APR_LIBS} ${APU_LIBS}"


AC_MSG_CHECKING([for --prefix])
if test "x${prefix}" = xNONE; then
    AC_MSG_RESULT([no])
    prefix=`${apr_config} --prefix`
    AC_MSG_WARN([No Prefix set, using '${prefix}' detected from '${apr_config}'])
else
    AC_MSG_RESULT([yes])
fi

AC_SUBST(MODULE_CFLAGS)
AC_SUBST(MODULE_LIBS)

AC_CONFIG_FILES([Makefile memcache/Makefile])
AC_OUTPUT
AC_MSG_RESULT([
---
Configuration summary for apr_memcache

   * Version:			AC_PACKAGE_VERSION
   * Prefix:			$prefix
---
])