source: mod_gnutls/configure.ac @ 45ae2ef

debian/masterdebian/stretch-backportsjessie-backportsupstream
Last change on this file since 45ae2ef was c8294ad, checked in by Thomas Klute <thomas2.klute@…>, 4 years ago

Update version to 0.7-beta

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[7bebb42]1dnl
[c8294ad]2AC_INIT(mod_gnutls, 0.7-beta)
[9706fc2]3OOO_CONFIG_NICE(config.nice)
[42307a9]4MOD_GNUTLS_VERSION=AC_PACKAGE_VERSION
[6e0bfd6]5AC_PREREQ(2.53)
[9706fc2]6AC_CONFIG_SRCDIR([src/mod_gnutls.c])
[6e0bfd6]7AC_CONFIG_AUX_DIR(config)
[7bebb42]8
[5a6446d]9OOO_MAINTAIN_MODE
[9706fc2]10AM_MAINTAINER_MODE
11AC_CANONICAL_TARGET
[8a30d35]12AM_INIT_AUTOMAKE
[6e0bfd6]13AM_CONFIG_HEADER(include/mod_gnutls_config.h:config.in)
[9706fc2]14
[42307a9]15AC_SUBST(MOD_GNUTLS_VERSION)
[9706fc2]16
17AC_PROG_CC
18AC_PROG_LD
19AC_PROG_INSTALL
[7bebb42]20AC_PROG_LIBTOOL
[9706fc2]21
[4aec9a1]22AC_CONFIG_MACRO_DIR([m4])
23
[9706fc2]24AP_VERSION=2.0.40
25CHECK_APACHE(,$AP_VERSION,
26    :,:,
27    AC_MSG_ERROR([*** Apache version $AP_VERSION not found!])
28)
29
[0de1839]30PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 3.1.4])
[cac3a7f]31
32LIBGNUTLS_VERSION=`pkg-config --modversion gnutls`
[16068f4]33
[787dab7]34AC_ARG_ENABLE(srp,
35       AS_HELP_STRING([--disable-srp],
36               [unconditionally disable the SRP functionality]),
37       use_srp=$enableval, use_srp=yes)
[b072204]38
[f71e6ce]39# check if the available GnuTLS library supports SRP
40AC_SEARCH_LIBS([gnutls_srp_server_get_username], [gnutls], [], [use_srp="no"])
41
[b072204]42SRP_CFLAGS=""
[787dab7]43if test "$use_srp" != "no"; then
[b27cce7]44        SRP_CFLAGS="-DENABLE_SRP=1"
[787dab7]45fi
[c70c6d7]46
[fd82e59]47AC_ARG_ENABLE(strict,
48       AS_HELP_STRING([--disable-strict],
49               [Avoid strict compiler warnings and errors]),
50       use_strict=$enableval, use_strict=yes)
51
52STRICT_CFLAGS=""
53if test "$use_strict" != "no"; then
54        STRICT_CFLAGS="-Wall -Werror -Wextra"
55fi
56
[787dab7]57AC_MSG_CHECKING([whether to enable SRP functionality])
58AC_MSG_RESULT($use_srp)
59
[fa45dcb]60AC_ARG_ENABLE(msva,
61       AS_HELP_STRING([--enable-msva],
62               [enable Monkeysphere client certificate verification]),
63       use_msva=$enableval, use_msva=no)
[b27cce7]64AM_CONDITIONAL([USE_MSVA], [test "$use_msva" != "no"])
[fa45dcb]65
66MSVA_CFLAGS=""
67if test "$use_msva" != "no"; then
[b27cce7]68        AC_CHECK_HEADERS([msv/msv.h], [],
[fa45dcb]69                         [AC_MSG_ERROR([*** No libmsv headers found!])])
70        AC_SEARCH_LIBS([msv_query_agent], [msv], [],
71                         [AC_MSG_ERROR([*** No libmsv found with msv_query_agent!])])
[b27cce7]72        MSVA_CFLAGS="-DENABLE_MSVA=1"
[fa45dcb]73fi
74
75AC_MSG_CHECKING([whether to enable MSVA functionality])
76AC_MSG_RESULT($use_msva)
77
[6e0bfd6]78have_apr_memcache=0
79CHECK_APR_MEMCACHE([have_apr_memcache=1], [have_apr_memcache=0])
80AC_SUBST(have_apr_memcache)
[ed47098]81
[6e1d45d]82# Building documentation requires pandoc, which in turn needs pdflatex
83# to build PDF output.
[28f3f4f]84build_doc=no
[6e1d45d]85AC_PATH_PROG([PANDOC], [pandoc], [no])
86if test "$PANDOC" != "no"; then
87        AC_PATH_PROG([PDFLATEX], [pdflatex], [no])
[28f3f4f]88        if test "$PDFLATEX" != "no"; then
89                build_doc=yes
90        else
91                build_doc="html only"
92        fi
[6e1d45d]93fi
94AM_CONDITIONAL([USE_PANDOC], [test "$PANDOC" != "no"])
95AM_CONDITIONAL([USE_PDFLATEX], [test "$PANDOC" != "no" && \
96                               test "$PDFLATEX" != "no"])
97
[af7da2d]98# Check for Apache binary
99AC_PATH_PROGS([APACHE2], [apache2 httpd], [no])
100if test "${APACHE2}" = "no"; then
101        AC_MSG_WARN([Neither apache2 nor httpd found in \
[52c3f68]102                     PATH. Test suite will fail.])
103fi
104
[fd82e59]105MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${SRP_CFLAGS} ${MSVA_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES} ${STRICT_CFLAGS}"
[5021874]106MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}"
[9706fc2]107
108AC_SUBST(MODULE_CFLAGS)
[16068f4]109AC_SUBST(MODULE_LIBS)
[9706fc2]110
[6e1d45d]111AC_CONFIG_FILES([Makefile src/Makefile test/Makefile test/tests/Makefile \
112                          doc/Makefile include/mod_gnutls.h])
[9706fc2]113AC_OUTPUT
114
115echo "---"
[42307a9]116echo "Configuration summary for mod_gnutls:"
[9706fc2]117echo ""
[ea14e97]118echo "   * mod_gnutls version:  ${MOD_GNUTLS_VERSION}"
[16068f4]119echo "   * Apache Modules directory:    ${AP_LIBEXECDIR}"
[42307a9]120echo "   * GnuTLS Library version:      ${LIBGNUTLS_VERSION}"
[28f3f4f]121echo "   * SRP Authentication:  ${use_srp}"
122echo "   * MSVA Client Verification:    ${use_msva}"
123echo "   * Build documentation: ${build_doc}"
[9706fc2]124echo ""
125echo "---"
Note: See TracBrowser for help on using the repository browser.