summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac36
1 files changed, 6 insertions, 30 deletions
diff --git a/configure.ac b/configure.ac
index 42e2bde..fb036ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,5 @@
1dnl Required initializer 1dnl Required initializer
2AC_INIT(mod_log_sql, 1.98) 2AC_INIT(mod_log_sql, 1.95)
3OOO_CONFIG_NICE(config.nice)
4AC_PREREQ(2.53) 3AC_PREREQ(2.53)
5AC_CONFIG_HEADERS(config.h) 4AC_CONFIG_HEADERS(config.h)
6 5
@@ -9,9 +8,9 @@ AC_CONFIG_SRCDIR(mod_log_sql.c)
9dnl Add a test for a compiler. 8dnl Add a test for a compiler.
10AC_PROG_CC 9AC_PROG_CC
11 10
12APACHE20_VERSION=2.0.40 11APACHE20_VERSION=2.0.44
13APACHE13_VERSION=1.3.20 12APACHE13_VERSION=1.3.20
14CHECK_APACHE($APACHE13_VERSION,$APACHE20_VERSION, 13CHECK_PATH_APACHE($APACHE13_VERSION,$APACHE20_VERSION,
15 :, 14 :,
16 :, 15 :,
17 AC_MSG_ERROR([*** The correct version Apache was not found!]) 16 AC_MSG_ERROR([*** The correct version Apache was not found!])
@@ -31,43 +30,20 @@ CHECK_PATH_MOD_SSL(
31 30
32AC_SUBST(WANT_SSL_MOD) 31AC_SUBST(WANT_SSL_MOD)
33 32
34WANT_MYSQL_MOD=1
35AC_SUBST(WANT_MYSQL_MOD)
36WANT_PGSQL_MOD=0
37AC_SUBST(WANT_PGSQL_MOD)
38WANT_DBI_MOD=0
39AC_SUBST(WANT_DBI_MOD)
40
41case "$target" in
42 *-*-solaris* | *-*-osf* )
43 if test $APACHE_VERSION -eq 1.3; then
44 RT_LIBS=-lrt
45 fi
46 ;;
47 *)
48 RT_LIBS=""
49 ;;
50esac
51
52AC_SUBST(RT_LIBS)
53
54
55AC_CHECK_HEADERS(limits.h) 33AC_CHECK_HEADERS(limits.h)
56 34
57AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h]) 35AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
58 36
59dnl Write config.status and the Makefile 37dnl Write config.status and the Makefile
60 38
61AC_OUTPUT(Makefile 39AC_OUTPUT(Makefile Documentation/Makefile)
62docs/Makefile
63contrib/Makefile)
64
65 40
66AC_MSG_RESULT([------------------------------------]) 41AC_MSG_RESULT([------------------------------------])
67AC_MSG_RESULT([Apache version : $AP_VERSION]) 42AC_MSG_RESULT([Apache version : $APACHE_VERSION])
68if test $WANT_SSL_MOD -eq 1; then 43if test $WANT_SSL_MOD -eq 1; then
69 AC_MSG_RESULT([SSL Support : yes]) 44 AC_MSG_RESULT([SSL Support : yes])
70else 45else
71 AC_MSG_RESULT([SSL Support : no]) 46 AC_MSG_RESULT([SSL Support : no])
72 AC_MSG_RESULT([*** Use --enable-ssl to enable SSL support]) 47 AC_MSG_RESULT([*** Use --enable-ssl to enable SSL support])
48 AC_MSG_RESULT([*** and --with-ssl-inc for the directory for SSL headers])
73fi 49fi