summaryrefslogtreecommitdiffstats
path: root/m4/mod_ssl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/mod_ssl.m4')
-rw-r--r--m4/mod_ssl.m450
1 files changed, 0 insertions, 50 deletions
diff --git a/m4/mod_ssl.m4 b/m4/mod_ssl.m4
deleted file mode 100644
index c431bce..0000000
--- a/m4/mod_ssl.m4
+++ /dev/null
@@ -1,50 +0,0 @@
1dnl CHECK_PATH_MOD_SSL([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
2dnl Test for mod_ssl and openssl header directory.
3dnl
4AC_DEFUN(CHECK_PATH_MOD_SSL,
5[dnl
6AC_ARG_ENABLE(
7 ssl,
8 [AC_HELP_STRING([--enable-ssl],[Compile in SSL support])],
9 ssl_val=yes,
10 ssl_val=no
11 )
12AC_ARG_WITH(
13 ssl-inc,
14 [AC_HELP_STRING([--with-ssl-inc=DIR],[Location of SSL header files])],
15 ssl_incdir="$withval",
16 )
17AC_ARG_WITH(
18 db-inc,
19 [AC_HELP_STRING([--with-db-inc=DIR],[Location of DB header files])],
20 db_incdir="$withval",
21 db_incdir="/usr/include/db1"
22 )
23
24 if test "x$ssl_val" = "xyes"; then
25 ac_save_CFLAGS=$CFLAGS
26 ac_save_CPPFLAGS=$CPPFLAGS
27 MOD_SSL_CFLAGS="-I/usr/include/openssl"
28 if test "x$ssl_incdir" != "x"; then
29 MOD_SSL_CFLAGS="-I$ssl_incdir -I$ssl_incdir/openssl $MOD_SSL_CFLAGS"
30 fi
31 if test "x$db_incdir" != "x"; then
32 MOD_SSL_CFLAGS="-I$db_incdir $MOD_SSL_CFLAGS"
33 fi
34 CFLAGS="$APACHE_CFLAGS $APACHE_CPPFLAGS $MOD_SSL_CFLAGS $CFLAGS"
35 CPPFLAGS="$APACHE_CFLAGS $APACHE_CPPFLAGS $MOD_SSL_CFLAGS $CPPFLAGS"
36 AC_CHECK_HEADERS([mod_ssl.h],
37 mod_ssl_h=yes
38 )
39 CFLAGS=$ac_save_CFLAGS
40 CPPFLAGS=$ac_save_CPPFLAGS
41 if test "x$mod_ssl_h" = "x"; then
42 ifelse([$2], , :, [$2])
43 else
44 AC_SUBST(MOD_SSL_CFLAGS)
45 ifelse([$1], , :, [$1])
46 fi
47 else
48 ifelse([$2], , :, [$2])
49 fi
50])