]> granicus.if.org Git - apache/blob - hints.m4
Force all Apache functions to be linked into the executable, whether they
[apache] / hints.m4
1 dnl
2 dnl APR_PRELOAD
3 dnl
4 dnl  Preload various ENV/makefile paramsm such as CC, CFLAGS, etc
5 dnl  based on outside knowledge
6 dnl
7 AC_DEFUN(APACHE_PRELOAD, [
8 echo "Applying hints file rules for $host"
9
10 case "$host" in
11     *-apple-aux3*)
12         APR_SETVAR(APACHE_MPM, [prefork])
13         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
14         ;;
15     *os2_emx*)
16         APR_SETVAR(APACHE_MPM, [spmt_os2])
17         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
18         ;;
19     *-linux-*)
20         case `uname -r` in
21             2.2* ) APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
22                    ;;
23             * )
24                    ;;
25         esac
26         ;;
27     *486-*-bsdi*)
28         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
29         ;;
30     *-netbsd*)
31         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
32         ;;
33     *-freebsd*)
34         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
35         ;;
36 dnl    *-apple-rhapsody*)
37 dnl     APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
38 dnl     ;;
39     *-apple-darwin*)
40         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
41         ;;
42     *-dec-osf*)
43         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
44         ;;
45     *-qnx)
46         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
47         ;;
48 esac
49 APR_DOEXTRA
50 ])