2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="ABOUT_APACHE"
602 ac_default_prefix=/usr/local/apache2
603 # Factoring default headers for most tests.
604 ac_includes_default="\
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
616 # ifdef HAVE_STDLIB_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
639 ac_subst_vars='LTLIBOBJS
692 AP_SIG_GRACEFUL_SHORT
693 AP_SIG_GRACEFUL_STRING
716 MOD_NEGOTIATION_LDADD
717 MOD_VHOST_ALIAS_LDADD
740 MOD_OPTIONAL_FN_EXPORT_LDADD
741 MOD_OPTIONAL_FN_IMPORT_LDADD
742 MOD_OPTIONAL_HOOK_IMPORT_LDADD
743 MOD_OPTIONAL_HOOK_EXPORT_LDADD
748 MOD_PROXY_CONNECT_LDADD
760 MOD_LOG_FORENSIC_LDADD
768 MOD_CASE_FILTER_IN_LDADD
769 MOD_CASE_FILTER_LDADD
774 MOD_CHARSET_LITE_LDADD
778 MOD_AUTH_DIGEST_LDADD
879 program_transform_name
891 enable_option_checking
897 enable_exception_hook
898 enable_maintainer_mode
915 enable_case_filter_in
941 enable_optional_hook_export
942 enable_optional_hook_import
943 enable_optional_fn_import
944 enable_optional_fn_export
947 enable_static_support
948 enable_static_htpasswd
949 enable_static_htdigest
950 enable_static_rotatelogs
951 enable_static_logresolve
954 enable_static_checkgid
988 ac_precious_vars='build_alias
999 # Initialize some variables set by options.
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1013 program_transform_name=s,x,x,
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE}'
1038 infodir='${datarootdir}/info'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1051 # If the previous option needs an argument, assign it.
1052 if test -n "$ac_prev"; then
1053 eval $ac_prev=\$ac_option
1059 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063 # Accept the important Cygnus configure options, so we can diagnose typos.
1065 case $ac_dashdash$ac_option in
1069 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1071 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072 bindir=$ac_optarg ;;
1074 -build | --build | --buil | --bui | --bu)
1075 ac_prev=build_alias ;;
1076 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077 build_alias=$ac_optarg ;;
1079 -cache-file | --cache-file | --cache-fil | --cache-fi \
1080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081 ac_prev=cache_file ;;
1082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084 cache_file=$ac_optarg ;;
1086 --config-cache | -C)
1087 cache_file=config.cache ;;
1089 -datadir | --datadir | --datadi | --datad)
1091 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092 datadir=$ac_optarg ;;
1094 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095 | --dataroo | --dataro | --datar)
1096 ac_prev=datarootdir ;;
1097 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099 datarootdir=$ac_optarg ;;
1101 -disable-* | --disable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval enable_$ac_useropt=no ;;
1118 -docdir | --docdir | --docdi | --doc | --do)
1120 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121 docdir=$ac_optarg ;;
1123 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1125 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126 dvidir=$ac_optarg ;;
1128 -enable-* | --enable-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "enable_$ac_useropt"
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval enable_$ac_useropt=\$ac_optarg ;;
1145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147 | --exec | --exe | --ex)
1148 ac_prev=exec_prefix ;;
1149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151 | --exec=* | --exe=* | --ex=*)
1152 exec_prefix=$ac_optarg ;;
1154 -gas | --gas | --ga | --g)
1155 # Obsolete; use --with-gas.
1158 -help | --help | --hel | --he | -h)
1159 ac_init_help=long ;;
1160 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161 ac_init_help=recursive ;;
1162 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163 ac_init_help=short ;;
1165 -host | --host | --hos | --ho)
1166 ac_prev=host_alias ;;
1167 -host=* | --host=* | --hos=* | --ho=*)
1168 host_alias=$ac_optarg ;;
1170 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1172 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1174 htmldir=$ac_optarg ;;
1176 -includedir | --includedir | --includedi | --included | --include \
1177 | --includ | --inclu | --incl | --inc)
1178 ac_prev=includedir ;;
1179 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180 | --includ=* | --inclu=* | --incl=* | --inc=*)
1181 includedir=$ac_optarg ;;
1183 -infodir | --infodir | --infodi | --infod | --info | --inf)
1185 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186 infodir=$ac_optarg ;;
1188 -libdir | --libdir | --libdi | --libd)
1190 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191 libdir=$ac_optarg ;;
1193 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194 | --libexe | --libex | --libe)
1195 ac_prev=libexecdir ;;
1196 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197 | --libexe=* | --libex=* | --libe=*)
1198 libexecdir=$ac_optarg ;;
1200 -localedir | --localedir | --localedi | --localed | --locale)
1201 ac_prev=localedir ;;
1202 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203 localedir=$ac_optarg ;;
1205 -localstatedir | --localstatedir | --localstatedi | --localstated \
1206 | --localstate | --localstat | --localsta | --localst | --locals)
1207 ac_prev=localstatedir ;;
1208 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210 localstatedir=$ac_optarg ;;
1212 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1214 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215 mandir=$ac_optarg ;;
1217 -nfp | --nfp | --nf)
1218 # Obsolete; use --without-fp.
1221 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222 | --no-cr | --no-c | -n)
1225 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1229 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231 | --oldin | --oldi | --old | --ol | --o)
1232 ac_prev=oldincludedir ;;
1233 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236 oldincludedir=$ac_optarg ;;
1238 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1240 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241 prefix=$ac_optarg ;;
1243 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244 | --program-pre | --program-pr | --program-p)
1245 ac_prev=program_prefix ;;
1246 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248 program_prefix=$ac_optarg ;;
1250 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251 | --program-suf | --program-su | --program-s)
1252 ac_prev=program_suffix ;;
1253 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255 program_suffix=$ac_optarg ;;
1257 -program-transform-name | --program-transform-name \
1258 | --program-transform-nam | --program-transform-na \
1259 | --program-transform-n | --program-transform- \
1260 | --program-transform | --program-transfor \
1261 | --program-transfo | --program-transf \
1262 | --program-trans | --program-tran \
1263 | --progr-tra | --program-tr | --program-t)
1264 ac_prev=program_transform_name ;;
1265 -program-transform-name=* | --program-transform-name=* \
1266 | --program-transform-nam=* | --program-transform-na=* \
1267 | --program-transform-n=* | --program-transform-=* \
1268 | --program-transform=* | --program-transfor=* \
1269 | --program-transfo=* | --program-transf=* \
1270 | --program-trans=* | --program-tran=* \
1271 | --progr-tra=* | --program-tr=* | --program-t=*)
1272 program_transform_name=$ac_optarg ;;
1274 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1276 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277 pdfdir=$ac_optarg ;;
1279 -psdir | --psdir | --psdi | --psd | --ps)
1281 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1288 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292 sbindir=$ac_optarg ;;
1294 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296 | --sharedst | --shareds | --shared | --share | --shar \
1298 ac_prev=sharedstatedir ;;
1299 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303 sharedstatedir=$ac_optarg ;;
1305 -site | --site | --sit)
1307 -site=* | --site=* | --sit=*)
1310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313 srcdir=$ac_optarg ;;
1315 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316 | --syscon | --sysco | --sysc | --sys | --sy)
1317 ac_prev=sysconfdir ;;
1318 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320 sysconfdir=$ac_optarg ;;
1322 -target | --target | --targe | --targ | --tar | --ta | --t)
1323 ac_prev=target_alias ;;
1324 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325 target_alias=$ac_optarg ;;
1327 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330 -version | --version | --versio | --versi | --vers | -V)
1331 ac_init_version=: ;;
1334 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338 { (exit 1); exit 1; }; }
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1348 eval with_$ac_useropt=\$ac_optarg ;;
1350 -without-* | --without-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355 { (exit 1); exit 1; }; }
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1365 eval with_$ac_useropt=no ;;
1368 # Obsolete; use --with-x.
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386 Try \`$0 --help' for more information." >&2
1387 { (exit 1); exit 1; }; }
1391 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1394 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395 { (exit 1); exit 1; }; }
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413 { (exit 1); exit 1; }; }
1416 if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1419 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420 { (exit 1); exit 1; }; } ;;
1421 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1425 # Check all directory arguments for consistency.
1426 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427 datadir sysconfdir sharedstatedir localstatedir includedir \
1428 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429 libdir localedir mandir
1431 eval ac_val=\$$ac_var
1432 # Remove trailing slashes.
1435 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436 eval $ac_var=\$ac_val;;
1438 # Be sure to have absolute directory names.
1440 [\\/$]* | ?:[\\/]* ) continue;;
1441 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1443 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444 { (exit 1); exit 1; }; }
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1452 target=$target_alias
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456 if test "x$build_alias" = x; then
1457 cross_compiling=maybe
1458 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459 If a cross compiler is detected then cross compile mode will be used." >&2
1460 elif test "x$build_alias" != "x$host_alias"; then
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1468 test "$silent" = yes && exec 6>/dev/null
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475 { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478 { (exit 1); exit 1; }; }
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483 ac_srcdir_defaulted=yes
1484 # Try the directory containing this script, then the parent directory.
1485 ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487 X"$as_myself" : 'X\(//\)[^/]' \| \
1488 X"$as_myself" : 'X\(//\)$' \| \
1489 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1513 ac_srcdir_defaulted=no
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518 { (exit 1); exit 1; }; }
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523 { (exit 1); exit 1; }; }
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 for ac_var in $ac_precious_vars; do
1536 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_${ac_var}_value=\$${ac_var}
1538 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1543 # Report the --help message.
1545 if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1549 \`configure' configures this package to adapt to many kinds of systems.
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE. See below for descriptions of some of the useful variables.
1556 Defaults for the options are specified in brackets.
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1569 Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1580 For better control, use the options below.
1582 Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1598 --htmldir=DIR html documentation [DOCDIR]
1599 --dvidir=DIR dvi documentation [DOCDIR]
1600 --pdfdir=DIR pdf documentation [DOCDIR]
1601 --psdir=DIR ps documentation [DOCDIR]
1607 --build=BUILD configure for building on BUILD [guessed]
1608 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1609 --target=TARGET configure for building compilers for TARGET [HOST]
1613 if test -n "$ac_init_help"; then
1618 --disable-option-checking ignore unrecognized --enable/--with options
1619 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1620 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1621 --enable-layout=LAYOUT
1622 --enable-v4-mapped Allow IPv6 sockets to handle IPv4 connections
1623 --enable-exception-hook Enable fatal exception hook
1624 --enable-maintainer-mode
1625 Turn on debugging and compile time warnings
1626 --enable-modules=MODULE-LIST
1628 --enable-mods-shared=MODULE-LIST
1629 Shared modules to enable
1630 --disable-access host-based access control
1631 --disable-auth user-based access control
1632 --enable-auth-anon anonymous user access
1633 --enable-auth-dbm DBM-based access databases
1634 --enable-auth-digest RFC2617 Digest authentication
1635 --enable-isapi isapi extension support
1636 --enable-file-cache File cache
1637 --enable-echo ECHO server
1638 --disable-charset-lite character set translation
1639 --enable-charset-lite character set translation
1640 --enable-cache dynamic file caching
1641 --enable-disk-cache disk caching module
1642 --enable-mem-cache memory caching module
1643 --enable-example example and demo module
1644 --enable-case-filter example uppercase conversion filter
1645 --enable-case-filter-in example uppercase conversion input filter
1646 --enable-dumpio I/O dump filter
1647 --enable-ldap LDAP caching and connection pooling services
1648 --enable-auth-ldap LDAP based authentication
1649 --enable-ext-filter external filter module
1650 --disable-include Server Side Includes
1651 --enable-deflate Deflate transfer encoding support
1652 --disable-log-config logging configuration
1653 --enable-log-forensic forensic logging
1654 --enable-logio input and output logging
1655 --disable-env clearing/setting of ENV vars
1656 --enable-mime-magic automagically determining MIME type
1657 --enable-cern-meta CERN-type meta files
1658 --enable-expires Expires header control
1659 --enable-headers HTTP header control
1660 --enable-usertrack user-session tracking
1661 --enable-unique-id per-request unique ids
1662 --disable-setenvif basing ENV vars on headers
1663 --enable-version determining httpd version in config files
1664 --enable-proxy Apache proxy module
1665 --enable-proxy-connect Apache proxy CONNECT module
1666 --enable-proxy-ftp Apache proxy FTP module
1667 --enable-proxy-http Apache proxy HTTP module
1668 --enable-ssl SSL/TLS support (mod_ssl)
1669 --enable-optional-hook-export
1670 example optional hook exporter
1671 --enable-optional-hook-import
1672 example optional hook importer
1673 --enable-optional-fn-import
1674 example optional function importer
1675 --enable-optional-fn-export
1676 example optional function exporter
1677 --enable-bucketeer buckets manipulation filter
1678 --enable-static-support Build a statically linked version the support
1680 --enable-static-htpasswd
1681 Build a statically linked version of htpasswd
1682 --enable-static-htdigest
1683 Build a statically linked version of htdigest
1684 --enable-static-rotatelogs
1685 Build a statically linked version of rotatelogs
1686 --enable-static-logresolve
1687 Build a statically linked version of logresolve
1688 --enable-static-htdbm Build a statically linked version of htdbm
1689 --enable-static-ab Build a statically linked version of ab
1690 --enable-static-checkgid
1691 Build a statically linked version of checkgid
1692 --enable-http HTTP protocol handling
1693 --disable-mime mapping of file-extension to MIME
1694 --enable-dav WebDAV protocol handling
1695 --disable-status process/thread monitoring
1696 --disable-autoindex directory listing
1697 --disable-asis as-is filetypes
1698 --enable-info server information
1699 --enable-suexec set uid and gid for spawned processes
1700 --disable-cgid CGI scripts
1701 --enable-cgi CGI scripts
1702 --disable-cgi CGI scripts
1703 --enable-cgid CGI scripts
1704 --enable-dav-fs DAV provider for the filesystem
1705 --enable-vhost-alias mass virtual hosting module
1706 --disable-negotiation content negotiation
1707 --disable-dir directory request handling
1708 --disable-imap server-side imagemaps
1709 --disable-actions Action triggering on requests
1710 --enable-speling correct common URL misspellings
1711 --disable-userdir mapping of requests to user-specific directories
1712 --disable-alias mapping of requests to different filesystem parts
1713 --enable-rewrite rule based URL manipulation
1714 --enable-so DSO capability
1717 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1718 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1719 --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
1720 or the full path to apr-config
1721 --with-apr-util=DIR prefix for installed APU, or path to APU build tree
1722 --with-port=PORT Port on which to listen (default is 80)
1723 --with-z=DIR use a specific zlib library
1724 --with-ssl=DIR SSL/TLS toolkit (OpenSSL)
1725 --with-mpm=MPM Choose the process model for Apache to use.
1726 MPM={beos|worker|prefork|mpmt_os2|perchild|leader|threadpool}
1727 --with-module=module-type:module-file
1728 Enable module-file in the modules/<module-type>
1730 --with-program-name alternate executable name
1731 --with-suexec-bin Path to suexec binary
1732 --with-suexec-caller User allowed to call SuExec
1733 --with-suexec-userdir User subdirectory
1734 --with-suexec-docroot SuExec root directory
1735 --with-suexec-uidmin Minimal allowed UID
1736 --with-suexec-gidmin Minimal allowed GID
1737 --with-suexec-logfile Set the logfile
1738 --with-suexec-safepath Set the safepath
1739 --with-suexec-umask umask for suexec'd process
1741 Some influential environment variables:
1742 CC C compiler command
1743 CFLAGS C compiler flags
1744 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1745 nonstandard directory <lib dir>
1746 LIBS libraries to pass to the linker, e.g. -l<library>
1747 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1748 you have headers in a nonstandard directory <include dir>
1751 Use these variables to override the choices made by `configure' or to help
1752 it to find libraries and programs with nonstandard names/locations.
1758 if test "$ac_init_help" = "recursive"; then
1759 # If there are subdirs, report their specific --help.
1760 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1761 test -d "$ac_dir" ||
1762 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1769 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1770 # A ".." for each directory in $ac_dir_suffix.
1771 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1772 case $ac_top_builddir_sub in
1773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1777 ac_abs_top_builddir=$ac_pwd
1778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1779 # for backward compatibility:
1780 ac_top_builddir=$ac_top_build_prefix
1783 .) # We are building in place.
1785 ac_top_srcdir=$ac_top_builddir_sub
1786 ac_abs_top_srcdir=$ac_pwd ;;
1787 [\\/]* | ?:[\\/]* ) # Absolute name.
1788 ac_srcdir=$srcdir$ac_dir_suffix;
1789 ac_top_srcdir=$srcdir
1790 ac_abs_top_srcdir=$srcdir ;;
1792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1793 ac_top_srcdir=$ac_top_build_prefix$srcdir
1794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1798 cd "$ac_dir" || { ac_status=$?; continue; }
1799 # Check for guested configure.
1800 if test -f "$ac_srcdir/configure.gnu"; then
1802 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1803 elif test -f "$ac_srcdir/configure"; then
1805 $SHELL "$ac_srcdir/configure" --help=recursive
1807 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1809 cd "$ac_pwd" || { ac_status=$?; break; }
1813 test -n "$ac_init_help" && exit $ac_status
1814 if $ac_init_version; then
1817 generated by GNU Autoconf 2.63
1819 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1820 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1821 This configure script is free software; the Free Software Foundation
1822 gives unlimited permission to copy, distribute and modify it.
1826 cat >config.log <<_ACEOF
1827 This file contains any messages produced by compilers while
1828 running configure, to aid debugging if configure makes a mistake.
1830 It was created by $as_me, which was
1831 generated by GNU Autoconf 2.63. Invocation command line was
1843 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1844 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1845 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1846 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1847 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1849 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1850 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1852 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1853 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1854 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1855 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1856 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1857 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1858 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 $as_echo "PATH: $as_dir"
1883 # Keep a trace of the command line.
1884 # Strip out --no-create and --no-recursion so they do not pile up.
1885 # Strip out --silent because we don't want to record it for future runs.
1886 # Also quote any args containing shell meta-characters.
1887 # Make two passes to allow for proper duplicate-argument suppression.
1891 ac_must_keep_next=false
1897 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1899 | -silent | --silent | --silen | --sile | --sil)
1902 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1907 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1908 if test $ac_must_keep_next = true; then
1909 ac_must_keep_next=false # Got value, back to normal.
1912 *=* | --config-cache | -C | -disable-* | --disable-* \
1913 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1914 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1915 | -with-* | --with-* | -without-* | --without-* | --x)
1916 case "$ac_configure_args0 " in
1917 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1920 -* ) ac_must_keep_next=true ;;
1923 ac_configure_args="$ac_configure_args '$ac_arg'"
1928 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1929 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1931 # When interrupted or exit'd, cleanup temporary files, and complete
1932 # config.log. We remove comments because anyway the quotes in there
1933 # would cause problems or look ugly.
1934 # WARNING: Use '\'' to represent an apostrophe within the trap.
1935 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1936 trap 'exit_status=$?
1937 # Save into config.log some information that might help in debugging.
1942 ## ---------------- ##
1943 ## Cache variables. ##
1944 ## ---------------- ##
1947 # The following way of writing the cache mishandles newlines in values,
1949 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1950 eval ac_val=\$$ac_var
1954 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958 _ | IFS | as_nl) ;; #(
1959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1960 *) $as_unset $ac_var ;;
1965 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1966 *${as_nl}ac_space=\ *)
1968 "s/'\''/'\''\\\\'\'''\''/g;
1969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1980 ## ----------------- ##
1981 ## Output variables. ##
1982 ## ----------------- ##
1985 for ac_var in $ac_subst_vars
1987 eval ac_val=\$$ac_var
1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991 $as_echo "$ac_var='\''$ac_val'\''"
1995 if test -n "$ac_subst_files"; then
1997 ## ------------------- ##
1998 ## File substitutions. ##
1999 ## ------------------- ##
2002 for ac_var in $ac_subst_files
2004 eval ac_val=\$$ac_var
2006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2008 $as_echo "$ac_var='\''$ac_val'\''"
2013 if test -s confdefs.h; then
2023 test "$ac_signal" != 0 &&
2024 $as_echo "$as_me: caught signal $ac_signal"
2025 $as_echo "$as_me: exit $exit_status"
2027 rm -f core *.core core.conftest.* &&
2028 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2031 for ac_signal in 1 2 13 15; do
2032 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2037 rm -f -r conftest* confdefs.h
2039 # Predefined preprocessor variables.
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_NAME "$PACKAGE_NAME"
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_STRING "$PACKAGE_STRING"
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2066 # Let the site file select an alternate cache file if it wants to.
2067 # Prefer an explicitly selected file to automatically selected ones.
2070 if test -n "$CONFIG_SITE"; then
2071 ac_site_file1=$CONFIG_SITE
2072 elif test "x$prefix" != xNONE; then
2073 ac_site_file1=$prefix/share/config.site
2074 ac_site_file2=$prefix/etc/config.site
2076 ac_site_file1=$ac_default_prefix/share/config.site
2077 ac_site_file2=$ac_default_prefix/etc/config.site
2079 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2081 test "x$ac_site_file" = xNONE && continue
2082 if test -r "$ac_site_file"; then
2083 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2084 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2085 sed 's/^/| /' "$ac_site_file" >&5
2090 if test -r "$cache_file"; then
2091 # Some versions of bash will fail to source /dev/null (special
2092 # files actually), so we avoid doing that.
2093 if test -f "$cache_file"; then
2094 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2095 $as_echo "$as_me: loading cache $cache_file" >&6;}
2097 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2098 *) . "./$cache_file";;
2102 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2103 $as_echo "$as_me: creating cache $cache_file" >&6;}
2107 # Check that the precious variables saved in the cache have kept the same
2109 ac_cache_corrupted=false
2110 for ac_var in $ac_precious_vars; do
2111 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2112 eval ac_new_set=\$ac_env_${ac_var}_set
2113 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2114 eval ac_new_val=\$ac_env_${ac_var}_value
2115 case $ac_old_set,$ac_new_set in
2117 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2119 ac_cache_corrupted=: ;;
2121 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2123 ac_cache_corrupted=: ;;
2126 if test "x$ac_old_val" != "x$ac_new_val"; then
2127 # differences in whitespace do not lead to failure.
2128 ac_old_val_w=`echo x $ac_old_val`
2129 ac_new_val_w=`echo x $ac_new_val`
2130 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2131 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2133 ac_cache_corrupted=:
2135 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2137 eval $ac_var=\$ac_old_val
2139 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2140 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2141 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2142 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2145 # Pass precious variables to config.status.
2146 if test "$ac_new_set" = set; then
2148 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2149 *) ac_arg=$ac_var=$ac_new_val ;;
2151 case " $ac_configure_args " in
2152 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2153 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2157 if $ac_cache_corrupted; then
2158 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2160 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2162 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2163 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2164 { (exit 1); exit 1; }; }
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 ac_config_headers="$ac_config_headers include/ap_config_auto.h"
2194 for ac_dir in build "$srcdir"/build; do
2195 if test -f "$ac_dir/install-sh"; then
2197 ac_install_sh="$ac_aux_dir/install-sh -c"
2199 elif test -f "$ac_dir/install.sh"; then
2201 ac_install_sh="$ac_aux_dir/install.sh -c"
2203 elif test -f "$ac_dir/shtool"; then
2205 ac_install_sh="$ac_aux_dir/shtool install -c"
2209 if test -z "$ac_aux_dir"; then
2210 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2211 $as_echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2212 { (exit 1); exit 1; }; }
2215 # These three variables are undocumented and unsupported,
2216 # and are intended to be withdrawn in a future Autoconf release.
2217 # They can cause serious problems if a builder's source tree is in a directory
2218 # whose full name contains unusual characters.
2219 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2220 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2221 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341 # Check whether --enable-layout was given.
2342 if test "${enable_layout+set}" = set; then
2343 enableval=$enable_layout;
2349 if test -z "$LAYOUT"; then
2353 if test ! -f $srcdir/config.layout; then
2354 echo "** Error: Layout file $srcdir/config.layout not found"
2355 echo "** Error: Cannot use undefined layout '$LAYOUT'"
2358 pldconf=./config.pld
2360 sed -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
2361 -e '/[ ]*<\/Layout>[ ]*/,$d' \
2363 -e "s/:[ ]*/=\'/g" \
2365 $srcdir/config.layout > $pldconf
2369 for var in prefix exec_prefix bindir sbindir libexecdir mandir \
2370 sysconfdir datadir errordir iconsdir htdocsdir cgidir \
2371 includedir localstatedir runtimedir logfiledir libdir \
2372 manualdir proxycachedir installbuilddir; do
2373 eval "val=\"\$$var\""
2376 val=`echo $val | sed -e 's;\+$;;'`
2377 eval "$var=\"\$val\""
2384 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
2385 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
2386 if test "$autosuffix" = "yes"; then
2387 if echo $val | grep apache >/dev/null; then
2392 if test "$addtarget" = "yes"; then
2401 { $as_echo "$as_me:$LINENO: checking for chosen layout" >&5
2402 $as_echo_n "checking for chosen layout... " >&6; }
2403 { $as_echo "$as_me:$LINENO: result: $layout_name" >&5
2404 $as_echo "$layout_name" >&6; }
2409 # Retrieve the command-line arguments. The eval is needed because
2410 # the arguments are quoted to preserve accuracy.
2411 eval "set x $ac_configure_args"
2415 # If the previous option needs an argument, assign it.
2416 if test -n "$ac_prev"; then
2417 eval "$ac_prev=\$ac_option"
2422 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
2426 -bindir | --bindir | --bindi | --bind | --bin | --bi)
2428 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2429 bindir="$ac_optarg" ;;
2431 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
2433 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
2435 datadir="$ac_optarg" ;;
2437 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2438 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2439 | --exec | --exe | --ex)
2440 ac_prev=exec_prefix ;;
2441 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2442 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2443 | --exec=* | --exe=* | --ex=*)
2444 exec_prefix="$ac_optarg" ;;
2446 -includedir | --includedir | --includedi | --included | --include \
2447 | --includ | --inclu | --incl | --inc)
2448 ac_prev=includedir ;;
2449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2450 | --includ=* | --inclu=* | --incl=* | --inc=*)
2451 includedir="$ac_optarg" ;;
2453 -infodir | --infodir | --infodi | --infod | --info | --inf)
2455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2456 infodir="$ac_optarg" ;;
2458 -libdir | --libdir | --libdi | --libd)
2460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2461 libdir="$ac_optarg" ;;
2463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2464 | --libexe | --libex | --libe)
2465 ac_prev=libexecdir ;;
2466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2467 | --libexe=* | --libex=* | --libe=*)
2468 libexecdir="$ac_optarg" ;;
2470 -localstatedir | --localstatedir | --localstatedi | --localstated \
2471 | --localstate | --localstat | --localsta | --localst \
2472 | --locals | --local | --loca | --loc | --lo)
2473 ac_prev=localstatedir ;;
2474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
2476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
2477 localstatedir="$ac_optarg" ;;
2479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2482 mandir="$ac_optarg" ;;
2484 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2486 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2487 prefix="$ac_optarg" ;;
2489 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2491 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2493 sbindir="$ac_optarg" ;;
2495 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2496 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2497 | --sharedst | --shareds | --shared | --share | --shar \
2499 ac_prev=sharedstatedir ;;
2500 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2501 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2502 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2504 sharedstatedir="$ac_optarg" ;;
2506 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2507 | --syscon | --sysco | --sysc | --sys | --sy)
2508 ac_prev=sysconfdir ;;
2509 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2510 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2511 sysconfdir="$ac_optarg" ;;
2516 # Be sure to have absolute paths.
2517 for ac_var in exec_prefix prefix
2519 eval ac_val=$`echo $ac_var`
2521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
2522 *) { { $as_echo "$as_me:$LINENO: error: expected an absolute path for --$ac_var: $ac_val" >&5
2523 $as_echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
2524 { (exit 1); exit 1; }; };;
2534 ap_cur="$exec_prefix"
2535 while test "x${ap_cur}" != "x${ap_last}";
2538 ap_cur=`eval "echo ${ap_cur}"`
2540 exp_exec_prefix="${ap_cur}"
2543 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_exec_prefix"
2547 ap_stripped=`echo $exp_exec_prefix | sed -e "s#^${prefix}##"`
2548 # check if the stripping was successful
2549 if test "x$exp_exec_prefix" != "x${ap_stripped}"; then
2550 # it was, so strip of any leading slashes
2551 rel_exec_prefix="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2553 # it wasn't so return the original
2554 rel_exec_prefix="$exp_exec_prefix"
2558 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_exec_prefix"
2566 while test "x${ap_cur}" != "x${ap_last}";
2569 ap_cur=`eval "echo ${ap_cur}"`
2571 exp_bindir="${ap_cur}"
2574 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_bindir"
2578 ap_stripped=`echo $exp_bindir | sed -e "s#^${prefix}##"`
2579 # check if the stripping was successful
2580 if test "x$exp_bindir" != "x${ap_stripped}"; then
2581 # it was, so strip of any leading slashes
2582 rel_bindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2584 # it wasn't so return the original
2585 rel_bindir="$exp_bindir"
2589 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_bindir"
2597 while test "x${ap_cur}" != "x${ap_last}";
2600 ap_cur=`eval "echo ${ap_cur}"`
2602 exp_sbindir="${ap_cur}"
2605 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sbindir"
2609 ap_stripped=`echo $exp_sbindir | sed -e "s#^${prefix}##"`
2610 # check if the stripping was successful
2611 if test "x$exp_sbindir" != "x${ap_stripped}"; then
2612 # it was, so strip of any leading slashes
2613 rel_sbindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2615 # it wasn't so return the original
2616 rel_sbindir="$exp_sbindir"
2620 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sbindir"
2628 while test "x${ap_cur}" != "x${ap_last}";
2631 ap_cur=`eval "echo ${ap_cur}"`
2633 exp_libdir="${ap_cur}"
2636 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libdir"
2640 ap_stripped=`echo $exp_libdir | sed -e "s#^${prefix}##"`
2641 # check if the stripping was successful
2642 if test "x$exp_libdir" != "x${ap_stripped}"; then
2643 # it was, so strip of any leading slashes
2644 rel_libdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2646 # it wasn't so return the original
2647 rel_libdir="$exp_libdir"
2651 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libdir"
2658 ap_cur="$libexecdir"
2659 while test "x${ap_cur}" != "x${ap_last}";
2662 ap_cur=`eval "echo ${ap_cur}"`
2664 exp_libexecdir="${ap_cur}"
2667 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libexecdir"
2671 ap_stripped=`echo $exp_libexecdir | sed -e "s#^${prefix}##"`
2672 # check if the stripping was successful
2673 if test "x$exp_libexecdir" != "x${ap_stripped}"; then
2674 # it was, so strip of any leading slashes
2675 rel_libexecdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2677 # it wasn't so return the original
2678 rel_libexecdir="$exp_libexecdir"
2682 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libexecdir"
2690 while test "x${ap_cur}" != "x${ap_last}";
2693 ap_cur=`eval "echo ${ap_cur}"`
2695 exp_mandir="${ap_cur}"
2698 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_mandir"
2702 ap_stripped=`echo $exp_mandir | sed -e "s#^${prefix}##"`
2703 # check if the stripping was successful
2704 if test "x$exp_mandir" != "x${ap_stripped}"; then
2705 # it was, so strip of any leading slashes
2706 rel_mandir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2708 # it wasn't so return the original
2709 rel_mandir="$exp_mandir"
2713 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_mandir"
2720 ap_cur="$sysconfdir"
2721 while test "x${ap_cur}" != "x${ap_last}";
2724 ap_cur=`eval "echo ${ap_cur}"`
2726 exp_sysconfdir="${ap_cur}"
2729 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sysconfdir"
2733 ap_stripped=`echo $exp_sysconfdir | sed -e "s#^${prefix}##"`
2734 # check if the stripping was successful
2735 if test "x$exp_sysconfdir" != "x${ap_stripped}"; then
2736 # it was, so strip of any leading slashes
2737 rel_sysconfdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2739 # it wasn't so return the original
2740 rel_sysconfdir="$exp_sysconfdir"
2744 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sysconfdir"
2752 while test "x${ap_cur}" != "x${ap_last}";
2755 ap_cur=`eval "echo ${ap_cur}"`
2757 exp_datadir="${ap_cur}"
2760 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_datadir"
2764 ap_stripped=`echo $exp_datadir | sed -e "s#^${prefix}##"`
2765 # check if the stripping was successful
2766 if test "x$exp_datadir" != "x${ap_stripped}"; then
2767 # it was, so strip of any leading slashes
2768 rel_datadir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2770 # it wasn't so return the original
2771 rel_datadir="$exp_datadir"
2775 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_datadir"
2782 ap_cur="$installbuilddir"
2783 while test "x${ap_cur}" != "x${ap_last}";
2786 ap_cur=`eval "echo ${ap_cur}"`
2788 exp_installbuilddir="${ap_cur}"
2791 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_installbuilddir"
2795 ap_stripped=`echo $exp_installbuilddir | sed -e "s#^${prefix}##"`
2796 # check if the stripping was successful
2797 if test "x$exp_installbuilddir" != "x${ap_stripped}"; then
2798 # it was, so strip of any leading slashes
2799 rel_installbuilddir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2801 # it wasn't so return the original
2802 rel_installbuilddir="$exp_installbuilddir"
2806 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_installbuilddir"
2814 while test "x${ap_cur}" != "x${ap_last}";
2817 ap_cur=`eval "echo ${ap_cur}"`
2819 exp_errordir="${ap_cur}"
2822 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_errordir"
2826 ap_stripped=`echo $exp_errordir | sed -e "s#^${prefix}##"`
2827 # check if the stripping was successful
2828 if test "x$exp_errordir" != "x${ap_stripped}"; then
2829 # it was, so strip of any leading slashes
2830 rel_errordir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2832 # it wasn't so return the original
2833 rel_errordir="$exp_errordir"
2837 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_errordir"
2845 while test "x${ap_cur}" != "x${ap_last}";
2848 ap_cur=`eval "echo ${ap_cur}"`
2850 exp_iconsdir="${ap_cur}"
2853 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_iconsdir"
2857 ap_stripped=`echo $exp_iconsdir | sed -e "s#^${prefix}##"`
2858 # check if the stripping was successful
2859 if test "x$exp_iconsdir" != "x${ap_stripped}"; then
2860 # it was, so strip of any leading slashes
2861 rel_iconsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2863 # it wasn't so return the original
2864 rel_iconsdir="$exp_iconsdir"
2868 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_iconsdir"
2876 while test "x${ap_cur}" != "x${ap_last}";
2879 ap_cur=`eval "echo ${ap_cur}"`
2881 exp_htdocsdir="${ap_cur}"
2884 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_htdocsdir"
2888 ap_stripped=`echo $exp_htdocsdir | sed -e "s#^${prefix}##"`
2889 # check if the stripping was successful
2890 if test "x$exp_htdocsdir" != "x${ap_stripped}"; then
2891 # it was, so strip of any leading slashes
2892 rel_htdocsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2894 # it wasn't so return the original
2895 rel_htdocsdir="$exp_htdocsdir"
2899 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_htdocsdir"
2907 while test "x${ap_cur}" != "x${ap_last}";
2910 ap_cur=`eval "echo ${ap_cur}"`
2912 exp_manualdir="${ap_cur}"
2915 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_manualdir"
2919 ap_stripped=`echo $exp_manualdir | sed -e "s#^${prefix}##"`
2920 # check if the stripping was successful
2921 if test "x$exp_manualdir" != "x${ap_stripped}"; then
2922 # it was, so strip of any leading slashes
2923 rel_manualdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2925 # it wasn't so return the original
2926 rel_manualdir="$exp_manualdir"
2930 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_manualdir"
2938 while test "x${ap_cur}" != "x${ap_last}";
2941 ap_cur=`eval "echo ${ap_cur}"`
2943 exp_cgidir="${ap_cur}"
2946 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_cgidir"
2950 ap_stripped=`echo $exp_cgidir | sed -e "s#^${prefix}##"`
2951 # check if the stripping was successful
2952 if test "x$exp_cgidir" != "x${ap_stripped}"; then
2953 # it was, so strip of any leading slashes
2954 rel_cgidir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2956 # it wasn't so return the original
2957 rel_cgidir="$exp_cgidir"
2961 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_cgidir"
2968 ap_cur="$includedir"
2969 while test "x${ap_cur}" != "x${ap_last}";
2972 ap_cur=`eval "echo ${ap_cur}"`
2974 exp_includedir="${ap_cur}"
2977 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_includedir"
2981 ap_stripped=`echo $exp_includedir | sed -e "s#^${prefix}##"`
2982 # check if the stripping was successful
2983 if test "x$exp_includedir" != "x${ap_stripped}"; then
2984 # it was, so strip of any leading slashes
2985 rel_includedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
2987 # it wasn't so return the original
2988 rel_includedir="$exp_includedir"
2992 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_includedir"
2999 ap_cur="$localstatedir"
3000 while test "x${ap_cur}" != "x${ap_last}";
3003 ap_cur=`eval "echo ${ap_cur}"`
3005 exp_localstatedir="${ap_cur}"
3008 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_localstatedir"
3012 ap_stripped=`echo $exp_localstatedir | sed -e "s#^${prefix}##"`
3013 # check if the stripping was successful
3014 if test "x$exp_localstatedir" != "x${ap_stripped}"; then
3015 # it was, so strip of any leading slashes
3016 rel_localstatedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3018 # it wasn't so return the original
3019 rel_localstatedir="$exp_localstatedir"
3023 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_localstatedir"
3030 ap_cur="$runtimedir"
3031 while test "x${ap_cur}" != "x${ap_last}";
3034 ap_cur=`eval "echo ${ap_cur}"`
3036 exp_runtimedir="${ap_cur}"
3039 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_runtimedir"
3043 ap_stripped=`echo $exp_runtimedir | sed -e "s#^${prefix}##"`
3044 # check if the stripping was successful
3045 if test "x$exp_runtimedir" != "x${ap_stripped}"; then
3046 # it was, so strip of any leading slashes
3047 rel_runtimedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3049 # it wasn't so return the original
3050 rel_runtimedir="$exp_runtimedir"
3054 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_runtimedir"
3061 ap_cur="$logfiledir"
3062 while test "x${ap_cur}" != "x${ap_last}";
3065 ap_cur=`eval "echo ${ap_cur}"`
3067 exp_logfiledir="${ap_cur}"
3070 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_logfiledir"
3074 ap_stripped=`echo $exp_logfiledir | sed -e "s#^${prefix}##"`
3075 # check if the stripping was successful
3076 if test "x$exp_logfiledir" != "x${ap_stripped}"; then
3077 # it was, so strip of any leading slashes
3078 rel_logfiledir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3080 # it wasn't so return the original
3081 rel_logfiledir="$exp_logfiledir"
3085 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_logfiledir"
3092 ap_cur="$proxycachedir"
3093 while test "x${ap_cur}" != "x${ap_last}";
3096 ap_cur=`eval "echo ${ap_cur}"`
3098 exp_proxycachedir="${ap_cur}"
3101 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_proxycachedir"
3105 ap_stripped=`echo $exp_proxycachedir | sed -e "s#^${prefix}##"`
3106 # check if the stripping was successful
3107 if test "x$exp_proxycachedir" != "x${ap_stripped}"; then
3108 # it was, so strip of any leading slashes
3109 rel_proxycachedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3111 # it wasn't so return the original
3112 rel_proxycachedir="$exp_proxycachedir"
3116 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_proxycachedir"
3123 apr_ste_save_CPPFLAGS="$CPPFLAGS"
3126 apr_ste_save_CFLAGS="$CFLAGS"
3129 apr_ste_save_CXXFLAGS="$CXXFLAGS"
3132 apr_ste_save_LDFLAGS="$LDFLAGS"
3135 apr_ste_save_LIBS="$LIBS"
3138 apr_ste_save_INCLUDES="$INCLUDES"
3143 cat >config.nice<<EOF
3146 # Created by configure
3149 if test -n "$CC"; then
3150 echo "CC=\"$CC\"; export CC" >> config.nice
3152 if test -n "$CFLAGS"; then
3153 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
3155 if test -n "$CPPFLAGS"; then
3156 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
3158 if test -n "$LDFLAGS"; then
3159 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
3161 if test -n "$LIBS"; then
3162 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
3164 if test -n "$INCLUDES"; then
3165 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
3167 if test -n "$NOTEST_CFLAGS"; then
3168 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
3170 if test -n "$NOTEST_CPPFLAGS"; then
3171 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
3173 if test -n "$NOTEST_LDFLAGS"; then
3174 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
3176 if test -n "$NOTEST_LIBS"; then
3177 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
3180 # Retrieve command-line arguments.
3181 eval "set x $0 $ac_configure_args"
3189 while test "x${ap_cur}" != "x${ap_last}";
3192 ap_cur=`eval "echo ${ap_cur}"`
3196 echo "\"$arg\" \\" >> config.nice
3198 echo '"$@"' >> config.nice
3199 chmod +x config.nice
3205 { $as_echo "$as_me:$LINENO: checking for working mkdir -p" >&5
3206 $as_echo_n "checking for working mkdir -p... " >&6; }
3207 if test "${ac_cv_mkdir_p+set}" = set; then
3208 $as_echo_n "(cached) " >&6
3211 test -d conftestdir && rm -rf conftestdir
3212 mkdir -p conftestdir/somedir >/dev/null 2>&1
3213 if test -d conftestdir/somedir; then
3221 { $as_echo "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5
3222 $as_echo "$ac_cv_mkdir_p" >&6; }
3223 if test "$ac_cv_mkdir_p" = "yes"; then
3226 mkdir_p="$top_srcdir/build/mkdir.sh"
3232 # Make sure we can run config.sub.
3233 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3234 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3235 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3236 { (exit 1); exit 1; }; }
3238 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3239 $as_echo_n "checking build system type... " >&6; }
3240 if test "${ac_cv_build+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3243 ac_build_alias=$build_alias
3244 test "x$ac_build_alias" = x &&
3245 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3246 test "x$ac_build_alias" = x &&
3247 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3248 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3249 { (exit 1); exit 1; }; }
3250 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3251 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3252 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3253 { (exit 1); exit 1; }; }
3256 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3257 $as_echo "$ac_cv_build" >&6; }
3258 case $ac_cv_build in
3260 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3261 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3262 { (exit 1); exit 1; }; };;
3265 ac_save_IFS=$IFS; IFS='-'
3271 # Remember, the first character of IFS is used to create $*,
3272 # except with old shells:
3275 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3278 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3279 $as_echo_n "checking host system type... " >&6; }
3280 if test "${ac_cv_host+set}" = set; then
3281 $as_echo_n "(cached) " >&6
3283 if test "x$host_alias" = x; then
3284 ac_cv_host=$ac_cv_build
3286 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3287 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3288 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3289 { (exit 1); exit 1; }; }
3293 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3294 $as_echo "$ac_cv_host" >&6; }
3297 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3298 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3299 { (exit 1); exit 1; }; };;
3302 ac_save_IFS=$IFS; IFS='-'
3308 # Remember, the first character of IFS is used to create $*,
3309 # except with old shells:
3312 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3315 { $as_echo "$as_me:$LINENO: checking target system type" >&5
3316 $as_echo_n "checking target system type... " >&6; }
3317 if test "${ac_cv_target+set}" = set; then
3318 $as_echo_n "(cached) " >&6
3320 if test "x$target_alias" = x; then
3321 ac_cv_target=$ac_cv_host
3323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3324 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3325 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3326 { (exit 1); exit 1; }; }
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3331 $as_echo "$ac_cv_target" >&6; }
3332 case $ac_cv_target in
3334 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3335 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
3336 { (exit 1); exit 1; }; };;
3338 target=$ac_cv_target
3339 ac_save_IFS=$IFS; IFS='-'
3345 # Remember, the first character of IFS is used to create $*,
3346 # except with old shells:
3349 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3352 # The aliases save the names the user supplied, while $host etc.
3353 # will get canonicalized.
3354 test -n "$target_alias" &&
3355 test "$program_prefix$program_suffix$program_transform_name" = \
3357 program_prefix=${target_alias}-
3359 orig_prefix="$prefix"
3361 echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"
3366 if test "$ac_cv_emxos2" = "yes"; then
3367 # Scripts don't pass test -x on OS/2
3373 { $as_echo "$as_me:$LINENO: checking for APR" >&5
3374 $as_echo_n "checking for APR... " >&6; }
3376 # Check whether --with-apr was given.
3377 if test "${with_apr+set}" = set; then
3379 if test "$withval" = "no" || test "$withval" = "yes"; then
3380 { { $as_echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
3381 $as_echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
3382 { (exit 1); exit 1; }; }
3385 if $TEST_X "$withval/bin/apr-config"; then
3387 apr_config="$withval/bin/apr-config"
3388 elif $TEST_X "$withval/apr-config"; then
3390 apr_config="$withval/apr-config"
3391 elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
3393 apr_config="$withval"
3396 if test "$apr_found" != "yes"; then
3397 { { $as_echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
3398 build directory, or an apr-config file." >&5
3399 $as_echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
3400 build directory, or an apr-config file." >&2;}
3401 { (exit 1); exit 1; }; }
3406 if test -d ""$srcdir/srclib/apr""; then
3407 apr_temp_abs_srcdir="`cd "$srcdir/srclib/apr" && pwd`"
3408 apr_found="reconfig"
3409 if test -n ""./srclib/apr""; then
3410 apr_config=""./srclib/apr"/apr-config"
3412 apr_config=""$srcdir/srclib/apr"/apr-config"
3415 if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
3416 if apr-config --help > /dev/null 2>&1 ; then
3418 apr_config="apr-config"
3420 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
3421 if $TEST_X "$lookdir/bin/apr-config"; then
3423 apr_config="$lookdir/bin/apr-config"
3433 { $as_echo "$as_me:$LINENO: result: $apr_found" >&5
3434 $as_echo "$apr_found" >&6; }
3437 if test "$apr_found" = "no"; then
3438 { { $as_echo "$as_me:$LINENO: error: APR not found. Please read the documentation." >&5
3439 $as_echo "$as_me: error: APR not found. Please read the documentation." >&2;}
3440 { (exit 1); exit 1; }; }
3443 if test "$apr_found" = "reconfig"; then
3445 # save our work to this point; this allows the sub-package to use it
3446 cat >confcache <<\_ACEOF
3447 # This file is a shell script that caches the results of configure
3448 # tests run on this system so they can be shared between configure
3449 # scripts and configure runs, see configure's option --config-cache.
3450 # It is not useful on other systems. If it contains results you don't
3451 # want to keep, you may remove or edit it.
3453 # config.status only pays attention to the cache file if you give it
3454 # the --recheck option to rerun configure.
3456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3462 # The following way of writing the cache mishandles newlines in values,
3463 # but we know of no workaround that is simple, portable, and efficient.
3464 # So, we kill variables containing newlines.
3465 # Ultrix sh set writes to stderr and can't be redirected directly,
3466 # and sets the high bit in the cache file unless we assign to the vars.
3468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3469 eval ac_val=\$$ac_var
3473 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
3474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3477 _ | IFS | as_nl) ;; #(
3478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3479 *) $as_unset $ac_var ;;
3485 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3486 *${as_nl}ac_space=\ *)
3487 # `set' does not quote correctly, so add quotes (double-quote
3488 # substitution turns \\\\ into \\, and sed turns \\ into \).
3491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3494 # `set' quotes correctly as required by POSIX, so do not add quotes.
3495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3504 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3506 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3508 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3509 if test -w "$cache_file"; then
3510 test "x$cache_file" != "x/dev/null" &&
3511 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
3512 $as_echo "$as_me: updating cache $cache_file" >&6;}
3513 cat confcache >$cache_file
3515 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3516 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3521 echo "configuring package in srclib/apr now"
3523 apr_config_subdirs="srclib/apr"
3524 test -d srclib/apr || $mkdir_p srclib/apr
3525 ac_abs_srcdir=`(cd $srcdir/srclib/apr && pwd)`
3528 # A "../" for each directory in /$config_subdirs.
3529 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3531 # Make the cache file pathname absolute for the subdirs
3532 # required to correctly handle subdirs that might actually
3534 case "$cache_file" in
3535 /*) # already absolute
3536 ac_sub_cache_file=$cache_file ;;
3537 *) # Was relative path.
3538 ac_sub_cache_file="$ac_popdir/$cache_file" ;;
3544 for apr_configure_arg in $ac_configure_args
3546 case "$apr_configure_arg" in
3547 --enable-layout=*|\'--enable-layout=*)
3550 apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
3555 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
3557 apr_configure_args="--disable-option-checking $apr_configure_args"
3559 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir $apache_apr_flags --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir --datadir=$datadir --with-installbuilddir=$installbuilddir
3561 echo "srclib/apr configured properly"
3563 echo "configure failed for srclib/apr"
3569 # grab any updates from the sub-package
3570 if test -r "$cache_file"; then
3571 # Some versions of bash will fail to source /dev/null (special
3572 # files actually), so we avoid doing that.
3573 if test -f "$cache_file"; then
3574 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
3575 $as_echo "$as_me: loading cache $cache_file" >&6;}
3577 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3578 *) . "./$cache_file";;
3582 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
3583 $as_echo "$as_me: creating cache $cache_file" >&6;}
3588 AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS"
3589 AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr"
3593 if test -z "$CC"; then
3594 echo " setting CC to \"`$apr_config --cc`\""
3595 CC="`$apr_config --cc`"
3599 if test -z "$CPP"; then
3600 echo " setting CPP to \"`$apr_config --cpp`\""
3601 CPP="`$apr_config --cpp`"
3605 if test "x$CFLAGS" = "x"; then
3606 echo " setting CFLAGS to \"`$apr_config --cflags`\""
3607 CFLAGS="`$apr_config --cflags`"
3609 apr_addto_bugger="`$apr_config --cflags`"
3610 for i in $apr_addto_bugger; do
3611 apr_addto_duplicate="0"
3612 for j in $CFLAGS; do
3613 if test "x$i" = "x$j"; then
3614 apr_addto_duplicate="1"
3618 if test $apr_addto_duplicate = "0"; then
3619 echo " adding \"$i\" to CFLAGS"
3626 if test "x$CPPFLAGS" = "x"; then
3627 echo " setting CPPFLAGS to \"`$apr_config --cppflags`\""
3628 CPPFLAGS="`$apr_config --cppflags`"
3630 apr_addto_bugger="`$apr_config --cppflags`"
3631 for i in $apr_addto_bugger; do
3632 apr_addto_duplicate="0"
3633 for j in $CPPFLAGS; do
3634 if test "x$i" = "x$j"; then
3635 apr_addto_duplicate="1"
3639 if test $apr_addto_duplicate = "0"; then
3640 echo " adding \"$i\" to CPPFLAGS"
3641 CPPFLAGS="$CPPFLAGS $i"
3647 if test "x$LDFLAGS" = "x"; then
3648 echo " setting LDFLAGS to \"`$apr_config --ldflags`\""
3649 LDFLAGS="`$apr_config --ldflags`"
3651 apr_addto_bugger="`$apr_config --ldflags`"
3652 for i in $apr_addto_bugger; do
3653 apr_addto_duplicate="0"
3654 for j in $LDFLAGS; do
3655 if test "x$i" = "x$j"; then
3656 apr_addto_duplicate="1"
3660 if test $apr_addto_duplicate = "0"; then
3661 echo " adding \"$i\" to LDFLAGS"
3662 LDFLAGS="$LDFLAGS $i"
3668 if test "x$INCLUDES" = "x"; then
3669 echo " setting INCLUDES to \"`$apr_config --includes`\""
3670 INCLUDES="`$apr_config --includes`"
3672 apr_addto_bugger="`$apr_config --includes`"
3673 for i in $apr_addto_bugger; do
3674 apr_addto_duplicate="0"
3675 for j in $INCLUDES; do
3676 if test "x$i" = "x$j"; then
3677 apr_addto_duplicate="1"
3681 if test $apr_addto_duplicate = "0"; then
3682 echo " adding \"$i\" to INCLUDES"
3683 INCLUDES="$INCLUDES $i"
3688 SHLIBPATH_VAR=`$apr_config --shlib-path-var`
3689 APR_BINDIR=`$apr_config --bindir`
3690 APR_INCLUDEDIR=`$apr_config --includedir`
3692 echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
3697 { $as_echo "$as_me:$LINENO: checking for APR-util" >&5
3698 $as_echo_n "checking for APR-util... " >&6; }
3700 # Check whether --with-apr-util was given.
3701 if test "${with_apr_util+set}" = set; then
3702 withval=$with_apr_util;
3703 if test "$withval" = "no" || test "$withval" = "yes"; then
3704 { { $as_echo "$as_me:$LINENO: error: --with-apr-util requires a directory to be provided" >&5
3705 $as_echo "$as_me: error: --with-apr-util requires a directory to be provided" >&2;}
3706 { (exit 1); exit 1; }; }
3709 if test -x "$withval/bin/apu-config"; then
3711 apu_config="$withval/bin/apu-config"
3712 elif test -x "$withval/apu-config"; then
3714 apu_config="$withval/apu-config"
3715 elif test -x "$withval" && $withval --help > /dev/null 2>&1 ; then
3717 apu_config="$withval"
3720 if test "$apu_found" != "yes"; then
3721 { { $as_echo "$as_me:$LINENO: error:
3722 The directory given to --with-apr-util does not specify a prefix for an
3723 installed APU, nor an APR-util build directory." >&5
3724 $as_echo "$as_me: error:
3725 The directory given to --with-apr-util does not specify a prefix for an
3726 installed APU, nor an APR-util build directory." >&2;}
3727 { (exit 1); exit 1; }; }
3732 if test -d ""$srcdir/srclib/apr-util""; then
3733 apu_found="reconfig"
3734 if test -n ""./srclib/apr-util""; then
3735 apu_config=""./srclib/apr-util"/apu-config"
3737 apu_config=""$srcdir/srclib/apr-util"/apu-config"
3740 if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then
3741 if apu-config --help > /dev/null 2>&1 ; then
3743 apu_config="apu-config"
3745 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
3746 if test -x "$lookdir/bin/apu-config"; then
3748 apu_config="$lookdir/bin/apu-config"
3758 { $as_echo "$as_me:$LINENO: result: $apu_found" >&5
3759 $as_echo "$apu_found" >&6; }
3762 if test "$apu_found" = "no"; then
3763 { { $as_echo "$as_me:$LINENO: error: APR-util not found. Please read the documentation." >&5
3764 $as_echo "$as_me: error: APR-util not found. Please read the documentation." >&2;}
3765 { (exit 1); exit 1; }; }
3768 # Catch some misconfigurations:
3769 case ${apr_found}.${apu_found} in
3771 { { $as_echo "$as_me:$LINENO: error: Cannot use an external APR-util with the bundled APR" >&5
3772 $as_echo "$as_me: error: Cannot use an external APR-util with the bundled APR" >&2;}
3773 { (exit 1); exit 1; }; }
3776 { { $as_echo "$as_me:$LINENO: error: Cannot use an external APR with the bundled APR-util" >&5
3777 $as_echo "$as_me: error: Cannot use an external APR with the bundled APR-util" >&2;}
3778 { (exit 1); exit 1; }; }
3782 if test "$apu_found" = "reconfig"; then
3784 # save our work to this point; this allows the sub-package to use it
3785 cat >confcache <<\_ACEOF
3786 # This file is a shell script that caches the results of configure
3787 # tests run on this system so they can be shared between configure
3788 # scripts and configure runs, see configure's option --config-cache.
3789 # It is not useful on other systems. If it contains results you don't
3790 # want to keep, you may remove or edit it.
3792 # config.status only pays attention to the cache file if you give it
3793 # the --recheck option to rerun configure.
3795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3801 # The following way of writing the cache mishandles newlines in values,
3802 # but we know of no workaround that is simple, portable, and efficient.
3803 # So, we kill variables containing newlines.
3804 # Ultrix sh set writes to stderr and can't be redirected directly,
3805 # and sets the high bit in the cache file unless we assign to the vars.
3807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3808 eval ac_val=\$$ac_var
3812 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
3813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3816 _ | IFS | as_nl) ;; #(
3817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3818 *) $as_unset $ac_var ;;
3824 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3825 *${as_nl}ac_space=\ *)
3826 # `set' does not quote correctly, so add quotes (double-quote
3827 # substitution turns \\\\ into \\, and sed turns \\ into \).
3830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3833 # `set' quotes correctly as required by POSIX, so do not add quotes.
3834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3847 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3848 if test -w "$cache_file"; then
3849 test "x$cache_file" != "x/dev/null" &&
3850 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
3851 $as_echo "$as_me: updating cache $cache_file" >&6;}
3852 cat confcache >$cache_file
3854 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3855 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3860 echo "configuring package in srclib/apr-util now"
3862 apr_config_subdirs="srclib/apr-util"
3863 test -d srclib/apr-util || $mkdir_p srclib/apr-util
3864 ac_abs_srcdir=`(cd $srcdir/srclib/apr-util && pwd)`
3867 # A "../" for each directory in /$config_subdirs.
3868 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3870 # Make the cache file pathname absolute for the subdirs
3871 # required to correctly handle subdirs that might actually
3873 case "$cache_file" in
3874 /*) # already absolute
3875 ac_sub_cache_file=$cache_file ;;
3876 *) # Was relative path.
3877 ac_sub_cache_file="$ac_popdir/$cache_file" ;;
3883 for apr_configure_arg in $ac_configure_args
3885 case "$apr_configure_arg" in
3886 --enable-layout=*|\'--enable-layout=*)
3889 apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
3894 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
3896 apr_configure_args="--disable-option-checking $apr_configure_args"
3898 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --with-apr=../apr --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir
3900 echo "srclib/apr-util configured properly"
3902 echo "configure failed for srclib/apr-util"
3908 # grab any updates from the sub-package
3909 if test -r "$cache_file"; then
3910 # Some versions of bash will fail to source /dev/null (special
3911 # files actually), so we avoid doing that.
3912 if test -f "$cache_file"; then
3913 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
3914 $as_echo "$as_me: loading cache $cache_file" >&6;}
3916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3917 *) . "./$cache_file";;
3921 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
3922 $as_echo "$as_me: creating cache $cache_file" >&6;}
3927 AP_BUILD_SRCLIB_DIRS="$AP_BUILD_SRCLIB_DIRS apr-util"
3928 AP_CLEAN_SRCLIB_DIRS="apr-util $AP_CLEAN_SRCLIB_DIRS"
3932 if test "x$LDFLAGS" = "x"; then
3933 echo " setting LDFLAGS to \"`$apu_config --ldflags`\""
3934 LDFLAGS="`$apu_config --ldflags`"
3936 apr_addto_bugger="`$apu_config --ldflags`"
3937 for i in $apr_addto_bugger; do
3938 apr_addto_duplicate="0"
3939 for j in $LDFLAGS; do
3940 if test "x$i" = "x$j"; then
3941 apr_addto_duplicate="1"
3945 if test $apr_addto_duplicate = "0"; then
3946 echo " adding \"$i\" to LDFLAGS"
3947 LDFLAGS="$LDFLAGS $i"
3953 if test "x$INCLUDES" = "x"; then
3954 echo " setting INCLUDES to \"`$apu_config --includes`\""
3955 INCLUDES="`$apu_config --includes`"
3957 apr_addto_bugger="`$apu_config --includes`"
3958 for i in $apr_addto_bugger; do
3959 apr_addto_duplicate="0"
3960 for j in $INCLUDES; do
3961 if test "x$i" = "x$j"; then
3962 apr_addto_duplicate="1"
3966 if test $apr_addto_duplicate = "0"; then
3967 echo " adding \"$i\" to INCLUDES"
3968 INCLUDES="$INCLUDES $i"
3973 APU_BINDIR=`$apu_config --bindir`
3974 APU_INCLUDEDIR=`$apu_config --includedir`
3977 ac_cpp='$CPP $CPPFLAGS'
3978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981 if test -n "$ac_tool_prefix"; then
3982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if test "${ac_cv_prog_CC+set}" = set; then
3987 $as_echo_n "(cached) " >&6
3989 if test -n "$CC"; then
3990 ac_cv_prog_CC="$CC" # Let the user override the test.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 if test -n "$CC"; then
4011 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4012 $as_echo "$CC" >&6; }
4014 { $as_echo "$as_me:$LINENO: result: no" >&5
4015 $as_echo "no" >&6; }
4020 if test -z "$ac_cv_prog_CC"; then
4022 # Extract the first word of "gcc", so it can be a program name with args.
4023 set dummy gcc; ac_word=$2
4024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4027 $as_echo_n "(cached) " >&6
4029 if test -n "$ac_ct_CC"; then
4030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_ac_ct_CC="gcc"
4040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4050 if test -n "$ac_ct_CC"; then
4051 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4052 $as_echo "$ac_ct_CC" >&6; }
4054 { $as_echo "$as_me:$LINENO: result: no" >&5
4055 $as_echo "no" >&6; }
4058 if test "x$ac_ct_CC" = x; then
4061 case $cross_compiling:$ac_tool_warned in
4063 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4073 if test -z "$CC"; then
4074 if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}cc; ac_word=$2
4077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if test "${ac_cv_prog_CC+set}" = set; then
4080 $as_echo_n "(cached) " >&6
4082 if test -n "$CC"; then
4083 ac_cv_prog_CC="$CC" # Let the user override the test.
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092 ac_cv_prog_CC="${ac_tool_prefix}cc"
4093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 if test -n "$CC"; then
4104 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4105 $as_echo "$CC" >&6; }
4107 { $as_echo "$as_me:$LINENO: result: no" >&5
4108 $as_echo "no" >&6; }
4114 if test -z "$CC"; then
4115 # Extract the first word of "cc", so it can be a program name with args.
4116 set dummy cc; ac_word=$2
4117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if test "${ac_cv_prog_CC+set}" = set; then
4120 $as_echo_n "(cached) " >&6
4122 if test -n "$CC"; then
4123 ac_cv_prog_CC="$CC" # Let the user override the test.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4134 ac_prog_rejected=yes
4138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 if test $ac_prog_rejected = yes; then
4146 # We found a bogon in the path, so make sure we never use it.
4147 set dummy $ac_cv_prog_CC
4149 if test $# != 0; then
4150 # We chose a different compiler from the bogus one.
4151 # However, it has the same basename, so the bogon will be chosen
4152 # first if we set CC to just the basename; use the full file name.
4154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4160 if test -n "$CC"; then
4161 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4162 $as_echo "$CC" >&6; }
4164 { $as_echo "$as_me:$LINENO: result: no" >&5
4165 $as_echo "no" >&6; }
4170 if test -z "$CC"; then
4171 if test -n "$ac_tool_prefix"; then
4172 for ac_prog in cl.exe
4174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_CC+set}" = set; then
4179 $as_echo_n "(cached) " >&6
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 if test -n "$CC"; then
4203 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4204 $as_echo "$CC" >&6; }
4206 { $as_echo "$as_me:$LINENO: result: no" >&5
4207 $as_echo "no" >&6; }
4211 test -n "$CC" && break
4214 if test -z "$CC"; then
4216 for ac_prog in cl.exe
4218 # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4223 $as_echo_n "(cached) " >&6
4225 if test -n "$ac_ct_CC"; then
4226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_prog_ac_ct_CC="$ac_prog"
4236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4246 if test -n "$ac_ct_CC"; then
4247 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4248 $as_echo "$ac_ct_CC" >&6; }
4250 { $as_echo "$as_me:$LINENO: result: no" >&5
4251 $as_echo "no" >&6; }
4255 test -n "$ac_ct_CC" && break
4258 if test "x$ac_ct_CC" = x; then
4261 case $cross_compiling:$ac_tool_warned in
4263 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4274 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4276 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4277 See \`config.log' for more details." >&5
4278 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4279 See \`config.log' for more details." >&2;}
4280 { (exit 1); exit 1; }; }; }
4282 # Provide some information about the compiler.
4283 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4286 { (ac_try="$ac_compiler --version >&5"
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4292 $as_echo "$ac_try_echo") >&5
4293 (eval "$ac_compiler --version >&5") 2>&5
4295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }
4297 { (ac_try="$ac_compiler -v >&5"
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4303 $as_echo "$ac_try_echo") >&5
4304 (eval "$ac_compiler -v >&5") 2>&5
4306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }
4308 { (ac_try="$ac_compiler -V >&5"
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4314 $as_echo "$ac_try_echo") >&5
4315 (eval "$ac_compiler -V >&5") 2>&5
4317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }
4320 cat >conftest.$ac_ext <<_ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4340 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4341 $as_echo_n "checking for C compiler default output file name... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4348 for ac_file in $ac_files
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4357 if { (ac_try="$ac_link_default"
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4363 $as_echo "$ac_try_echo") >&5
4364 (eval "$ac_link_default") 2>&5
4366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; then
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4373 for ac_file in $ac_files ''
4375 test -f "$ac_file" || continue
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4380 # We found the default executable, but exeext='' is most
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4398 test "$ac_cv_exeext" = no && ac_cv_exeext=
4404 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4405 $as_echo "$ac_file" >&6; }
4406 if test -z "$ac_file"; then
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4413 See \`config.log' for more details." >&5
4414 $as_echo "$as_me: error: C compiler cannot create executables
4415 See \`config.log' for more details." >&2;}
4416 { (exit 77); exit 77; }; }; }
4419 ac_exeext=$ac_cv_exeext
4421 # Check that the compiler produces executables we can run. If not, either
4422 # the compiler is broken, or we cross compile.
4423 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4424 $as_echo_n "checking whether the C compiler works... " >&6; }
4425 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4426 # If not cross compiling, check that we can run a simple program.
4427 if test "$cross_compiling" != yes; then
4428 if { ac_try='./$ac_file'
4429 { (case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4434 $as_echo "$ac_try_echo") >&5
4435 (eval "$ac_try") 2>&5
4437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4441 if test "$cross_compiling" = maybe; then
4444 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4447 If you meant to cross compile, use \`--host'.
4448 See \`config.log' for more details." >&5
4449 $as_echo "$as_me: error: cannot run C compiled programs.
4450 If you meant to cross compile, use \`--host'.
4451 See \`config.log' for more details." >&2;}
4452 { (exit 1); exit 1; }; }; }
4456 { $as_echo "$as_me:$LINENO: result: yes" >&5
4457 $as_echo "yes" >&6; }
4459 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4460 ac_clean_files=$ac_clean_files_save
4461 # Check that the compiler produces executables we can run. If not, either
4462 # the compiler is broken, or we cross compile.
4463 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4464 $as_echo_n "checking whether we are cross compiling... " >&6; }
4465 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4466 $as_echo "$cross_compiling" >&6; }
4468 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4469 $as_echo_n "checking for suffix of executables... " >&6; }
4470 if { (ac_try="$ac_link"
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4476 $as_echo "$ac_try_echo") >&5
4477 (eval "$ac_link") 2>&5
4479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; then
4481 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4482 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4483 # work properly (i.e., refer to `conftest.exe'), while it won't with
4485 for ac_file in conftest.exe conftest conftest.*; do
4486 test -f "$ac_file" || continue
4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4495 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4497 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4498 See \`config.log' for more details." >&5
4499 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4500 See \`config.log' for more details." >&2;}
4501 { (exit 1); exit 1; }; }; }
4504 rm -f conftest$ac_cv_exeext
4505 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4506 $as_echo "$ac_cv_exeext" >&6; }
4508 rm -f conftest.$ac_ext
4509 EXEEXT=$ac_cv_exeext
4511 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4512 $as_echo_n "checking for suffix of object files... " >&6; }
4513 if test "${ac_cv_objext+set}" = set; then
4514 $as_echo_n "(cached) " >&6
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4531 rm -f conftest.o conftest.obj
4532 if { (ac_try="$ac_compile"
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4538 $as_echo "$ac_try_echo") >&5
4539 (eval "$ac_compile") 2>&5
4541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; then
4543 for ac_file in conftest.o conftest.obj conftest.*; do
4544 test -f "$ac_file" || continue;
4546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4547 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4552 $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4558 See \`config.log' for more details." >&5
4559 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4560 See \`config.log' for more details." >&2;}
4561 { (exit 1); exit 1; }; }; }
4564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4566 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4567 $as_echo "$ac_cv_objext" >&6; }
4568 OBJEXT=$ac_cv_objext
4570 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4571 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4572 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4573 $as_echo_n "(cached) " >&6
4575 cat >conftest.$ac_ext <<_ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601 (eval "$ac_compile") 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && {
4608 test -z "$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4610 } && test -s conftest.$ac_objext; then
4613 $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4623 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4624 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4625 if test $ac_compiler_gnu = yes; then
4630 ac_test_CFLAGS=${CFLAGS+set}
4631 ac_save_CFLAGS=$CFLAGS
4632 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4633 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4634 if test "${ac_cv_prog_cc_g+set}" = set; then
4635 $as_echo_n "(cached) " >&6
4637 ac_save_c_werror_flag=$ac_c_werror_flag
4638 ac_c_werror_flag=yes
4641 cat >conftest.$ac_ext <<_ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4656 rm -f conftest.$ac_objext
4657 if { (ac_try="$ac_compile"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4663 $as_echo "$ac_try_echo") >&5
4664 (eval "$ac_compile") 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && {
4671 test -z "$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4673 } && test -s conftest.$ac_objext; then
4676 $as_echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4695 rm -f conftest.$ac_objext
4696 if { (ac_try="$ac_compile"
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4702 $as_echo "$ac_try_echo") >&5
4703 (eval "$ac_compile") 2>conftest.er1
4705 grep -v '^ *+' conftest.er1 >conftest.err
4707 cat conftest.err >&5
4708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } && {
4710 test -z "$ac_c_werror_flag" ||
4711 test ! -s conftest.err
4712 } && test -s conftest.$ac_objext; then
4715 $as_echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4718 ac_c_werror_flag=$ac_save_c_werror_flag
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742 $as_echo "$ac_try_echo") >&5
4743 (eval "$ac_compile") 2>conftest.er1
4745 grep -v '^ *+' conftest.er1 >conftest.err
4747 cat conftest.err >&5
4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.$ac_objext; then
4755 $as_echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 ac_c_werror_flag=$ac_save_c_werror_flag
4770 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4771 $as_echo "$ac_cv_prog_cc_g" >&6; }
4772 if test "$ac_test_CFLAGS" = set; then
4773 CFLAGS=$ac_save_CFLAGS
4774 elif test $ac_cv_prog_cc_g = yes; then
4775 if test "$GCC" = yes; then
4781 if test "$GCC" = yes; then
4787 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4788 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4789 if test "${ac_cv_prog_cc_c89+set}" = set; then
4790 $as_echo_n "(cached) " >&6
4792 ac_cv_prog_cc_c89=no
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4802 #include <sys/types.h>
4803 #include <sys/stat.h>
4804 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4805 struct buf { int x; };
4806 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4807 static char *e (p, i)
4813 static char *f (char * (*g) (char **, int), char **p, ...)
4818 s = g (p, va_arg (v,int));
4823 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4824 function prototypes and stuff, but not '\xHH' hex character constants.
4825 These don't provoke an error unfortunately, instead are silently treated
4826 as 'x'. The following induces an error, until -std is added to get
4827 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4828 array size at least. It's necessary to write '\x00'==0 to get something
4829 that's true only with -std. */
4830 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4832 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4833 inside strings and character constants. */
4835 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4837 int test (int i, double x);
4838 struct s1 {int (*f) (int a);};
4839 struct s2 {int (*f) (double a);};
4840 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4846 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4851 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4852 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4854 CC="$ac_save_CC $ac_arg"
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_compile") 2>conftest.er1
4865 grep -v '^ *+' conftest.er1 >conftest.err
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && {
4870 test -z "$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 } && test -s conftest.$ac_objext; then
4873 ac_cv_prog_cc_c89=$ac_arg
4875 $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f core conftest.err conftest.$ac_objext
4882 test "x$ac_cv_prog_cc_c89" != "xno" && break
4884 rm -f conftest.$ac_ext
4889 case "x$ac_cv_prog_cc_c89" in
4891 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4892 $as_echo "none needed" >&6; } ;;
4894 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4895 $as_echo "unsupported" >&6; } ;;
4897 CC="$CC $ac_cv_prog_cc_c89"
4898 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4899 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4915 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4916 # On Suns, sometimes $CPP names a directory.
4917 if test -n "$CPP" && test -d "$CPP"; then
4920 if test -z "$CPP"; then
4921 if test "${ac_cv_prog_CPP+set}" = set; then
4922 $as_echo_n "(cached) " >&6
4924 # Double quotes because CPP needs to be expanded
4925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4928 for ac_c_preproc_warn_flag in '' yes
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4943 # include <limits.h>
4945 # include <assert.h>
4949 if { (ac_try="$ac_cpp conftest.$ac_ext"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4955 $as_echo "$ac_try_echo") >&5
4956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4958 grep -v '^ *+' conftest.er1 >conftest.err
4960 cat conftest.err >&5
4961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } >/dev/null && {
4963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4964 test ! -s conftest.err
4968 $as_echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 # Broken: fails on valid input.
4975 rm -f conftest.err conftest.$ac_ext
4977 # OK, works on sane cases. Now check whether nonexistent headers
4978 # can be detected and how.
4979 cat >conftest.$ac_ext <<_ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 #include <ac_nonexistent.h>
4987 if { (ac_try="$ac_cpp conftest.$ac_ext"
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4993 $as_echo "$ac_try_echo") >&5
4994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev/null && {
5001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5004 # Broken: success on invalid input.
5007 $as_echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5010 # Passes both tests.
5015 rm -f conftest.err conftest.$ac_ext
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then
5032 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5033 $as_echo "$CPP" >&6; }
5035 for ac_c_preproc_warn_flag in '' yes
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat >conftest.$ac_ext <<_ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5050 # include <limits.h>
5052 # include <assert.h>
5056 if { (ac_try="$ac_cpp conftest.$ac_ext"
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5062 $as_echo "$ac_try_echo") >&5
5063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev/null && {
5070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5075 $as_echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 # Broken: fails on valid input.
5082 rm -f conftest.err conftest.$ac_ext
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat >conftest.$ac_ext <<_ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <ac_nonexistent.h>
5094 if { (ac_try="$ac_cpp conftest.$ac_ext"
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100 $as_echo "$ac_try_echo") >&5
5101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null && {
5108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5111 # Broken: success on invalid input.
5114 $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 # Passes both tests.
5122 rm -f conftest.err conftest.$ac_ext
5125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126 rm -f conftest.err conftest.$ac_ext
5127 if $ac_preproc_ok; then
5130 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5133 See \`config.log' for more details." >&5
5134 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5135 See \`config.log' for more details." >&2;}
5136 { (exit 1); exit 1; }; }; }
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 echo $ac_n "${nl}Configuring PCRE regular expression library ...${nl}"
5149 # save our work to this point; this allows the sub-package to use it
5150 cat >confcache <<\_ACEOF
5151 # This file is a shell script that caches the results of configure
5152 # tests run on this system so they can be shared between configure
5153 # scripts and configure runs, see configure's option --config-cache.
5154 # It is not useful on other systems. If it contains results you don't
5155 # want to keep, you may remove or edit it.
5157 # config.status only pays attention to the cache file if you give it
5158 # the --recheck option to rerun configure.
5160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5166 # The following way of writing the cache mishandles newlines in values,
5167 # but we know of no workaround that is simple, portable, and efficient.
5168 # So, we kill variables containing newlines.
5169 # Ultrix sh set writes to stderr and can't be redirected directly,
5170 # and sets the high bit in the cache file unless we assign to the vars.
5172 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5173 eval ac_val=\$$ac_var
5177 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5181 _ | IFS | as_nl) ;; #(
5182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5183 *) $as_unset $ac_var ;;
5189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5190 *${as_nl}ac_space=\ *)
5191 # `set' does not quote correctly, so add quotes (double-quote
5192 # substitution turns \\\\ into \\, and sed turns \\ into \).
5195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5198 # `set' quotes correctly as required by POSIX, so do not add quotes.
5199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5213 if test -w "$cache_file"; then
5214 test "x$cache_file" != "x/dev/null" &&
5215 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5216 $as_echo "$as_me: updating cache $cache_file" >&6;}
5217 cat confcache >$cache_file
5219 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5220 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5225 echo "configuring package in srclib/pcre now"
5227 apr_config_subdirs="srclib/pcre"
5228 test -d srclib/pcre || $mkdir_p srclib/pcre
5229 ac_abs_srcdir=`(cd $srcdir/srclib/pcre && pwd)`
5232 # A "../" for each directory in /$config_subdirs.
5233 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5235 # Make the cache file pathname absolute for the subdirs
5236 # required to correctly handle subdirs that might actually
5238 case "$cache_file" in
5239 /*) # already absolute
5240 ac_sub_cache_file=$cache_file ;;
5241 *) # Was relative path.
5242 ac_sub_cache_file="$ac_popdir/$cache_file" ;;
5245 apr_configure_args=$ac_configure_args
5247 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
5249 apr_configure_args="--disable-option-checking $apr_configure_args"
5251 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir
5253 echo "srclib/pcre configured properly"
5255 echo "configure failed for srclib/pcre"
5261 # grab any updates from the sub-package
5262 if test -r "$cache_file"; then
5263 # Some versions of bash will fail to source /dev/null (special
5264 # files actually), so we avoid doing that.
5265 if test -f "$cache_file"; then
5266 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
5267 $as_echo "$as_me: loading cache $cache_file" >&6;}
5269 [\\/]* | ?:[\\/]* ) . "$cache_file";;
5270 *) . "./$cache_file";;
5274 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
5275 $as_echo "$as_me: creating cache $cache_file" >&6;}
5281 echo $ac_n "${nl}Configuring Apache httpd ...${nl}"
5283 abs_srcdir=`(cd $srcdir && pwd)`
5288 if test "x$INCLUDES" = "x"; then
5289 echo " setting INCLUDES to \"-I.\""
5292 apr_addto_bugger="-I."
5293 for i in $apr_addto_bugger; do
5294 apr_addto_duplicate="0"
5295 for j in $INCLUDES; do
5296 if test "x$i" = "x$j"; then
5297 apr_addto_duplicate="1"
5301 if test $apr_addto_duplicate = "0"; then
5302 echo " adding \"$i\" to INCLUDES"
5303 INCLUDES="$INCLUDES $i"
5309 if test "$abs_builddir" != "$abs_srcdir"; then
5312 if test "x$INCLUDES" = "x"; then
5313 echo " setting INCLUDES to \"-I\$(srcdir) -I\$(top_builddir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_builddir)/include\""
5314 INCLUDES="-I\$(srcdir) -I\$(top_builddir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_builddir)/include"
5316 apr_addto_bugger="-I\$(srcdir) -I\$(top_builddir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_builddir)/include"
5317 for i in $apr_addto_bugger; do
5318 apr_addto_duplicate="0"
5319 for j in $INCLUDES; do
5320 if test "x$i" = "x$j"; then
5321 apr_addto_duplicate="1"
5325 if test $apr_addto_duplicate = "0"; then
5326 echo " adding \"$i\" to INCLUDES"
5327 INCLUDES="$INCLUDES $i"
5335 if test "x$INCLUDES" = "x"; then
5336 echo " setting INCLUDES to \"-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators\""
5337 INCLUDES="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators"
5339 apr_addto_bugger="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators"
5340 for i in $apr_addto_bugger; do
5341 apr_addto_duplicate="0"
5342 for j in $INCLUDES; do
5343 if test "x$i" = "x$j"; then
5344 apr_addto_duplicate="1"
5348 if test $apr_addto_duplicate = "0"; then
5349 echo " adding \"$i\" to INCLUDES"
5350 INCLUDES="$INCLUDES $i"
5356 echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
5360 # Use a custom made libtool replacement
5361 echo "using aplibtool"
5362 LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
5363 SH_LIBTOOL="$LIBTOOL --shared --export-all"
5364 SH_LIBS="\$(ALL_LIBS)"
5365 CORE_IMPLIB_FILE="ApacheCoreOS2.la"
5366 CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
5368 other_targets="$other_targets os2core"
5369 INSTALL_PROG_FLAGS="-e .exe"
5374 if test "x$LTFLAGS" = "x"; then
5377 my_libtool=`$apr_config --apr-libtool`
5378 LIBTOOL="$my_libtool \$(LTFLAGS)"
5379 libtoolversion=`$my_libtool --version`
5380 case $libtoolversion in
5382 SH_LIBTOOL='$(LIBTOOL)'
5383 SHLTCFLAGS="-prefer-pic"
5384 LTCFLAGS="-prefer-non-pic -static"
5387 SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
5395 APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLTCFLAGS"
5399 APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTCFLAGS"
5403 AP_SIG_GRACEFUL=USR1
5408 echo " forcing APACHE_MPM to \"prefork\""
5409 APACHE_MPM="prefork"
5412 echo " forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5413 SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5418 echo " forcing APACHE_MPM to \"beos\""
5422 echo " forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5423 SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5428 echo " forcing APACHE_MPM to \"mpmt_os2\""
5429 APACHE_MPM="mpmt_os2"
5432 echo " forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5433 SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5439 AP_SIG_GRACEFUL=WINCH
5443 echo " forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5444 SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5451 *486-*-bsdi* | *-netbsd* | *-freebsd* | *-apple-darwin* | *-dec-osf* | *-qnx)
5453 echo " forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5454 SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5458 ap_platform_runtime_link_flag="-R"
5464 echo " forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5465 SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5472 echo " forcing APACHE_MPM to \"prefork\""
5473 APACHE_MPM="prefork"
5476 echo " forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5477 SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5481 aixver=`echo $host | sed 's/^[^0-9]*//' | sed 's/\.//g'`
5482 if test $aixver -ge 4320; then
5484 echo " forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5485 SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5491 echo " forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
5492 SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
5498 echo " forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to \"1\""
5499 AP_NONBLOCK_WHEN_MULTI_LISTEN="1"
5504 # Extract the first word of "rm", so it can be a program name with args.
5505 set dummy rm; ac_word=$2
5506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if test "${ac_cv_path_RM+set}" = set; then
5509 $as_echo_n "(cached) " >&6
5513 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 if test -n "$RM"; then
5536 { $as_echo "$as_me:$LINENO: result: $RM" >&5
5537 $as_echo "$RM" >&6; }
5539 { $as_echo "$as_me:$LINENO: result: no" >&5
5540 $as_echo "no" >&6; }
5544 for ac_prog in gawk mawk nawk awk
5546 # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_AWK+set}" = set; then
5551 $as_echo_n "(cached) " >&6
5553 if test -n "$AWK"; then
5554 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_AWK="$ac_prog"
5564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 if test -n "$AWK"; then
5575 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5576 $as_echo "$AWK" >&6; }
5578 { $as_echo "$as_me:$LINENO: result: no" >&5
5579 $as_echo "no" >&6; }
5583 test -n "$AWK" && break
5586 # Find a good install program. We prefer a C program (faster),
5587 # so one script is as good as another. But avoid the broken or
5588 # incompatible versions:
5589 # SysV /etc/install, /usr/sbin/install
5590 # SunOS /usr/etc/install
5591 # IRIX /sbin/install
5593 # AmigaOS /C/install, which installs bootblocks on floppy discs
5594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5597 # OS/2's system install, which has a completely different semantic
5598 # ./install, which can be erroneously created by make from ./install.sh.
5599 # Reject install programs that cannot install multiple files.
5600 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5601 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5602 if test -z "$INSTALL"; then
5603 if test "${ac_cv_path_install+set}" = set; then
5604 $as_echo_n "(cached) " >&6
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 test -z "$as_dir" && as_dir=.
5611 # Account for people who put trailing slashes in PATH elements.
5613 ./ | .// | /cC/* | \
5614 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5615 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5618 # OSF1 and SCO ODT 3.0 have their own names for install.
5619 # Don't use installbsd from OSF since it installs stuff as root
5621 for ac_prog in ginstall scoinst install; do
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5624 if test $ac_prog = install &&
5625 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5626 # AIX install. It has an incompatible calling convention.
5628 elif test $ac_prog = install &&
5629 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5630 # program-specific install script used by HP pwplus--don't use.
5633 rm -rf conftest.one conftest.two conftest.dir
5634 echo one > conftest.one
5635 echo two > conftest.two
5637 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5638 test -s conftest.one && test -s conftest.two &&
5639 test -s conftest.dir/conftest.one &&
5640 test -s conftest.dir/conftest.two
5642 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5655 rm -rf conftest.one conftest.two conftest.dir
5658 if test "${ac_cv_path_install+set}" = set; then
5659 INSTALL=$ac_cv_path_install
5661 # As a last resort, use the slow shell script. Don't cache a
5662 # value for INSTALL within a source directory, because that will
5663 # break other packages using the cache if that directory is
5664 # removed, or if the value is a relative name.
5665 INSTALL=$ac_install_sh
5668 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5669 $as_echo "$INSTALL" >&6; }
5671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5672 # It thinks the first close brace ends the variable substitution.
5673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5679 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5680 $as_echo_n "checking whether ln -s works... " >&6; }
5682 if test "$LN_S" = "ln -s"; then
5683 { $as_echo "$as_me:$LINENO: result: yes" >&5
5684 $as_echo "yes" >&6; }
5686 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5687 $as_echo "no, using $LN_S" >&6; }
5690 if test -n "$ac_tool_prefix"; then
5691 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_prog_RANLIB+set}" = set; then
5696 $as_echo_n "(cached) " >&6
5698 if test -n "$RANLIB"; then
5699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 RANLIB=$ac_cv_prog_RANLIB
5719 if test -n "$RANLIB"; then
5720 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5721 $as_echo "$RANLIB" >&6; }
5723 { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5729 if test -z "$ac_cv_prog_RANLIB"; then
5730 ac_ct_RANLIB=$RANLIB
5731 # Extract the first word of "ranlib", so it can be a program name with args.
5732 set dummy ranlib; ac_word=$2
5733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5736 $as_echo_n "(cached) " >&6
5738 if test -n "$ac_ct_RANLIB"; then
5739 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_ac_ct_RANLIB="ranlib"
5749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5759 if test -n "$ac_ct_RANLIB"; then
5760 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5761 $as_echo "$ac_ct_RANLIB" >&6; }
5763 { $as_echo "$as_me:$LINENO: result: no" >&5
5764 $as_echo "no" >&6; }
5767 if test "x$ac_ct_RANLIB" = x; then
5770 case $cross_compiling:$ac_tool_warned in
5772 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774 ac_tool_warned=yes ;;
5776 RANLIB=$ac_ct_RANLIB
5779 RANLIB="$ac_cv_prog_RANLIB"
5786 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5787 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5788 if test "${ac_cv_path_GREP+set}" = set; then
5789 $as_echo_n "(cached) " >&6
5791 if test -z "$GREP"; then
5792 ac_path_GREP_found=false
5793 # Loop through the user's path and test for each of PROGNAME-LIST
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5798 test -z "$as_dir" && as_dir=.
5799 for ac_prog in grep ggrep; do
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5802 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5803 # Check for GNU ac_path_GREP and select it if it is found.
5804 # Check for GNU $ac_path_GREP
5805 case `"$ac_path_GREP" --version 2>&1` in
5807 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5810 $as_echo_n 0123456789 >"conftest.in"
5813 cat "conftest.in" "conftest.in" >"conftest.tmp"
5814 mv "conftest.tmp" "conftest.in"
5815 cp "conftest.in" "conftest.nl"
5816 $as_echo 'GREP' >> "conftest.nl"
5817 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5819 ac_count=`expr $ac_count + 1`
5820 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5821 # Best one so far, save it but keep looking for a better one
5822 ac_cv_path_GREP="$ac_path_GREP"
5823 ac_path_GREP_max=$ac_count
5825 # 10*(2^10) chars as input seems more than enough
5826 test $ac_count -gt 10 && break
5828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831 $ac_path_GREP_found && break 3
5836 if test -z "$ac_cv_path_GREP"; then
5837 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5838 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5839 { (exit 1); exit 1; }; }
5842 ac_cv_path_GREP=$GREP
5846 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5847 $as_echo "$ac_cv_path_GREP" >&6; }
5848 GREP="$ac_cv_path_GREP"
5851 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5852 $as_echo_n "checking for egrep... " >&6; }
5853 if test "${ac_cv_path_EGREP+set}" = set; then
5854 $as_echo_n "(cached) " >&6
5856 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5857 then ac_cv_path_EGREP="$GREP -E"
5859 if test -z "$EGREP"; then
5860 ac_path_EGREP_found=false
5861 # Loop through the user's path and test for each of PROGNAME-LIST
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5866 test -z "$as_dir" && as_dir=.
5867 for ac_prog in egrep; do
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5870 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5871 # Check for GNU ac_path_EGREP and select it if it is found.
5872 # Check for GNU $ac_path_EGREP
5873 case `"$ac_path_EGREP" --version 2>&1` in
5875 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5878 $as_echo_n 0123456789 >"conftest.in"
5881 cat "conftest.in" "conftest.in" >"conftest.tmp"
5882 mv "conftest.tmp" "conftest.in"
5883 cp "conftest.in" "conftest.nl"
5884 $as_echo 'EGREP' >> "conftest.nl"
5885 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5887 ac_count=`expr $ac_count + 1`
5888 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5889 # Best one so far, save it but keep looking for a better one
5890 ac_cv_path_EGREP="$ac_path_EGREP"
5891 ac_path_EGREP_max=$ac_count
5893 # 10*(2^10) chars as input seems more than enough
5894 test $ac_count -gt 10 && break
5896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5899 $ac_path_EGREP_found && break 3
5904 if test -z "$ac_cv_path_EGREP"; then
5905 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5906 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5907 { (exit 1); exit 1; }; }
5910 ac_cv_path_EGREP=$EGREP
5915 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5916 $as_echo "$ac_cv_path_EGREP" >&6; }
5917 EGREP="$ac_cv_path_EGREP"
5920 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5921 $as_echo_n "checking for ANSI C header files... " >&6; }
5922 if test "${ac_cv_header_stdc+set}" = set; then
5923 $as_echo_n "(cached) " >&6
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5951 $as_echo "$ac_try_echo") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest.$ac_objext; then
5962 ac_cv_header_stdc=yes
5964 $as_echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_cv_header_stdc=no
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 if test $ac_cv_header_stdc = yes; then
5973 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5984 $EGREP "memchr" >/dev/null 2>&1; then
5987 ac_cv_header_stdc=no
5993 if test $ac_cv_header_stdc = yes; then
5994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5995 cat >conftest.$ac_ext <<_ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6005 $EGREP "free" >/dev/null 2>&1; then
6008 ac_cv_header_stdc=no
6014 if test $ac_cv_header_stdc = yes; then
6015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6016 if test "$cross_compiling" = yes; then
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6027 #if ((' ' & 0x0FF) == 0x020)
6028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6031 # define ISLOWER(c) \
6032 (('a' <= (c) && (c) <= 'i') \
6033 || ('j' <= (c) && (c) <= 'r') \
6034 || ('s' <= (c) && (c) <= 'z'))
6035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6043 for (i = 0; i < 256; i++)
6044 if (XOR (islower (i), ISLOWER (i))
6045 || toupper (i) != TOUPPER (i))
6050 rm -f conftest$ac_exeext
6051 if { (ac_try="$ac_link"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058 (eval "$ac_link") 2>&5
6060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6062 { (case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6067 $as_echo "$ac_try_echo") >&5
6068 (eval "$ac_try") 2>&5
6070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6074 $as_echo "$as_me: program exited with status $ac_status" >&5
6075 $as_echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_cv_header_stdc=no
6081 rm -rf conftest.dSYM
6082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6089 $as_echo "$ac_cv_header_stdc" >&6; }
6090 if test $ac_cv_header_stdc = yes; then
6092 cat >>confdefs.h <<\_ACEOF
6093 #define STDC_HEADERS 1
6098 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6108 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6109 inttypes.h stdint.h unistd.h
6111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6113 $as_echo_n "checking for $ac_header... " >&6; }
6114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6115 $as_echo_n "(cached) " >&6
6117 cat >conftest.$ac_ext <<_ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 $ac_includes_default
6125 #include <$ac_header>
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6134 $as_echo "$ac_try_echo") >&5
6135 (eval "$ac_compile") 2>conftest.er1
6137 grep -v '^ *+' conftest.er1 >conftest.err
6139 cat conftest.err >&5
6140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } && {
6142 test -z "$ac_c_werror_flag" ||
6143 test ! -s conftest.err
6144 } && test -s conftest.$ac_objext; then
6145 eval "$as_ac_Header=yes"
6147 $as_echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 eval "$as_ac_Header=no"
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 ac_res=`eval 'as_val=${'$as_ac_Header'}
6156 $as_echo "$as_val"'`
6157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6158 $as_echo "$ac_res" >&6; }
6159 as_val=`eval 'as_val=${'$as_ac_Header'}
6160 $as_echo "$as_val"'`
6161 if test "x$as_val" = x""yes; then
6162 cat >>confdefs.h <<_ACEOF
6163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6172 if test "${ac_cv_header_minix_config_h+set}" = set; then
6173 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6174 $as_echo_n "checking for minix/config.h... " >&6; }
6175 if test "${ac_cv_header_minix_config_h+set}" = set; then
6176 $as_echo_n "(cached) " >&6
6178 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6179 $as_echo "$ac_cv_header_minix_config_h" >&6; }
6181 # Is the header compilable?
6182 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6183 $as_echo_n "checking minix/config.h usability... " >&6; }
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6191 #include <minix/config.h>
6193 rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200 $as_echo "$ac_try_echo") >&5
6201 (eval "$ac_compile") 2>conftest.er1
6203 grep -v '^ *+' conftest.er1 >conftest.err
6205 cat conftest.err >&5
6206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest.$ac_objext; then
6211 ac_header_compiler=yes
6213 $as_echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6216 ac_header_compiler=no
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221 $as_echo "$ac_header_compiler" >&6; }
6223 # Is the header present?
6224 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6225 $as_echo_n "checking minix/config.h presence... " >&6; }
6226 cat >conftest.$ac_ext <<_ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 #include <minix/config.h>
6234 if { (ac_try="$ac_cpp conftest.$ac_ext"
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6240 $as_echo "$ac_try_echo") >&5
6241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null && {
6248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6251 ac_header_preproc=yes
6253 $as_echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_header_preproc=no
6259 rm -f conftest.err conftest.$ac_ext
6260 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6261 $as_echo "$ac_header_preproc" >&6; }
6263 # So? What about this header?
6264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6266 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6267 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6268 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6269 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6270 ac_header_preproc=yes
6273 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6274 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6275 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6276 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6277 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6278 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6279 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6280 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6281 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6282 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6283 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6284 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6288 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6289 $as_echo_n "checking for minix/config.h... " >&6; }
6290 if test "${ac_cv_header_minix_config_h+set}" = set; then
6291 $as_echo_n "(cached) " >&6
6293 ac_cv_header_minix_config_h=$ac_header_preproc
6295 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6296 $as_echo "$ac_cv_header_minix_config_h" >&6; }
6299 if test "x$ac_cv_header_minix_config_h" = x""yes; then
6306 if test "$MINIX" = yes; then
6308 cat >>confdefs.h <<\_ACEOF
6309 #define _POSIX_SOURCE 1
6313 cat >>confdefs.h <<\_ACEOF
6314 #define _POSIX_1_SOURCE 2
6318 cat >>confdefs.h <<\_ACEOF
6326 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6327 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6328 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6329 $as_echo_n "(cached) " >&6
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6338 # define __EXTENSIONS__ 1
6339 $ac_includes_default
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6355 $as_echo "$ac_try_echo") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } && {
6363 test -z "$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 } && test -s conftest.$ac_objext; then
6366 ac_cv_safe_to_define___extensions__=yes
6368 $as_echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 ac_cv_safe_to_define___extensions__=no
6374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6377 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6378 test $ac_cv_safe_to_define___extensions__ = yes &&
6379 cat >>confdefs.h <<\_ACEOF
6380 #define __EXTENSIONS__ 1
6383 cat >>confdefs.h <<\_ACEOF
6384 #define _ALL_SOURCE 1
6387 cat >>confdefs.h <<\_ACEOF
6388 #define _GNU_SOURCE 1
6391 cat >>confdefs.h <<\_ACEOF
6392 #define _POSIX_PTHREAD_SEMANTICS 1
6395 cat >>confdefs.h <<\_ACEOF
6396 #define _TANDEM_SOURCE 1
6402 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
6403 $as_echo_n "checking for library containing strerror... " >&6; }
6404 if test "${ac_cv_search_strerror+set}" = set; then
6405 $as_echo_n "(cached) " >&6
6407 ac_func_search_save_LIBS=$LIBS
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6415 /* Override any GCC internal prototype to avoid an error.
6416 Use char because int might match the return type of a GCC
6417 builtin and then its argument prototype would still apply. */
6430 for ac_lib in '' cposix; do
6431 if test -z "$ac_lib"; then
6432 ac_res="none required"
6435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (ac_try="$ac_link"
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6444 $as_echo "$ac_try_echo") >&5
6445 (eval "$ac_link") 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext && {
6455 test "$cross_compiling" = yes ||
6456 $as_test_x conftest$ac_exeext
6458 ac_cv_search_strerror=$ac_res
6460 $as_echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6466 rm -rf conftest.dSYM
6467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6469 if test "${ac_cv_search_strerror+set}" = set; then
6473 if test "${ac_cv_search_strerror+set}" = set; then
6476 ac_cv_search_strerror=no
6479 LIBS=$ac_func_search_save_LIBS
6481 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6482 $as_echo "$ac_cv_search_strerror" >&6; }
6483 ac_res=$ac_cv_search_strerror
6484 if test "$ac_res" != no; then
6485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6494 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6495 $as_echo_n "checking for ANSI C header files... " >&6; }
6496 if test "${ac_cv_header_stdc+set}" = set; then
6497 $as_echo_n "(cached) " >&6
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6525 $as_echo "$ac_try_echo") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6528 grep -v '^ *+' conftest.er1 >conftest.err
6530 cat conftest.err >&5
6531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 ac_cv_header_stdc=yes
6538 $as_echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 ac_cv_header_stdc=no
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 if test $ac_cv_header_stdc = yes; then
6547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6548 cat >conftest.$ac_ext <<_ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6558 $EGREP "memchr" >/dev/null 2>&1; then
6561 ac_cv_header_stdc=no
6567 if test $ac_cv_header_stdc = yes; then
6568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6569 cat >conftest.$ac_ext <<_ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6579 $EGREP "free" >/dev/null 2>&1; then
6582 ac_cv_header_stdc=no
6588 if test $ac_cv_header_stdc = yes; then
6589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6590 if test "$cross_compiling" = yes; then
6593 cat >conftest.$ac_ext <<_ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6601 #if ((' ' & 0x0FF) == 0x020)
6602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6605 # define ISLOWER(c) \
6606 (('a' <= (c) && (c) <= 'i') \
6607 || ('j' <= (c) && (c) <= 'r') \
6608 || ('s' <= (c) && (c) <= 'z'))
6609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6617 for (i = 0; i < 256; i++)
6618 if (XOR (islower (i), ISLOWER (i))
6619 || toupper (i) != TOUPPER (i))
6624 rm -f conftest$ac_exeext
6625 if { (ac_try="$ac_link"
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6631 $as_echo "$ac_try_echo") >&5
6632 (eval "$ac_link") 2>&5
6634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6636 { (case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641 $as_echo "$ac_try_echo") >&5
6642 (eval "$ac_try") 2>&5
6644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6648 $as_echo "$as_me: program exited with status $ac_status" >&5
6649 $as_echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6653 ac_cv_header_stdc=no
6655 rm -rf conftest.dSYM
6656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6662 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6663 $as_echo "$ac_cv_header_stdc" >&6; }
6664 if test $ac_cv_header_stdc = yes; then
6666 cat >>confdefs.h <<\_ACEOF
6667 #define STDC_HEADERS 1
6695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6697 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6698 $as_echo_n "checking for $ac_header... " >&6; }
6699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6700 $as_echo_n "(cached) " >&6
6702 ac_res=`eval 'as_val=${'$as_ac_Header'}
6703 $as_echo "$as_val"'`
6704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6705 $as_echo "$ac_res" >&6; }
6707 # Is the header compilable?
6708 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6709 $as_echo_n "checking $ac_header usability... " >&6; }
6710 cat >conftest.$ac_ext <<_ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 $ac_includes_default
6717 #include <$ac_header>
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_compile") 2>conftest.er1
6729 grep -v '^ *+' conftest.er1 >conftest.err
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && {
6734 test -z "$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest.$ac_objext; then
6737 ac_header_compiler=yes
6739 $as_echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 ac_header_compiler=no
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6747 $as_echo "$ac_header_compiler" >&6; }
6749 # Is the header present?
6750 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6751 $as_echo_n "checking $ac_header presence... " >&6; }
6752 cat >conftest.$ac_ext <<_ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6758 #include <$ac_header>
6760 if { (ac_try="$ac_cpp conftest.$ac_ext"
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6766 $as_echo "$ac_try_echo") >&5
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev/null && {
6774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6777 ac_header_preproc=yes
6779 $as_echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_header_preproc=no
6785 rm -f conftest.err conftest.$ac_ext
6786 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6787 $as_echo "$ac_header_preproc" >&6; }
6789 # So? What about this header?
6790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6793 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6795 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6796 ac_header_preproc=yes
6799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6800 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6802 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6804 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6806 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6808 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6810 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6814 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6815 $as_echo_n "checking for $ac_header... " >&6; }
6816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6817 $as_echo_n "(cached) " >&6
6819 eval "$as_ac_Header=\$ac_header_preproc"
6821 ac_res=`eval 'as_val=${'$as_ac_Header'}
6822 $as_echo "$as_val"'`
6823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6824 $as_echo "$ac_res" >&6; }
6827 as_val=`eval 'as_val=${'$as_ac_Header'}
6828 $as_echo "$as_val"'`
6829 if test "x$as_val" = x""yes; then
6830 cat >>confdefs.h <<_ACEOF
6831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6839 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6840 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6841 $as_echo_n "(cached) " >&6
6843 cat >conftest.$ac_ext <<_ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 #include <sys/types.h>
6850 #include <sys/wait.h>
6852 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6855 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6863 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6868 rm -f conftest.$ac_objext
6869 if { (ac_try="$ac_compile"
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6875 $as_echo "$ac_try_echo") >&5
6876 (eval "$ac_compile") 2>conftest.er1
6878 grep -v '^ *+' conftest.er1 >conftest.err
6880 cat conftest.err >&5
6881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } && {
6883 test -z "$ac_c_werror_flag" ||
6884 test ! -s conftest.err
6885 } && test -s conftest.$ac_objext; then
6886 ac_cv_header_sys_wait_h=yes
6888 $as_echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6891 ac_cv_header_sys_wait_h=no
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6897 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6898 if test $ac_cv_header_sys_wait_h = yes; then
6900 cat >>confdefs.h <<\_ACEOF
6901 #define HAVE_SYS_WAIT_H 1
6908 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6909 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6910 if test "${ac_cv_c_const+set}" = set; then
6911 $as_echo_n "(cached) " >&6
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6923 /* FIXME: Include the comments suggested by Paul. */
6925 /* Ultrix mips cc rejects this. */
6926 typedef int charset[2];
6928 /* SunOS 4.1.1 cc rejects this. */
6929 char const *const *pcpcc;
6931 /* NEC SVR4.0.2 mips cc rejects this. */
6932 struct point {int x, y;};
6933 static struct point const zero = {0,0};
6934 /* AIX XL C 1.02.0.0 rejects this.
6935 It does not let you subtract one const X* pointer from another in
6936 an arm of an if-expression whose if-part is not a constant
6938 const char *g = "string";
6939 pcpcc = &g + (g ? g-g : 0);
6940 /* HPUX 7.0 cc rejects these. */
6942 ppc = (char**) pcpcc;
6943 pcpcc = (char const *const *) ppc;
6944 { /* SCO 3.2v4 cc rejects this. */
6946 char const *s = 0 ? (char *) 0 : (char const *) 0;
6951 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6953 const int *foo = &x[0];
6956 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6957 typedef const int *iptr;
6961 { /* AIX XL C 1.02.0.0 rejects this saying
6962 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6963 struct s { int j; const int *ap[3]; };
6964 struct s *b; b->j = 5;
6966 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6970 return !cs[0] && !zero.x;
6977 rm -f conftest.$ac_objext
6978 if { (ac_try="$ac_compile"
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6984 $as_echo "$ac_try_echo") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6987 grep -v '^ *+' conftest.er1 >conftest.err
6989 cat conftest.err >&5
6990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6997 $as_echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7006 $as_echo "$ac_cv_c_const" >&6; }
7007 if test $ac_cv_c_const = no; then
7009 cat >>confdefs.h <<\_ACEOF
7015 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7017 if test "x$NOTEST_CPPFLAGS" = "x"; then
7018 echo " setting NOTEST_CPPFLAGS to \"-DAP_HAVE_DESIGNATED_INITIALIZER\""
7019 NOTEST_CPPFLAGS="-DAP_HAVE_DESIGNATED_INITIALIZER"
7021 apr_addto_bugger="-DAP_HAVE_DESIGNATED_INITIALIZER"
7022 for i in $apr_addto_bugger; do
7023 apr_addto_duplicate="0"
7024 for j in $NOTEST_CPPFLAGS; do
7025 if test "x$i" = "x$j"; then
7026 apr_addto_duplicate="1"
7030 if test $apr_addto_duplicate = "0"; then
7031 echo " adding \"$i\" to NOTEST_CPPFLAGS"
7032 NOTEST_CPPFLAGS="$NOTEST_CPPFLAGS $i"
7056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7057 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7058 $as_echo_n "checking for $ac_func... " >&6; }
7059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7060 $as_echo_n "(cached) " >&6
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7070 #define $ac_func innocuous_$ac_func
7072 /* System header to define __stub macros and hopefully few prototypes,
7073 which can conflict with char $ac_func (); below.
7074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075 <limits.h> exists even on freestanding compilers. */
7078 # include <limits.h>
7080 # include <assert.h>
7085 /* Override any GCC internal prototype to avoid an error.
7086 Use char because int might match the return type of a GCC
7087 builtin and then its argument prototype would still apply. */
7092 /* The GNU C library defines this for functions which it implements
7093 to always fail with ENOSYS. Some functions are actually named
7094 something starting with __ and the normal name is an alias. */
7095 #if defined __stub_$ac_func || defined __stub___$ac_func
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (ac_try="$ac_link"
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7114 $as_echo "$ac_try_echo") >&5
7115 (eval "$ac_link") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1 >conftest.err
7119 cat conftest.err >&5
7120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest$ac_exeext && {
7125 test "$cross_compiling" = yes ||
7126 $as_test_x conftest$ac_exeext
7128 eval "$as_ac_var=yes"
7130 $as_echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 eval "$as_ac_var=no"
7136 rm -rf conftest.dSYM
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7138 conftest$ac_exeext conftest.$ac_ext
7140 ac_res=`eval 'as_val=${'$as_ac_var'}
7141 $as_echo "$as_val"'`
7142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7143 $as_echo "$ac_res" >&6; }
7144 as_val=`eval 'as_val=${'$as_ac_var'}
7145 $as_echo "$as_val"'`
7146 if test "x$as_val" = x""yes; then
7147 cat >>confdefs.h <<_ACEOF
7148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7155 { $as_echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
7156 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
7157 if test "${ac_cv_struct_tm_gmtoff+set}" = set; then
7158 $as_echo_n "(cached) " >&6
7160 cat >conftest.$ac_ext <<_ACEOF
7163 cat confdefs.h >>conftest.$ac_ext
7164 cat >>conftest.$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7166 #include <sys/types.h>
7171 struct tm tm; tm.tm_gmtoff;
7176 rm -f conftest.$ac_objext
7177 if { (ac_try="$ac_compile"
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7183 $as_echo "$ac_try_echo") >&5
7184 (eval "$ac_compile") 2>conftest.er1
7186 grep -v '^ *+' conftest.er1 >conftest.err
7188 cat conftest.err >&5
7189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } && {
7191 test -z "$ac_c_werror_flag" ||
7192 test ! -s conftest.err
7193 } && test -s conftest.$ac_objext; then
7194 ac_cv_struct_tm_gmtoff=yes
7196 $as_echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 ac_cv_struct_tm_gmtoff=no
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm_gmtoff" >&5
7205 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
7206 if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
7207 cat >>confdefs.h <<\_ACEOF
7208 #define HAVE_GMTOFF 1
7216 # for 32-bit builds, increase MAXDATA to allow lots of threads
7217 if test x$OBJECT_MODE != x64; then
7218 OS_SPECIFIC_VARS="LDR_CNTRL=\"MAXDATA=0x80000000\" ; export LDR_CNTRL ;"
7220 OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS AIXTHREAD_SCOPE=S ; export AIXTHREAD_SCOPE"
7221 OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_MUTEX_DEBUG=OFF ; export AIXTHREAD_MUTEX_DEBUG"
7222 OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_RWLOCK_DEBUG=OFF ; export AIXTHREAD_RWLOCK_DEBUG"
7223 OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_COND_DEBUG=OFF ; export AIXTHREAD_COND_DEBUG"
7224 OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; SPINLOOPTIME=1000 ; export SPINLOOPTIME"
7225 OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; YIELDLOOPTIME=8 ; export YIELDLOOPTIME"
7226 OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; MALLOCMULTIHEAP=considersize,heaps:8 ; export MALLOCMULTIHEAP"
7229 OS_SPECIFIC_VARS="export _CEE_RUNOPTS=\"STACK(,,ANY)\" ; export _EDC_ADD_ERRNO2=1"
7236 # Check whether --with-port was given.
7237 if test "${with_port+set}" = set; then
7238 withval=$with_port; if test "$withval" = "yes"; then { { $as_echo "$as_me:$LINENO: error: 'option --with-port requires a value (the TCP port number)'" >&5
7239 $as_echo "$as_me: error: 'option --with-port requires a value (the TCP port number)'" >&2;}
7240 { (exit 1); exit 1; }; }; else PORT="$withval"; fi
7247 apr_old_cppflags=$CPPFLAGS
7248 CPPFLAGS="$CPPFLAGS $INCLUDES"
7249 cat >conftest.$ac_ext <<_ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
7264 ac_cv_define_APR_HAVE_IPV6=yes
7266 ac_cv_define_APR_HAVE_IPV6=no
7270 CPPFLAGS=$apr_old_cppflags
7273 # Check whether --enable-v4-mapped was given.
7274 if test "${enable_v4_mapped+set}" = set; then
7275 enableval=$enable_v4_mapped;
7281 *freebsd5*|*netbsd*|*openbsd*)
7292 if test $v4mapped = "yes" -o $ac_cv_define_APR_HAVE_IPV6 = "no"; then
7293 nonssl_listen_stmt_1=""
7294 nonssl_listen_stmt_2="Listen @@Port@@"
7295 if test $ac_cv_define_APR_HAVE_IPV6 = "yes"; then
7297 cat >>confdefs.h <<\_ACEOF
7298 #define AP_ENABLE_V4_MAPPED 1
7303 nonssl_listen_stmt_1="Listen 0.0.0.0:@@Port@@"
7304 nonssl_listen_stmt_2="Listen [::]:@@Port@@"
7307 # Check whether --enable-exception-hook was given.
7308 if test "${enable_exception_hook+set}" = set; then
7309 enableval=$enable_exception_hook;
7311 cat >>confdefs.h <<\_ACEOF
7312 #define AP_ENABLE_EXCEPTION_HOOK 1
7318 # Check whether --enable-maintainer-mode was given.
7319 if test "${enable_maintainer_mode+set}" = set; then
7320 enableval=$enable_maintainer_mode;
7322 if test "x$CPPFLAGS" = "x"; then
7323 echo " setting CPPFLAGS to \"-DAP_DEBUG\""
7324 CPPFLAGS="-DAP_DEBUG"
7326 apr_addto_bugger="-DAP_DEBUG"
7327 for i in $apr_addto_bugger; do
7328 apr_addto_duplicate="0"
7329 for j in $CPPFLAGS; do
7330 if test "x$i" = "x$j"; then
7331 apr_addto_duplicate="1"
7335 if test $apr_addto_duplicate = "0"; then
7336 echo " adding \"$i\" to CPPFLAGS"
7337 CPPFLAGS="$CPPFLAGS $i"
7345 prefix="$orig_prefix"
7347 module_selection=default
7350 # Check whether --enable-modules was given.
7351 if test "${enable_modules+set}" = set; then
7352 enableval=$enable_modules;
7353 for i in $enableval; do
7354 if test "$i" = "all" -o "$i" = "most"; then
7357 eval "enable_$i=yes"
7364 # Check whether --enable-mods-shared was given.
7365 if test "${enable_mods_shared+set}" = set; then
7366 enableval=$enable_mods_shared;
7367 for i in $enableval; do
7368 if test "$i" = "all" -o "$i" = "most"; then
7370 module_default=shared
7372 i=`echo $i | sed 's/-/_/g'`
7373 eval "enable_$i=shared"
7385 modpath_current=modules/aaa
7388 test -d aaa || $srcdir/build/mkdir.sh $modpath_current
7389 > $modpath_current/modules.mk
7393 { $as_echo "$as_me:$LINENO: checking whether to enable mod_access" >&5
7394 $as_echo_n "checking whether to enable mod_access... " >&6; }
7395 # Check whether --enable-access was given.
7396 if test "${enable_access+set}" = set; then
7397 enableval=$enable_access;
7403 if test "$module_selection" = "most" -a "$enable_access" = "most"; then
7404 _apmod_error_fatal="no"
7406 _apmod_error_fatal="yes"
7408 if test "$enable_access" = "static"; then
7410 elif test "$enable_access" = "yes"; then
7411 enable_access=$module_default
7412 _apmod_extra_msg=" ($module_selection)"
7413 elif test "$enable_access" = "most"; then
7414 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7415 enable_access=$module_default
7416 _apmod_extra_msg=" ($module_selection)"
7417 elif test "$enable_access" != "yes"; then
7420 elif test "$enable_access" = "maybe-all"; then
7421 if test "$module_selection" = "all"; then
7422 enable_access=$module_default
7423 _apmod_extra_msg=" (all)"
7428 if test "$enable_access" != "no"; then
7431 { $as_echo "$as_me:$LINENO: result: $enable_access$_apmod_extra_msg" >&5
7432 $as_echo "$enable_access$_apmod_extra_msg" >&6; }
7433 if test "$enable_access" != "no"; then
7434 case "$enable_access" in
7436 enable_access=`echo $ac_n $enable_access$ac_c|sed 's/shared,*//'`
7439 DSO_MODULES="$DSO_MODULES access"
7442 MODLIST="$MODLIST access"
7443 if test "access" = "so"; then
7451 objects="mod_access.lo"
7456 if test -z "$module_standalone"; then
7457 if test -z "$shared"; then
7458 libname="mod_access.la"
7459 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7460 modpath_static="$modpath_static $libname"
7461 cat >>$modpath_current/modules.mk<<EOF
7463 \$(MOD_LINK) $objects \$(MOD_ACCESS_LDADD)
7466 apache_need_shared=yes
7467 libname="mod_access.la"
7468 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7469 modpath_shared="$modpath_shared $libname"
7470 cat >>$modpath_current/modules.mk<<EOF
7471 $libname: $shobjects
7472 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_ACCESS_LDADD)
7478 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACCESS_LDADD"
7485 { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth" >&5
7486 $as_echo_n "checking whether to enable mod_auth... " >&6; }
7487 # Check whether --enable-auth was given.
7488 if test "${enable_auth+set}" = set; then
7489 enableval=$enable_auth;
7495 if test "$module_selection" = "most" -a "$enable_auth" = "most"; then
7496 _apmod_error_fatal="no"
7498 _apmod_error_fatal="yes"
7500 if test "$enable_auth" = "static"; then
7502 elif test "$enable_auth" = "yes"; then
7503 enable_auth=$module_default
7504 _apmod_extra_msg=" ($module_selection)"
7505 elif test "$enable_auth" = "most"; then
7506 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7507 enable_auth=$module_default
7508 _apmod_extra_msg=" ($module_selection)"
7509 elif test "$enable_auth" != "yes"; then
7512 elif test "$enable_auth" = "maybe-all"; then
7513 if test "$module_selection" = "all"; then
7514 enable_auth=$module_default
7515 _apmod_extra_msg=" (all)"
7520 if test "$enable_auth" != "no"; then
7523 { $as_echo "$as_me:$LINENO: result: $enable_auth$_apmod_extra_msg" >&5
7524 $as_echo "$enable_auth$_apmod_extra_msg" >&6; }
7525 if test "$enable_auth" != "no"; then
7526 case "$enable_auth" in
7528 enable_auth=`echo $ac_n $enable_auth$ac_c|sed 's/shared,*//'`
7531 DSO_MODULES="$DSO_MODULES auth"
7534 MODLIST="$MODLIST auth"
7535 if test "auth" = "so"; then
7543 objects="mod_auth.lo"
7548 if test -z "$module_standalone"; then
7549 if test -z "$shared"; then
7550 libname="mod_auth.la"
7551 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7552 modpath_static="$modpath_static $libname"
7553 cat >>$modpath_current/modules.mk<<EOF
7555 \$(MOD_LINK) $objects \$(MOD_AUTH_LDADD)
7558 apache_need_shared=yes
7559 libname="mod_auth.la"
7560 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7561 modpath_shared="$modpath_shared $libname"
7562 cat >>$modpath_current/modules.mk<<EOF
7563 $libname: $shobjects
7564 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_AUTH_LDADD)
7570 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_LDADD"
7577 { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_anon" >&5
7578 $as_echo_n "checking whether to enable mod_auth_anon... " >&6; }
7579 # Check whether --enable-auth-anon was given.
7580 if test "${enable_auth_anon+set}" = set; then
7581 enableval=$enable_auth_anon;
7583 enable_auth_anon=most
7587 if test "$module_selection" = "most" -a "$enable_auth_anon" = "most"; then
7588 _apmod_error_fatal="no"
7590 _apmod_error_fatal="yes"
7592 if test "$enable_auth_anon" = "static"; then
7593 enable_auth_anon=yes
7594 elif test "$enable_auth_anon" = "yes"; then
7595 enable_auth_anon=$module_default
7596 _apmod_extra_msg=" ($module_selection)"
7597 elif test "$enable_auth_anon" = "most"; then
7598 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7599 enable_auth_anon=$module_default
7600 _apmod_extra_msg=" ($module_selection)"
7601 elif test "$enable_auth_anon" != "yes"; then
7604 elif test "$enable_auth_anon" = "maybe-all"; then
7605 if test "$module_selection" = "all"; then
7606 enable_auth_anon=$module_default
7607 _apmod_extra_msg=" (all)"
7612 if test "$enable_auth_anon" != "no"; then
7615 { $as_echo "$as_me:$LINENO: result: $enable_auth_anon$_apmod_extra_msg" >&5
7616 $as_echo "$enable_auth_anon$_apmod_extra_msg" >&6; }
7617 if test "$enable_auth_anon" != "no"; then
7618 case "$enable_auth_anon" in
7620 enable_auth_anon=`echo $ac_n $enable_auth_anon$ac_c|sed 's/shared,*//'`
7623 DSO_MODULES="$DSO_MODULES auth_anon"
7626 MODLIST="$MODLIST auth_anon"
7627 if test "auth_anon" = "so"; then
7635 objects="mod_auth_anon.lo"
7640 if test -z "$module_standalone"; then
7641 if test -z "$shared"; then
7642 libname="mod_auth_anon.la"
7643 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7644 modpath_static="$modpath_static $libname"
7645 cat >>$modpath_current/modules.mk<<EOF
7647 \$(MOD_LINK) $objects \$(MOD_AUTH_ANON_LDADD)
7650 apache_need_shared=yes
7651 libname="mod_auth_anon.la"
7652 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7653 modpath_shared="$modpath_shared $libname"
7654 cat >>$modpath_current/modules.mk<<EOF
7655 $libname: $shobjects
7656 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_AUTH_ANON_LDADD)
7662 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_ANON_LDADD"
7669 { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_dbm" >&5
7670 $as_echo_n "checking whether to enable mod_auth_dbm... " >&6; }
7671 # Check whether --enable-auth-dbm was given.
7672 if test "${enable_auth_dbm+set}" = set; then
7673 enableval=$enable_auth_dbm;
7675 enable_auth_dbm=most
7679 if test "$module_selection" = "most" -a "$enable_auth_dbm" = "most"; then
7680 _apmod_error_fatal="no"
7682 _apmod_error_fatal="yes"
7684 if test "$enable_auth_dbm" = "static"; then
7686 elif test "$enable_auth_dbm" = "yes"; then
7687 enable_auth_dbm=$module_default
7688 _apmod_extra_msg=" ($module_selection)"
7689 elif test "$enable_auth_dbm" = "most"; then
7690 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7691 enable_auth_dbm=$module_default
7692 _apmod_extra_msg=" ($module_selection)"
7693 elif test "$enable_auth_dbm" != "yes"; then
7696 elif test "$enable_auth_dbm" = "maybe-all"; then
7697 if test "$module_selection" = "all"; then
7698 enable_auth_dbm=$module_default
7699 _apmod_extra_msg=" (all)"
7704 if test "$enable_auth_dbm" != "no"; then
7707 { $as_echo "$as_me:$LINENO: result: $enable_auth_dbm$_apmod_extra_msg" >&5
7708 $as_echo "$enable_auth_dbm$_apmod_extra_msg" >&6; }
7709 if test "$enable_auth_dbm" != "no"; then
7710 case "$enable_auth_dbm" in
7712 enable_auth_dbm=`echo $ac_n $enable_auth_dbm$ac_c|sed 's/shared,*//'`
7715 DSO_MODULES="$DSO_MODULES auth_dbm"
7718 MODLIST="$MODLIST auth_dbm"
7719 if test "auth_dbm" = "so"; then
7727 objects="mod_auth_dbm.lo"
7732 if test -z "$module_standalone"; then
7733 if test -z "$shared"; then
7734 libname="mod_auth_dbm.la"
7735 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7736 modpath_static="$modpath_static $libname"
7737 cat >>$modpath_current/modules.mk<<EOF
7739 \$(MOD_LINK) $objects \$(MOD_AUTH_DBM_LDADD)
7742 apache_need_shared=yes
7743 libname="mod_auth_dbm.la"
7744 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7745 modpath_shared="$modpath_shared $libname"
7746 cat >>$modpath_current/modules.mk<<EOF
7747 $libname: $shobjects
7748 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_AUTH_DBM_LDADD)
7754 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_DBM_LDADD"
7762 { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_digest" >&5
7763 $as_echo_n "checking whether to enable mod_auth_digest... " >&6; }
7764 # Check whether --enable-auth-digest was given.
7765 if test "${enable_auth_digest+set}" = set; then
7766 enableval=$enable_auth_digest;
7768 enable_auth_digest=most
7772 if test "$module_selection" = "most" -a "$enable_auth_digest" = "most"; then
7773 _apmod_error_fatal="no"
7775 _apmod_error_fatal="yes"
7777 if test "$enable_auth_digest" = "static"; then
7778 enable_auth_digest=yes
7779 elif test "$enable_auth_digest" = "yes"; then
7780 enable_auth_digest=$module_default
7781 _apmod_extra_msg=" ($module_selection)"
7782 elif test "$enable_auth_digest" = "most"; then
7783 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7784 enable_auth_digest=$module_default
7785 _apmod_extra_msg=" ($module_selection)"
7786 elif test "$enable_auth_digest" != "yes"; then
7787 enable_auth_digest=no
7789 elif test "$enable_auth_digest" = "maybe-all"; then
7790 if test "$module_selection" = "all"; then
7791 enable_auth_digest=$module_default
7792 _apmod_extra_msg=" (all)"
7794 enable_auth_digest=no
7797 if test "$enable_auth_digest" != "no"; then
7798 { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
7799 $as_echo "checking dependencies" >&6; }
7802 apr_old_cppflags=$CPPFLAGS
7803 CPPFLAGS="$CPPFLAGS $INCLUDES"
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
7819 ac_cv_define_APR_HAS_RANDOM=yes
7821 ac_cv_define_APR_HAS_RANDOM=no
7825 CPPFLAGS=$apr_old_cppflags
7827 if test $ac_cv_define_APR_HAS_RANDOM = "no"; then
7828 echo "You need APR random support to use mod_auth_digest."
7829 echo "Look at APR configure options --with-egd and --with-devrandom."
7830 enable_auth_digest="no"
7833 { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_digest" >&5
7834 $as_echo_n "checking whether to enable mod_auth_digest... " >&6; }
7835 if test "$enable_auth_digest" = "no"; then
7836 if test "$_apmod_error_fatal" = "no"; then
7837 _apmod_extra_msg=" (disabled)"
7839 { { $as_echo "$as_me:$LINENO: error: mod_auth_digest has been requested but can not be built due to prerequisite failures" >&5
7840 $as_echo "$as_me: error: mod_auth_digest has been requested but can not be built due to prerequisite failures" >&2;}
7841 { (exit 1); exit 1; }; }
7845 { $as_echo "$as_me:$LINENO: result: $enable_auth_digest$_apmod_extra_msg" >&5
7846 $as_echo "$enable_auth_digest$_apmod_extra_msg" >&6; }
7847 if test "$enable_auth_digest" != "no"; then
7848 case "$enable_auth_digest" in
7850 enable_auth_digest=`echo $ac_n $enable_auth_digest$ac_c|sed 's/shared,*//'`
7853 DSO_MODULES="$DSO_MODULES auth_digest"
7856 MODLIST="$MODLIST auth_digest"
7857 if test "auth_digest" = "so"; then
7865 objects="mod_auth_digest.lo"
7870 if test -z "$module_standalone"; then
7871 if test -z "$shared"; then
7872 libname="mod_auth_digest.la"
7873 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
7874 modpath_static="$modpath_static $libname"
7875 cat >>$modpath_current/modules.mk<<EOF
7877 \$(MOD_LINK) $objects \$(MOD_AUTH_DIGEST_LDADD)
7880 apache_need_shared=yes
7881 libname="mod_auth_digest.la"
7882 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
7883 modpath_shared="$modpath_shared $libname"
7884 cat >>$modpath_current/modules.mk<<EOF
7885 $libname: $shobjects
7886 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_AUTH_DIGEST_LDADD)
7892 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_DIGEST_LDADD"
7900 if test "x$LT_LDFLAGS" = "x"; then
7901 echo " setting LT_LDFLAGS to \"-export-dynamic\""
7902 LT_LDFLAGS="-export-dynamic"
7904 apr_addto_bugger="-export-dynamic"
7905 for i in $apr_addto_bugger; do
7906 apr_addto_duplicate="0"
7907 for j in $LT_LDFLAGS; do
7908 if test "x$i" = "x$j"; then
7909 apr_addto_duplicate="1"
7913 if test $apr_addto_duplicate = "0"; then
7914 echo " adding \"$i\" to LT_LDFLAGS"
7915 LT_LDFLAGS="$LT_LDFLAGS $i"
7922 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
7923 echo "static = $modpath_static" >> $modpath_current/modules.mk
7924 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
7925 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
7926 MODULE_DIRS="$MODULE_DIRS $current_dir"
7928 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
7931 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
7938 current_dir=arch/win32
7939 modpath_current=modules/arch/win32
7942 test -d arch/win32 || $srcdir/build/mkdir.sh $modpath_current
7943 > $modpath_current/modules.mk
7947 { $as_echo "$as_me:$LINENO: checking whether to enable mod_isapi" >&5
7948 $as_echo_n "checking whether to enable mod_isapi... " >&6; }
7949 # Check whether --enable-isapi was given.
7950 if test "${enable_isapi+set}" = set; then
7951 enableval=$enable_isapi;
7957 if test "$module_selection" = "most" -a "$enable_isapi" = "most"; then
7958 _apmod_error_fatal="no"
7960 _apmod_error_fatal="yes"
7962 if test "$enable_isapi" = "static"; then
7964 elif test "$enable_isapi" = "yes"; then
7965 enable_isapi=$module_default
7966 _apmod_extra_msg=" ($module_selection)"
7967 elif test "$enable_isapi" = "most"; then
7968 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
7969 enable_isapi=$module_default
7970 _apmod_extra_msg=" ($module_selection)"
7971 elif test "$enable_isapi" != "yes"; then
7974 elif test "$enable_isapi" = "maybe-all"; then
7975 if test "$module_selection" = "all"; then
7976 enable_isapi=$module_default
7977 _apmod_extra_msg=" (all)"
7982 if test "$enable_isapi" != "no"; then
7985 { $as_echo "$as_me:$LINENO: result: $enable_isapi$_apmod_extra_msg" >&5
7986 $as_echo "$enable_isapi$_apmod_extra_msg" >&6; }
7987 if test "$enable_isapi" != "no"; then
7988 case "$enable_isapi" in
7990 enable_isapi=`echo $ac_n $enable_isapi$ac_c|sed 's/shared,*//'`
7993 DSO_MODULES="$DSO_MODULES isapi"
7996 MODLIST="$MODLIST isapi"
7997 if test "isapi" = "so"; then
8005 objects="mod_isapi.lo"
8010 if test -z "$module_standalone"; then
8011 if test -z "$shared"; then
8012 libname="mod_isapi.la"
8013 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8014 modpath_static="$modpath_static $libname"
8015 cat >>$modpath_current/modules.mk<<EOF
8017 \$(MOD_LINK) $objects \$(MOD_ISAPI_LDADD)
8020 apache_need_shared=yes
8021 libname="mod_isapi.la"
8022 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8023 modpath_shared="$modpath_shared $libname"
8024 cat >>$modpath_current/modules.mk<<EOF
8025 $libname: $shobjects
8026 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_ISAPI_LDADD)
8032 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ISAPI_LDADD"
8040 if test "x$LT_LDFLAGS" = "x"; then
8041 echo " setting LT_LDFLAGS to \"-export-dynamic\""
8042 LT_LDFLAGS="-export-dynamic"
8044 apr_addto_bugger="-export-dynamic"
8045 for i in $apr_addto_bugger; do
8046 apr_addto_duplicate="0"
8047 for j in $LT_LDFLAGS; do
8048 if test "x$i" = "x$j"; then
8049 apr_addto_duplicate="1"
8053 if test $apr_addto_duplicate = "0"; then
8054 echo " adding \"$i\" to LT_LDFLAGS"
8055 LT_LDFLAGS="$LT_LDFLAGS $i"
8062 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
8063 echo "static = $modpath_static" >> $modpath_current/modules.mk
8064 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
8065 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
8066 MODULE_DIRS="$MODULE_DIRS $current_dir"
8068 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
8071 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
8079 modpath_current=modules/cache
8082 test -d cache || $srcdir/build/mkdir.sh $modpath_current
8083 > $modpath_current/modules.mk
8087 { $as_echo "$as_me:$LINENO: checking whether to enable mod_file_cache" >&5
8088 $as_echo_n "checking whether to enable mod_file_cache... " >&6; }
8089 # Check whether --enable-file-cache was given.
8090 if test "${enable_file_cache+set}" = set; then
8091 enableval=$enable_file_cache;
8093 enable_file_cache=no
8097 if test "$module_selection" = "most" -a "$enable_file_cache" = "most"; then
8098 _apmod_error_fatal="no"
8100 _apmod_error_fatal="yes"
8102 if test "$enable_file_cache" = "static"; then
8103 enable_file_cache=yes
8104 elif test "$enable_file_cache" = "yes"; then
8105 enable_file_cache=$module_default
8106 _apmod_extra_msg=" ($module_selection)"
8107 elif test "$enable_file_cache" = "most"; then
8108 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8109 enable_file_cache=$module_default
8110 _apmod_extra_msg=" ($module_selection)"
8111 elif test "$enable_file_cache" != "yes"; then
8112 enable_file_cache=no
8114 elif test "$enable_file_cache" = "maybe-all"; then
8115 if test "$module_selection" = "all"; then
8116 enable_file_cache=$module_default
8117 _apmod_extra_msg=" (all)"
8119 enable_file_cache=no
8122 if test "$enable_file_cache" != "no"; then
8125 { $as_echo "$as_me:$LINENO: result: $enable_file_cache$_apmod_extra_msg" >&5
8126 $as_echo "$enable_file_cache$_apmod_extra_msg" >&6; }
8127 if test "$enable_file_cache" != "no"; then
8128 case "$enable_file_cache" in
8130 enable_file_cache=`echo $ac_n $enable_file_cache$ac_c|sed 's/shared,*//'`
8133 DSO_MODULES="$DSO_MODULES file_cache"
8136 MODLIST="$MODLIST file_cache"
8137 if test "file_cache" = "so"; then
8145 objects="mod_file_cache.lo"
8150 if test -z "$module_standalone"; then
8151 if test -z "$shared"; then
8152 libname="mod_file_cache.la"
8153 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8154 modpath_static="$modpath_static $libname"
8155 cat >>$modpath_current/modules.mk<<EOF
8157 \$(MOD_LINK) $objects \$(MOD_FILE_CACHE_LDADD)
8160 apache_need_shared=yes
8161 libname="mod_file_cache.la"
8162 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8163 modpath_shared="$modpath_shared $libname"
8164 cat >>$modpath_current/modules.mk<<EOF
8165 $libname: $shobjects
8166 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_FILE_CACHE_LDADD)
8172 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILE_CACHE_LDADD"
8180 if test "x$LT_LDFLAGS" = "x"; then
8181 echo " setting LT_LDFLAGS to \"-export-dynamic\""
8182 LT_LDFLAGS="-export-dynamic"
8184 apr_addto_bugger="-export-dynamic"
8185 for i in $apr_addto_bugger; do
8186 apr_addto_duplicate="0"
8187 for j in $LT_LDFLAGS; do
8188 if test "x$i" = "x$j"; then
8189 apr_addto_duplicate="1"
8193 if test $apr_addto_duplicate = "0"; then
8194 echo " adding \"$i\" to LT_LDFLAGS"
8195 LT_LDFLAGS="$LT_LDFLAGS $i"
8202 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
8203 echo "static = $modpath_static" >> $modpath_current/modules.mk
8204 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
8205 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
8206 MODULE_DIRS="$MODULE_DIRS $current_dir"
8208 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
8211 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
8219 modpath_current=modules/echo
8222 test -d echo || $srcdir/build/mkdir.sh $modpath_current
8223 > $modpath_current/modules.mk
8227 { $as_echo "$as_me:$LINENO: checking whether to enable mod_echo" >&5
8228 $as_echo_n "checking whether to enable mod_echo... " >&6; }
8229 # Check whether --enable-echo was given.
8230 if test "${enable_echo+set}" = set; then
8231 enableval=$enable_echo;
8237 if test "$module_selection" = "most" -a "$enable_echo" = "most"; then
8238 _apmod_error_fatal="no"
8240 _apmod_error_fatal="yes"
8242 if test "$enable_echo" = "static"; then
8244 elif test "$enable_echo" = "yes"; then
8245 enable_echo=$module_default
8246 _apmod_extra_msg=" ($module_selection)"
8247 elif test "$enable_echo" = "most"; then
8248 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8249 enable_echo=$module_default
8250 _apmod_extra_msg=" ($module_selection)"
8251 elif test "$enable_echo" != "yes"; then
8254 elif test "$enable_echo" = "maybe-all"; then
8255 if test "$module_selection" = "all"; then
8256 enable_echo=$module_default
8257 _apmod_extra_msg=" (all)"
8262 if test "$enable_echo" != "no"; then
8265 { $as_echo "$as_me:$LINENO: result: $enable_echo$_apmod_extra_msg" >&5
8266 $as_echo "$enable_echo$_apmod_extra_msg" >&6; }
8267 if test "$enable_echo" != "no"; then
8268 case "$enable_echo" in
8270 enable_echo=`echo $ac_n $enable_echo$ac_c|sed 's/shared,*//'`
8273 DSO_MODULES="$DSO_MODULES echo"
8276 MODLIST="$MODLIST echo"
8277 if test "echo" = "so"; then
8285 objects="mod_echo.lo"
8290 if test -z "$module_standalone"; then
8291 if test -z "$shared"; then
8292 libname="mod_echo.la"
8293 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8294 modpath_static="$modpath_static $libname"
8295 cat >>$modpath_current/modules.mk<<EOF
8297 \$(MOD_LINK) $objects \$(MOD_ECHO_LDADD)
8300 apache_need_shared=yes
8301 libname="mod_echo.la"
8302 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8303 modpath_shared="$modpath_shared $libname"
8304 cat >>$modpath_current/modules.mk<<EOF
8305 $libname: $shobjects
8306 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_ECHO_LDADD)
8312 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ECHO_LDADD"
8320 if test "x$LT_LDFLAGS" = "x"; then
8321 echo " setting LT_LDFLAGS to \"-export-dynamic\""
8322 LT_LDFLAGS="-export-dynamic"
8324 apr_addto_bugger="-export-dynamic"
8325 for i in $apr_addto_bugger; do
8326 apr_addto_duplicate="0"
8327 for j in $LT_LDFLAGS; do
8328 if test "x$i" = "x$j"; then
8329 apr_addto_duplicate="1"
8333 if test $apr_addto_duplicate = "0"; then
8334 echo " adding \"$i\" to LT_LDFLAGS"
8335 LT_LDFLAGS="$LT_LDFLAGS $i"
8342 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
8343 echo "static = $modpath_static" >> $modpath_current/modules.mk
8344 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
8345 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
8346 MODULE_DIRS="$MODULE_DIRS $current_dir"
8348 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
8351 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
8357 current_dir=experimental
8358 modpath_current=modules/experimental
8361 test -d experimental || $srcdir/build/mkdir.sh $modpath_current
8362 > $modpath_current/modules.mk
8365 if test "$ac_cv_ebcdic" = "yes"; then
8366 # mod_charset_lite can be very useful on an ebcdic system,
8367 # so include it by default
8369 { $as_echo "$as_me:$LINENO: checking whether to enable mod_charset_lite" >&5
8370 $as_echo_n "checking whether to enable mod_charset_lite... " >&6; }
8371 # Check whether --enable-charset-lite was given.
8372 if test "${enable_charset_lite+set}" = set; then
8373 enableval=$enable_charset_lite;
8375 enable_charset_lite=yes
8379 if test "$module_selection" = "most" -a "$enable_charset_lite" = "most"; then
8380 _apmod_error_fatal="no"
8382 _apmod_error_fatal="yes"
8384 if test "$enable_charset_lite" = "static"; then
8385 enable_charset_lite=yes
8386 elif test "$enable_charset_lite" = "yes"; then
8387 enable_charset_lite=$module_default
8388 _apmod_extra_msg=" ($module_selection)"
8389 elif test "$enable_charset_lite" = "most"; then
8390 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8391 enable_charset_lite=$module_default
8392 _apmod_extra_msg=" ($module_selection)"
8393 elif test "$enable_charset_lite" != "yes"; then
8394 enable_charset_lite=no
8396 elif test "$enable_charset_lite" = "maybe-all"; then
8397 if test "$module_selection" = "all"; then
8398 enable_charset_lite=$module_default
8399 _apmod_extra_msg=" (all)"
8401 enable_charset_lite=no
8404 if test "$enable_charset_lite" != "no"; then
8407 { $as_echo "$as_me:$LINENO: result: $enable_charset_lite$_apmod_extra_msg" >&5
8408 $as_echo "$enable_charset_lite$_apmod_extra_msg" >&6; }
8409 if test "$enable_charset_lite" != "no"; then
8410 case "$enable_charset_lite" in
8412 enable_charset_lite=`echo $ac_n $enable_charset_lite$ac_c|sed 's/shared,*//'`
8415 DSO_MODULES="$DSO_MODULES charset_lite"
8418 MODLIST="$MODLIST charset_lite"
8419 if test "charset_lite" = "so"; then
8427 objects="mod_charset_lite.lo"
8432 if test -z "$module_standalone"; then
8433 if test -z "$shared"; then
8434 libname="mod_charset_lite.la"
8435 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8436 modpath_static="$modpath_static $libname"
8437 cat >>$modpath_current/modules.mk<<EOF
8439 \$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
8442 apache_need_shared=yes
8443 libname="mod_charset_lite.la"
8444 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8445 modpath_shared="$modpath_shared $libname"
8446 cat >>$modpath_current/modules.mk<<EOF
8447 $libname: $shobjects
8448 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CHARSET_LITE_LDADD)
8454 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
8462 { $as_echo "$as_me:$LINENO: checking whether to enable mod_charset_lite" >&5
8463 $as_echo_n "checking whether to enable mod_charset_lite... " >&6; }
8464 # Check whether --enable-charset-lite was given.
8465 if test "${enable_charset_lite+set}" = set; then
8466 enableval=$enable_charset_lite;
8468 enable_charset_lite=no
8472 if test "$module_selection" = "most" -a "$enable_charset_lite" = "most"; then
8473 _apmod_error_fatal="no"
8475 _apmod_error_fatal="yes"
8477 if test "$enable_charset_lite" = "static"; then
8478 enable_charset_lite=yes
8479 elif test "$enable_charset_lite" = "yes"; then
8480 enable_charset_lite=$module_default
8481 _apmod_extra_msg=" ($module_selection)"
8482 elif test "$enable_charset_lite" = "most"; then
8483 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8484 enable_charset_lite=$module_default
8485 _apmod_extra_msg=" ($module_selection)"
8486 elif test "$enable_charset_lite" != "yes"; then
8487 enable_charset_lite=no
8489 elif test "$enable_charset_lite" = "maybe-all"; then
8490 if test "$module_selection" = "all"; then
8491 enable_charset_lite=$module_default
8492 _apmod_extra_msg=" (all)"
8494 enable_charset_lite=no
8497 if test "$enable_charset_lite" != "no"; then
8500 { $as_echo "$as_me:$LINENO: result: $enable_charset_lite$_apmod_extra_msg" >&5
8501 $as_echo "$enable_charset_lite$_apmod_extra_msg" >&6; }
8502 if test "$enable_charset_lite" != "no"; then
8503 case "$enable_charset_lite" in
8505 enable_charset_lite=`echo $ac_n $enable_charset_lite$ac_c|sed 's/shared,*//'`
8508 DSO_MODULES="$DSO_MODULES charset_lite"
8511 MODLIST="$MODLIST charset_lite"
8512 if test "charset_lite" = "so"; then
8520 objects="mod_charset_lite.lo"
8525 if test -z "$module_standalone"; then
8526 if test -z "$shared"; then
8527 libname="mod_charset_lite.la"
8528 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8529 modpath_static="$modpath_static $libname"
8530 cat >>$modpath_current/modules.mk<<EOF
8532 \$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
8535 apache_need_shared=yes
8536 libname="mod_charset_lite.la"
8537 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8538 modpath_shared="$modpath_shared $libname"
8539 cat >>$modpath_current/modules.mk<<EOF
8540 $libname: $shobjects
8541 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CHARSET_LITE_LDADD)
8547 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
8555 cache_objs="mod_cache.lo cache_storage.lo cache_util.lo "
8556 mem_cache_objs="mod_mem_cache.lo cache_cache.lo cache_pqueue.lo cache_hash.lo "
8558 { $as_echo "$as_me:$LINENO: checking whether to enable mod_cache" >&5
8559 $as_echo_n "checking whether to enable mod_cache... " >&6; }
8560 # Check whether --enable-cache was given.
8561 if test "${enable_cache+set}" = set; then
8562 enableval=$enable_cache;
8568 if test "$module_selection" = "most" -a "$enable_cache" = "most"; then
8569 _apmod_error_fatal="no"
8571 _apmod_error_fatal="yes"
8573 if test "$enable_cache" = "static"; then
8575 elif test "$enable_cache" = "yes"; then
8576 enable_cache=$module_default
8577 _apmod_extra_msg=" ($module_selection)"
8578 elif test "$enable_cache" = "most"; then
8579 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8580 enable_cache=$module_default
8581 _apmod_extra_msg=" ($module_selection)"
8582 elif test "$enable_cache" != "yes"; then
8585 elif test "$enable_cache" = "maybe-all"; then
8586 if test "$module_selection" = "all"; then
8587 enable_cache=$module_default
8588 _apmod_extra_msg=" (all)"
8593 if test "$enable_cache" != "no"; then
8596 { $as_echo "$as_me:$LINENO: result: $enable_cache$_apmod_extra_msg" >&5
8597 $as_echo "$enable_cache$_apmod_extra_msg" >&6; }
8598 if test "$enable_cache" != "no"; then
8599 case "$enable_cache" in
8601 enable_cache=`echo $ac_n $enable_cache$ac_c|sed 's/shared,*//'`
8604 DSO_MODULES="$DSO_MODULES cache"
8607 MODLIST="$MODLIST cache"
8608 if test "cache" = "so"; then
8615 if test -z "$cache_objs"; then
8616 objects="mod_cache.lo"
8618 objects="$cache_objs"
8621 if test -z "$module_standalone"; then
8622 if test -z "$shared"; then
8623 libname="mod_cache.la"
8624 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8625 modpath_static="$modpath_static $libname"
8626 cat >>$modpath_current/modules.mk<<EOF
8628 \$(MOD_LINK) $objects \$(MOD_CACHE_LDADD)
8631 apache_need_shared=yes
8632 libname="mod_cache.la"
8633 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8634 modpath_shared="$modpath_shared $libname"
8635 cat >>$modpath_current/modules.mk<<EOF
8636 $libname: $shobjects
8637 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CACHE_LDADD)
8643 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_LDADD"
8650 { $as_echo "$as_me:$LINENO: checking whether to enable mod_disk_cache" >&5
8651 $as_echo_n "checking whether to enable mod_disk_cache... " >&6; }
8652 # Check whether --enable-disk-cache was given.
8653 if test "${enable_disk_cache+set}" = set; then
8654 enableval=$enable_disk_cache;
8656 enable_disk_cache=no
8660 if test "$module_selection" = "most" -a "$enable_disk_cache" = "most"; then
8661 _apmod_error_fatal="no"
8663 _apmod_error_fatal="yes"
8665 if test "$enable_disk_cache" = "static"; then
8666 enable_disk_cache=yes
8667 elif test "$enable_disk_cache" = "yes"; then
8668 enable_disk_cache=$module_default
8669 _apmod_extra_msg=" ($module_selection)"
8670 elif test "$enable_disk_cache" = "most"; then
8671 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8672 enable_disk_cache=$module_default
8673 _apmod_extra_msg=" ($module_selection)"
8674 elif test "$enable_disk_cache" != "yes"; then
8675 enable_disk_cache=no
8677 elif test "$enable_disk_cache" = "maybe-all"; then
8678 if test "$module_selection" = "all"; then
8679 enable_disk_cache=$module_default
8680 _apmod_extra_msg=" (all)"
8682 enable_disk_cache=no
8685 if test "$enable_disk_cache" != "no"; then
8688 { $as_echo "$as_me:$LINENO: result: $enable_disk_cache$_apmod_extra_msg" >&5
8689 $as_echo "$enable_disk_cache$_apmod_extra_msg" >&6; }
8690 if test "$enable_disk_cache" != "no"; then
8691 case "$enable_disk_cache" in
8693 enable_disk_cache=`echo $ac_n $enable_disk_cache$ac_c|sed 's/shared,*//'`
8696 DSO_MODULES="$DSO_MODULES disk_cache"
8699 MODLIST="$MODLIST disk_cache"
8700 if test "disk_cache" = "so"; then
8708 objects="mod_disk_cache.lo"
8713 if test -z "$module_standalone"; then
8714 if test -z "$shared"; then
8715 libname="mod_disk_cache.la"
8716 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8717 modpath_static="$modpath_static $libname"
8718 cat >>$modpath_current/modules.mk<<EOF
8720 \$(MOD_LINK) $objects \$(MOD_DISK_CACHE_LDADD)
8723 apache_need_shared=yes
8724 libname="mod_disk_cache.la"
8725 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8726 modpath_shared="$modpath_shared $libname"
8727 cat >>$modpath_current/modules.mk<<EOF
8728 $libname: $shobjects
8729 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_DISK_CACHE_LDADD)
8735 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DISK_CACHE_LDADD"
8742 { $as_echo "$as_me:$LINENO: checking whether to enable mod_mem_cache" >&5
8743 $as_echo_n "checking whether to enable mod_mem_cache... " >&6; }
8744 # Check whether --enable-mem-cache was given.
8745 if test "${enable_mem_cache+set}" = set; then
8746 enableval=$enable_mem_cache;
8752 if test "$module_selection" = "most" -a "$enable_mem_cache" = "most"; then
8753 _apmod_error_fatal="no"
8755 _apmod_error_fatal="yes"
8757 if test "$enable_mem_cache" = "static"; then
8758 enable_mem_cache=yes
8759 elif test "$enable_mem_cache" = "yes"; then
8760 enable_mem_cache=$module_default
8761 _apmod_extra_msg=" ($module_selection)"
8762 elif test "$enable_mem_cache" = "most"; then
8763 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8764 enable_mem_cache=$module_default
8765 _apmod_extra_msg=" ($module_selection)"
8766 elif test "$enable_mem_cache" != "yes"; then
8769 elif test "$enable_mem_cache" = "maybe-all"; then
8770 if test "$module_selection" = "all"; then
8771 enable_mem_cache=$module_default
8772 _apmod_extra_msg=" (all)"
8777 if test "$enable_mem_cache" != "no"; then
8780 { $as_echo "$as_me:$LINENO: result: $enable_mem_cache$_apmod_extra_msg" >&5
8781 $as_echo "$enable_mem_cache$_apmod_extra_msg" >&6; }
8782 if test "$enable_mem_cache" != "no"; then
8783 case "$enable_mem_cache" in
8785 enable_mem_cache=`echo $ac_n $enable_mem_cache$ac_c|sed 's/shared,*//'`
8788 DSO_MODULES="$DSO_MODULES mem_cache"
8791 MODLIST="$MODLIST mem_cache"
8792 if test "mem_cache" = "so"; then
8799 if test -z "$mem_cache_objs"; then
8800 objects="mod_mem_cache.lo"
8802 objects="$mem_cache_objs"
8805 if test -z "$module_standalone"; then
8806 if test -z "$shared"; then
8807 libname="mod_mem_cache.la"
8808 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8809 modpath_static="$modpath_static $libname"
8810 cat >>$modpath_current/modules.mk<<EOF
8812 \$(MOD_LINK) $objects \$(MOD_MEM_CACHE_LDADD)
8815 apache_need_shared=yes
8816 libname="mod_mem_cache.la"
8817 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8818 modpath_shared="$modpath_shared $libname"
8819 cat >>$modpath_current/modules.mk<<EOF
8820 $libname: $shobjects
8821 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_MEM_CACHE_LDADD)
8827 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MEM_CACHE_LDADD"
8834 { $as_echo "$as_me:$LINENO: checking whether to enable mod_example" >&5
8835 $as_echo_n "checking whether to enable mod_example... " >&6; }
8836 # Check whether --enable-example was given.
8837 if test "${enable_example+set}" = set; then
8838 enableval=$enable_example;
8844 if test "$module_selection" = "most" -a "$enable_example" = "most"; then
8845 _apmod_error_fatal="no"
8847 _apmod_error_fatal="yes"
8849 if test "$enable_example" = "static"; then
8851 elif test "$enable_example" = "yes"; then
8852 enable_example=$module_default
8853 _apmod_extra_msg=" ($module_selection)"
8854 elif test "$enable_example" = "most"; then
8855 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8856 enable_example=$module_default
8857 _apmod_extra_msg=" ($module_selection)"
8858 elif test "$enable_example" != "yes"; then
8861 elif test "$enable_example" = "maybe-all"; then
8862 if test "$module_selection" = "all"; then
8863 enable_example=$module_default
8864 _apmod_extra_msg=" (all)"
8869 if test "$enable_example" != "no"; then
8872 { $as_echo "$as_me:$LINENO: result: $enable_example$_apmod_extra_msg" >&5
8873 $as_echo "$enable_example$_apmod_extra_msg" >&6; }
8874 if test "$enable_example" != "no"; then
8875 case "$enable_example" in
8877 enable_example=`echo $ac_n $enable_example$ac_c|sed 's/shared,*//'`
8880 DSO_MODULES="$DSO_MODULES example"
8883 MODLIST="$MODLIST example"
8884 if test "example" = "so"; then
8892 objects="mod_example.lo"
8897 if test -z "$module_standalone"; then
8898 if test -z "$shared"; then
8899 libname="mod_example.la"
8900 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8901 modpath_static="$modpath_static $libname"
8902 cat >>$modpath_current/modules.mk<<EOF
8904 \$(MOD_LINK) $objects \$(MOD_EXAMPLE_LDADD)
8907 apache_need_shared=yes
8908 libname="mod_example.la"
8909 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8910 modpath_shared="$modpath_shared $libname"
8911 cat >>$modpath_current/modules.mk<<EOF
8912 $libname: $shobjects
8913 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_EXAMPLE_LDADD)
8919 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXAMPLE_LDADD"
8926 { $as_echo "$as_me:$LINENO: checking whether to enable mod_case_filter" >&5
8927 $as_echo_n "checking whether to enable mod_case_filter... " >&6; }
8928 # Check whether --enable-case-filter was given.
8929 if test "${enable_case_filter+set}" = set; then
8930 enableval=$enable_case_filter;
8932 enable_case_filter=no
8936 if test "$module_selection" = "most" -a "$enable_case_filter" = "most"; then
8937 _apmod_error_fatal="no"
8939 _apmod_error_fatal="yes"
8941 if test "$enable_case_filter" = "static"; then
8942 enable_case_filter=yes
8943 elif test "$enable_case_filter" = "yes"; then
8944 enable_case_filter=$module_default
8945 _apmod_extra_msg=" ($module_selection)"
8946 elif test "$enable_case_filter" = "most"; then
8947 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
8948 enable_case_filter=$module_default
8949 _apmod_extra_msg=" ($module_selection)"
8950 elif test "$enable_case_filter" != "yes"; then
8951 enable_case_filter=no
8953 elif test "$enable_case_filter" = "maybe-all"; then
8954 if test "$module_selection" = "all"; then
8955 enable_case_filter=$module_default
8956 _apmod_extra_msg=" (all)"
8958 enable_case_filter=no
8961 if test "$enable_case_filter" != "no"; then
8964 { $as_echo "$as_me:$LINENO: result: $enable_case_filter$_apmod_extra_msg" >&5
8965 $as_echo "$enable_case_filter$_apmod_extra_msg" >&6; }
8966 if test "$enable_case_filter" != "no"; then
8967 case "$enable_case_filter" in
8969 enable_case_filter=`echo $ac_n $enable_case_filter$ac_c|sed 's/shared,*//'`
8972 DSO_MODULES="$DSO_MODULES case_filter"
8975 MODLIST="$MODLIST case_filter"
8976 if test "case_filter" = "so"; then
8984 objects="mod_case_filter.lo"
8989 if test -z "$module_standalone"; then
8990 if test -z "$shared"; then
8991 libname="mod_case_filter.la"
8992 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8993 modpath_static="$modpath_static $libname"
8994 cat >>$modpath_current/modules.mk<<EOF
8996 \$(MOD_LINK) $objects \$(MOD_CASE_FILTER_LDADD)
8999 apache_need_shared=yes
9000 libname="mod_case_filter.la"
9001 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9002 modpath_shared="$modpath_shared $libname"
9003 cat >>$modpath_current/modules.mk<<EOF
9004 $libname: $shobjects
9005 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CASE_FILTER_LDADD)
9011 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_LDADD"
9018 { $as_echo "$as_me:$LINENO: checking whether to enable mod_case_filter_in" >&5
9019 $as_echo_n "checking whether to enable mod_case_filter_in... " >&6; }
9020 # Check whether --enable-case-filter-in was given.
9021 if test "${enable_case_filter_in+set}" = set; then
9022 enableval=$enable_case_filter_in;
9024 enable_case_filter_in=no
9028 if test "$module_selection" = "most" -a "$enable_case_filter_in" = "most"; then
9029 _apmod_error_fatal="no"
9031 _apmod_error_fatal="yes"
9033 if test "$enable_case_filter_in" = "static"; then
9034 enable_case_filter_in=yes
9035 elif test "$enable_case_filter_in" = "yes"; then
9036 enable_case_filter_in=$module_default
9037 _apmod_extra_msg=" ($module_selection)"
9038 elif test "$enable_case_filter_in" = "most"; then
9039 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9040 enable_case_filter_in=$module_default
9041 _apmod_extra_msg=" ($module_selection)"
9042 elif test "$enable_case_filter_in" != "yes"; then
9043 enable_case_filter_in=no
9045 elif test "$enable_case_filter_in" = "maybe-all"; then
9046 if test "$module_selection" = "all"; then
9047 enable_case_filter_in=$module_default
9048 _apmod_extra_msg=" (all)"
9050 enable_case_filter_in=no
9053 if test "$enable_case_filter_in" != "no"; then
9056 { $as_echo "$as_me:$LINENO: result: $enable_case_filter_in$_apmod_extra_msg" >&5
9057 $as_echo "$enable_case_filter_in$_apmod_extra_msg" >&6; }
9058 if test "$enable_case_filter_in" != "no"; then
9059 case "$enable_case_filter_in" in
9061 enable_case_filter_in=`echo $ac_n $enable_case_filter_in$ac_c|sed 's/shared,*//'`
9064 DSO_MODULES="$DSO_MODULES case_filter_in"
9067 MODLIST="$MODLIST case_filter_in"
9068 if test "case_filter_in" = "so"; then
9076 objects="mod_case_filter_in.lo"
9081 if test -z "$module_standalone"; then
9082 if test -z "$shared"; then
9083 libname="mod_case_filter_in.la"
9084 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9085 modpath_static="$modpath_static $libname"
9086 cat >>$modpath_current/modules.mk<<EOF
9088 \$(MOD_LINK) $objects \$(MOD_CASE_FILTER_IN_LDADD)
9091 apache_need_shared=yes
9092 libname="mod_case_filter_in.la"
9093 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9094 modpath_shared="$modpath_shared $libname"
9095 cat >>$modpath_current/modules.mk<<EOF
9096 $libname: $shobjects
9097 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CASE_FILTER_IN_LDADD)
9103 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_IN_LDADD"
9110 { $as_echo "$as_me:$LINENO: checking whether to enable mod_dumpio" >&5
9111 $as_echo_n "checking whether to enable mod_dumpio... " >&6; }
9112 # Check whether --enable-dumpio was given.
9113 if test "${enable_dumpio+set}" = set; then
9114 enableval=$enable_dumpio;
9120 if test "$module_selection" = "most" -a "$enable_dumpio" = "most"; then
9121 _apmod_error_fatal="no"
9123 _apmod_error_fatal="yes"
9125 if test "$enable_dumpio" = "static"; then
9127 elif test "$enable_dumpio" = "yes"; then
9128 enable_dumpio=$module_default
9129 _apmod_extra_msg=" ($module_selection)"
9130 elif test "$enable_dumpio" = "most"; then
9131 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9132 enable_dumpio=$module_default
9133 _apmod_extra_msg=" ($module_selection)"
9134 elif test "$enable_dumpio" != "yes"; then
9137 elif test "$enable_dumpio" = "maybe-all"; then
9138 if test "$module_selection" = "all"; then
9139 enable_dumpio=$module_default
9140 _apmod_extra_msg=" (all)"
9145 if test "$enable_dumpio" != "no"; then
9148 { $as_echo "$as_me:$LINENO: result: $enable_dumpio$_apmod_extra_msg" >&5
9149 $as_echo "$enable_dumpio$_apmod_extra_msg" >&6; }
9150 if test "$enable_dumpio" != "no"; then
9151 case "$enable_dumpio" in
9153 enable_dumpio=`echo $ac_n $enable_dumpio$ac_c|sed 's/shared,*//'`
9156 DSO_MODULES="$DSO_MODULES dumpio"
9159 MODLIST="$MODLIST dumpio"
9160 if test "dumpio" = "so"; then
9168 objects="mod_dumpio.lo"
9173 if test -z "$module_standalone"; then
9174 if test -z "$shared"; then
9175 libname="mod_dumpio.la"
9176 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9177 modpath_static="$modpath_static $libname"
9178 cat >>$modpath_current/modules.mk<<EOF
9180 \$(MOD_LINK) $objects \$(MOD_DUMPIO_LDADD)
9183 apache_need_shared=yes
9184 libname="mod_dumpio.la"
9185 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9186 modpath_shared="$modpath_shared $libname"
9187 cat >>$modpath_current/modules.mk<<EOF
9188 $libname: $shobjects
9189 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_DUMPIO_LDADD)
9195 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DUMPIO_LDADD"
9202 ldap_objects="util_ldap.lo util_ldap_cache.lo util_ldap_cache_mgr.lo"
9204 { $as_echo "$as_me:$LINENO: checking whether to enable mod_ldap" >&5
9205 $as_echo_n "checking whether to enable mod_ldap... " >&6; }
9206 # Check whether --enable-ldap was given.
9207 if test "${enable_ldap+set}" = set; then
9208 enableval=$enable_ldap;
9214 if test "$module_selection" = "most" -a "$enable_ldap" = "most"; then
9215 _apmod_error_fatal="no"
9217 _apmod_error_fatal="yes"
9219 if test "$enable_ldap" = "static"; then
9221 elif test "$enable_ldap" = "yes"; then
9222 enable_ldap=$module_default
9223 _apmod_extra_msg=" ($module_selection)"
9224 elif test "$enable_ldap" = "most"; then
9225 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9226 enable_ldap=$module_default
9227 _apmod_extra_msg=" ($module_selection)"
9228 elif test "$enable_ldap" != "yes"; then
9231 elif test "$enable_ldap" = "maybe-all"; then
9232 if test "$module_selection" = "all"; then
9233 enable_ldap=$module_default
9234 _apmod_extra_msg=" (all)"
9239 if test "$enable_ldap" != "no"; then
9242 { $as_echo "$as_me:$LINENO: result: $enable_ldap$_apmod_extra_msg" >&5
9243 $as_echo "$enable_ldap$_apmod_extra_msg" >&6; }
9244 if test "$enable_ldap" != "no"; then
9245 case "$enable_ldap" in
9247 enable_ldap=`echo $ac_n $enable_ldap$ac_c|sed 's/shared,*//'`
9250 DSO_MODULES="$DSO_MODULES ldap"
9253 MODLIST="$MODLIST ldap"
9254 if test "ldap" = "so"; then
9261 if test -z "$ldap_objects"; then
9262 objects="mod_ldap.lo"
9264 objects="$ldap_objects"
9267 if test -z "$module_standalone"; then
9268 if test -z "$shared"; then
9269 libname="mod_ldap.la"
9270 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9271 modpath_static="$modpath_static $libname"
9272 cat >>$modpath_current/modules.mk<<EOF
9274 \$(MOD_LINK) $objects \$(MOD_LDAP_LDADD)
9277 apache_need_shared=yes
9278 libname="mod_ldap.la"
9279 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9280 modpath_shared="$modpath_shared $libname"
9281 cat >>$modpath_current/modules.mk<<EOF
9282 $libname: $shobjects
9283 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_LDAP_LDADD)
9289 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LDAP_LDADD"
9296 auth_ldap_objects="mod_auth_ldap.lo"
9298 { $as_echo "$as_me:$LINENO: checking whether to enable mod_auth_ldap" >&5
9299 $as_echo_n "checking whether to enable mod_auth_ldap... " >&6; }
9300 # Check whether --enable-auth-ldap was given.
9301 if test "${enable_auth_ldap+set}" = set; then
9302 enableval=$enable_auth_ldap;
9308 if test "$module_selection" = "most" -a "$enable_auth_ldap" = "most"; then
9309 _apmod_error_fatal="no"
9311 _apmod_error_fatal="yes"
9313 if test "$enable_auth_ldap" = "static"; then
9314 enable_auth_ldap=yes
9315 elif test "$enable_auth_ldap" = "yes"; then
9316 enable_auth_ldap=$module_default
9317 _apmod_extra_msg=" ($module_selection)"
9318 elif test "$enable_auth_ldap" = "most"; then
9319 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9320 enable_auth_ldap=$module_default
9321 _apmod_extra_msg=" ($module_selection)"
9322 elif test "$enable_auth_ldap" != "yes"; then
9325 elif test "$enable_auth_ldap" = "maybe-all"; then
9326 if test "$module_selection" = "all"; then
9327 enable_auth_ldap=$module_default
9328 _apmod_extra_msg=" (all)"
9333 if test "$enable_auth_ldap" != "no"; then
9336 { $as_echo "$as_me:$LINENO: result: $enable_auth_ldap$_apmod_extra_msg" >&5
9337 $as_echo "$enable_auth_ldap$_apmod_extra_msg" >&6; }
9338 if test "$enable_auth_ldap" != "no"; then
9339 case "$enable_auth_ldap" in
9341 enable_auth_ldap=`echo $ac_n $enable_auth_ldap$ac_c|sed 's/shared,*//'`
9344 DSO_MODULES="$DSO_MODULES auth_ldap"
9347 MODLIST="$MODLIST auth_ldap"
9348 if test "auth_ldap" = "so"; then
9355 if test -z "$auth_ldap_objects"; then
9356 objects="mod_auth_ldap.lo"
9358 objects="$auth_ldap_objects"
9361 if test -z "$module_standalone"; then
9362 if test -z "$shared"; then
9363 libname="mod_auth_ldap.la"
9364 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9365 modpath_static="$modpath_static $libname"
9366 cat >>$modpath_current/modules.mk<<EOF
9368 \$(MOD_LINK) $objects \$(MOD_AUTH_LDAP_LDADD)
9371 apache_need_shared=yes
9372 libname="mod_auth_ldap.la"
9373 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9374 modpath_shared="$modpath_shared $libname"
9375 cat >>$modpath_current/modules.mk<<EOF
9376 $libname: $shobjects
9377 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_AUTH_LDAP_LDADD)
9383 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_LDAP_LDADD"
9391 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
9392 echo "static = $modpath_static" >> $modpath_current/modules.mk
9393 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
9394 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
9395 MODULE_DIRS="$MODULE_DIRS $current_dir"
9397 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
9400 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
9408 modpath_current=modules/filters
9411 test -d filters || $srcdir/build/mkdir.sh $modpath_current
9412 > $modpath_current/modules.mk
9416 { $as_echo "$as_me:$LINENO: checking whether to enable mod_ext_filter" >&5
9417 $as_echo_n "checking whether to enable mod_ext_filter... " >&6; }
9418 # Check whether --enable-ext-filter was given.
9419 if test "${enable_ext_filter+set}" = set; then
9420 enableval=$enable_ext_filter;
9422 enable_ext_filter=most
9426 if test "$module_selection" = "most" -a "$enable_ext_filter" = "most"; then
9427 _apmod_error_fatal="no"
9429 _apmod_error_fatal="yes"
9431 if test "$enable_ext_filter" = "static"; then
9432 enable_ext_filter=yes
9433 elif test "$enable_ext_filter" = "yes"; then
9434 enable_ext_filter=$module_default
9435 _apmod_extra_msg=" ($module_selection)"
9436 elif test "$enable_ext_filter" = "most"; then
9437 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9438 enable_ext_filter=$module_default
9439 _apmod_extra_msg=" ($module_selection)"
9440 elif test "$enable_ext_filter" != "yes"; then
9441 enable_ext_filter=no
9443 elif test "$enable_ext_filter" = "maybe-all"; then
9444 if test "$module_selection" = "all"; then
9445 enable_ext_filter=$module_default
9446 _apmod_extra_msg=" (all)"
9448 enable_ext_filter=no
9451 if test "$enable_ext_filter" != "no"; then
9454 { $as_echo "$as_me:$LINENO: result: $enable_ext_filter$_apmod_extra_msg" >&5
9455 $as_echo "$enable_ext_filter$_apmod_extra_msg" >&6; }
9456 if test "$enable_ext_filter" != "no"; then
9457 case "$enable_ext_filter" in
9459 enable_ext_filter=`echo $ac_n $enable_ext_filter$ac_c|sed 's/shared,*//'`
9462 DSO_MODULES="$DSO_MODULES ext_filter"
9465 MODLIST="$MODLIST ext_filter"
9466 if test "ext_filter" = "so"; then
9474 objects="mod_ext_filter.lo"
9479 if test -z "$module_standalone"; then
9480 if test -z "$shared"; then
9481 libname="mod_ext_filter.la"
9482 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9483 modpath_static="$modpath_static $libname"
9484 cat >>$modpath_current/modules.mk<<EOF
9486 \$(MOD_LINK) $objects \$(MOD_EXT_FILTER_LDADD)
9489 apache_need_shared=yes
9490 libname="mod_ext_filter.la"
9491 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9492 modpath_shared="$modpath_shared $libname"
9493 cat >>$modpath_current/modules.mk<<EOF
9494 $libname: $shobjects
9495 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_EXT_FILTER_LDADD)
9501 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXT_FILTER_LDADD"
9508 { $as_echo "$as_me:$LINENO: checking whether to enable mod_include" >&5
9509 $as_echo_n "checking whether to enable mod_include... " >&6; }
9510 # Check whether --enable-include was given.
9511 if test "${enable_include+set}" = set; then
9512 enableval=$enable_include;
9518 if test "$module_selection" = "most" -a "$enable_include" = "most"; then
9519 _apmod_error_fatal="no"
9521 _apmod_error_fatal="yes"
9523 if test "$enable_include" = "static"; then
9525 elif test "$enable_include" = "yes"; then
9526 enable_include=$module_default
9527 _apmod_extra_msg=" ($module_selection)"
9528 elif test "$enable_include" = "most"; then
9529 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9530 enable_include=$module_default
9531 _apmod_extra_msg=" ($module_selection)"
9532 elif test "$enable_include" != "yes"; then
9535 elif test "$enable_include" = "maybe-all"; then
9536 if test "$module_selection" = "all"; then
9537 enable_include=$module_default
9538 _apmod_extra_msg=" (all)"
9543 if test "$enable_include" != "no"; then
9546 { $as_echo "$as_me:$LINENO: result: $enable_include$_apmod_extra_msg" >&5
9547 $as_echo "$enable_include$_apmod_extra_msg" >&6; }
9548 if test "$enable_include" != "no"; then
9549 case "$enable_include" in
9551 enable_include=`echo $ac_n $enable_include$ac_c|sed 's/shared,*//'`
9554 DSO_MODULES="$DSO_MODULES include"
9557 MODLIST="$MODLIST include"
9558 if test "include" = "so"; then
9566 objects="mod_include.lo"
9571 if test -z "$module_standalone"; then
9572 if test -z "$shared"; then
9573 libname="mod_include.la"
9574 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9575 modpath_static="$modpath_static $libname"
9576 cat >>$modpath_current/modules.mk<<EOF
9578 \$(MOD_LINK) $objects \$(MOD_INCLUDE_LDADD)
9581 apache_need_shared=yes
9582 libname="mod_include.la"
9583 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9584 modpath_shared="$modpath_shared $libname"
9585 cat >>$modpath_current/modules.mk<<EOF
9586 $libname: $shobjects
9587 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_INCLUDE_LDADD)
9593 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INCLUDE_LDADD"
9601 if test "x$LT_LDFLAGS" = "x"; then
9602 echo " setting LT_LDFLAGS to \"-export-dynamic\""
9603 LT_LDFLAGS="-export-dynamic"
9605 apr_addto_bugger="-export-dynamic"
9606 for i in $apr_addto_bugger; do
9607 apr_addto_duplicate="0"
9608 for j in $LT_LDFLAGS; do
9609 if test "x$i" = "x$j"; then
9610 apr_addto_duplicate="1"
9614 if test $apr_addto_duplicate = "0"; then
9615 echo " adding \"$i\" to LT_LDFLAGS"
9616 LT_LDFLAGS="$LT_LDFLAGS $i"
9623 { $as_echo "$as_me:$LINENO: checking whether to enable mod_deflate" >&5
9624 $as_echo_n "checking whether to enable mod_deflate... " >&6; }
9625 # Check whether --enable-deflate was given.
9626 if test "${enable_deflate+set}" = set; then
9627 enableval=$enable_deflate;
9633 if test "$module_selection" = "most" -a "$enable_deflate" = "most"; then
9634 _apmod_error_fatal="no"
9636 _apmod_error_fatal="yes"
9638 if test "$enable_deflate" = "static"; then
9640 elif test "$enable_deflate" = "yes"; then
9641 enable_deflate=$module_default
9642 _apmod_extra_msg=" ($module_selection)"
9643 elif test "$enable_deflate" = "most"; then
9644 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
9645 enable_deflate=$module_default
9646 _apmod_extra_msg=" ($module_selection)"
9647 elif test "$enable_deflate" != "yes"; then
9650 elif test "$enable_deflate" = "maybe-all"; then
9651 if test "$module_selection" = "all"; then
9652 enable_deflate=$module_default
9653 _apmod_extra_msg=" (all)"
9658 if test "$enable_deflate" != "no"; then
9659 { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
9660 $as_echo "checking dependencies" >&6; }
9663 # Check whether --with-z was given.
9664 if test "${with_z+set}" = set; then
9666 if test "x$withval" != "xyes" && test "x$withval" != "x"; then
9667 ap_zlib_base="$withval"
9672 if test "x$ap_zlib_base" = "x"; then
9673 { $as_echo "$as_me:$LINENO: checking for zlib location" >&5
9674 $as_echo_n "checking for zlib location... " >&6; }
9675 if test "${ap_cv_zlib+set}" = set; then
9676 $as_echo_n "(cached) " >&6
9679 for dir in /usr/local /usr ; do
9680 if test -d $dir && test -f $dir/include/zlib.h; then
9688 ap_zlib_base=$ap_cv_zlib
9689 if test "x$ap_zlib_base" = "x"; then
9691 { $as_echo "$as_me:$LINENO: result: not found" >&5
9692 $as_echo "not found" >&6; }
9694 { $as_echo "$as_me:$LINENO: result: $ap_zlib_base" >&5
9695 $as_echo "$ap_zlib_base" >&6; }
9698 if test "$enable_deflate" != "no"; then
9699 ap_save_includes=$INCLUDE
9700 ap_save_ldflags=$LDFLAGS
9702 ap_save_cppflags=$CPPFLAGS
9703 if test "$ap_zlib_base" != "/usr"; then
9705 if test "x$INCLUDES" = "x"; then
9706 echo " setting INCLUDES to \"-I${ap_zlib_base}/include\""
9707 INCLUDES="-I${ap_zlib_base}/include"
9709 apr_addto_bugger="-I${ap_zlib_base}/include"
9710 for i in $apr_addto_bugger; do
9711 apr_addto_duplicate="0"
9712 for j in $INCLUDES; do
9713 if test "x$i" = "x$j"; then
9714 apr_addto_duplicate="1"
9718 if test $apr_addto_duplicate = "0"; then
9719 echo " adding \"$i\" to INCLUDES"
9720 INCLUDES="$INCLUDES $i"
9725 CPPFLAGS="$CPPFLAGS $INCLUDES"
9727 if test "x$LDFLAGS" = "x"; then
9728 echo " setting LDFLAGS to \"-L${ap_zlib_base}/lib\""
9729 LDFLAGS="-L${ap_zlib_base}/lib"
9731 apr_addto_bugger="-L${ap_zlib_base}/lib"
9732 for i in $apr_addto_bugger; do
9733 apr_addto_duplicate="0"
9734 for j in $LDFLAGS; do
9735 if test "x$i" = "x$j"; then
9736 apr_addto_duplicate="1"
9740 if test $apr_addto_duplicate = "0"; then
9741 echo " adding \"$i\" to LDFLAGS"
9742 LDFLAGS="$LDFLAGS $i"
9747 if test "x$ap_platform_runtime_link_flag" != "x"; then
9749 if test "x$LDFLAGS" = "x"; then
9750 echo " setting LDFLAGS to \"$ap_platform_runtime_link_flag${ap_zlib_base}/lib\""
9751 LDFLAGS="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
9753 apr_addto_bugger="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
9754 for i in $apr_addto_bugger; do
9755 apr_addto_duplicate="0"
9756 for j in $LDFLAGS; do
9757 if test "x$i" = "x$j"; then
9758 apr_addto_duplicate="1"
9762 if test $apr_addto_duplicate = "0"; then
9763 echo " adding \"$i\" to LDFLAGS"
9764 LDFLAGS="$LDFLAGS $i"
9772 if test "x$LIBS" = "x"; then
9773 echo " setting LIBS to \"-lz\""
9776 apr_addto_bugger="-lz"
9777 for i in $apr_addto_bugger; do
9778 apr_addto_duplicate="0"
9780 if test "x$i" = "x$j"; then
9781 apr_addto_duplicate="1"
9785 if test $apr_addto_duplicate = "0"; then
9786 echo " adding \"$i\" to LIBS"
9792 { $as_echo "$as_me:$LINENO: checking for zlib library" >&5
9793 $as_echo_n "checking for zlib library... " >&6; }
9794 cat >conftest.$ac_ext <<_ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9816 $as_echo "$ac_try_echo") >&5
9817 (eval "$ac_link") 2>conftest.er1
9819 grep -v '^ *+' conftest.er1 >conftest.err
9821 cat conftest.err >&5
9822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext && {
9827 test "$cross_compiling" = yes ||
9828 $as_test_x conftest$ac_exeext
9830 { $as_echo "$as_me:$LINENO: result: found" >&5
9831 $as_echo "found" >&6; }
9833 for ac_header in zutil.h
9835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9838 $as_echo_n "checking for $ac_header... " >&6; }
9839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 $as_echo_n "(cached) " >&6
9842 ac_res=`eval 'as_val=${'$as_ac_Header'}
9843 $as_echo "$as_val"'`
9844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9845 $as_echo "$ac_res" >&6; }
9847 # Is the header compilable?
9848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9849 $as_echo_n "checking $ac_header usability... " >&6; }
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 $ac_includes_default
9857 #include <$ac_header>
9859 rm -f conftest.$ac_objext
9860 if { (ac_try="$ac_compile"
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9866 $as_echo "$ac_try_echo") >&5
9867 (eval "$ac_compile") 2>conftest.er1
9869 grep -v '^ *+' conftest.er1 >conftest.err
9871 cat conftest.err >&5
9872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && {
9874 test -z "$ac_c_werror_flag" ||
9875 test ! -s conftest.err
9876 } && test -s conftest.$ac_objext; then
9877 ac_header_compiler=yes
9879 $as_echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_header_compiler=no
9885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9887 $as_echo "$ac_header_compiler" >&6; }
9889 # Is the header present?
9890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9891 $as_echo_n "checking $ac_header presence... " >&6; }
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 #include <$ac_header>
9900 if { (ac_try="$ac_cpp conftest.$ac_ext"
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9906 $as_echo "$ac_try_echo") >&5
9907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } >/dev/null && {
9914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9917 ac_header_preproc=yes
9919 $as_echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_preproc=no
9925 rm -f conftest.err conftest.$ac_ext
9926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9927 $as_echo "$ac_header_preproc" >&6; }
9929 # So? What about this header?
9930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9936 ac_header_preproc=yes
9939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9942 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9946 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9955 $as_echo_n "checking for $ac_header... " >&6; }
9956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9957 $as_echo_n "(cached) " >&6
9959 eval "$as_ac_Header=\$ac_header_preproc"
9961 ac_res=`eval 'as_val=${'$as_ac_Header'}
9962 $as_echo "$as_val"'`
9963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9964 $as_echo "$ac_res" >&6; }
9967 as_val=`eval 'as_val=${'$as_ac_Header'}
9968 $as_echo "$as_val"'`
9969 if test "x$as_val" = x""yes; then
9970 cat >>confdefs.h <<_ACEOF
9971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9979 $as_echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 { $as_echo "$as_me:$LINENO: result: not found" >&5
9983 $as_echo "not found" >&6; }
9985 INCLUDES=$ap_save_includes
9986 LDFLAGS=$ap_save_ldflags
9990 rm -rf conftest.dSYM
9991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9992 conftest$ac_exeext conftest.$ac_ext
9993 CPPFLAGS=$ap_save_cppflags
9996 { $as_echo "$as_me:$LINENO: checking whether to enable mod_deflate" >&5
9997 $as_echo_n "checking whether to enable mod_deflate... " >&6; }
9998 if test "$enable_deflate" = "no"; then
9999 if test "$_apmod_error_fatal" = "no"; then
10000 _apmod_extra_msg=" (disabled)"
10002 { { $as_echo "$as_me:$LINENO: error: mod_deflate has been requested but can not be built due to prerequisite failures" >&5
10003 $as_echo "$as_me: error: mod_deflate has been requested but can not be built due to prerequisite failures" >&2;}
10004 { (exit 1); exit 1; }; }
10008 { $as_echo "$as_me:$LINENO: result: $enable_deflate$_apmod_extra_msg" >&5
10009 $as_echo "$enable_deflate$_apmod_extra_msg" >&6; }
10010 if test "$enable_deflate" != "no"; then
10011 case "$enable_deflate" in
10013 enable_deflate=`echo $ac_n $enable_deflate$ac_c|sed 's/shared,*//'`
10016 DSO_MODULES="$DSO_MODULES deflate"
10019 MODLIST="$MODLIST deflate"
10020 if test "deflate" = "so"; then
10027 if test -z ""; then
10028 objects="mod_deflate.lo"
10033 if test -z "$module_standalone"; then
10034 if test -z "$shared"; then
10035 libname="mod_deflate.la"
10036 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10037 modpath_static="$modpath_static $libname"
10038 cat >>$modpath_current/modules.mk<<EOF
10040 \$(MOD_LINK) $objects \$(MOD_DEFLATE_LDADD)
10043 apache_need_shared=yes
10044 libname="mod_deflate.la"
10045 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10046 modpath_shared="$modpath_shared $libname"
10047 cat >>$modpath_current/modules.mk<<EOF
10048 $libname: $shobjects
10049 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_DEFLATE_LDADD)
10055 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DEFLATE_LDADD"
10063 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
10064 echo "static = $modpath_static" >> $modpath_current/modules.mk
10065 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
10066 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
10067 MODULE_DIRS="$MODULE_DIRS $current_dir"
10069 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
10072 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
10079 current_dir=loggers
10080 modpath_current=modules/loggers
10083 test -d loggers || $srcdir/build/mkdir.sh $modpath_current
10084 > $modpath_current/modules.mk
10088 { $as_echo "$as_me:$LINENO: checking whether to enable mod_log_config" >&5
10089 $as_echo_n "checking whether to enable mod_log_config... " >&6; }
10090 # Check whether --enable-log-config was given.
10091 if test "${enable_log_config+set}" = set; then
10092 enableval=$enable_log_config;
10094 enable_log_config=yes
10097 _apmod_extra_msg=""
10098 if test "$module_selection" = "most" -a "$enable_log_config" = "most"; then
10099 _apmod_error_fatal="no"
10101 _apmod_error_fatal="yes"
10103 if test "$enable_log_config" = "static"; then
10104 enable_log_config=yes
10105 elif test "$enable_log_config" = "yes"; then
10106 enable_log_config=$module_default
10107 _apmod_extra_msg=" ($module_selection)"
10108 elif test "$enable_log_config" = "most"; then
10109 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10110 enable_log_config=$module_default
10111 _apmod_extra_msg=" ($module_selection)"
10112 elif test "$enable_log_config" != "yes"; then
10113 enable_log_config=no
10115 elif test "$enable_log_config" = "maybe-all"; then
10116 if test "$module_selection" = "all"; then
10117 enable_log_config=$module_default
10118 _apmod_extra_msg=" (all)"
10120 enable_log_config=no
10123 if test "$enable_log_config" != "no"; then
10126 { $as_echo "$as_me:$LINENO: result: $enable_log_config$_apmod_extra_msg" >&5
10127 $as_echo "$enable_log_config$_apmod_extra_msg" >&6; }
10128 if test "$enable_log_config" != "no"; then
10129 case "$enable_log_config" in
10131 enable_log_config=`echo $ac_n $enable_log_config$ac_c|sed 's/shared,*//'`
10134 DSO_MODULES="$DSO_MODULES log_config"
10137 MODLIST="$MODLIST log_config"
10138 if test "log_config" = "so"; then
10145 if test -z ""; then
10146 objects="mod_log_config.lo"
10151 if test -z "$module_standalone"; then
10152 if test -z "$shared"; then
10153 libname="mod_log_config.la"
10154 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10155 modpath_static="$modpath_static $libname"
10156 cat >>$modpath_current/modules.mk<<EOF
10158 \$(MOD_LINK) $objects \$(MOD_LOG_CONFIG_LDADD)
10161 apache_need_shared=yes
10162 libname="mod_log_config.la"
10163 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10164 modpath_shared="$modpath_shared $libname"
10165 cat >>$modpath_current/modules.mk<<EOF
10166 $libname: $shobjects
10167 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_LOG_CONFIG_LDADD)
10173 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_CONFIG_LDADD"
10181 { $as_echo "$as_me:$LINENO: checking whether to enable mod_log_forensic" >&5
10182 $as_echo_n "checking whether to enable mod_log_forensic... " >&6; }
10183 # Check whether --enable-log-forensic was given.
10184 if test "${enable_log_forensic+set}" = set; then
10185 enableval=$enable_log_forensic;
10187 enable_log_forensic=maybe-all
10190 _apmod_extra_msg=""
10191 if test "$module_selection" = "most" -a "$enable_log_forensic" = "most"; then
10192 _apmod_error_fatal="no"
10194 _apmod_error_fatal="yes"
10196 if test "$enable_log_forensic" = "static"; then
10197 enable_log_forensic=yes
10198 elif test "$enable_log_forensic" = "yes"; then
10199 enable_log_forensic=$module_default
10200 _apmod_extra_msg=" ($module_selection)"
10201 elif test "$enable_log_forensic" = "most"; then
10202 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10203 enable_log_forensic=$module_default
10204 _apmod_extra_msg=" ($module_selection)"
10205 elif test "$enable_log_forensic" != "yes"; then
10206 enable_log_forensic=no
10208 elif test "$enable_log_forensic" = "maybe-all"; then
10209 if test "$module_selection" = "all"; then
10210 enable_log_forensic=$module_default
10211 _apmod_extra_msg=" (all)"
10213 enable_log_forensic=no
10216 if test "$enable_log_forensic" != "no"; then
10219 { $as_echo "$as_me:$LINENO: result: $enable_log_forensic$_apmod_extra_msg" >&5
10220 $as_echo "$enable_log_forensic$_apmod_extra_msg" >&6; }
10221 if test "$enable_log_forensic" != "no"; then
10222 case "$enable_log_forensic" in
10224 enable_log_forensic=`echo $ac_n $enable_log_forensic$ac_c|sed 's/shared,*//'`
10227 DSO_MODULES="$DSO_MODULES log_forensic"
10230 MODLIST="$MODLIST log_forensic"
10231 if test "log_forensic" = "so"; then
10238 if test -z ""; then
10239 objects="mod_log_forensic.lo"
10244 if test -z "$module_standalone"; then
10245 if test -z "$shared"; then
10246 libname="mod_log_forensic.la"
10247 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10248 modpath_static="$modpath_static $libname"
10249 cat >>$modpath_current/modules.mk<<EOF
10251 \$(MOD_LINK) $objects \$(MOD_LOG_FORENSIC_LDADD)
10254 apache_need_shared=yes
10255 libname="mod_log_forensic.la"
10256 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10257 modpath_shared="$modpath_shared $libname"
10258 cat >>$modpath_current/modules.mk<<EOF
10259 $libname: $shobjects
10260 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_LOG_FORENSIC_LDADD)
10266 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_FORENSIC_LDADD"
10273 if test "x$enable_log_forensic" != "xno"; then
10274 # mod_log_forensic needs test_char.h
10276 if test "x$INCLUDES" = "x"; then
10277 echo " setting INCLUDES to \"-I\$(top_builddir)/server\""
10278 INCLUDES="-I\$(top_builddir)/server"
10280 apr_addto_bugger="-I\$(top_builddir)/server"
10281 for i in $apr_addto_bugger; do
10282 apr_addto_duplicate="0"
10283 for j in $INCLUDES; do
10284 if test "x$i" = "x$j"; then
10285 apr_addto_duplicate="1"
10289 if test $apr_addto_duplicate = "0"; then
10290 echo " adding \"$i\" to INCLUDES"
10291 INCLUDES="$INCLUDES $i"
10299 { $as_echo "$as_me:$LINENO: checking whether to enable mod_logio" >&5
10300 $as_echo_n "checking whether to enable mod_logio... " >&6; }
10301 # Check whether --enable-logio was given.
10302 if test "${enable_logio+set}" = set; then
10303 enableval=$enable_logio;
10308 _apmod_extra_msg=""
10309 if test "$module_selection" = "most" -a "$enable_logio" = "most"; then
10310 _apmod_error_fatal="no"
10312 _apmod_error_fatal="yes"
10314 if test "$enable_logio" = "static"; then
10316 elif test "$enable_logio" = "yes"; then
10317 enable_logio=$module_default
10318 _apmod_extra_msg=" ($module_selection)"
10319 elif test "$enable_logio" = "most"; then
10320 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10321 enable_logio=$module_default
10322 _apmod_extra_msg=" ($module_selection)"
10323 elif test "$enable_logio" != "yes"; then
10326 elif test "$enable_logio" = "maybe-all"; then
10327 if test "$module_selection" = "all"; then
10328 enable_logio=$module_default
10329 _apmod_extra_msg=" (all)"
10334 if test "$enable_logio" != "no"; then
10337 { $as_echo "$as_me:$LINENO: result: $enable_logio$_apmod_extra_msg" >&5
10338 $as_echo "$enable_logio$_apmod_extra_msg" >&6; }
10339 if test "$enable_logio" != "no"; then
10340 case "$enable_logio" in
10342 enable_logio=`echo $ac_n $enable_logio$ac_c|sed 's/shared,*//'`
10345 DSO_MODULES="$DSO_MODULES logio"
10348 MODLIST="$MODLIST logio"
10349 if test "logio" = "so"; then
10356 if test -z ""; then
10357 objects="mod_logio.lo"
10362 if test -z "$module_standalone"; then
10363 if test -z "$shared"; then
10364 libname="mod_logio.la"
10365 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10366 modpath_static="$modpath_static $libname"
10367 cat >>$modpath_current/modules.mk<<EOF
10369 \$(MOD_LINK) $objects \$(MOD_LOGIO_LDADD)
10372 apache_need_shared=yes
10373 libname="mod_logio.la"
10374 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10375 modpath_shared="$modpath_shared $libname"
10376 cat >>$modpath_current/modules.mk<<EOF
10377 $libname: $shobjects
10378 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_LOGIO_LDADD)
10384 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOGIO_LDADD"
10392 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
10393 echo "static = $modpath_static" >> $modpath_current/modules.mk
10394 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
10395 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
10396 MODULE_DIRS="$MODULE_DIRS $current_dir"
10398 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
10401 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
10408 current_dir=metadata
10409 modpath_current=modules/metadata
10412 test -d metadata || $srcdir/build/mkdir.sh $modpath_current
10413 > $modpath_current/modules.mk
10417 { $as_echo "$as_me:$LINENO: checking whether to enable mod_env" >&5
10418 $as_echo_n "checking whether to enable mod_env... " >&6; }
10419 # Check whether --enable-env was given.
10420 if test "${enable_env+set}" = set; then
10421 enableval=$enable_env;
10426 _apmod_extra_msg=""
10427 if test "$module_selection" = "most" -a "$enable_env" = "most"; then
10428 _apmod_error_fatal="no"
10430 _apmod_error_fatal="yes"
10432 if test "$enable_env" = "static"; then
10434 elif test "$enable_env" = "yes"; then
10435 enable_env=$module_default
10436 _apmod_extra_msg=" ($module_selection)"
10437 elif test "$enable_env" = "most"; then
10438 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10439 enable_env=$module_default
10440 _apmod_extra_msg=" ($module_selection)"
10441 elif test "$enable_env" != "yes"; then
10444 elif test "$enable_env" = "maybe-all"; then
10445 if test "$module_selection" = "all"; then
10446 enable_env=$module_default
10447 _apmod_extra_msg=" (all)"
10452 if test "$enable_env" != "no"; then
10455 { $as_echo "$as_me:$LINENO: result: $enable_env$_apmod_extra_msg" >&5
10456 $as_echo "$enable_env$_apmod_extra_msg" >&6; }
10457 if test "$enable_env" != "no"; then
10458 case "$enable_env" in
10460 enable_env=`echo $ac_n $enable_env$ac_c|sed 's/shared,*//'`
10463 DSO_MODULES="$DSO_MODULES env"
10466 MODLIST="$MODLIST env"
10467 if test "env" = "so"; then
10474 if test -z ""; then
10475 objects="mod_env.lo"
10480 if test -z "$module_standalone"; then
10481 if test -z "$shared"; then
10482 libname="mod_env.la"
10483 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10484 modpath_static="$modpath_static $libname"
10485 cat >>$modpath_current/modules.mk<<EOF
10487 \$(MOD_LINK) $objects \$(MOD_ENV_LDADD)
10490 apache_need_shared=yes
10491 libname="mod_env.la"
10492 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10493 modpath_shared="$modpath_shared $libname"
10494 cat >>$modpath_current/modules.mk<<EOF
10495 $libname: $shobjects
10496 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_ENV_LDADD)
10502 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ENV_LDADD"
10509 { $as_echo "$as_me:$LINENO: checking whether to enable mod_mime_magic" >&5
10510 $as_echo_n "checking whether to enable mod_mime_magic... " >&6; }
10511 # Check whether --enable-mime-magic was given.
10512 if test "${enable_mime_magic+set}" = set; then
10513 enableval=$enable_mime_magic;
10515 enable_mime_magic=maybe-all
10518 _apmod_extra_msg=""
10519 if test "$module_selection" = "most" -a "$enable_mime_magic" = "most"; then
10520 _apmod_error_fatal="no"
10522 _apmod_error_fatal="yes"
10524 if test "$enable_mime_magic" = "static"; then
10525 enable_mime_magic=yes
10526 elif test "$enable_mime_magic" = "yes"; then
10527 enable_mime_magic=$module_default
10528 _apmod_extra_msg=" ($module_selection)"
10529 elif test "$enable_mime_magic" = "most"; then
10530 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10531 enable_mime_magic=$module_default
10532 _apmod_extra_msg=" ($module_selection)"
10533 elif test "$enable_mime_magic" != "yes"; then
10534 enable_mime_magic=no
10536 elif test "$enable_mime_magic" = "maybe-all"; then
10537 if test "$module_selection" = "all"; then
10538 enable_mime_magic=$module_default
10539 _apmod_extra_msg=" (all)"
10541 enable_mime_magic=no
10544 if test "$enable_mime_magic" != "no"; then
10547 { $as_echo "$as_me:$LINENO: result: $enable_mime_magic$_apmod_extra_msg" >&5
10548 $as_echo "$enable_mime_magic$_apmod_extra_msg" >&6; }
10549 if test "$enable_mime_magic" != "no"; then
10550 case "$enable_mime_magic" in
10552 enable_mime_magic=`echo $ac_n $enable_mime_magic$ac_c|sed 's/shared,*//'`
10555 DSO_MODULES="$DSO_MODULES mime_magic"
10558 MODLIST="$MODLIST mime_magic"
10559 if test "mime_magic" = "so"; then
10566 if test -z ""; then
10567 objects="mod_mime_magic.lo"
10572 if test -z "$module_standalone"; then
10573 if test -z "$shared"; then
10574 libname="mod_mime_magic.la"
10575 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10576 modpath_static="$modpath_static $libname"
10577 cat >>$modpath_current/modules.mk<<EOF
10579 \$(MOD_LINK) $objects \$(MOD_MIME_MAGIC_LDADD)
10582 apache_need_shared=yes
10583 libname="mod_mime_magic.la"
10584 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10585 modpath_shared="$modpath_shared $libname"
10586 cat >>$modpath_current/modules.mk<<EOF
10587 $libname: $shobjects
10588 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_MIME_MAGIC_LDADD)
10594 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_MAGIC_LDADD"
10601 { $as_echo "$as_me:$LINENO: checking whether to enable mod_cern_meta" >&5
10602 $as_echo_n "checking whether to enable mod_cern_meta... " >&6; }
10603 # Check whether --enable-cern-meta was given.
10604 if test "${enable_cern_meta+set}" = set; then
10605 enableval=$enable_cern_meta;
10607 enable_cern_meta=maybe-all
10610 _apmod_extra_msg=""
10611 if test "$module_selection" = "most" -a "$enable_cern_meta" = "most"; then
10612 _apmod_error_fatal="no"
10614 _apmod_error_fatal="yes"
10616 if test "$enable_cern_meta" = "static"; then
10617 enable_cern_meta=yes
10618 elif test "$enable_cern_meta" = "yes"; then
10619 enable_cern_meta=$module_default
10620 _apmod_extra_msg=" ($module_selection)"
10621 elif test "$enable_cern_meta" = "most"; then
10622 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10623 enable_cern_meta=$module_default
10624 _apmod_extra_msg=" ($module_selection)"
10625 elif test "$enable_cern_meta" != "yes"; then
10626 enable_cern_meta=no
10628 elif test "$enable_cern_meta" = "maybe-all"; then
10629 if test "$module_selection" = "all"; then
10630 enable_cern_meta=$module_default
10631 _apmod_extra_msg=" (all)"
10633 enable_cern_meta=no
10636 if test "$enable_cern_meta" != "no"; then
10639 { $as_echo "$as_me:$LINENO: result: $enable_cern_meta$_apmod_extra_msg" >&5
10640 $as_echo "$enable_cern_meta$_apmod_extra_msg" >&6; }
10641 if test "$enable_cern_meta" != "no"; then
10642 case "$enable_cern_meta" in
10644 enable_cern_meta=`echo $ac_n $enable_cern_meta$ac_c|sed 's/shared,*//'`
10647 DSO_MODULES="$DSO_MODULES cern_meta"
10650 MODLIST="$MODLIST cern_meta"
10651 if test "cern_meta" = "so"; then
10658 if test -z ""; then
10659 objects="mod_cern_meta.lo"
10664 if test -z "$module_standalone"; then
10665 if test -z "$shared"; then
10666 libname="mod_cern_meta.la"
10667 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10668 modpath_static="$modpath_static $libname"
10669 cat >>$modpath_current/modules.mk<<EOF
10671 \$(MOD_LINK) $objects \$(MOD_CERN_META_LDADD)
10674 apache_need_shared=yes
10675 libname="mod_cern_meta.la"
10676 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10677 modpath_shared="$modpath_shared $libname"
10678 cat >>$modpath_current/modules.mk<<EOF
10679 $libname: $shobjects
10680 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CERN_META_LDADD)
10686 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CERN_META_LDADD"
10693 { $as_echo "$as_me:$LINENO: checking whether to enable mod_expires" >&5
10694 $as_echo_n "checking whether to enable mod_expires... " >&6; }
10695 # Check whether --enable-expires was given.
10696 if test "${enable_expires+set}" = set; then
10697 enableval=$enable_expires;
10699 enable_expires=most
10702 _apmod_extra_msg=""
10703 if test "$module_selection" = "most" -a "$enable_expires" = "most"; then
10704 _apmod_error_fatal="no"
10706 _apmod_error_fatal="yes"
10708 if test "$enable_expires" = "static"; then
10710 elif test "$enable_expires" = "yes"; then
10711 enable_expires=$module_default
10712 _apmod_extra_msg=" ($module_selection)"
10713 elif test "$enable_expires" = "most"; then
10714 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10715 enable_expires=$module_default
10716 _apmod_extra_msg=" ($module_selection)"
10717 elif test "$enable_expires" != "yes"; then
10720 elif test "$enable_expires" = "maybe-all"; then
10721 if test "$module_selection" = "all"; then
10722 enable_expires=$module_default
10723 _apmod_extra_msg=" (all)"
10728 if test "$enable_expires" != "no"; then
10731 { $as_echo "$as_me:$LINENO: result: $enable_expires$_apmod_extra_msg" >&5
10732 $as_echo "$enable_expires$_apmod_extra_msg" >&6; }
10733 if test "$enable_expires" != "no"; then
10734 case "$enable_expires" in
10736 enable_expires=`echo $ac_n $enable_expires$ac_c|sed 's/shared,*//'`
10739 DSO_MODULES="$DSO_MODULES expires"
10742 MODLIST="$MODLIST expires"
10743 if test "expires" = "so"; then
10750 if test -z ""; then
10751 objects="mod_expires.lo"
10756 if test -z "$module_standalone"; then
10757 if test -z "$shared"; then
10758 libname="mod_expires.la"
10759 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10760 modpath_static="$modpath_static $libname"
10761 cat >>$modpath_current/modules.mk<<EOF
10763 \$(MOD_LINK) $objects \$(MOD_EXPIRES_LDADD)
10766 apache_need_shared=yes
10767 libname="mod_expires.la"
10768 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10769 modpath_shared="$modpath_shared $libname"
10770 cat >>$modpath_current/modules.mk<<EOF
10771 $libname: $shobjects
10772 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_EXPIRES_LDADD)
10778 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXPIRES_LDADD"
10785 { $as_echo "$as_me:$LINENO: checking whether to enable mod_headers" >&5
10786 $as_echo_n "checking whether to enable mod_headers... " >&6; }
10787 # Check whether --enable-headers was given.
10788 if test "${enable_headers+set}" = set; then
10789 enableval=$enable_headers;
10791 enable_headers=most
10794 _apmod_extra_msg=""
10795 if test "$module_selection" = "most" -a "$enable_headers" = "most"; then
10796 _apmod_error_fatal="no"
10798 _apmod_error_fatal="yes"
10800 if test "$enable_headers" = "static"; then
10802 elif test "$enable_headers" = "yes"; then
10803 enable_headers=$module_default
10804 _apmod_extra_msg=" ($module_selection)"
10805 elif test "$enable_headers" = "most"; then
10806 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10807 enable_headers=$module_default
10808 _apmod_extra_msg=" ($module_selection)"
10809 elif test "$enable_headers" != "yes"; then
10812 elif test "$enable_headers" = "maybe-all"; then
10813 if test "$module_selection" = "all"; then
10814 enable_headers=$module_default
10815 _apmod_extra_msg=" (all)"
10820 if test "$enable_headers" != "no"; then
10823 { $as_echo "$as_me:$LINENO: result: $enable_headers$_apmod_extra_msg" >&5
10824 $as_echo "$enable_headers$_apmod_extra_msg" >&6; }
10825 if test "$enable_headers" != "no"; then
10826 case "$enable_headers" in
10828 enable_headers=`echo $ac_n $enable_headers$ac_c|sed 's/shared,*//'`
10831 DSO_MODULES="$DSO_MODULES headers"
10834 MODLIST="$MODLIST headers"
10835 if test "headers" = "so"; then
10842 if test -z ""; then
10843 objects="mod_headers.lo"
10848 if test -z "$module_standalone"; then
10849 if test -z "$shared"; then
10850 libname="mod_headers.la"
10851 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10852 modpath_static="$modpath_static $libname"
10853 cat >>$modpath_current/modules.mk<<EOF
10855 \$(MOD_LINK) $objects \$(MOD_HEADERS_LDADD)
10858 apache_need_shared=yes
10859 libname="mod_headers.la"
10860 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10861 modpath_shared="$modpath_shared $libname"
10862 cat >>$modpath_current/modules.mk<<EOF
10863 $libname: $shobjects
10864 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_HEADERS_LDADD)
10870 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEADERS_LDADD"
10878 { $as_echo "$as_me:$LINENO: checking whether to enable mod_usertrack" >&5
10879 $as_echo_n "checking whether to enable mod_usertrack... " >&6; }
10880 # Check whether --enable-usertrack was given.
10881 if test "${enable_usertrack+set}" = set; then
10882 enableval=$enable_usertrack;
10884 enable_usertrack=maybe-all
10887 _apmod_extra_msg=""
10888 if test "$module_selection" = "most" -a "$enable_usertrack" = "most"; then
10889 _apmod_error_fatal="no"
10891 _apmod_error_fatal="yes"
10893 if test "$enable_usertrack" = "static"; then
10894 enable_usertrack=yes
10895 elif test "$enable_usertrack" = "yes"; then
10896 enable_usertrack=$module_default
10897 _apmod_extra_msg=" ($module_selection)"
10898 elif test "$enable_usertrack" = "most"; then
10899 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
10900 enable_usertrack=$module_default
10901 _apmod_extra_msg=" ($module_selection)"
10902 elif test "$enable_usertrack" != "yes"; then
10903 enable_usertrack=no
10905 elif test "$enable_usertrack" = "maybe-all"; then
10906 if test "$module_selection" = "all"; then
10907 enable_usertrack=$module_default
10908 _apmod_extra_msg=" (all)"
10910 enable_usertrack=no
10913 if test "$enable_usertrack" != "no"; then
10914 { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
10915 $as_echo "checking dependencies" >&6; }
10918 for ac_header in sys/times.h
10920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10922 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10923 $as_echo_n "checking for $ac_header... " >&6; }
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925 $as_echo_n "(cached) " >&6
10927 ac_res=`eval 'as_val=${'$as_ac_Header'}
10928 $as_echo "$as_val"'`
10929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10930 $as_echo "$ac_res" >&6; }
10932 # Is the header compilable?
10933 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10934 $as_echo_n "checking $ac_header usability... " >&6; }
10935 cat >conftest.$ac_ext <<_ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 $ac_includes_default
10942 #include <$ac_header>
10944 rm -f conftest.$ac_objext
10945 if { (ac_try="$ac_compile"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10951 $as_echo "$ac_try_echo") >&5
10952 (eval "$ac_compile") 2>conftest.er1
10954 grep -v '^ *+' conftest.er1 >conftest.err
10956 cat conftest.err >&5
10957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } && {
10959 test -z "$ac_c_werror_flag" ||
10960 test ! -s conftest.err
10961 } && test -s conftest.$ac_objext; then
10962 ac_header_compiler=yes
10964 $as_echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_header_compiler=no
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10972 $as_echo "$ac_header_compiler" >&6; }
10974 # Is the header present?
10975 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10976 $as_echo_n "checking $ac_header presence... " >&6; }
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <$ac_header>
10985 if { (ac_try="$ac_cpp conftest.$ac_ext"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10991 $as_echo "$ac_try_echo") >&5
10992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } >/dev/null && {
10999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11002 ac_header_preproc=yes
11004 $as_echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11007 ac_header_preproc=no
11010 rm -f conftest.err conftest.$ac_ext
11011 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11012 $as_echo "$ac_header_preproc" >&6; }
11014 # So? What about this header?
11015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11018 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11021 ac_header_preproc=yes
11024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11025 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11027 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11029 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11031 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11033 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11035 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11039 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 $as_echo_n "checking for $ac_header... " >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 $as_echo_n "(cached) " >&6
11044 eval "$as_ac_Header=\$ac_header_preproc"
11046 ac_res=`eval 'as_val=${'$as_ac_Header'}
11047 $as_echo "$as_val"'`
11048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11049 $as_echo "$ac_res" >&6; }
11052 as_val=`eval 'as_val=${'$as_ac_Header'}
11053 $as_echo "$as_val"'`
11054 if test "x$as_val" = x""yes; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11064 for ac_func in times
11066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11068 $as_echo_n "checking for $ac_func... " >&6; }
11069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11070 $as_echo_n "(cached) " >&6
11072 cat >conftest.$ac_ext <<_ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11080 #define $ac_func innocuous_$ac_func
11082 /* System header to define __stub macros and hopefully few prototypes,
11083 which can conflict with char $ac_func (); below.
11084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11085 <limits.h> exists even on freestanding compilers. */
11088 # include <limits.h>
11090 # include <assert.h>
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11102 /* The GNU C library defines this for functions which it implements
11103 to always fail with ENOSYS. Some functions are actually named
11104 something starting with __ and the normal name is an alias. */
11105 #if defined __stub_$ac_func || defined __stub___$ac_func
11112 return $ac_func ();
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (ac_try="$ac_link"
11119 case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11124 $as_echo "$ac_try_echo") >&5
11125 (eval "$ac_link") 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && {
11132 test -z "$ac_c_werror_flag" ||
11133 test ! -s conftest.err
11134 } && test -s conftest$ac_exeext && {
11135 test "$cross_compiling" = yes ||
11136 $as_test_x conftest$ac_exeext
11138 eval "$as_ac_var=yes"
11140 $as_echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 eval "$as_ac_var=no"
11146 rm -rf conftest.dSYM
11147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11148 conftest$ac_exeext conftest.$ac_ext
11150 ac_res=`eval 'as_val=${'$as_ac_var'}
11151 $as_echo "$as_val"'`
11152 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11153 $as_echo "$ac_res" >&6; }
11154 as_val=`eval 'as_val=${'$as_ac_var'}
11155 $as_echo "$as_val"'`
11156 if test "x$as_val" = x""yes; then
11157 cat >>confdefs.h <<_ACEOF
11158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11165 { $as_echo "$as_me:$LINENO: checking whether to enable mod_usertrack" >&5
11166 $as_echo_n "checking whether to enable mod_usertrack... " >&6; }
11167 if test "$enable_usertrack" = "no"; then
11168 if test "$_apmod_error_fatal" = "no"; then
11169 _apmod_extra_msg=" (disabled)"
11171 { { $as_echo "$as_me:$LINENO: error: mod_usertrack has been requested but can not be built due to prerequisite failures" >&5
11172 $as_echo "$as_me: error: mod_usertrack has been requested but can not be built due to prerequisite failures" >&2;}
11173 { (exit 1); exit 1; }; }
11177 { $as_echo "$as_me:$LINENO: result: $enable_usertrack$_apmod_extra_msg" >&5
11178 $as_echo "$enable_usertrack$_apmod_extra_msg" >&6; }
11179 if test "$enable_usertrack" != "no"; then
11180 case "$enable_usertrack" in
11182 enable_usertrack=`echo $ac_n $enable_usertrack$ac_c|sed 's/shared,*//'`
11185 DSO_MODULES="$DSO_MODULES usertrack"
11188 MODLIST="$MODLIST usertrack"
11189 if test "usertrack" = "so"; then
11196 if test -z ""; then
11197 objects="mod_usertrack.lo"
11202 if test -z "$module_standalone"; then
11203 if test -z "$shared"; then
11204 libname="mod_usertrack.la"
11205 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11206 modpath_static="$modpath_static $libname"
11207 cat >>$modpath_current/modules.mk<<EOF
11209 \$(MOD_LINK) $objects \$(MOD_USERTRACK_LDADD)
11212 apache_need_shared=yes
11213 libname="mod_usertrack.la"
11214 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11215 modpath_shared="$modpath_shared $libname"
11216 cat >>$modpath_current/modules.mk<<EOF
11217 $libname: $shobjects
11218 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_USERTRACK_LDADD)
11224 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERTRACK_LDADD"
11232 { $as_echo "$as_me:$LINENO: checking whether to enable mod_unique_id" >&5
11233 $as_echo_n "checking whether to enable mod_unique_id... " >&6; }
11234 # Check whether --enable-unique-id was given.
11235 if test "${enable_unique_id+set}" = set; then
11236 enableval=$enable_unique_id;
11238 enable_unique_id=maybe-all
11241 _apmod_extra_msg=""
11242 if test "$module_selection" = "most" -a "$enable_unique_id" = "most"; then
11243 _apmod_error_fatal="no"
11245 _apmod_error_fatal="yes"
11247 if test "$enable_unique_id" = "static"; then
11248 enable_unique_id=yes
11249 elif test "$enable_unique_id" = "yes"; then
11250 enable_unique_id=$module_default
11251 _apmod_extra_msg=" ($module_selection)"
11252 elif test "$enable_unique_id" = "most"; then
11253 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11254 enable_unique_id=$module_default
11255 _apmod_extra_msg=" ($module_selection)"
11256 elif test "$enable_unique_id" != "yes"; then
11257 enable_unique_id=no
11259 elif test "$enable_unique_id" = "maybe-all"; then
11260 if test "$module_selection" = "all"; then
11261 enable_unique_id=$module_default
11262 _apmod_extra_msg=" (all)"
11264 enable_unique_id=no
11267 if test "$enable_unique_id" != "no"; then
11270 { $as_echo "$as_me:$LINENO: result: $enable_unique_id$_apmod_extra_msg" >&5
11271 $as_echo "$enable_unique_id$_apmod_extra_msg" >&6; }
11272 if test "$enable_unique_id" != "no"; then
11273 case "$enable_unique_id" in
11275 enable_unique_id=`echo $ac_n $enable_unique_id$ac_c|sed 's/shared,*//'`
11278 DSO_MODULES="$DSO_MODULES unique_id"
11281 MODLIST="$MODLIST unique_id"
11282 if test "unique_id" = "so"; then
11289 if test -z ""; then
11290 objects="mod_unique_id.lo"
11295 if test -z "$module_standalone"; then
11296 if test -z "$shared"; then
11297 libname="mod_unique_id.la"
11298 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11299 modpath_static="$modpath_static $libname"
11300 cat >>$modpath_current/modules.mk<<EOF
11302 \$(MOD_LINK) $objects \$(MOD_UNIQUE_ID_LDADD)
11305 apache_need_shared=yes
11306 libname="mod_unique_id.la"
11307 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11308 modpath_shared="$modpath_shared $libname"
11309 cat >>$modpath_current/modules.mk<<EOF
11310 $libname: $shobjects
11311 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_UNIQUE_ID_LDADD)
11317 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIQUE_ID_LDADD"
11324 { $as_echo "$as_me:$LINENO: checking whether to enable mod_setenvif" >&5
11325 $as_echo_n "checking whether to enable mod_setenvif... " >&6; }
11326 # Check whether --enable-setenvif was given.
11327 if test "${enable_setenvif+set}" = set; then
11328 enableval=$enable_setenvif;
11330 enable_setenvif=yes
11333 _apmod_extra_msg=""
11334 if test "$module_selection" = "most" -a "$enable_setenvif" = "most"; then
11335 _apmod_error_fatal="no"
11337 _apmod_error_fatal="yes"
11339 if test "$enable_setenvif" = "static"; then
11340 enable_setenvif=yes
11341 elif test "$enable_setenvif" = "yes"; then
11342 enable_setenvif=$module_default
11343 _apmod_extra_msg=" ($module_selection)"
11344 elif test "$enable_setenvif" = "most"; then
11345 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11346 enable_setenvif=$module_default
11347 _apmod_extra_msg=" ($module_selection)"
11348 elif test "$enable_setenvif" != "yes"; then
11351 elif test "$enable_setenvif" = "maybe-all"; then
11352 if test "$module_selection" = "all"; then
11353 enable_setenvif=$module_default
11354 _apmod_extra_msg=" (all)"
11359 if test "$enable_setenvif" != "no"; then
11362 { $as_echo "$as_me:$LINENO: result: $enable_setenvif$_apmod_extra_msg" >&5
11363 $as_echo "$enable_setenvif$_apmod_extra_msg" >&6; }
11364 if test "$enable_setenvif" != "no"; then
11365 case "$enable_setenvif" in
11367 enable_setenvif=`echo $ac_n $enable_setenvif$ac_c|sed 's/shared,*//'`
11370 DSO_MODULES="$DSO_MODULES setenvif"
11373 MODLIST="$MODLIST setenvif"
11374 if test "setenvif" = "so"; then
11381 if test -z ""; then
11382 objects="mod_setenvif.lo"
11387 if test -z "$module_standalone"; then
11388 if test -z "$shared"; then
11389 libname="mod_setenvif.la"
11390 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11391 modpath_static="$modpath_static $libname"
11392 cat >>$modpath_current/modules.mk<<EOF
11394 \$(MOD_LINK) $objects \$(MOD_SETENVIF_LDADD)
11397 apache_need_shared=yes
11398 libname="mod_setenvif.la"
11399 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11400 modpath_shared="$modpath_shared $libname"
11401 cat >>$modpath_current/modules.mk<<EOF
11402 $libname: $shobjects
11403 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_SETENVIF_LDADD)
11409 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SETENVIF_LDADD"
11416 { $as_echo "$as_me:$LINENO: checking whether to enable mod_version" >&5
11417 $as_echo_n "checking whether to enable mod_version... " >&6; }
11418 # Check whether --enable-version was given.
11419 if test "${enable_version+set}" = set; then
11420 enableval=$enable_version;
11422 enable_version=maybe-all
11425 _apmod_extra_msg=""
11426 if test "$module_selection" = "most" -a "$enable_version" = "most"; then
11427 _apmod_error_fatal="no"
11429 _apmod_error_fatal="yes"
11431 if test "$enable_version" = "static"; then
11433 elif test "$enable_version" = "yes"; then
11434 enable_version=$module_default
11435 _apmod_extra_msg=" ($module_selection)"
11436 elif test "$enable_version" = "most"; then
11437 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11438 enable_version=$module_default
11439 _apmod_extra_msg=" ($module_selection)"
11440 elif test "$enable_version" != "yes"; then
11443 elif test "$enable_version" = "maybe-all"; then
11444 if test "$module_selection" = "all"; then
11445 enable_version=$module_default
11446 _apmod_extra_msg=" (all)"
11451 if test "$enable_version" != "no"; then
11454 { $as_echo "$as_me:$LINENO: result: $enable_version$_apmod_extra_msg" >&5
11455 $as_echo "$enable_version$_apmod_extra_msg" >&6; }
11456 if test "$enable_version" != "no"; then
11457 case "$enable_version" in
11459 enable_version=`echo $ac_n $enable_version$ac_c|sed 's/shared,*//'`
11462 DSO_MODULES="$DSO_MODULES version"
11465 MODLIST="$MODLIST version"
11466 if test "version" = "so"; then
11473 if test -z ""; then
11474 objects="mod_version.lo"
11479 if test -z "$module_standalone"; then
11480 if test -z "$shared"; then
11481 libname="mod_version.la"
11482 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11483 modpath_static="$modpath_static $libname"
11484 cat >>$modpath_current/modules.mk<<EOF
11486 \$(MOD_LINK) $objects \$(MOD_VERSION_LDADD)
11489 apache_need_shared=yes
11490 libname="mod_version.la"
11491 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11492 modpath_shared="$modpath_shared $libname"
11493 cat >>$modpath_current/modules.mk<<EOF
11494 $libname: $shobjects
11495 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_VERSION_LDADD)
11501 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VERSION_LDADD"
11509 if test "x$LT_LDFLAGS" = "x"; then
11510 echo " setting LT_LDFLAGS to \"-export-dynamic\""
11511 LT_LDFLAGS="-export-dynamic"
11513 apr_addto_bugger="-export-dynamic"
11514 for i in $apr_addto_bugger; do
11515 apr_addto_duplicate="0"
11516 for j in $LT_LDFLAGS; do
11517 if test "x$i" = "x$j"; then
11518 apr_addto_duplicate="1"
11522 if test $apr_addto_duplicate = "0"; then
11523 echo " adding \"$i\" to LT_LDFLAGS"
11524 LT_LDFLAGS="$LT_LDFLAGS $i"
11531 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
11532 echo "static = $modpath_static" >> $modpath_current/modules.mk
11533 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
11534 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
11535 MODULE_DIRS="$MODULE_DIRS $current_dir"
11537 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
11540 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
11547 modpath_current=modules/proxy
11550 test -d proxy || $srcdir/build/mkdir.sh $modpath_current
11551 > $modpath_current/modules.mk
11554 if test "$enable_proxy" = "shared"; then
11555 proxy_mods_enable=shared
11556 elif test "$enable_proxy" = "yes"; then
11557 proxy_mods_enable=yes
11559 proxy_mods_enable=no
11562 proxy_objs="mod_proxy.lo proxy_util.lo"
11564 { $as_echo "$as_me:$LINENO: checking whether to enable mod_proxy" >&5
11565 $as_echo_n "checking whether to enable mod_proxy... " >&6; }
11566 # Check whether --enable-proxy was given.
11567 if test "${enable_proxy+set}" = set; then
11568 enableval=$enable_proxy;
11570 enable_proxy=$proxy_mods_enable
11573 _apmod_extra_msg=""
11574 if test "$module_selection" = "most" -a "$enable_proxy" = "most"; then
11575 _apmod_error_fatal="no"
11577 _apmod_error_fatal="yes"
11579 if test "$enable_proxy" = "static"; then
11581 elif test "$enable_proxy" = "yes"; then
11582 enable_proxy=$module_default
11583 _apmod_extra_msg=" ($module_selection)"
11584 elif test "$enable_proxy" = "most"; then
11585 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11586 enable_proxy=$module_default
11587 _apmod_extra_msg=" ($module_selection)"
11588 elif test "$enable_proxy" != "yes"; then
11591 elif test "$enable_proxy" = "maybe-all"; then
11592 if test "$module_selection" = "all"; then
11593 enable_proxy=$module_default
11594 _apmod_extra_msg=" (all)"
11599 if test "$enable_proxy" != "no"; then
11602 { $as_echo "$as_me:$LINENO: result: $enable_proxy$_apmod_extra_msg" >&5
11603 $as_echo "$enable_proxy$_apmod_extra_msg" >&6; }
11604 if test "$enable_proxy" != "no"; then
11605 case "$enable_proxy" in
11607 enable_proxy=`echo $ac_n $enable_proxy$ac_c|sed 's/shared,*//'`
11610 DSO_MODULES="$DSO_MODULES proxy"
11613 MODLIST="$MODLIST proxy"
11614 if test "proxy" = "so"; then
11621 if test -z "$proxy_objs"; then
11622 objects="mod_proxy.lo"
11624 objects="$proxy_objs"
11627 if test -z "$module_standalone"; then
11628 if test -z "$shared"; then
11629 libname="mod_proxy.la"
11630 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11631 modpath_static="$modpath_static $libname"
11632 cat >>$modpath_current/modules.mk<<EOF
11634 \$(MOD_LINK) $objects \$(MOD_PROXY_LDADD)
11637 apache_need_shared=yes
11638 libname="mod_proxy.la"
11639 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11640 modpath_shared="$modpath_shared $libname"
11641 cat >>$modpath_current/modules.mk<<EOF
11642 $libname: $shobjects
11643 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_PROXY_LDADD)
11649 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_LDADD"
11656 proxy_connect_objs="proxy_connect.lo"
11657 proxy_ftp_objs="proxy_ftp.lo"
11658 proxy_http_objs="proxy_http.lo"
11662 # OS/2 DLLs must resolve all symbols at build time and
11663 # these sub-modules need some from the main proxy module
11664 proxy_connect_objs="$proxy_connect_objs mod_proxy.la"
11665 proxy_ftp_objs="$proxy_ftp_objs mod_proxy.la"
11666 proxy_http_objs="$proxy_http_objs mod_proxy.la"
11671 { $as_echo "$as_me:$LINENO: checking whether to enable mod_proxy_connect" >&5
11672 $as_echo_n "checking whether to enable mod_proxy_connect... " >&6; }
11673 # Check whether --enable-proxy-connect was given.
11674 if test "${enable_proxy_connect+set}" = set; then
11675 enableval=$enable_proxy_connect;
11677 enable_proxy_connect=$proxy_mods_enable
11680 _apmod_extra_msg=""
11681 if test "$module_selection" = "most" -a "$enable_proxy_connect" = "most"; then
11682 _apmod_error_fatal="no"
11684 _apmod_error_fatal="yes"
11686 if test "$enable_proxy_connect" = "static"; then
11687 enable_proxy_connect=yes
11688 elif test "$enable_proxy_connect" = "yes"; then
11689 enable_proxy_connect=$module_default
11690 _apmod_extra_msg=" ($module_selection)"
11691 elif test "$enable_proxy_connect" = "most"; then
11692 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11693 enable_proxy_connect=$module_default
11694 _apmod_extra_msg=" ($module_selection)"
11695 elif test "$enable_proxy_connect" != "yes"; then
11696 enable_proxy_connect=no
11698 elif test "$enable_proxy_connect" = "maybe-all"; then
11699 if test "$module_selection" = "all"; then
11700 enable_proxy_connect=$module_default
11701 _apmod_extra_msg=" (all)"
11703 enable_proxy_connect=no
11706 if test "$enable_proxy_connect" != "no"; then
11709 { $as_echo "$as_me:$LINENO: result: $enable_proxy_connect$_apmod_extra_msg" >&5
11710 $as_echo "$enable_proxy_connect$_apmod_extra_msg" >&6; }
11711 if test "$enable_proxy_connect" != "no"; then
11712 case "$enable_proxy_connect" in
11714 enable_proxy_connect=`echo $ac_n $enable_proxy_connect$ac_c|sed 's/shared,*//'`
11717 DSO_MODULES="$DSO_MODULES proxy_connect"
11720 MODLIST="$MODLIST proxy_connect"
11721 if test "proxy_connect" = "so"; then
11728 if test -z "$proxy_connect_objs"; then
11729 objects="mod_proxy_connect.lo"
11731 objects="$proxy_connect_objs"
11734 if test -z "$module_standalone"; then
11735 if test -z "$shared"; then
11736 libname="mod_proxy_connect.la"
11737 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11738 modpath_static="$modpath_static $libname"
11739 cat >>$modpath_current/modules.mk<<EOF
11741 \$(MOD_LINK) $objects \$(MOD_PROXY_CONNECT_LDADD)
11744 apache_need_shared=yes
11745 libname="mod_proxy_connect.la"
11746 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11747 modpath_shared="$modpath_shared $libname"
11748 cat >>$modpath_current/modules.mk<<EOF
11749 $libname: $shobjects
11750 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_PROXY_CONNECT_LDADD)
11756 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_CONNECT_LDADD"
11763 { $as_echo "$as_me:$LINENO: checking whether to enable mod_proxy_ftp" >&5
11764 $as_echo_n "checking whether to enable mod_proxy_ftp... " >&6; }
11765 # Check whether --enable-proxy-ftp was given.
11766 if test "${enable_proxy_ftp+set}" = set; then
11767 enableval=$enable_proxy_ftp;
11769 enable_proxy_ftp=$proxy_mods_enable
11772 _apmod_extra_msg=""
11773 if test "$module_selection" = "most" -a "$enable_proxy_ftp" = "most"; then
11774 _apmod_error_fatal="no"
11776 _apmod_error_fatal="yes"
11778 if test "$enable_proxy_ftp" = "static"; then
11779 enable_proxy_ftp=yes
11780 elif test "$enable_proxy_ftp" = "yes"; then
11781 enable_proxy_ftp=$module_default
11782 _apmod_extra_msg=" ($module_selection)"
11783 elif test "$enable_proxy_ftp" = "most"; then
11784 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11785 enable_proxy_ftp=$module_default
11786 _apmod_extra_msg=" ($module_selection)"
11787 elif test "$enable_proxy_ftp" != "yes"; then
11788 enable_proxy_ftp=no
11790 elif test "$enable_proxy_ftp" = "maybe-all"; then
11791 if test "$module_selection" = "all"; then
11792 enable_proxy_ftp=$module_default
11793 _apmod_extra_msg=" (all)"
11795 enable_proxy_ftp=no
11798 if test "$enable_proxy_ftp" != "no"; then
11801 { $as_echo "$as_me:$LINENO: result: $enable_proxy_ftp$_apmod_extra_msg" >&5
11802 $as_echo "$enable_proxy_ftp$_apmod_extra_msg" >&6; }
11803 if test "$enable_proxy_ftp" != "no"; then
11804 case "$enable_proxy_ftp" in
11806 enable_proxy_ftp=`echo $ac_n $enable_proxy_ftp$ac_c|sed 's/shared,*//'`
11809 DSO_MODULES="$DSO_MODULES proxy_ftp"
11812 MODLIST="$MODLIST proxy_ftp"
11813 if test "proxy_ftp" = "so"; then
11820 if test -z "$proxy_ftp_objs"; then
11821 objects="mod_proxy_ftp.lo"
11823 objects="$proxy_ftp_objs"
11826 if test -z "$module_standalone"; then
11827 if test -z "$shared"; then
11828 libname="mod_proxy_ftp.la"
11829 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11830 modpath_static="$modpath_static $libname"
11831 cat >>$modpath_current/modules.mk<<EOF
11833 \$(MOD_LINK) $objects \$(MOD_PROXY_FTP_LDADD)
11836 apache_need_shared=yes
11837 libname="mod_proxy_ftp.la"
11838 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11839 modpath_shared="$modpath_shared $libname"
11840 cat >>$modpath_current/modules.mk<<EOF
11841 $libname: $shobjects
11842 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_PROXY_FTP_LDADD)
11848 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FTP_LDADD"
11855 { $as_echo "$as_me:$LINENO: checking whether to enable mod_proxy_http" >&5
11856 $as_echo_n "checking whether to enable mod_proxy_http... " >&6; }
11857 # Check whether --enable-proxy-http was given.
11858 if test "${enable_proxy_http+set}" = set; then
11859 enableval=$enable_proxy_http;
11861 enable_proxy_http=$proxy_mods_enable
11864 _apmod_extra_msg=""
11865 if test "$module_selection" = "most" -a "$enable_proxy_http" = "most"; then
11866 _apmod_error_fatal="no"
11868 _apmod_error_fatal="yes"
11870 if test "$enable_proxy_http" = "static"; then
11871 enable_proxy_http=yes
11872 elif test "$enable_proxy_http" = "yes"; then
11873 enable_proxy_http=$module_default
11874 _apmod_extra_msg=" ($module_selection)"
11875 elif test "$enable_proxy_http" = "most"; then
11876 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11877 enable_proxy_http=$module_default
11878 _apmod_extra_msg=" ($module_selection)"
11879 elif test "$enable_proxy_http" != "yes"; then
11880 enable_proxy_http=no
11882 elif test "$enable_proxy_http" = "maybe-all"; then
11883 if test "$module_selection" = "all"; then
11884 enable_proxy_http=$module_default
11885 _apmod_extra_msg=" (all)"
11887 enable_proxy_http=no
11890 if test "$enable_proxy_http" != "no"; then
11893 { $as_echo "$as_me:$LINENO: result: $enable_proxy_http$_apmod_extra_msg" >&5
11894 $as_echo "$enable_proxy_http$_apmod_extra_msg" >&6; }
11895 if test "$enable_proxy_http" != "no"; then
11896 case "$enable_proxy_http" in
11898 enable_proxy_http=`echo $ac_n $enable_proxy_http$ac_c|sed 's/shared,*//'`
11901 DSO_MODULES="$DSO_MODULES proxy_http"
11904 MODLIST="$MODLIST proxy_http"
11905 if test "proxy_http" = "so"; then
11912 if test -z "$proxy_http_objs"; then
11913 objects="mod_proxy_http.lo"
11915 objects="$proxy_http_objs"
11918 if test -z "$module_standalone"; then
11919 if test -z "$shared"; then
11920 libname="mod_proxy_http.la"
11921 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11922 modpath_static="$modpath_static $libname"
11923 cat >>$modpath_current/modules.mk<<EOF
11925 \$(MOD_LINK) $objects \$(MOD_PROXY_HTTP_LDADD)
11928 apache_need_shared=yes
11929 libname="mod_proxy_http.la"
11930 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11931 modpath_shared="$modpath_shared $libname"
11932 cat >>$modpath_current/modules.mk<<EOF
11933 $libname: $shobjects
11934 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_PROXY_HTTP_LDADD)
11940 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTTP_LDADD"
11948 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
11949 echo "static = $modpath_static" >> $modpath_current/modules.mk
11950 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
11951 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
11952 MODULE_DIRS="$MODULE_DIRS $current_dir"
11954 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
11957 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
11964 modpath_current=modules/ssl
11967 test -d ssl || $srcdir/build/mkdir.sh $modpath_current
11968 > $modpath_current/modules.mk
11971 ssl_objs="mod_ssl.lo ssl_engine_config.lo ssl_engine_dh.lo ssl_engine_init.lo ssl_engine_io.lo ssl_engine_kernel.lo ssl_engine_log.lo ssl_engine_mutex.lo ssl_engine_pphrase.lo ssl_engine_rand.lo ssl_engine_vars.lo ssl_expr.lo ssl_expr_eval.lo ssl_expr_parse.lo ssl_expr_scan.lo ssl_scache.lo ssl_scache_dbm.lo ssl_scache_shmcb.lo ssl_scache_shmht.lo ssl_util.lo ssl_util_ssl.lo ssl_util_table.lo "
11973 { $as_echo "$as_me:$LINENO: checking whether to enable mod_ssl" >&5
11974 $as_echo_n "checking whether to enable mod_ssl... " >&6; }
11975 # Check whether --enable-ssl was given.
11976 if test "${enable_ssl+set}" = set; then
11977 enableval=$enable_ssl;
11982 _apmod_extra_msg=""
11983 if test "$module_selection" = "most" -a "$enable_ssl" = "most"; then
11984 _apmod_error_fatal="no"
11986 _apmod_error_fatal="yes"
11988 if test "$enable_ssl" = "static"; then
11990 elif test "$enable_ssl" = "yes"; then
11991 enable_ssl=$module_default
11992 _apmod_extra_msg=" ($module_selection)"
11993 elif test "$enable_ssl" = "most"; then
11994 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
11995 enable_ssl=$module_default
11996 _apmod_extra_msg=" ($module_selection)"
11997 elif test "$enable_ssl" != "yes"; then
12000 elif test "$enable_ssl" = "maybe-all"; then
12001 if test "$module_selection" = "all"; then
12002 enable_ssl=$module_default
12003 _apmod_extra_msg=" (all)"
12008 if test "$enable_ssl" != "no"; then
12009 { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
12010 $as_echo "checking dependencies" >&6; }
12013 if test "x$ap_ssltk_base" = "x"; then
12014 { $as_echo "$as_me:$LINENO: checking for SSL/TLS toolkit base" >&5
12015 $as_echo_n "checking for SSL/TLS toolkit base... " >&6; }
12018 # Check whether --with-ssl was given.
12019 if test "${with_ssl+set}" = set; then
12021 if test "x$withval" != "xyes" -a "x$withval" != "x"; then
12022 ap_ssltk_base="$withval"
12023 if test -f "$ap_ssltk_base/bin/openssl"; then
12024 ap_ssltk_version="`$ap_ssltk_base/bin/openssl version`"
12026 ap_ssltk_version="unknown"
12032 if test "x$ap_ssltk_base" = "x"; then
12033 if test "${ap_cv_ssltk+set}" = set; then
12034 $as_echo_n "(cached) " >&6
12038 # shotgun approach: find all occurrences of the openssl program
12040 # The IFS=... trick eliminates the colons from $PATH, without using an external program
12041 for p in `IFS=":$IFS"; echo $PATH` /usr/local/openssl/bin /usr/local/ssl/bin; do
12042 if test -f "$p/openssl"; then
12043 ap_ssltk_version="`$p/openssl version`"
12044 if test "x$ap_ssltk_version" != "x"; then
12045 ap_cv_ssltk="`(cd $p/.. && pwd)`"
12050 if test "x$ap_cv_ssltk" = "x"; then
12051 { { $as_echo "$as_me:$LINENO: error: requires OpenSSL 0.9.6e or higher" >&5
12052 $as_echo "$as_me: error: requires OpenSSL 0.9.6e or higher" >&2;}
12053 { (exit 1); exit 1; }; }
12058 ap_ssltk_base="$ap_cv_ssltk"
12060 if test ! -d $ap_ssltk_base; then
12061 { { $as_echo "$as_me:$LINENO: error: invalid SSL/TLS toolkit base directory $ap_ssltk_base" >&5
12062 $as_echo "$as_me: error: invalid SSL/TLS toolkit base directory $ap_ssltk_base" >&2;}
12063 { (exit 1); exit 1; }; }
12065 { $as_echo "$as_me:$LINENO: result: $ap_ssltk_base" >&5
12066 $as_echo "$ap_ssltk_base" >&6; }
12068 { $as_echo "$as_me:$LINENO: checking for SSL/TLS toolkit version" >&5
12069 $as_echo_n "checking for SSL/TLS toolkit version... " >&6; }
12070 { $as_echo "$as_me:$LINENO: result: $ap_ssltk_version" >&5
12071 $as_echo "$ap_ssltk_version" >&6; }
12072 case "$ap_ssltk_version" in
12073 "OpenSSL "[1-9]* | \
12074 "OpenSSL "0.9.6[e-z]* | \
12075 "OpenSSL "0.9.[7-9]* | \
12076 "OpenSSL "0.[1-9][0-9]* )
12077 # okay versions that do not have known security holes
12080 { $as_echo "$as_me:$LINENO: WARNING: OpenSSL versions prior to 0.9.6e have known security holes" >&5
12081 $as_echo "$as_me: WARNING: OpenSSL versions prior to 0.9.6e have known security holes" >&2;}
12084 # unknown version -- assume the user knows what they are doing
12088 { $as_echo "$as_me:$LINENO: checking for SSL/TLS toolkit includes" >&5
12089 $as_echo_n "checking for SSL/TLS toolkit includes... " >&6; }
12091 for p in $ap_ssltk_base/include /usr/local/openssl/include \
12092 /usr/local/ssl/include /usr/local/include /usr/include; do
12093 if test -f "$p/openssl/ssl.h"; then
12094 ap_ssltk_incdir="$p"
12096 elif test -f "$p/ssl.h"; then
12097 ap_ssltk_incdir="$p"
12101 if test "x$ap_ssltk_incdir" = "x"; then
12102 { { $as_echo "$as_me:$LINENO: error: OpenSSL headers not found" >&5
12103 $as_echo "$as_me: error: OpenSSL headers not found" >&2;}
12104 { (exit 1); exit 1; }; }
12106 { $as_echo "$as_me:$LINENO: result: $ap_ssltk_incdir" >&5
12107 $as_echo "$ap_ssltk_incdir" >&6; }
12109 { $as_echo "$as_me:$LINENO: checking for SSL/TLS toolkit libraries" >&5
12110 $as_echo_n "checking for SSL/TLS toolkit libraries... " >&6; }
12112 for p in $ap_ssltk_base/lib /usr/local/openssl/lib \
12113 /usr/local/ssl/lib /usr/local/lib /usr/lib /lib /usr/lib64; do
12114 if test -f "$p/libssl.a" -o -f "$p/libssl.so" -o -f "$p/libssl.dylib"; then
12115 ap_ssltk_libdir="$p"
12119 if test ".$ap_ssltk_libdir" = .; then
12120 { { $as_echo "$as_me:$LINENO: error: OpenSSL libraries not found" >&5
12121 $as_echo "$as_me: error: OpenSSL libraries not found" >&2;}
12122 { (exit 1); exit 1; }; }
12124 { $as_echo "$as_me:$LINENO: result: $ap_ssltk_libdir" >&5
12125 $as_echo "$ap_ssltk_libdir" >&6; }
12128 if test "x$INCLUDES" = "x"; then
12129 echo " setting INCLUDES to \"-I$ap_ssltk_incdir/openssl\""
12130 INCLUDES="-I$ap_ssltk_incdir/openssl"
12132 apr_addto_bugger="-I$ap_ssltk_incdir/openssl"
12133 for i in $apr_addto_bugger; do
12134 apr_addto_duplicate="0"
12135 for j in $INCLUDES; do
12136 if test "x$i" = "x$j"; then
12137 apr_addto_duplicate="1"
12141 if test $apr_addto_duplicate = "0"; then
12142 echo " adding \"$i\" to INCLUDES"
12143 INCLUDES="$INCLUDES $i"
12148 if test "x$ap_ssltk_incdir" != "x/usr/include"; then
12150 if test "x$INCLUDES" = "x"; then
12151 echo " setting INCLUDES to \"-I$ap_ssltk_incdir\""
12152 INCLUDES="-I$ap_ssltk_incdir"
12154 apr_addto_bugger="-I$ap_ssltk_incdir"
12155 for i in $apr_addto_bugger; do
12156 apr_addto_duplicate="0"
12157 for j in $INCLUDES; do
12158 if test "x$i" = "x$j"; then
12159 apr_addto_duplicate="1"
12163 if test $apr_addto_duplicate = "0"; then
12164 echo " adding \"$i\" to INCLUDES"
12165 INCLUDES="$INCLUDES $i"
12171 if test "x$ap_ssltk_libdir" != "x/usr/lib"; then
12173 if test "x$LDFLAGS" = "x"; then
12174 echo " setting LDFLAGS to \"-L$ap_ssltk_libdir\""
12175 LDFLAGS="-L$ap_ssltk_libdir"
12177 apr_addto_bugger="-L$ap_ssltk_libdir"
12178 for i in $apr_addto_bugger; do
12179 apr_addto_duplicate="0"
12180 for j in $LDFLAGS; do
12181 if test "x$i" = "x$j"; then
12182 apr_addto_duplicate="1"
12186 if test $apr_addto_duplicate = "0"; then
12187 echo " adding \"$i\" to LDFLAGS"
12188 LDFLAGS="$LDFLAGS $i"
12193 if test "x$ap_platform_runtime_link_flag" != "x"; then
12195 if test "x$LDFLAGS" = "x"; then
12196 echo " setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_ssltk_libdir\""
12197 LDFLAGS="$ap_platform_runtime_link_flag$ap_ssltk_libdir"
12199 apr_addto_bugger="$ap_platform_runtime_link_flag$ap_ssltk_libdir"
12200 for i in $apr_addto_bugger; do
12201 apr_addto_duplicate="0"
12202 for j in $LDFLAGS; do
12203 if test "x$i" = "x$j"; then
12204 apr_addto_duplicate="1"
12208 if test $apr_addto_duplicate = "0"; then
12209 echo " adding \"$i\" to LDFLAGS"
12210 LDFLAGS="$LDFLAGS $i"
12217 # Put SSL libraries in SSL_LIBS.
12219 echo " forcing SSL_LIBS to \"-lssl -lcrypto\""
12220 SSL_LIBS="-lssl -lcrypto"
12222 pkg-config openssl 2> /dev/null
12223 if test $? -eq 0; then
12224 ap_ssltk_incdep=`pkg-config --cflags-only-I openssl`
12226 if test "x$INCLUDES" = "x"; then
12227 echo " setting INCLUDES to \"$ap_ssltk_incdep\""
12228 INCLUDES="$ap_ssltk_incdep"
12230 apr_addto_bugger="$ap_ssltk_incdep"
12231 for i in $apr_addto_bugger; do
12232 apr_addto_duplicate="0"
12233 for j in $INCLUDES; do
12234 if test "x$i" = "x$j"; then
12235 apr_addto_duplicate="1"
12239 if test $apr_addto_duplicate = "0"; then
12240 echo " adding \"$i\" to INCLUDES"
12241 INCLUDES="$INCLUDES $i"
12246 ap_ssltk_libdep=`pkg-config --libs openssl`
12248 echo " forcing SSL_LIBS to \"$ap_ssltk_libdep\""
12249 SSL_LIBS="$ap_ssltk_libdep"
12253 APACHE_VAR_SUBST="$APACHE_VAR_SUBST SSL_LIBS"
12256 ap_cv_ssltk="$ap_ssltk_base"
12260 echo " forcing MOD_SSL_LDADD to \"\$(SSL_LIBS)\""
12261 MOD_SSL_LDADD="\$(SSL_LIBS)"
12264 for ac_func in SSL_set_state
12266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12267 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12268 $as_echo_n "checking for $ac_func... " >&6; }
12269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12270 $as_echo_n "(cached) " >&6
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12280 #define $ac_func innocuous_$ac_func
12282 /* System header to define __stub macros and hopefully few prototypes,
12283 which can conflict with char $ac_func (); below.
12284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12285 <limits.h> exists even on freestanding compilers. */
12288 # include <limits.h>
12290 # include <assert.h>
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12302 /* The GNU C library defines this for functions which it implements
12303 to always fail with ENOSYS. Some functions are actually named
12304 something starting with __ and the normal name is an alias. */
12305 #if defined __stub_$ac_func || defined __stub___$ac_func
12312 return $ac_func ();
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (ac_try="$ac_link"
12319 case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12324 $as_echo "$ac_try_echo") >&5
12325 (eval "$ac_link") 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } && {
12332 test -z "$ac_c_werror_flag" ||
12333 test ! -s conftest.err
12334 } && test -s conftest$ac_exeext && {
12335 test "$cross_compiling" = yes ||
12336 $as_test_x conftest$ac_exeext
12338 eval "$as_ac_var=yes"
12340 $as_echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 eval "$as_ac_var=no"
12346 rm -rf conftest.dSYM
12347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12348 conftest$ac_exeext conftest.$ac_ext
12350 ac_res=`eval 'as_val=${'$as_ac_var'}
12351 $as_echo "$as_val"'`
12352 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12353 $as_echo "$ac_res" >&6; }
12354 as_val=`eval 'as_val=${'$as_ac_var'}
12355 $as_echo "$as_val"'`
12356 if test "x$as_val" = x""yes; then
12357 cat >>confdefs.h <<_ACEOF
12358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12365 for ac_func in SSL_set_cert_store
12367 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12368 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12369 $as_echo_n "checking for $ac_func... " >&6; }
12370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12371 $as_echo_n "(cached) " >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12381 #define $ac_func innocuous_$ac_func
12383 /* System header to define __stub macros and hopefully few prototypes,
12384 which can conflict with char $ac_func (); below.
12385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386 <limits.h> exists even on freestanding compilers. */
12389 # include <limits.h>
12391 # include <assert.h>
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12403 /* The GNU C library defines this for functions which it implements
12404 to always fail with ENOSYS. Some functions are actually named
12405 something starting with __ and the normal name is an alias. */
12406 #if defined __stub_$ac_func || defined __stub___$ac_func
12413 return $ac_func ();
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12425 $as_echo "$ac_try_echo") >&5
12426 (eval "$ac_link") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest$ac_exeext && {
12436 test "$cross_compiling" = yes ||
12437 $as_test_x conftest$ac_exeext
12439 eval "$as_ac_var=yes"
12441 $as_echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 eval "$as_ac_var=no"
12447 rm -rf conftest.dSYM
12448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449 conftest$ac_exeext conftest.$ac_ext
12451 ac_res=`eval 'as_val=${'$as_ac_var'}
12452 $as_echo "$as_val"'`
12453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12454 $as_echo "$ac_res" >&6; }
12455 as_val=`eval 'as_val=${'$as_ac_var'}
12456 $as_echo "$as_val"'`
12457 if test "x$as_val" = x""yes; then
12458 cat >>confdefs.h <<_ACEOF
12459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12466 { $as_echo "$as_me:$LINENO: checking whether to enable mod_ssl" >&5
12467 $as_echo_n "checking whether to enable mod_ssl... " >&6; }
12468 if test "$enable_ssl" = "no"; then
12469 if test "$_apmod_error_fatal" = "no"; then
12470 _apmod_extra_msg=" (disabled)"
12472 { { $as_echo "$as_me:$LINENO: error: mod_ssl has been requested but can not be built due to prerequisite failures" >&5
12473 $as_echo "$as_me: error: mod_ssl has been requested but can not be built due to prerequisite failures" >&2;}
12474 { (exit 1); exit 1; }; }
12478 { $as_echo "$as_me:$LINENO: result: $enable_ssl$_apmod_extra_msg" >&5
12479 $as_echo "$enable_ssl$_apmod_extra_msg" >&6; }
12480 if test "$enable_ssl" != "no"; then
12481 case "$enable_ssl" in
12483 enable_ssl=`echo $ac_n $enable_ssl$ac_c|sed 's/shared,*//'`
12486 DSO_MODULES="$DSO_MODULES ssl"
12489 MODLIST="$MODLIST ssl"
12490 if test "ssl" = "so"; then
12497 if test -z "$ssl_objs"; then
12498 objects="mod_ssl.lo"
12500 objects="$ssl_objs"
12503 if test -z "$module_standalone"; then
12504 if test -z "$shared"; then
12505 libname="mod_ssl.la"
12506 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12507 modpath_static="$modpath_static $libname"
12508 cat >>$modpath_current/modules.mk<<EOF
12510 \$(MOD_LINK) $objects \$(MOD_SSL_LDADD)
12513 apache_need_shared=yes
12514 libname="mod_ssl.la"
12515 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12516 modpath_shared="$modpath_shared $libname"
12517 cat >>$modpath_current/modules.mk<<EOF
12518 $libname: $shobjects
12519 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_SSL_LDADD)
12525 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SSL_LDADD"
12533 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
12534 echo "static = $modpath_static" >> $modpath_current/modules.mk
12535 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
12536 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
12537 MODULE_DIRS="$MODULE_DIRS $current_dir"
12539 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
12542 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
12550 modpath_current=modules/test
12553 test -d test || $srcdir/build/mkdir.sh $modpath_current
12554 > $modpath_current/modules.mk
12558 { $as_echo "$as_me:$LINENO: checking whether to enable mod_optional_hook_export" >&5
12559 $as_echo_n "checking whether to enable mod_optional_hook_export... " >&6; }
12560 # Check whether --enable-optional-hook-export was given.
12561 if test "${enable_optional_hook_export+set}" = set; then
12562 enableval=$enable_optional_hook_export;
12564 enable_optional_hook_export=no
12567 _apmod_extra_msg=""
12568 if test "$module_selection" = "most" -a "$enable_optional_hook_export" = "most"; then
12569 _apmod_error_fatal="no"
12571 _apmod_error_fatal="yes"
12573 if test "$enable_optional_hook_export" = "static"; then
12574 enable_optional_hook_export=yes
12575 elif test "$enable_optional_hook_export" = "yes"; then
12576 enable_optional_hook_export=$module_default
12577 _apmod_extra_msg=" ($module_selection)"
12578 elif test "$enable_optional_hook_export" = "most"; then
12579 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12580 enable_optional_hook_export=$module_default
12581 _apmod_extra_msg=" ($module_selection)"
12582 elif test "$enable_optional_hook_export" != "yes"; then
12583 enable_optional_hook_export=no
12585 elif test "$enable_optional_hook_export" = "maybe-all"; then
12586 if test "$module_selection" = "all"; then
12587 enable_optional_hook_export=$module_default
12588 _apmod_extra_msg=" (all)"
12590 enable_optional_hook_export=no
12593 if test "$enable_optional_hook_export" != "no"; then
12596 { $as_echo "$as_me:$LINENO: result: $enable_optional_hook_export$_apmod_extra_msg" >&5
12597 $as_echo "$enable_optional_hook_export$_apmod_extra_msg" >&6; }
12598 if test "$enable_optional_hook_export" != "no"; then
12599 case "$enable_optional_hook_export" in
12601 enable_optional_hook_export=`echo $ac_n $enable_optional_hook_export$ac_c|sed 's/shared,*//'`
12604 DSO_MODULES="$DSO_MODULES optional_hook_export"
12607 MODLIST="$MODLIST optional_hook_export"
12608 if test "optional_hook_export" = "so"; then
12615 if test -z ""; then
12616 objects="mod_optional_hook_export.lo"
12621 if test -z "$module_standalone"; then
12622 if test -z "$shared"; then
12623 libname="mod_optional_hook_export.la"
12624 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12625 modpath_static="$modpath_static $libname"
12626 cat >>$modpath_current/modules.mk<<EOF
12628 \$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
12631 apache_need_shared=yes
12632 libname="mod_optional_hook_export.la"
12633 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12634 modpath_shared="$modpath_shared $libname"
12635 cat >>$modpath_current/modules.mk<<EOF
12636 $libname: $shobjects
12637 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
12643 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_EXPORT_LDADD"
12650 { $as_echo "$as_me:$LINENO: checking whether to enable mod_optional_hook_import" >&5
12651 $as_echo_n "checking whether to enable mod_optional_hook_import... " >&6; }
12652 # Check whether --enable-optional-hook-import was given.
12653 if test "${enable_optional_hook_import+set}" = set; then
12654 enableval=$enable_optional_hook_import;
12656 enable_optional_hook_import=no
12659 _apmod_extra_msg=""
12660 if test "$module_selection" = "most" -a "$enable_optional_hook_import" = "most"; then
12661 _apmod_error_fatal="no"
12663 _apmod_error_fatal="yes"
12665 if test "$enable_optional_hook_import" = "static"; then
12666 enable_optional_hook_import=yes
12667 elif test "$enable_optional_hook_import" = "yes"; then
12668 enable_optional_hook_import=$module_default
12669 _apmod_extra_msg=" ($module_selection)"
12670 elif test "$enable_optional_hook_import" = "most"; then
12671 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12672 enable_optional_hook_import=$module_default
12673 _apmod_extra_msg=" ($module_selection)"
12674 elif test "$enable_optional_hook_import" != "yes"; then
12675 enable_optional_hook_import=no
12677 elif test "$enable_optional_hook_import" = "maybe-all"; then
12678 if test "$module_selection" = "all"; then
12679 enable_optional_hook_import=$module_default
12680 _apmod_extra_msg=" (all)"
12682 enable_optional_hook_import=no
12685 if test "$enable_optional_hook_import" != "no"; then
12688 { $as_echo "$as_me:$LINENO: result: $enable_optional_hook_import$_apmod_extra_msg" >&5
12689 $as_echo "$enable_optional_hook_import$_apmod_extra_msg" >&6; }
12690 if test "$enable_optional_hook_import" != "no"; then
12691 case "$enable_optional_hook_import" in
12693 enable_optional_hook_import=`echo $ac_n $enable_optional_hook_import$ac_c|sed 's/shared,*//'`
12696 DSO_MODULES="$DSO_MODULES optional_hook_import"
12699 MODLIST="$MODLIST optional_hook_import"
12700 if test "optional_hook_import" = "so"; then
12707 if test -z ""; then
12708 objects="mod_optional_hook_import.lo"
12713 if test -z "$module_standalone"; then
12714 if test -z "$shared"; then
12715 libname="mod_optional_hook_import.la"
12716 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12717 modpath_static="$modpath_static $libname"
12718 cat >>$modpath_current/modules.mk<<EOF
12720 \$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
12723 apache_need_shared=yes
12724 libname="mod_optional_hook_import.la"
12725 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12726 modpath_shared="$modpath_shared $libname"
12727 cat >>$modpath_current/modules.mk<<EOF
12728 $libname: $shobjects
12729 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
12735 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_IMPORT_LDADD"
12742 { $as_echo "$as_me:$LINENO: checking whether to enable mod_optional_fn_import" >&5
12743 $as_echo_n "checking whether to enable mod_optional_fn_import... " >&6; }
12744 # Check whether --enable-optional-fn-import was given.
12745 if test "${enable_optional_fn_import+set}" = set; then
12746 enableval=$enable_optional_fn_import;
12748 enable_optional_fn_import=no
12751 _apmod_extra_msg=""
12752 if test "$module_selection" = "most" -a "$enable_optional_fn_import" = "most"; then
12753 _apmod_error_fatal="no"
12755 _apmod_error_fatal="yes"
12757 if test "$enable_optional_fn_import" = "static"; then
12758 enable_optional_fn_import=yes
12759 elif test "$enable_optional_fn_import" = "yes"; then
12760 enable_optional_fn_import=$module_default
12761 _apmod_extra_msg=" ($module_selection)"
12762 elif test "$enable_optional_fn_import" = "most"; then
12763 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12764 enable_optional_fn_import=$module_default
12765 _apmod_extra_msg=" ($module_selection)"
12766 elif test "$enable_optional_fn_import" != "yes"; then
12767 enable_optional_fn_import=no
12769 elif test "$enable_optional_fn_import" = "maybe-all"; then
12770 if test "$module_selection" = "all"; then
12771 enable_optional_fn_import=$module_default
12772 _apmod_extra_msg=" (all)"
12774 enable_optional_fn_import=no
12777 if test "$enable_optional_fn_import" != "no"; then
12780 { $as_echo "$as_me:$LINENO: result: $enable_optional_fn_import$_apmod_extra_msg" >&5
12781 $as_echo "$enable_optional_fn_import$_apmod_extra_msg" >&6; }
12782 if test "$enable_optional_fn_import" != "no"; then
12783 case "$enable_optional_fn_import" in
12785 enable_optional_fn_import=`echo $ac_n $enable_optional_fn_import$ac_c|sed 's/shared,*//'`
12788 DSO_MODULES="$DSO_MODULES optional_fn_import"
12791 MODLIST="$MODLIST optional_fn_import"
12792 if test "optional_fn_import" = "so"; then
12799 if test -z ""; then
12800 objects="mod_optional_fn_import.lo"
12805 if test -z "$module_standalone"; then
12806 if test -z "$shared"; then
12807 libname="mod_optional_fn_import.la"
12808 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12809 modpath_static="$modpath_static $libname"
12810 cat >>$modpath_current/modules.mk<<EOF
12812 \$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
12815 apache_need_shared=yes
12816 libname="mod_optional_fn_import.la"
12817 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12818 modpath_shared="$modpath_shared $libname"
12819 cat >>$modpath_current/modules.mk<<EOF
12820 $libname: $shobjects
12821 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
12827 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_IMPORT_LDADD"
12834 { $as_echo "$as_me:$LINENO: checking whether to enable mod_optional_fn_export" >&5
12835 $as_echo_n "checking whether to enable mod_optional_fn_export... " >&6; }
12836 # Check whether --enable-optional-fn-export was given.
12837 if test "${enable_optional_fn_export+set}" = set; then
12838 enableval=$enable_optional_fn_export;
12840 enable_optional_fn_export=no
12843 _apmod_extra_msg=""
12844 if test "$module_selection" = "most" -a "$enable_optional_fn_export" = "most"; then
12845 _apmod_error_fatal="no"
12847 _apmod_error_fatal="yes"
12849 if test "$enable_optional_fn_export" = "static"; then
12850 enable_optional_fn_export=yes
12851 elif test "$enable_optional_fn_export" = "yes"; then
12852 enable_optional_fn_export=$module_default
12853 _apmod_extra_msg=" ($module_selection)"
12854 elif test "$enable_optional_fn_export" = "most"; then
12855 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12856 enable_optional_fn_export=$module_default
12857 _apmod_extra_msg=" ($module_selection)"
12858 elif test "$enable_optional_fn_export" != "yes"; then
12859 enable_optional_fn_export=no
12861 elif test "$enable_optional_fn_export" = "maybe-all"; then
12862 if test "$module_selection" = "all"; then
12863 enable_optional_fn_export=$module_default
12864 _apmod_extra_msg=" (all)"
12866 enable_optional_fn_export=no
12869 if test "$enable_optional_fn_export" != "no"; then
12872 { $as_echo "$as_me:$LINENO: result: $enable_optional_fn_export$_apmod_extra_msg" >&5
12873 $as_echo "$enable_optional_fn_export$_apmod_extra_msg" >&6; }
12874 if test "$enable_optional_fn_export" != "no"; then
12875 case "$enable_optional_fn_export" in
12877 enable_optional_fn_export=`echo $ac_n $enable_optional_fn_export$ac_c|sed 's/shared,*//'`
12880 DSO_MODULES="$DSO_MODULES optional_fn_export"
12883 MODLIST="$MODLIST optional_fn_export"
12884 if test "optional_fn_export" = "so"; then
12891 if test -z ""; then
12892 objects="mod_optional_fn_export.lo"
12897 if test -z "$module_standalone"; then
12898 if test -z "$shared"; then
12899 libname="mod_optional_fn_export.la"
12900 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12901 modpath_static="$modpath_static $libname"
12902 cat >>$modpath_current/modules.mk<<EOF
12904 \$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
12907 apache_need_shared=yes
12908 libname="mod_optional_fn_export.la"
12909 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12910 modpath_shared="$modpath_shared $libname"
12911 cat >>$modpath_current/modules.mk<<EOF
12912 $libname: $shobjects
12913 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
12919 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_EXPORT_LDADD"
12926 { $as_echo "$as_me:$LINENO: checking whether to enable mod_bucketeer" >&5
12927 $as_echo_n "checking whether to enable mod_bucketeer... " >&6; }
12928 # Check whether --enable-bucketeer was given.
12929 if test "${enable_bucketeer+set}" = set; then
12930 enableval=$enable_bucketeer;
12932 enable_bucketeer=no
12935 _apmod_extra_msg=""
12936 if test "$module_selection" = "most" -a "$enable_bucketeer" = "most"; then
12937 _apmod_error_fatal="no"
12939 _apmod_error_fatal="yes"
12941 if test "$enable_bucketeer" = "static"; then
12942 enable_bucketeer=yes
12943 elif test "$enable_bucketeer" = "yes"; then
12944 enable_bucketeer=$module_default
12945 _apmod_extra_msg=" ($module_selection)"
12946 elif test "$enable_bucketeer" = "most"; then
12947 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
12948 enable_bucketeer=$module_default
12949 _apmod_extra_msg=" ($module_selection)"
12950 elif test "$enable_bucketeer" != "yes"; then
12951 enable_bucketeer=no
12953 elif test "$enable_bucketeer" = "maybe-all"; then
12954 if test "$module_selection" = "all"; then
12955 enable_bucketeer=$module_default
12956 _apmod_extra_msg=" (all)"
12958 enable_bucketeer=no
12961 if test "$enable_bucketeer" != "no"; then
12964 { $as_echo "$as_me:$LINENO: result: $enable_bucketeer$_apmod_extra_msg" >&5
12965 $as_echo "$enable_bucketeer$_apmod_extra_msg" >&6; }
12966 if test "$enable_bucketeer" != "no"; then
12967 case "$enable_bucketeer" in
12969 enable_bucketeer=`echo $ac_n $enable_bucketeer$ac_c|sed 's/shared,*//'`
12972 DSO_MODULES="$DSO_MODULES bucketeer"
12975 MODLIST="$MODLIST bucketeer"
12976 if test "bucketeer" = "so"; then
12983 if test -z ""; then
12984 objects="mod_bucketeer.lo"
12989 if test -z "$module_standalone"; then
12990 if test -z "$shared"; then
12991 libname="mod_bucketeer.la"
12992 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12993 modpath_static="$modpath_static $libname"
12994 cat >>$modpath_current/modules.mk<<EOF
12996 \$(MOD_LINK) $objects \$(MOD_BUCKETEER_LDADD)
12999 apache_need_shared=yes
13000 libname="mod_bucketeer.la"
13001 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13002 modpath_shared="$modpath_shared $libname"
13003 cat >>$modpath_current/modules.mk<<EOF
13004 $libname: $shobjects
13005 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_BUCKETEER_LDADD)
13011 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BUCKETEER_LDADD"
13019 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
13020 echo "static = $modpath_static" >> $modpath_current/modules.mk
13021 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
13022 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
13023 MODULE_DIRS="$MODULE_DIRS $current_dir"
13025 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
13028 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
13032 if test "$OS" = "beos" ; then
13034 if test "x$CFLAGS" = "x"; then
13035 echo " setting CFLAGS to \"-DBEOS\""
13038 apr_addto_bugger="-DBEOS"
13039 for i in $apr_addto_bugger; do
13040 apr_addto_duplicate="0"
13041 for j in $CFLAGS; do
13042 if test "x$i" = "x$j"; then
13043 apr_addto_duplicate="1"
13047 if test $apr_addto_duplicate = "0"; then
13048 echo " adding \"$i\" to CFLAGS"
13049 CFLAGS="$CFLAGS $i"
13056 { $as_echo "$as_me:$LINENO: checking for target platform" >&5
13057 $as_echo_n "checking for target platform... " >&6; }
13070 OS_DIR=bs2000 # only the OS_DIR is platform specific.
13081 { $as_echo "$as_me:$LINENO: result: $OS" >&5
13082 $as_echo "$OS" >&6; }
13084 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/$OS_DIR/Makefile"
13087 if test "$OS" = "os2" ; then
13089 if test "x$CFLAGS" = "x"; then
13090 echo " setting CFLAGS to \"-DOS2 -O2\""
13093 apr_addto_bugger="-DOS2 -O2"
13094 for i in $apr_addto_bugger; do
13095 apr_addto_duplicate="0"
13096 for j in $CFLAGS; do
13097 if test "x$i" = "x$j"; then
13098 apr_addto_duplicate="1"
13102 if test $apr_addto_duplicate = "0"; then
13103 echo " adding \"$i\" to CFLAGS"
13104 CFLAGS="$CFLAGS $i"
13111 if test "$OS" = "unix" ; then
13113 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
13114 $as_echo_n "checking for rlim_t... " >&6; }
13115 if test "${ac_cv_type_rlim_t+set}" = set; then
13116 $as_echo_n "(cached) " >&6
13119 cat >conftest.$ac_ext <<_ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13126 #include <sys/types.h>
13127 #include <sys/time.h>
13128 #include <sys/resource.h>
13138 rm -f conftest.$ac_objext
13139 if { (ac_try="$ac_compile"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145 $as_echo "$ac_try_echo") >&5
13146 (eval "$ac_compile") 2>conftest.er1
13148 grep -v '^ *+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && {
13153 test -z "$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest.$ac_objext; then
13157 ac_cv_type_rlim_t=yes
13160 $as_echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 ac_cv_type_rlim_t=no
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
13171 $as_echo "$ac_cv_type_rlim_t" >&6; }
13172 if test "$ac_cv_type_rlim_t" = "no" ; then
13174 cat >>confdefs.h <<\_ACEOF
13185 for ac_header in sys/time.h sys/resource.h sys/sem.h sys/ipc.h
13187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13190 $as_echo_n "checking for $ac_header... " >&6; }
13191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13192 $as_echo_n "(cached) " >&6
13194 ac_res=`eval 'as_val=${'$as_ac_Header'}
13195 $as_echo "$as_val"'`
13196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13197 $as_echo "$ac_res" >&6; }
13199 # Is the header compilable?
13200 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13201 $as_echo_n "checking $ac_header usability... " >&6; }
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 $ac_includes_default
13209 #include <$ac_header>
13211 rm -f conftest.$ac_objext
13212 if { (ac_try="$ac_compile"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13218 $as_echo "$ac_try_echo") >&5
13219 (eval "$ac_compile") 2>conftest.er1
13221 grep -v '^ *+' conftest.er1 >conftest.err
13223 cat conftest.err >&5
13224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_c_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest.$ac_objext; then
13229 ac_header_compiler=yes
13231 $as_echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 ac_header_compiler=no
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13239 $as_echo "$ac_header_compiler" >&6; }
13241 # Is the header present?
13242 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13243 $as_echo_n "checking $ac_header presence... " >&6; }
13244 cat >conftest.$ac_ext <<_ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 #include <$ac_header>
13252 if { (ac_try="$ac_cpp conftest.$ac_ext"
13253 case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13258 $as_echo "$ac_try_echo") >&5
13259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13261 grep -v '^ *+' conftest.er1 >conftest.err
13263 cat conftest.err >&5
13264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } >/dev/null && {
13266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13267 test ! -s conftest.err
13269 ac_header_preproc=yes
13271 $as_echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13274 ac_header_preproc=no
13277 rm -f conftest.err conftest.$ac_ext
13278 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13279 $as_echo "$ac_header_preproc" >&6; }
13281 # So? What about this header?
13282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13285 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13288 ac_header_preproc=yes
13291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13292 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13294 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13296 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13298 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13302 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13306 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13307 $as_echo_n "checking for $ac_header... " >&6; }
13308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13309 $as_echo_n "(cached) " >&6
13311 eval "$as_ac_Header=\$ac_header_preproc"
13313 ac_res=`eval 'as_val=${'$as_ac_Header'}
13314 $as_echo "$as_val"'`
13315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13316 $as_echo "$ac_res" >&6; }
13319 as_val=`eval 'as_val=${'$as_ac_Header'}
13320 $as_echo "$as_val"'`
13321 if test "x$as_val" = x""yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13333 for ac_func in setsid killpg
13335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13337 $as_echo_n "checking for $ac_func... " >&6; }
13338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13339 $as_echo_n "(cached) " >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13349 #define $ac_func innocuous_$ac_func
13351 /* System header to define __stub macros and hopefully few prototypes,
13352 which can conflict with char $ac_func (); below.
13353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13354 <limits.h> exists even on freestanding compilers. */
13357 # include <limits.h>
13359 # include <assert.h>
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13371 /* The GNU C library defines this for functions which it implements
13372 to always fail with ENOSYS. Some functions are actually named
13373 something starting with __ and the normal name is an alias. */
13374 #if defined __stub_$ac_func || defined __stub___$ac_func
13381 return $ac_func ();
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (ac_try="$ac_link"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393 $as_echo "$ac_try_echo") >&5
13394 (eval "$ac_link") 2>conftest.er1
13396 grep -v '^ *+' conftest.er1 >conftest.err
13398 cat conftest.err >&5
13399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && {
13401 test -z "$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 } && test -s conftest$ac_exeext && {
13404 test "$cross_compiling" = yes ||
13405 $as_test_x conftest$ac_exeext
13407 eval "$as_ac_var=yes"
13409 $as_echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 eval "$as_ac_var=no"
13415 rm -rf conftest.dSYM
13416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13417 conftest$ac_exeext conftest.$ac_ext
13419 ac_res=`eval 'as_val=${'$as_ac_var'}
13420 $as_echo "$as_val"'`
13421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13422 $as_echo "$ac_res" >&6; }
13423 as_val=`eval 'as_val=${'$as_ac_var'}
13424 $as_echo "$as_val"'`
13425 if test "x$as_val" = x""yes; then
13426 cat >>confdefs.h <<_ACEOF
13427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13439 for ac_header in bstring.h unistd.h
13441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13444 $as_echo_n "checking for $ac_header... " >&6; }
13445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13446 $as_echo_n "(cached) " >&6
13448 ac_res=`eval 'as_val=${'$as_ac_Header'}
13449 $as_echo "$as_val"'`
13450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13451 $as_echo "$ac_res" >&6; }
13453 # Is the header compilable?
13454 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13455 $as_echo_n "checking $ac_header usability... " >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 $ac_includes_default
13463 #include <$ac_header>
13465 rm -f conftest.$ac_objext
13466 if { (ac_try="$ac_compile"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13472 $as_echo "$ac_try_echo") >&5
13473 (eval "$ac_compile") 2>conftest.er1
13475 grep -v '^ *+' conftest.er1 >conftest.err
13477 cat conftest.err >&5
13478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && {
13480 test -z "$ac_c_werror_flag" ||
13481 test ! -s conftest.err
13482 } && test -s conftest.$ac_objext; then
13483 ac_header_compiler=yes
13485 $as_echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ac_header_compiler=no
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493 $as_echo "$ac_header_compiler" >&6; }
13495 # Is the header present?
13496 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13497 $as_echo_n "checking $ac_header presence... " >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 #include <$ac_header>
13506 if { (ac_try="$ac_cpp conftest.$ac_ext"
13507 case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13512 $as_echo "$ac_try_echo") >&5
13513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13515 grep -v '^ *+' conftest.er1 >conftest.err
13517 cat conftest.err >&5
13518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } >/dev/null && {
13520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13523 ac_header_preproc=yes
13525 $as_echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 ac_header_preproc=no
13531 rm -f conftest.err conftest.$ac_ext
13532 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13533 $as_echo "$ac_header_preproc" >&6; }
13535 # So? What about this header?
13536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13539 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13542 ac_header_preproc=yes
13545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13546 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13548 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13550 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13552 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13554 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13556 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13560 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13561 $as_echo_n "checking for $ac_header... " >&6; }
13562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13563 $as_echo_n "(cached) " >&6
13565 eval "$as_ac_Header=\$ac_header_preproc"
13567 ac_res=`eval 'as_val=${'$as_ac_Header'}
13568 $as_echo "$as_val"'`
13569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13570 $as_echo "$ac_res" >&6; }
13573 as_val=`eval 'as_val=${'$as_ac_Header'}
13574 $as_echo "$as_val"'`
13575 if test "x$as_val" = x""yes; then
13576 cat >>confdefs.h <<_ACEOF
13577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13588 for ac_func in syslog
13590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13591 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13592 $as_echo_n "checking for $ac_func... " >&6; }
13593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13594 $as_echo_n "(cached) " >&6
13596 cat >conftest.$ac_ext <<_ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13604 #define $ac_func innocuous_$ac_func
13606 /* System header to define __stub macros and hopefully few prototypes,
13607 which can conflict with char $ac_func (); below.
13608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13609 <limits.h> exists even on freestanding compilers. */
13612 # include <limits.h>
13614 # include <assert.h>
13619 /* Override any GCC internal prototype to avoid an error.
13620 Use char because int might match the return type of a GCC
13621 builtin and then its argument prototype would still apply. */
13626 /* The GNU C library defines this for functions which it implements
13627 to always fail with ENOSYS. Some functions are actually named
13628 something starting with __ and the normal name is an alias. */
13629 #if defined __stub_$ac_func || defined __stub___$ac_func
13636 return $ac_func ();
13641 rm -f conftest.$ac_objext conftest$ac_exeext
13642 if { (ac_try="$ac_link"
13643 case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13648 $as_echo "$ac_try_echo") >&5
13649 (eval "$ac_link") 2>conftest.er1
13651 grep -v '^ *+' conftest.er1 >conftest.err
13653 cat conftest.err >&5
13654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } && {
13656 test -z "$ac_c_werror_flag" ||
13657 test ! -s conftest.err
13658 } && test -s conftest$ac_exeext && {
13659 test "$cross_compiling" = yes ||
13660 $as_test_x conftest$ac_exeext
13662 eval "$as_ac_var=yes"
13664 $as_echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 eval "$as_ac_var=no"
13670 rm -rf conftest.dSYM
13671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13672 conftest$ac_exeext conftest.$ac_ext
13674 ac_res=`eval 'as_val=${'$as_ac_var'}
13675 $as_echo "$as_val"'`
13676 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13677 $as_echo "$ac_res" >&6; }
13678 as_val=`eval 'as_val=${'$as_ac_var'}
13679 $as_echo "$as_val"'`
13680 if test "x$as_val" = x""yes; then
13681 cat >>confdefs.h <<_ACEOF
13682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13690 for ac_header in sys/times.h
13692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13695 $as_echo_n "checking for $ac_header... " >&6; }
13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697 $as_echo_n "(cached) " >&6
13699 ac_res=`eval 'as_val=${'$as_ac_Header'}
13700 $as_echo "$as_val"'`
13701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13702 $as_echo "$ac_res" >&6; }
13704 # Is the header compilable?
13705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13706 $as_echo_n "checking $ac_header usability... " >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 $ac_includes_default
13714 #include <$ac_header>
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13723 $as_echo "$ac_try_echo") >&5
13724 (eval "$ac_compile") 2>conftest.er1
13726 grep -v '^ *+' conftest.er1 >conftest.err
13728 cat conftest.err >&5
13729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } && {
13731 test -z "$ac_c_werror_flag" ||
13732 test ! -s conftest.err
13733 } && test -s conftest.$ac_objext; then
13734 ac_header_compiler=yes
13736 $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13739 ac_header_compiler=no
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13744 $as_echo "$ac_header_compiler" >&6; }
13746 # Is the header present?
13747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13748 $as_echo_n "checking $ac_header presence... " >&6; }
13749 cat >conftest.$ac_ext <<_ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13755 #include <$ac_header>
13757 if { (ac_try="$ac_cpp conftest.$ac_ext"
13758 case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13763 $as_echo "$ac_try_echo") >&5
13764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev/null && {
13771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13774 ac_header_preproc=yes
13776 $as_echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_header_preproc=no
13782 rm -f conftest.err conftest.$ac_ext
13783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 $as_echo "$ac_header_preproc" >&6; }
13786 # So? What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793 ac_header_preproc=yes
13796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13799 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13803 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13812 $as_echo_n "checking for $ac_header... " >&6; }
13813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13814 $as_echo_n "(cached) " >&6
13816 eval "$as_ac_Header=\$ac_header_preproc"
13818 ac_res=`eval 'as_val=${'$as_ac_Header'}
13819 $as_echo "$as_val"'`
13820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13821 $as_echo "$ac_res" >&6; }
13824 as_val=`eval 'as_val=${'$as_ac_Header'}
13825 $as_echo "$as_val"'`
13826 if test "x$as_val" = x""yes; then
13827 cat >>confdefs.h <<_ACEOF
13828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13836 for ac_func in times
13838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13840 $as_echo_n "checking for $ac_func... " >&6; }
13841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13842 $as_echo_n "(cached) " >&6
13844 cat >conftest.$ac_ext <<_ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13852 #define $ac_func innocuous_$ac_func
13854 /* System header to define __stub macros and hopefully few prototypes,
13855 which can conflict with char $ac_func (); below.
13856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13857 <limits.h> exists even on freestanding compilers. */
13860 # include <limits.h>
13862 # include <assert.h>
13867 /* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13874 /* The GNU C library defines this for functions which it implements
13875 to always fail with ENOSYS. Some functions are actually named
13876 something starting with __ and the normal name is an alias. */
13877 #if defined __stub_$ac_func || defined __stub___$ac_func
13884 return $ac_func ();
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (ac_try="$ac_link"
13891 case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13896 $as_echo "$ac_try_echo") >&5
13897 (eval "$ac_link") 2>conftest.er1
13899 grep -v '^ *+' conftest.er1 >conftest.err
13901 cat conftest.err >&5
13902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && {
13904 test -z "$ac_c_werror_flag" ||
13905 test ! -s conftest.err
13906 } && test -s conftest$ac_exeext && {
13907 test "$cross_compiling" = yes ||
13908 $as_test_x conftest$ac_exeext
13910 eval "$as_ac_var=yes"
13912 $as_echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 eval "$as_ac_var=no"
13918 rm -rf conftest.dSYM
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920 conftest$ac_exeext conftest.$ac_ext
13922 ac_res=`eval 'as_val=${'$as_ac_var'}
13923 $as_echo "$as_val"'`
13924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13925 $as_echo "$ac_res" >&6; }
13926 as_val=`eval 'as_val=${'$as_ac_var'}
13927 $as_echo "$as_val"'`
13928 if test "x$as_val" = x""yes; then
13929 cat >>confdefs.h <<_ACEOF
13930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13937 { $as_echo "$as_me:$LINENO: checking which MPM to use" >&5
13938 $as_echo_n "checking which MPM to use... " >&6; }
13940 # Check whether --with-mpm was given.
13941 if test "${with_mpm+set}" = set; then
13943 APACHE_MPM=$withval
13947 if test "x$APACHE_MPM" = "x"; then
13953 { $as_echo "$as_me:$LINENO: result: $APACHE_MPM" >&5
13954 $as_echo "$APACHE_MPM" >&6; }
13956 apache_cv_mpm=$APACHE_MPM
13958 if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "perchild" -o "$apache_cv_mpm" = "leader" -o "$apache_cv_mpm" = "threadpool" ; then
13960 apr_old_cppflags=$CPPFLAGS
13961 CPPFLAGS="$CPPFLAGS $INCLUDES"
13962 cat >conftest.$ac_ext <<_ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13970 #if APR_HAS_THREADS
13975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13976 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
13977 ac_cv_define_APR_HAS_THREADS=yes
13979 ac_cv_define_APR_HAS_THREADS=no
13983 CPPFLAGS=$apr_old_cppflags
13986 if test "x$ac_cv_define_APR_HAS_THREADS" = "xno"; then
13987 { $as_echo "$as_me:$LINENO: result: The currently selected MPM requires threads which your system seems to lack" >&5
13988 $as_echo "The currently selected MPM requires threads which your system seems to lack" >&6; }
13989 { $as_echo "$as_me:$LINENO: checking checking for replacement" >&5
13990 $as_echo_n "checking checking for replacement... " >&6; }
13991 { $as_echo "$as_me:$LINENO: result: prefork selected" >&5
13992 $as_echo "prefork selected" >&6; }
13993 apache_cv_mpm=prefork
13998 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/Makefile"
14001 MPM_NAME=$apache_cv_mpm
14002 if test "$MPM_NAME" = "leader" -o "$MPM_NAME" = "threadpool" -o "$MPM_NAME" = "perchild"; then
14003 { $as_echo "$as_me:$LINENO: WARNING: You have selected an EXPERIMENTAL MPM. Be warned!" >&5
14004 $as_echo "$as_me: WARNING: You have selected an EXPERIMENTAL MPM. Be warned!" >&2;}
14005 MPM_SUBDIR_NAME=experimental/$MPM_NAME
14007 MPM_SUBDIR_NAME=$MPM_NAME
14009 MPM_DIR=server/mpm/$MPM_SUBDIR_NAME
14010 MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
14012 if test ! -f "$abs_srcdir/$MPM_DIR/mpm.h"; then
14013 { { $as_echo "$as_me:$LINENO: error: the selected mpm -- $apache_cv_mpm -- is not supported" >&5
14014 $as_echo "$as_me: error: the selected mpm -- $apache_cv_mpm -- is not supported" >&2;}
14015 { (exit 1); exit 1; }; }
14019 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_NAME"
14023 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_SUBDIR_NAME"
14026 MODLIST="$MODLIST mpm_${MPM_NAME}"
14029 if test "$MPM_NAME" = "prefork" ; then
14031 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
14035 htpasswd_LTFLAGS=""
14036 htdigest_LTFLAGS=""
14037 rotatelogs_LTFLAGS=""
14038 logresolve_LTFLAGS=""
14041 checkgid_LTFLAGS=""
14043 # Check whether --enable-static-support was given.
14044 if test "${enable_static_support+set}" = set; then
14045 enableval=$enable_static_support;
14046 if test "$enableval" = "yes" ; then
14048 if test "x$htpasswd_LTFLAGS" = "x"; then
14049 echo " setting htpasswd_LTFLAGS to \"-static\""
14050 htpasswd_LTFLAGS="-static"
14052 apr_addto_bugger="-static"
14053 for i in $apr_addto_bugger; do
14054 apr_addto_duplicate="0"
14055 for j in $htpasswd_LTFLAGS; do
14056 if test "x$i" = "x$j"; then
14057 apr_addto_duplicate="1"
14061 if test $apr_addto_duplicate = "0"; then
14062 echo " adding \"$i\" to htpasswd_LTFLAGS"
14063 htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
14069 if test "x$htdigest_LTFLAGS" = "x"; then
14070 echo " setting htdigest_LTFLAGS to \"-static\""
14071 htdigest_LTFLAGS="-static"
14073 apr_addto_bugger="-static"
14074 for i in $apr_addto_bugger; do
14075 apr_addto_duplicate="0"
14076 for j in $htdigest_LTFLAGS; do
14077 if test "x$i" = "x$j"; then
14078 apr_addto_duplicate="1"
14082 if test $apr_addto_duplicate = "0"; then
14083 echo " adding \"$i\" to htdigest_LTFLAGS"
14084 htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
14090 if test "x$rotatelogs_LTFLAGS" = "x"; then
14091 echo " setting rotatelogs_LTFLAGS to \"-static\""
14092 rotatelogs_LTFLAGS="-static"
14094 apr_addto_bugger="-static"
14095 for i in $apr_addto_bugger; do
14096 apr_addto_duplicate="0"
14097 for j in $rotatelogs_LTFLAGS; do
14098 if test "x$i" = "x$j"; then
14099 apr_addto_duplicate="1"
14103 if test $apr_addto_duplicate = "0"; then
14104 echo " adding \"$i\" to rotatelogs_LTFLAGS"
14105 rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
14111 if test "x$logresolve_LTFLAGS" = "x"; then
14112 echo " setting logresolve_LTFLAGS to \"-static\""
14113 logresolve_LTFLAGS="-static"
14115 apr_addto_bugger="-static"
14116 for i in $apr_addto_bugger; do
14117 apr_addto_duplicate="0"
14118 for j in $logresolve_LTFLAGS; do
14119 if test "x$i" = "x$j"; then
14120 apr_addto_duplicate="1"
14124 if test $apr_addto_duplicate = "0"; then
14125 echo " adding \"$i\" to logresolve_LTFLAGS"
14126 logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
14132 if test "x$htdbm_LTFLAGS" = "x"; then
14133 echo " setting htdbm_LTFLAGS to \"-static\""
14134 htdbm_LTFLAGS="-static"
14136 apr_addto_bugger="-static"
14137 for i in $apr_addto_bugger; do
14138 apr_addto_duplicate="0"
14139 for j in $htdbm_LTFLAGS; do
14140 if test "x$i" = "x$j"; then
14141 apr_addto_duplicate="1"
14145 if test $apr_addto_duplicate = "0"; then
14146 echo " adding \"$i\" to htdbm_LTFLAGS"
14147 htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
14153 if test "x$ab_LTFLAGS" = "x"; then
14154 echo " setting ab_LTFLAGS to \"-static\""
14155 ab_LTFLAGS="-static"
14157 apr_addto_bugger="-static"
14158 for i in $apr_addto_bugger; do
14159 apr_addto_duplicate="0"
14160 for j in $ab_LTFLAGS; do
14161 if test "x$i" = "x$j"; then
14162 apr_addto_duplicate="1"
14166 if test $apr_addto_duplicate = "0"; then
14167 echo " adding \"$i\" to ab_LTFLAGS"
14168 ab_LTFLAGS="$ab_LTFLAGS $i"
14174 if test "x$checkgid_LTFLAGS" = "x"; then
14175 echo " setting checkgid_LTFLAGS to \"-static\""
14176 checkgid_LTFLAGS="-static"
14178 apr_addto_bugger="-static"
14179 for i in $apr_addto_bugger; do
14180 apr_addto_duplicate="0"
14181 for j in $checkgid_LTFLAGS; do
14182 if test "x$i" = "x$j"; then
14183 apr_addto_duplicate="1"
14187 if test $apr_addto_duplicate = "0"; then
14188 echo " adding \"$i\" to checkgid_LTFLAGS"
14189 checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
14199 # Check whether --enable-static-htpasswd was given.
14200 if test "${enable_static_htpasswd+set}" = set; then
14201 enableval=$enable_static_htpasswd;
14202 if test "$enableval" = "yes" ; then
14204 if test "x$htpasswd_LTFLAGS" = "x"; then
14205 echo " setting htpasswd_LTFLAGS to \"-static\""
14206 htpasswd_LTFLAGS="-static"
14208 apr_addto_bugger="-static"
14209 for i in $apr_addto_bugger; do
14210 apr_addto_duplicate="0"
14211 for j in $htpasswd_LTFLAGS; do
14212 if test "x$i" = "x$j"; then
14213 apr_addto_duplicate="1"
14217 if test $apr_addto_duplicate = "0"; then
14218 echo " adding \"$i\" to htpasswd_LTFLAGS"
14219 htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
14226 if test "x$htpasswd_LTFLAGS" = "x-static"; then
14227 echo " nulling htpasswd_LTFLAGS"
14228 htpasswd_LTFLAGS=""
14232 for i in $htpasswd_LTFLAGS; do
14233 if test "x$i" != "x-static"; then
14234 apr_new_bugger="$apr_new_bugger $i"
14239 if test $apr_removed = "1"; then
14240 echo " removed \"-static\" from htpasswd_LTFLAGS"
14241 htpasswd_LTFLAGS=$apr_new_bugger
14250 APACHE_VAR_SUBST="$APACHE_VAR_SUBST htpasswd_LTFLAGS"
14254 # Check whether --enable-static-htdigest was given.
14255 if test "${enable_static_htdigest+set}" = set; then
14256 enableval=$enable_static_htdigest;
14257 if test "$enableval" = "yes" ; then
14259 if test "x$htdigest_LTFLAGS" = "x"; then
14260 echo " setting htdigest_LTFLAGS to \"-static\""
14261 htdigest_LTFLAGS="-static"
14263 apr_addto_bugger="-static"
14264 for i in $apr_addto_bugger; do
14265 apr_addto_duplicate="0"
14266 for j in $htdigest_LTFLAGS; do
14267 if test "x$i" = "x$j"; then
14268 apr_addto_duplicate="1"
14272 if test $apr_addto_duplicate = "0"; then
14273 echo " adding \"$i\" to htdigest_LTFLAGS"
14274 htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
14281 if test "x$htdigest_LTFLAGS" = "x-static"; then
14282 echo " nulling htdigest_LTFLAGS"
14283 htdigest_LTFLAGS=""
14287 for i in $htdigest_LTFLAGS; do
14288 if test "x$i" != "x-static"; then
14289 apr_new_bugger="$apr_new_bugger $i"
14294 if test $apr_removed = "1"; then
14295 echo " removed \"-static\" from htdigest_LTFLAGS"
14296 htdigest_LTFLAGS=$apr_new_bugger
14305 APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdigest_LTFLAGS"
14309 # Check whether --enable-static-rotatelogs was given.
14310 if test "${enable_static_rotatelogs+set}" = set; then
14311 enableval=$enable_static_rotatelogs;
14312 if test "$enableval" = "yes" ; then
14314 if test "x$rotatelogs_LTFLAGS" = "x"; then
14315 echo " setting rotatelogs_LTFLAGS to \"-static\""
14316 rotatelogs_LTFLAGS="-static"
14318 apr_addto_bugger="-static"
14319 for i in $apr_addto_bugger; do
14320 apr_addto_duplicate="0"
14321 for j in $rotatelogs_LTFLAGS; do
14322 if test "x$i" = "x$j"; then
14323 apr_addto_duplicate="1"
14327 if test $apr_addto_duplicate = "0"; then
14328 echo " adding \"$i\" to rotatelogs_LTFLAGS"
14329 rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
14336 if test "x$rotatelogs_LTFLAGS" = "x-static"; then
14337 echo " nulling rotatelogs_LTFLAGS"
14338 rotatelogs_LTFLAGS=""
14342 for i in $rotatelogs_LTFLAGS; do
14343 if test "x$i" != "x-static"; then
14344 apr_new_bugger="$apr_new_bugger $i"
14349 if test $apr_removed = "1"; then
14350 echo " removed \"-static\" from rotatelogs_LTFLAGS"
14351 rotatelogs_LTFLAGS=$apr_new_bugger
14360 APACHE_VAR_SUBST="$APACHE_VAR_SUBST rotatelogs_LTFLAGS"
14364 # Check whether --enable-static-logresolve was given.
14365 if test "${enable_static_logresolve+set}" = set; then
14366 enableval=$enable_static_logresolve;
14367 if test "$enableval" = "yes" ; then
14369 if test "x$logresolve_LTFLAGS" = "x"; then
14370 echo " setting logresolve_LTFLAGS to \"-static\""
14371 logresolve_LTFLAGS="-static"
14373 apr_addto_bugger="-static"
14374 for i in $apr_addto_bugger; do
14375 apr_addto_duplicate="0"
14376 for j in $logresolve_LTFLAGS; do
14377 if test "x$i" = "x$j"; then
14378 apr_addto_duplicate="1"
14382 if test $apr_addto_duplicate = "0"; then
14383 echo " adding \"$i\" to logresolve_LTFLAGS"
14384 logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
14391 if test "x$logresolve_LTFLAGS" = "x-static"; then
14392 echo " nulling logresolve_LTFLAGS"
14393 logresolve_LTFLAGS=""
14397 for i in $logresolve_LTFLAGS; do
14398 if test "x$i" != "x-static"; then
14399 apr_new_bugger="$apr_new_bugger $i"
14404 if test $apr_removed = "1"; then
14405 echo " removed \"-static\" from logresolve_LTFLAGS"
14406 logresolve_LTFLAGS=$apr_new_bugger
14415 APACHE_VAR_SUBST="$APACHE_VAR_SUBST logresolve_LTFLAGS"
14419 # Check whether --enable-static-htdbm was given.
14420 if test "${enable_static_htdbm+set}" = set; then
14421 enableval=$enable_static_htdbm;
14422 if test "$enableval" = "yes" ; then
14424 if test "x$htdbm_LTFLAGS" = "x"; then
14425 echo " setting htdbm_LTFLAGS to \"-static\""
14426 htdbm_LTFLAGS="-static"
14428 apr_addto_bugger="-static"
14429 for i in $apr_addto_bugger; do
14430 apr_addto_duplicate="0"
14431 for j in $htdbm_LTFLAGS; do
14432 if test "x$i" = "x$j"; then
14433 apr_addto_duplicate="1"
14437 if test $apr_addto_duplicate = "0"; then
14438 echo " adding \"$i\" to htdbm_LTFLAGS"
14439 htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
14446 if test "x$htdbm_LTFLAGS" = "x-static"; then
14447 echo " nulling htdbm_LTFLAGS"
14452 for i in $htdbm_LTFLAGS; do
14453 if test "x$i" != "x-static"; then
14454 apr_new_bugger="$apr_new_bugger $i"
14459 if test $apr_removed = "1"; then
14460 echo " removed \"-static\" from htdbm_LTFLAGS"
14461 htdbm_LTFLAGS=$apr_new_bugger
14470 APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdbm_LTFLAGS"
14474 # Check whether --enable-static-ab was given.
14475 if test "${enable_static_ab+set}" = set; then
14476 enableval=$enable_static_ab;
14477 if test "$enableval" = "yes" ; then
14479 if test "x$ab_LTFLAGS" = "x"; then
14480 echo " setting ab_LTFLAGS to \"-static\""
14481 ab_LTFLAGS="-static"
14483 apr_addto_bugger="-static"
14484 for i in $apr_addto_bugger; do
14485 apr_addto_duplicate="0"
14486 for j in $ab_LTFLAGS; do
14487 if test "x$i" = "x$j"; then
14488 apr_addto_duplicate="1"
14492 if test $apr_addto_duplicate = "0"; then
14493 echo " adding \"$i\" to ab_LTFLAGS"
14494 ab_LTFLAGS="$ab_LTFLAGS $i"
14501 if test "x$ab_LTFLAGS" = "x-static"; then
14502 echo " nulling ab_LTFLAGS"
14507 for i in $ab_LTFLAGS; do
14508 if test "x$i" != "x-static"; then
14509 apr_new_bugger="$apr_new_bugger $i"
14514 if test $apr_removed = "1"; then
14515 echo " removed \"-static\" from ab_LTFLAGS"
14516 ab_LTFLAGS=$apr_new_bugger
14525 APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LTFLAGS"
14529 # Check whether --enable-static-checkgid was given.
14530 if test "${enable_static_checkgid+set}" = set; then
14531 enableval=$enable_static_checkgid;
14532 if test "$enableval" = "yes" ; then
14534 if test "x$checkgid_LTFLAGS" = "x"; then
14535 echo " setting checkgid_LTFLAGS to \"-static\""
14536 checkgid_LTFLAGS="-static"
14538 apr_addto_bugger="-static"
14539 for i in $apr_addto_bugger; do
14540 apr_addto_duplicate="0"
14541 for j in $checkgid_LTFLAGS; do
14542 if test "x$i" = "x$j"; then
14543 apr_addto_duplicate="1"
14547 if test $apr_addto_duplicate = "0"; then
14548 echo " adding \"$i\" to checkgid_LTFLAGS"
14549 checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
14556 if test "x$checkgid_LTFLAGS" = "x-static"; then
14557 echo " nulling checkgid_LTFLAGS"
14558 checkgid_LTFLAGS=""
14562 for i in $checkgid_LTFLAGS; do
14563 if test "x$i" != "x-static"; then
14564 apr_new_bugger="$apr_new_bugger $i"
14569 if test $apr_removed = "1"; then
14570 echo " removed \"-static\" from checkgid_LTFLAGS"
14571 checkgid_LTFLAGS=$apr_new_bugger
14580 APACHE_VAR_SUBST="$APACHE_VAR_SUBST checkgid_LTFLAGS"
14586 # this works in any locale, unlike the default command below, which
14587 # fails in a non-English locale if the hard limit is unlimited
14588 # since the display of the limit will translate "unlimited", but
14589 # ulimit only accepts English "unlimited" on input
14590 APACHECTL_ULIMIT="ulimit -S -n unlimited"
14593 # Tru64: -H is for setting, not retrieving
14594 APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
14597 if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then
14598 APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
14600 APACHECTL_ULIMIT=""
14605 APACHE_VAR_SUBST="$APACHE_VAR_SUBST APACHECTL_ULIMIT"
14612 modpath_current=modules/http
14615 test -d http || $srcdir/build/mkdir.sh $modpath_current
14616 > $modpath_current/modules.mk
14619 http_objects="http_core.lo http_protocol.lo http_request.lo"
14621 if test "$enable_http" = "yes"; then
14622 enable_http="static"
14623 elif test "$enable_http" = "shared"; then
14624 { { $as_echo "$as_me:$LINENO: error: mod_http can not be built as a shared DSO" >&5
14625 $as_echo "$as_me: error: mod_http can not be built as a shared DSO" >&2;}
14626 { (exit 1); exit 1; }; }
14630 { $as_echo "$as_me:$LINENO: checking whether to enable mod_http" >&5
14631 $as_echo_n "checking whether to enable mod_http... " >&6; }
14632 # Check whether --enable-http was given.
14633 if test "${enable_http+set}" = set; then
14634 enableval=$enable_http;
14639 _apmod_extra_msg=""
14640 if test "$module_selection" = "most" -a "$enable_http" = "most"; then
14641 _apmod_error_fatal="no"
14643 _apmod_error_fatal="yes"
14645 if test "$enable_http" = "static"; then
14647 elif test "$enable_http" = "yes"; then
14648 enable_http=$module_default
14649 _apmod_extra_msg=" ($module_selection)"
14650 elif test "$enable_http" = "most"; then
14651 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
14652 enable_http=$module_default
14653 _apmod_extra_msg=" ($module_selection)"
14654 elif test "$enable_http" != "yes"; then
14657 elif test "$enable_http" = "maybe-all"; then
14658 if test "$module_selection" = "all"; then
14659 enable_http=$module_default
14660 _apmod_extra_msg=" (all)"
14665 if test "$enable_http" != "no"; then
14668 { $as_echo "$as_me:$LINENO: result: $enable_http$_apmod_extra_msg" >&5
14669 $as_echo "$enable_http$_apmod_extra_msg" >&6; }
14670 if test "$enable_http" != "no"; then
14671 case "$enable_http" in
14673 enable_http=`echo $ac_n $enable_http$ac_c|sed 's/shared,*//'`
14676 DSO_MODULES="$DSO_MODULES http"
14679 MODLIST="$MODLIST http"
14680 if test "http" = "so"; then
14687 if test -z "$http_objects"; then
14688 objects="mod_http.lo"
14690 objects="$http_objects"
14693 if test -z "$module_standalone"; then
14694 if test -z "$shared"; then
14695 libname="mod_http.la"
14696 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14697 modpath_static="$modpath_static $libname"
14698 cat >>$modpath_current/modules.mk<<EOF
14700 \$(MOD_LINK) $objects \$(MOD_HTTP_LDADD)
14703 apache_need_shared=yes
14704 libname="mod_http.la"
14705 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14706 modpath_shared="$modpath_shared $libname"
14707 cat >>$modpath_current/modules.mk<<EOF
14708 $libname: $shobjects
14709 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_HTTP_LDADD)
14715 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HTTP_LDADD"
14722 { $as_echo "$as_me:$LINENO: checking whether to enable mod_mime" >&5
14723 $as_echo_n "checking whether to enable mod_mime... " >&6; }
14724 # Check whether --enable-mime was given.
14725 if test "${enable_mime+set}" = set; then
14726 enableval=$enable_mime;
14731 _apmod_extra_msg=""
14732 if test "$module_selection" = "most" -a "$enable_mime" = "most"; then
14733 _apmod_error_fatal="no"
14735 _apmod_error_fatal="yes"
14737 if test "$enable_mime" = "static"; then
14739 elif test "$enable_mime" = "yes"; then
14740 enable_mime=$module_default
14741 _apmod_extra_msg=" ($module_selection)"
14742 elif test "$enable_mime" = "most"; then
14743 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
14744 enable_mime=$module_default
14745 _apmod_extra_msg=" ($module_selection)"
14746 elif test "$enable_mime" != "yes"; then
14749 elif test "$enable_mime" = "maybe-all"; then
14750 if test "$module_selection" = "all"; then
14751 enable_mime=$module_default
14752 _apmod_extra_msg=" (all)"
14757 if test "$enable_mime" != "no"; then
14760 { $as_echo "$as_me:$LINENO: result: $enable_mime$_apmod_extra_msg" >&5
14761 $as_echo "$enable_mime$_apmod_extra_msg" >&6; }
14762 if test "$enable_mime" != "no"; then
14763 case "$enable_mime" in
14765 enable_mime=`echo $ac_n $enable_mime$ac_c|sed 's/shared,*//'`
14768 DSO_MODULES="$DSO_MODULES mime"
14771 MODLIST="$MODLIST mime"
14772 if test "mime" = "so"; then
14779 if test -z ""; then
14780 objects="mod_mime.lo"
14785 if test -z "$module_standalone"; then
14786 if test -z "$shared"; then
14787 libname="mod_mime.la"
14788 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14789 modpath_static="$modpath_static $libname"
14790 cat >>$modpath_current/modules.mk<<EOF
14792 \$(MOD_LINK) $objects \$(MOD_MIME_LDADD)
14795 apache_need_shared=yes
14796 libname="mod_mime.la"
14797 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14798 modpath_shared="$modpath_shared $libname"
14799 cat >>$modpath_current/modules.mk<<EOF
14800 $libname: $shobjects
14801 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_MIME_LDADD)
14807 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_LDADD"
14815 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14816 echo "static = $modpath_static" >> $modpath_current/modules.mk
14817 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14818 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14819 MODULE_DIRS="$MODULE_DIRS $current_dir"
14821 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14824 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14828 { $as_echo "$as_me:$LINENO: checking for extra modules" >&5
14829 $as_echo_n "checking for extra modules... " >&6; }
14831 # Check whether --with-module was given.
14832 if test "${with_module+set}" = set; then
14833 withval=$with_module;
14834 as_save_IFS="$IFS"; IFS=","
14835 for mod in $withval
14837 modtype=`echo $mod | sed -e's/\(.*\):.*/\1/'`
14838 pkg=`echo $mod | sed -e's/.*:\(.*\)/\1/'`
14839 modfilec=`echo $pkg | sed -e 's;^.*/;;'`
14840 modfileo=`echo $pkg | sed -e 's;^.*/;;' -e 's;\.c$;.o;'`
14841 modpath_current="modules/$modtype"
14842 if test "x$mod" != "x$modpath_current/$modfilec"; then
14843 if test ! -d "$modpath_current"; then
14844 mkdir $modpath_current
14845 echo 'include $(top_srcdir)/build/special.mk' > $modpath_current/Makefile.in
14847 cp $pkg $modpath_current/$modfilec
14849 module=`echo $pkg | sed -e 's;\(.*/\)*mod_\(.*\).c;\2;'`
14850 objects="mod_$module.lo"
14851 libname="mod_$module.la"
14852 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14853 if test ! -s "$modpath_current/modules.mk"; then
14854 cat >>$modpath_current/modules.mk<<EOF
14856 \$(MOD_LINK) $objects
14857 DISTCLEAN_TARGETS = modules.mk
14862 cat >>$modpath_current/modules.mk.tmp<<EOF
14864 \$(MOD_LINK) $objects
14866 cat $modpath_current/modules.mk >> $modpath_current/modules.mk.tmp
14867 rm $modpath_current/modules.mk
14868 mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
14869 sed -e "s/\(static =.*\)/\1 $libname/" $modpath_current/modules.mk > $modpath_current/modules.mk.tmp
14870 rm $modpath_current/modules.mk
14871 mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
14873 MODLIST="$MODLIST $module"
14874 EXTRA_MODLIST="$EXTRA_MODLIST $modtype:$modfilec"
14875 MODULE_DIRS="$MODULE_DIRS $modtype"
14877 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14880 if test ! -z "$EXTRA_MODLIST"; then
14881 { $as_echo "$as_me:$LINENO: result: added:$EXTRA_MODLIST" >&5
14882 $as_echo "added:$EXTRA_MODLIST" >&6; }
14887 { $as_echo "$as_me:$LINENO: result: none" >&5
14888 $as_echo "none" >&6; }
14895 current_dir=dav/main
14896 modpath_current=modules/dav/main
14899 test -d dav/main || $srcdir/build/mkdir.sh $modpath_current
14900 > $modpath_current/modules.mk
14903 dav_objects="mod_dav.lo props.lo util.lo util_lock.lo liveprop.lo providers.lo std_liveprop.lo"
14905 if test "$enable_http" = "no"; then
14912 { $as_echo "$as_me:$LINENO: checking whether to enable mod_dav" >&5
14913 $as_echo_n "checking whether to enable mod_dav... " >&6; }
14914 # Check whether --enable-dav was given.
14915 if test "${enable_dav+set}" = set; then
14916 enableval=$enable_dav;
14918 enable_dav=$dav_enable
14921 _apmod_extra_msg=""
14922 if test "$module_selection" = "most" -a "$enable_dav" = "most"; then
14923 _apmod_error_fatal="no"
14925 _apmod_error_fatal="yes"
14927 if test "$enable_dav" = "static"; then
14929 elif test "$enable_dav" = "yes"; then
14930 enable_dav=$module_default
14931 _apmod_extra_msg=" ($module_selection)"
14932 elif test "$enable_dav" = "most"; then
14933 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
14934 enable_dav=$module_default
14935 _apmod_extra_msg=" ($module_selection)"
14936 elif test "$enable_dav" != "yes"; then
14939 elif test "$enable_dav" = "maybe-all"; then
14940 if test "$module_selection" = "all"; then
14941 enable_dav=$module_default
14942 _apmod_extra_msg=" (all)"
14947 if test "$enable_dav" != "no"; then
14950 { $as_echo "$as_me:$LINENO: result: $enable_dav$_apmod_extra_msg" >&5
14951 $as_echo "$enable_dav$_apmod_extra_msg" >&6; }
14952 if test "$enable_dav" != "no"; then
14953 case "$enable_dav" in
14955 enable_dav=`echo $ac_n $enable_dav$ac_c|sed 's/shared,*//'`
14958 DSO_MODULES="$DSO_MODULES dav"
14961 MODLIST="$MODLIST dav"
14962 if test "dav" = "so"; then
14969 if test -z "$dav_objects"; then
14970 objects="mod_dav.lo"
14972 objects="$dav_objects"
14975 if test -z "$module_standalone"; then
14976 if test -z "$shared"; then
14977 libname="mod_dav.la"
14978 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14979 modpath_static="$modpath_static $libname"
14980 cat >>$modpath_current/modules.mk<<EOF
14982 \$(MOD_LINK) $objects \$(MOD_DAV_LDADD)
14985 apache_need_shared=yes
14986 libname="mod_dav.la"
14987 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14988 modpath_shared="$modpath_shared $libname"
14989 cat >>$modpath_current/modules.mk<<EOF
14990 $libname: $shobjects
14991 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_DAV_LDADD)
14997 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LDADD"
15004 if test "$dav_enable" != "no" -o "$enable_dav" != "no"; then
15005 apache_need_expat=yes
15008 if test "x$INCLUDES" = "x"; then
15009 echo " setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
15010 INCLUDES="-I\$(top_srcdir)/$modpath_current"
15012 apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
15013 for i in $apr_addto_bugger; do
15014 apr_addto_duplicate="0"
15015 for j in $INCLUDES; do
15016 if test "x$i" = "x$j"; then
15017 apr_addto_duplicate="1"
15021 if test $apr_addto_duplicate = "0"; then
15022 echo " adding \"$i\" to INCLUDES"
15023 INCLUDES="$INCLUDES $i"
15032 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
15033 echo "static = $modpath_static" >> $modpath_current/modules.mk
15034 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
15035 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
15036 MODULE_DIRS="$MODULE_DIRS $current_dir"
15038 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
15041 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
15048 current_dir=generators
15049 modpath_current=modules/generators
15052 test -d generators || $srcdir/build/mkdir.sh $modpath_current
15053 > $modpath_current/modules.mk
15057 { $as_echo "$as_me:$LINENO: checking whether to enable mod_status" >&5
15058 $as_echo_n "checking whether to enable mod_status... " >&6; }
15059 # Check whether --enable-status was given.
15060 if test "${enable_status+set}" = set; then
15061 enableval=$enable_status;
15066 _apmod_extra_msg=""
15067 if test "$module_selection" = "most" -a "$enable_status" = "most"; then
15068 _apmod_error_fatal="no"
15070 _apmod_error_fatal="yes"
15072 if test "$enable_status" = "static"; then
15074 elif test "$enable_status" = "yes"; then
15075 enable_status=$module_default
15076 _apmod_extra_msg=" ($module_selection)"
15077 elif test "$enable_status" = "most"; then
15078 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15079 enable_status=$module_default
15080 _apmod_extra_msg=" ($module_selection)"
15081 elif test "$enable_status" != "yes"; then
15084 elif test "$enable_status" = "maybe-all"; then
15085 if test "$module_selection" = "all"; then
15086 enable_status=$module_default
15087 _apmod_extra_msg=" (all)"
15092 if test "$enable_status" != "no"; then
15095 { $as_echo "$as_me:$LINENO: result: $enable_status$_apmod_extra_msg" >&5
15096 $as_echo "$enable_status$_apmod_extra_msg" >&6; }
15097 if test "$enable_status" != "no"; then
15098 case "$enable_status" in
15100 enable_status=`echo $ac_n $enable_status$ac_c|sed 's/shared,*//'`
15103 DSO_MODULES="$DSO_MODULES status"
15106 MODLIST="$MODLIST status"
15107 if test "status" = "so"; then
15114 if test -z ""; then
15115 objects="mod_status.lo"
15120 if test -z "$module_standalone"; then
15121 if test -z "$shared"; then
15122 libname="mod_status.la"
15123 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15124 modpath_static="$modpath_static $libname"
15125 cat >>$modpath_current/modules.mk<<EOF
15127 \$(MOD_LINK) $objects \$(MOD_STATUS_LDADD)
15130 apache_need_shared=yes
15131 libname="mod_status.la"
15132 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15133 modpath_shared="$modpath_shared $libname"
15134 cat >>$modpath_current/modules.mk<<EOF
15135 $libname: $shobjects
15136 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_STATUS_LDADD)
15142 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_STATUS_LDADD"
15149 { $as_echo "$as_me:$LINENO: checking whether to enable mod_autoindex" >&5
15150 $as_echo_n "checking whether to enable mod_autoindex... " >&6; }
15151 # Check whether --enable-autoindex was given.
15152 if test "${enable_autoindex+set}" = set; then
15153 enableval=$enable_autoindex;
15155 enable_autoindex=yes
15158 _apmod_extra_msg=""
15159 if test "$module_selection" = "most" -a "$enable_autoindex" = "most"; then
15160 _apmod_error_fatal="no"
15162 _apmod_error_fatal="yes"
15164 if test "$enable_autoindex" = "static"; then
15165 enable_autoindex=yes
15166 elif test "$enable_autoindex" = "yes"; then
15167 enable_autoindex=$module_default
15168 _apmod_extra_msg=" ($module_selection)"
15169 elif test "$enable_autoindex" = "most"; then
15170 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15171 enable_autoindex=$module_default
15172 _apmod_extra_msg=" ($module_selection)"
15173 elif test "$enable_autoindex" != "yes"; then
15174 enable_autoindex=no
15176 elif test "$enable_autoindex" = "maybe-all"; then
15177 if test "$module_selection" = "all"; then
15178 enable_autoindex=$module_default
15179 _apmod_extra_msg=" (all)"
15181 enable_autoindex=no
15184 if test "$enable_autoindex" != "no"; then
15187 { $as_echo "$as_me:$LINENO: result: $enable_autoindex$_apmod_extra_msg" >&5
15188 $as_echo "$enable_autoindex$_apmod_extra_msg" >&6; }
15189 if test "$enable_autoindex" != "no"; then
15190 case "$enable_autoindex" in
15192 enable_autoindex=`echo $ac_n $enable_autoindex$ac_c|sed 's/shared,*//'`
15195 DSO_MODULES="$DSO_MODULES autoindex"
15198 MODLIST="$MODLIST autoindex"
15199 if test "autoindex" = "so"; then
15206 if test -z ""; then
15207 objects="mod_autoindex.lo"
15212 if test -z "$module_standalone"; then
15213 if test -z "$shared"; then
15214 libname="mod_autoindex.la"
15215 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15216 modpath_static="$modpath_static $libname"
15217 cat >>$modpath_current/modules.mk<<EOF
15219 \$(MOD_LINK) $objects \$(MOD_AUTOINDEX_LDADD)
15222 apache_need_shared=yes
15223 libname="mod_autoindex.la"
15224 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15225 modpath_shared="$modpath_shared $libname"
15226 cat >>$modpath_current/modules.mk<<EOF
15227 $libname: $shobjects
15228 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_AUTOINDEX_LDADD)
15234 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTOINDEX_LDADD"
15241 { $as_echo "$as_me:$LINENO: checking whether to enable mod_asis" >&5
15242 $as_echo_n "checking whether to enable mod_asis... " >&6; }
15243 # Check whether --enable-asis was given.
15244 if test "${enable_asis+set}" = set; then
15245 enableval=$enable_asis;
15250 _apmod_extra_msg=""
15251 if test "$module_selection" = "most" -a "$enable_asis" = "most"; then
15252 _apmod_error_fatal="no"
15254 _apmod_error_fatal="yes"
15256 if test "$enable_asis" = "static"; then
15258 elif test "$enable_asis" = "yes"; then
15259 enable_asis=$module_default
15260 _apmod_extra_msg=" ($module_selection)"
15261 elif test "$enable_asis" = "most"; then
15262 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15263 enable_asis=$module_default
15264 _apmod_extra_msg=" ($module_selection)"
15265 elif test "$enable_asis" != "yes"; then
15268 elif test "$enable_asis" = "maybe-all"; then
15269 if test "$module_selection" = "all"; then
15270 enable_asis=$module_default
15271 _apmod_extra_msg=" (all)"
15276 if test "$enable_asis" != "no"; then
15279 { $as_echo "$as_me:$LINENO: result: $enable_asis$_apmod_extra_msg" >&5
15280 $as_echo "$enable_asis$_apmod_extra_msg" >&6; }
15281 if test "$enable_asis" != "no"; then
15282 case "$enable_asis" in
15284 enable_asis=`echo $ac_n $enable_asis$ac_c|sed 's/shared,*//'`
15287 DSO_MODULES="$DSO_MODULES asis"
15290 MODLIST="$MODLIST asis"
15291 if test "asis" = "so"; then
15298 if test -z ""; then
15299 objects="mod_asis.lo"
15304 if test -z "$module_standalone"; then
15305 if test -z "$shared"; then
15306 libname="mod_asis.la"
15307 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15308 modpath_static="$modpath_static $libname"
15309 cat >>$modpath_current/modules.mk<<EOF
15311 \$(MOD_LINK) $objects \$(MOD_ASIS_LDADD)
15314 apache_need_shared=yes
15315 libname="mod_asis.la"
15316 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15317 modpath_shared="$modpath_shared $libname"
15318 cat >>$modpath_current/modules.mk<<EOF
15319 $libname: $shobjects
15320 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_ASIS_LDADD)
15326 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ASIS_LDADD"
15333 { $as_echo "$as_me:$LINENO: checking whether to enable mod_info" >&5
15334 $as_echo_n "checking whether to enable mod_info... " >&6; }
15335 # Check whether --enable-info was given.
15336 if test "${enable_info+set}" = set; then
15337 enableval=$enable_info;
15342 _apmod_extra_msg=""
15343 if test "$module_selection" = "most" -a "$enable_info" = "most"; then
15344 _apmod_error_fatal="no"
15346 _apmod_error_fatal="yes"
15348 if test "$enable_info" = "static"; then
15350 elif test "$enable_info" = "yes"; then
15351 enable_info=$module_default
15352 _apmod_extra_msg=" ($module_selection)"
15353 elif test "$enable_info" = "most"; then
15354 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15355 enable_info=$module_default
15356 _apmod_extra_msg=" ($module_selection)"
15357 elif test "$enable_info" != "yes"; then
15360 elif test "$enable_info" = "maybe-all"; then
15361 if test "$module_selection" = "all"; then
15362 enable_info=$module_default
15363 _apmod_extra_msg=" (all)"
15368 if test "$enable_info" != "no"; then
15371 { $as_echo "$as_me:$LINENO: result: $enable_info$_apmod_extra_msg" >&5
15372 $as_echo "$enable_info$_apmod_extra_msg" >&6; }
15373 if test "$enable_info" != "no"; then
15374 case "$enable_info" in
15376 enable_info=`echo $ac_n $enable_info$ac_c|sed 's/shared,*//'`
15379 DSO_MODULES="$DSO_MODULES info"
15382 MODLIST="$MODLIST info"
15383 if test "info" = "so"; then
15390 if test -z ""; then
15391 objects="mod_info.lo"
15396 if test -z "$module_standalone"; then
15397 if test -z "$shared"; then
15398 libname="mod_info.la"
15399 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15400 modpath_static="$modpath_static $libname"
15401 cat >>$modpath_current/modules.mk<<EOF
15403 \$(MOD_LINK) $objects \$(MOD_INFO_LDADD)
15406 apache_need_shared=yes
15407 libname="mod_info.la"
15408 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15409 modpath_shared="$modpath_shared $libname"
15410 cat >>$modpath_current/modules.mk<<EOF
15411 $libname: $shobjects
15412 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_INFO_LDADD)
15418 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INFO_LDADD"
15425 { $as_echo "$as_me:$LINENO: checking whether to enable mod_suexec" >&5
15426 $as_echo_n "checking whether to enable mod_suexec... " >&6; }
15427 # Check whether --enable-suexec was given.
15428 if test "${enable_suexec+set}" = set; then
15429 enableval=$enable_suexec;
15434 _apmod_extra_msg=""
15435 if test "$module_selection" = "most" -a "$enable_suexec" = "most"; then
15436 _apmod_error_fatal="no"
15438 _apmod_error_fatal="yes"
15440 if test "$enable_suexec" = "static"; then
15442 elif test "$enable_suexec" = "yes"; then
15443 enable_suexec=$module_default
15444 _apmod_extra_msg=" ($module_selection)"
15445 elif test "$enable_suexec" = "most"; then
15446 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15447 enable_suexec=$module_default
15448 _apmod_extra_msg=" ($module_selection)"
15449 elif test "$enable_suexec" != "yes"; then
15452 elif test "$enable_suexec" = "maybe-all"; then
15453 if test "$module_selection" = "all"; then
15454 enable_suexec=$module_default
15455 _apmod_extra_msg=" (all)"
15460 if test "$enable_suexec" != "no"; then
15461 { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
15462 $as_echo "checking dependencies" >&6; }
15464 other_targets=suexec
15465 { $as_echo "$as_me:$LINENO: checking whether to enable mod_suexec" >&5
15466 $as_echo_n "checking whether to enable mod_suexec... " >&6; }
15467 if test "$enable_suexec" = "no"; then
15468 if test "$_apmod_error_fatal" = "no"; then
15469 _apmod_extra_msg=" (disabled)"
15471 { { $as_echo "$as_me:$LINENO: error: mod_suexec has been requested but can not be built due to prerequisite failures" >&5
15472 $as_echo "$as_me: error: mod_suexec has been requested but can not be built due to prerequisite failures" >&2;}
15473 { (exit 1); exit 1; }; }
15477 { $as_echo "$as_me:$LINENO: result: $enable_suexec$_apmod_extra_msg" >&5
15478 $as_echo "$enable_suexec$_apmod_extra_msg" >&6; }
15479 if test "$enable_suexec" != "no"; then
15480 case "$enable_suexec" in
15482 enable_suexec=`echo $ac_n $enable_suexec$ac_c|sed 's/shared,*//'`
15485 DSO_MODULES="$DSO_MODULES suexec"
15488 MODLIST="$MODLIST suexec"
15489 if test "suexec" = "so"; then
15496 if test -z ""; then
15497 objects="mod_suexec.lo"
15502 if test -z "$module_standalone"; then
15503 if test -z "$shared"; then
15504 libname="mod_suexec.la"
15505 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15506 modpath_static="$modpath_static $libname"
15507 cat >>$modpath_current/modules.mk<<EOF
15509 \$(MOD_LINK) $objects \$(MOD_SUEXEC_LDADD)
15512 apache_need_shared=yes
15513 libname="mod_suexec.la"
15514 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15515 modpath_shared="$modpath_shared $libname"
15516 cat >>$modpath_current/modules.mk<<EOF
15517 $libname: $shobjects
15518 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_SUEXEC_LDADD)
15524 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SUEXEC_LDADD"
15532 if test "x$LT_LDFLAGS" = "x"; then
15533 echo " setting LT_LDFLAGS to \"-export-dynamic\""
15534 LT_LDFLAGS="-export-dynamic"
15536 apr_addto_bugger="-export-dynamic"
15537 for i in $apr_addto_bugger; do
15538 apr_addto_duplicate="0"
15539 for j in $LT_LDFLAGS; do
15540 if test "x$i" = "x$j"; then
15541 apr_addto_duplicate="1"
15545 if test $apr_addto_duplicate = "0"; then
15546 echo " adding \"$i\" to LT_LDFLAGS"
15547 LT_LDFLAGS="$LT_LDFLAGS $i"
15553 if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "perchild"; then
15554 # if we are using a threaded MPM, we will get better performance with
15555 # mod_cgid, so make it the default.
15557 { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgid" >&5
15558 $as_echo_n "checking whether to enable mod_cgid... " >&6; }
15559 # Check whether --enable-cgid was given.
15560 if test "${enable_cgid+set}" = set; then
15561 enableval=$enable_cgid;
15566 _apmod_extra_msg=""
15567 if test "$module_selection" = "most" -a "$enable_cgid" = "most"; then
15568 _apmod_error_fatal="no"
15570 _apmod_error_fatal="yes"
15572 if test "$enable_cgid" = "static"; then
15574 elif test "$enable_cgid" = "yes"; then
15575 enable_cgid=$module_default
15576 _apmod_extra_msg=" ($module_selection)"
15577 elif test "$enable_cgid" = "most"; then
15578 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15579 enable_cgid=$module_default
15580 _apmod_extra_msg=" ($module_selection)"
15581 elif test "$enable_cgid" != "yes"; then
15584 elif test "$enable_cgid" = "maybe-all"; then
15585 if test "$module_selection" = "all"; then
15586 enable_cgid=$module_default
15587 _apmod_extra_msg=" (all)"
15592 if test "$enable_cgid" != "no"; then
15593 { $as_echo "$as_me:$LINENO: result: checking dependencies" >&5
15594 $as_echo "checking dependencies" >&6; }
15608 { $as_echo "$as_me:$LINENO: WARNING: Unknown platform" >&5
15609 $as_echo "$as_me: WARNING: Unknown platform" >&2;}
15613 { $as_echo "$as_me:$LINENO: checking for Solaris patch $patch_id" >&5
15614 $as_echo_n "checking for Solaris patch $patch_id... " >&6; }
15615 showrev -p | grep "$patch_id" >/dev/null 2>&1
15616 if test $? -eq 1; then
15617 { { $as_echo "$as_me:$LINENO: error: Please apply either patch # 120664 (Sparc) or # 120665 (x86).
15618 Without these patches, mod_cgid is non-functional on Solaris 10 due to an OS
15619 bug with AF_UNIX sockets.
15620 If you can not apply these patches, you can do one of the following:
15621 - run configure with --disable-cgid
15622 - switch to the prefork MPM
15623 For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>" >&5
15624 $as_echo "$as_me: error: Please apply either patch # 120664 (Sparc) or # 120665 (x86).
15625 Without these patches, mod_cgid is non-functional on Solaris 10 due to an OS
15626 bug with AF_UNIX sockets.
15627 If you can not apply these patches, you can do one of the following:
15628 - run configure with --disable-cgid
15629 - switch to the prefork MPM
15630 For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>" >&2;}
15631 { (exit 1); exit 1; }; }
15633 { $as_echo "$as_me:$LINENO: result: yes" >&5
15634 $as_echo "yes" >&6; }
15641 { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgid" >&5
15642 $as_echo_n "checking whether to enable mod_cgid... " >&6; }
15643 if test "$enable_cgid" = "no"; then
15644 if test "$_apmod_error_fatal" = "no"; then
15645 _apmod_extra_msg=" (disabled)"
15647 { { $as_echo "$as_me:$LINENO: error: mod_cgid has been requested but can not be built due to prerequisite failures" >&5
15648 $as_echo "$as_me: error: mod_cgid has been requested but can not be built due to prerequisite failures" >&2;}
15649 { (exit 1); exit 1; }; }
15653 { $as_echo "$as_me:$LINENO: result: $enable_cgid$_apmod_extra_msg" >&5
15654 $as_echo "$enable_cgid$_apmod_extra_msg" >&6; }
15655 if test "$enable_cgid" != "no"; then
15656 case "$enable_cgid" in
15658 enable_cgid=`echo $ac_n $enable_cgid$ac_c|sed 's/shared,*//'`
15661 DSO_MODULES="$DSO_MODULES cgid"
15664 MODLIST="$MODLIST cgid"
15665 if test "cgid" = "so"; then
15672 if test -z ""; then
15673 objects="mod_cgid.lo"
15678 if test -z "$module_standalone"; then
15679 if test -z "$shared"; then
15680 libname="mod_cgid.la"
15681 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15682 modpath_static="$modpath_static $libname"
15683 cat >>$modpath_current/modules.mk<<EOF
15685 \$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
15688 apache_need_shared=yes
15689 libname="mod_cgid.la"
15690 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15691 modpath_shared="$modpath_shared $libname"
15692 cat >>$modpath_current/modules.mk<<EOF
15693 $libname: $shobjects
15694 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CGID_LDADD)
15700 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
15707 { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgi" >&5
15708 $as_echo_n "checking whether to enable mod_cgi... " >&6; }
15709 # Check whether --enable-cgi was given.
15710 if test "${enable_cgi+set}" = set; then
15711 enableval=$enable_cgi;
15716 _apmod_extra_msg=""
15717 if test "$module_selection" = "most" -a "$enable_cgi" = "most"; then
15718 _apmod_error_fatal="no"
15720 _apmod_error_fatal="yes"
15722 if test "$enable_cgi" = "static"; then
15724 elif test "$enable_cgi" = "yes"; then
15725 enable_cgi=$module_default
15726 _apmod_extra_msg=" ($module_selection)"
15727 elif test "$enable_cgi" = "most"; then
15728 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15729 enable_cgi=$module_default
15730 _apmod_extra_msg=" ($module_selection)"
15731 elif test "$enable_cgi" != "yes"; then
15734 elif test "$enable_cgi" = "maybe-all"; then
15735 if test "$module_selection" = "all"; then
15736 enable_cgi=$module_default
15737 _apmod_extra_msg=" (all)"
15742 if test "$enable_cgi" != "no"; then
15745 { $as_echo "$as_me:$LINENO: result: $enable_cgi$_apmod_extra_msg" >&5
15746 $as_echo "$enable_cgi$_apmod_extra_msg" >&6; }
15747 if test "$enable_cgi" != "no"; then
15748 case "$enable_cgi" in
15750 enable_cgi=`echo $ac_n $enable_cgi$ac_c|sed 's/shared,*//'`
15753 DSO_MODULES="$DSO_MODULES cgi"
15756 MODLIST="$MODLIST cgi"
15757 if test "cgi" = "so"; then
15764 if test -z ""; then
15765 objects="mod_cgi.lo"
15770 if test -z "$module_standalone"; then
15771 if test -z "$shared"; then
15772 libname="mod_cgi.la"
15773 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15774 modpath_static="$modpath_static $libname"
15775 cat >>$modpath_current/modules.mk<<EOF
15777 \$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
15780 apache_need_shared=yes
15781 libname="mod_cgi.la"
15782 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15783 modpath_shared="$modpath_shared $libname"
15784 cat >>$modpath_current/modules.mk<<EOF
15785 $libname: $shobjects
15786 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CGI_LDADD)
15792 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
15799 # if we are using a non-threaded MPM, it makes little sense to use
15800 # mod_cgid, and it just opens up holes we don't need. Make mod_cgi the
15803 { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgi" >&5
15804 $as_echo_n "checking whether to enable mod_cgi... " >&6; }
15805 # Check whether --enable-cgi was given.
15806 if test "${enable_cgi+set}" = set; then
15807 enableval=$enable_cgi;
15812 _apmod_extra_msg=""
15813 if test "$module_selection" = "most" -a "$enable_cgi" = "most"; then
15814 _apmod_error_fatal="no"
15816 _apmod_error_fatal="yes"
15818 if test "$enable_cgi" = "static"; then
15820 elif test "$enable_cgi" = "yes"; then
15821 enable_cgi=$module_default
15822 _apmod_extra_msg=" ($module_selection)"
15823 elif test "$enable_cgi" = "most"; then
15824 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15825 enable_cgi=$module_default
15826 _apmod_extra_msg=" ($module_selection)"
15827 elif test "$enable_cgi" != "yes"; then
15830 elif test "$enable_cgi" = "maybe-all"; then
15831 if test "$module_selection" = "all"; then
15832 enable_cgi=$module_default
15833 _apmod_extra_msg=" (all)"
15838 if test "$enable_cgi" != "no"; then
15841 { $as_echo "$as_me:$LINENO: result: $enable_cgi$_apmod_extra_msg" >&5
15842 $as_echo "$enable_cgi$_apmod_extra_msg" >&6; }
15843 if test "$enable_cgi" != "no"; then
15844 case "$enable_cgi" in
15846 enable_cgi=`echo $ac_n $enable_cgi$ac_c|sed 's/shared,*//'`
15849 DSO_MODULES="$DSO_MODULES cgi"
15852 MODLIST="$MODLIST cgi"
15853 if test "cgi" = "so"; then
15860 if test -z ""; then
15861 objects="mod_cgi.lo"
15866 if test -z "$module_standalone"; then
15867 if test -z "$shared"; then
15868 libname="mod_cgi.la"
15869 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15870 modpath_static="$modpath_static $libname"
15871 cat >>$modpath_current/modules.mk<<EOF
15873 \$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
15876 apache_need_shared=yes
15877 libname="mod_cgi.la"
15878 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15879 modpath_shared="$modpath_shared $libname"
15880 cat >>$modpath_current/modules.mk<<EOF
15881 $libname: $shobjects
15882 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CGI_LDADD)
15888 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
15895 { $as_echo "$as_me:$LINENO: checking whether to enable mod_cgid" >&5
15896 $as_echo_n "checking whether to enable mod_cgid... " >&6; }
15897 # Check whether --enable-cgid was given.
15898 if test "${enable_cgid+set}" = set; then
15899 enableval=$enable_cgid;
15904 _apmod_extra_msg=""
15905 if test "$module_selection" = "most" -a "$enable_cgid" = "most"; then
15906 _apmod_error_fatal="no"
15908 _apmod_error_fatal="yes"
15910 if test "$enable_cgid" = "static"; then
15912 elif test "$enable_cgid" = "yes"; then
15913 enable_cgid=$module_default
15914 _apmod_extra_msg=" ($module_selection)"
15915 elif test "$enable_cgid" = "most"; then
15916 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
15917 enable_cgid=$module_default
15918 _apmod_extra_msg=" ($module_selection)"
15919 elif test "$enable_cgid" != "yes"; then
15922 elif test "$enable_cgid" = "maybe-all"; then
15923 if test "$module_selection" = "all"; then
15924 enable_cgid=$module_default
15925 _apmod_extra_msg=" (all)"
15930 if test "$enable_cgid" != "no"; then
15933 { $as_echo "$as_me:$LINENO: result: $enable_cgid$_apmod_extra_msg" >&5
15934 $as_echo "$enable_cgid$_apmod_extra_msg" >&6; }
15935 if test "$enable_cgid" != "no"; then
15936 case "$enable_cgid" in
15938 enable_cgid=`echo $ac_n $enable_cgid$ac_c|sed 's/shared,*//'`
15941 DSO_MODULES="$DSO_MODULES cgid"
15944 MODLIST="$MODLIST cgid"
15945 if test "cgid" = "so"; then
15952 if test -z ""; then
15953 objects="mod_cgid.lo"
15958 if test -z "$module_standalone"; then
15959 if test -z "$shared"; then
15960 libname="mod_cgid.la"
15961 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15962 modpath_static="$modpath_static $libname"
15963 cat >>$modpath_current/modules.mk<<EOF
15965 \$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
15968 apache_need_shared=yes
15969 libname="mod_cgid.la"
15970 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15971 modpath_shared="$modpath_shared $libname"
15972 cat >>$modpath_current/modules.mk<<EOF
15973 $libname: $shobjects
15974 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_CGID_LDADD)
15980 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
15989 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
15990 echo "static = $modpath_static" >> $modpath_current/modules.mk
15991 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
15992 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
15993 MODULE_DIRS="$MODULE_DIRS $current_dir"
15995 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
15998 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
16003 if test "$MPM_NAME" = "beos" ; then
16004 apache_apr_flags="--enable-threads"
16007 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
16012 if test "$MPM_NAME" = "leader" ; then
16014 for ac_func in pthread_kill
16016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16017 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16018 $as_echo_n "checking for $ac_func... " >&6; }
16019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16020 $as_echo_n "(cached) " >&6
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16030 #define $ac_func innocuous_$ac_func
16032 /* System header to define __stub macros and hopefully few prototypes,
16033 which can conflict with char $ac_func (); below.
16034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16035 <limits.h> exists even on freestanding compilers. */
16038 # include <limits.h>
16040 # include <assert.h>
16045 /* Override any GCC internal prototype to avoid an error.
16046 Use char because int might match the return type of a GCC
16047 builtin and then its argument prototype would still apply. */
16052 /* The GNU C library defines this for functions which it implements
16053 to always fail with ENOSYS. Some functions are actually named
16054 something starting with __ and the normal name is an alias. */
16055 #if defined __stub_$ac_func || defined __stub___$ac_func
16062 return $ac_func ();
16067 rm -f conftest.$ac_objext conftest$ac_exeext
16068 if { (ac_try="$ac_link"
16069 case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16074 $as_echo "$ac_try_echo") >&5
16075 (eval "$ac_link") 2>conftest.er1
16077 grep -v '^ *+' conftest.er1 >conftest.err
16079 cat conftest.err >&5
16080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } && {
16082 test -z "$ac_c_werror_flag" ||
16083 test ! -s conftest.err
16084 } && test -s conftest$ac_exeext && {
16085 test "$cross_compiling" = yes ||
16086 $as_test_x conftest$ac_exeext
16088 eval "$as_ac_var=yes"
16090 $as_echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 eval "$as_ac_var=no"
16096 rm -rf conftest.dSYM
16097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16098 conftest$ac_exeext conftest.$ac_ext
16100 ac_res=`eval 'as_val=${'$as_ac_var'}
16101 $as_echo "$as_val"'`
16102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16103 $as_echo "$ac_res" >&6; }
16104 as_val=`eval 'as_val=${'$as_ac_var'}
16105 $as_echo "$as_val"'`
16106 if test "x$as_val" = x""yes; then
16107 cat >>confdefs.h <<_ACEOF
16108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16115 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"
16120 if test "$MPM_NAME" = "perchild" ; then
16122 for ac_func in pthread_kill
16124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16125 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16126 $as_echo_n "checking for $ac_func... " >&6; }
16127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16128 $as_echo_n "(cached) " >&6
16130 cat >conftest.$ac_ext <<_ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16138 #define $ac_func innocuous_$ac_func
16140 /* System header to define __stub macros and hopefully few prototypes,
16141 which can conflict with char $ac_func (); below.
16142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16143 <limits.h> exists even on freestanding compilers. */
16146 # include <limits.h>
16148 # include <assert.h>
16153 /* Override any GCC internal prototype to avoid an error.
16154 Use char because int might match the return type of a GCC
16155 builtin and then its argument prototype would still apply. */
16160 /* The GNU C library defines this for functions which it implements
16161 to always fail with ENOSYS. Some functions are actually named
16162 something starting with __ and the normal name is an alias. */
16163 #if defined __stub_$ac_func || defined __stub___$ac_func
16170 return $ac_func ();
16175 rm -f conftest.$ac_objext conftest$ac_exeext
16176 if { (ac_try="$ac_link"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16182 $as_echo "$ac_try_echo") >&5
16183 (eval "$ac_link") 2>conftest.er1
16185 grep -v '^ *+' conftest.er1 >conftest.err
16187 cat conftest.err >&5
16188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } && {
16190 test -z "$ac_c_werror_flag" ||
16191 test ! -s conftest.err
16192 } && test -s conftest$ac_exeext && {
16193 test "$cross_compiling" = yes ||
16194 $as_test_x conftest$ac_exeext
16196 eval "$as_ac_var=yes"
16198 $as_echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16201 eval "$as_ac_var=no"
16204 rm -rf conftest.dSYM
16205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16206 conftest$ac_exeext conftest.$ac_ext
16208 ac_res=`eval 'as_val=${'$as_ac_var'}
16209 $as_echo "$as_val"'`
16210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16211 $as_echo "$ac_res" >&6; }
16212 as_val=`eval 'as_val=${'$as_ac_var'}
16213 $as_echo "$as_val"'`
16214 if test "x$as_val" = x""yes; then
16215 cat >>confdefs.h <<_ACEOF
16216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16223 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"
16228 if test "$MPM_NAME" = "threadpool" ; then
16230 for ac_func in pthread_kill
16232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16234 $as_echo_n "checking for $ac_func... " >&6; }
16235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16236 $as_echo_n "(cached) " >&6
16238 cat >conftest.$ac_ext <<_ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16246 #define $ac_func innocuous_$ac_func
16248 /* System header to define __stub macros and hopefully few prototypes,
16249 which can conflict with char $ac_func (); below.
16250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16251 <limits.h> exists even on freestanding compilers. */
16254 # include <limits.h>
16256 # include <assert.h>
16261 /* Override any GCC internal prototype to avoid an error.
16262 Use char because int might match the return type of a GCC
16263 builtin and then its argument prototype would still apply. */
16268 /* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
16271 #if defined __stub_$ac_func || defined __stub___$ac_func
16278 return $ac_func ();
16283 rm -f conftest.$ac_objext conftest$ac_exeext
16284 if { (ac_try="$ac_link"
16285 case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290 $as_echo "$ac_try_echo") >&5
16291 (eval "$ac_link") 2>conftest.er1
16293 grep -v '^ *+' conftest.er1 >conftest.err
16295 cat conftest.err >&5
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } && {
16298 test -z "$ac_c_werror_flag" ||
16299 test ! -s conftest.err
16300 } && test -s conftest$ac_exeext && {
16301 test "$cross_compiling" = yes ||
16302 $as_test_x conftest$ac_exeext
16304 eval "$as_ac_var=yes"
16306 $as_echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 eval "$as_ac_var=no"
16312 rm -rf conftest.dSYM
16313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16314 conftest$ac_exeext conftest.$ac_ext
16316 ac_res=`eval 'as_val=${'$as_ac_var'}
16317 $as_echo "$as_val"'`
16318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16319 $as_echo "$ac_res" >&6; }
16320 as_val=`eval 'as_val=${'$as_ac_var'}
16321 $as_echo "$as_val"'`
16322 if test "x$as_val" = x""yes; then
16323 cat >>confdefs.h <<_ACEOF
16324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16331 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"
16335 if test "$MPM_NAME" = "mpmt_os2" ; then
16336 cat >confcache <<\_ACEOF
16337 # This file is a shell script that caches the results of configure
16338 # tests run on this system so they can be shared between configure
16339 # scripts and configure runs, see configure's option --config-cache.
16340 # It is not useful on other systems. If it contains results you don't
16341 # want to keep, you may remove or edit it.
16343 # config.status only pays attention to the cache file if you give it
16344 # the --recheck option to rerun configure.
16346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16348 # following values.
16352 # The following way of writing the cache mishandles newlines in values,
16353 # but we know of no workaround that is simple, portable, and efficient.
16354 # So, we kill variables containing newlines.
16355 # Ultrix sh set writes to stderr and can't be redirected directly,
16356 # and sets the high bit in the cache file unless we assign to the vars.
16358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16359 eval ac_val=\$$ac_var
16363 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16367 _ | IFS | as_nl) ;; #(
16368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16369 *) $as_unset $ac_var ;;
16375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16376 *${as_nl}ac_space=\ *)
16377 # `set' does not quote correctly, so add quotes (double-quote
16378 # substitution turns \\\\ into \\, and sed turns \\ into \).
16381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16384 # `set' quotes correctly as required by POSIX, so do not add quotes.
16385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16399 if test -w "$cache_file"; then
16400 test "x$cache_file" != "x/dev/null" &&
16401 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16402 $as_echo "$as_me: updating cache $cache_file" >&6;}
16403 cat confcache >$cache_file
16405 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16406 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16411 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
16414 if test "x$CFLAGS" = "x"; then
16415 echo " setting CFLAGS to \"-Zmt\""
16418 apr_addto_bugger="-Zmt"
16419 for i in $apr_addto_bugger; do
16420 apr_addto_duplicate="0"
16421 for j in $CFLAGS; do
16422 if test "x$i" = "x$j"; then
16423 apr_addto_duplicate="1"
16427 if test $apr_addto_duplicate = "0"; then
16428 echo " adding \"$i\" to CFLAGS"
16429 CFLAGS="$CFLAGS $i"
16437 if test "$MPM_NAME" = "worker" ; then
16439 for ac_func in pthread_kill
16441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16442 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16443 $as_echo_n "checking for $ac_func... " >&6; }
16444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16445 $as_echo_n "(cached) " >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16455 #define $ac_func innocuous_$ac_func
16457 /* System header to define __stub macros and hopefully few prototypes,
16458 which can conflict with char $ac_func (); below.
16459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16460 <limits.h> exists even on freestanding compilers. */
16463 # include <limits.h>
16465 # include <assert.h>
16470 /* Override any GCC internal prototype to avoid an error.
16471 Use char because int might match the return type of a GCC
16472 builtin and then its argument prototype would still apply. */
16477 /* The GNU C library defines this for functions which it implements
16478 to always fail with ENOSYS. Some functions are actually named
16479 something starting with __ and the normal name is an alias. */
16480 #if defined __stub_$ac_func || defined __stub___$ac_func
16487 return $ac_func ();
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (ac_try="$ac_link"
16494 case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16499 $as_echo "$ac_try_echo") >&5
16500 (eval "$ac_link") 2>conftest.er1
16502 grep -v '^ *+' conftest.er1 >conftest.err
16504 cat conftest.err >&5
16505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } && {
16507 test -z "$ac_c_werror_flag" ||
16508 test ! -s conftest.err
16509 } && test -s conftest$ac_exeext && {
16510 test "$cross_compiling" = yes ||
16511 $as_test_x conftest$ac_exeext
16513 eval "$as_ac_var=yes"
16515 $as_echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16518 eval "$as_ac_var=no"
16521 rm -rf conftest.dSYM
16522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16523 conftest$ac_exeext conftest.$ac_ext
16525 ac_res=`eval 'as_val=${'$as_ac_var'}
16526 $as_echo "$as_val"'`
16527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16528 $as_echo "$ac_res" >&6; }
16529 as_val=`eval 'as_val=${'$as_ac_var'}
16530 $as_echo "$as_val"'`
16531 if test "x$as_val" = x""yes; then
16532 cat >>confdefs.h <<_ACEOF
16533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16540 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
16547 modpath_current=modules/dav/fs
16550 test -d dav/fs || $srcdir/build/mkdir.sh $modpath_current
16551 > $modpath_current/modules.mk
16554 dav_fs_objects="mod_dav_fs.lo dbm.lo lock.lo repos.lo"
16556 if test "x$enable_dav" != "x"; then
16557 dav_fs_enable=$enable_dav
16559 dav_fs_enable=$dav_enable
16564 # OS/2 DLLs must resolve all symbols at build time
16565 # and we need some from main DAV module
16566 dav_fs_objects="$dav_fs_objects ../main/mod_dav.la"
16571 { $as_echo "$as_me:$LINENO: checking whether to enable mod_dav_fs" >&5
16572 $as_echo_n "checking whether to enable mod_dav_fs... " >&6; }
16573 # Check whether --enable-dav-fs was given.
16574 if test "${enable_dav_fs+set}" = set; then
16575 enableval=$enable_dav_fs;
16577 enable_dav_fs=$dav_fs_enable
16580 _apmod_extra_msg=""
16581 if test "$module_selection" = "most" -a "$enable_dav_fs" = "most"; then
16582 _apmod_error_fatal="no"
16584 _apmod_error_fatal="yes"
16586 if test "$enable_dav_fs" = "static"; then
16588 elif test "$enable_dav_fs" = "yes"; then
16589 enable_dav_fs=$module_default
16590 _apmod_extra_msg=" ($module_selection)"
16591 elif test "$enable_dav_fs" = "most"; then
16592 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16593 enable_dav_fs=$module_default
16594 _apmod_extra_msg=" ($module_selection)"
16595 elif test "$enable_dav_fs" != "yes"; then
16598 elif test "$enable_dav_fs" = "maybe-all"; then
16599 if test "$module_selection" = "all"; then
16600 enable_dav_fs=$module_default
16601 _apmod_extra_msg=" (all)"
16606 if test "$enable_dav_fs" != "no"; then
16609 { $as_echo "$as_me:$LINENO: result: $enable_dav_fs$_apmod_extra_msg" >&5
16610 $as_echo "$enable_dav_fs$_apmod_extra_msg" >&6; }
16611 if test "$enable_dav_fs" != "no"; then
16612 case "$enable_dav_fs" in
16614 enable_dav_fs=`echo $ac_n $enable_dav_fs$ac_c|sed 's/shared,*//'`
16617 DSO_MODULES="$DSO_MODULES dav_fs"
16620 MODLIST="$MODLIST dav_fs"
16621 if test "dav_fs" = "so"; then
16628 if test -z "$dav_fs_objects"; then
16629 objects="mod_dav_fs.lo"
16631 objects="$dav_fs_objects"
16634 if test -z "$module_standalone"; then
16635 if test -z "$shared"; then
16636 libname="mod_dav_fs.la"
16637 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16638 modpath_static="$modpath_static $libname"
16639 cat >>$modpath_current/modules.mk<<EOF
16641 \$(MOD_LINK) $objects \$(MOD_DAV_FS_LDADD)
16644 apache_need_shared=yes
16645 libname="mod_dav_fs.la"
16646 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16647 modpath_shared="$modpath_shared $libname"
16648 cat >>$modpath_current/modules.mk<<EOF
16649 $libname: $shobjects
16650 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_DAV_FS_LDADD)
16656 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_FS_LDADD"
16664 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
16665 echo "static = $modpath_static" >> $modpath_current/modules.mk
16666 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
16667 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
16668 MODULE_DIRS="$MODULE_DIRS $current_dir"
16670 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
16673 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
16680 current_dir=mappers
16681 modpath_current=modules/mappers
16684 test -d mappers || $srcdir/build/mkdir.sh $modpath_current
16685 > $modpath_current/modules.mk
16689 { $as_echo "$as_me:$LINENO: checking whether to enable mod_vhost_alias" >&5
16690 $as_echo_n "checking whether to enable mod_vhost_alias... " >&6; }
16691 # Check whether --enable-vhost-alias was given.
16692 if test "${enable_vhost_alias+set}" = set; then
16693 enableval=$enable_vhost_alias;
16695 enable_vhost_alias=most
16698 _apmod_extra_msg=""
16699 if test "$module_selection" = "most" -a "$enable_vhost_alias" = "most"; then
16700 _apmod_error_fatal="no"
16702 _apmod_error_fatal="yes"
16704 if test "$enable_vhost_alias" = "static"; then
16705 enable_vhost_alias=yes
16706 elif test "$enable_vhost_alias" = "yes"; then
16707 enable_vhost_alias=$module_default
16708 _apmod_extra_msg=" ($module_selection)"
16709 elif test "$enable_vhost_alias" = "most"; then
16710 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16711 enable_vhost_alias=$module_default
16712 _apmod_extra_msg=" ($module_selection)"
16713 elif test "$enable_vhost_alias" != "yes"; then
16714 enable_vhost_alias=no
16716 elif test "$enable_vhost_alias" = "maybe-all"; then
16717 if test "$module_selection" = "all"; then
16718 enable_vhost_alias=$module_default
16719 _apmod_extra_msg=" (all)"
16721 enable_vhost_alias=no
16724 if test "$enable_vhost_alias" != "no"; then
16727 { $as_echo "$as_me:$LINENO: result: $enable_vhost_alias$_apmod_extra_msg" >&5
16728 $as_echo "$enable_vhost_alias$_apmod_extra_msg" >&6; }
16729 if test "$enable_vhost_alias" != "no"; then
16730 case "$enable_vhost_alias" in
16732 enable_vhost_alias=`echo $ac_n $enable_vhost_alias$ac_c|sed 's/shared,*//'`
16735 DSO_MODULES="$DSO_MODULES vhost_alias"
16738 MODLIST="$MODLIST vhost_alias"
16739 if test "vhost_alias" = "so"; then
16746 if test -z ""; then
16747 objects="mod_vhost_alias.lo"
16752 if test -z "$module_standalone"; then
16753 if test -z "$shared"; then
16754 libname="mod_vhost_alias.la"
16755 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16756 modpath_static="$modpath_static $libname"
16757 cat >>$modpath_current/modules.mk<<EOF
16759 \$(MOD_LINK) $objects \$(MOD_VHOST_ALIAS_LDADD)
16762 apache_need_shared=yes
16763 libname="mod_vhost_alias.la"
16764 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16765 modpath_shared="$modpath_shared $libname"
16766 cat >>$modpath_current/modules.mk<<EOF
16767 $libname: $shobjects
16768 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_VHOST_ALIAS_LDADD)
16774 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VHOST_ALIAS_LDADD"
16781 { $as_echo "$as_me:$LINENO: checking whether to enable mod_negotiation" >&5
16782 $as_echo_n "checking whether to enable mod_negotiation... " >&6; }
16783 # Check whether --enable-negotiation was given.
16784 if test "${enable_negotiation+set}" = set; then
16785 enableval=$enable_negotiation;
16787 enable_negotiation=yes
16790 _apmod_extra_msg=""
16791 if test "$module_selection" = "most" -a "$enable_negotiation" = "most"; then
16792 _apmod_error_fatal="no"
16794 _apmod_error_fatal="yes"
16796 if test "$enable_negotiation" = "static"; then
16797 enable_negotiation=yes
16798 elif test "$enable_negotiation" = "yes"; then
16799 enable_negotiation=$module_default
16800 _apmod_extra_msg=" ($module_selection)"
16801 elif test "$enable_negotiation" = "most"; then
16802 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16803 enable_negotiation=$module_default
16804 _apmod_extra_msg=" ($module_selection)"
16805 elif test "$enable_negotiation" != "yes"; then
16806 enable_negotiation=no
16808 elif test "$enable_negotiation" = "maybe-all"; then
16809 if test "$module_selection" = "all"; then
16810 enable_negotiation=$module_default
16811 _apmod_extra_msg=" (all)"
16813 enable_negotiation=no
16816 if test "$enable_negotiation" != "no"; then
16819 { $as_echo "$as_me:$LINENO: result: $enable_negotiation$_apmod_extra_msg" >&5
16820 $as_echo "$enable_negotiation$_apmod_extra_msg" >&6; }
16821 if test "$enable_negotiation" != "no"; then
16822 case "$enable_negotiation" in
16824 enable_negotiation=`echo $ac_n $enable_negotiation$ac_c|sed 's/shared,*//'`
16827 DSO_MODULES="$DSO_MODULES negotiation"
16830 MODLIST="$MODLIST negotiation"
16831 if test "negotiation" = "so"; then
16838 if test -z ""; then
16839 objects="mod_negotiation.lo"
16844 if test -z "$module_standalone"; then
16845 if test -z "$shared"; then
16846 libname="mod_negotiation.la"
16847 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16848 modpath_static="$modpath_static $libname"
16849 cat >>$modpath_current/modules.mk<<EOF
16851 \$(MOD_LINK) $objects \$(MOD_NEGOTIATION_LDADD)
16854 apache_need_shared=yes
16855 libname="mod_negotiation.la"
16856 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16857 modpath_shared="$modpath_shared $libname"
16858 cat >>$modpath_current/modules.mk<<EOF
16859 $libname: $shobjects
16860 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_NEGOTIATION_LDADD)
16866 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_NEGOTIATION_LDADD"
16873 { $as_echo "$as_me:$LINENO: checking whether to enable mod_dir" >&5
16874 $as_echo_n "checking whether to enable mod_dir... " >&6; }
16875 # Check whether --enable-dir was given.
16876 if test "${enable_dir+set}" = set; then
16877 enableval=$enable_dir;
16882 _apmod_extra_msg=""
16883 if test "$module_selection" = "most" -a "$enable_dir" = "most"; then
16884 _apmod_error_fatal="no"
16886 _apmod_error_fatal="yes"
16888 if test "$enable_dir" = "static"; then
16890 elif test "$enable_dir" = "yes"; then
16891 enable_dir=$module_default
16892 _apmod_extra_msg=" ($module_selection)"
16893 elif test "$enable_dir" = "most"; then
16894 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16895 enable_dir=$module_default
16896 _apmod_extra_msg=" ($module_selection)"
16897 elif test "$enable_dir" != "yes"; then
16900 elif test "$enable_dir" = "maybe-all"; then
16901 if test "$module_selection" = "all"; then
16902 enable_dir=$module_default
16903 _apmod_extra_msg=" (all)"
16908 if test "$enable_dir" != "no"; then
16911 { $as_echo "$as_me:$LINENO: result: $enable_dir$_apmod_extra_msg" >&5
16912 $as_echo "$enable_dir$_apmod_extra_msg" >&6; }
16913 if test "$enable_dir" != "no"; then
16914 case "$enable_dir" in
16916 enable_dir=`echo $ac_n $enable_dir$ac_c|sed 's/shared,*//'`
16919 DSO_MODULES="$DSO_MODULES dir"
16922 MODLIST="$MODLIST dir"
16923 if test "dir" = "so"; then
16930 if test -z ""; then
16931 objects="mod_dir.lo"
16936 if test -z "$module_standalone"; then
16937 if test -z "$shared"; then
16938 libname="mod_dir.la"
16939 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16940 modpath_static="$modpath_static $libname"
16941 cat >>$modpath_current/modules.mk<<EOF
16943 \$(MOD_LINK) $objects \$(MOD_DIR_LDADD)
16946 apache_need_shared=yes
16947 libname="mod_dir.la"
16948 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16949 modpath_shared="$modpath_shared $libname"
16950 cat >>$modpath_current/modules.mk<<EOF
16951 $libname: $shobjects
16952 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_DIR_LDADD)
16958 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DIR_LDADD"
16965 { $as_echo "$as_me:$LINENO: checking whether to enable mod_imap" >&5
16966 $as_echo_n "checking whether to enable mod_imap... " >&6; }
16967 # Check whether --enable-imap was given.
16968 if test "${enable_imap+set}" = set; then
16969 enableval=$enable_imap;
16974 _apmod_extra_msg=""
16975 if test "$module_selection" = "most" -a "$enable_imap" = "most"; then
16976 _apmod_error_fatal="no"
16978 _apmod_error_fatal="yes"
16980 if test "$enable_imap" = "static"; then
16982 elif test "$enable_imap" = "yes"; then
16983 enable_imap=$module_default
16984 _apmod_extra_msg=" ($module_selection)"
16985 elif test "$enable_imap" = "most"; then
16986 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
16987 enable_imap=$module_default
16988 _apmod_extra_msg=" ($module_selection)"
16989 elif test "$enable_imap" != "yes"; then
16992 elif test "$enable_imap" = "maybe-all"; then
16993 if test "$module_selection" = "all"; then
16994 enable_imap=$module_default
16995 _apmod_extra_msg=" (all)"
17000 if test "$enable_imap" != "no"; then
17003 { $as_echo "$as_me:$LINENO: result: $enable_imap$_apmod_extra_msg" >&5
17004 $as_echo "$enable_imap$_apmod_extra_msg" >&6; }
17005 if test "$enable_imap" != "no"; then
17006 case "$enable_imap" in
17008 enable_imap=`echo $ac_n $enable_imap$ac_c|sed 's/shared,*//'`
17011 DSO_MODULES="$DSO_MODULES imap"
17014 MODLIST="$MODLIST imap"
17015 if test "imap" = "so"; then
17022 if test -z ""; then
17023 objects="mod_imap.lo"
17028 if test -z "$module_standalone"; then
17029 if test -z "$shared"; then
17030 libname="mod_imap.la"
17031 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17032 modpath_static="$modpath_static $libname"
17033 cat >>$modpath_current/modules.mk<<EOF
17035 \$(MOD_LINK) $objects \$(MOD_IMAP_LDADD)
17038 apache_need_shared=yes
17039 libname="mod_imap.la"
17040 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17041 modpath_shared="$modpath_shared $libname"
17042 cat >>$modpath_current/modules.mk<<EOF
17043 $libname: $shobjects
17044 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_IMAP_LDADD)
17050 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IMAP_LDADD"
17057 { $as_echo "$as_me:$LINENO: checking whether to enable mod_actions" >&5
17058 $as_echo_n "checking whether to enable mod_actions... " >&6; }
17059 # Check whether --enable-actions was given.
17060 if test "${enable_actions+set}" = set; then
17061 enableval=$enable_actions;
17066 _apmod_extra_msg=""
17067 if test "$module_selection" = "most" -a "$enable_actions" = "most"; then
17068 _apmod_error_fatal="no"
17070 _apmod_error_fatal="yes"
17072 if test "$enable_actions" = "static"; then
17074 elif test "$enable_actions" = "yes"; then
17075 enable_actions=$module_default
17076 _apmod_extra_msg=" ($module_selection)"
17077 elif test "$enable_actions" = "most"; then
17078 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17079 enable_actions=$module_default
17080 _apmod_extra_msg=" ($module_selection)"
17081 elif test "$enable_actions" != "yes"; then
17084 elif test "$enable_actions" = "maybe-all"; then
17085 if test "$module_selection" = "all"; then
17086 enable_actions=$module_default
17087 _apmod_extra_msg=" (all)"
17092 if test "$enable_actions" != "no"; then
17095 { $as_echo "$as_me:$LINENO: result: $enable_actions$_apmod_extra_msg" >&5
17096 $as_echo "$enable_actions$_apmod_extra_msg" >&6; }
17097 if test "$enable_actions" != "no"; then
17098 case "$enable_actions" in
17100 enable_actions=`echo $ac_n $enable_actions$ac_c|sed 's/shared,*//'`
17103 DSO_MODULES="$DSO_MODULES actions"
17106 MODLIST="$MODLIST actions"
17107 if test "actions" = "so"; then
17114 if test -z ""; then
17115 objects="mod_actions.lo"
17120 if test -z "$module_standalone"; then
17121 if test -z "$shared"; then
17122 libname="mod_actions.la"
17123 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17124 modpath_static="$modpath_static $libname"
17125 cat >>$modpath_current/modules.mk<<EOF
17127 \$(MOD_LINK) $objects \$(MOD_ACTIONS_LDADD)
17130 apache_need_shared=yes
17131 libname="mod_actions.la"
17132 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17133 modpath_shared="$modpath_shared $libname"
17134 cat >>$modpath_current/modules.mk<<EOF
17135 $libname: $shobjects
17136 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_ACTIONS_LDADD)
17142 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACTIONS_LDADD"
17149 { $as_echo "$as_me:$LINENO: checking whether to enable mod_speling" >&5
17150 $as_echo_n "checking whether to enable mod_speling... " >&6; }
17151 # Check whether --enable-speling was given.
17152 if test "${enable_speling+set}" = set; then
17153 enableval=$enable_speling;
17155 enable_speling=most
17158 _apmod_extra_msg=""
17159 if test "$module_selection" = "most" -a "$enable_speling" = "most"; then
17160 _apmod_error_fatal="no"
17162 _apmod_error_fatal="yes"
17164 if test "$enable_speling" = "static"; then
17166 elif test "$enable_speling" = "yes"; then
17167 enable_speling=$module_default
17168 _apmod_extra_msg=" ($module_selection)"
17169 elif test "$enable_speling" = "most"; then
17170 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17171 enable_speling=$module_default
17172 _apmod_extra_msg=" ($module_selection)"
17173 elif test "$enable_speling" != "yes"; then
17176 elif test "$enable_speling" = "maybe-all"; then
17177 if test "$module_selection" = "all"; then
17178 enable_speling=$module_default
17179 _apmod_extra_msg=" (all)"
17184 if test "$enable_speling" != "no"; then
17187 { $as_echo "$as_me:$LINENO: result: $enable_speling$_apmod_extra_msg" >&5
17188 $as_echo "$enable_speling$_apmod_extra_msg" >&6; }
17189 if test "$enable_speling" != "no"; then
17190 case "$enable_speling" in
17192 enable_speling=`echo $ac_n $enable_speling$ac_c|sed 's/shared,*//'`
17195 DSO_MODULES="$DSO_MODULES speling"
17198 MODLIST="$MODLIST speling"
17199 if test "speling" = "so"; then
17206 if test -z ""; then
17207 objects="mod_speling.lo"
17212 if test -z "$module_standalone"; then
17213 if test -z "$shared"; then
17214 libname="mod_speling.la"
17215 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17216 modpath_static="$modpath_static $libname"
17217 cat >>$modpath_current/modules.mk<<EOF
17219 \$(MOD_LINK) $objects \$(MOD_SPELING_LDADD)
17222 apache_need_shared=yes
17223 libname="mod_speling.la"
17224 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17225 modpath_shared="$modpath_shared $libname"
17226 cat >>$modpath_current/modules.mk<<EOF
17227 $libname: $shobjects
17228 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_SPELING_LDADD)
17234 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SPELING_LDADD"
17241 { $as_echo "$as_me:$LINENO: checking whether to enable mod_userdir" >&5
17242 $as_echo_n "checking whether to enable mod_userdir... " >&6; }
17243 # Check whether --enable-userdir was given.
17244 if test "${enable_userdir+set}" = set; then
17245 enableval=$enable_userdir;
17250 _apmod_extra_msg=""
17251 if test "$module_selection" = "most" -a "$enable_userdir" = "most"; then
17252 _apmod_error_fatal="no"
17254 _apmod_error_fatal="yes"
17256 if test "$enable_userdir" = "static"; then
17258 elif test "$enable_userdir" = "yes"; then
17259 enable_userdir=$module_default
17260 _apmod_extra_msg=" ($module_selection)"
17261 elif test "$enable_userdir" = "most"; then
17262 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17263 enable_userdir=$module_default
17264 _apmod_extra_msg=" ($module_selection)"
17265 elif test "$enable_userdir" != "yes"; then
17268 elif test "$enable_userdir" = "maybe-all"; then
17269 if test "$module_selection" = "all"; then
17270 enable_userdir=$module_default
17271 _apmod_extra_msg=" (all)"
17276 if test "$enable_userdir" != "no"; then
17279 { $as_echo "$as_me:$LINENO: result: $enable_userdir$_apmod_extra_msg" >&5
17280 $as_echo "$enable_userdir$_apmod_extra_msg" >&6; }
17281 if test "$enable_userdir" != "no"; then
17282 case "$enable_userdir" in
17284 enable_userdir=`echo $ac_n $enable_userdir$ac_c|sed 's/shared,*//'`
17287 DSO_MODULES="$DSO_MODULES userdir"
17290 MODLIST="$MODLIST userdir"
17291 if test "userdir" = "so"; then
17298 if test -z ""; then
17299 objects="mod_userdir.lo"
17304 if test -z "$module_standalone"; then
17305 if test -z "$shared"; then
17306 libname="mod_userdir.la"
17307 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17308 modpath_static="$modpath_static $libname"
17309 cat >>$modpath_current/modules.mk<<EOF
17311 \$(MOD_LINK) $objects \$(MOD_USERDIR_LDADD)
17314 apache_need_shared=yes
17315 libname="mod_userdir.la"
17316 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17317 modpath_shared="$modpath_shared $libname"
17318 cat >>$modpath_current/modules.mk<<EOF
17319 $libname: $shobjects
17320 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_USERDIR_LDADD)
17326 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERDIR_LDADD"
17333 { $as_echo "$as_me:$LINENO: checking whether to enable mod_alias" >&5
17334 $as_echo_n "checking whether to enable mod_alias... " >&6; }
17335 # Check whether --enable-alias was given.
17336 if test "${enable_alias+set}" = set; then
17337 enableval=$enable_alias;
17342 _apmod_extra_msg=""
17343 if test "$module_selection" = "most" -a "$enable_alias" = "most"; then
17344 _apmod_error_fatal="no"
17346 _apmod_error_fatal="yes"
17348 if test "$enable_alias" = "static"; then
17350 elif test "$enable_alias" = "yes"; then
17351 enable_alias=$module_default
17352 _apmod_extra_msg=" ($module_selection)"
17353 elif test "$enable_alias" = "most"; then
17354 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17355 enable_alias=$module_default
17356 _apmod_extra_msg=" ($module_selection)"
17357 elif test "$enable_alias" != "yes"; then
17360 elif test "$enable_alias" = "maybe-all"; then
17361 if test "$module_selection" = "all"; then
17362 enable_alias=$module_default
17363 _apmod_extra_msg=" (all)"
17368 if test "$enable_alias" != "no"; then
17371 { $as_echo "$as_me:$LINENO: result: $enable_alias$_apmod_extra_msg" >&5
17372 $as_echo "$enable_alias$_apmod_extra_msg" >&6; }
17373 if test "$enable_alias" != "no"; then
17374 case "$enable_alias" in
17376 enable_alias=`echo $ac_n $enable_alias$ac_c|sed 's/shared,*//'`
17379 DSO_MODULES="$DSO_MODULES alias"
17382 MODLIST="$MODLIST alias"
17383 if test "alias" = "so"; then
17390 if test -z ""; then
17391 objects="mod_alias.lo"
17396 if test -z "$module_standalone"; then
17397 if test -z "$shared"; then
17398 libname="mod_alias.la"
17399 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17400 modpath_static="$modpath_static $libname"
17401 cat >>$modpath_current/modules.mk<<EOF
17403 \$(MOD_LINK) $objects \$(MOD_ALIAS_LDADD)
17406 apache_need_shared=yes
17407 libname="mod_alias.la"
17408 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17409 modpath_shared="$modpath_shared $libname"
17410 cat >>$modpath_current/modules.mk<<EOF
17411 $libname: $shobjects
17412 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_ALIAS_LDADD)
17418 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ALIAS_LDADD"
17426 { $as_echo "$as_me:$LINENO: checking whether to enable mod_rewrite" >&5
17427 $as_echo_n "checking whether to enable mod_rewrite... " >&6; }
17428 # Check whether --enable-rewrite was given.
17429 if test "${enable_rewrite+set}" = set; then
17430 enableval=$enable_rewrite;
17432 enable_rewrite=most
17435 _apmod_extra_msg=""
17436 if test "$module_selection" = "most" -a "$enable_rewrite" = "most"; then
17437 _apmod_error_fatal="no"
17439 _apmod_error_fatal="yes"
17441 if test "$enable_rewrite" = "static"; then
17443 elif test "$enable_rewrite" = "yes"; then
17444 enable_rewrite=$module_default
17445 _apmod_extra_msg=" ($module_selection)"
17446 elif test "$enable_rewrite" = "most"; then
17447 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17448 enable_rewrite=$module_default
17449 _apmod_extra_msg=" ($module_selection)"
17450 elif test "$enable_rewrite" != "yes"; then
17453 elif test "$enable_rewrite" = "maybe-all"; then
17454 if test "$module_selection" = "all"; then
17455 enable_rewrite=$module_default
17456 _apmod_extra_msg=" (all)"
17461 if test "$enable_rewrite" != "no"; then
17464 { $as_echo "$as_me:$LINENO: result: $enable_rewrite$_apmod_extra_msg" >&5
17465 $as_echo "$enable_rewrite$_apmod_extra_msg" >&6; }
17466 if test "$enable_rewrite" != "no"; then
17467 case "$enable_rewrite" in
17469 enable_rewrite=`echo $ac_n $enable_rewrite$ac_c|sed 's/shared,*//'`
17472 DSO_MODULES="$DSO_MODULES rewrite"
17475 MODLIST="$MODLIST rewrite"
17476 if test "rewrite" = "so"; then
17483 if test -z ""; then
17484 objects="mod_rewrite.lo"
17489 if test -z "$module_standalone"; then
17490 if test -z "$shared"; then
17491 libname="mod_rewrite.la"
17492 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17493 modpath_static="$modpath_static $libname"
17494 cat >>$modpath_current/modules.mk<<EOF
17496 \$(MOD_LINK) $objects \$(MOD_REWRITE_LDADD)
17499 apache_need_shared=yes
17500 libname="mod_rewrite.la"
17501 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17502 modpath_shared="$modpath_shared $libname"
17503 cat >>$modpath_current/modules.mk<<EOF
17504 $libname: $shobjects
17505 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_REWRITE_LDADD)
17511 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REWRITE_LDADD"
17520 apr_old_cppflags=$CPPFLAGS
17521 CPPFLAGS="$CPPFLAGS $INCLUDES"
17522 cat >conftest.$ac_ext <<_ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17536 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
17537 ac_cv_define_APR_HAS_DSO=yes
17539 ac_cv_define_APR_HAS_DSO=no
17543 CPPFLAGS=$apr_old_cppflags
17546 case "x$enable_so" in
17548 if test $ac_cv_define_APR_HAS_DSO = "no"; then
17549 { { $as_echo "$as_me:$LINENO: error: mod_so has been requested but cannot be built on your system" >&5
17550 $as_echo "$as_me: error: mod_so has been requested but cannot be built on your system" >&2;}
17551 { (exit 1); exit 1; }; }
17555 { { $as_echo "$as_me:$LINENO: error: mod_so can not be built as a shared DSO" >&5
17556 $as_echo "$as_me: error: mod_so can not be built as a shared DSO" >&2;}
17557 { (exit 1); exit 1; }; }
17562 enable_so=$ac_cv_define_APR_HAS_DSO
17566 if test "x$enable_so" = "xyes"; then
17570 if test "$sharedobjs" = "yes"; then
17571 if test $ac_cv_define_APR_HAS_DSO = "no"; then
17572 { { $as_echo "$as_me:$LINENO: error: shared objects have been requested but cannot be built since mod_so cannot be built" >&5
17573 $as_echo "$as_me: error: shared objects have been requested but cannot be built since mod_so cannot be built" >&2;}
17574 { (exit 1); exit 1; }; }
17575 elif test $enable_so = "no"; then
17576 { { $as_echo "$as_me:$LINENO: error: shared objects have been requested but cannot be built since mod_so was disabled" >&5
17577 $as_echo "$as_me: error: shared objects have been requested but cannot be built since mod_so was disabled" >&2;}
17578 { (exit 1); exit 1; }; }
17583 { $as_echo "$as_me:$LINENO: checking whether to enable mod_so" >&5
17584 $as_echo_n "checking whether to enable mod_so... " >&6; }
17585 # Check whether --enable-so was given.
17586 if test "${enable_so+set}" = set; then
17587 enableval=$enable_so;
17589 enable_so=$enable_so
17592 _apmod_extra_msg=""
17593 if test "$module_selection" = "most" -a "$enable_so" = "most"; then
17594 _apmod_error_fatal="no"
17596 _apmod_error_fatal="yes"
17598 if test "$enable_so" = "static"; then
17600 elif test "$enable_so" = "yes"; then
17601 enable_so=$module_default
17602 _apmod_extra_msg=" ($module_selection)"
17603 elif test "$enable_so" = "most"; then
17604 if test "$module_selection" = "most" -o "$module_selection" = "all"; then
17605 enable_so=$module_default
17606 _apmod_extra_msg=" ($module_selection)"
17607 elif test "$enable_so" != "yes"; then
17610 elif test "$enable_so" = "maybe-all"; then
17611 if test "$module_selection" = "all"; then
17612 enable_so=$module_default
17613 _apmod_extra_msg=" (all)"
17618 if test "$enable_so" != "no"; then
17621 { $as_echo "$as_me:$LINENO: result: $enable_so$_apmod_extra_msg" >&5
17622 $as_echo "$enable_so$_apmod_extra_msg" >&6; }
17623 if test "$enable_so" != "no"; then
17624 case "$enable_so" in
17626 enable_so=`echo $ac_n $enable_so$ac_c|sed 's/shared,*//'`
17629 DSO_MODULES="$DSO_MODULES so"
17632 MODLIST="$MODLIST so"
17633 if test "so" = "so"; then
17640 if test -z ""; then
17641 objects="mod_so.lo"
17646 if test -z "$module_standalone"; then
17647 if test -z "$shared"; then
17648 libname="mod_so.la"
17649 BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17650 modpath_static="$modpath_static $libname"
17651 cat >>$modpath_current/modules.mk<<EOF
17653 \$(MOD_LINK) $objects \$(MOD_SO_LDADD)
17656 apache_need_shared=yes
17657 libname="mod_so.la"
17658 shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17659 modpath_shared="$modpath_shared $libname"
17660 cat >>$modpath_current/modules.mk<<EOF
17661 $libname: $shobjects
17662 \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_SO_LDADD)
17668 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SO_LDADD"
17675 cat >confcache <<\_ACEOF
17676 # This file is a shell script that caches the results of configure
17677 # tests run on this system so they can be shared between configure
17678 # scripts and configure runs, see configure's option --config-cache.
17679 # It is not useful on other systems. If it contains results you don't
17680 # want to keep, you may remove or edit it.
17682 # config.status only pays attention to the cache file if you give it
17683 # the --recheck option to rerun configure.
17685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17687 # following values.
17691 # The following way of writing the cache mishandles newlines in values,
17692 # but we know of no workaround that is simple, portable, and efficient.
17693 # So, we kill variables containing newlines.
17694 # Ultrix sh set writes to stderr and can't be redirected directly,
17695 # and sets the high bit in the cache file unless we assign to the vars.
17697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17698 eval ac_val=\$$ac_var
17702 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17706 _ | IFS | as_nl) ;; #(
17707 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17708 *) $as_unset $ac_var ;;
17714 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17715 *${as_nl}ac_space=\ *)
17716 # `set' does not quote correctly, so add quotes (double-quote
17717 # substitution turns \\\\ into \\, and sed turns \\ into \).
17720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17723 # `set' quotes correctly as required by POSIX, so do not add quotes.
17724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17733 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17738 if test -w "$cache_file"; then
17739 test "x$cache_file" != "x/dev/null" &&
17740 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17741 $as_echo "$as_me: updating cache $cache_file" >&6;}
17742 cat confcache >$cache_file
17744 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17745 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17751 echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
17752 echo "static = $modpath_static" >> $modpath_current/modules.mk
17753 echo "shared = $modpath_shared" >> $modpath_current/modules.mk
17754 if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
17755 MODULE_DIRS="$MODULE_DIRS $current_dir"
17757 MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
17760 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
17767 APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
17771 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_LIB"
17775 APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS"
17779 APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_DIR"
17783 APACHE_VAR_SUBST="$APACHE_VAR_SUBST BUILTIN_LIBS"
17787 APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLIBPATH_VAR"
17791 APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_SPECIFIC_VARS"
17795 PRE_SHARED_CMDS='echo ""'
17796 POST_SHARED_CMDS='echo ""'
17799 if test "$apache_need_shared" = "yes"; then
17800 if test -f $ac_aux_dir/ltconfig; then
17801 $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
17803 shared_build="shared-build"
17807 if test "$enable_so" = "yes"; then
17810 HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
17811 SH_LDFLAGS="$SH_LDFLAGS \$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
17812 UTIL_LDFLAGS="$UTIL_LDFLAGS -Wl,-uXML_Parse"
17815 SH_LDFLAGS='$(top_builddir)/_APP_'
17816 PRE_SHARED_CMDS='ln -s $(top_builddir)/httpd $(top_builddir)/_APP_'
17817 POST_SHARED_CMDS='rm $(top_builddir)/_APP_'
17820 HTTPD_LDFLAGS="$HTTPD_LDFLAGS --main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
17821 SH_LDFLAGS="$SH_LDFLAGS --core-dll=$abs_srcdir/apachecore.dll"
17826 APACHE_VAR_SUBST="$APACHE_VAR_SUBST PRE_SHARED_CMDS"
17830 APACHE_VAR_SUBST="$APACHE_VAR_SUBST POST_SHARED_CMDS"
17834 APACHE_VAR_SUBST="$APACHE_VAR_SUBST shared_build"
17839 # Check whether --with-program-name was given.
17840 if test "${with_program_name+set}" = set; then
17841 withval=$with_program_name;
17842 progname="$withval"
17849 # SuExec parameters
17851 # Check whether --with-suexec-bin was given.
17852 if test "${with_suexec_bin+set}" = set; then
17853 withval=$with_suexec_bin;
17855 cat >>confdefs.h <<_ACEOF
17856 #define SUEXEC_BIN "$withval"
17864 # Check whether --with-suexec-caller was given.
17865 if test "${with_suexec_caller+set}" = set; then
17866 withval=$with_suexec_caller;
17868 cat >>confdefs.h <<_ACEOF
17869 #define AP_HTTPD_USER "$withval"
17876 # Check whether --with-suexec-userdir was given.
17877 if test "${with_suexec_userdir+set}" = set; then
17878 withval=$with_suexec_userdir;
17880 cat >>confdefs.h <<_ACEOF
17881 #define AP_USERDIR_SUFFIX "$withval"
17888 # Check whether --with-suexec-docroot was given.
17889 if test "${with_suexec_docroot+set}" = set; then
17890 withval=$with_suexec_docroot;
17892 cat >>confdefs.h <<_ACEOF
17893 #define AP_DOC_ROOT "$withval"
17900 # Check whether --with-suexec-uidmin was given.
17901 if test "${with_suexec_uidmin+set}" = set; then
17902 withval=$with_suexec_uidmin;
17904 cat >>confdefs.h <<_ACEOF
17905 #define AP_UID_MIN $withval
17912 # Check whether --with-suexec-gidmin was given.
17913 if test "${with_suexec_gidmin+set}" = set; then
17914 withval=$with_suexec_gidmin;
17916 cat >>confdefs.h <<_ACEOF
17917 #define AP_GID_MIN $withval
17924 # Check whether --with-suexec-logfile was given.
17925 if test "${with_suexec_logfile+set}" = set; then
17926 withval=$with_suexec_logfile;
17928 cat >>confdefs.h <<_ACEOF
17929 #define AP_LOG_EXEC "$withval"
17936 # Check whether --with-suexec-safepath was given.
17937 if test "${with_suexec_safepath+set}" = set; then
17938 withval=$with_suexec_safepath;
17940 cat >>confdefs.h <<_ACEOF
17941 #define AP_SAFE_PATH "$withval"
17948 # Check whether --with-suexec-umask was given.
17949 if test "${with_suexec_umask+set}" = set; then
17950 withval=$with_suexec_umask;
17952 cat >>confdefs.h <<_ACEOF
17953 #define AP_SUEXEC_UMASK 0$withval
17959 AP_LIBS="$abs_builddir/srclib/pcre/libpcre.la $AP_LIBS"
17961 AP_LIBS="$AP_LIBS `$apu_config --link-libtool --libs` `$apr_config --link-libtool --libs`"
17963 APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIBS"
17967 APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_BUILD_SRCLIB_DIRS"
17971 APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_CLEAN_SRCLIB_DIRS"
17976 cat >>confdefs.h <<\_ACEOF
17977 #define AP_USING_AUTOCONF 1
17981 if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then
17983 cat >>confdefs.h <<\_ACEOF
17984 #define SINGLE_LISTEN_UNSERIALIZED_ACCEPT 1
17989 if test "$AP_NONBLOCK_WHEN_MULTI_LISTEN" = "1"; then
17991 cat >>confdefs.h <<\_ACEOF
17992 #define AP_NONBLOCK_WHEN_MULTI_LISTEN 1
17998 cat >>confdefs.h <<_ACEOF
17999 #define AP_SIG_GRACEFUL SIG$AP_SIG_GRACEFUL
18003 cat >>confdefs.h <<_ACEOF
18004 #define AP_SIG_GRACEFUL_STRING "SIG$AP_SIG_GRACEFUL"
18008 cat >>confdefs.h <<_ACEOF
18009 #define AP_SIG_GRACEFUL_SHORT $AP_SIG_GRACEFUL
18012 AP_SIG_GRACEFUL_SHORT=$AP_SIG_GRACEFUL
18013 AP_SIG_GRACEFUL=SIG$AP_SIG_GRACEFUL_SHORT
18018 if test "$cross_compiling" = "no"; then
18020 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18021 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18022 if test "${ac_cv_c_bigendian+set}" = set; then
18023 $as_echo_n "(cached) " >&6
18025 ac_cv_c_bigendian=unknown
18026 # See if we're dealing with a universal compiler.
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 #ifndef __APPLE_CC__
18034 not a universal capable compiler
18039 rm -f conftest.$ac_objext
18040 if { (ac_try="$ac_compile"
18041 case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18046 $as_echo "$ac_try_echo") >&5
18047 (eval "$ac_compile") 2>conftest.er1
18049 grep -v '^ *+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } && {
18054 test -z "$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18056 } && test -s conftest.$ac_objext; then
18058 # Check for potential -arch flags. It is not universal unless
18059 # there are some -arch flags. Note that *ppc* also matches
18060 # ppc64. This check is also rather less than ideal.
18061 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
18062 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
18065 $as_echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072 if test $ac_cv_c_bigendian = unknown; then
18073 # See if sys/param.h defines the BYTE_ORDER macro.
18074 cat >conftest.$ac_ext <<_ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18080 #include <sys/types.h>
18081 #include <sys/param.h>
18086 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18087 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18089 bogus endian macros
18096 rm -f conftest.$ac_objext
18097 if { (ac_try="$ac_compile"
18098 case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18103 $as_echo "$ac_try_echo") >&5
18104 (eval "$ac_compile") 2>conftest.er1
18106 grep -v '^ *+' conftest.er1 >conftest.err
18108 cat conftest.err >&5
18109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } && {
18111 test -z "$ac_c_werror_flag" ||
18112 test ! -s conftest.err
18113 } && test -s conftest.$ac_objext; then
18114 # It does; now see whether it defined to BIG_ENDIAN or not.
18115 cat >conftest.$ac_ext <<_ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 #include <sys/types.h>
18122 #include <sys/param.h>
18127 #if BYTE_ORDER != BIG_ENDIAN
18135 rm -f conftest.$ac_objext
18136 if { (ac_try="$ac_compile"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18142 $as_echo "$ac_try_echo") >&5
18143 (eval "$ac_compile") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest.$ac_objext; then
18153 ac_cv_c_bigendian=yes
18155 $as_echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18158 ac_cv_c_bigendian=no
18161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18163 $as_echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171 if test $ac_cv_c_bigendian = unknown; then
18172 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18173 cat >conftest.$ac_ext <<_ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 #include <limits.h>
18184 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18185 bogus endian macros
18192 rm -f conftest.$ac_objext
18193 if { (ac_try="$ac_compile"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18199 $as_echo "$ac_try_echo") >&5
18200 (eval "$ac_compile") 2>conftest.er1
18202 grep -v '^ *+' conftest.er1 >conftest.err
18204 cat conftest.err >&5
18205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && {
18207 test -z "$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 } && test -s conftest.$ac_objext; then
18210 # It does; now see whether it defined to _BIG_ENDIAN or not.
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18217 #include <limits.h>
18222 #ifndef _BIG_ENDIAN
18230 rm -f conftest.$ac_objext
18231 if { (ac_try="$ac_compile"
18232 case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18237 $as_echo "$ac_try_echo") >&5
18238 (eval "$ac_compile") 2>conftest.er1
18240 grep -v '^ *+' conftest.er1 >conftest.err
18242 cat conftest.err >&5
18243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } && {
18245 test -z "$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 } && test -s conftest.$ac_objext; then
18248 ac_cv_c_bigendian=yes
18250 $as_echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 ac_cv_c_bigendian=no
18256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 $as_echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18266 if test $ac_cv_c_bigendian = unknown; then
18267 # Compile a test program.
18268 if test "$cross_compiling" = yes; then
18269 # Try to guess by grepping values from an object file.
18270 cat >conftest.$ac_ext <<_ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 short int ascii_mm[] =
18277 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18278 short int ascii_ii[] =
18279 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18280 int use_ascii (int i) {
18281 return ascii_mm[i] + ascii_ii[i];
18283 short int ebcdic_ii[] =
18284 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18285 short int ebcdic_mm[] =
18286 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18287 int use_ebcdic (int i) {
18288 return ebcdic_mm[i] + ebcdic_ii[i];
18295 return use_ascii (foo) == use_ebcdic (foo);
18300 rm -f conftest.$ac_objext
18301 if { (ac_try="$ac_compile"
18302 case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18307 $as_echo "$ac_try_echo") >&5
18308 (eval "$ac_compile") 2>conftest.er1
18310 grep -v '^ *+' conftest.er1 >conftest.err
18312 cat conftest.err >&5
18313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } && {
18315 test -z "$ac_c_werror_flag" ||
18316 test ! -s conftest.err
18317 } && test -s conftest.$ac_objext; then
18318 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18319 ac_cv_c_bigendian=yes
18321 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18322 if test "$ac_cv_c_bigendian" = unknown; then
18323 ac_cv_c_bigendian=no
18325 # finding both strings is unlikely to happen, but who knows?
18326 ac_cv_c_bigendian=unknown
18330 $as_echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18344 $ac_includes_default
18349 /* Are we little or big endian? From Harbison&Steele. */
18353 char c[sizeof (long int)];
18356 return u.c[sizeof (long int) - 1] == 1;
18362 rm -f conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18369 $as_echo "$ac_try_echo") >&5
18370 (eval "$ac_link") 2>&5
18372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18374 { (case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18379 $as_echo "$ac_try_echo") >&5
18380 (eval "$ac_try") 2>&5
18382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 ac_cv_c_bigendian=no
18386 $as_echo "$as_me: program exited with status $ac_status" >&5
18387 $as_echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ( exit $ac_status )
18391 ac_cv_c_bigendian=yes
18393 rm -rf conftest.dSYM
18394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18400 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18401 $as_echo "$ac_cv_c_bigendian" >&6; }
18402 case $ac_cv_c_bigendian in #(
18404 cat >>confdefs.h <<\_ACEOF
18405 #define WORDS_BIGENDIAN 1
18412 cat >>confdefs.h <<\_ACEOF
18413 #define AC_APPLE_UNIVERSAL_BUILD 1
18418 { { $as_echo "$as_me:$LINENO: error: unknown endianness
18419 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
18420 $as_echo "$as_me: error: unknown endianness
18421 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
18422 { (exit 1); exit 1; }; } ;;
18427 cat >>confdefs.h <<\_ACEOF
18428 #define AP_UNKNOWN_BYTE_ORDER 1
18434 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES Makefile modules/Makefile srclib/Makefile"
18437 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/beos/Makefile os/os2/Makefile os/Makefile"
18440 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/unix/Makefile server/Makefile"
18443 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES support/Makefile srclib/pcre/Makefile"
18446 if test -d ./test; then
18448 APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"
18452 echo $ac_n "${nl}Restore user-defined environment settings...${nl}"
18455 if test "x$apr_ste_save_CPPFLAGS" = "x"; then
18456 EXTRA_CPPFLAGS="$CPPFLAGS"
18459 if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
18462 EXTRA_CPPFLAGS=`echo $CPPFLAGS | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
18463 CPPFLAGS="$apr_ste_save_CPPFLAGS"
18466 echo " restoring CPPFLAGS to \"$CPPFLAGS\""
18467 echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
18471 if test "x$apr_ste_save_CFLAGS" = "x"; then
18472 EXTRA_CFLAGS="$CFLAGS"
18475 if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
18478 EXTRA_CFLAGS=`echo $CFLAGS | sed -e "s%${apr_ste_save_CFLAGS}%%"`
18479 CFLAGS="$apr_ste_save_CFLAGS"
18482 echo " restoring CFLAGS to \"$CFLAGS\""
18483 echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
18487 if test "x$apr_ste_save_CXXFLAGS" = "x"; then
18488 EXTRA_CXXFLAGS="$CXXFLAGS"
18491 if test "x$apr_ste_save_CXXFLAGS" = "x$CXXFLAGS"; then
18494 EXTRA_CXXFLAGS=`echo $CXXFLAGS | sed -e "s%${apr_ste_save_CXXFLAGS}%%"`
18495 CXXFLAGS="$apr_ste_save_CXXFLAGS"
18498 echo " restoring CXXFLAGS to \"$CXXFLAGS\""
18499 echo " setting EXTRA_CXXFLAGS to \"$EXTRA_CXXFLAGS\""
18503 if test "x$apr_ste_save_LDFLAGS" = "x"; then
18504 EXTRA_LDFLAGS="$LDFLAGS"
18507 if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
18510 EXTRA_LDFLAGS=`echo $LDFLAGS | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
18511 LDFLAGS="$apr_ste_save_LDFLAGS"
18514 echo " restoring LDFLAGS to \"$LDFLAGS\""
18515 echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
18519 if test "x$apr_ste_save_LIBS" = "x"; then
18523 if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
18526 EXTRA_LIBS=`echo $LIBS | sed -e "s%${apr_ste_save_LIBS}%%"`
18527 LIBS="$apr_ste_save_LIBS"
18530 echo " restoring LIBS to \"$LIBS\""
18531 echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\""
18535 if test "x$apr_ste_save_INCLUDES" = "x"; then
18536 EXTRA_INCLUDES="$INCLUDES"
18539 if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
18542 EXTRA_INCLUDES=`echo $INCLUDES | sed -e "s%${apr_ste_save_INCLUDES}%%"`
18543 INCLUDES="$apr_ste_save_INCLUDES"
18546 echo " restoring INCLUDES to \"$INCLUDES\""
18547 echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
18551 echo $ac_n "${nl}Construct makefiles and header files...${nl}"
18555 APACHE_VAR_SUBST="$APACHE_VAR_SUBST abs_srcdir"
18559 APACHE_VAR_SUBST="$APACHE_VAR_SUBST bindir"
18563 APACHE_VAR_SUBST="$APACHE_VAR_SUBST sbindir"
18567 APACHE_VAR_SUBST="$APACHE_VAR_SUBST cgidir"
18571 APACHE_VAR_SUBST="$APACHE_VAR_SUBST logfiledir"
18575 APACHE_VAR_SUBST="$APACHE_VAR_SUBST exec_prefix"
18579 APACHE_VAR_SUBST="$APACHE_VAR_SUBST datadir"
18583 APACHE_VAR_SUBST="$APACHE_VAR_SUBST localstatedir"
18587 APACHE_VAR_SUBST="$APACHE_VAR_SUBST mandir"
18591 APACHE_VAR_SUBST="$APACHE_VAR_SUBST libdir"
18595 APACHE_VAR_SUBST="$APACHE_VAR_SUBST libexecdir"
18599 APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdocsdir"
18603 APACHE_VAR_SUBST="$APACHE_VAR_SUBST manualdir"
18607 APACHE_VAR_SUBST="$APACHE_VAR_SUBST includedir"
18611 APACHE_VAR_SUBST="$APACHE_VAR_SUBST errordir"
18615 APACHE_VAR_SUBST="$APACHE_VAR_SUBST iconsdir"
18619 APACHE_VAR_SUBST="$APACHE_VAR_SUBST sysconfdir"
18623 APACHE_VAR_SUBST="$APACHE_VAR_SUBST installbuilddir"
18627 APACHE_VAR_SUBST="$APACHE_VAR_SUBST runtimedir"
18631 APACHE_VAR_SUBST="$APACHE_VAR_SUBST proxycachedir"
18635 APACHE_VAR_SUBST="$APACHE_VAR_SUBST other_targets"
18639 APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
18643 APACHE_VAR_SUBST="$APACHE_VAR_SUBST prefix"
18647 APACHE_VAR_SUBST="$APACHE_VAR_SUBST AWK"
18651 APACHE_VAR_SUBST="$APACHE_VAR_SUBST CC"
18655 APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPP"
18659 APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXX"
18663 APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPPFLAGS"
18667 APACHE_VAR_SUBST="$APACHE_VAR_SUBST CFLAGS"
18671 APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXXFLAGS"
18675 APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTFLAGS"
18679 APACHE_VAR_SUBST="$APACHE_VAR_SUBST LDFLAGS"
18683 APACHE_VAR_SUBST="$APACHE_VAR_SUBST LT_LDFLAGS"
18687 APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LDFLAGS"
18691 APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_LDFLAGS"
18695 APACHE_VAR_SUBST="$APACHE_VAR_SUBST UTIL_LDFLAGS"
18699 APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBS"
18703 APACHE_VAR_SUBST="$APACHE_VAR_SUBST DEFS"
18707 APACHE_VAR_SUBST="$APACHE_VAR_SUBST INCLUDES"
18711 APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CPPFLAGS"
18715 APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CFLAGS"
18719 APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CXXFLAGS"
18723 APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LDFLAGS"
18727 APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LIBS"
18731 APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CPPFLAGS"
18735 APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CFLAGS"
18739 APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CXXFLAGS"
18743 APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LDFLAGS"
18747 APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LIBS"
18751 APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_INCLUDES"
18755 APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBTOOL"
18759 APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHELL"
18763 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_DIRS"
18767 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_CLEANDIRS"
18771 APACHE_VAR_SUBST="$APACHE_VAR_SUBST PORT"
18775 APACHE_VAR_SUBST="$APACHE_VAR_SUBST nonssl_listen_stmt_1"
18779 APACHE_VAR_SUBST="$APACHE_VAR_SUBST nonssl_listen_stmt_2"
18783 APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB_FILE"
18787 APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB"
18791 APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBS"
18795 APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBTOOL"
18799 APACHE_VAR_SUBST="$APACHE_VAR_SUBST MK_IMPLIB"
18803 APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_PROG_FLAGS"
18807 APACHE_VAR_SUBST="$APACHE_VAR_SUBST DSO_MODULES"
18811 APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_BINDIR"
18815 APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_INCLUDEDIR"
18819 APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_BINDIR"
18823 APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_INCLUDEDIR"
18827 abs_srcdir="`(cd $srcdir && pwd)`"
18829 echo creating config_vars.mk
18830 test -d build || $mkdir_p build
18831 > build/config_vars.mk
18832 for i in $APACHE_VAR_SUBST; do
18833 eval echo "$i = \$$i" >> build/config_vars.mk
18838 echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c
18843 while test "x${ap_cur}" != "x${ap_last}";
18845 ap_last="${ap_cur}"
18846 ap_cur=`eval "echo ${ap_cur}"`
18848 ap_prefix="${ap_cur}"
18851 cat >>confdefs.h <<_ACEOF
18852 #define HTTPD_ROOT "${ap_prefix}"
18856 cat >>confdefs.h <<_ACEOF
18857 #define SERVER_CONFIG_FILE "${rel_sysconfdir}/${progname}.conf"
18861 cat >>confdefs.h <<_ACEOF
18862 #define AP_TYPES_CONFIG_FILE "${rel_sysconfdir}/mime.types"
18866 cat >>confdefs.h <<_ACEOF
18867 #define APACHE_MPM_DIR "$MPM_DIR"
18871 perlbin=`$ac_aux_dir/PrintPath perl`
18872 if test "x$perlbin" = "x"; then
18873 perlbin="/replace/with/path/to/perl/interpreter"
18879 ap_make_include=include
18880 ap_make_delimiter=' '
18883 # Check whether they've installed GNU make
18884 if make --version > /dev/null 2>&1; then
18888 ap_make_include=.include
18889 ap_make_delimiter='"'
18896 test -d docs/conf||$mkdir_p docs/conf
18898 HTTPD_VERSION=`$srcdir/build/get-version.sh all $srcdir/include/ap_release.h AP_SERVER`
18901 ac_config_files="$ac_config_files $APACHE_OUTPUT_FILES docs/conf/httpd-std.conf docs/conf/ssl-std.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk build/pkg/pkginfo"
18903 ac_config_commands="$ac_config_commands default"
18905 cat >confcache <<\_ACEOF
18906 # This file is a shell script that caches the results of configure
18907 # tests run on this system so they can be shared between configure
18908 # scripts and configure runs, see configure's option --config-cache.
18909 # It is not useful on other systems. If it contains results you don't
18910 # want to keep, you may remove or edit it.
18912 # config.status only pays attention to the cache file if you give it
18913 # the --recheck option to rerun configure.
18915 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18916 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18917 # following values.
18921 # The following way of writing the cache mishandles newlines in values,
18922 # but we know of no workaround that is simple, portable, and efficient.
18923 # So, we kill variables containing newlines.
18924 # Ultrix sh set writes to stderr and can't be redirected directly,
18925 # and sets the high bit in the cache file unless we assign to the vars.
18927 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18928 eval ac_val=\$$ac_var
18932 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18933 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18936 _ | IFS | as_nl) ;; #(
18937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18938 *) $as_unset $ac_var ;;
18944 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18945 *${as_nl}ac_space=\ *)
18946 # `set' does not quote correctly, so add quotes (double-quote
18947 # substitution turns \\\\ into \\, and sed turns \\ into \).
18950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18953 # `set' quotes correctly as required by POSIX, so do not add quotes.
18954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18967 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18968 if test -w "$cache_file"; then
18969 test "x$cache_file" != "x/dev/null" &&
18970 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18971 $as_echo "$as_me: updating cache $cache_file" >&6;}
18972 cat confcache >$cache_file
18974 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18975 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18981 # Let make expand exec_prefix.
18982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18984 DEFS=-DHAVE_CONFIG_H
18988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18989 # 1. Remove the extension, and $U if already installed.
18990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18991 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18993 # will be set to the directory where LIBOBJS objects are built.
18994 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18995 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18997 LIBOBJS=$ac_libobjs
18999 LTLIBOBJS=$ac_ltlibobjs
19004 : ${CONFIG_STATUS=./config.status}
19006 ac_clean_files_save=$ac_clean_files
19007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19008 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19009 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19010 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19012 # Generated by $as_me.
19013 # Run this file to recreate the current configuration.
19014 # Compiler output produced by configure, useful for debugging
19015 # configure, is in config.log if it exists.
19018 ac_cs_recheck=false
19020 SHELL=\${CONFIG_SHELL-$SHELL}
19023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19024 ## --------------------- ##
19025 ## M4sh Initialization. ##
19026 ## --------------------- ##
19028 # Be more Bourne compatible
19029 DUALCASE=1; export DUALCASE # for MKS sh
19030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19033 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19034 # is contrary to our usage. Disable this feature.
19035 alias -g '${1+"$@"}'='"$@"'
19036 setopt NO_GLOB_SUBST
19038 case `(set -o) 2>/dev/null` in
19039 *posix*) set -o posix ;;
19048 # Avoid depending upon Character Ranges.
19049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19052 as_cr_digits='0123456789'
19053 as_cr_alnum=$as_cr_Letters$as_cr_digits
19058 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19059 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19062 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19063 as_echo='printf %s\n'
19064 as_echo_n='printf %s'
19066 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19067 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19068 as_echo_n='/usr/ucb/echo -n'
19070 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19071 as_echo_n_body='eval
19075 expr "X$arg" : "X\\(.*\\)$as_nl";
19076 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19078 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19080 export as_echo_n_body
19081 as_echo_n='sh -c $as_echo_n_body as_echo'
19083 export as_echo_body
19084 as_echo='sh -c $as_echo_body as_echo'
19087 # The user is always right.
19088 if test "${PATH_SEPARATOR+set}" != set; then
19090 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19091 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19096 # Support unset when possible.
19097 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19105 # We need space, tab and new line, in precisely that order. Quoting is
19106 # there to prevent editors from complaining about space-tab.
19107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19108 # splitting by setting IFS to empty value.)
19111 # Find who we are. Look in the path if we contain no directory separator.
19113 *[\\/]* ) as_myself=$0 ;;
19114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19115 for as_dir in $PATH
19118 test -z "$as_dir" && as_dir=.
19119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19125 # We did not find ourselves, most probably we were run as `sh COMMAND'
19126 # in which case we are not to be found in the path.
19127 if test "x$as_myself" = x; then
19130 if test ! -f "$as_myself"; then
19131 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19132 { (exit 1); exit 1; }
19135 # Work around bugs in pre-3.0 UWIN ksh.
19136 for as_var in ENV MAIL MAILPATH
19137 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19149 # Required to use basename.
19150 if expr a : '\(a\)' >/dev/null 2>&1 &&
19151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19157 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19158 as_basename=basename
19164 # Name of the executable.
19165 as_me=`$as_basename -- "$0" ||
19166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19167 X"$0" : 'X\(//\)$' \| \
19168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19170 sed '/^.*\/\([^/][^/]*\)\/*$/{
19189 as_lineno_1=$LINENO
19190 as_lineno_2=$LINENO
19191 test "x$as_lineno_1" != "x$as_lineno_2" &&
19192 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19194 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19195 # uniformly replaced by the line number. The first 'sed' inserts a
19196 # line-number line after each line using $LINENO; the second 'sed'
19197 # does the real work. The second script uses 'N' to pair each
19198 # line-number line with the line containing $LINENO, and appends
19199 # trailing '-' during substitution so that $LINENO is not a special
19200 # case at line end.
19201 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19202 # scripts with optimization help from Paolo Bonzini. Blame Lee
19203 # E. McMahon (1931-1989) for sed's syntax. :-)
19215 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19218 ' >$as_me.lineno &&
19219 chmod +x "$as_me.lineno" ||
19220 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19221 { (exit 1); exit 1; }; }
19223 # Don't try to exec as it changes $[0], causing all sort of problems
19224 # (the dirname of $[0] is not the place where we might find the
19225 # original and so on. Autoconf is especially sensitive to this).
19226 . "./$as_me.lineno"
19227 # Exit status is that of the last command.
19232 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19238 ECHO_C= ECHO_N= ECHO_T=
19239 case `echo -n x` in
19241 case `echo 'x\c'` in
19242 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19248 if expr a : '\(a\)' >/dev/null 2>&1 &&
19249 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19255 rm -f conf$$ conf$$.exe conf$$.file
19256 if test -d conf$$.dir; then
19257 rm -f conf$$.dir/conf$$.file
19260 mkdir conf$$.dir 2>/dev/null
19262 if (echo >conf$$.file) 2>/dev/null; then
19263 if ln -s conf$$.file conf$$ 2>/dev/null; then
19265 # ... but there are two gotchas:
19266 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19267 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19268 # In both cases, we have to default to `cp -p'.
19269 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19271 elif ln conf$$.file conf$$ 2>/dev/null; then
19279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19280 rmdir conf$$.dir 2>/dev/null
19282 if mkdir -p . 2>/dev/null; then
19285 test -d ./-p && rmdir ./-p
19289 if test -x / >/dev/null 2>&1; then
19290 as_test_x='test -x'
19292 if ls -dL / >/dev/null 2>&1; then
19299 if test -d "$1"; then
19305 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19306 ???[sx]*):;;*)false;;esac;fi
19310 as_executable_p=$as_test_x
19312 # Sed expression to map a string onto a valid CPP name.
19313 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19315 # Sed expression to map a string onto a valid variable name.
19316 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19321 # Save the log message, to keep $[0] and so on meaningful, and to
19322 # report actual input values of CONFIG_FILES etc. instead of their
19323 # values after options handling.
19325 This file was extended by $as_me, which was
19326 generated by GNU Autoconf 2.63. Invocation command line was
19328 CONFIG_FILES = $CONFIG_FILES
19329 CONFIG_HEADERS = $CONFIG_HEADERS
19330 CONFIG_LINKS = $CONFIG_LINKS
19331 CONFIG_COMMANDS = $CONFIG_COMMANDS
19334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19339 case $ac_config_files in *"
19340 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19343 case $ac_config_headers in *"
19344 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19349 # Files that config.status was made for.
19350 config_files="$ac_config_files"
19351 config_headers="$ac_config_headers"
19352 config_commands="$ac_config_commands"
19356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19358 \`$as_me' instantiates files from templates according to the
19359 current configuration.
19361 Usage: $0 [OPTION]... [FILE]...
19363 -h, --help print this help, then exit
19364 -V, --version print version number and configuration settings, then exit
19365 -q, --quiet, --silent
19366 do not print progress messages
19367 -d, --debug don't remove temporary files
19368 --recheck update $as_me by reconfiguring in the same conditions
19369 --file=FILE[:TEMPLATE]
19370 instantiate the configuration file FILE
19371 --header=FILE[:TEMPLATE]
19372 instantiate the configuration header FILE
19374 Configuration files:
19377 Configuration headers:
19380 Configuration commands:
19383 Report bugs to <bug-autoconf@gnu.org>."
19386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19389 configured by $0, generated by GNU Autoconf 2.63,
19390 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19392 Copyright (C) 2008 Free Software Foundation, Inc.
19393 This config.status script is free software; the Free Software Foundation
19394 gives unlimited permission to copy, distribute and modify it."
19400 test -n "\$AWK" || AWK=awk
19403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19404 # The default lists apply if the user does not specify any file.
19410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19422 # Handling of the options.
19423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19426 $as_echo "$ac_cs_version"; exit ;;
19427 --debug | --debu | --deb | --de | --d | -d )
19429 --file | --fil | --fi | --f )
19432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19434 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19435 ac_need_defaults=false;;
19436 --header | --heade | --head | --hea )
19439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19441 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
19442 ac_need_defaults=false;;
19444 # Conflict between --help and --header
19445 { $as_echo "$as_me: error: ambiguous option: $1
19446 Try \`$0 --help' for more information." >&2
19447 { (exit 1); exit 1; }; };;
19448 --help | --hel | -h )
19449 $as_echo "$ac_cs_usage"; exit ;;
19450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19454 # This is an error.
19455 -*) { $as_echo "$as_me: error: unrecognized option: $1
19456 Try \`$0 --help' for more information." >&2
19457 { (exit 1); exit 1; }; } ;;
19459 *) ac_config_targets="$ac_config_targets $1"
19460 ac_need_defaults=false ;;
19466 ac_configure_extra_args=
19468 if $ac_cs_silent; then
19470 ac_configure_extra_args="$ac_configure_extra_args --silent"
19474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19475 if \$ac_cs_recheck; then
19476 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19478 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19479 CONFIG_SHELL='$SHELL'
19480 export CONFIG_SHELL
19485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19490 ## Running $as_me. ##
19496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19502 $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES
19508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19510 # Handling of arguments.
19511 for ac_config_target in $ac_config_targets
19513 case $ac_config_target in
19514 "include/ap_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ap_config_auto.h" ;;
19515 "$APACHE_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $APACHE_OUTPUT_FILES" ;;
19516 "docs/conf/httpd-std.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/httpd-std.conf" ;;
19517 "docs/conf/ssl-std.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/ssl-std.conf" ;;
19518 "include/ap_config_layout.h") CONFIG_FILES="$CONFIG_FILES include/ap_config_layout.h" ;;
19519 "support/apxs") CONFIG_FILES="$CONFIG_FILES support/apxs" ;;
19520 "support/apachectl") CONFIG_FILES="$CONFIG_FILES support/apachectl" ;;
19521 "support/dbmmanage") CONFIG_FILES="$CONFIG_FILES support/dbmmanage" ;;
19522 "support/envvars-std") CONFIG_FILES="$CONFIG_FILES support/envvars-std" ;;
19523 "support/log_server_status") CONFIG_FILES="$CONFIG_FILES support/log_server_status" ;;
19524 "support/logresolve.pl") CONFIG_FILES="$CONFIG_FILES support/logresolve.pl" ;;
19525 "support/phf_abuse_log.cgi") CONFIG_FILES="$CONFIG_FILES support/phf_abuse_log.cgi" ;;
19526 "support/split-logfile") CONFIG_FILES="$CONFIG_FILES support/split-logfile" ;;
19527 "build/rules.mk") CONFIG_FILES="$CONFIG_FILES build/rules.mk" ;;
19528 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
19529 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19531 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19532 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19533 { (exit 1); exit 1; }; };;
19538 # If the user did not use the arguments to specify the items to instantiate,
19539 # then the envvar interface is used. Set only those that are not.
19540 # We use the long form for the default assignment because of an extremely
19541 # bizarre bug on SunOS 4.1.3.
19542 if $ac_need_defaults; then
19543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19544 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19548 # Have a temporary directory for convenience. Make it in the build tree
19549 # simply because there is no reason against having it here, and in addition,
19550 # creating and moving files from /tmp can sometimes cause problems.
19551 # Hook for its removal unless debugging.
19552 # Note that there is a small window in which the directory will not be cleaned:
19553 # after its creation but before its name has been assigned to `$tmp'.
19557 trap 'exit_status=$?
19558 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19560 trap '{ (exit 1); exit 1; }' 1 2 13 15
19562 # Create a (secure) tmp directory for tmp files.
19565 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19566 test -n "$tmp" && test -d "$tmp"
19569 tmp=./conf$$-$RANDOM
19570 (umask 077 && mkdir "$tmp")
19573 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19574 { (exit 1); exit 1; }
19577 # Set up the scripts for CONFIG_FILES section.
19578 # No need to generate them if there are no CONFIG_FILES.
19579 # This happens for instance with `./config.status config.h'.
19580 if test -n "$CONFIG_FILES"; then
19584 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19585 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19588 ac_cs_awk_cr=$ac_cr
19591 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19596 echo "cat >conf$$subs.awk <<_ACEOF" &&
19597 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19599 } >conf$$subs.sh ||
19600 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19601 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19602 { (exit 1); exit 1; }; }
19603 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19605 for ac_last_try in false false false false false :; do
19606 . ./conf$$subs.sh ||
19607 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19608 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19609 { (exit 1); exit 1; }; }
19611 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19612 if test $ac_delim_n = $ac_delim_num; then
19614 elif $ac_last_try; then
19615 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19616 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19617 { (exit 1); exit 1; }; }
19619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19622 rm -f conf$$subs.sh
19624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19625 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19629 s/^/S["/; s/!.*/"]=/
19639 s/\(.\{148\}\).*/\1/
19641 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19653 s/\(.\{148\}\).*/\1/
19655 s/["\\]/\\&/g; s/^/"/; s/$/"/
19659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19664 ' <conf$$subs.awk | sed '
19669 ' >>$CONFIG_STATUS || ac_write_fail=1
19670 rm -f conf$$subs.awk
19671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19673 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19674 for (key in S) S_is_set[key] = 1
19680 nfields = split(line, field, "@")
19682 len = length(field[1])
19683 for (i = 2; i < nfields; i++) {
19685 keylen = length(key)
19686 if (S_is_set[key]) {
19688 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19689 len += length(value) + length(field[++i])
19700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19701 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19702 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19705 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19706 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19707 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19708 { (exit 1); exit 1; }; }
19711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19713 # trailing colons and then remove the whole line if VPATH becomes empty
19714 # (actually we leave an empty line to preserve line numbers).
19715 if test "x$srcdir" = x.; then
19716 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19717 s/:*\$(srcdir):*/:/
19718 s/:*\${srcdir}:*/:/
19720 s/^\([^=]*=[ ]*\):*/\1/
19726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19727 fi # test -n "$CONFIG_FILES"
19729 # Set up the scripts for CONFIG_HEADERS section.
19730 # No need to generate them if there are no CONFIG_HEADERS.
19731 # This happens for instance with `./config.status Makefile'.
19732 if test -n "$CONFIG_HEADERS"; then
19733 cat >"$tmp/defines.awk" <<\_ACAWK ||
19737 # Transform confdefs.h into an awk script `defines.awk', embedded as
19738 # here-document in config.status, that substitutes the proper values into
19739 # config.h.in to produce config.h.
19741 # Create a delimiter string that does not exist in confdefs.h, to ease
19742 # handling of long lines.
19744 for ac_last_try in false false :; do
19745 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19746 if test -z "$ac_t"; then
19748 elif $ac_last_try; then
19749 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19750 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19751 { (exit 1); exit 1; }; }
19753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19757 # For the awk script, D is an array of macro values keyed by name,
19758 # likewise P contains macro parameters if any. Preserve backslash
19759 # newline sequences.
19761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19763 s/.\{148\}/&'"$ac_delim"'/g
19766 s/^[ ]*#[ ]*define[ ][ ]*/ /
19773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19780 D["\1"]=" \3\\\\\\n"\\/p
19782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19787 s/.\{148\}/&'"$ac_delim"'/g
19792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19797 ' <confdefs.h | sed '
19798 s/'"$ac_delim"'/"\\\
19799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19802 for (key in D) D_is_set[key] = 1
19805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19807 split(line, arg, " ")
19808 if (arg[1] == "#") {
19812 defundef = substr(arg[1], 2)
19815 split(mac1, mac2, "(") #)
19817 prefix = substr(line, 1, index(line, defundef) - 1)
19818 if (D_is_set[macro]) {
19819 # Preserve the white space surrounding the "#".
19820 print prefix "define", macro P[macro] D[macro]
19823 # Replace #undef with comments. This is necessary, for example,
19824 # in the case of _POSIX_SOURCE, which is predefined and required
19825 # on some systems where configure will not decide to define it.
19826 if (defundef == "undef") {
19827 print "/*", prefix defundef, macro, "*/"
19835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19836 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19837 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19838 { (exit 1); exit 1; }; }
19839 fi # test -n "$CONFIG_HEADERS"
19842 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19847 :[FHLC]) ac_mode=$ac_tag; continue;;
19849 case $ac_mode$ac_tag in
19851 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19852 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19853 { (exit 1); exit 1; }; };;
19854 :[FH]-) ac_tag=-:-;;
19855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19872 -) ac_f="$tmp/stdin";;
19873 *) # Look for the file first in the build tree, then in the source tree
19874 # (if the path is not absolute). The absolute path cannot be DOS-style,
19875 # because $ac_f cannot contain `:'.
19879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19881 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19882 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19883 { (exit 1); exit 1; }; };;
19885 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19886 ac_file_inputs="$ac_file_inputs '$ac_f'"
19889 # Let's still pretend it is `configure' which instantiates (i.e., don't
19890 # use $as_me), people would be surprised to read:
19891 # /* config.h. Generated by config.status. */
19892 configure_input='Generated from '`
19893 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19895 if test x"$ac_file" != x-; then
19896 configure_input="$ac_file. $configure_input"
19897 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19898 $as_echo "$as_me: creating $ac_file" >&6;}
19900 # Neutralize special characters interpreted by sed in replacement strings.
19901 case $configure_input in #(
19902 *\&* | *\|* | *\\* )
19903 ac_sed_conf_input=`$as_echo "$configure_input" |
19904 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19905 *) ac_sed_conf_input=$configure_input;;
19909 *:-:* | *:-) cat >"$tmp/stdin" \
19910 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19912 { (exit 1); exit 1; }; } ;;
19917 ac_dir=`$as_dirname -- "$ac_file" ||
19918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19919 X"$ac_file" : 'X\(//\)[^/]' \| \
19920 X"$ac_file" : 'X\(//\)$' \| \
19921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19922 $as_echo X"$ac_file" |
19923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19927 /^X\(\/\/\)[^/].*/{
19942 -*) as_dir=./$as_dir;;
19944 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19948 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19949 *) as_qdir=$as_dir;;
19951 as_dirs="'$as_qdir' $as_dirs"
19952 as_dir=`$as_dirname -- "$as_dir" ||
19953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19954 X"$as_dir" : 'X\(//\)[^/]' \| \
19955 X"$as_dir" : 'X\(//\)$' \| \
19956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19957 $as_echo X"$as_dir" |
19958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19962 /^X\(\/\/\)[^/].*/{
19975 test -d "$as_dir" && break
19977 test -z "$as_dirs" || eval "mkdir $as_dirs"
19978 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19979 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19980 { (exit 1); exit 1; }; }; }
19984 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19986 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19987 # A ".." for each directory in $ac_dir_suffix.
19988 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19989 case $ac_top_builddir_sub in
19990 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19991 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19994 ac_abs_top_builddir=$ac_pwd
19995 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19996 # for backward compatibility:
19997 ac_top_builddir=$ac_top_build_prefix
20000 .) # We are building in place.
20002 ac_top_srcdir=$ac_top_builddir_sub
20003 ac_abs_top_srcdir=$ac_pwd ;;
20004 [\\/]* | ?:[\\/]* ) # Absolute name.
20005 ac_srcdir=$srcdir$ac_dir_suffix;
20006 ac_top_srcdir=$srcdir
20007 ac_abs_top_srcdir=$srcdir ;;
20008 *) # Relative name.
20009 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20010 ac_top_srcdir=$ac_top_build_prefix$srcdir
20011 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20013 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20023 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20024 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20029 # If the template does not know about datarootdir, expand it.
20030 # FIXME: This hack should be removed a few years after 2.60.
20031 ac_datarootdir_hack=; ac_datarootdir_seen=
20044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20045 *datarootdir*) ac_datarootdir_seen=yes;;
20046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20047 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20051 ac_datarootdir_hack='
20052 s&@datadir@&$datadir&g
20053 s&@docdir@&$docdir&g
20054 s&@infodir@&$infodir&g
20055 s&@localedir@&$localedir&g
20056 s&@mandir@&$mandir&g
20057 s&\\\${datarootdir}&$datarootdir&g' ;;
20061 # Neutralize VPATH when `$srcdir' = `.'.
20062 # Shell code in configure.ac might set extrasub.
20063 # FIXME: do we really want to maintain this feature?
20064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20065 ac_sed_extra="$ac_vpsub
20068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20071 s|@configure_input@|$ac_sed_conf_input|;t t
20072 s&@top_builddir@&$ac_top_builddir_sub&;t t
20073 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20074 s&@srcdir@&$ac_srcdir&;t t
20075 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20076 s&@top_srcdir@&$ac_top_srcdir&;t t
20077 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20078 s&@builddir@&$ac_builddir&;t t
20079 s&@abs_builddir@&$ac_abs_builddir&;t t
20080 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20081 s&@INSTALL@&$ac_INSTALL&;t t
20082 $ac_datarootdir_hack
20084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20085 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20086 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20087 { (exit 1); exit 1; }; }
20089 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20090 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20091 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20092 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20093 which seems to be undefined. Please make sure it is defined." >&5
20094 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20095 which seems to be undefined. Please make sure it is defined." >&2;}
20099 -) cat "$tmp/out" && rm -f "$tmp/out";;
20100 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20103 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20104 { (exit 1); exit 1; }; }
20110 if test x"$ac_file" != x-; then
20112 $as_echo "/* $configure_input */" \
20113 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20114 } >"$tmp/config.h" \
20115 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20116 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20117 { (exit 1); exit 1; }; }
20118 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20119 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20123 mv "$tmp/config.h" "$ac_file" \
20124 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20125 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20126 { (exit 1); exit 1; }; }
20129 $as_echo "/* $configure_input */" \
20130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20131 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20132 $as_echo "$as_me: error: could not create -" >&2;}
20133 { (exit 1); exit 1; }; }
20137 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20138 $as_echo "$as_me: executing $ac_file commands" >&6;}
20143 case $ac_file$ac_mode in
20144 "default":C) true ;;
20150 { (exit 0); exit 0; }
20152 chmod +x $CONFIG_STATUS
20153 ac_clean_files=$ac_clean_files_save
20155 test $ac_write_fail = 0 ||
20156 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20157 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20158 { (exit 1); exit 1; }; }
20161 # configure is writing to config.log, and then calls config.status.
20162 # config.status does its own redirection, appending to config.log.
20163 # Unfortunately, on DOS this fails, as config.log is still kept open
20164 # by configure, so config.status won't be able to write to it; its
20165 # output is simply discarded. So we exec the FD to /dev/null,
20166 # effectively closing config.log, so it can be properly (re)opened and
20167 # appended to by config.status. When coming back to configure, we
20168 # need to make the FD available again.
20169 if test "$no_create" != yes; then
20171 ac_config_status_args=
20172 test "$silent" = yes &&
20173 ac_config_status_args="$ac_config_status_args --quiet"
20175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20178 # would make configure fail if this is the last instruction.
20179 $ac_cs_success || { (exit 1); exit 1; }
20181 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20182 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20183 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}