1 dnl Process this file with autoconf to produce a configure script.
2 AC_REVISION($Revision$)
3 AC_INIT(Apache Kerberos Module, 0.5-rc1, modauthkerb-developers@lists.sourceforge.net)
6 [ --with-apache=DIR directory with apache installation.],
10 [ --with-kerberos5=DIR directory where Kerberos5 is installed.],
14 [ --disable-krb5 force disabling of krb5 support],
16 AC_ARG_WITH(kerberos4,
17 [ --with-kerberos4=DIR directory where Kerberos4 is installed.]
21 [ --disable-krb4 force disabling of krb4 support],
23 dnl Checks for programs.
26 if test -z "$ac_static" ; then
27 AC_PATH_PROG(APXS, apxs)
28 if test -z "$APXS" ; then
29 echo "No apxs found. Defaulting to static module generation."
34 dnl Checks for typedefs, structures, and compiler characteristics.
35 if test -z "$ac_api" ; then
36 if test -n "`$APXS -q bindir 2> /dev/null`" ; then
37 echo "API autodetected to be Apache 2.*"
41 echo "API autodetected to be Apache 1.*"
48 dnl Checks for library functions.
51 dnl Last minute settings.
52 LIBS="$LIBS $ac_krblibs"
53 DEFS="$DEFS $ac_apidefs $ac_krbdefs"
54 CFLAGS="$CFLAGS $DEFS"
57 dnl Create files necessary to compile mod_auth_kerb.
58 if test "$ac_static" = "yes" ; then
61 echo "This module is to be built statically into Apache. You will need"
62 echo "to place it into the appropriate location in the source tree and"
63 echo "compile Apache accordingly. You can look at the online docs at"
64 echo "http://modauthkerb.sourceforge.net/ or README.static for more"
70 AC_OUTPUT(src/Makefile)