summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in36
1 files changed, 34 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index de38bd9..a18d5de 100644
--- a/configure.in
+++ b/configure.in
@@ -39,17 +39,38 @@ dnl Process this file with autoconf to produce a configure script.
AC_INIT(mod_auth_singleid, 0.1, stef@memberwebs.com)
AM_INIT_AUTOMAKE(mod_auth_singleid, 0.1)
-AC_CONFIG_SRCDIR([module/mod_auth_singleid.c])
+AC_CONFIG_SRCDIR([module/mod_auth_singleid.cc])
AM_CONFIG_HEADER([config.h])
# Checks for programs.
-AC_PROG_CC
+AC_PROG_CXX
+AC_PROG_CXXCPP
+AC_LANG_CPLUSPLUS
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
+AM_PROG_LIBTOOL
# APACHE Build stuff
+AC_ARG_WITH(apr_config, AC_HELP_STRING([[--with-apr-config=FILE]], [Path to apr-config program]),
+ [ apr_config="$withval" ],
+ [AC_PATH_PROGS(apr_config,
+ [apr-config apr-0-config apr-1-config],
+ [no],
+ [$PATH:/usr/sbin/:/usr/local/apache2/bin]
+ )]
+)
+
+if test "$apr_config" = "no"; then
+ AC_MSG_ERROR(Could not find the apr-config program. You can specify a location with the --with-apr-config=FILE option. It may be named apr-0-config or apr-1-config and can be found in your apache2 bin directory.)
+fi
+
+$apr_config --cppflags &> /dev/null
+if test "$?" != "0"; then
+ AC_MSG_ERROR($apr_config is not a valid apr-config program)
+fi
+
AC_PATH_PROG(APXS, apxs, "failed")
if test "$APXS" = "failed"; then
AC_PATH_PROG(APXS2, apxs2, "failed")
@@ -75,6 +96,17 @@ fi
AC_SUBST(APACHECTL)
+APACHE_CFLAGS="-I`${APXS} -q INCLUDEDIR` -I`${apr_config} --includedir --cppflags`"
+AC_SUBST(APACHE_CFLAGS)
+
+# ------------------------------------------------------------------------------------
+# OPKELE
+
+PKG_CHECK_MODULES([OPKELE], [libopkele >= 2.0], , [
+ AC_MSG_ERROR([no libopkele library found (version 2.0 or higher). get one from http://kin.klever.net/libopkele/])
+])
+
+
AC_DEFINE_UNQUOTED(CONF_PREFIX, "`eval echo ${sysconfdir}`", [Installation Prefix] )
# Debug mode