aboutsummaryrefslogtreecommitdiffstats
path: root/m4/apache.m4
blob: 6051821881467ed19506d46652a6cd3aad4bc96e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151

dnl CHECK_APACHE([MINIMUM13-VERSION [, MINIMUM20-VERSION [, 
dnl            ACTION-IF-FOUND13 [, ACTION-IF-FOUND20 [, ACTION-IF-NOT-FOUND]]])
dnl Test for Apache apxs, APR, and APU

AC_DEFUN([CHECK_APACHE],
[dnl
AC_ARG_WITH(
    apxs,
    [AC_HELP_STRING([--with-apxs=PATH],[Path to apxs])],
    apxs_prefix="$withval",
    apxs_prefix="/usr"
    )

AC_ARG_ENABLE(
        apachetest,
        [AC_HELP_STRING([--disable-apxstest],[Do not try to compile and run apache version test program])],
        ,
        enable_apachetest=yes
    )

    if test -x $apxs_prefix -a ! -d $apxs_prefix; then
        APXS_BIN=$apxs_prefix
    else
        test_paths="$apxs_prefix:$apxs_prefix/bin:$apxs_prefix/sbin"
        test_paths="${test_paths}:/usr/bin:/usr/sbin"
        test_paths="${test_paths}:/usr/local/bin:/usr/local/sbin:/usr/local/apache2/bin"
        AC_PATH_PROG(APXS_BIN, apxs, no, [$test_paths])
    fi
    min_apache13_version=ifelse([$1], ,no,$1)
    min_apache20_version=ifelse([$2], ,no,$2)
    no_apxs=""
    if test "$APXS_BIN" = "no"; then
        AC_MSG_ERROR([*** The apxs binary installed by apache could not be found!])
        AC_MSG_ERROR([*** Use the --with-apxs option with the full path to apxs])
    else
        AP_INCLUDES="-I`$APXS_BIN -q INCLUDEDIR 2>/dev/null`"
        AP_INCLUDEDIR="`$APXS_BIN -q INCLUDEDIR 2>/dev/null`"

        AP_PREFIX="`$APXS_BIN -q prefix 2>/dev/null`"

        AP_BINDIR="`$APXS_BIN -q bindir 2>/dev/null`"
        AP_SBINDIR="`$APXS_BIN -q sbindir 2>/dev/null`"
        AP_SYSCONFDIR="`$APXS_BIN -q sysconfdir 2>/dev/null`"

        APXS_CFLAGS=""
        for flag in CFLAGS EXTRA_CFLAGS EXTRA_CPPFLAGS NOTEST_CFLAGS; do
            APXS_CFLAGS="$APXS_CFLAGS `$APXS_BIN -q $flag 2>/dev/null`"
        done

        AP_CPPFLAGS="$APXS_CPPFLAGS $AP_INCLUDES"
        AP_CFLAGS="$APXS_CFLAGS $AP_INCLUDES"

        AP_LIBEXECDIR=`$APXS_BIN -q LIBEXECDIR 2>/dev/null`

        if test "x$enable_apachetest" = "xyes" ; then
            if test "$min_apache20_version" != "no"; then
                APR_CONFIG="`$APXS_BIN -q APR_BINDIR 2>/dev/null`/apr-1-config"
                if test ! -x $APR_CONFIG; then
                    APR_CONFIG="`$APXS_BIN -q APR_BINDIR 2>/dev/null`/apr-config"
                fi
                APR_INCLUDES=`$APR_CONFIG --includes 2>/dev/null`
                APR_LDFLAGS=`$APR_CONFIG --link-ld 2>/dev/null`
                APR_LIBS=`$APR_CONFIG --libs 2>/dev/null`
                APR_LIBTOOL=`$APR_CONFIG --link-libtool 2>/dev/null`
                APR_CPPFLAGS=`$APR_CONFIG --cppflags 2>/dev/null`
                APR_CFLAGS=`$APR_CONFIG --cflags 2>/dev/null`
                APR_VERSION=`$APR_CONFIG --version 2>/dev/null`
                APU_CONFIG="`$APXS_BIN -q APU_BINDIR 2>/dev/null`/apu-1-config"
                if test ! -x $APU_CONFIG; then
                    APU_CONFIG="`$APXS_BIN -q APU_BINDIR 2>/dev/null`/apu-config"
                fi
                APU_INCLUDES=`$APU_CONFIG --includes 2>/dev/null`
                APU_LDFLAGS=`$APU_CONFIG --link-ld 2>/dev/null`
                APU_LIBS=`$APU_CONFIG --libs 2>/dev/null`
                APU_LIBTOOL=`$APU_CONFIG --link-libtool 2>/dev/null`
                APU_VERSION=`$APU_CONFIG --version 2>/dev/null`

                AC_MSG_CHECKING(for Apache 2.0 version >= $min_apache20_version)
                TEST_APACHE_VERSION(20,$min_apache20_version,
                    AC_MSG_RESULT(yes)
                    AC_DEFINE(WITH_APACHE20,1,[Define to 1 if we are compiling with Apache 2.0.x])
     
2007-12-15
|
* (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-10
|
* (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-10
|
* (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-09
|
* Do not allow resuming sessions on different servers.Gravatar Nokis Mavrogiannopoulos 2007-12-09
|
* Corrected bug which did not allow the TLS session cache to be used.Gravatar Nokis Mavrogiannopoulos 2007-12-09
|
* Added support for sending more than one certificate.Gravatar Nokis Mavrogiannopoulos 2007-12-08
|
* added more error checks.Gravatar Nokis Mavrogiannopoulos 2007-12-03
|
* better handling of RSAFile and DHFileGravatar Nokis Mavrogiannopoulos 2007-12-03
|
* report the missing GnuTLSPriorities for the gnutls enabled hosts only.Gravatar Nokis Mavrogiannopoulos 2007-12-02
|
* No more defaults for dhparams, rsaparams. Check for GnuTLSPriorities.Gravatar Nokis Mavrogiannopoulos 2007-12-02
|
* The compatibility mode can now be enabled only using the GnuTLSPriorities ↵Gravatar Nokis Mavrogiannopoulos 2007-12-02
| | | | string.
* (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-02
|
* added SSL_SERVER/CLIENT_S_TYPEGravatar Nokis Mavrogiannopoulos 2007-12-02
|
* export the alternative names of the certificateGravatar Nokis Mavrogiannopoulos 2007-12-02
|
* added SSL_SERVER_M_SERIAL environment variableGravatar Nokis Mavrogiannopoulos 2007-12-02
|
* more fixes for subject alternative name.Gravatar Nokis Mavrogiannopoulos 2007-12-02
|
* some fixes in alternative name supportGravatar Nokis Mavrogiannopoulos 2007-12-02
|
* Added support for subject alternative names. (untested)Gravatar Nokis Mavrogiannopoulos 2007-12-01
|
* upgraded to 0.4.00.4.0Gravatar Nokis Mavrogiannopoulos 2007-11-28
|
* Put a limit on the number of times we try to handshake.Gravatar Paul Querna 2005-09-25
|
* start the CA Certificate code.Gravatar Paul Querna 2005-05-24
|
* - add lua to do client verificationGravatar Paul Querna 2005-05-17
| | | | | - only use gcrypt locking when required to
* Refactor finding the correct server record to fix resumed sessions.0.2.00.2.xGravatar Paul Querna 2005-04-25
|
* apr_table_setn doesn't copy the data. oops.Gravatar Paul Querna 2005-04-24
|
* We already have a Certificate, use it directly. With SNI, GnuTLS doesn't ↵Gravatar Paul Querna 2005-04-24
| | | | properly update it's internal state. ick.
* if there aren't any certs.. still set something.Gravatar Paul Querna 2005-04-24
|
* add SSL_SERVER_S_DN and SSL_SERVER_I_DN Gravatar Paul Querna 2005-04-24
|
* - move hooks to gnutls_hooks.cGravatar Paul Querna 2005-04-24
| | | | | - use 'mgs_' as the prefix for all symbols, instead of mixed prefixes.
* move config functions to their own file. Gravatar Paul Querna 2005-04-24
|
* - remove more debug logging.Gravatar Paul Querna 2005-04-22
| | | | | - fix a crash by changing the certificate structure *after* starting the handshake.
* client auth is sort of working.Gravatar Paul Querna 2005-04-22
|
* working SNI. Not so working Client Cert support.Gravatar Paul Querna 2005-04-21
|
* include support for 2.0.xxGravatar Paul Querna 2005-04-08
|
* wrap the debug log in maintainer mode.Gravatar Paul Querna 2005-04-08
|
* - remove anno credsGravatar Paul Querna 2005-04-06
| | | | | | | | - initial attempt at Server Name Extension - change to adding 'mod_gnutls' to the server sig instead of GnuTLS/ - fix for EOF/EOC/EOS buckets - 'general' code cleanups