source: mod_gnutls/configure.ac @ ec9daf2

debian/masterdebian/stretch-backportsjessie-backportsmsvaupstream
Last change on this file since ec9daf2 was ec9daf2, checked in by Dash Shendy <neuromancer@…>, 8 years ago

Reverted ENABLE_SRP define (was correct!)

  • Property mode set to 100644
File size: 1.7 KB
Line 
1dnl
2AC_INIT(mod_gnutls, 0.5.10)
3OOO_CONFIG_NICE(config.nice)
4MOD_GNUTLS_VERSION=AC_PACKAGE_VERSION
5AC_PREREQ(2.53)
6AC_CONFIG_SRCDIR([src/mod_gnutls.c])
7AC_CONFIG_AUX_DIR(config)
8
9OOO_MAINTAIN_MODE
10AM_MAINTAINER_MODE
11AC_CANONICAL_TARGET
12AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
13AM_CONFIG_HEADER(include/mod_gnutls_config.h:config.in)
14
15AC_SUBST(MOD_GNUTLS_VERSION)
16
17AC_PROG_CC
18AC_PROG_LD
19AC_PROG_INSTALL
20AC_PROG_LIBTOOL
21
22AC_CONFIG_MACRO_DIR([m4])
23
24AP_VERSION=2.0.40
25CHECK_APACHE(,$AP_VERSION,
26    :,:,
27    AC_MSG_ERROR([*** Apache version $AP_VERSION not found!])
28)
29
30PKG_CHECK_MODULES(LIBGNUTLS, [gnutls >= 2.12.6],
31    AC_DEFINE([LIBGNUTLS_2], [1], [Using GnuTLS 2.12.x])
32)
33
34LIBGNUTLS_VERSION=`pkg-config --modversion gnutls`
35
36AC_ARG_ENABLE(srp,
37       AS_HELP_STRING([--disable-srp],
38               [unconditionally disable the SRP functionality]),
39       use_srp=$enableval, use_srp=yes)
40
41SRP_CFLAGS=""
42if test "$use_srp" != "no"; then
43        SRP_CFLAGS="-DENABLE_SRP=1"
44fi
45
46AC_MSG_CHECKING([whether to enable SRP functionality])
47AC_MSG_RESULT($use_srp)
48
49have_apr_memcache=0
50CHECK_APR_MEMCACHE([have_apr_memcache=1], [have_apr_memcache=0])
51AC_SUBST(have_apr_memcache)
52
53MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${SRP_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}"
54MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}"
55
56AC_SUBST(MODULE_CFLAGS)
57AC_SUBST(MODULE_LIBS)
58
59AC_CONFIG_FILES([Makefile src/Makefile include/mod_gnutls.h])
60AC_OUTPUT
61
62echo "---"
63echo "Configuration summary for mod_gnutls:"
64echo ""
65echo "   * mod_gnutls version:  ${MOD_GNUTLS_VERSION}"
66echo "   * Apache Modules directory:    ${AP_LIBEXECDIR}"
67echo "   * GnuTLS Library version:      ${LIBGNUTLS_VERSION}"
68echo "   * SRP Authentication:          ${use_srp}"
69echo ""
70echo "---"
Note: See TracBrowser for help on using the repository browser.