1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
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'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="ABOUT_APACHE"
586enable_option_checking=no
587ac_default_prefix=/usr/local/apache2
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625LIBOBJS
626ap_make_delimiter
627ap_make_include
628perlbin
629APU_CONFIG
630APU_VERSION
631APU_INCLUDEDIR
632APU_BINDIR
633APR_CONFIG
634APR_VERSION
635APR_INCLUDEDIR
636APR_BINDIR
637LOAD_ALL_MODULES
638ENABLED_DSO_MODULES
639DSO_MODULES
640INSTALL_PROG_FLAGS
641MK_IMPLIB
642SH_LIBTOOL
643SH_LIBS
644CORE_IMPLIB
645CORE_IMPLIB_FILE
646SSLPORT
647PORT
648MODULE_CLEANDIRS
649MODULE_DIRS
650LIBTOOL
651INTERNAL_CPPFLAGS
652NOTEST_LIBS
653NOTEST_LDFLAGS
654NOTEST_CXXFLAGS
655NOTEST_CFLAGS
656NOTEST_CPPFLAGS
657INCLUDES
658UTIL_LDFLAGS
659HTTPD_LDFLAGS
660SH_LDFLAGS
661LT_LDFLAGS
662LTFLAGS
663CXXFLAGS
664CXX
665other_targets
666proxycachedir
667runtimedir
668installbuilddir
669iconsdir
670errordir
671manualdir
672htdocsdir
673logfiledir
674cgidir
675abs_srcdir
676EXTRA_INCLUDES
677EXTRA_LIBS
678EXTRA_LDFLAGS
679EXTRA_CXXFLAGS
680EXTRA_CFLAGS
681EXTRA_CPPFLAGS
682AP_CLEAN_SRCLIB_DIRS
683AP_BUILD_SRCLIB_DIRS
684AP_LIBS
685shared_build
686POST_SHARED_CMDS
687PRE_SHARED_CMDS
688MOD_SO_ENABLED
689OS_SPECIFIC_VARS
690SHLIBPATH_VAR
691BUILTIN_LIBS
692OS_DIR
693OS
694progname
695MOD_REWRITE_LDADD
696MOD_ALIAS_LDADD
697MOD_USERDIR_LDADD
698MOD_SPELING_LDADD
699MOD_ACTIONS_LDADD
700MOD_IMAGEMAP_LDADD
701MOD_DIR_LDADD
702MOD_NEGOTIATION_LDADD
703MOD_VHOST_ALIAS_LDADD
704MOD_DAV_LOCK_LDADD
705MOD_DAV_FS_LDADD
706MOD_CGI_LDADD
707MOD_CGID_LDADD
708MOD_SUEXEC_LDADD
709MOD_INFO_LDADD
710MOD_ASIS_LDADD
711MOD_AUTOINDEX_LDADD
712MOD_STATUS_LDADD
713MOD_DAV_LDADD
714MOD_HEARTMONITOR_LDADD
715MOD_HEARTBEAT_LDADD
716MOD_PRIVILEGES_LDADD
717MOD_UNIXD_LDADD
718MOD_MPM_EVENT_LDADD
719MPM_LIB
720MPM_SUBDIRS
721MOD_LBMETHOD_HEARTBEAT_LDADD
722MOD_LBMETHOD_BYBUSYNESS_LDADD
723MOD_LBMETHOD_BYTRAFFIC_LDADD
724MOD_LBMETHOD_BYREQUESTS_LDADD
725APACHECTL_ULIMIT
726NONPORTABLE_SUPPORT
727fcgistarter_LTFLAGS
728httxt2dbm_LTFLAGS
729htcacheclean_LTFLAGS
730checkgid_LTFLAGS
731ab_LTFLAGS
732htdbm_LTFLAGS
733logresolve_LTFLAGS
734rotatelogs_LTFLAGS
735htdigest_LTFLAGS
736htpasswd_LTFLAGS
737MOD_DIALUP_LDADD
738MOD_OPTIONAL_FN_EXPORT_LDADD
739MOD_OPTIONAL_FN_IMPORT_LDADD
740MOD_OPTIONAL_HOOK_IMPORT_LDADD
741MOD_OPTIONAL_HOOK_EXPORT_LDADD
742MOD_SSL_LDADD
743ab_LDFLAGS
744ab_CFLAGS
745MOD_SLOTMEM_PLAIN_LDADD
746MOD_SLOTMEM_SHM_LDADD
747MOD_SESSION_DBD_LDADD
748MOD_SESSION_CRYPTO_LDADD
749MOD_SESSION_COOKIE_LDADD
750MOD_SESSION_LDADD
751MOD_PROXY_EXPRESS_LDADD
752MOD_PROXY_BALANCER_LDADD
753MOD_PROXY_AJP_LDADD
754MOD_PROXY_WSTUNNEL_LDADD
755MOD_PROXY_FDPASS_LDADD
756MOD_PROXY_SCGI_LDADD
757MOD_PROXY_FCGI_LDADD
758MOD_PROXY_HTTP_LDADD
759MOD_PROXY_FTP_LDADD
760MOD_PROXY_CONNECT_LDADD
761MOD_PROXY_LDADD
762MOD_REMOTEIP_LDADD
763MOD_VERSION_LDADD
764MOD_SETENVIF_LDADD
765MOD_UNIQUE_ID_LDADD
766MOD_USERTRACK_LDADD
767MOD_IDENT_LDADD
768MOD_HEADERS_LDADD
769MOD_EXPIRES_LDADD
770MOD_CERN_META_LDADD
771MOD_MIME_MAGIC_LDADD
772MOD_ENV_LDADD
773MOD_LUA_LDADD
774LUA_CFLAGS
775LUA_LIBS
776MOD_LOGIO_LDADD
777MOD_LOG_FORENSIC_LDADD
778MOD_LOG_DEBUG_LDADD
779MOD_LOG_CONFIG_LDADD
780MOD_LDAP_LDADD
781MOD_MIME_LDADD
782MOD_HTTP_LDADD
783MOD_PROXY_HTML_LDADD
784MOD_XML2ENC_LDADD
785MOD_DEFLATE_LDADD
786MOD_CHARSET_LITE_LDADD
787MOD_SED_LDADD
788MOD_SUBSTITUTE_LDADD
789MOD_REFLECTOR_LDADD
790MOD_FILTER_LDADD
791MOD_INCLUDE_LDADD
792MOD_REQUEST_LDADD
793MOD_EXT_FILTER_LDADD
794MOD_REQTIMEOUT_LDADD
795MOD_RATELIMIT_LDADD
796MOD_DATA_LDADD
797MOD_BUFFER_LDADD
798MOD_EXAMPLE_IPC_LDADD
799MOD_CASE_FILTER_IN_LDADD
800MOD_CASE_FILTER_LDADD
801MOD_EXAMPLE_HOOKS_LDADD
802MOD_ECHO_LDADD
803MOD_DUMPIO_LDADD
804MOD_BUCKETEER_LDADD
805MOD_DBD_LDADD
806MOD_MACRO_LDADD
807MOD_WATCHDOG_LDADD
808MOD_SO_LDADD
809INSTALL_DSO
810MOD_SOCACHE_DC_LDADD
811MOD_SOCACHE_MEMCACHE_LDADD
812MOD_SOCACHE_DBM_LDADD
813MOD_SOCACHE_SHMCB_LDADD
814MOD_CACHE_SOCACHE_LDADD
815MOD_CACHE_DISK_LDADD
816MOD_CACHE_LDADD
817MOD_FILE_CACHE_LDADD
818MOD_ISAPI_LDADD
819MOD_ALLOWMETHODS_LDADD
820MOD_AUTH_DIGEST_LDADD
821MOD_AUTH_FORM_LDADD
822MOD_AUTH_BASIC_LDADD
823MOD_ACCESS_COMPAT_LDADD
824MOD_AUTHNZ_LDAP_LDADD
825MOD_AUTHZ_CORE_LDADD
826MOD_AUTHZ_DBD_LDADD
827MOD_AUTHZ_OWNER_LDADD
828MOD_AUTHZ_DBM_LDADD
829MOD_AUTHZ_USER_LDADD
830MOD_AUTHZ_GROUPFILE_LDADD
831MOD_AUTHZ_HOST_LDADD
832MOD_AUTHN_CORE_LDADD
833MOD_AUTHN_SOCACHE_LDADD
834MOD_AUTHN_DBD_LDADD
835MOD_AUTHN_ANON_LDADD
836MOD_AUTHN_DBM_LDADD
837MOD_AUTHN_FILE_LDADD
838PILDFLAGS
839PICFLAGS
840DTRACE
841CRYPT_LIBS
842MATH_LIBS
843MKDEP
844INSTALL
845MKINSTALLDIRS
846LYNX_PATH
847RANLIB
848LN_S
849AWK
850RSYNC
851PKGCONFIG
852RM
853LTCFLAGS
854SHLTCFLAGS
855PCRE_LIBS
856PCRE_CONFIG
857CPP
858OBJEXT
859EXEEXT
860ac_ct_CC
861CPPFLAGS
862LDFLAGS
863CFLAGS
864CC
865target_os
866target_vendor
867target_cpu
868target
869host_os
870host_vendor
871host_cpu
872host
873build_os
874build_vendor
875build_cpu
876build
877EGREP
878GREP
879rel_proxycachedir
880exp_proxycachedir
881rel_logfiledir
882exp_logfiledir
883rel_runtimedir
884exp_runtimedir
885rel_localstatedir
886exp_localstatedir
887rel_includedir
888exp_includedir
889rel_cgidir
890exp_cgidir
891rel_manualdir
892exp_manualdir
893rel_htdocsdir
894exp_htdocsdir
895rel_iconsdir
896exp_iconsdir
897rel_errordir
898exp_errordir
899rel_installbuilddir
900exp_installbuilddir
901rel_datadir
902exp_datadir
903rel_sysconfdir
904exp_sysconfdir
905rel_mandir
906exp_mandir
907rel_libexecdir
908exp_libexecdir
909rel_libdir
910exp_libdir
911rel_sbindir
912exp_sbindir
913rel_bindir
914exp_bindir
915rel_exec_prefix
916exp_exec_prefix
917HTTPD_VERSION
918target_alias
919host_alias
920build_alias
921LIBS
922ECHO_T
923ECHO_N
924ECHO_C
925DEFS
926mandir
927localedir
928libdir
929psdir
930pdfdir
931dvidir
932htmldir
933infodir
934docdir
935oldincludedir
936includedir
937localstatedir
938sharedstatedir
939sysconfdir
940datadir
941datarootdir
942libexecdir
943sbindir
944bindir
945program_transform_name
946prefix
947exec_prefix
948PACKAGE_URL
949PACKAGE_BUGREPORT
950PACKAGE_STRING
951PACKAGE_VERSION
952PACKAGE_TARNAME
953PACKAGE_NAME
954PATH_SEPARATOR
955SHELL'
956ac_subst_files=''
957ac_user_opts='
958enable_option_checking
959enable_layout
960with_included_apr
961with_apr
962with_apr_util
963with_pcre
964with_port
965with_sslport
966enable_dtrace
967enable_hook_probes
968enable_exception_hook
969enable_load_all_modules
970enable_maintainer_mode
971enable_debugger_mode
972enable_pie
973enable_modules
974enable_mods_shared
975enable_mods_static
976enable_authn_file
977enable_authn_dbm
978enable_authn_anon
979enable_authn_dbd
980enable_authn_socache
981enable_authn_core
982enable_authz_host
983enable_authz_groupfile
984enable_authz_user
985enable_authz_dbm
986enable_authz_owner
987enable_authz_dbd
988enable_authz_core
989enable_authnz_ldap
990enable_access_compat
991enable_auth_basic
992enable_auth_form
993enable_auth_digest
994enable_allowmethods
995enable_isapi
996enable_file_cache
997enable_cache
998enable_cache_disk
999enable_cache_socache
1000enable_socache_shmcb
1001enable_socache_dbm
1002enable_socache_memcache
1003enable_socache_dc
1004with_distcache
1005enable_so
1006enable_watchdog
1007enable_macro
1008enable_dbd
1009enable_bucketeer
1010enable_dumpio
1011enable_echo
1012enable_example_hooks
1013enable_case_filter
1014enable_case_filter_in
1015enable_example_ipc
1016enable_buffer
1017enable_data
1018enable_ratelimit
1019enable_reqtimeout
1020enable_ext_filter
1021enable_request
1022enable_include
1023enable_filter
1024enable_reflector
1025enable_substitute
1026enable_sed
1027enable_charset_lite
1028enable_deflate
1029with_z
1030enable_xml2enc
1031with_libxml2
1032enable_proxy_html
1033enable_http
1034enable_mime
1035enable_ldap
1036enable_log_config
1037enable_log_debug
1038enable_log_forensic
1039enable_logio
1040enable_lua
1041with_lua
1042enable_luajit
1043enable_env
1044enable_mime_magic
1045enable_cern_meta
1046enable_expires
1047enable_headers
1048enable_ident
1049enable_usertrack
1050enable_unique_id
1051enable_setenvif
1052enable_version
1053enable_remoteip
1054enable_proxy
1055enable_proxy_connect
1056enable_proxy_ftp
1057enable_proxy_http
1058enable_proxy_fcgi
1059enable_proxy_scgi
1060enable_proxy_fdpass
1061enable_proxy_wstunnel
1062enable_proxy_ajp
1063enable_proxy_balancer
1064enable_proxy_express
1065enable_session
1066enable_session_cookie
1067enable_session_crypto
1068enable_session_dbd
1069enable_slotmem_shm
1070enable_slotmem_plain
1071enable_ssl
1072with_ssl
1073enable_ssl_staticlib_deps
1074enable_optional_hook_export
1075enable_optional_hook_import
1076enable_optional_fn_import
1077enable_optional_fn_export
1078enable_dialup
1079enable_static_support
1080enable_static_htpasswd
1081enable_static_htdigest
1082enable_static_rotatelogs
1083enable_static_logresolve
1084enable_static_htdbm
1085enable_static_ab
1086enable_static_checkgid
1087enable_static_htcacheclean
1088enable_static_httxt2dbm
1089enable_static_fcgistarter
1090enable_lbmethod_byrequests
1091enable_lbmethod_bytraffic
1092enable_lbmethod_bybusyness
1093enable_lbmethod_heartbeat
1094with_mpm
1095enable_mpms_shared
1096enable_unixd
1097enable_privileges
1098enable_heartbeat
1099enable_heartmonitor
1100enable_dav
1101enable_status
1102enable_autoindex
1103enable_asis
1104enable_info
1105enable_suexec
1106enable_cgid
1107enable_cgi
1108enable_dav_fs
1109enable_dav_lock
1110with_module
1111enable_vhost_alias
1112enable_negotiation
1113enable_dir
1114enable_imagemap
1115enable_actions
1116enable_speling
1117enable_userdir
1118enable_alias
1119enable_rewrite
1120with_program_name
1121with_suexec_bin
1122with_suexec_caller
1123with_suexec_userdir
1124with_suexec_docroot
1125with_suexec_uidmin
1126with_suexec_gidmin
1127with_suexec_logfile
1128with_suexec_safepath
1129with_suexec_umask
1130enable_v4_mapped
1131'
1132      ac_precious_vars='build_alias
1133host_alias
1134target_alias
1135CC
1136CFLAGS
1137LDFLAGS
1138LIBS
1139CPPFLAGS
1140CPP'
1141
1142
1143# Initialize some variables set by options.
1144ac_init_help=
1145ac_init_version=false
1146ac_unrecognized_opts=
1147ac_unrecognized_sep=
1148# The variables have the same names as the options, with
1149# dashes changed to underlines.
1150cache_file=/dev/null
1151exec_prefix=NONE
1152no_create=
1153no_recursion=
1154prefix=NONE
1155program_prefix=NONE
1156program_suffix=NONE
1157program_transform_name=s,x,x,
1158silent=
1159site=
1160srcdir=
1161verbose=
1162x_includes=NONE
1163x_libraries=NONE
1164
1165# Installation directory options.
1166# These are left unexpanded so users can "make install exec_prefix=/foo"
1167# and all the variables that are supposed to be based on exec_prefix
1168# by default will actually change.
1169# Use braces instead of parens because sh, perl, etc. also accept them.
1170# (The list follows the same order as the GNU Coding Standards.)
1171bindir='${exec_prefix}/bin'
1172sbindir='${exec_prefix}/sbin'
1173libexecdir='${exec_prefix}/libexec'
1174datarootdir='${prefix}/share'
1175datadir='${datarootdir}'
1176sysconfdir='${prefix}/etc'
1177sharedstatedir='${prefix}/com'
1178localstatedir='${prefix}/var'
1179includedir='${prefix}/include'
1180oldincludedir='/usr/include'
1181docdir='${datarootdir}/doc/${PACKAGE}'
1182infodir='${datarootdir}/info'
1183htmldir='${docdir}'
1184dvidir='${docdir}'
1185pdfdir='${docdir}'
1186psdir='${docdir}'
1187libdir='${exec_prefix}/lib'
1188localedir='${datarootdir}/locale'
1189mandir='${datarootdir}/man'
1190
1191ac_prev=
1192ac_dashdash=
1193for ac_option
1194do
1195  # If the previous option needs an argument, assign it.
1196  if test -n "$ac_prev"; then
1197    eval $ac_prev=\$ac_option
1198    ac_prev=
1199    continue
1200  fi
1201
1202  case $ac_option in
1203  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1204  *=)   ac_optarg= ;;
1205  *)    ac_optarg=yes ;;
1206  esac
1207
1208  # Accept the important Cygnus configure options, so we can diagnose typos.
1209
1210  case $ac_dashdash$ac_option in
1211  --)
1212    ac_dashdash=yes ;;
1213
1214  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1215    ac_prev=bindir ;;
1216  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1217    bindir=$ac_optarg ;;
1218
1219  -build | --build | --buil | --bui | --bu)
1220    ac_prev=build_alias ;;
1221  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1222    build_alias=$ac_optarg ;;
1223
1224  -cache-file | --cache-file | --cache-fil | --cache-fi \
1225  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1226    ac_prev=cache_file ;;
1227  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1228  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1229    cache_file=$ac_optarg ;;
1230
1231  --config-cache | -C)
1232    cache_file=config.cache ;;
1233
1234  -datadir | --datadir | --datadi | --datad)
1235    ac_prev=datadir ;;
1236  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1237    datadir=$ac_optarg ;;
1238
1239  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1240  | --dataroo | --dataro | --datar)
1241    ac_prev=datarootdir ;;
1242  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1243  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1244    datarootdir=$ac_optarg ;;
1245
1246  -disable-* | --disable-*)
1247    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1248    # Reject names that are not valid shell variable names.
1249    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250      as_fn_error $? "invalid feature name: $ac_useropt"
1251    ac_useropt_orig=$ac_useropt
1252    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253    case $ac_user_opts in
1254      *"
1255"enable_$ac_useropt"
1256"*) ;;
1257      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1258	 ac_unrecognized_sep=', ';;
1259    esac
1260    eval enable_$ac_useropt=no ;;
1261
1262  -docdir | --docdir | --docdi | --doc | --do)
1263    ac_prev=docdir ;;
1264  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1265    docdir=$ac_optarg ;;
1266
1267  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1268    ac_prev=dvidir ;;
1269  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1270    dvidir=$ac_optarg ;;
1271
1272  -enable-* | --enable-*)
1273    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1274    # Reject names that are not valid shell variable names.
1275    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276      as_fn_error $? "invalid feature name: $ac_useropt"
1277    ac_useropt_orig=$ac_useropt
1278    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279    case $ac_user_opts in
1280      *"
1281"enable_$ac_useropt"
1282"*) ;;
1283      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1284	 ac_unrecognized_sep=', ';;
1285    esac
1286    eval enable_$ac_useropt=\$ac_optarg ;;
1287
1288  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1289  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1290  | --exec | --exe | --ex)
1291    ac_prev=exec_prefix ;;
1292  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1293  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1294  | --exec=* | --exe=* | --ex=*)
1295    exec_prefix=$ac_optarg ;;
1296
1297  -gas | --gas | --ga | --g)
1298    # Obsolete; use --with-gas.
1299    with_gas=yes ;;
1300
1301  -help | --help | --hel | --he | -h)
1302    ac_init_help=long ;;
1303  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1304    ac_init_help=recursive ;;
1305  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1306    ac_init_help=short ;;
1307
1308  -host | --host | --hos | --ho)
1309    ac_prev=host_alias ;;
1310  -host=* | --host=* | --hos=* | --ho=*)
1311    host_alias=$ac_optarg ;;
1312
1313  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1314    ac_prev=htmldir ;;
1315  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1316  | --ht=*)
1317    htmldir=$ac_optarg ;;
1318
1319  -includedir | --includedir | --includedi | --included | --include \
1320  | --includ | --inclu | --incl | --inc)
1321    ac_prev=includedir ;;
1322  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1323  | --includ=* | --inclu=* | --incl=* | --inc=*)
1324    includedir=$ac_optarg ;;
1325
1326  -infodir | --infodir | --infodi | --infod | --info | --inf)
1327    ac_prev=infodir ;;
1328  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1329    infodir=$ac_optarg ;;
1330
1331  -libdir | --libdir | --libdi | --libd)
1332    ac_prev=libdir ;;
1333  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1334    libdir=$ac_optarg ;;
1335
1336  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1337  | --libexe | --libex | --libe)
1338    ac_prev=libexecdir ;;
1339  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1340  | --libexe=* | --libex=* | --libe=*)
1341    libexecdir=$ac_optarg ;;
1342
1343  -localedir | --localedir | --localedi | --localed | --locale)
1344    ac_prev=localedir ;;
1345  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1346    localedir=$ac_optarg ;;
1347
1348  -localstatedir | --localstatedir | --localstatedi | --localstated \
1349  | --localstate | --localstat | --localsta | --localst | --locals)
1350    ac_prev=localstatedir ;;
1351  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1352  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1353    localstatedir=$ac_optarg ;;
1354
1355  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1356    ac_prev=mandir ;;
1357  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1358    mandir=$ac_optarg ;;
1359
1360  -nfp | --nfp | --nf)
1361    # Obsolete; use --without-fp.
1362    with_fp=no ;;
1363
1364  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1365  | --no-cr | --no-c | -n)
1366    no_create=yes ;;
1367
1368  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1369  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1370    no_recursion=yes ;;
1371
1372  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1373  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1374  | --oldin | --oldi | --old | --ol | --o)
1375    ac_prev=oldincludedir ;;
1376  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1377  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1378  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1379    oldincludedir=$ac_optarg ;;
1380
1381  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1382    ac_prev=prefix ;;
1383  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1384    prefix=$ac_optarg ;;
1385
1386  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1387  | --program-pre | --program-pr | --program-p)
1388    ac_prev=program_prefix ;;
1389  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1390  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1391    program_prefix=$ac_optarg ;;
1392
1393  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1394  | --program-suf | --program-su | --program-s)
1395    ac_prev=program_suffix ;;
1396  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1397  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1398    program_suffix=$ac_optarg ;;
1399
1400  -program-transform-name | --program-transform-name \
1401  | --program-transform-nam | --program-transform-na \
1402  | --program-transform-n | --program-transform- \
1403  | --program-transform | --program-transfor \
1404  | --program-transfo | --program-transf \
1405  | --program-trans | --program-tran \
1406  | --progr-tra | --program-tr | --program-t)
1407    ac_prev=program_transform_name ;;
1408  -program-transform-name=* | --program-transform-name=* \
1409  | --program-transform-nam=* | --program-transform-na=* \
1410  | --program-transform-n=* | --program-transform-=* \
1411  | --program-transform=* | --program-transfor=* \
1412  | --program-transfo=* | --program-transf=* \
1413  | --program-trans=* | --program-tran=* \
1414  | --progr-tra=* | --program-tr=* | --program-t=*)
1415    program_transform_name=$ac_optarg ;;
1416
1417  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1418    ac_prev=pdfdir ;;
1419  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1420    pdfdir=$ac_optarg ;;
1421
1422  -psdir | --psdir | --psdi | --psd | --ps)
1423    ac_prev=psdir ;;
1424  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1425    psdir=$ac_optarg ;;
1426
1427  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1428  | -silent | --silent | --silen | --sile | --sil)
1429    silent=yes ;;
1430
1431  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1432    ac_prev=sbindir ;;
1433  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1434  | --sbi=* | --sb=*)
1435    sbindir=$ac_optarg ;;
1436
1437  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1438  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1439  | --sharedst | --shareds | --shared | --share | --shar \
1440  | --sha | --sh)
1441    ac_prev=sharedstatedir ;;
1442  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1443  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1444  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1445  | --sha=* | --sh=*)
1446    sharedstatedir=$ac_optarg ;;
1447
1448  -site | --site | --sit)
1449    ac_prev=site ;;
1450  -site=* | --site=* | --sit=*)
1451    site=$ac_optarg ;;
1452
1453  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1454    ac_prev=srcdir ;;
1455  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1456    srcdir=$ac_optarg ;;
1457
1458  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1459  | --syscon | --sysco | --sysc | --sys | --sy)
1460    ac_prev=sysconfdir ;;
1461  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1462  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1463    sysconfdir=$ac_optarg ;;
1464
1465  -target | --target | --targe | --targ | --tar | --ta | --t)
1466    ac_prev=target_alias ;;
1467  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1468    target_alias=$ac_optarg ;;
1469
1470  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1471    verbose=yes ;;
1472
1473  -version | --version | --versio | --versi | --vers | -V)
1474    ac_init_version=: ;;
1475
1476  -with-* | --with-*)
1477    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1478    # Reject names that are not valid shell variable names.
1479    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1480      as_fn_error $? "invalid package name: $ac_useropt"
1481    ac_useropt_orig=$ac_useropt
1482    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1483    case $ac_user_opts in
1484      *"
1485"with_$ac_useropt"
1486"*) ;;
1487      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1488	 ac_unrecognized_sep=', ';;
1489    esac
1490    eval with_$ac_useropt=\$ac_optarg ;;
1491
1492  -without-* | --without-*)
1493    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1494    # Reject names that are not valid shell variable names.
1495    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1496      as_fn_error $? "invalid package name: $ac_useropt"
1497    ac_useropt_orig=$ac_useropt
1498    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1499    case $ac_user_opts in
1500      *"
1501"with_$ac_useropt"
1502"*) ;;
1503      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1504	 ac_unrecognized_sep=', ';;
1505    esac
1506    eval with_$ac_useropt=no ;;
1507
1508  --x)
1509    # Obsolete; use --with-x.
1510    with_x=yes ;;
1511
1512  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1513  | --x-incl | --x-inc | --x-in | --x-i)
1514    ac_prev=x_includes ;;
1515  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1516  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1517    x_includes=$ac_optarg ;;
1518
1519  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1520  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1521    ac_prev=x_libraries ;;
1522  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1523  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1524    x_libraries=$ac_optarg ;;
1525
1526  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1527Try \`$0 --help' for more information"
1528    ;;
1529
1530  *=*)
1531    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1532    # Reject names that are not valid shell variable names.
1533    case $ac_envvar in #(
1534      '' | [0-9]* | *[!_$as_cr_alnum]* )
1535      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1536    esac
1537    eval $ac_envvar=\$ac_optarg
1538    export $ac_envvar ;;
1539
1540  *)
1541    # FIXME: should be removed in autoconf 3.0.
1542    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1543    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1544      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1545    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1546    ;;
1547
1548  esac
1549done
1550
1551if test -n "$ac_prev"; then
1552  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1553  as_fn_error $? "missing argument to $ac_option"
1554fi
1555
1556if test -n "$ac_unrecognized_opts"; then
1557  case $enable_option_checking in
1558    no) ;;
1559    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1560    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1561  esac
1562fi
1563
1564# Check all directory arguments for consistency.
1565for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1566		datadir sysconfdir sharedstatedir localstatedir includedir \
1567		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1568		libdir localedir mandir
1569do
1570  eval ac_val=\$$ac_var
1571  # Remove trailing slashes.
1572  case $ac_val in
1573    */ )
1574      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1575      eval $ac_var=\$ac_val;;
1576  esac
1577  # Be sure to have absolute directory names.
1578  case $ac_val in
1579    [\\/$]* | ?:[\\/]* )  continue;;
1580    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1581  esac
1582  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1583done
1584
1585# There might be people who depend on the old broken behavior: `$host'
1586# used to hold the argument of --host etc.
1587# FIXME: To remove some day.
1588build=$build_alias
1589host=$host_alias
1590target=$target_alias
1591
1592# FIXME: To remove some day.
1593if test "x$host_alias" != x; then
1594  if test "x$build_alias" = x; then
1595    cross_compiling=maybe
1596  elif test "x$build_alias" != "x$host_alias"; then
1597    cross_compiling=yes
1598  fi
1599fi
1600
1601ac_tool_prefix=
1602test -n "$host_alias" && ac_tool_prefix=$host_alias-
1603
1604test "$silent" = yes && exec 6>/dev/null
1605
1606
1607ac_pwd=`pwd` && test -n "$ac_pwd" &&
1608ac_ls_di=`ls -di .` &&
1609ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1610  as_fn_error $? "working directory cannot be determined"
1611test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1612  as_fn_error $? "pwd does not report name of working directory"
1613
1614
1615# Find the source files, if location was not specified.
1616if test -z "$srcdir"; then
1617  ac_srcdir_defaulted=yes
1618  # Try the directory containing this script, then the parent directory.
1619  ac_confdir=`$as_dirname -- "$as_myself" ||
1620$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1621	 X"$as_myself" : 'X\(//\)[^/]' \| \
1622	 X"$as_myself" : 'X\(//\)$' \| \
1623	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1624$as_echo X"$as_myself" |
1625    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1626	    s//\1/
1627	    q
1628	  }
1629	  /^X\(\/\/\)[^/].*/{
1630	    s//\1/
1631	    q
1632	  }
1633	  /^X\(\/\/\)$/{
1634	    s//\1/
1635	    q
1636	  }
1637	  /^X\(\/\).*/{
1638	    s//\1/
1639	    q
1640	  }
1641	  s/.*/./; q'`
1642  srcdir=$ac_confdir
1643  if test ! -r "$srcdir/$ac_unique_file"; then
1644    srcdir=..
1645  fi
1646else
1647  ac_srcdir_defaulted=no
1648fi
1649if test ! -r "$srcdir/$ac_unique_file"; then
1650  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1651  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1652fi
1653ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1654ac_abs_confdir=`(
1655	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1656	pwd)`
1657# When building in place, set srcdir=.
1658if test "$ac_abs_confdir" = "$ac_pwd"; then
1659  srcdir=.
1660fi
1661# Remove unnecessary trailing slashes from srcdir.
1662# Double slashes in file names in object file debugging info
1663# mess up M-x gdb in Emacs.
1664case $srcdir in
1665*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1666esac
1667for ac_var in $ac_precious_vars; do
1668  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1669  eval ac_env_${ac_var}_value=\$${ac_var}
1670  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1671  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1672done
1673
1674#
1675# Report the --help message.
1676#
1677if test "$ac_init_help" = "long"; then
1678  # Omit some internal or obsolete options to make the list less imposing.
1679  # This message is too long to be a string in the A/UX 3.1 sh.
1680  cat <<_ACEOF
1681\`configure' configures this package to adapt to many kinds of systems.
1682
1683Usage: $0 [OPTION]... [VAR=VALUE]...
1684
1685To assign environment variables (e.g., CC, CFLAGS...), specify them as
1686VAR=VALUE.  See below for descriptions of some of the useful variables.
1687
1688Defaults for the options are specified in brackets.
1689
1690Configuration:
1691  -h, --help              display this help and exit
1692      --help=short        display options specific to this package
1693      --help=recursive    display the short help of all the included packages
1694  -V, --version           display version information and exit
1695  -q, --quiet, --silent   do not print \`checking ...' messages
1696      --cache-file=FILE   cache test results in FILE [disabled]
1697  -C, --config-cache      alias for \`--cache-file=config.cache'
1698  -n, --no-create         do not create output files
1699      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1700
1701Installation directories:
1702  --prefix=PREFIX         install architecture-independent files in PREFIX
1703                          [$ac_default_prefix]
1704  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1705                          [PREFIX]
1706
1707By default, \`make install' will install all the files in
1708\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1709an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1710for instance \`--prefix=\$HOME'.
1711
1712For better control, use the options below.
1713
1714Fine tuning of the installation directories:
1715  --bindir=DIR            user executables [EPREFIX/bin]
1716  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1717  --libexecdir=DIR        program executables [EPREFIX/libexec]
1718  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1719  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1720  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1721  --libdir=DIR            object code libraries [EPREFIX/lib]
1722  --includedir=DIR        C header files [PREFIX/include]
1723  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1724  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1725  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1726  --infodir=DIR           info documentation [DATAROOTDIR/info]
1727  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1728  --mandir=DIR            man documentation [DATAROOTDIR/man]
1729  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1730  --htmldir=DIR           html documentation [DOCDIR]
1731  --dvidir=DIR            dvi documentation [DOCDIR]
1732  --pdfdir=DIR            pdf documentation [DOCDIR]
1733  --psdir=DIR             ps documentation [DOCDIR]
1734_ACEOF
1735
1736  cat <<\_ACEOF
1737
1738System types:
1739  --build=BUILD     configure for building on BUILD [guessed]
1740  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1741  --target=TARGET   configure for building compilers for TARGET [HOST]
1742_ACEOF
1743fi
1744
1745if test -n "$ac_init_help"; then
1746
1747  cat <<\_ACEOF
1748
1749Optional Features:
1750  --disable-option-checking  ignore unrecognized --enable/--with options
1751  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1752  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1753  --enable-layout=LAYOUT
1754  --enable-dtrace         Enable DTrace probes
1755  --enable-hook-probes    Enable APR hook probes
1756  --enable-exception-hook Enable fatal exception hook
1757  --enable-load-all-modules
1758                          Load all modules
1759  --enable-maintainer-mode
1760                          Turn on debugging and compile time warnings and load
1761                          all compiled modules
1762  --enable-debugger-mode  Turn on debugging and compile time warnings and turn
1763                          off optimization
1764  --enable-pie            Build httpd as a Position Independent Executable
1765  --enable-modules=MODULE-LIST
1766                          Space-separated list of modules to enable | "all" |
1767                          "most" | "few" | "none" | "reallyall"
1768  --enable-mods-shared=MODULE-LIST
1769                          Space-separated list of shared modules to enable |
1770                          "all" | "most" | "few" | "reallyall"
1771  --enable-mods-static=MODULE-LIST
1772                          Space-separated list of static modules to enable |
1773                          "all" | "most" | "few" | "reallyall"
1774  --disable-authn-file    file-based authentication control
1775  --enable-authn-dbm      DBM-based authentication control
1776  --enable-authn-anon     anonymous user authentication control
1777  --enable-authn-dbd      SQL-based authentication control
1778  --enable-authn-socache  Cached authentication control
1779  --disable-authn-core    core authentication module
1780  --disable-authz-host    host-based authorization control
1781  --disable-authz-groupfile
1782                          'require group' authorization control
1783  --disable-authz-user    'require user' authorization control
1784  --enable-authz-dbm      DBM-based authorization control
1785  --enable-authz-owner    'require file-owner' authorization control
1786  --enable-authz-dbd      SQL based authorization and Login/Session support
1787  --disable-authz-core    core authorization provider vector module
1788  --enable-authnz-ldap    LDAP based authentication
1789  --disable-access-compat mod_access compatibility
1790  --disable-auth-basic    basic authentication
1791  --enable-auth-form      form authentication
1792  --enable-auth-digest    RFC2617 Digest authentication
1793  --enable-allowmethods   restrict allowed HTTP methods
1794  --enable-isapi          isapi extension support
1795  --enable-file-cache     File cache
1796  --enable-cache          dynamic file caching. At least one storage
1797                          management module (e.g. mod_cache_disk) is also
1798                          necessary.
1799  --enable-cache-disk     disk caching module
1800  --enable-cache-socache  shared object caching module
1801  --enable-socache-shmcb  shmcb small object cache provider
1802  --enable-socache-dbm    dbm small object cache provider
1803  --enable-socache-memcache
1804                          memcache small object cache provider
1805  --enable-socache-dc     distcache small object cache provider
1806  --enable-so             DSO capability. This module will be automatically
1807                          enabled unless you build all modules statically.
1808  --enable-watchdog       Watchdog module
1809  --enable-macro          Define and use macros in configuration files
1810  --enable-dbd            Apache DBD Framework
1811  --enable-bucketeer      buckets manipulation filter. Useful only for
1812                          developers and testing purposes.
1813  --enable-dumpio         I/O dump filter
1814  --enable-echo           ECHO server
1815  --enable-example-hooks  Example hook callback handler module
1816  --enable-case-filter    Example uppercase conversion filter
1817  --enable-case-filter-in Example uppercase conversion input filter
1818  --enable-example-ipc    Example of shared memory and mutex usage
1819  --enable-buffer         Filter Buffering
1820  --enable-data           RFC2397 data encoder
1821  --enable-ratelimit      Output Bandwidth Limiting
1822  --disable-reqtimeout    Limit time waiting for request from client
1823  --enable-ext-filter     external filter module
1824  --enable-request        Request Body Filtering
1825  --enable-include        Server Side Includes
1826  --disable-filter        Smart Filtering
1827  --enable-reflector      Reflect request through the output filter stack
1828  --enable-substitute     response content rewrite-like filtering
1829  --enable-sed            filter request and/or response bodies through sed
1830  --disable-charset-lite  character set translation. Enabled by default only
1831                          on EBCDIC systems.
1832  --enable-charset-lite   character set translation. Enabled by default only
1833                          on EBCDIC systems.
1834  --enable-deflate        Deflate transfer encoding support
1835  --enable-xml2enc        i18n support for markup filters
1836  --enable-proxy-html     Fix HTML Links in a Reverse Proxy
1837  --enable-http           HTTP protocol handling. The http module is a basic
1838                          one that enables the server to function as an HTTP
1839                          server. It is only useful to disable it if you want
1840                          to use another protocol module instead. Don't
1841                          disable this module unless you are really sure what
1842                          you are doing. Note: This module will always be
1843                          linked statically.
1844  --disable-mime          mapping of file-extension to MIME. Disabling this
1845                          module is normally not recommended.
1846  --enable-ldap           LDAP caching and connection pooling services
1847  --disable-log-config    logging configuration. You won't be able to log
1848                          requests to the server without this module.
1849  --enable-log-debug      configurable debug logging
1850  --enable-log-forensic   forensic logging
1851  --enable-logio          input and output logging
1852  --enable-lua            Apache Lua Framework
1853  --enable-luajit         Enable LuaJit Support
1854  --disable-env           clearing/setting of ENV vars
1855  --enable-mime-magic     automagically determining MIME type
1856  --enable-cern-meta      CERN-type meta files
1857  --enable-expires        Expires header control
1858  --disable-headers       HTTP header control
1859  --enable-ident          RFC 1413 identity check
1860  --enable-usertrack      user-session tracking
1861  --enable-unique-id      per-request unique ids
1862  --disable-setenvif      basing ENV vars on headers
1863  --disable-version       determining httpd version in config files
1864  --enable-remoteip       translate header contents to an apparent client
1865                          remote_ip
1866  --enable-proxy          Apache proxy module
1867  --enable-proxy-connect  Apache proxy CONNECT module. Requires and is enabled
1868                          by --enable-proxy.
1869  --enable-proxy-ftp      Apache proxy FTP module. Requires and is enabled by
1870                          --enable-proxy.
1871  --enable-proxy-http     Apache proxy HTTP module. Requires and is enabled by
1872                          --enable-proxy.
1873  --enable-proxy-fcgi     Apache proxy FastCGI module. Requires and is enabled
1874                          by --enable-proxy.
1875  --enable-proxy-scgi     Apache proxy SCGI module. Requires and is enabled by
1876                          --enable-proxy.
1877  --enable-proxy-fdpass   Apache proxy to Unix Daemon Socket module. Requires
1878                          --enable-proxy.
1879  --enable-proxy-wstunnel Apache proxy Websocket Tunnel module. Requires and
1880                          is enabled by --enable-proxy.
1881  --enable-proxy-ajp      Apache proxy AJP module. Requires and is enabled by
1882                          --enable-proxy.
1883  --enable-proxy-balancer Apache proxy BALANCER module. Requires and is
1884                          enabled by --enable-proxy.
1885  --enable-proxy-express  mass reverse-proxy module. Requires --enable-proxy.
1886  --enable-session        session module
1887  --enable-session-cookie session cookie module
1888  --enable-session-crypto session crypto module
1889  --enable-session-dbd    session dbd module
1890  --enable-slotmem-shm    slotmem provider that uses shared memory
1891  --enable-slotmem-plain  slotmem provider that uses plain memory
1892  --enable-ssl            SSL/TLS support (mod_ssl)
1893  --enable-ssl-staticlib-deps
1894                          link mod_ssl with dependencies of OpenSSL's static
1895                          libraries (as indicated by "pkg-config --static").
1896                          Must be specified in addition to --enable-ssl.
1897  --enable-optional-hook-export
1898                          example optional hook exporter
1899  --enable-optional-hook-import
1900                          example optional hook importer
1901  --enable-optional-fn-import
1902                          example optional function importer
1903  --enable-optional-fn-export
1904                          example optional function exporter
1905  --enable-dialup         rate limits static files to dialup modem speeds
1906  --enable-static-support Build a statically linked version of the support
1907                          binaries
1908  --enable-static-htpasswd
1909                          Build a statically linked version of htpasswd
1910  --enable-static-htdigest
1911                          Build a statically linked version of htdigest
1912  --enable-static-rotatelogs
1913                          Build a statically linked version of rotatelogs
1914  --enable-static-logresolve
1915                          Build a statically linked version of logresolve
1916  --enable-static-htdbm   Build a statically linked version of htdbm
1917  --enable-static-ab      Build a statically linked version of ab
1918  --enable-static-checkgid
1919                          Build a statically linked version of checkgid
1920  --enable-static-htcacheclean
1921                          Build a statically linked version of htcacheclean
1922  --enable-static-httxt2dbm
1923                          Build a statically linked version of httxt2dbm
1924  --enable-static-fcgistarter
1925                          Build a statically linked version of fcgistarter
1926  --enable-lbmethod-byrequests
1927                          Apache proxy Load balancing by request counting
1928  --enable-lbmethod-bytraffic
1929                          Apache proxy Load balancing by traffic counting
1930  --enable-lbmethod-bybusyness
1931                          Apache proxy Load balancing by busyness
1932  --enable-lbmethod-heartbeat
1933                          Apache proxy Load balancing from Heartbeats
1934  --enable-mpms-shared=MPM-LIST
1935                          Space-separated list of MPM modules to enable for
1936                          dynamic loading. MPM-LIST=list | "all"
1937  --enable-unixd          unix specific support
1938  --enable-privileges     Per-virtualhost Unix UserIDs and enhanced security
1939                          for Solaris
1940  --enable-heartbeat      Generates Heartbeats
1941  --enable-heartmonitor   Collects Heartbeats
1942  --enable-dav            WebDAV protocol handling. --enable-dav also enables
1943                          mod_dav_fs
1944  --disable-status        process/thread monitoring
1945  --disable-autoindex     directory listing
1946  --enable-asis           as-is filetypes
1947  --enable-info           server information
1948  --enable-suexec         set uid and gid for spawned processes
1949  --enable-cgid           CGI scripts. Enabled by default with threaded MPMs
1950  --enable-cgi            CGI scripts. Enabled by default with non-threaded
1951                          MPMs
1952  --enable-dav-fs         DAV provider for the filesystem. --enable-dav also
1953                          enables mod_dav_fs.
1954  --enable-dav-lock       DAV provider for generic locking
1955  --enable-vhost-alias    mass virtual hosting module
1956  --enable-negotiation    content negotiation
1957  --disable-dir           directory request handling
1958  --enable-imagemap       server-side imagemaps
1959  --enable-actions        Action triggering on requests
1960  --enable-speling        correct common URL misspellings
1961  --enable-userdir        mapping of requests to user-specific directories
1962  --disable-alias         mapping of requests to different filesystem parts
1963  --enable-rewrite        rule based URL manipulation
1964  --enable-v4-mapped      Allow IPv6 sockets to handle IPv4 connections
1965
1966Optional Packages:
1967  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1968  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1969  --with-included-apr     Use bundled copies of APR/APR-Util
1970  --with-apr=PATH         prefix for installed APR or the full path to
1971                             apr-config
1972  --with-apr-util=PATH    prefix for installed APU or the full path to
1973                             apu-config
1974  --with-pcre=PATH        Use external PCRE library
1975  --with-port=PORT        Port on which to listen (default is 80)
1976  --with-sslport=SSLPORT  Port on which to securelisten (default is 443)
1977  --with-distcache=PATH   Distcache installation directory
1978  --with-z=PATH           use a specific zlib library
1979  --with-libxml2=PATH     location for libxml2
1980  --with-lua=PATH         Path to the Lua 5.1 prefix
1981  --with-ssl=PATH         OpenSSL installation directory
1982  --with-mpm=MPM          Choose the process model for Apache to use by
1983                          default. MPM={event|worker|prefork|winnt} This will
1984                          be statically linked as the only available MPM
1985                          unless --enable-mpms-shared is also specified.
1986  --with-module=module-type:module-file
1987                          Enable module-file in the modules/<module-type>
1988                          directory.
1989  --with-program-name     alternate executable name
1990  --with-suexec-bin       Path to suexec binary
1991  --with-suexec-caller    User allowed to call SuExec
1992  --with-suexec-userdir   User subdirectory
1993  --with-suexec-docroot   SuExec root directory
1994  --with-suexec-uidmin    Minimal allowed UID
1995  --with-suexec-gidmin    Minimal allowed GID
1996  --with-suexec-logfile   Set the logfile
1997  --with-suexec-safepath  Set the safepath
1998  --with-suexec-umask     umask for suexec'd process
1999
2000Some influential environment variables:
2001  CC          C compiler command
2002  CFLAGS      C compiler flags
2003  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2004              nonstandard directory <lib dir>
2005  LIBS        libraries to pass to the linker, e.g. -l<library>
2006  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2007              you have headers in a nonstandard directory <include dir>
2008  CPP         C preprocessor
2009
2010Use these variables to override the choices made by `configure' or to help
2011it to find libraries and programs with nonstandard names/locations.
2012
2013Report bugs to the package provider.
2014_ACEOF
2015ac_status=$?
2016fi
2017
2018if test "$ac_init_help" = "recursive"; then
2019  # If there are subdirs, report their specific --help.
2020  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2021    test -d "$ac_dir" ||
2022      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2023      continue
2024    ac_builddir=.
2025
2026case "$ac_dir" in
2027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2028*)
2029  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2030  # A ".." for each directory in $ac_dir_suffix.
2031  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2032  case $ac_top_builddir_sub in
2033  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2035  esac ;;
2036esac
2037ac_abs_top_builddir=$ac_pwd
2038ac_abs_builddir=$ac_pwd$ac_dir_suffix
2039# for backward compatibility:
2040ac_top_builddir=$ac_top_build_prefix
2041
2042case $srcdir in
2043  .)  # We are building in place.
2044    ac_srcdir=.
2045    ac_top_srcdir=$ac_top_builddir_sub
2046    ac_abs_top_srcdir=$ac_pwd ;;
2047  [\\/]* | ?:[\\/]* )  # Absolute name.
2048    ac_srcdir=$srcdir$ac_dir_suffix;
2049    ac_top_srcdir=$srcdir
2050    ac_abs_top_srcdir=$srcdir ;;
2051  *) # Relative name.
2052    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2053    ac_top_srcdir=$ac_top_build_prefix$srcdir
2054    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2055esac
2056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2057
2058    cd "$ac_dir" || { ac_status=$?; continue; }
2059    # Check for guested configure.
2060    if test -f "$ac_srcdir/configure.gnu"; then
2061      echo &&
2062      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2063    elif test -f "$ac_srcdir/configure"; then
2064      echo &&
2065      $SHELL "$ac_srcdir/configure" --help=recursive
2066    else
2067      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2068    fi || ac_status=$?
2069    cd "$ac_pwd" || { ac_status=$?; break; }
2070  done
2071fi
2072
2073test -n "$ac_init_help" && exit $ac_status
2074if $ac_init_version; then
2075  cat <<\_ACEOF
2076configure
2077generated by GNU Autoconf 2.69
2078
2079Copyright (C) 2012 Free Software Foundation, Inc.
2080This configure script is free software; the Free Software Foundation
2081gives unlimited permission to copy, distribute and modify it.
2082_ACEOF
2083  exit
2084fi
2085
2086## ------------------------ ##
2087## Autoconf initialization. ##
2088## ------------------------ ##
2089
2090# ac_fn_c_try_compile LINENO
2091# --------------------------
2092# Try to compile conftest.$ac_ext, and return whether this succeeded.
2093ac_fn_c_try_compile ()
2094{
2095  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096  rm -f conftest.$ac_objext
2097  if { { ac_try="$ac_compile"
2098case "(($ac_try" in
2099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100  *) ac_try_echo=$ac_try;;
2101esac
2102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103$as_echo "$ac_try_echo"; } >&5
2104  (eval "$ac_compile") 2>conftest.err
2105  ac_status=$?
2106  if test -s conftest.err; then
2107    grep -v '^ *+' conftest.err >conftest.er1
2108    cat conftest.er1 >&5
2109    mv -f conftest.er1 conftest.err
2110  fi
2111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112  test $ac_status = 0; } && {
2113	 test -z "$ac_c_werror_flag" ||
2114	 test ! -s conftest.err
2115       } && test -s conftest.$ac_objext; then :
2116  ac_retval=0
2117else
2118  $as_echo "$as_me: failed program was:" >&5
2119sed 's/^/| /' conftest.$ac_ext >&5
2120
2121	ac_retval=1
2122fi
2123  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124  as_fn_set_status $ac_retval
2125
2126} # ac_fn_c_try_compile
2127
2128# ac_fn_c_try_cpp LINENO
2129# ----------------------
2130# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_c_try_cpp ()
2132{
2133  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134  if { { ac_try="$ac_cpp conftest.$ac_ext"
2135case "(($ac_try" in
2136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137  *) ac_try_echo=$ac_try;;
2138esac
2139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140$as_echo "$ac_try_echo"; } >&5
2141  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2142  ac_status=$?
2143  if test -s conftest.err; then
2144    grep -v '^ *+' conftest.err >conftest.er1
2145    cat conftest.er1 >&5
2146    mv -f conftest.er1 conftest.err
2147  fi
2148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149  test $ac_status = 0; } > conftest.i && {
2150	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2151	 test ! -s conftest.err
2152       }; then :
2153  ac_retval=0
2154else
2155  $as_echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158    ac_retval=1
2159fi
2160  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161  as_fn_set_status $ac_retval
2162
2163} # ac_fn_c_try_cpp
2164
2165# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2166# -------------------------------------------------------
2167# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2168# the include files in INCLUDES and setting the cache variable VAR
2169# accordingly.
2170ac_fn_c_check_header_mongrel ()
2171{
2172  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173  if eval \${$3+:} false; then :
2174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175$as_echo_n "checking for $2... " >&6; }
2176if eval \${$3+:} false; then :
2177  $as_echo_n "(cached) " >&6
2178fi
2179eval ac_res=\$$3
2180	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182else
2183  # Is the header compilable?
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2185$as_echo_n "checking $2 usability... " >&6; }
2186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h.  */
2188$4
2189#include <$2>
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192  ac_header_compiler=yes
2193else
2194  ac_header_compiler=no
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2198$as_echo "$ac_header_compiler" >&6; }
2199
2200# Is the header present?
2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2202$as_echo_n "checking $2 presence... " >&6; }
2203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h.  */
2205#include <$2>
2206_ACEOF
2207if ac_fn_c_try_cpp "$LINENO"; then :
2208  ac_header_preproc=yes
2209else
2210  ac_header_preproc=no
2211fi
2212rm -f conftest.err conftest.i conftest.$ac_ext
2213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2214$as_echo "$ac_header_preproc" >&6; }
2215
2216# So?  What about this header?
2217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2218  yes:no: )
2219    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2220$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2223    ;;
2224  no:yes:* )
2225    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2226$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2227    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2228$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2229    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2230$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2232$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2233    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2235    ;;
2236esac
2237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238$as_echo_n "checking for $2... " >&6; }
2239if eval \${$3+:} false; then :
2240  $as_echo_n "(cached) " >&6
2241else
2242  eval "$3=\$ac_header_compiler"
2243fi
2244eval ac_res=\$$3
2245	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246$as_echo "$ac_res" >&6; }
2247fi
2248  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250} # ac_fn_c_check_header_mongrel
2251
2252# ac_fn_c_try_run LINENO
2253# ----------------------
2254# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2255# that executables *can* be run.
2256ac_fn_c_try_run ()
2257{
2258  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259  if { { ac_try="$ac_link"
2260case "(($ac_try" in
2261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262  *) ac_try_echo=$ac_try;;
2263esac
2264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265$as_echo "$ac_try_echo"; } >&5
2266  (eval "$ac_link") 2>&5
2267  ac_status=$?
2268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2270  { { case "(($ac_try" in
2271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272  *) ac_try_echo=$ac_try;;
2273esac
2274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275$as_echo "$ac_try_echo"; } >&5
2276  (eval "$ac_try") 2>&5
2277  ac_status=$?
2278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279  test $ac_status = 0; }; }; then :
2280  ac_retval=0
2281else
2282  $as_echo "$as_me: program exited with status $ac_status" >&5
2283       $as_echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286       ac_retval=$ac_status
2287fi
2288  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290  as_fn_set_status $ac_retval
2291
2292} # ac_fn_c_try_run
2293
2294# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2295# -------------------------------------------------------
2296# Tests whether HEADER exists and can be compiled using the include files in
2297# INCLUDES, setting the cache variable VAR accordingly.
2298ac_fn_c_check_header_compile ()
2299{
2300  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302$as_echo_n "checking for $2... " >&6; }
2303if eval \${$3+:} false; then :
2304  $as_echo_n "(cached) " >&6
2305else
2306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307/* end confdefs.h.  */
2308$4
2309#include <$2>
2310_ACEOF
2311if ac_fn_c_try_compile "$LINENO"; then :
2312  eval "$3=yes"
2313else
2314  eval "$3=no"
2315fi
2316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317fi
2318eval ac_res=\$$3
2319	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320$as_echo "$ac_res" >&6; }
2321  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322
2323} # ac_fn_c_check_header_compile
2324
2325# ac_fn_c_try_link LINENO
2326# -----------------------
2327# Try to link conftest.$ac_ext, and return whether this succeeded.
2328ac_fn_c_try_link ()
2329{
2330  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331  rm -f conftest.$ac_objext conftest$ac_exeext
2332  if { { ac_try="$ac_link"
2333case "(($ac_try" in
2334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335  *) ac_try_echo=$ac_try;;
2336esac
2337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2338$as_echo "$ac_try_echo"; } >&5
2339  (eval "$ac_link") 2>conftest.err
2340  ac_status=$?
2341  if test -s conftest.err; then
2342    grep -v '^ *+' conftest.err >conftest.er1
2343    cat conftest.er1 >&5
2344    mv -f conftest.er1 conftest.err
2345  fi
2346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347  test $ac_status = 0; } && {
2348	 test -z "$ac_c_werror_flag" ||
2349	 test ! -s conftest.err
2350       } && test -s conftest$ac_exeext && {
2351	 test "$cross_compiling" = yes ||
2352	 test -x conftest$ac_exeext
2353       }; then :
2354  ac_retval=0
2355else
2356  $as_echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359	ac_retval=1
2360fi
2361  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2362  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2363  # interfere with the next link command; also delete a directory that is
2364  # left behind by Apple's compiler.  We do this before executing the actions.
2365  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2366  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367  as_fn_set_status $ac_retval
2368
2369} # ac_fn_c_try_link
2370
2371# ac_fn_c_check_func LINENO FUNC VAR
2372# ----------------------------------
2373# Tests whether FUNC exists, setting the cache variable VAR accordingly
2374ac_fn_c_check_func ()
2375{
2376  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378$as_echo_n "checking for $2... " >&6; }
2379if eval \${$3+:} false; then :
2380  $as_echo_n "(cached) " >&6
2381else
2382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383/* end confdefs.h.  */
2384/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2385   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2386#define $2 innocuous_$2
2387
2388/* System header to define __stub macros and hopefully few prototypes,
2389    which can conflict with char $2 (); below.
2390    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2391    <limits.h> exists even on freestanding compilers.  */
2392
2393#ifdef __STDC__
2394# include <limits.h>
2395#else
2396# include <assert.h>
2397#endif
2398
2399#undef $2
2400
2401/* Override any GCC internal prototype to avoid an error.
2402   Use char because int might match the return type of a GCC
2403   builtin and then its argument prototype would still apply.  */
2404#ifdef __cplusplus
2405extern "C"
2406#endif
2407char $2 ();
2408/* The GNU C library defines this for functions which it implements
2409    to always fail with ENOSYS.  Some functions are actually named
2410    something starting with __ and the normal name is an alias.  */
2411#if defined __stub_$2 || defined __stub___$2
2412choke me
2413#endif
2414
2415int
2416main ()
2417{
2418return $2 ();
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423if ac_fn_c_try_link "$LINENO"; then :
2424  eval "$3=yes"
2425else
2426  eval "$3=no"
2427fi
2428rm -f core conftest.err conftest.$ac_objext \
2429    conftest$ac_exeext conftest.$ac_ext
2430fi
2431eval ac_res=\$$3
2432	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433$as_echo "$ac_res" >&6; }
2434  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435
2436} # ac_fn_c_check_func
2437
2438# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2439# ---------------------------------------------
2440# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2441# accordingly.
2442ac_fn_c_check_decl ()
2443{
2444  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445  as_decl_name=`echo $2|sed 's/ *(.*//'`
2446  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2448$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2449if eval \${$3+:} false; then :
2450  $as_echo_n "(cached) " >&6
2451else
2452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453/* end confdefs.h.  */
2454$4
2455int
2456main ()
2457{
2458#ifndef $as_decl_name
2459#ifdef __cplusplus
2460  (void) $as_decl_use;
2461#else
2462  (void) $as_decl_name;
2463#endif
2464#endif
2465
2466  ;
2467  return 0;
2468}
2469_ACEOF
2470if ac_fn_c_try_compile "$LINENO"; then :
2471  eval "$3=yes"
2472else
2473  eval "$3=no"
2474fi
2475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476fi
2477eval ac_res=\$$3
2478	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479$as_echo "$ac_res" >&6; }
2480  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481
2482} # ac_fn_c_check_decl
2483cat >config.log <<_ACEOF
2484This file contains any messages produced by compilers while
2485running configure, to aid debugging if configure makes a mistake.
2486
2487It was created by $as_me, which was
2488generated by GNU Autoconf 2.69.  Invocation command line was
2489
2490  $ $0 $@
2491
2492_ACEOF
2493exec 5>>config.log
2494{
2495cat <<_ASUNAME
2496## --------- ##
2497## Platform. ##
2498## --------- ##
2499
2500hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2501uname -m = `(uname -m) 2>/dev/null || echo unknown`
2502uname -r = `(uname -r) 2>/dev/null || echo unknown`
2503uname -s = `(uname -s) 2>/dev/null || echo unknown`
2504uname -v = `(uname -v) 2>/dev/null || echo unknown`
2505
2506/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2507/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2508
2509/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2510/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2511/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2512/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2513/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2514/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2515/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2516
2517_ASUNAME
2518
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522  IFS=$as_save_IFS
2523  test -z "$as_dir" && as_dir=.
2524    $as_echo "PATH: $as_dir"
2525  done
2526IFS=$as_save_IFS
2527
2528} >&5
2529
2530cat >&5 <<_ACEOF
2531
2532
2533## ----------- ##
2534## Core tests. ##
2535## ----------- ##
2536
2537_ACEOF
2538
2539
2540# Keep a trace of the command line.
2541# Strip out --no-create and --no-recursion so they do not pile up.
2542# Strip out --silent because we don't want to record it for future runs.
2543# Also quote any args containing shell meta-characters.
2544# Make two passes to allow for proper duplicate-argument suppression.
2545ac_configure_args=
2546ac_configure_args0=
2547ac_configure_args1=
2548ac_must_keep_next=false
2549for ac_pass in 1 2
2550do
2551  for ac_arg
2552  do
2553    case $ac_arg in
2554    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2555    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2556    | -silent | --silent | --silen | --sile | --sil)
2557      continue ;;
2558    *\'*)
2559      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2560    esac
2561    case $ac_pass in
2562    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2563    2)
2564      as_fn_append ac_configure_args1 " '$ac_arg'"
2565      if test $ac_must_keep_next = true; then
2566	ac_must_keep_next=false # Got value, back to normal.
2567      else
2568	case $ac_arg in
2569	  *=* | --config-cache | -C | -disable-* | --disable-* \
2570	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2571	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2572	  | -with-* | --with-* | -without-* | --without-* | --x)
2573	    case "$ac_configure_args0 " in
2574	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2575	    esac
2576	    ;;
2577	  -* ) ac_must_keep_next=true ;;
2578	esac
2579      fi
2580      as_fn_append ac_configure_args " '$ac_arg'"
2581      ;;
2582    esac
2583  done
2584done
2585{ ac_configure_args0=; unset ac_configure_args0;}
2586{ ac_configure_args1=; unset ac_configure_args1;}
2587
2588# When interrupted or exit'd, cleanup temporary files, and complete
2589# config.log.  We remove comments because anyway the quotes in there
2590# would cause problems or look ugly.
2591# WARNING: Use '\'' to represent an apostrophe within the trap.
2592# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2593trap 'exit_status=$?
2594  # Save into config.log some information that might help in debugging.
2595  {
2596    echo
2597
2598    $as_echo "## ---------------- ##
2599## Cache variables. ##
2600## ---------------- ##"
2601    echo
2602    # The following way of writing the cache mishandles newlines in values,
2603(
2604  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2605    eval ac_val=\$$ac_var
2606    case $ac_val in #(
2607    *${as_nl}*)
2608      case $ac_var in #(
2609      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2610$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2611      esac
2612      case $ac_var in #(
2613      _ | IFS | as_nl) ;; #(
2614      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2615      *) { eval $ac_var=; unset $ac_var;} ;;
2616      esac ;;
2617    esac
2618  done
2619  (set) 2>&1 |
2620    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2621    *${as_nl}ac_space=\ *)
2622      sed -n \
2623	"s/'\''/'\''\\\\'\'''\''/g;
2624	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2625      ;; #(
2626    *)
2627      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2628      ;;
2629    esac |
2630    sort
2631)
2632    echo
2633
2634    $as_echo "## ----------------- ##
2635## Output variables. ##
2636## ----------------- ##"
2637    echo
2638    for ac_var in $ac_subst_vars
2639    do
2640      eval ac_val=\$$ac_var
2641      case $ac_val in
2642      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2643      esac
2644      $as_echo "$ac_var='\''$ac_val'\''"
2645    done | sort
2646    echo
2647
2648    if test -n "$ac_subst_files"; then
2649      $as_echo "## ------------------- ##
2650## File substitutions. ##
2651## ------------------- ##"
2652      echo
2653      for ac_var in $ac_subst_files
2654      do
2655	eval ac_val=\$$ac_var
2656	case $ac_val in
2657	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2658	esac
2659	$as_echo "$ac_var='\''$ac_val'\''"
2660      done | sort
2661      echo
2662    fi
2663
2664    if test -s confdefs.h; then
2665      $as_echo "## ----------- ##
2666## confdefs.h. ##
2667## ----------- ##"
2668      echo
2669      cat confdefs.h
2670      echo
2671    fi
2672    test "$ac_signal" != 0 &&
2673      $as_echo "$as_me: caught signal $ac_signal"
2674    $as_echo "$as_me: exit $exit_status"
2675  } >&5
2676  rm -f core *.core core.conftest.* &&
2677    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2678    exit $exit_status
2679' 0
2680for ac_signal in 1 2 13 15; do
2681  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2682done
2683ac_signal=0
2684
2685# confdefs.h avoids OS command line length limits that DEFS can exceed.
2686rm -f -r conftest* confdefs.h
2687
2688$as_echo "/* confdefs.h */" > confdefs.h
2689
2690# Predefined preprocessor variables.
2691
2692cat >>confdefs.h <<_ACEOF
2693#define PACKAGE_NAME "$PACKAGE_NAME"
2694_ACEOF
2695
2696cat >>confdefs.h <<_ACEOF
2697#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2698_ACEOF
2699
2700cat >>confdefs.h <<_ACEOF
2701#define PACKAGE_VERSION "$PACKAGE_VERSION"
2702_ACEOF
2703
2704cat >>confdefs.h <<_ACEOF
2705#define PACKAGE_STRING "$PACKAGE_STRING"
2706_ACEOF
2707
2708cat >>confdefs.h <<_ACEOF
2709#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2710_ACEOF
2711
2712cat >>confdefs.h <<_ACEOF
2713#define PACKAGE_URL "$PACKAGE_URL"
2714_ACEOF
2715
2716
2717# Let the site file select an alternate cache file if it wants to.
2718# Prefer an explicitly selected file to automatically selected ones.
2719ac_site_file1=NONE
2720ac_site_file2=NONE
2721if test -n "$CONFIG_SITE"; then
2722  # We do not want a PATH search for config.site.
2723  case $CONFIG_SITE in #((
2724    -*)  ac_site_file1=./$CONFIG_SITE;;
2725    */*) ac_site_file1=$CONFIG_SITE;;
2726    *)   ac_site_file1=./$CONFIG_SITE;;
2727  esac
2728elif test "x$prefix" != xNONE; then
2729  ac_site_file1=$prefix/share/config.site
2730  ac_site_file2=$prefix/etc/config.site
2731else
2732  ac_site_file1=$ac_default_prefix/share/config.site
2733  ac_site_file2=$ac_default_prefix/etc/config.site
2734fi
2735for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2736do
2737  test "x$ac_site_file" = xNONE && continue
2738  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2739    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2740$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2741    sed 's/^/| /' "$ac_site_file" >&5
2742    . "$ac_site_file" \
2743      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745as_fn_error $? "failed to load site script $ac_site_file
2746See \`config.log' for more details" "$LINENO" 5; }
2747  fi
2748done
2749
2750if test -r "$cache_file"; then
2751  # Some versions of bash will fail to source /dev/null (special files
2752  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2753  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2754    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2755$as_echo "$as_me: loading cache $cache_file" >&6;}
2756    case $cache_file in
2757      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2758      *)                      . "./$cache_file";;
2759    esac
2760  fi
2761else
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2763$as_echo "$as_me: creating cache $cache_file" >&6;}
2764  >$cache_file
2765fi
2766
2767# Check that the precious variables saved in the cache have kept the same
2768# value.
2769ac_cache_corrupted=false
2770for ac_var in $ac_precious_vars; do
2771  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2772  eval ac_new_set=\$ac_env_${ac_var}_set
2773  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2774  eval ac_new_val=\$ac_env_${ac_var}_value
2775  case $ac_old_set,$ac_new_set in
2776    set,)
2777      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2778$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2779      ac_cache_corrupted=: ;;
2780    ,set)
2781      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2782$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2783      ac_cache_corrupted=: ;;
2784    ,);;
2785    *)
2786      if test "x$ac_old_val" != "x$ac_new_val"; then
2787	# differences in whitespace do not lead to failure.
2788	ac_old_val_w=`echo x $ac_old_val`
2789	ac_new_val_w=`echo x $ac_new_val`
2790	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2791	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2792$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2793	  ac_cache_corrupted=:
2794	else
2795	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2796$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2797	  eval $ac_var=\$ac_old_val
2798	fi
2799	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2800$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2801	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2802$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2803      fi;;
2804  esac
2805  # Pass precious variables to config.status.
2806  if test "$ac_new_set" = set; then
2807    case $ac_new_val in
2808    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2809    *) ac_arg=$ac_var=$ac_new_val ;;
2810    esac
2811    case " $ac_configure_args " in
2812      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2813      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2814    esac
2815  fi
2816done
2817if $ac_cache_corrupted; then
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2821$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2822  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2823fi
2824## -------------------- ##
2825## Main body of script. ##
2826## -------------------- ##
2827
2828ac_ext=c
2829ac_cpp='$CPP $CPPFLAGS'
2830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833
2834
2835
2836ac_config_headers="$ac_config_headers include/ap_config_auto.h"
2837
2838ac_aux_dir=
2839for ac_dir in build "$srcdir"/build; do
2840  if test -f "$ac_dir/install-sh"; then
2841    ac_aux_dir=$ac_dir
2842    ac_install_sh="$ac_aux_dir/install-sh -c"
2843    break
2844  elif test -f "$ac_dir/install.sh"; then
2845    ac_aux_dir=$ac_dir
2846    ac_install_sh="$ac_aux_dir/install.sh -c"
2847    break
2848  elif test -f "$ac_dir/shtool"; then
2849    ac_aux_dir=$ac_dir
2850    ac_install_sh="$ac_aux_dir/shtool install -c"
2851    break
2852  fi
2853done
2854if test -z "$ac_aux_dir"; then
2855  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2856fi
2857
2858# These three variables are undocumented and unsupported,
2859# and are intended to be withdrawn in a future Autoconf release.
2860# They can cause serious problems if a builder's source tree is in a directory
2861# whose full name contains unusual characters.
2862ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2863ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2864ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2865
2866
2867
2868abs_srcdir=`(cd $srcdir && pwd)`
2869abs_builddir=`pwd`
2870
2871HTTPD_VERSION=`$abs_srcdir/build/get-version.sh all $abs_srcdir/include/ap_release.h AP_SERVER`
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002# Check whether --enable-layout was given.
3003if test "${enable_layout+set}" = set; then :
3004  enableval=$enable_layout;
3005  LAYOUT=$enableval
3006
3007fi
3008
3009
3010if test -z "$LAYOUT"; then
3011  LAYOUT="Apache"
3012fi
3013
3014  if test ! -f $srcdir/config.layout; then
3015    echo "** Error: Layout file $srcdir/config.layout not found"
3016    echo "** Error: Cannot use undefined layout '$LAYOUT'"
3017    exit 1
3018  fi
3019  # Catch layout names including a slash which will otherwise
3020  # confuse the heck out of the sed script.
3021  case $LAYOUT in
3022  */*)
3023    echo "** Error: $LAYOUT is not a valid layout name"
3024    exit 1 ;;
3025  esac
3026  pldconf=./config.pld
3027
3028  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
3029      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
3030      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
3031      -e "s/^[ 	]*//g" \
3032      -e "s/:[ 	]*/=\'/g" \
3033      -e "s/[ 	]*$/'/g" \
3034      $srcdir/config.layout > $pldconf
3035  layout_name=$LAYOUT
3036  if test ! -s $pldconf; then
3037    echo "** Error: unable to find layout $layout_name"
3038    exit 1
3039  fi
3040  . $pldconf
3041  rm $pldconf
3042  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
3043             sysconfdir datadir includedir localstatedir runtimedir \
3044             logfiledir libdir installbuilddir libsuffix errordir iconsdir htdocsdir cgidir; do
3045    eval "val=\"\$$var\""
3046    case $val in
3047      *+)
3048        val=`echo $val | sed -e 's;\+$;;'`
3049        eval "$var=\"\$val\""
3050        autosuffix=yes
3051        ;;
3052      *)
3053        autosuffix=no
3054        ;;
3055    esac
3056    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
3057    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
3058    if test "$autosuffix" = "yes"; then
3059      if echo $val | grep apache >/dev/null; then
3060        addtarget=no
3061      else
3062        addtarget=yes
3063      fi
3064      if test "$addtarget" = "yes"; then
3065        val="$val/apache2"
3066      fi
3067    fi
3068    eval "$var='$val'"
3069  done
3070
3071
3072
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
3074$as_echo_n "checking for chosen layout... " >&6; }
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
3076$as_echo "$layout_name" >&6; }
3077
3078
3079
3080ac_prev=
3081# Retrieve the command-line arguments.  The eval is needed because
3082# the arguments are quoted to preserve accuracy.
3083eval "set x $ac_configure_args"
3084shift
3085for ac_option
3086do
3087  # If the previous option needs an argument, assign it.
3088  if test -n "$ac_prev"; then
3089    eval "$ac_prev=\$ac_option"
3090    ac_prev=
3091    continue
3092  fi
3093
3094  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
3095
3096  case $ac_option in
3097
3098  -bindir | --bindir | --bindi | --bind | --bin | --bi)
3099    ac_prev=bindir ;;
3100  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3101    bindir="$ac_optarg" ;;
3102
3103  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
3104    ac_prev=datadir ;;
3105  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
3106  | --da=*)
3107    datadir="$ac_optarg" ;;
3108
3109  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
3110  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
3111  | --exec | --exe | --ex)
3112    ac_prev=exec_prefix ;;
3113  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
3114  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
3115  | --exec=* | --exe=* | --ex=*)
3116    exec_prefix="$ac_optarg" ;;
3117
3118  -includedir | --includedir | --includedi | --included | --include \
3119  | --includ | --inclu | --incl | --inc)
3120    ac_prev=includedir ;;
3121  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
3122  | --includ=* | --inclu=* | --incl=* | --inc=*)
3123    includedir="$ac_optarg" ;;
3124
3125  -infodir | --infodir | --infodi | --infod | --info | --inf)
3126    ac_prev=infodir ;;
3127  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3128    infodir="$ac_optarg" ;;
3129
3130  -libdir | --libdir | --libdi | --libd)
3131    ac_prev=libdir ;;
3132  -libdir=* | --libdir=* | --libdi=* | --libd=*)
3133    libdir="$ac_optarg" ;;
3134
3135  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
3136  | --libexe | --libex | --libe)
3137    ac_prev=libexecdir ;;
3138  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
3139  | --libexe=* | --libex=* | --libe=*)
3140    libexecdir="$ac_optarg" ;;
3141
3142  -localstatedir | --localstatedir | --localstatedi | --localstated \
3143  | --localstate | --localstat | --localsta | --localst \
3144  | --locals | --local | --loca | --loc | --lo)
3145    ac_prev=localstatedir ;;
3146  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
3147  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
3148  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3149    localstatedir="$ac_optarg" ;;
3150
3151  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
3152    ac_prev=mandir ;;
3153  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3154    mandir="$ac_optarg" ;;
3155
3156  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
3157    ac_prev=prefix ;;
3158  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3159    prefix="$ac_optarg" ;;
3160
3161  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
3162    ac_prev=sbindir ;;
3163  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
3164  | --sbi=* | --sb=*)
3165    sbindir="$ac_optarg" ;;
3166
3167  -sharedstatedir | --sharedstatedir | --sharedstatedi \
3168  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
3169  | --sharedst | --shareds | --shared | --share | --shar \
3170  | --sha | --sh)
3171    ac_prev=sharedstatedir ;;
3172  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
3173  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
3174  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
3175  | --sha=* | --sh=*)
3176    sharedstatedir="$ac_optarg" ;;
3177
3178  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
3179  | --syscon | --sysco | --sysc | --sys | --sy)
3180    ac_prev=sysconfdir ;;
3181  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
3182  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3183    sysconfdir="$ac_optarg" ;;
3184
3185  esac
3186done
3187
3188# Be sure to have absolute paths.
3189for ac_var in exec_prefix prefix
3190do
3191  eval ac_val=$`echo $ac_var`
3192  case $ac_val in
3193    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
3194    *)  as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
3195  esac
3196done
3197
3198
3199
3200
3201
3202
3203ap_last=
3204ap_cur="$exec_prefix"
3205while test "x${ap_cur}" != "x${ap_last}";
3206do
3207  ap_last="${ap_cur}"
3208  ap_cur=`eval "echo ${ap_cur}"`
3209done
3210exp_exec_prefix="${ap_cur}"
3211
3212
3213  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_exec_prefix"
3214
3215
3216
3217ap_stripped=`echo $exp_exec_prefix | sed -e "s#^${prefix}##"`
3218# check if the stripping was successful
3219if test "x$exp_exec_prefix" != "x${ap_stripped}"; then
3220    # it was, so strip of any leading slashes
3221    rel_exec_prefix="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3222else
3223    # it wasn't so return the original
3224    rel_exec_prefix="$exp_exec_prefix"
3225fi
3226
3227
3228  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_exec_prefix"
3229
3230
3231
3232
3233
3234ap_last=
3235ap_cur="$bindir"
3236while test "x${ap_cur}" != "x${ap_last}";
3237do
3238  ap_last="${ap_cur}"
3239  ap_cur=`eval "echo ${ap_cur}"`
3240done
3241exp_bindir="${ap_cur}"
3242
3243
3244  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_bindir"
3245
3246
3247
3248ap_stripped=`echo $exp_bindir | sed -e "s#^${prefix}##"`
3249# check if the stripping was successful
3250if test "x$exp_bindir" != "x${ap_stripped}"; then
3251    # it was, so strip of any leading slashes
3252    rel_bindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3253else
3254    # it wasn't so return the original
3255    rel_bindir="$exp_bindir"
3256fi
3257
3258
3259  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_bindir"
3260
3261
3262
3263
3264
3265ap_last=
3266ap_cur="$sbindir"
3267while test "x${ap_cur}" != "x${ap_last}";
3268do
3269  ap_last="${ap_cur}"
3270  ap_cur=`eval "echo ${ap_cur}"`
3271done
3272exp_sbindir="${ap_cur}"
3273
3274
3275  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sbindir"
3276
3277
3278
3279ap_stripped=`echo $exp_sbindir | sed -e "s#^${prefix}##"`
3280# check if the stripping was successful
3281if test "x$exp_sbindir" != "x${ap_stripped}"; then
3282    # it was, so strip of any leading slashes
3283    rel_sbindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3284else
3285    # it wasn't so return the original
3286    rel_sbindir="$exp_sbindir"
3287fi
3288
3289
3290  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sbindir"
3291
3292
3293
3294
3295
3296ap_last=
3297ap_cur="$libdir"
3298while test "x${ap_cur}" != "x${ap_last}";
3299do
3300  ap_last="${ap_cur}"
3301  ap_cur=`eval "echo ${ap_cur}"`
3302done
3303exp_libdir="${ap_cur}"
3304
3305
3306  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libdir"
3307
3308
3309
3310ap_stripped=`echo $exp_libdir | sed -e "s#^${prefix}##"`
3311# check if the stripping was successful
3312if test "x$exp_libdir" != "x${ap_stripped}"; then
3313    # it was, so strip of any leading slashes
3314    rel_libdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3315else
3316    # it wasn't so return the original
3317    rel_libdir="$exp_libdir"
3318fi
3319
3320
3321  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libdir"
3322
3323
3324
3325
3326
3327ap_last=
3328ap_cur="$libexecdir"
3329while test "x${ap_cur}" != "x${ap_last}";
3330do
3331  ap_last="${ap_cur}"
3332  ap_cur=`eval "echo ${ap_cur}"`
3333done
3334exp_libexecdir="${ap_cur}"
3335
3336
3337  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libexecdir"
3338
3339
3340
3341ap_stripped=`echo $exp_libexecdir | sed -e "s#^${prefix}##"`
3342# check if the stripping was successful
3343if test "x$exp_libexecdir" != "x${ap_stripped}"; then
3344    # it was, so strip of any leading slashes
3345    rel_libexecdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3346else
3347    # it wasn't so return the original
3348    rel_libexecdir="$exp_libexecdir"
3349fi
3350
3351
3352  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libexecdir"
3353
3354
3355
3356
3357
3358ap_last=
3359ap_cur="$mandir"
3360while test "x${ap_cur}" != "x${ap_last}";
3361do
3362  ap_last="${ap_cur}"
3363  ap_cur=`eval "echo ${ap_cur}"`
3364done
3365exp_mandir="${ap_cur}"
3366
3367
3368  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_mandir"
3369
3370
3371
3372ap_stripped=`echo $exp_mandir | sed -e "s#^${prefix}##"`
3373# check if the stripping was successful
3374if test "x$exp_mandir" != "x${ap_stripped}"; then
3375    # it was, so strip of any leading slashes
3376    rel_mandir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3377else
3378    # it wasn't so return the original
3379    rel_mandir="$exp_mandir"
3380fi
3381
3382
3383  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_mandir"
3384
3385
3386
3387
3388
3389ap_last=
3390ap_cur="$sysconfdir"
3391while test "x${ap_cur}" != "x${ap_last}";
3392do
3393  ap_last="${ap_cur}"
3394  ap_cur=`eval "echo ${ap_cur}"`
3395done
3396exp_sysconfdir="${ap_cur}"
3397
3398
3399  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sysconfdir"
3400
3401
3402
3403ap_stripped=`echo $exp_sysconfdir | sed -e "s#^${prefix}##"`
3404# check if the stripping was successful
3405if test "x$exp_sysconfdir" != "x${ap_stripped}"; then
3406    # it was, so strip of any leading slashes
3407    rel_sysconfdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3408else
3409    # it wasn't so return the original
3410    rel_sysconfdir="$exp_sysconfdir"
3411fi
3412
3413
3414  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sysconfdir"
3415
3416
3417
3418
3419
3420ap_last=
3421ap_cur="$datadir"
3422while test "x${ap_cur}" != "x${ap_last}";
3423do
3424  ap_last="${ap_cur}"
3425  ap_cur=`eval "echo ${ap_cur}"`
3426done
3427exp_datadir="${ap_cur}"
3428
3429
3430  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_datadir"
3431
3432
3433
3434ap_stripped=`echo $exp_datadir | sed -e "s#^${prefix}##"`
3435# check if the stripping was successful
3436if test "x$exp_datadir" != "x${ap_stripped}"; then
3437    # it was, so strip of any leading slashes
3438    rel_datadir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3439else
3440    # it wasn't so return the original
3441    rel_datadir="$exp_datadir"
3442fi
3443
3444
3445  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_datadir"
3446
3447
3448
3449
3450
3451ap_last=
3452ap_cur="$installbuilddir"
3453while test "x${ap_cur}" != "x${ap_last}";
3454do
3455  ap_last="${ap_cur}"
3456  ap_cur=`eval "echo ${ap_cur}"`
3457done
3458exp_installbuilddir="${ap_cur}"
3459
3460
3461  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_installbuilddir"
3462
3463
3464
3465ap_stripped=`echo $exp_installbuilddir | sed -e "s#^${prefix}##"`
3466# check if the stripping was successful
3467if test "x$exp_installbuilddir" != "x${ap_stripped}"; then
3468    # it was, so strip of any leading slashes
3469    rel_installbuilddir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3470else
3471    # it wasn't so return the original
3472    rel_installbuilddir="$exp_installbuilddir"
3473fi
3474
3475
3476  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_installbuilddir"
3477
3478
3479
3480
3481
3482ap_last=
3483ap_cur="$errordir"
3484while test "x${ap_cur}" != "x${ap_last}";
3485do
3486  ap_last="${ap_cur}"
3487  ap_cur=`eval "echo ${ap_cur}"`
3488done
3489exp_errordir="${ap_cur}"
3490
3491
3492  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_errordir"
3493
3494
3495
3496ap_stripped=`echo $exp_errordir | sed -e "s#^${prefix}##"`
3497# check if the stripping was successful
3498if test "x$exp_errordir" != "x${ap_stripped}"; then
3499    # it was, so strip of any leading slashes
3500    rel_errordir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3501else
3502    # it wasn't so return the original
3503    rel_errordir="$exp_errordir"
3504fi
3505
3506
3507  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_errordir"
3508
3509
3510
3511
3512
3513ap_last=
3514ap_cur="$iconsdir"
3515while test "x${ap_cur}" != "x${ap_last}";
3516do
3517  ap_last="${ap_cur}"
3518  ap_cur=`eval "echo ${ap_cur}"`
3519done
3520exp_iconsdir="${ap_cur}"
3521
3522
3523  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_iconsdir"
3524
3525
3526
3527ap_stripped=`echo $exp_iconsdir | sed -e "s#^${prefix}##"`
3528# check if the stripping was successful
3529if test "x$exp_iconsdir" != "x${ap_stripped}"; then
3530    # it was, so strip of any leading slashes
3531    rel_iconsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3532else
3533    # it wasn't so return the original
3534    rel_iconsdir="$exp_iconsdir"
3535fi
3536
3537
3538  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_iconsdir"
3539
3540
3541
3542
3543
3544ap_last=
3545ap_cur="$htdocsdir"
3546while test "x${ap_cur}" != "x${ap_last}";
3547do
3548  ap_last="${ap_cur}"
3549  ap_cur=`eval "echo ${ap_cur}"`
3550done
3551exp_htdocsdir="${ap_cur}"
3552
3553
3554  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_htdocsdir"
3555
3556
3557
3558ap_stripped=`echo $exp_htdocsdir | sed -e "s#^${prefix}##"`
3559# check if the stripping was successful
3560if test "x$exp_htdocsdir" != "x${ap_stripped}"; then
3561    # it was, so strip of any leading slashes
3562    rel_htdocsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3563else
3564    # it wasn't so return the original
3565    rel_htdocsdir="$exp_htdocsdir"
3566fi
3567
3568
3569  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_htdocsdir"
3570
3571
3572
3573
3574
3575ap_last=
3576ap_cur="$manualdir"
3577while test "x${ap_cur}" != "x${ap_last}";
3578do
3579  ap_last="${ap_cur}"
3580  ap_cur=`eval "echo ${ap_cur}"`
3581done
3582exp_manualdir="${ap_cur}"
3583
3584
3585  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_manualdir"
3586
3587
3588
3589ap_stripped=`echo $exp_manualdir | sed -e "s#^${prefix}##"`
3590# check if the stripping was successful
3591if test "x$exp_manualdir" != "x${ap_stripped}"; then
3592    # it was, so strip of any leading slashes
3593    rel_manualdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3594else
3595    # it wasn't so return the original
3596    rel_manualdir="$exp_manualdir"
3597fi
3598
3599
3600  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_manualdir"
3601
3602
3603
3604
3605
3606ap_last=
3607ap_cur="$cgidir"
3608while test "x${ap_cur}" != "x${ap_last}";
3609do
3610  ap_last="${ap_cur}"
3611  ap_cur=`eval "echo ${ap_cur}"`
3612done
3613exp_cgidir="${ap_cur}"
3614
3615
3616  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_cgidir"
3617
3618
3619
3620ap_stripped=`echo $exp_cgidir | sed -e "s#^${prefix}##"`
3621# check if the stripping was successful
3622if test "x$exp_cgidir" != "x${ap_stripped}"; then
3623    # it was, so strip of any leading slashes
3624    rel_cgidir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3625else
3626    # it wasn't so return the original
3627    rel_cgidir="$exp_cgidir"
3628fi
3629
3630
3631  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_cgidir"
3632
3633
3634
3635
3636
3637ap_last=
3638ap_cur="$includedir"
3639while test "x${ap_cur}" != "x${ap_last}";
3640do
3641  ap_last="${ap_cur}"
3642  ap_cur=`eval "echo ${ap_cur}"`
3643done
3644exp_includedir="${ap_cur}"
3645
3646
3647  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_includedir"
3648
3649
3650
3651ap_stripped=`echo $exp_includedir | sed -e "s#^${prefix}##"`
3652# check if the stripping was successful
3653if test "x$exp_includedir" != "x${ap_stripped}"; then
3654    # it was, so strip of any leading slashes
3655    rel_includedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3656else
3657    # it wasn't so return the original
3658    rel_includedir="$exp_includedir"
3659fi
3660
3661
3662  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_includedir"
3663
3664
3665
3666
3667
3668ap_last=
3669ap_cur="$localstatedir"
3670while test "x${ap_cur}" != "x${ap_last}";
3671do
3672  ap_last="${ap_cur}"
3673  ap_cur=`eval "echo ${ap_cur}"`
3674done
3675exp_localstatedir="${ap_cur}"
3676
3677
3678  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_localstatedir"
3679
3680
3681
3682ap_stripped=`echo $exp_localstatedir | sed -e "s#^${prefix}##"`
3683# check if the stripping was successful
3684if test "x$exp_localstatedir" != "x${ap_stripped}"; then
3685    # it was, so strip of any leading slashes
3686    rel_localstatedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3687else
3688    # it wasn't so return the original
3689    rel_localstatedir="$exp_localstatedir"
3690fi
3691
3692
3693  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_localstatedir"
3694
3695
3696
3697
3698
3699ap_last=
3700ap_cur="$runtimedir"
3701while test "x${ap_cur}" != "x${ap_last}";
3702do
3703  ap_last="${ap_cur}"
3704  ap_cur=`eval "echo ${ap_cur}"`
3705done
3706exp_runtimedir="${ap_cur}"
3707
3708
3709  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_runtimedir"
3710
3711
3712
3713ap_stripped=`echo $exp_runtimedir | sed -e "s#^${prefix}##"`
3714# check if the stripping was successful
3715if test "x$exp_runtimedir" != "x${ap_stripped}"; then
3716    # it was, so strip of any leading slashes
3717    rel_runtimedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3718else
3719    # it wasn't so return the original
3720    rel_runtimedir="$exp_runtimedir"
3721fi
3722
3723
3724  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_runtimedir"
3725
3726
3727
3728
3729
3730ap_last=
3731ap_cur="$logfiledir"
3732while test "x${ap_cur}" != "x${ap_last}";
3733do
3734  ap_last="${ap_cur}"
3735  ap_cur=`eval "echo ${ap_cur}"`
3736done
3737exp_logfiledir="${ap_cur}"
3738
3739
3740  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_logfiledir"
3741
3742
3743
3744ap_stripped=`echo $exp_logfiledir | sed -e "s#^${prefix}##"`
3745# check if the stripping was successful
3746if test "x$exp_logfiledir" != "x${ap_stripped}"; then
3747    # it was, so strip of any leading slashes
3748    rel_logfiledir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3749else
3750    # it wasn't so return the original
3751    rel_logfiledir="$exp_logfiledir"
3752fi
3753
3754
3755  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_logfiledir"
3756
3757
3758
3759
3760
3761ap_last=
3762ap_cur="$proxycachedir"
3763while test "x${ap_cur}" != "x${ap_last}";
3764do
3765  ap_last="${ap_cur}"
3766  ap_cur=`eval "echo ${ap_cur}"`
3767done
3768exp_proxycachedir="${ap_cur}"
3769
3770
3771  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_proxycachedir"
3772
3773
3774
3775ap_stripped=`echo $exp_proxycachedir | sed -e "s#^${prefix}##"`
3776# check if the stripping was successful
3777if test "x$exp_proxycachedir" != "x${ap_stripped}"; then
3778    # it was, so strip of any leading slashes
3779    rel_proxycachedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
3780else
3781    # it wasn't so return the original
3782    rel_proxycachedir="$exp_proxycachedir"
3783fi
3784
3785
3786  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_proxycachedir"
3787
3788
3789
3790
3791
3792
3793  apr_ste_save_CPPFLAGS="$CPPFLAGS"
3794
3795
3796  apr_ste_save_CFLAGS="$CFLAGS"
3797
3798
3799  apr_ste_save_CXXFLAGS="$CXXFLAGS"
3800
3801
3802  apr_ste_save_LDFLAGS="$LDFLAGS"
3803
3804
3805  apr_ste_save_LIBS="$LIBS"
3806
3807
3808  apr_ste_save_INCLUDES="$INCLUDES"
3809
3810
3811
3812  rm -f config.nice
3813  cat >config.nice<<EOF
3814#! /bin/sh
3815#
3816# Created by configure
3817
3818EOF
3819  if test -n "$CC"; then
3820    echo "CC=\"$CC\"; export CC" >> config.nice
3821  fi
3822  if test -n "$CFLAGS"; then
3823    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
3824  fi
3825  if test -n "$CPPFLAGS"; then
3826    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
3827  fi
3828  if test -n "$LDFLAGS"; then
3829    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
3830  fi
3831  if test -n "$LTFLAGS"; then
3832    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
3833  fi
3834  if test -n "$LIBS"; then
3835    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
3836  fi
3837  if test -n "$INCLUDES"; then
3838    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
3839  fi
3840  if test -n "$NOTEST_CFLAGS"; then
3841    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
3842  fi
3843  if test -n "$NOTEST_CPPFLAGS"; then
3844    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
3845  fi
3846  if test -n "$NOTEST_LDFLAGS"; then
3847    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
3848  fi
3849  if test -n "$NOTEST_LIBS"; then
3850    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
3851  fi
3852
3853  # Retrieve command-line arguments.
3854  eval "set x $0 $ac_configure_args"
3855  shift
3856
3857  for arg
3858  do
3859
3860ap_last=
3861ap_cur="$arg"
3862while test "x${ap_cur}" != "x${ap_last}";
3863do
3864  ap_last="${ap_cur}"
3865  ap_cur=`eval "echo ${ap_cur}"`
3866done
3867arg="${ap_cur}"
3868
3869    echo "\"$arg\" \\" >> config.nice
3870  done
3871  echo '"$@"' >> config.nice
3872  chmod +x config.nice
3873
3874
3875nl='
3876'
3877
3878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
3879$as_echo_n "checking for working mkdir -p... " >&6; }
3880if ${ac_cv_mkdir_p+:} false; then :
3881  $as_echo_n "(cached) " >&6
3882else
3883
3884    test -d conftestdir && rm -rf conftestdir
3885    mkdir -p conftestdir/somedir >/dev/null 2>&1
3886    if test -d conftestdir/somedir; then
3887      ac_cv_mkdir_p=yes
3888    else
3889      ac_cv_mkdir_p=no
3890    fi
3891    rm -rf conftestdir
3892
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
3895$as_echo "$ac_cv_mkdir_p" >&6; }
3896  if test "$ac_cv_mkdir_p" = "yes"; then
3897      mkdir_p="mkdir -p"
3898  else
3899      mkdir_p="$top_srcdir/build/mkdir.sh"
3900  fi
3901
3902
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3904$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3905if ${ac_cv_path_GREP+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  if test -z "$GREP"; then
3909  ac_path_GREP_found=false
3910  # Loop through the user's path and test for each of PROGNAME-LIST
3911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3913do
3914  IFS=$as_save_IFS
3915  test -z "$as_dir" && as_dir=.
3916    for ac_prog in grep ggrep; do
3917    for ac_exec_ext in '' $ac_executable_extensions; do
3918      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3919      as_fn_executable_p "$ac_path_GREP" || continue
3920# Check for GNU ac_path_GREP and select it if it is found.
3921  # Check for GNU $ac_path_GREP
3922case `"$ac_path_GREP" --version 2>&1` in
3923*GNU*)
3924  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3925*)
3926  ac_count=0
3927  $as_echo_n 0123456789 >"conftest.in"
3928  while :
3929  do
3930    cat "conftest.in" "conftest.in" >"conftest.tmp"
3931    mv "conftest.tmp" "conftest.in"
3932    cp "conftest.in" "conftest.nl"
3933    $as_echo 'GREP' >> "conftest.nl"
3934    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936    as_fn_arith $ac_count + 1 && ac_count=$as_val
3937    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3938      # Best one so far, save it but keep looking for a better one
3939      ac_cv_path_GREP="$ac_path_GREP"
3940      ac_path_GREP_max=$ac_count
3941    fi
3942    # 10*(2^10) chars as input seems more than enough
3943    test $ac_count -gt 10 && break
3944  done
3945  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946esac
3947
3948      $ac_path_GREP_found && break 3
3949    done
3950  done
3951  done
3952IFS=$as_save_IFS
3953  if test -z "$ac_cv_path_GREP"; then
3954    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3955  fi
3956else
3957  ac_cv_path_GREP=$GREP
3958fi
3959
3960fi
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3962$as_echo "$ac_cv_path_GREP" >&6; }
3963 GREP="$ac_cv_path_GREP"
3964
3965
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3967$as_echo_n "checking for egrep... " >&6; }
3968if ${ac_cv_path_EGREP+:} false; then :
3969  $as_echo_n "(cached) " >&6
3970else
3971  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972   then ac_cv_path_EGREP="$GREP -E"
3973   else
3974     if test -z "$EGREP"; then
3975  ac_path_EGREP_found=false
3976  # Loop through the user's path and test for each of PROGNAME-LIST
3977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979do
3980  IFS=$as_save_IFS
3981  test -z "$as_dir" && as_dir=.
3982    for ac_prog in egrep; do
3983    for ac_exec_ext in '' $ac_executable_extensions; do
3984      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3985      as_fn_executable_p "$ac_path_EGREP" || continue
3986# Check for GNU ac_path_EGREP and select it if it is found.
3987  # Check for GNU $ac_path_EGREP
3988case `"$ac_path_EGREP" --version 2>&1` in
3989*GNU*)
3990  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3991*)
3992  ac_count=0
3993  $as_echo_n 0123456789 >"conftest.in"
3994  while :
3995  do
3996    cat "conftest.in" "conftest.in" >"conftest.tmp"
3997    mv "conftest.tmp" "conftest.in"
3998    cp "conftest.in" "conftest.nl"
3999    $as_echo 'EGREP' >> "conftest.nl"
4000    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002    as_fn_arith $ac_count + 1 && ac_count=$as_val
4003    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4004      # Best one so far, save it but keep looking for a better one
4005      ac_cv_path_EGREP="$ac_path_EGREP"
4006      ac_path_EGREP_max=$ac_count
4007    fi
4008    # 10*(2^10) chars as input seems more than enough
4009    test $ac_count -gt 10 && break
4010  done
4011  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012esac
4013
4014      $ac_path_EGREP_found && break 3
4015    done
4016  done
4017  done
4018IFS=$as_save_IFS
4019  if test -z "$ac_cv_path_EGREP"; then
4020    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4021  fi
4022else
4023  ac_cv_path_EGREP=$EGREP
4024fi
4025
4026   fi
4027fi
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4029$as_echo "$ac_cv_path_EGREP" >&6; }
4030 EGREP="$ac_cv_path_EGREP"
4031
4032
4033
4034  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EGREP"
4035
4036
4037
4038
4039
4040# Make sure we can run config.sub.
4041$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4042  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4045$as_echo_n "checking build system type... " >&6; }
4046if ${ac_cv_build+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049  ac_build_alias=$build_alias
4050test "x$ac_build_alias" = x &&
4051  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4052test "x$ac_build_alias" = x &&
4053  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4054ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4055  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4056
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4059$as_echo "$ac_cv_build" >&6; }
4060case $ac_cv_build in
4061*-*-*) ;;
4062*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4063esac
4064build=$ac_cv_build
4065ac_save_IFS=$IFS; IFS='-'
4066set x $ac_cv_build
4067shift
4068build_cpu=$1
4069build_vendor=$2
4070shift; shift
4071# Remember, the first character of IFS is used to create $*,
4072# except with old shells:
4073build_os=$*
4074IFS=$ac_save_IFS
4075case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4076
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4079$as_echo_n "checking host system type... " >&6; }
4080if ${ac_cv_host+:} false; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  if test "x$host_alias" = x; then
4084  ac_cv_host=$ac_cv_build
4085else
4086  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4087    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4088fi
4089
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4092$as_echo "$ac_cv_host" >&6; }
4093case $ac_cv_host in
4094*-*-*) ;;
4095*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4096esac
4097host=$ac_cv_host
4098ac_save_IFS=$IFS; IFS='-'
4099set x $ac_cv_host
4100shift
4101host_cpu=$1
4102host_vendor=$2
4103shift; shift
4104# Remember, the first character of IFS is used to create $*,
4105# except with old shells:
4106host_os=$*
4107IFS=$ac_save_IFS
4108case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4109
4110
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4112$as_echo_n "checking target system type... " >&6; }
4113if ${ac_cv_target+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  if test "x$target_alias" = x; then
4117  ac_cv_target=$ac_cv_host
4118else
4119  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4120    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4121fi
4122
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4125$as_echo "$ac_cv_target" >&6; }
4126case $ac_cv_target in
4127*-*-*) ;;
4128*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4129esac
4130target=$ac_cv_target
4131ac_save_IFS=$IFS; IFS='-'
4132set x $ac_cv_target
4133shift
4134target_cpu=$1
4135target_vendor=$2
4136shift; shift
4137# Remember, the first character of IFS is used to create $*,
4138# except with old shells:
4139target_os=$*
4140IFS=$ac_save_IFS
4141case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4142
4143
4144# The aliases save the names the user supplied, while $host etc.
4145# will get canonicalized.
4146test -n "$target_alias" &&
4147  test "$program_prefix$program_suffix$program_transform_name" = \
4148    NONENONEs,x,x, &&
4149  program_prefix=${target_alias}-
4150
4151
4152orig_prefix="$prefix"
4153
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4155$as_echo "$as_me: " >&6;}
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Apache Portable Runtime library..." >&5
4157$as_echo "$as_me: Configuring Apache Portable Runtime library..." >&6;}
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4159$as_echo "$as_me: " >&6;}
4160
4161
4162# Check whether --with-included-apr was given.
4163if test "${with_included_apr+set}" = set; then :
4164  withval=$with_included_apr;
4165fi
4166
4167
4168if test "x$with_included_apr" = "xyes"; then
4169  apr_found=reconfig
4170  if test ! -d srclib/apr && test ! -d $srcdir/srclib/apr; then
4171    as_fn_error $? "Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/." "$LINENO" 5
4172  fi
4173else
4174
4175  apr_found="no"
4176
4177  if test "$target_os" = "os2-emx"; then
4178    # Scripts don't pass test -x on OS/2
4179    TEST_X="test -f"
4180  else
4181    TEST_X="test -x"
4182  fi
4183
4184  acceptable_majors="1 2"
4185
4186  apr_temp_acceptable_apr_config=""
4187  for apr_temp_major in $acceptable_majors
4188  do
4189    case $apr_temp_major in
4190      0)
4191      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
4192      ;;
4193      *)
4194      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4195      ;;
4196    esac
4197  done
4198
4199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4200$as_echo_n "checking for APR... " >&6; }
4201
4202# Check whether --with-apr was given.
4203if test "${with_apr+set}" = set; then :
4204  withval=$with_apr;
4205    if test "$withval" = "no" || test "$withval" = "yes"; then
4206      as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4207    fi
4208
4209    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4210    do
4211      for lookdir in "$withval/bin" "$withval"
4212      do
4213        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4214          apr_config="$lookdir/$apr_temp_apr_config_file"
4215
4216          apr_acceptable="yes"
4217
4218    version=`$apr_config --version`
4219    case x${version} in
4220    x1.[0-3].*)
4221      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
4222$as_echo "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
4223      apr_acceptable=no
4224      ;;
4225    esac
4226    unset version
4227
4228          if test "$apr_acceptable" != "yes"; then
4229            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found APR in $apr_config, but we think it is considered unacceptable" >&5
4230$as_echo "$as_me: WARNING: Found APR in $apr_config, but we think it is considered unacceptable" >&2;}
4231            continue
4232          fi
4233          apr_found="yes"
4234          break 2
4235        fi
4236      done
4237    done
4238
4239    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4240      apr_config="$withval"
4241
4242          apr_acceptable="yes"
4243
4244    version=`$apr_config --version`
4245    case x${version} in
4246    x1.[0-3].*)
4247      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
4248$as_echo "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
4249      apr_acceptable=no
4250      ;;
4251    esac
4252    unset version
4253
4254          if test "$apr_acceptable" = "yes"; then
4255                apr_found="yes"
4256          fi
4257    fi
4258
4259            if test "$apr_found" != "yes"; then
4260      as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
4261    fi
4262
4263else
4264
4265        if test -n "1" && test "1" = "1"; then
4266      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4267      do
4268        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4269          apr_config="$apr_temp_apr_config_file"
4270
4271          apr_acceptable="yes"
4272
4273    version=`$apr_config --version`
4274    case x${version} in
4275    x1.[0-3].*)
4276      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
4277$as_echo "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
4278      apr_acceptable=no
4279      ;;
4280    esac
4281    unset version
4282
4283          if test "$apr_acceptable" != "yes"; then
4284            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped APR at $apr_config, version not acceptable" >&5
4285$as_echo "$as_me: WARNING: skipped APR at $apr_config, version not acceptable" >&2;}
4286            continue
4287          fi
4288          apr_found="yes"
4289          break
4290        else
4291                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4292            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4293              apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4294
4295              apr_acceptable="yes"
4296
4297    version=`$apr_config --version`
4298    case x${version} in
4299    x1.[0-3].*)
4300      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
4301$as_echo "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
4302      apr_acceptable=no
4303      ;;
4304    esac
4305    unset version
4306
4307              if test "$apr_acceptable" != "yes"; then
4308                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped APR at $apr_config, version not acceptable" >&5
4309$as_echo "$as_me: WARNING: skipped APR at $apr_config, version not acceptable" >&2;}
4310                continue
4311              fi
4312              apr_found="yes"
4313              break 2
4314            fi
4315          done
4316        fi
4317      done
4318    fi
4319        if test "$apr_found" = "no" && test -d ""$srcdir/srclib/apr""; then
4320      apr_temp_abs_srcdir="`cd \""$srcdir/srclib/apr"\" && pwd`"
4321      apr_found="reconfig"
4322      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/srclib/apr"/include/apr_version.h\"`"
4323      case $apr_bundled_major in
4324        "")
4325          as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4326        ;;
4327        0)
4328          apr_temp_apr_config_file="apr-config"
4329        ;;
4330        *)
4331          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4332        ;;
4333      esac
4334      if test -n ""./srclib/apr""; then
4335        apr_config=""./srclib/apr"/$apr_temp_apr_config_file"
4336      else
4337        apr_config=""$srcdir/srclib/apr"/$apr_temp_apr_config_file"
4338      fi
4339    fi
4340
4341fi
4342
4343
4344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4345$as_echo "$apr_found" >&6; }
4346
4347fi
4348
4349if test "$apr_found" = "no"; then
4350  as_fn_error $? "APR not found.  Please read the documentation." "$LINENO" 5
4351fi
4352
4353if test "$apr_found" = "reconfig"; then
4354
4355  # save our work to this point; this allows the sub-package to use it
4356  cat >confcache <<\_ACEOF
4357# This file is a shell script that caches the results of configure
4358# tests run on this system so they can be shared between configure
4359# scripts and configure runs, see configure's option --config-cache.
4360# It is not useful on other systems.  If it contains results you don't
4361# want to keep, you may remove or edit it.
4362#
4363# config.status only pays attention to the cache file if you give it
4364# the --recheck option to rerun configure.
4365#
4366# `ac_cv_env_foo' variables (set or unset) will be overridden when
4367# loading this file, other *unset* `ac_cv_foo' will be assigned the
4368# following values.
4369
4370_ACEOF
4371
4372# The following way of writing the cache mishandles newlines in values,
4373# but we know of no workaround that is simple, portable, and efficient.
4374# So, we kill variables containing newlines.
4375# Ultrix sh set writes to stderr and can't be redirected directly,
4376# and sets the high bit in the cache file unless we assign to the vars.
4377(
4378  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4379    eval ac_val=\$$ac_var
4380    case $ac_val in #(
4381    *${as_nl}*)
4382      case $ac_var in #(
4383      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4385      esac
4386      case $ac_var in #(
4387      _ | IFS | as_nl) ;; #(
4388      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4389      *) { eval $ac_var=; unset $ac_var;} ;;
4390      esac ;;
4391    esac
4392  done
4393
4394  (set) 2>&1 |
4395    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4396    *${as_nl}ac_space=\ *)
4397      # `set' does not quote correctly, so add quotes: double-quote
4398      # substitution turns \\\\ into \\, and sed turns \\ into \.
4399      sed -n \
4400	"s/'/'\\\\''/g;
4401	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4402      ;; #(
4403    *)
4404      # `set' quotes correctly as required by POSIX, so do not add quotes.
4405      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4406      ;;
4407    esac |
4408    sort
4409) |
4410  sed '
4411     /^ac_cv_env_/b end
4412     t clear
4413     :clear
4414     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4415     t end
4416     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4417     :end' >>confcache
4418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4419  if test -w "$cache_file"; then
4420    if test "x$cache_file" != "x/dev/null"; then
4421      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4422$as_echo "$as_me: updating cache $cache_file" >&6;}
4423      if test ! -f "$cache_file" || test -h "$cache_file"; then
4424	cat confcache >"$cache_file"
4425      else
4426        case $cache_file in #(
4427        */* | ?:*)
4428	  mv -f confcache "$cache_file"$$ &&
4429	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4430        *)
4431	  mv -f confcache "$cache_file" ;;
4432	esac
4433      fi
4434    fi
4435  else
4436    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4437$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4438  fi
4439fi
4440rm -f confcache
4441
4442  echo "configuring package in srclib/apr now"
4443  ac_popdir=`pwd`
4444  apr_config_subdirs="srclib/apr"
4445  test -d srclib/apr || $mkdir_p srclib/apr
4446  ac_abs_srcdir=`(cd $srcdir/srclib/apr && pwd)`
4447  cd srclib/apr
4448
4449      # A "../" for each directory in /$config_subdirs.
4450      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4451
4452  # Make the cache file pathname absolute for the subdirs
4453  # required to correctly handle subdirs that might actually
4454  # be symlinks
4455  case "$cache_file" in
4456  /*) # already absolute
4457    ac_sub_cache_file=$cache_file ;;
4458  *)  # Was relative path.
4459    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
4460  esac
4461
4462
4463  apr_configure_args=
4464  apr_sep=
4465  for apr_configure_arg in $ac_configure_args
4466  do
4467    case "$apr_configure_arg" in
4468      --enable-layout=*|\'--enable-layout=*)
4469        continue ;;
4470    esac
4471    apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
4472    apr_sep=" "
4473  done
4474
4475
4476    test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
4477
4478    apr_configure_args="--disable-option-checking $apr_configure_args"
4479
4480              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
4481  then :
4482    echo "srclib/apr configured properly"
4483  else
4484    echo "configure failed for srclib/apr"
4485    exit 1
4486  fi
4487
4488  cd $ac_popdir
4489
4490  # grab any updates from the sub-package
4491  if test -r "$cache_file"; then
4492  # Some versions of bash will fail to source /dev/null (special files
4493  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
4494  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4495    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4496$as_echo "$as_me: loading cache $cache_file" >&6;}
4497    case $cache_file in
4498      [\\/]* | ?:[\\/]* ) . "$cache_file";;
4499      *)                      . "./$cache_file";;
4500    esac
4501  fi
4502else
4503  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4504$as_echo "$as_me: creating cache $cache_file" >&6;}
4505  >$cache_file
4506fi
4507
4508
4509    AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS"
4510  AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr"
4511
4512    for majorver in 1 2; do
4513    test_apr_config="./srclib/apr/apr-${majorver}-config"
4514    if test -f "$test_apr_config"; then
4515      apr_config="$test_apr_config"
4516    fi
4517  done
4518fi
4519
4520
4521  if test -z "$CC"; then
4522    test "x$silent" != "xyes" && echo "  setting CC to \"`$apr_config --cc`\""
4523    CC="`$apr_config --cc`"
4524  fi
4525
4526
4527  if test -z "$CPP"; then
4528    test "x$silent" != "xyes" && echo "  setting CPP to \"`$apr_config --cpp`\""
4529    CPP="`$apr_config --cpp`"
4530  fi
4531
4532
4533  if test "x$CFLAGS" = "x"; then
4534    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"`$apr_config --cflags`\""
4535    CFLAGS="`$apr_config --cflags`"
4536  else
4537    apr_addto_bugger="`$apr_config --cflags`"
4538    for i in $apr_addto_bugger; do
4539      apr_addto_duplicate="0"
4540      for j in $CFLAGS; do
4541        if test "x$i" = "x$j"; then
4542          apr_addto_duplicate="1"
4543          break
4544        fi
4545      done
4546      if test $apr_addto_duplicate = "0"; then
4547        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
4548        CFLAGS="$CFLAGS $i"
4549      fi
4550    done
4551  fi
4552
4553
4554  if test "x$CPPFLAGS" = "x"; then
4555    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"`$apr_config --cppflags`\""
4556    CPPFLAGS="`$apr_config --cppflags`"
4557  else
4558    apr_addto_bugger="`$apr_config --cppflags`"
4559    for i in $apr_addto_bugger; do
4560      apr_addto_duplicate="0"
4561      for j in $CPPFLAGS; do
4562        if test "x$i" = "x$j"; then
4563          apr_addto_duplicate="1"
4564          break
4565        fi
4566      done
4567      if test $apr_addto_duplicate = "0"; then
4568        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
4569        CPPFLAGS="$CPPFLAGS $i"
4570      fi
4571    done
4572  fi
4573
4574INTERNAL_CPPFLAGS=""
4575
4576  if test "x$LDFLAGS" = "x"; then
4577    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apr_config --ldflags`\""
4578    LDFLAGS="`$apr_config --ldflags`"
4579  else
4580    apr_addto_bugger="`$apr_config --ldflags`"
4581    for i in $apr_addto_bugger; do
4582      apr_addto_duplicate="0"
4583      for j in $LDFLAGS; do
4584        if test "x$i" = "x$j"; then
4585          apr_addto_duplicate="1"
4586          break
4587        fi
4588      done
4589      if test $apr_addto_duplicate = "0"; then
4590        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
4591        LDFLAGS="$LDFLAGS $i"
4592      fi
4593    done
4594  fi
4595
4596SHLIBPATH_VAR=`$apr_config --shlib-path-var`
4597APR_BINDIR=`$apr_config --bindir`
4598APR_INCLUDEDIR=`$apr_config --includedir`
4599APR_INCLUDES=`$apr_config --includes`
4600APR_VERSION=`$apr_config --version`
4601apr_major_version=`echo ${APR_VERSION} | sed 's,\..*,,'`
4602APR_CONFIG="$APR_BINDIR/apr-${apr_major_version}-config"
4603
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4605$as_echo "$as_me: " >&6;}
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Apache Portable Runtime Utility library..." >&5
4607$as_echo "$as_me: Configuring Apache Portable Runtime Utility library..." >&6;}
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4609$as_echo "$as_me: " >&6;}
4610
4611if test "x${apr_major_version}" = "x2"; then
4612  apu_found=obsolete
4613elif test "x$with_included_apr" = "xyes"; then
4614  apu_found=reconfig
4615  if test ! -d srclib/apr-util && test ! -d $srcdir/srclib/apr-util; then
4616    as_fn_error $? "Bundled APR-Util requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/." "$LINENO" 5
4617  fi
4618else
4619
4620
4621  apu_found="no"
4622
4623  if test "$target_os" = "os2-emx"; then
4624    # Scripts don't pass test -x on OS/2
4625    TEST_X="test -f"
4626  else
4627    TEST_X="test -x"
4628  fi
4629
4630  acceptable_majors="${apr_major_version}"
4631
4632  apu_temp_acceptable_apu_config=""
4633  for apu_temp_major in $acceptable_majors
4634  do
4635    case $apu_temp_major in
4636      0)
4637      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
4638      ;;
4639      *)
4640      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
4641      ;;
4642    esac
4643  done
4644
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
4646$as_echo_n "checking for APR-util... " >&6; }
4647
4648# Check whether --with-apr-util was given.
4649if test "${with_apr_util+set}" = set; then :
4650  withval=$with_apr_util;
4651    if test "$withval" = "no" || test "$withval" = "yes"; then
4652      as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
4653    fi
4654
4655    for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4656    do
4657      for lookdir in "$withval/bin" "$withval"
4658      do
4659        if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
4660          apu_config="$lookdir/$apu_temp_apu_config_file"
4661
4662          apu_found="yes"
4663          break 2
4664        fi
4665      done
4666    done
4667
4668    if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4669      apu_config="$withval"
4670      apu_found="yes"
4671    fi
4672
4673            if test "$apu_found" != "yes"; then
4674      as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
4675    fi
4676
4677else
4678
4679    if test -n "1" && test "1" = "1"; then
4680      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
4681      do
4682        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
4683          apu_config="$apu_temp_apu_config_file"
4684
4685          apu_found="yes"
4686          break
4687        else
4688                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4689            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
4690              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
4691
4692              apu_found="yes"
4693              break 2
4694            fi
4695          done
4696        fi
4697      done
4698    fi
4699        if test "$apu_found" = "no" && test -d ""$srcdir/srclib/apr-util""; then
4700      apu_temp_abs_srcdir="`cd \""$srcdir/srclib/apr-util"\" && pwd`"
4701      apu_found="reconfig"
4702      apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/srclib/apr-util"/include/apu_version.h\"`"
4703      case $apu_bundled_major in
4704        "")
4705          as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
4706        ;;
4707        0)
4708          apu_temp_apu_config_file="apu-config"
4709        ;;
4710        *)
4711          apu_temp_apu_config_file="apu-$apu_bundled_major-config"
4712        ;;
4713      esac
4714      if test -n ""./srclib/apr-util""; then
4715        apu_config=""./srclib/apr-util"/$apu_temp_apu_config_file"
4716      else
4717        apu_config=""$srcdir/srclib/apr-util"/$apu_temp_apu_config_file"
4718      fi
4719    fi
4720
4721fi
4722
4723
4724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
4725$as_echo "$apu_found" >&6; }
4726
4727
4728fi
4729
4730if test "$apu_found" = "no"; then
4731  as_fn_error $? "APR-util not found.  Please read the documentation." "$LINENO" 5
4732fi
4733
4734# Catch some misconfigurations:
4735case ${apr_found}.${apu_found} in
4736reconfig.yes)
4737  as_fn_error $? "Cannot use an external APR-util with the bundled APR" "$LINENO" 5
4738  ;;
4739yes.reconfig)
4740  as_fn_error $? "Cannot use an external APR with the bundled APR-util" "$LINENO" 5
4741  ;;
4742esac
4743
4744if test "$apu_found" = "reconfig"; then
4745
4746  # save our work to this point; this allows the sub-package to use it
4747  cat >confcache <<\_ACEOF
4748# This file is a shell script that caches the results of configure
4749# tests run on this system so they can be shared between configure
4750# scripts and configure runs, see configure's option --config-cache.
4751# It is not useful on other systems.  If it contains results you don't
4752# want to keep, you may remove or edit it.
4753#
4754# config.status only pays attention to the cache file if you give it
4755# the --recheck option to rerun configure.
4756#
4757# `ac_cv_env_foo' variables (set or unset) will be overridden when
4758# loading this file, other *unset* `ac_cv_foo' will be assigned the
4759# following values.
4760
4761_ACEOF
4762
4763# The following way of writing the cache mishandles newlines in values,
4764# but we know of no workaround that is simple, portable, and efficient.
4765# So, we kill variables containing newlines.
4766# Ultrix sh set writes to stderr and can't be redirected directly,
4767# and sets the high bit in the cache file unless we assign to the vars.
4768(
4769  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4770    eval ac_val=\$$ac_var
4771    case $ac_val in #(
4772    *${as_nl}*)
4773      case $ac_var in #(
4774      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4775$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4776      esac
4777      case $ac_var in #(
4778      _ | IFS | as_nl) ;; #(
4779      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4780      *) { eval $ac_var=; unset $ac_var;} ;;
4781      esac ;;
4782    esac
4783  done
4784
4785  (set) 2>&1 |
4786    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4787    *${as_nl}ac_space=\ *)
4788      # `set' does not quote correctly, so add quotes: double-quote
4789      # substitution turns \\\\ into \\, and sed turns \\ into \.
4790      sed -n \
4791	"s/'/'\\\\''/g;
4792	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4793      ;; #(
4794    *)
4795      # `set' quotes correctly as required by POSIX, so do not add quotes.
4796      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4797      ;;
4798    esac |
4799    sort
4800) |
4801  sed '
4802     /^ac_cv_env_/b end
4803     t clear
4804     :clear
4805     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4806     t end
4807     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4808     :end' >>confcache
4809if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4810  if test -w "$cache_file"; then
4811    if test "x$cache_file" != "x/dev/null"; then
4812      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4813$as_echo "$as_me: updating cache $cache_file" >&6;}
4814      if test ! -f "$cache_file" || test -h "$cache_file"; then
4815	cat confcache >"$cache_file"
4816      else
4817        case $cache_file in #(
4818        */* | ?:*)
4819	  mv -f confcache "$cache_file"$$ &&
4820	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4821        *)
4822	  mv -f confcache "$cache_file" ;;
4823	esac
4824      fi
4825    fi
4826  else
4827    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4828$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4829  fi
4830fi
4831rm -f confcache
4832
4833  echo "configuring package in srclib/apr-util now"
4834  ac_popdir=`pwd`
4835  apr_config_subdirs="srclib/apr-util"
4836  test -d srclib/apr-util || $mkdir_p srclib/apr-util
4837  ac_abs_srcdir=`(cd $srcdir/srclib/apr-util && pwd)`
4838  cd srclib/apr-util
4839
4840      # A "../" for each directory in /$config_subdirs.
4841      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4842
4843  # Make the cache file pathname absolute for the subdirs
4844  # required to correctly handle subdirs that might actually
4845  # be symlinks
4846  case "$cache_file" in
4847  /*) # already absolute
4848    ac_sub_cache_file=$cache_file ;;
4849  *)  # Was relative path.
4850    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
4851  esac
4852
4853
4854  apr_configure_args=
4855  apr_sep=
4856  for apr_configure_arg in $ac_configure_args
4857  do
4858    case "$apr_configure_arg" in
4859      --enable-layout=*|\'--enable-layout=*)
4860        continue ;;
4861    esac
4862    apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
4863    apr_sep=" "
4864  done
4865
4866
4867    test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
4868
4869    apr_configure_args="--disable-option-checking $apr_configure_args"
4870
4871              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
4872  then :
4873    echo "srclib/apr-util configured properly"
4874  else
4875    echo "configure failed for srclib/apr-util"
4876    exit 1
4877  fi
4878
4879  cd $ac_popdir
4880
4881  # grab any updates from the sub-package
4882  if test -r "$cache_file"; then
4883  # Some versions of bash will fail to source /dev/null (special files
4884  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
4885  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4886    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4887$as_echo "$as_me: loading cache $cache_file" >&6;}
4888    case $cache_file in
4889      [\\/]* | ?:[\\/]* ) . "$cache_file";;
4890      *)                      . "./$cache_file";;
4891    esac
4892  fi
4893else
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4895$as_echo "$as_me: creating cache $cache_file" >&6;}
4896  >$cache_file
4897fi
4898
4899
4900    AP_BUILD_SRCLIB_DIRS="$AP_BUILD_SRCLIB_DIRS apr-util"
4901  AP_CLEAN_SRCLIB_DIRS="apr-util $AP_CLEAN_SRCLIB_DIRS"
4902    apu_config="./srclib/apr-util/apu-${apr_major_version}-config"
4903fi
4904
4905if test "$apu_found" = "obsolete"; then
4906  { $as_echo "$as_me:${as_lineno-$LINENO}: APR-util obsoleted, woohoo" >&5
4907$as_echo "$as_me: APR-util obsoleted, woohoo" >&6;}
4908else
4909
4910  if test "x$LDFLAGS" = "x"; then
4911    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apu_config --ldflags`\""
4912    LDFLAGS="`$apu_config --ldflags`"
4913  else
4914    apr_addto_bugger="`$apu_config --ldflags`"
4915    for i in $apr_addto_bugger; do
4916      apr_addto_duplicate="0"
4917      for j in $LDFLAGS; do
4918        if test "x$i" = "x$j"; then
4919          apr_addto_duplicate="1"
4920          break
4921        fi
4922      done
4923      if test $apr_addto_duplicate = "0"; then
4924        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
4925        LDFLAGS="$LDFLAGS $i"
4926      fi
4927    done
4928  fi
4929
4930  APU_BINDIR=`$apu_config --bindir`
4931  APU_INCLUDEDIR=`$apu_config --includedir`
4932  APU_INCLUDES=`$apu_config --includes`
4933  APU_VERSION=`$apu_config --version`
4934  APU_CONFIG="$APU_BINDIR/apu-`echo ${APU_VERSION} | sed 's,\..*,,'`-config"
4935fi
4936
4937ac_ext=c
4938ac_cpp='$CPP $CPPFLAGS'
4939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942if test -n "$ac_tool_prefix"; then
4943  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4944set dummy ${ac_tool_prefix}gcc; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_CC+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -n "$CC"; then
4951  ac_cv_prog_CC="$CC" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970CC=$ac_cv_prog_CC
4971if test -n "$CC"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4973$as_echo "$CC" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979
4980fi
4981if test -z "$ac_cv_prog_CC"; then
4982  ac_ct_CC=$CC
4983  # Extract the first word of "gcc", so it can be a program name with args.
4984set dummy gcc; ac_word=$2
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986$as_echo_n "checking for $ac_word... " >&6; }
4987if ${ac_cv_prog_ac_ct_CC+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990  if test -n "$ac_ct_CC"; then
4991  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998    for ac_exec_ext in '' $ac_executable_extensions; do
4999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000    ac_cv_prog_ac_ct_CC="gcc"
5001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005  done
5006IFS=$as_save_IFS
5007
5008fi
5009fi
5010ac_ct_CC=$ac_cv_prog_ac_ct_CC
5011if test -n "$ac_ct_CC"; then
5012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5013$as_echo "$ac_ct_CC" >&6; }
5014else
5015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016$as_echo "no" >&6; }
5017fi
5018
5019  if test "x$ac_ct_CC" = x; then
5020    CC=""
5021  else
5022    case $cross_compiling:$ac_tool_warned in
5023yes:)
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5026ac_tool_warned=yes ;;
5027esac
5028    CC=$ac_ct_CC
5029  fi
5030else
5031  CC="$ac_cv_prog_CC"
5032fi
5033
5034if test -z "$CC"; then
5035          if test -n "$ac_tool_prefix"; then
5036    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5037set dummy ${ac_tool_prefix}cc; ac_word=$2
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039$as_echo_n "checking for $ac_word... " >&6; }
5040if ${ac_cv_prog_CC+:} false; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043  if test -n "$CC"; then
5044  ac_cv_prog_CC="$CC" # Let the user override the test.
5045else
5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049  IFS=$as_save_IFS
5050  test -z "$as_dir" && as_dir=.
5051    for ac_exec_ext in '' $ac_executable_extensions; do
5052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053    ac_cv_prog_CC="${ac_tool_prefix}cc"
5054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055    break 2
5056  fi
5057done
5058  done
5059IFS=$as_save_IFS
5060
5061fi
5062fi
5063CC=$ac_cv_prog_CC
5064if test -n "$CC"; then
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5066$as_echo "$CC" >&6; }
5067else
5068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069$as_echo "no" >&6; }
5070fi
5071
5072
5073  fi
5074fi
5075if test -z "$CC"; then
5076  # Extract the first word of "cc", so it can be a program name with args.
5077set dummy cc; ac_word=$2
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
5080if ${ac_cv_prog_CC+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  if test -n "$CC"; then
5084  ac_cv_prog_CC="$CC" # Let the user override the test.
5085else
5086  ac_prog_rejected=no
5087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH
5089do
5090  IFS=$as_save_IFS
5091  test -z "$as_dir" && as_dir=.
5092    for ac_exec_ext in '' $ac_executable_extensions; do
5093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5095       ac_prog_rejected=yes
5096       continue
5097     fi
5098    ac_cv_prog_CC="cc"
5099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100    break 2
5101  fi
5102done
5103  done
5104IFS=$as_save_IFS
5105
5106if test $ac_prog_rejected = yes; then
5107  # We found a bogon in the path, so make sure we never use it.
5108  set dummy $ac_cv_prog_CC
5109  shift
5110  if test $# != 0; then
5111    # We chose a different compiler from the bogus one.
5112    # However, it has the same basename, so the bogon will be chosen
5113    # first if we set CC to just the basename; use the full file name.
5114    shift
5115    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5116  fi
5117fi
5118fi
5119fi
5120CC=$ac_cv_prog_CC
5121if test -n "$CC"; then
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5123$as_echo "$CC" >&6; }
5124else
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
5127fi
5128
5129
5130fi
5131if test -z "$CC"; then
5132  if test -n "$ac_tool_prefix"; then
5133  for ac_prog in cl.exe
5134  do
5135    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138$as_echo_n "checking for $ac_word... " >&6; }
5139if ${ac_cv_prog_CC+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  if test -n "$CC"; then
5143  ac_cv_prog_CC="$CC" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148  IFS=$as_save_IFS
5149  test -z "$as_dir" && as_dir=.
5150    for ac_exec_ext in '' $ac_executable_extensions; do
5151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154    break 2
5155  fi
5156done
5157  done
5158IFS=$as_save_IFS
5159
5160fi
5161fi
5162CC=$ac_cv_prog_CC
5163if test -n "$CC"; then
5164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5165$as_echo "$CC" >&6; }
5166else
5167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168$as_echo "no" >&6; }
5169fi
5170
5171
5172    test -n "$CC" && break
5173  done
5174fi
5175if test -z "$CC"; then
5176  ac_ct_CC=$CC
5177  for ac_prog in cl.exe
5178do
5179  # Extract the first word of "$ac_prog", so it can be a program name with args.
5180set dummy $ac_prog; ac_word=$2
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182$as_echo_n "checking for $ac_word... " >&6; }
5183if ${ac_cv_prog_ac_ct_CC+:} false; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  if test -n "$ac_ct_CC"; then
5187  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192  IFS=$as_save_IFS
5193  test -z "$as_dir" && as_dir=.
5194    for ac_exec_ext in '' $ac_executable_extensions; do
5195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196    ac_cv_prog_ac_ct_CC="$ac_prog"
5197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198    break 2
5199  fi
5200done
5201  done
5202IFS=$as_save_IFS
5203
5204fi
5205fi
5206ac_ct_CC=$ac_cv_prog_ac_ct_CC
5207if test -n "$ac_ct_CC"; then
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5209$as_echo "$ac_ct_CC" >&6; }
5210else
5211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215
5216  test -n "$ac_ct_CC" && break
5217done
5218
5219  if test "x$ac_ct_CC" = x; then
5220    CC=""
5221  else
5222    case $cross_compiling:$ac_tool_warned in
5223yes:)
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226ac_tool_warned=yes ;;
5227esac
5228    CC=$ac_ct_CC
5229  fi
5230fi
5231
5232fi
5233
5234
5235test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5237as_fn_error $? "no acceptable C compiler found in \$PATH
5238See \`config.log' for more details" "$LINENO" 5; }
5239
5240# Provide some information about the compiler.
5241$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5242set X $ac_compile
5243ac_compiler=$2
5244for ac_option in --version -v -V -qversion; do
5245  { { ac_try="$ac_compiler $ac_option >&5"
5246case "(($ac_try" in
5247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248  *) ac_try_echo=$ac_try;;
5249esac
5250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251$as_echo "$ac_try_echo"; } >&5
5252  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5253  ac_status=$?
5254  if test -s conftest.err; then
5255    sed '10a\
5256... rest of stderr output deleted ...
5257         10q' conftest.err >conftest.er1
5258    cat conftest.er1 >&5
5259  fi
5260  rm -f conftest.er1 conftest.err
5261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262  test $ac_status = 0; }
5263done
5264
5265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267
5268int
5269main ()
5270{
5271
5272  ;
5273  return 0;
5274}
5275_ACEOF
5276ac_clean_files_save=$ac_clean_files
5277ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5278# Try to create an executable without -o first, disregard a.out.
5279# It will help us diagnose broken compilers, and finding out an intuition
5280# of exeext.
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5282$as_echo_n "checking whether the C compiler works... " >&6; }
5283ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5284
5285# The possible output files:
5286ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5287
5288ac_rmfiles=
5289for ac_file in $ac_files
5290do
5291  case $ac_file in
5292    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5293    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5294  esac
5295done
5296rm -f $ac_rmfiles
5297
5298if { { ac_try="$ac_link_default"
5299case "(($ac_try" in
5300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301  *) ac_try_echo=$ac_try;;
5302esac
5303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5304$as_echo "$ac_try_echo"; } >&5
5305  (eval "$ac_link_default") 2>&5
5306  ac_status=$?
5307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308  test $ac_status = 0; }; then :
5309  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5310# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5311# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5312# so that the user can short-circuit this test for compilers unknown to
5313# Autoconf.
5314for ac_file in $ac_files ''
5315do
5316  test -f "$ac_file" || continue
5317  case $ac_file in
5318    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5319	;;
5320    [ab].out )
5321	# We found the default executable, but exeext='' is most
5322	# certainly right.
5323	break;;
5324    *.* )
5325	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5326	then :; else
5327	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5328	fi
5329	# We set ac_cv_exeext here because the later test for it is not
5330	# safe: cross compilers may not add the suffix if given an `-o'
5331	# argument, so we may need to know it at that point already.
5332	# Even if this section looks crufty: it has the advantage of
5333	# actually working.
5334	break;;
5335    * )
5336	break;;
5337  esac
5338done
5339test "$ac_cv_exeext" = no && ac_cv_exeext=
5340
5341else
5342  ac_file=''
5343fi
5344if test -z "$ac_file"; then :
5345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346$as_echo "no" >&6; }
5347$as_echo "$as_me: failed program was:" >&5
5348sed 's/^/| /' conftest.$ac_ext >&5
5349
5350{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5352as_fn_error 77 "C compiler cannot create executables
5353See \`config.log' for more details" "$LINENO" 5; }
5354else
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356$as_echo "yes" >&6; }
5357fi
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5359$as_echo_n "checking for C compiler default output file name... " >&6; }
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5361$as_echo "$ac_file" >&6; }
5362ac_exeext=$ac_cv_exeext
5363
5364rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5365ac_clean_files=$ac_clean_files_save
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5367$as_echo_n "checking for suffix of executables... " >&6; }
5368if { { ac_try="$ac_link"
5369case "(($ac_try" in
5370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371  *) ac_try_echo=$ac_try;;
5372esac
5373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5374$as_echo "$ac_try_echo"; } >&5
5375  (eval "$ac_link") 2>&5
5376  ac_status=$?
5377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5378  test $ac_status = 0; }; then :
5379  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5380# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5381# work properly (i.e., refer to `conftest.exe'), while it won't with
5382# `rm'.
5383for ac_file in conftest.exe conftest conftest.*; do
5384  test -f "$ac_file" || continue
5385  case $ac_file in
5386    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5387    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5388	  break;;
5389    * ) break;;
5390  esac
5391done
5392else
5393  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5395as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5396See \`config.log' for more details" "$LINENO" 5; }
5397fi
5398rm -f conftest conftest$ac_cv_exeext
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5400$as_echo "$ac_cv_exeext" >&6; }
5401
5402rm -f conftest.$ac_ext
5403EXEEXT=$ac_cv_exeext
5404ac_exeext=$EXEEXT
5405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407#include <stdio.h>
5408int
5409main ()
5410{
5411FILE *f = fopen ("conftest.out", "w");
5412 return ferror (f) || fclose (f) != 0;
5413
5414  ;
5415  return 0;
5416}
5417_ACEOF
5418ac_clean_files="$ac_clean_files conftest.out"
5419# Check that the compiler produces executables we can run.  If not, either
5420# the compiler is broken, or we cross compile.
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5422$as_echo_n "checking whether we are cross compiling... " >&6; }
5423if test "$cross_compiling" != yes; then
5424  { { ac_try="$ac_link"
5425case "(($ac_try" in
5426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427  *) ac_try_echo=$ac_try;;
5428esac
5429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5430$as_echo "$ac_try_echo"; } >&5
5431  (eval "$ac_link") 2>&5
5432  ac_status=$?
5433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5434  test $ac_status = 0; }
5435  if { ac_try='./conftest$ac_cv_exeext'
5436  { { case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5441$as_echo "$ac_try_echo"; } >&5
5442  (eval "$ac_try") 2>&5
5443  ac_status=$?
5444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445  test $ac_status = 0; }; }; then
5446    cross_compiling=no
5447  else
5448    if test "$cross_compiling" = maybe; then
5449	cross_compiling=yes
5450    else
5451	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5453as_fn_error $? "cannot run C compiled programs.
5454If you meant to cross compile, use \`--host'.
5455See \`config.log' for more details" "$LINENO" 5; }
5456    fi
5457  fi
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5460$as_echo "$cross_compiling" >&6; }
5461
5462rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5463ac_clean_files=$ac_clean_files_save
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5465$as_echo_n "checking for suffix of object files... " >&6; }
5466if ${ac_cv_objext+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471
5472int
5473main ()
5474{
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480rm -f conftest.o conftest.obj
5481if { { ac_try="$ac_compile"
5482case "(($ac_try" in
5483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484  *) ac_try_echo=$ac_try;;
5485esac
5486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5487$as_echo "$ac_try_echo"; } >&5
5488  (eval "$ac_compile") 2>&5
5489  ac_status=$?
5490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491  test $ac_status = 0; }; then :
5492  for ac_file in conftest.o conftest.obj conftest.*; do
5493  test -f "$ac_file" || continue;
5494  case $ac_file in
5495    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5496    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5497       break;;
5498  esac
5499done
5500else
5501  $as_echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5506as_fn_error $? "cannot compute suffix of object files: cannot compile
5507See \`config.log' for more details" "$LINENO" 5; }
5508fi
5509rm -f conftest.$ac_cv_objext conftest.$ac_ext
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5512$as_echo "$ac_cv_objext" >&6; }
5513OBJEXT=$ac_cv_objext
5514ac_objext=$OBJEXT
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5516$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5517if ${ac_cv_c_compiler_gnu+:} false; then :
5518  $as_echo_n "(cached) " >&6
5519else
5520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h.  */
5522
5523int
5524main ()
5525{
5526#ifndef __GNUC__
5527       choke me
5528#endif
5529
5530  ;
5531  return 0;
5532}
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"; then :
5535  ac_compiler_gnu=yes
5536else
5537  ac_compiler_gnu=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540ac_cv_c_compiler_gnu=$ac_compiler_gnu
5541
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5544$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5545if test $ac_compiler_gnu = yes; then
5546  GCC=yes
5547else
5548  GCC=
5549fi
5550ac_test_CFLAGS=${CFLAGS+set}
5551ac_save_CFLAGS=$CFLAGS
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5553$as_echo_n "checking whether $CC accepts -g... " >&6; }
5554if ${ac_cv_prog_cc_g+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  ac_save_c_werror_flag=$ac_c_werror_flag
5558   ac_c_werror_flag=yes
5559   ac_cv_prog_cc_g=no
5560   CFLAGS="-g"
5561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562/* end confdefs.h.  */
5563
5564int
5565main ()
5566{
5567
5568  ;
5569  return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_compile "$LINENO"; then :
5573  ac_cv_prog_cc_g=yes
5574else
5575  CFLAGS=""
5576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h.  */
5578
5579int
5580main ()
5581{
5582
5583  ;
5584  return 0;
5585}
5586_ACEOF
5587if ac_fn_c_try_compile "$LINENO"; then :
5588
5589else
5590  ac_c_werror_flag=$ac_save_c_werror_flag
5591	 CFLAGS="-g"
5592	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h.  */
5594
5595int
5596main ()
5597{
5598
5599  ;
5600  return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_compile "$LINENO"; then :
5604  ac_cv_prog_cc_g=yes
5605fi
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609fi
5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611   ac_c_werror_flag=$ac_save_c_werror_flag
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5614$as_echo "$ac_cv_prog_cc_g" >&6; }
5615if test "$ac_test_CFLAGS" = set; then
5616  CFLAGS=$ac_save_CFLAGS
5617elif test $ac_cv_prog_cc_g = yes; then
5618  if test "$GCC" = yes; then
5619    CFLAGS="-g -O2"
5620  else
5621    CFLAGS="-g"
5622  fi
5623else
5624  if test "$GCC" = yes; then
5625    CFLAGS="-O2"
5626  else
5627    CFLAGS=
5628  fi
5629fi
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5631$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5632if ${ac_cv_prog_cc_c89+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  ac_cv_prog_cc_c89=no
5636ac_save_CC=$CC
5637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h.  */
5639#include <stdarg.h>
5640#include <stdio.h>
5641struct stat;
5642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5643struct buf { int x; };
5644FILE * (*rcsopen) (struct buf *, struct stat *, int);
5645static char *e (p, i)
5646     char **p;
5647     int i;
5648{
5649  return p[i];
5650}
5651static char *f (char * (*g) (char **, int), char **p, ...)
5652{
5653  char *s;
5654  va_list v;
5655  va_start (v,p);
5656  s = g (p, va_arg (v,int));
5657  va_end (v);
5658  return s;
5659}
5660
5661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5662   function prototypes and stuff, but not '\xHH' hex character constants.
5663   These don't provoke an error unfortunately, instead are silently treated
5664   as 'x'.  The following induces an error, until -std is added to get
5665   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5666   array size at least.  It's necessary to write '\x00'==0 to get something
5667   that's true only with -std.  */
5668int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5669
5670/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5671   inside strings and character constants.  */
5672#define FOO(x) 'x'
5673int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5674
5675int test (int i, double x);
5676struct s1 {int (*f) (int a);};
5677struct s2 {int (*f) (double a);};
5678int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5679int argc;
5680char **argv;
5681int
5682main ()
5683{
5684return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5685  ;
5686  return 0;
5687}
5688_ACEOF
5689for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5690	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5691do
5692  CC="$ac_save_CC $ac_arg"
5693  if ac_fn_c_try_compile "$LINENO"; then :
5694  ac_cv_prog_cc_c89=$ac_arg
5695fi
5696rm -f core conftest.err conftest.$ac_objext
5697  test "x$ac_cv_prog_cc_c89" != "xno" && break
5698done
5699rm -f conftest.$ac_ext
5700CC=$ac_save_CC
5701
5702fi
5703# AC_CACHE_VAL
5704case "x$ac_cv_prog_cc_c89" in
5705  x)
5706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5707$as_echo "none needed" >&6; } ;;
5708  xno)
5709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5710$as_echo "unsupported" >&6; } ;;
5711  *)
5712    CC="$CC $ac_cv_prog_cc_c89"
5713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5714$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5715esac
5716if test "x$ac_cv_prog_cc_c89" != xno; then :
5717
5718fi
5719
5720ac_ext=c
5721ac_cpp='$CPP $CPPFLAGS'
5722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724ac_compiler_gnu=$ac_cv_c_compiler_gnu
5725
5726ac_ext=c
5727ac_cpp='$CPP $CPPFLAGS'
5728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5732$as_echo_n "checking how to run the C preprocessor... " >&6; }
5733# On Suns, sometimes $CPP names a directory.
5734if test -n "$CPP" && test -d "$CPP"; then
5735  CPP=
5736fi
5737if test -z "$CPP"; then
5738  if ${ac_cv_prog_CPP+:} false; then :
5739  $as_echo_n "(cached) " >&6
5740else
5741      # Double quotes because CPP needs to be expanded
5742    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5743    do
5744      ac_preproc_ok=false
5745for ac_c_preproc_warn_flag in '' yes
5746do
5747  # Use a header file that comes with gcc, so configuring glibc
5748  # with a fresh cross-compiler works.
5749  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750  # <limits.h> exists even on freestanding compilers.
5751  # On the NeXT, cc -E runs the code through the compiler's parser,
5752  # not just through cpp. "Syntax error" is here to catch this case.
5753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h.  */
5755#ifdef __STDC__
5756# include <limits.h>
5757#else
5758# include <assert.h>
5759#endif
5760		     Syntax error
5761_ACEOF
5762if ac_fn_c_try_cpp "$LINENO"; then :
5763
5764else
5765  # Broken: fails on valid input.
5766continue
5767fi
5768rm -f conftest.err conftest.i conftest.$ac_ext
5769
5770  # OK, works on sane cases.  Now check whether nonexistent headers
5771  # can be detected and how.
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774#include <ac_nonexistent.h>
5775_ACEOF
5776if ac_fn_c_try_cpp "$LINENO"; then :
5777  # Broken: success on invalid input.
5778continue
5779else
5780  # Passes both tests.
5781ac_preproc_ok=:
5782break
5783fi
5784rm -f conftest.err conftest.i conftest.$ac_ext
5785
5786done
5787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5788rm -f conftest.i conftest.err conftest.$ac_ext
5789if $ac_preproc_ok; then :
5790  break
5791fi
5792
5793    done
5794    ac_cv_prog_CPP=$CPP
5795
5796fi
5797  CPP=$ac_cv_prog_CPP
5798else
5799  ac_cv_prog_CPP=$CPP
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5802$as_echo "$CPP" >&6; }
5803ac_preproc_ok=false
5804for ac_c_preproc_warn_flag in '' yes
5805do
5806  # Use a header file that comes with gcc, so configuring glibc
5807  # with a fresh cross-compiler works.
5808  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809  # <limits.h> exists even on freestanding compilers.
5810  # On the NeXT, cc -E runs the code through the compiler's parser,
5811  # not just through cpp. "Syntax error" is here to catch this case.
5812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h.  */
5814#ifdef __STDC__
5815# include <limits.h>
5816#else
5817# include <assert.h>
5818#endif
5819		     Syntax error
5820_ACEOF
5821if ac_fn_c_try_cpp "$LINENO"; then :
5822
5823else
5824  # Broken: fails on valid input.
5825continue
5826fi
5827rm -f conftest.err conftest.i conftest.$ac_ext
5828
5829  # OK, works on sane cases.  Now check whether nonexistent headers
5830  # can be detected and how.
5831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h.  */
5833#include <ac_nonexistent.h>
5834_ACEOF
5835if ac_fn_c_try_cpp "$LINENO"; then :
5836  # Broken: success on invalid input.
5837continue
5838else
5839  # Passes both tests.
5840ac_preproc_ok=:
5841break
5842fi
5843rm -f conftest.err conftest.i conftest.$ac_ext
5844
5845done
5846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5847rm -f conftest.i conftest.err conftest.$ac_ext
5848if $ac_preproc_ok; then :
5849
5850else
5851  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5854See \`config.log' for more details" "$LINENO" 5; }
5855fi
5856
5857ac_ext=c
5858ac_cpp='$CPP $CPPFLAGS'
5859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861ac_compiler_gnu=$ac_cv_c_compiler_gnu
5862
5863
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5865$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5866if ${ac_cv_prog_cc_c99+:} false; then :
5867  $as_echo_n "(cached) " >&6
5868else
5869  ac_cv_prog_cc_c99=no
5870ac_save_CC=$CC
5871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872/* end confdefs.h.  */
5873#include <stdarg.h>
5874#include <stdbool.h>
5875#include <stdlib.h>
5876#include <wchar.h>
5877#include <stdio.h>
5878
5879// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5880#define debug(...) fprintf (stderr, __VA_ARGS__)
5881#define showlist(...) puts (#__VA_ARGS__)
5882#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5883static void
5884test_varargs_macros (void)
5885{
5886  int x = 1234;
5887  int y = 5678;
5888  debug ("Flag");
5889  debug ("X = %d\n", x);
5890  showlist (The first, second, and third items.);
5891  report (x>y, "x is %d but y is %d", x, y);
5892}
5893
5894// Check long long types.
5895#define BIG64 18446744073709551615ull
5896#define BIG32 4294967295ul
5897#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5898#if !BIG_OK
5899  your preprocessor is broken;
5900#endif
5901#if BIG_OK
5902#else
5903  your preprocessor is broken;
5904#endif
5905static long long int bignum = -9223372036854775807LL;
5906static unsigned long long int ubignum = BIG64;
5907
5908struct incomplete_array
5909{
5910  int datasize;
5911  double data[];
5912};
5913
5914struct named_init {
5915  int number;
5916  const wchar_t *name;
5917  double average;
5918};
5919
5920typedef const char *ccp;
5921
5922static inline int
5923test_restrict (ccp restrict text)
5924{
5925  // See if C++-style comments work.
5926  // Iterate through items via the restricted pointer.
5927  // Also check for declarations in for loops.
5928  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5929    continue;
5930  return 0;
5931}
5932
5933// Check varargs and va_copy.
5934static void
5935test_varargs (const char *format, ...)
5936{
5937  va_list args;
5938  va_start (args, format);
5939  va_list args_copy;
5940  va_copy (args_copy, args);
5941
5942  const char *str;
5943  int number;
5944  float fnumber;
5945
5946  while (*format)
5947    {
5948      switch (*format++)
5949	{
5950	case 's': // string
5951	  str = va_arg (args_copy, const char *);
5952	  break;
5953	case 'd': // int
5954	  number = va_arg (args_copy, int);
5955	  break;
5956	case 'f': // float
5957	  fnumber = va_arg (args_copy, double);
5958	  break;
5959	default:
5960	  break;
5961	}
5962    }
5963  va_end (args_copy);
5964  va_end (args);
5965}
5966
5967int
5968main ()
5969{
5970
5971  // Check bool.
5972  _Bool success = false;
5973
5974  // Check restrict.
5975  if (test_restrict ("String literal") == 0)
5976    success = true;
5977  char *restrict newvar = "Another string";
5978
5979  // Check varargs.
5980  test_varargs ("s, d' f .", "string", 65, 34.234);
5981  test_varargs_macros ();
5982
5983  // Check flexible array members.
5984  struct incomplete_array *ia =
5985    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5986  ia->datasize = 10;
5987  for (int i = 0; i < ia->datasize; ++i)
5988    ia->data[i] = i * 1.234;
5989
5990  // Check named initializers.
5991  struct named_init ni = {
5992    .number = 34,
5993    .name = L"Test wide string",
5994    .average = 543.34343,
5995  };
5996
5997  ni.number = 58;
5998
5999  int dynamic_array[ni.number];
6000  dynamic_array[ni.number - 1] = 543;
6001
6002  // work around unused variable warnings
6003  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6004	  || dynamic_array[ni.number - 1] != 543);
6005
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6011do
6012  CC="$ac_save_CC $ac_arg"
6013  if ac_fn_c_try_compile "$LINENO"; then :
6014  ac_cv_prog_cc_c99=$ac_arg
6015fi
6016rm -f core conftest.err conftest.$ac_objext
6017  test "x$ac_cv_prog_cc_c99" != "xno" && break
6018done
6019rm -f conftest.$ac_ext
6020CC=$ac_save_CC
6021
6022fi
6023# AC_CACHE_VAL
6024case "x$ac_cv_prog_cc_c99" in
6025  x)
6026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6027$as_echo "none needed" >&6; } ;;
6028  xno)
6029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6030$as_echo "unsupported" >&6; } ;;
6031  *)
6032    CC="$CC $ac_cv_prog_cc_c99"
6033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6034$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6035esac
6036if test "x$ac_cv_prog_cc_c99" != xno; then :
6037
6038fi
6039
6040
6041
6042if test "x${cache_file}" = "x/dev/null"; then
6043  # Likewise, ensure that CC and CPP are passed through to the pcre
6044  # configure script iff caching is disabled (the autoconf 2.5x default).
6045  export CC; export CPP
6046fi
6047
6048
6049# Check whether --with-pcre was given.
6050if test "${with_pcre+set}" = set; then :
6051  withval=$with_pcre;
6052fi
6053
6054
6055# Extract the first word of "pcre-config", so it can be a program name with args.
6056set dummy pcre-config; ac_word=$2
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if ${ac_cv_path_PCRE_CONFIG+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  case $PCRE_CONFIG in
6063  [\\/]* | ?:[\\/]*)
6064  ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
6065  ;;
6066  *)
6067  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068for as_dir in $PATH
6069do
6070  IFS=$as_save_IFS
6071  test -z "$as_dir" && as_dir=.
6072    for ac_exec_ext in '' $ac_executable_extensions; do
6073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6074    ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076    break 2
6077  fi
6078done
6079  done
6080IFS=$as_save_IFS
6081
6082  test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="false"
6083  ;;
6084esac
6085fi
6086PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
6087if test -n "$PCRE_CONFIG"; then
6088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
6089$as_echo "$PCRE_CONFIG" >&6; }
6090else
6091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092$as_echo "no" >&6; }
6093fi
6094
6095
6096if test -d "$with_pcre" && test -x "$with_pcre/bin/pcre-config"; then
6097   PCRE_CONFIG=$with_pcre/bin/pcre-config
6098elif test -x "$with_pcre"; then
6099   PCRE_CONFIG=$with_pcre
6100fi
6101
6102if test "$PCRE_CONFIG" != "false"; then
6103  if $PCRE_CONFIG --version >/dev/null 2>&1; then :; else
6104  fi
6105  case `$PCRE_CONFIG --version` in
6106  [1-5].*)
6107    ;;
6108  esac
6109  { $as_echo "$as_me:${as_lineno-$LINENO}: Using external PCRE library from $PCRE_CONFIG" >&5
6110$as_echo "$as_me: Using external PCRE library from $PCRE_CONFIG" >&6;}
6111
6112  if test "x$PCRE_INCLUDES" = "x"; then
6113    test "x$silent" != "xyes" && echo "  setting PCRE_INCLUDES to \"`$PCRE_CONFIG --cflags`\""
6114    PCRE_INCLUDES="`$PCRE_CONFIG --cflags`"
6115  else
6116    apr_addto_bugger="`$PCRE_CONFIG --cflags`"
6117    for i in $apr_addto_bugger; do
6118      apr_addto_duplicate="0"
6119      for j in $PCRE_INCLUDES; do
6120        if test "x$i" = "x$j"; then
6121          apr_addto_duplicate="1"
6122          break
6123        fi
6124      done
6125      if test $apr_addto_duplicate = "0"; then
6126        test "x$silent" != "xyes" && echo "  adding \"$i\" to PCRE_INCLUDES"
6127        PCRE_INCLUDES="$PCRE_INCLUDES $i"
6128      fi
6129    done
6130  fi
6131
6132
6133  if test "x$PCRE_LIBS" = "x"; then
6134    test "x$silent" != "xyes" && echo "  setting PCRE_LIBS to \"`$PCRE_CONFIG --libs`\""
6135    PCRE_LIBS="`$PCRE_CONFIG --libs`"
6136  else
6137    apr_addto_bugger="`$PCRE_CONFIG --libs`"
6138    for i in $apr_addto_bugger; do
6139      apr_addto_duplicate="0"
6140      for j in $PCRE_LIBS; do
6141        if test "x$i" = "x$j"; then
6142          apr_addto_duplicate="1"
6143          break
6144        fi
6145      done
6146      if test $apr_addto_duplicate = "0"; then
6147        test "x$silent" != "xyes" && echo "  adding \"$i\" to PCRE_LIBS"
6148        PCRE_LIBS="$PCRE_LIBS $i"
6149      fi
6150    done
6151  fi
6152
6153else
6154fi
6155
6156  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PCRE_LIBS"
6157
6158
6159
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
6161$as_echo "$as_me: " >&6;}
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Apache httpd..." >&5
6163$as_echo "$as_me: Configuring Apache httpd..." >&6;}
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
6165$as_echo "$as_me: " >&6;}
6166
6167
6168
6169  if test "x$INCLUDES" = "x"; then
6170    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I.\""
6171    INCLUDES="-I."
6172  else
6173    apr_addto_bugger="-I."
6174    for i in $apr_addto_bugger; do
6175      apr_addto_duplicate="0"
6176      for j in $INCLUDES; do
6177        if test "x$i" = "x$j"; then
6178          apr_addto_duplicate="1"
6179          break
6180        fi
6181      done
6182      if test $apr_addto_duplicate = "0"; then
6183        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6184        INCLUDES="$INCLUDES $i"
6185      fi
6186    done
6187  fi
6188
6189
6190if test "$abs_builddir" != "$abs_srcdir"; then
6191
6192  if test "x$INCLUDES" = "x"; then
6193    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_builddir)/include\""
6194    INCLUDES="-I\$(top_builddir)/include"
6195  else
6196    apr_addto_bugger="-I\$(top_builddir)/include"
6197    for i in $apr_addto_bugger; do
6198      apr_addto_duplicate="0"
6199      for j in $INCLUDES; do
6200        if test "x$i" = "x$j"; then
6201          apr_addto_duplicate="1"
6202          break
6203        fi
6204      done
6205      if test $apr_addto_duplicate = "0"; then
6206        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6207        INCLUDES="$INCLUDES $i"
6208      fi
6209    done
6210  fi
6211
6212fi
6213
6214
6215  if test "x$INCLUDES" = "x"; then
6216    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/include\""
6217    INCLUDES="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/include"
6218  else
6219    apr_addto_bugger="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/include"
6220    for i in $apr_addto_bugger; do
6221      apr_addto_duplicate="0"
6222      for j in $INCLUDES; do
6223        if test "x$i" = "x$j"; then
6224          apr_addto_duplicate="1"
6225          break
6226        fi
6227      done
6228      if test $apr_addto_duplicate = "0"; then
6229        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6230        INCLUDES="$INCLUDES $i"
6231      fi
6232    done
6233  fi
6234
6235
6236# apr/apr-util --includes may pick up system paths for dependent
6237# libraries, so ensure these are later in INCLUDES than local source
6238# directories.
6239
6240  if test "x$INCLUDES" = "x"; then
6241    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$APR_INCLUDES\""
6242    INCLUDES="$APR_INCLUDES"
6243  else
6244    apr_addto_bugger="$APR_INCLUDES"
6245    for i in $apr_addto_bugger; do
6246      apr_addto_duplicate="0"
6247      for j in $INCLUDES; do
6248        if test "x$i" = "x$j"; then
6249          apr_addto_duplicate="1"
6250          break
6251        fi
6252      done
6253      if test $apr_addto_duplicate = "0"; then
6254        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6255        INCLUDES="$INCLUDES $i"
6256      fi
6257    done
6258  fi
6259
6260
6261  if test "x$INCLUDES" = "x"; then
6262    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$APU_INCLUDES\""
6263    INCLUDES="$APU_INCLUDES"
6264  else
6265    apr_addto_bugger="$APU_INCLUDES"
6266    for i in $apr_addto_bugger; do
6267      apr_addto_duplicate="0"
6268      for j in $INCLUDES; do
6269        if test "x$i" = "x$j"; then
6270          apr_addto_duplicate="1"
6271          break
6272        fi
6273      done
6274      if test $apr_addto_duplicate = "0"; then
6275        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6276        INCLUDES="$INCLUDES $i"
6277      fi
6278    done
6279  fi
6280
6281
6282
6283  if test "x$INCLUDES" = "x"; then
6284    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$PCRE_INCLUDES\""
6285    INCLUDES="$PCRE_INCLUDES"
6286  else
6287    apr_addto_bugger="$PCRE_INCLUDES"
6288    for i in $apr_addto_bugger; do
6289      apr_addto_duplicate="0"
6290      for j in $INCLUDES; do
6291        if test "x$i" = "x$j"; then
6292          apr_addto_duplicate="1"
6293          break
6294        fi
6295      done
6296      if test $apr_addto_duplicate = "0"; then
6297        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
6298        INCLUDES="$INCLUDES $i"
6299      fi
6300    done
6301  fi
6302
6303
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
6305$as_echo "$as_me: " >&6;}
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: Applying OS-specific hints for httpd..." >&5
6307$as_echo "$as_me: Applying OS-specific hints for httpd..." >&6;}
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
6309$as_echo "$as_me: " >&6;}
6310
6311case $host in
6312  *os2*)
6313      # Use a custom made libtool replacement
6314      echo "using aplibtool"
6315      LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
6316      SH_LIBTOOL="$LIBTOOL --shared --export-all"
6317      SH_LIBS="\$(ALL_LIBS)"
6318      CORE_IMPLIB_FILE="ApacheCoreOS2.la"
6319      CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
6320      MK_IMPLIB="emximp"
6321      other_targets="$other_targets os2core"
6322      INSTALL_PROG_FLAGS="-e .exe"
6323      SHLTCFLAGS=""
6324      LTCFLAGS=""
6325      ;;
6326  *)
6327      if test "x$LTFLAGS" = "x"; then
6328          LTFLAGS='--silent'
6329      fi
6330      my_libtool=`$apr_config --apr-libtool`
6331      LIBTOOL="$my_libtool \$(LTFLAGS)"
6332      libtoolversion=`$my_libtool --version`
6333      case $libtoolversion in
6334          *1.[45]* | *[2-9].[0-9]*)
6335              SH_LIBTOOL='$(LIBTOOL)'
6336              SHLTCFLAGS="-prefer-pic"
6337              LTCFLAGS="-prefer-non-pic -static"
6338              ;;
6339          *)
6340              SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
6341              SHLTCFLAGS=""
6342              LTCFLAGS=""
6343              ;;
6344      esac
6345      ;;
6346esac
6347
6348  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLTCFLAGS"
6349
6350
6351
6352  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTCFLAGS"
6353
6354
6355
6356case $host in
6357  *-apple-aux3*)
6358
6359  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6360  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6361
6362      ;;
6363  *os2-emx*)
6364
6365  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6366  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6367
6368      ;;
6369  *-linux-*)
6370      case `uname -r` in
6371        # Unserialized accept() was not recommended until Linux 2.2.
6372        [01].* | 2.[01]* )
6373            ;;
6374        * )
6375
6376  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6377  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6378
6379            ;;
6380      esac
6381      ;;
6382  *486-*-bsdi* | *-netbsd* | *-freebsd* | *-apple-darwin* | *-dec-osf* | *-qnx)
6383
6384  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6385  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6386
6387      ;;
6388  *-solaris2*)
6389            ap_platform_runtime_link_flag="-R"
6390                  case `uname -r` in
6391        5.567*)
6392            ;;
6393        * )
6394
6395  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6396  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6397
6398            ;;
6399      esac
6400      ;;
6401  *cygwin*)
6402
6403  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6404  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6405
6406      ;;
6407  *mingw32*)
6408
6409  if test "x$INTERNAL_CPPFLAGS" = "x"; then
6410    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DAP_DECLARE_EXPORT\""
6411    INTERNAL_CPPFLAGS="-DAP_DECLARE_EXPORT"
6412  else
6413    apr_addto_bugger="-DAP_DECLARE_EXPORT"
6414    for i in $apr_addto_bugger; do
6415      apr_addto_duplicate="0"
6416      for j in $INTERNAL_CPPFLAGS; do
6417        if test "x$i" = "x$j"; then
6418          apr_addto_duplicate="1"
6419          break
6420        fi
6421      done
6422      if test $apr_addto_duplicate = "0"; then
6423        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
6424        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
6425      fi
6426    done
6427  fi
6428
6429
6430  if test -z "$ac_cv_func_times"; then
6431    test "x$silent" != "xyes" && echo "  setting ac_cv_func_times to \"no\""
6432    ac_cv_func_times="no"
6433  fi
6434
6435
6436  if test -z "$ac_cv_func_getpwnam"; then
6437    test "x$silent" != "xyes" && echo "  setting ac_cv_func_getpwnam to \"no\""
6438    ac_cv_func_getpwnam="no"
6439  fi
6440
6441
6442  if test -z "$ac_cv_func_getgrnam"; then
6443    test "x$silent" != "xyes" && echo "  setting ac_cv_func_getgrnam to \"no\""
6444    ac_cv_func_getgrnam="no"
6445  fi
6446
6447      ;;
6448  *aix*)
6449      aixver=`echo $host | sed 's/^[^0-9]*//' | sed 's/\.//g'`
6450      if test $aixver -ge 4320; then
6451
6452  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6453  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6454
6455      fi
6456      ;;
6457  *os390*)
6458
6459  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
6460  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
6461
6462      ;;
6463esac
6464
6465
6466  test "x$silent" != "xyes" && echo "  forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to \"1\""
6467  AP_NONBLOCK_WHEN_MULTI_LISTEN="1"
6468
6469
6470
6471
6472# Extract the first word of "rm", so it can be a program name with args.
6473set dummy rm; ac_word=$2
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475$as_echo_n "checking for $ac_word... " >&6; }
6476if ${ac_cv_path_RM+:} false; then :
6477  $as_echo_n "(cached) " >&6
6478else
6479  case $RM in
6480  [\\/]* | ?:[\\/]*)
6481  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6482  ;;
6483  *)
6484  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487  IFS=$as_save_IFS
6488  test -z "$as_dir" && as_dir=.
6489    for ac_exec_ext in '' $ac_executable_extensions; do
6490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493    break 2
6494  fi
6495done
6496  done
6497IFS=$as_save_IFS
6498
6499  ;;
6500esac
6501fi
6502RM=$ac_cv_path_RM
6503if test -n "$RM"; then
6504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6505$as_echo "$RM" >&6; }
6506else
6507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508$as_echo "no" >&6; }
6509fi
6510
6511
6512# Extract the first word of "pkg-config", so it can be a program name with args.
6513set dummy pkg-config; ac_word=$2
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515$as_echo_n "checking for $ac_word... " >&6; }
6516if ${ac_cv_path_PKGCONFIG+:} false; then :
6517  $as_echo_n "(cached) " >&6
6518else
6519  case $PKGCONFIG in
6520  [\\/]* | ?:[\\/]*)
6521  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
6522  ;;
6523  *)
6524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527  IFS=$as_save_IFS
6528  test -z "$as_dir" && as_dir=.
6529    for ac_exec_ext in '' $ac_executable_extensions; do
6530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
6532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533    break 2
6534  fi
6535done
6536  done
6537IFS=$as_save_IFS
6538
6539  ;;
6540esac
6541fi
6542PKGCONFIG=$ac_cv_path_PKGCONFIG
6543if test -n "$PKGCONFIG"; then
6544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
6545$as_echo "$PKGCONFIG" >&6; }
6546else
6547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548$as_echo "no" >&6; }
6549fi
6550
6551
6552# Extract the first word of "rsync", so it can be a program name with args.
6553set dummy rsync; ac_word=$2
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555$as_echo_n "checking for $ac_word... " >&6; }
6556if ${ac_cv_path_RSYNC+:} false; then :
6557  $as_echo_n "(cached) " >&6
6558else
6559  case $RSYNC in
6560  [\\/]* | ?:[\\/]*)
6561  ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
6562  ;;
6563  *)
6564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565for as_dir in $PATH
6566do
6567  IFS=$as_save_IFS
6568  test -z "$as_dir" && as_dir=.
6569    for ac_exec_ext in '' $ac_executable_extensions; do
6570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571    ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
6572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573    break 2
6574  fi
6575done
6576  done
6577IFS=$as_save_IFS
6578
6579  ;;
6580esac
6581fi
6582RSYNC=$ac_cv_path_RSYNC
6583if test -n "$RSYNC"; then
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSYNC" >&5
6585$as_echo "$RSYNC" >&6; }
6586else
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588$as_echo "no" >&6; }
6589fi
6590
6591
6592for ac_prog in gawk mawk nawk awk
6593do
6594  # Extract the first word of "$ac_prog", so it can be a program name with args.
6595set dummy $ac_prog; ac_word=$2
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597$as_echo_n "checking for $ac_word... " >&6; }
6598if ${ac_cv_prog_AWK+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  if test -n "$AWK"; then
6602  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6603else
6604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605for as_dir in $PATH
6606do
6607  IFS=$as_save_IFS
6608  test -z "$as_dir" && as_dir=.
6609    for ac_exec_ext in '' $ac_executable_extensions; do
6610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611    ac_cv_prog_AWK="$ac_prog"
6612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613    break 2
6614  fi
6615done
6616  done
6617IFS=$as_save_IFS
6618
6619fi
6620fi
6621AWK=$ac_cv_prog_AWK
6622if test -n "$AWK"; then
6623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6624$as_echo "$AWK" >&6; }
6625else
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627$as_echo "no" >&6; }
6628fi
6629
6630
6631  test -n "$AWK" && break
6632done
6633
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6635$as_echo_n "checking whether ln -s works... " >&6; }
6636LN_S=$as_ln_s
6637if test "$LN_S" = "ln -s"; then
6638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639$as_echo "yes" >&6; }
6640else
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6642$as_echo "no, using $LN_S" >&6; }
6643fi
6644
6645if test -n "$ac_tool_prefix"; then
6646  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6647set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649$as_echo_n "checking for $ac_word... " >&6; }
6650if ${ac_cv_prog_RANLIB+:} false; then :
6651  $as_echo_n "(cached) " >&6
6652else
6653  if test -n "$RANLIB"; then
6654  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6655else
6656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657for as_dir in $PATH
6658do
6659  IFS=$as_save_IFS
6660  test -z "$as_dir" && as_dir=.
6661    for ac_exec_ext in '' $ac_executable_extensions; do
6662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6663    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665    break 2
6666  fi
6667done
6668  done
6669IFS=$as_save_IFS
6670
6671fi
6672fi
6673RANLIB=$ac_cv_prog_RANLIB
6674if test -n "$RANLIB"; then
6675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6676$as_echo "$RANLIB" >&6; }
6677else
6678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679$as_echo "no" >&6; }
6680fi
6681
6682
6683fi
6684if test -z "$ac_cv_prog_RANLIB"; then
6685  ac_ct_RANLIB=$RANLIB
6686  # Extract the first word of "ranlib", so it can be a program name with args.
6687set dummy ranlib; ac_word=$2
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689$as_echo_n "checking for $ac_word... " >&6; }
6690if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  if test -n "$ac_ct_RANLIB"; then
6694  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6695else
6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
6698do
6699  IFS=$as_save_IFS
6700  test -z "$as_dir" && as_dir=.
6701    for ac_exec_ext in '' $ac_executable_extensions; do
6702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703    ac_cv_prog_ac_ct_RANLIB="ranlib"
6704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705    break 2
6706  fi
6707done
6708  done
6709IFS=$as_save_IFS
6710
6711fi
6712fi
6713ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6714if test -n "$ac_ct_RANLIB"; then
6715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6716$as_echo "$ac_ct_RANLIB" >&6; }
6717else
6718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719$as_echo "no" >&6; }
6720fi
6721
6722  if test "x$ac_ct_RANLIB" = x; then
6723    RANLIB="true"
6724  else
6725    case $cross_compiling:$ac_tool_warned in
6726yes:)
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729ac_tool_warned=yes ;;
6730esac
6731    RANLIB=$ac_ct_RANLIB
6732  fi
6733else
6734  RANLIB="$ac_cv_prog_RANLIB"
6735fi
6736
6737for ac_prog in lynx links elinks
6738do
6739  # Extract the first word of "$ac_prog", so it can be a program name with args.
6740set dummy $ac_prog; ac_word=$2
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742$as_echo_n "checking for $ac_word... " >&6; }
6743if ${ac_cv_prog_LYNX_PATH+:} false; then :
6744  $as_echo_n "(cached) " >&6
6745else
6746  if test -n "$LYNX_PATH"; then
6747  ac_cv_prog_LYNX_PATH="$LYNX_PATH" # Let the user override the test.
6748else
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752  IFS=$as_save_IFS
6753  test -z "$as_dir" && as_dir=.
6754    for ac_exec_ext in '' $ac_executable_extensions; do
6755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756    ac_cv_prog_LYNX_PATH="$ac_prog"
6757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758    break 2
6759  fi
6760done
6761  done
6762IFS=$as_save_IFS
6763
6764fi
6765fi
6766LYNX_PATH=$ac_cv_prog_LYNX_PATH
6767if test -n "$LYNX_PATH"; then
6768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LYNX_PATH" >&5
6769$as_echo "$LYNX_PATH" >&6; }
6770else
6771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772$as_echo "no" >&6; }
6773fi
6774
6775
6776  test -n "$LYNX_PATH" && break
6777done
6778test -n "$LYNX_PATH" || LYNX_PATH="lynx"
6779
6780
6781# Hard-coded install programs
6782MKINSTALLDIRS="\$(abs_srcdir)/build/mkdir.sh"
6783INSTALL="\$(LIBTOOL) --mode=install \$(abs_srcdir)/build/install.sh -c"
6784
6785  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MKINSTALLDIRS"
6786
6787
6788
6789  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL"
6790
6791
6792
6793
6794
6795
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6797$as_echo_n "checking for ANSI C header files... " >&6; }
6798if ${ac_cv_header_stdc+:} false; then :
6799  $as_echo_n "(cached) " >&6
6800else
6801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802/* end confdefs.h.  */
6803#include <stdlib.h>
6804#include <stdarg.h>
6805#include <string.h>
6806#include <float.h>
6807
6808int
6809main ()
6810{
6811
6812  ;
6813  return 0;
6814}
6815_ACEOF
6816if ac_fn_c_try_compile "$LINENO"; then :
6817  ac_cv_header_stdc=yes
6818else
6819  ac_cv_header_stdc=no
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822
6823if test $ac_cv_header_stdc = yes; then
6824  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826/* end confdefs.h.  */
6827#include <string.h>
6828
6829_ACEOF
6830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831  $EGREP "memchr" >/dev/null 2>&1; then :
6832
6833else
6834  ac_cv_header_stdc=no
6835fi
6836rm -f conftest*
6837
6838fi
6839
6840if test $ac_cv_header_stdc = yes; then
6841  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843/* end confdefs.h.  */
6844#include <stdlib.h>
6845
6846_ACEOF
6847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848  $EGREP "free" >/dev/null 2>&1; then :
6849
6850else
6851  ac_cv_header_stdc=no
6852fi
6853rm -f conftest*
6854
6855fi
6856
6857if test $ac_cv_header_stdc = yes; then
6858  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6859  if test "$cross_compiling" = yes; then :
6860  :
6861else
6862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h.  */
6864#include <ctype.h>
6865#include <stdlib.h>
6866#if ((' ' & 0x0FF) == 0x020)
6867# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6868# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6869#else
6870# define ISLOWER(c) \
6871		   (('a' <= (c) && (c) <= 'i') \
6872		     || ('j' <= (c) && (c) <= 'r') \
6873		     || ('s' <= (c) && (c) <= 'z'))
6874# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6875#endif
6876
6877#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6878int
6879main ()
6880{
6881  int i;
6882  for (i = 0; i < 256; i++)
6883    if (XOR (islower (i), ISLOWER (i))
6884	|| toupper (i) != TOUPPER (i))
6885      return 2;
6886  return 0;
6887}
6888_ACEOF
6889if ac_fn_c_try_run "$LINENO"; then :
6890
6891else
6892  ac_cv_header_stdc=no
6893fi
6894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6895  conftest.$ac_objext conftest.beam conftest.$ac_ext
6896fi
6897
6898fi
6899fi
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6901$as_echo "$ac_cv_header_stdc" >&6; }
6902if test $ac_cv_header_stdc = yes; then
6903
6904$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6905
6906fi
6907
6908# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6909for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6910		  inttypes.h stdint.h unistd.h
6911do :
6912  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6913ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6914"
6915if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6916  cat >>confdefs.h <<_ACEOF
6917#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6918_ACEOF
6919
6920fi
6921
6922done
6923
6924
6925
6926  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6927if test "x$ac_cv_header_minix_config_h" = xyes; then :
6928  MINIX=yes
6929else
6930  MINIX=
6931fi
6932
6933
6934  if test "$MINIX" = yes; then
6935
6936$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6937
6938
6939$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6940
6941
6942$as_echo "#define _MINIX 1" >>confdefs.h
6943
6944  fi
6945
6946
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6948$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6949if ${ac_cv_safe_to_define___extensions__+:} false; then :
6950  $as_echo_n "(cached) " >&6
6951else
6952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953/* end confdefs.h.  */
6954
6955#         define __EXTENSIONS__ 1
6956          $ac_includes_default
6957int
6958main ()
6959{
6960
6961  ;
6962  return 0;
6963}
6964_ACEOF
6965if ac_fn_c_try_compile "$LINENO"; then :
6966  ac_cv_safe_to_define___extensions__=yes
6967else
6968  ac_cv_safe_to_define___extensions__=no
6969fi
6970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971fi
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6973$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6974  test $ac_cv_safe_to_define___extensions__ = yes &&
6975    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6976
6977  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6978
6979  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6980
6981  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6982
6983  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6984
6985
6986
6987
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6989$as_echo_n "checking for library containing strerror... " >&6; }
6990if ${ac_cv_search_strerror+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  ac_func_search_save_LIBS=$LIBS
6994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996
6997/* Override any GCC internal prototype to avoid an error.
6998   Use char because int might match the return type of a GCC
6999   builtin and then its argument prototype would still apply.  */
7000#ifdef __cplusplus
7001extern "C"
7002#endif
7003char strerror ();
7004int
7005main ()
7006{
7007return strerror ();
7008  ;
7009  return 0;
7010}
7011_ACEOF
7012for ac_lib in '' cposix; do
7013  if test -z "$ac_lib"; then
7014    ac_res="none required"
7015  else
7016    ac_res=-l$ac_lib
7017    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7018  fi
7019  if ac_fn_c_try_link "$LINENO"; then :
7020  ac_cv_search_strerror=$ac_res
7021fi
7022rm -f core conftest.err conftest.$ac_objext \
7023    conftest$ac_exeext
7024  if ${ac_cv_search_strerror+:} false; then :
7025  break
7026fi
7027done
7028if ${ac_cv_search_strerror+:} false; then :
7029
7030else
7031  ac_cv_search_strerror=no
7032fi
7033rm conftest.$ac_ext
7034LIBS=$ac_func_search_save_LIBS
7035fi
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7037$as_echo "$ac_cv_search_strerror" >&6; }
7038ac_res=$ac_cv_search_strerror
7039if test "$ac_res" != no; then :
7040  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7041
7042fi
7043
7044
7045# Ensure that satisfactory versions of apr and apr-util are
7046# found if external copies are configured.
7047if test "${apr_found}" = "yes"; then
7048  # Require at least APR 1.3.x otherwise fail
7049
7050
7051
7052
7053
7054
7055ap_ckver_CPPFLAGS="$CPPFLAGS"
7056CPPFLAGS="$CPPFLAGS `$apr_config --includes`"
7057
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR version 1.3.0 or later" >&5
7059$as_echo_n "checking for APR version 1.3.0 or later... " >&6; }
7060if ${ap_cv_aprver13+:} false; then :
7061  $as_echo_n "(cached) " >&6
7062else
7063
7064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065/* end confdefs.h.  */
7066
7067#include <apr_version.h>
7068#if APR_MAJOR_VERSION > 1 || (APR_MAJOR_VERSION == 1 && APR_MINOR_VERSION >= 3)
7069good
7070#endif
7071
7072_ACEOF
7073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074  $EGREP "good" >/dev/null 2>&1; then :
7075  ap_cv_aprver13=yes
7076else
7077  ap_cv_aprver13=no
7078fi
7079rm -f conftest*
7080
7081fi
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_aprver13" >&5
7083$as_echo "$ap_cv_aprver13" >&6; }
7084
7085if test "$ap_cv_aprver13" = "yes"; then
7086  :
7087else
7088  as_fn_error $? "APR version 1.3.0 or later is required" "$LINENO" 5
7089fi
7090
7091CPPFLAGS="$ap_ckver_CPPFLAGS"
7092
7093
7094
7095
7096
7097
7098fi
7099
7100if test "${apu_found}" = "yes"; then
7101  # Require at least APR-util 1.3.x otherwise fail
7102  if test "${apr_found}" = "yes"; then
7103    # we need to add the APR includes to CPPFLAGS
7104    apu_ckver_CPPFLAGS="$CPPFLAGS"
7105    CPPFLAGS="$CPPFLAGS `$apr_config --includes`"
7106
7107
7108
7109
7110
7111
7112ap_ckver_CPPFLAGS="$CPPFLAGS"
7113CPPFLAGS="$CPPFLAGS `$apu_config --includes`"
7114
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util version 1.3.0 or later" >&5
7116$as_echo_n "checking for APR-util version 1.3.0 or later... " >&6; }
7117if ${ap_cv_apuver13+:} false; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120
7121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123
7124#include <apu_version.h>
7125#if APU_MAJOR_VERSION > 1 || (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 3)
7126good
7127#endif
7128
7129_ACEOF
7130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7131  $EGREP "good" >/dev/null 2>&1; then :
7132  ap_cv_apuver13=yes
7133else
7134  ap_cv_apuver13=no
7135fi
7136rm -f conftest*
7137
7138fi
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_apuver13" >&5
7140$as_echo "$ap_cv_apuver13" >&6; }
7141
7142if test "$ap_cv_apuver13" = "yes"; then
7143  :
7144else
7145  as_fn_error $? "APR-util version 1.3.0 or later is required" "$LINENO" 5
7146fi
7147
7148CPPFLAGS="$ap_ckver_CPPFLAGS"
7149
7150
7151
7152
7153
7154
7155    CPPFLAGS="$apu_ckver_CPPFLAGS"
7156  else
7157
7158
7159
7160
7161
7162
7163ap_ckver_CPPFLAGS="$CPPFLAGS"
7164CPPFLAGS="$CPPFLAGS `$apu_config --includes`"
7165
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util version 1.3.0 or later" >&5
7167$as_echo_n "checking for APR-util version 1.3.0 or later... " >&6; }
7168if ${ap_cv_apuver13+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171
7172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h.  */
7174
7175#include <apu_version.h>
7176#if APU_MAJOR_VERSION > 1 || (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 3)
7177good
7178#endif
7179
7180_ACEOF
7181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182  $EGREP "good" >/dev/null 2>&1; then :
7183  ap_cv_apuver13=yes
7184else
7185  ap_cv_apuver13=no
7186fi
7187rm -f conftest*
7188
7189fi
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_apuver13" >&5
7191$as_echo "$ap_cv_apuver13" >&6; }
7192
7193if test "$ap_cv_apuver13" = "yes"; then
7194  :
7195else
7196  as_fn_error $? "APR-util version 1.3.0 or later is required" "$LINENO" 5
7197fi
7198
7199CPPFLAGS="$ap_ckver_CPPFLAGS"
7200
7201
7202
7203
7204
7205
7206  fi
7207fi
7208
7209
7210if test "$GCC" = "yes"; then
7211  MKDEP='$(CC) -MM'
7212else
7213  rm -f conftest.c
7214  cat > conftest.c <<EOF
7215#include <sys/types.h>
7216  int main() { return 0; }
7217EOF
7218  MKDEP="true"
7219  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
7220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
7221$as_echo_n "checking if $i can create proper make dependencies... " >&6; }
7222    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
7223      MKDEP=$i
7224      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7225$as_echo "yes" >&6; }
7226      break;
7227    fi
7228    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229$as_echo "no" >&6; }
7230  done
7231  rm -f conftest.c
7232fi
7233
7234
7235
7236
7237
7238
7239
7240
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7242$as_echo_n "checking for ANSI C header files... " >&6; }
7243if ${ac_cv_header_stdc+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h.  */
7248#include <stdlib.h>
7249#include <stdarg.h>
7250#include <string.h>
7251#include <float.h>
7252
7253int
7254main ()
7255{
7256
7257  ;
7258  return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_compile "$LINENO"; then :
7262  ac_cv_header_stdc=yes
7263else
7264  ac_cv_header_stdc=no
7265fi
7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267
7268if test $ac_cv_header_stdc = yes; then
7269  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271/* end confdefs.h.  */
7272#include <string.h>
7273
7274_ACEOF
7275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276  $EGREP "memchr" >/dev/null 2>&1; then :
7277
7278else
7279  ac_cv_header_stdc=no
7280fi
7281rm -f conftest*
7282
7283fi
7284
7285if test $ac_cv_header_stdc = yes; then
7286  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288/* end confdefs.h.  */
7289#include <stdlib.h>
7290
7291_ACEOF
7292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293  $EGREP "free" >/dev/null 2>&1; then :
7294
7295else
7296  ac_cv_header_stdc=no
7297fi
7298rm -f conftest*
7299
7300fi
7301
7302if test $ac_cv_header_stdc = yes; then
7303  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7304  if test "$cross_compiling" = yes; then :
7305  :
7306else
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309#include <ctype.h>
7310#include <stdlib.h>
7311#if ((' ' & 0x0FF) == 0x020)
7312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7314#else
7315# define ISLOWER(c) \
7316		   (('a' <= (c) && (c) <= 'i') \
7317		     || ('j' <= (c) && (c) <= 'r') \
7318		     || ('s' <= (c) && (c) <= 'z'))
7319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7320#endif
7321
7322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7323int
7324main ()
7325{
7326  int i;
7327  for (i = 0; i < 256; i++)
7328    if (XOR (islower (i), ISLOWER (i))
7329	|| toupper (i) != TOUPPER (i))
7330      return 2;
7331  return 0;
7332}
7333_ACEOF
7334if ac_fn_c_try_run "$LINENO"; then :
7335
7336else
7337  ac_cv_header_stdc=no
7338fi
7339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7340  conftest.$ac_objext conftest.beam conftest.$ac_ext
7341fi
7342
7343fi
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7346$as_echo "$ac_cv_header_stdc" >&6; }
7347if test $ac_cv_header_stdc = yes; then
7348
7349$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7350
7351fi
7352
7353for ac_header in \
7354string.h \
7355limits.h \
7356unistd.h \
7357sys/socket.h \
7358pwd.h \
7359grp.h \
7360strings.h \
7361sys/prctl.h \
7362sys/processor.h \
7363sys/sem.h \
7364sys/sdt.h \
7365sys/loadavg.h
7366
7367do :
7368  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7369ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7370if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7371  cat >>confdefs.h <<_ACEOF
7372#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7373_ACEOF
7374
7375fi
7376
7377done
7378
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7380$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7381if ${ac_cv_header_sys_wait_h+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385/* end confdefs.h.  */
7386#include <sys/types.h>
7387#include <sys/wait.h>
7388#ifndef WEXITSTATUS
7389# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7390#endif
7391#ifndef WIFEXITED
7392# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7393#endif
7394
7395int
7396main ()
7397{
7398  int s;
7399  wait (&s);
7400  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7401  ;
7402  return 0;
7403}
7404_ACEOF
7405if ac_fn_c_try_compile "$LINENO"; then :
7406  ac_cv_header_sys_wait_h=yes
7407else
7408  ac_cv_header_sys_wait_h=no
7409fi
7410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7413$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7414if test $ac_cv_header_sys_wait_h = yes; then
7415
7416$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7417
7418fi
7419
7420
7421
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7423$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7424if ${ac_cv_c_const+:} false; then :
7425  $as_echo_n "(cached) " >&6
7426else
7427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428/* end confdefs.h.  */
7429
7430int
7431main ()
7432{
7433
7434#ifndef __cplusplus
7435  /* Ultrix mips cc rejects this sort of thing.  */
7436  typedef int charset[2];
7437  const charset cs = { 0, 0 };
7438  /* SunOS 4.1.1 cc rejects this.  */
7439  char const *const *pcpcc;
7440  char **ppc;
7441  /* NEC SVR4.0.2 mips cc rejects this.  */
7442  struct point {int x, y;};
7443  static struct point const zero = {0,0};
7444  /* AIX XL C 1.02.0.0 rejects this.
7445     It does not let you subtract one const X* pointer from another in
7446     an arm of an if-expression whose if-part is not a constant
7447     expression */
7448  const char *g = "string";
7449  pcpcc = &g + (g ? g-g : 0);
7450  /* HPUX 7.0 cc rejects these. */
7451  ++pcpcc;
7452  ppc = (char**) pcpcc;
7453  pcpcc = (char const *const *) ppc;
7454  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7455    char tx;
7456    char *t = &tx;
7457    char const *s = 0 ? (char *) 0 : (char const *) 0;
7458
7459    *t++ = 0;
7460    if (s) return 0;
7461  }
7462  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7463    int x[] = {25, 17};
7464    const int *foo = &x[0];
7465    ++foo;
7466  }
7467  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7468    typedef const int *iptr;
7469    iptr p = 0;
7470    ++p;
7471  }
7472  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7473       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7474    struct s { int j; const int *ap[3]; } bx;
7475    struct s *b = &bx; b->j = 5;
7476  }
7477  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7478    const int foo = 10;
7479    if (!foo) return 0;
7480  }
7481  return !cs[0] && !zero.x;
7482#endif
7483
7484  ;
7485  return 0;
7486}
7487_ACEOF
7488if ac_fn_c_try_compile "$LINENO"; then :
7489  ac_cv_c_const=yes
7490else
7491  ac_cv_c_const=no
7492fi
7493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494fi
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7496$as_echo "$ac_cv_c_const" >&6; }
7497if test $ac_cv_c_const = no; then
7498
7499$as_echo "#define const /**/" >>confdefs.h
7500
7501fi
7502
7503
7504saved_LIBS="$LIBS"
7505LIBS=""
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
7507$as_echo_n "checking for library containing sqrt... " >&6; }
7508if ${ac_cv_search_sqrt+:} false; then :
7509  $as_echo_n "(cached) " >&6
7510else
7511  ac_func_search_save_LIBS=$LIBS
7512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h.  */
7514
7515/* Override any GCC internal prototype to avoid an error.
7516   Use char because int might match the return type of a GCC
7517   builtin and then its argument prototype would still apply.  */
7518#ifdef __cplusplus
7519extern "C"
7520#endif
7521char sqrt ();
7522int
7523main ()
7524{
7525return sqrt ();
7526  ;
7527  return 0;
7528}
7529_ACEOF
7530for ac_lib in '' m; do
7531  if test -z "$ac_lib"; then
7532    ac_res="none required"
7533  else
7534    ac_res=-l$ac_lib
7535    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7536  fi
7537  if ac_fn_c_try_link "$LINENO"; then :
7538  ac_cv_search_sqrt=$ac_res
7539fi
7540rm -f core conftest.err conftest.$ac_objext \
7541    conftest$ac_exeext
7542  if ${ac_cv_search_sqrt+:} false; then :
7543  break
7544fi
7545done
7546if ${ac_cv_search_sqrt+:} false; then :
7547
7548else
7549  ac_cv_search_sqrt=no
7550fi
7551rm conftest.$ac_ext
7552LIBS=$ac_func_search_save_LIBS
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
7555$as_echo "$ac_cv_search_sqrt" >&6; }
7556ac_res=$ac_cv_search_sqrt
7557if test "$ac_res" != no; then :
7558  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7559
7560fi
7561
7562MATH_LIBS="$LIBS"
7563
7564  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MATH_LIBS"
7565
7566
7567LIBS="$saved_LIBS"
7568
7569saved_LIBS="$LIBS"
7570LIBS=""
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
7572$as_echo_n "checking for library containing crypt... " >&6; }
7573if ${ac_cv_search_crypt+:} false; then :
7574  $as_echo_n "(cached) " >&6
7575else
7576  ac_func_search_save_LIBS=$LIBS
7577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579
7580/* Override any GCC internal prototype to avoid an error.
7581   Use char because int might match the return type of a GCC
7582   builtin and then its argument prototype would still apply.  */
7583#ifdef __cplusplus
7584extern "C"
7585#endif
7586char crypt ();
7587int
7588main ()
7589{
7590return crypt ();
7591  ;
7592  return 0;
7593}
7594_ACEOF
7595for ac_lib in '' crypt; do
7596  if test -z "$ac_lib"; then
7597    ac_res="none required"
7598  else
7599    ac_res=-l$ac_lib
7600    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7601  fi
7602  if ac_fn_c_try_link "$LINENO"; then :
7603  ac_cv_search_crypt=$ac_res
7604fi
7605rm -f core conftest.err conftest.$ac_objext \
7606    conftest$ac_exeext
7607  if ${ac_cv_search_crypt+:} false; then :
7608  break
7609fi
7610done
7611if ${ac_cv_search_crypt+:} false; then :
7612
7613else
7614  ac_cv_search_crypt=no
7615fi
7616rm conftest.$ac_ext
7617LIBS=$ac_func_search_save_LIBS
7618fi
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
7620$as_echo "$ac_cv_search_crypt" >&6; }
7621ac_res=$ac_cv_search_crypt
7622if test "$ac_res" != no; then :
7623  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7624
7625fi
7626
7627CRYPT_LIBS="$LIBS"
7628
7629  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CRYPT_LIBS"
7630
7631
7632LIBS="$saved_LIBS"
7633
7634
7635for ac_func in \
7636getpwnam \
7637getgrnam \
7638initgroups \
7639bindprocessor \
7640prctl \
7641timegm \
7642getpgid \
7643fopen64 \
7644getloadavg
7645
7646do :
7647  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7648ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7649if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7650  cat >>confdefs.h <<_ACEOF
7651#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7652_ACEOF
7653
7654fi
7655done
7656
7657
7658
7659
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void pointer length" >&5
7661$as_echo_n "checking for void pointer length... " >&6; }
7662if ${ap_cv_void_ptr_lt_long+:} false; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665  if test "$cross_compiling" = yes; then :
7666  ap_cv_void_ptr_lt_long=yes
7667else
7668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669/* end confdefs.h.  */
7670
7671int main(void)
7672{
7673    return sizeof(void *) < sizeof(long);
7674}
7675_ACEOF
7676if ac_fn_c_try_run "$LINENO"; then :
7677  ap_cv_void_ptr_lt_long=no
7678else
7679  ap_cv_void_ptr_lt_long=yes
7680fi
7681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7682  conftest.$ac_objext conftest.beam conftest.$ac_ext
7683fi
7684
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_void_ptr_lt_long" >&5
7687$as_echo "$ap_cv_void_ptr_lt_long" >&6; }
7688
7689if test "$ap_cv_void_ptr_lt_long" = "yes"; then
7690    as_fn_error $? "Size of \"void *\" is less than size of \"long\"" "$LINENO" 5
7691fi
7692
7693
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettid()" >&5
7695$as_echo_n "checking for gettid()... " >&6; }
7696if ${ac_cv_gettid+:} false; then :
7697  $as_echo_n "(cached) " >&6
7698else
7699  if test "$cross_compiling" = yes; then :
7700  ac_cv_gettid=no
7701else
7702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703/* end confdefs.h.  */
7704#define _GNU_SOURCE
7705#include <unistd.h>
7706#include <sys/syscall.h>
7707#include <sys/types.h>
7708int main(int argc, char **argv) {
7709pid_t t = syscall(SYS_gettid); return t == -1 ? 1 : 0; }
7710_ACEOF
7711if ac_fn_c_try_run "$LINENO"; then :
7712  ac_cv_gettid=yes
7713else
7714  ac_cv_gettid=no
7715fi
7716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7717  conftest.$ac_objext conftest.beam conftest.$ac_ext
7718fi
7719
7720fi
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gettid" >&5
7722$as_echo "$ac_cv_gettid" >&6; }
7723if test "$ac_cv_gettid" = "yes"; then
7724
7725$as_echo "#define HAVE_GETTID 1" >>confdefs.h
7726
7727fi
7728
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
7730$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
7731if ${ac_cv_struct_tm_gmtoff+:} false; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735/* end confdefs.h.  */
7736#include <sys/types.h>
7737#include <time.h>
7738int
7739main ()
7740{
7741struct tm tm; tm.tm_gmtoff;
7742  ;
7743  return 0;
7744}
7745_ACEOF
7746if ac_fn_c_try_compile "$LINENO"; then :
7747  ac_cv_struct_tm_gmtoff=yes
7748else
7749  ac_cv_struct_tm_gmtoff=no
7750fi
7751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752fi
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
7754$as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
7755if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
7756
7757$as_echo "#define HAVE_GMTOFF 1" >>confdefs.h
7758
7759fi
7760
7761
7762case $host in
7763    *aix*)
7764        # for 32-bit builds, increase MAXDATA to allow lots of threads
7765        if test x$OBJECT_MODE != x64; then
7766            OS_SPECIFIC_VARS="LDR_CNTRL=\"MAXDATA=0x80000000\" ; export LDR_CNTRL ;"
7767        fi
7768        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS AIXTHREAD_SCOPE=S ; export AIXTHREAD_SCOPE"
7769        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_MUTEX_DEBUG=OFF ; export AIXTHREAD_MUTEX_DEBUG"
7770        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_RWLOCK_DEBUG=OFF ; export AIXTHREAD_RWLOCK_DEBUG"
7771        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_COND_DEBUG=OFF ; export AIXTHREAD_COND_DEBUG"
7772        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; SPINLOOPTIME=1000 ; export SPINLOOPTIME"
7773        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; YIELDLOOPTIME=8 ; export YIELDLOOPTIME"
7774        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; MALLOCMULTIHEAP=considersize,heaps:8 ; export MALLOCMULTIHEAP"
7775        ;;
7776    *os390*)
7777        OS_SPECIFIC_VARS="export _CEE_RUNOPTS=\"STACK(,,ANY)\" ; export _EDC_ADD_ERRNO2=1"
7778        ;;
7779    *)
7780        OS_SPECIFIC_VARS=""
7781esac
7782
7783
7784# Check whether --with-port was given.
7785if test "${with_port+set}" = set; then :
7786  withval=$with_port; if test "$withval" = "yes"; then as_fn_error $? "'option --with-port requires a value (the TCP port number)'" "$LINENO" 5; else PORT="$withval"; fi
7787else
7788  PORT=80
7789fi
7790
7791
7792
7793# Check whether --with-sslport was given.
7794if test "${with_sslport+set}" = set; then :
7795  withval=$with_sslport; if test "$withval" = "yes"; then as_fn_error $? "'option --with-sslport requires a value (the SSL TCP port number)'" "$LINENO" 5; else SSLPORT="$withval"; fi
7796else
7797  SSLPORT=443
7798fi
7799
7800
7801DTRACE=true
7802# Check whether --enable-dtrace was given.
7803if test "${enable_dtrace+set}" = set; then :
7804  enableval=$enable_dtrace;
7805  enable_dtrace=$enableval
7806  if test "$enableval" = "yes"; then
7807
7808  if test "x$CPPFLAGS" = "x"; then
7809    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_DTRACE_PROVIDER\""
7810    CPPFLAGS="-DAPR_DTRACE_PROVIDER"
7811  else
7812    apr_addto_bugger="-DAPR_DTRACE_PROVIDER"
7813    for i in $apr_addto_bugger; do
7814      apr_addto_duplicate="0"
7815      for j in $CPPFLAGS; do
7816        if test "x$i" = "x$j"; then
7817          apr_addto_duplicate="1"
7818          break
7819        fi
7820      done
7821      if test $apr_addto_duplicate = "0"; then
7822        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7823        CPPFLAGS="$CPPFLAGS $i"
7824      fi
7825    done
7826  fi
7827
7828    as_fn_error $? "'DTrace Support in the build system is not complete. Patches Welcome!'" "$LINENO" 5
7829  fi
7830
7831else
7832
7833  enable_dtrace=no
7834
7835fi
7836
7837
7838enable_dtrace=no
7839
7840case $host in
7841  *-solaris2*)
7842    if test $enable_dtrace = "yes" -a "$ac_cv_header_sys_sdt_h" = "yes"; then
7843
7844$as_echo "#define AP_ENABLE_DTRACE 1" >>confdefs.h
7845
7846        DTRACE="/usr/sbin/dtrace $DTRACEFLAGS"
7847        test -f include/apache_probes.h || $DTRACE -h -s apache_probes.d -o include/apache_probes.h
7848    fi
7849    ;;
7850esac
7851
7852
7853  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DTRACE"
7854
7855
7856
7857# Check whether --enable-hook-probes was given.
7858if test "${enable_hook_probes+set}" = set; then :
7859  enableval=$enable_hook_probes;
7860    if test "$enableval" = "yes"; then
7861
7862$as_echo "#define AP_HOOK_PROBES_ENABLED 1" >>confdefs.h
7863
7864
7865  if test "x$INTERNAL_CPPFLAGS" = "x"; then
7866    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DAP_HOOK_PROBES_ENABLED\""
7867    INTERNAL_CPPFLAGS="-DAP_HOOK_PROBES_ENABLED"
7868  else
7869    apr_addto_bugger="-DAP_HOOK_PROBES_ENABLED"
7870    for i in $apr_addto_bugger; do
7871      apr_addto_duplicate="0"
7872      for j in $INTERNAL_CPPFLAGS; do
7873        if test "x$i" = "x$j"; then
7874          apr_addto_duplicate="1"
7875          break
7876        fi
7877      done
7878      if test $apr_addto_duplicate = "0"; then
7879        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
7880        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
7881      fi
7882    done
7883  fi
7884
7885    fi
7886
7887fi
7888
7889# Check whether --enable-exception-hook was given.
7890if test "${enable_exception_hook+set}" = set; then :
7891  enableval=$enable_exception_hook;
7892    if test "$enableval" = "yes"; then
7893
7894$as_echo "#define AP_ENABLE_EXCEPTION_HOOK 1" >>confdefs.h
7895
7896    fi
7897
7898fi
7899
7900# Check whether --enable-load-all-modules was given.
7901if test "${enable_load_all_modules+set}" = set; then :
7902  enableval=$enable_load_all_modules;
7903  LOAD_ALL_MODULES=$enableval
7904  { $as_echo "$as_me:${as_lineno-$LINENO}: Setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&5
7905$as_echo "$as_me: Setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&6;}
7906
7907else
7908
7909  LOAD_ALL_MODULES="no"
7910
7911fi
7912
7913
7914# Check whether --enable-maintainer-mode was given.
7915if test "${enable_maintainer_mode+set}" = set; then :
7916  enableval=$enable_maintainer_mode;
7917  if test "$enableval" = "yes"; then
7918
7919  if test "x$CPPFLAGS" = "x"; then
7920    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAP_DEBUG\""
7921    CPPFLAGS="-DAP_DEBUG"
7922  else
7923    apr_addto_bugger="-DAP_DEBUG"
7924    for i in $apr_addto_bugger; do
7925      apr_addto_duplicate="0"
7926      for j in $CPPFLAGS; do
7927        if test "x$i" = "x$j"; then
7928          apr_addto_duplicate="1"
7929          break
7930        fi
7931      done
7932      if test $apr_addto_duplicate = "0"; then
7933        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7934        CPPFLAGS="$CPPFLAGS $i"
7935      fi
7936    done
7937  fi
7938
7939    if test "$GCC" = "yes"; then
7940
7941  if test "x$CFLAGS" = "x"; then
7942    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith\""
7943    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith"
7944  else
7945    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith"
7946    for i in $apr_addto_bugger; do
7947      apr_addto_duplicate="0"
7948      for j in $CFLAGS; do
7949        if test "x$i" = "x$j"; then
7950          apr_addto_duplicate="1"
7951          break
7952        fi
7953      done
7954      if test $apr_addto_duplicate = "0"; then
7955        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7956        CFLAGS="$CFLAGS $i"
7957      fi
7958    done
7959  fi
7960
7961
7962
7963  if test "$GCC" = "yes"; then
7964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
7965$as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
7966if ${ac_cv_gcc__Wdeclaration_after_statement+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969
7970      save_CFLAGS="$CFLAGS"
7971      CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7972      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h.  */
7974int foo() { return 0; }
7975_ACEOF
7976if ac_fn_c_try_compile "$LINENO"; then :
7977  ac_cv_gcc__Wdeclaration_after_statement=yes
7978else
7979  ac_cv_gcc__Wdeclaration_after_statement=no
7980fi
7981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982      CFLAGS="$save_CFLAGS"
7983
7984fi
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wdeclaration_after_statement" >&5
7986$as_echo "$ac_cv_gcc__Wdeclaration_after_statement" >&6; }
7987    if test "$ac_cv_gcc__Wdeclaration_after_statement" = "yes" ; then
7988
7989  if test "x$CFLAGS" = "x"; then
7990    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wdeclaration-after-statement\""
7991    CFLAGS="-Wdeclaration-after-statement"
7992  else
7993    apr_addto_bugger="-Wdeclaration-after-statement"
7994    for i in $apr_addto_bugger; do
7995      apr_addto_duplicate="0"
7996      for j in $CFLAGS; do
7997        if test "x$i" = "x$j"; then
7998          apr_addto_duplicate="1"
7999          break
8000        fi
8001      done
8002      if test $apr_addto_duplicate = "0"; then
8003        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8004        CFLAGS="$CFLAGS $i"
8005      fi
8006    done
8007  fi
8008
8009    fi
8010  fi
8011
8012
8013
8014
8015  if test "$GCC" = "yes"; then
8016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=declaration-after-statement" >&5
8017$as_echo_n "checking whether gcc accepts -Werror=declaration-after-statement... " >&6; }
8018if ${ac_cv_gcc__Werror_declaration_after_statement+:} false; then :
8019  $as_echo_n "(cached) " >&6
8020else
8021
8022      save_CFLAGS="$CFLAGS"
8023      CFLAGS="$CFLAGS -Werror=declaration-after-statement"
8024      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h.  */
8026int foo() { return 0; }
8027_ACEOF
8028if ac_fn_c_try_compile "$LINENO"; then :
8029  ac_cv_gcc__Werror_declaration_after_statement=yes
8030else
8031  ac_cv_gcc__Werror_declaration_after_statement=no
8032fi
8033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034      CFLAGS="$save_CFLAGS"
8035
8036fi
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_declaration_after_statement" >&5
8038$as_echo "$ac_cv_gcc__Werror_declaration_after_statement" >&6; }
8039    if test "$ac_cv_gcc__Werror_declaration_after_statement" = "yes" ; then
8040
8041  if test "x$CFLAGS" = "x"; then
8042    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Werror=declaration-after-statement\""
8043    CFLAGS="-Werror=declaration-after-statement"
8044  else
8045    apr_addto_bugger="-Werror=declaration-after-statement"
8046    for i in $apr_addto_bugger; do
8047      apr_addto_duplicate="0"
8048      for j in $CFLAGS; do
8049        if test "x$i" = "x$j"; then
8050          apr_addto_duplicate="1"
8051          break
8052        fi
8053      done
8054      if test $apr_addto_duplicate = "0"; then
8055        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8056        CFLAGS="$CFLAGS $i"
8057      fi
8058    done
8059  fi
8060
8061    fi
8062  fi
8063
8064
8065
8066
8067  if test "$GCC" = "yes"; then
8068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat" >&5
8069$as_echo_n "checking whether gcc accepts -Wformat... " >&6; }
8070if ${ac_cv_gcc__Wformat+:} false; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073
8074      save_CFLAGS="$CFLAGS"
8075      CFLAGS="$CFLAGS -Wformat"
8076      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h.  */
8078int foo() { return 0; }
8079_ACEOF
8080if ac_fn_c_try_compile "$LINENO"; then :
8081  ac_cv_gcc__Wformat=yes
8082else
8083  ac_cv_gcc__Wformat=no
8084fi
8085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086      CFLAGS="$save_CFLAGS"
8087
8088fi
8089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat" >&5
8090$as_echo "$ac_cv_gcc__Wformat" >&6; }
8091    if test "$ac_cv_gcc__Wformat" = "yes" ; then
8092
8093  if test "x$CFLAGS" = "x"; then
8094    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wformat\""
8095    CFLAGS="-Wformat"
8096  else
8097    apr_addto_bugger="-Wformat"
8098    for i in $apr_addto_bugger; do
8099      apr_addto_duplicate="0"
8100      for j in $CFLAGS; do
8101        if test "x$i" = "x$j"; then
8102          apr_addto_duplicate="1"
8103          break
8104        fi
8105      done
8106      if test $apr_addto_duplicate = "0"; then
8107        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8108        CFLAGS="$CFLAGS $i"
8109      fi
8110    done
8111  fi
8112
8113    fi
8114  fi
8115
8116
8117
8118
8119  if test "$GCC" = "yes"; then
8120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat-security" >&5
8121$as_echo_n "checking whether gcc accepts -Wformat-security... " >&6; }
8122if ${ac_cv_gcc__Wformat_security+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125
8126      save_CFLAGS="$CFLAGS"
8127      CFLAGS="$CFLAGS -Wformat-security"
8128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h.  */
8130int foo() { return 0; }
8131_ACEOF
8132if ac_fn_c_try_compile "$LINENO"; then :
8133  ac_cv_gcc__Wformat_security=yes
8134else
8135  ac_cv_gcc__Wformat_security=no
8136fi
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138      CFLAGS="$save_CFLAGS"
8139
8140fi
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat_security" >&5
8142$as_echo "$ac_cv_gcc__Wformat_security" >&6; }
8143    if test "$ac_cv_gcc__Wformat_security" = "yes" ; then
8144
8145  if test "x$CFLAGS" = "x"; then
8146    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wformat-security\""
8147    CFLAGS="-Wformat-security"
8148  else
8149    apr_addto_bugger="-Wformat-security"
8150    for i in $apr_addto_bugger; do
8151      apr_addto_duplicate="0"
8152      for j in $CFLAGS; do
8153        if test "x$i" = "x$j"; then
8154          apr_addto_duplicate="1"
8155          break
8156        fi
8157      done
8158      if test $apr_addto_duplicate = "0"; then
8159        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8160        CFLAGS="$CFLAGS $i"
8161      fi
8162    done
8163  fi
8164
8165    fi
8166  fi
8167
8168
8169
8170
8171  if test "$GCC" = "yes"; then
8172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=format-security" >&5
8173$as_echo_n "checking whether gcc accepts -Werror=format-security... " >&6; }
8174if ${ac_cv_gcc__Werror_format_security+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177
8178      save_CFLAGS="$CFLAGS"
8179      CFLAGS="$CFLAGS -Werror=format-security"
8180      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181/* end confdefs.h.  */
8182int foo() { return 0; }
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"; then :
8185  ac_cv_gcc__Werror_format_security=yes
8186else
8187  ac_cv_gcc__Werror_format_security=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190      CFLAGS="$save_CFLAGS"
8191
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_format_security" >&5
8194$as_echo "$ac_cv_gcc__Werror_format_security" >&6; }
8195    if test "$ac_cv_gcc__Werror_format_security" = "yes" ; then
8196
8197  if test "x$CFLAGS" = "x"; then
8198    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Werror=format-security\""
8199    CFLAGS="-Werror=format-security"
8200  else
8201    apr_addto_bugger="-Werror=format-security"
8202    for i in $apr_addto_bugger; do
8203      apr_addto_duplicate="0"
8204      for j in $CFLAGS; do
8205        if test "x$i" = "x$j"; then
8206          apr_addto_duplicate="1"
8207          break
8208        fi
8209      done
8210      if test $apr_addto_duplicate = "0"; then
8211        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8212        CFLAGS="$CFLAGS $i"
8213      fi
8214    done
8215  fi
8216
8217    fi
8218  fi
8219
8220
8221    elif test "$AIX_XLC" = "yes"; then
8222
8223  if test "x$CFLAGS" = "x"; then
8224    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
8225    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
8226  else
8227    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
8228    for i in $apr_addto_bugger; do
8229      apr_addto_duplicate="0"
8230      for j in $CFLAGS; do
8231        if test "x$i" = "x$j"; then
8232          apr_addto_duplicate="1"
8233          break
8234        fi
8235      done
8236      if test $apr_addto_duplicate = "0"; then
8237        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8238        CFLAGS="$CFLAGS $i"
8239      fi
8240    done
8241  fi
8242
8243    fi
8244    if test "x$enable_load_all_modules" = "x"; then
8245      LOAD_ALL_MODULES=yes
8246      { $as_echo "$as_me:${as_lineno-$LINENO}: Maintainer mode setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&5
8247$as_echo "$as_me: Maintainer mode setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&6;}
8248    fi
8249  fi
8250
8251fi
8252
8253# Check whether --enable-debugger-mode was given.
8254if test "${enable_debugger_mode+set}" = set; then :
8255  enableval=$enable_debugger_mode;
8256  if test "$enableval" = "yes"; then
8257
8258  if test "x$CPPFLAGS" = "x"; then
8259    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAP_DEBUG\""
8260    CPPFLAGS="-DAP_DEBUG"
8261  else
8262    apr_addto_bugger="-DAP_DEBUG"
8263    for i in $apr_addto_bugger; do
8264      apr_addto_duplicate="0"
8265      for j in $CPPFLAGS; do
8266        if test "x$i" = "x$j"; then
8267          apr_addto_duplicate="1"
8268          break
8269        fi
8270      done
8271      if test $apr_addto_duplicate = "0"; then
8272        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8273        CPPFLAGS="$CPPFLAGS $i"
8274      fi
8275    done
8276  fi
8277
8278    if test "$GCC" = "yes"; then
8279
8280  if test "x$CFLAGS" = "x"; then
8281    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -O0\""
8282    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -O0"
8283  else
8284    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -O0"
8285    for i in $apr_addto_bugger; do
8286      apr_addto_duplicate="0"
8287      for j in $CFLAGS; do
8288        if test "x$i" = "x$j"; then
8289          apr_addto_duplicate="1"
8290          break
8291        fi
8292      done
8293      if test $apr_addto_duplicate = "0"; then
8294        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8295        CFLAGS="$CFLAGS $i"
8296      fi
8297    done
8298  fi
8299
8300
8301
8302  if test "$GCC" = "yes"; then
8303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
8304$as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
8305if ${ac_cv_gcc__Wdeclaration_after_statement+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308
8309      save_CFLAGS="$CFLAGS"
8310      CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8311      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312/* end confdefs.h.  */
8313int foo() { return 0; }
8314_ACEOF
8315if ac_fn_c_try_compile "$LINENO"; then :
8316  ac_cv_gcc__Wdeclaration_after_statement=yes
8317else
8318  ac_cv_gcc__Wdeclaration_after_statement=no
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321      CFLAGS="$save_CFLAGS"
8322
8323fi
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wdeclaration_after_statement" >&5
8325$as_echo "$ac_cv_gcc__Wdeclaration_after_statement" >&6; }
8326    if test "$ac_cv_gcc__Wdeclaration_after_statement" = "yes" ; then
8327
8328  if test "x$CFLAGS" = "x"; then
8329    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wdeclaration-after-statement\""
8330    CFLAGS="-Wdeclaration-after-statement"
8331  else
8332    apr_addto_bugger="-Wdeclaration-after-statement"
8333    for i in $apr_addto_bugger; do
8334      apr_addto_duplicate="0"
8335      for j in $CFLAGS; do
8336        if test "x$i" = "x$j"; then
8337          apr_addto_duplicate="1"
8338          break
8339        fi
8340      done
8341      if test $apr_addto_duplicate = "0"; then
8342        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8343        CFLAGS="$CFLAGS $i"
8344      fi
8345    done
8346  fi
8347
8348    fi
8349  fi
8350
8351
8352
8353
8354  if test "$GCC" = "yes"; then
8355    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=declaration-after-statement" >&5
8356$as_echo_n "checking whether gcc accepts -Werror=declaration-after-statement... " >&6; }
8357if ${ac_cv_gcc__Werror_declaration_after_statement+:} false; then :
8358  $as_echo_n "(cached) " >&6
8359else
8360
8361      save_CFLAGS="$CFLAGS"
8362      CFLAGS="$CFLAGS -Werror=declaration-after-statement"
8363      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364/* end confdefs.h.  */
8365int foo() { return 0; }
8366_ACEOF
8367if ac_fn_c_try_compile "$LINENO"; then :
8368  ac_cv_gcc__Werror_declaration_after_statement=yes
8369else
8370  ac_cv_gcc__Werror_declaration_after_statement=no
8371fi
8372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373      CFLAGS="$save_CFLAGS"
8374
8375fi
8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_declaration_after_statement" >&5
8377$as_echo "$ac_cv_gcc__Werror_declaration_after_statement" >&6; }
8378    if test "$ac_cv_gcc__Werror_declaration_after_statement" = "yes" ; then
8379
8380  if test "x$CFLAGS" = "x"; then
8381    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Werror=declaration-after-statement\""
8382    CFLAGS="-Werror=declaration-after-statement"
8383  else
8384    apr_addto_bugger="-Werror=declaration-after-statement"
8385    for i in $apr_addto_bugger; do
8386      apr_addto_duplicate="0"
8387      for j in $CFLAGS; do
8388        if test "x$i" = "x$j"; then
8389          apr_addto_duplicate="1"
8390          break
8391        fi
8392      done
8393      if test $apr_addto_duplicate = "0"; then
8394        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8395        CFLAGS="$CFLAGS $i"
8396      fi
8397    done
8398  fi
8399
8400    fi
8401  fi
8402
8403
8404
8405
8406  if test "$GCC" = "yes"; then
8407    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat" >&5
8408$as_echo_n "checking whether gcc accepts -Wformat... " >&6; }
8409if ${ac_cv_gcc__Wformat+:} false; then :
8410  $as_echo_n "(cached) " >&6
8411else
8412
8413      save_CFLAGS="$CFLAGS"
8414      CFLAGS="$CFLAGS -Wformat"
8415      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416/* end confdefs.h.  */
8417int foo() { return 0; }
8418_ACEOF
8419if ac_fn_c_try_compile "$LINENO"; then :
8420  ac_cv_gcc__Wformat=yes
8421else
8422  ac_cv_gcc__Wformat=no
8423fi
8424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425      CFLAGS="$save_CFLAGS"
8426
8427fi
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat" >&5
8429$as_echo "$ac_cv_gcc__Wformat" >&6; }
8430    if test "$ac_cv_gcc__Wformat" = "yes" ; then
8431
8432  if test "x$CFLAGS" = "x"; then
8433    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wformat\""
8434    CFLAGS="-Wformat"
8435  else
8436    apr_addto_bugger="-Wformat"
8437    for i in $apr_addto_bugger; do
8438      apr_addto_duplicate="0"
8439      for j in $CFLAGS; do
8440        if test "x$i" = "x$j"; then
8441          apr_addto_duplicate="1"
8442          break
8443        fi
8444      done
8445      if test $apr_addto_duplicate = "0"; then
8446        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8447        CFLAGS="$CFLAGS $i"
8448      fi
8449    done
8450  fi
8451
8452    fi
8453  fi
8454
8455
8456
8457
8458  if test "$GCC" = "yes"; then
8459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat-security" >&5
8460$as_echo_n "checking whether gcc accepts -Wformat-security... " >&6; }
8461if ${ac_cv_gcc__Wformat_security+:} false; then :
8462  $as_echo_n "(cached) " >&6
8463else
8464
8465      save_CFLAGS="$CFLAGS"
8466      CFLAGS="$CFLAGS -Wformat-security"
8467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468/* end confdefs.h.  */
8469int foo() { return 0; }
8470_ACEOF
8471if ac_fn_c_try_compile "$LINENO"; then :
8472  ac_cv_gcc__Wformat_security=yes
8473else
8474  ac_cv_gcc__Wformat_security=no
8475fi
8476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477      CFLAGS="$save_CFLAGS"
8478
8479fi
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat_security" >&5
8481$as_echo "$ac_cv_gcc__Wformat_security" >&6; }
8482    if test "$ac_cv_gcc__Wformat_security" = "yes" ; then
8483
8484  if test "x$CFLAGS" = "x"; then
8485    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wformat-security\""
8486    CFLAGS="-Wformat-security"
8487  else
8488    apr_addto_bugger="-Wformat-security"
8489    for i in $apr_addto_bugger; do
8490      apr_addto_duplicate="0"
8491      for j in $CFLAGS; do
8492        if test "x$i" = "x$j"; then
8493          apr_addto_duplicate="1"
8494          break
8495        fi
8496      done
8497      if test $apr_addto_duplicate = "0"; then
8498        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8499        CFLAGS="$CFLAGS $i"
8500      fi
8501    done
8502  fi
8503
8504    fi
8505  fi
8506
8507
8508
8509
8510  if test "$GCC" = "yes"; then
8511    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=format-security" >&5
8512$as_echo_n "checking whether gcc accepts -Werror=format-security... " >&6; }
8513if ${ac_cv_gcc__Werror_format_security+:} false; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516
8517      save_CFLAGS="$CFLAGS"
8518      CFLAGS="$CFLAGS -Werror=format-security"
8519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h.  */
8521int foo() { return 0; }
8522_ACEOF
8523if ac_fn_c_try_compile "$LINENO"; then :
8524  ac_cv_gcc__Werror_format_security=yes
8525else
8526  ac_cv_gcc__Werror_format_security=no
8527fi
8528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529      CFLAGS="$save_CFLAGS"
8530
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_format_security" >&5
8533$as_echo "$ac_cv_gcc__Werror_format_security" >&6; }
8534    if test "$ac_cv_gcc__Werror_format_security" = "yes" ; then
8535
8536  if test "x$CFLAGS" = "x"; then
8537    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Werror=format-security\""
8538    CFLAGS="-Werror=format-security"
8539  else
8540    apr_addto_bugger="-Werror=format-security"
8541    for i in $apr_addto_bugger; do
8542      apr_addto_duplicate="0"
8543      for j in $CFLAGS; do
8544        if test "x$i" = "x$j"; then
8545          apr_addto_duplicate="1"
8546          break
8547        fi
8548      done
8549      if test $apr_addto_duplicate = "0"; then
8550        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8551        CFLAGS="$CFLAGS $i"
8552      fi
8553    done
8554  fi
8555
8556    fi
8557  fi
8558
8559
8560    elif test "$AIX_XLC" = "yes"; then
8561
8562  if test "x$CFLAGS" = "x"; then
8563    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
8564    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
8565  else
8566    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
8567    for i in $apr_addto_bugger; do
8568      apr_addto_duplicate="0"
8569      for j in $CFLAGS; do
8570        if test "x$i" = "x$j"; then
8571          apr_addto_duplicate="1"
8572          break
8573        fi
8574      done
8575      if test $apr_addto_duplicate = "0"; then
8576        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8577        CFLAGS="$CFLAGS $i"
8578      fi
8579    done
8580  fi
8581
8582    fi
8583  fi
8584
8585fi
8586
8587# Check whether --enable-pie was given.
8588if test "${enable_pie+set}" = set; then :
8589  enableval=$enable_pie;
8590fi
8591
8592if test "$enable_pie" = "yes"; then
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts PIE flags" >&5
8594$as_echo_n "checking whether $CC accepts PIE flags... " >&6; }
8595if ${ap_cv_cc_pie+:} false; then :
8596  $as_echo_n "(cached) " >&6
8597else
8598
8599     save_CFLAGS=$CFLAGS
8600     save_LDFLAGS=$LDFLAGS
8601     CFLAGS="$CFLAGS -fPIE"
8602     LDFLAGS="$LDFLAGS -pie"
8603     if test "$cross_compiling" = yes; then :
8604  ap_cv_cc_pie=yes
8605else
8606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h.  */
8608static int foo[30000]; int main () { return 0; }
8609_ACEOF
8610if ac_fn_c_try_run "$LINENO"; then :
8611  ap_cv_cc_pie=yes
8612else
8613  ap_cv_cc_pie=no
8614fi
8615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8616  conftest.$ac_objext conftest.beam conftest.$ac_ext
8617fi
8618
8619     CFLAGS=$save_CFLAGS
8620     LDFLAGS=$save_LDFLAGS
8621
8622fi
8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_cc_pie" >&5
8624$as_echo "$ap_cv_cc_pie" >&6; }
8625   if test "$ap_cv_cc_pie" = "yes"; then
8626     PICFLAGS="-fPIE"
8627     PILDFLAGS="-pie"
8628   else
8629     as_fn_error $? "--enable-pie requested but $CC failed using PIE flags" "$LINENO" 5
8630   fi
8631fi
8632
8633  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PICFLAGS"
8634
8635
8636
8637  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PILDFLAGS"
8638
8639
8640
8641prefix="$orig_prefix"
8642
8643  module_selection=most
8644  module_default=shared
8645
8646
8647apr_old_cppflags=$CPPFLAGS
8648CPPFLAGS="$CPPFLAGS $INCLUDES"
8649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h.  */
8651
8652#include <apr.h>
8653#if APR_HAS_DSO
8654YES_IS_DEFINED
8655#endif
8656
8657_ACEOF
8658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8659  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
8660  ac_cv_define_APR_HAS_DSO=yes
8661else
8662  ac_cv_define_APR_HAS_DSO=no
8663fi
8664rm -f conftest*
8665
8666CPPFLAGS=$apr_old_cppflags
8667
8668
8669  if test $ac_cv_define_APR_HAS_DSO = "no"; then
8670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing DSO support - building static modules by default." >&5
8671$as_echo "$as_me: WARNING: Missing DSO support - building static modules by default." >&2;}
8672    module_default=static
8673  fi
8674
8675
8676  # Check whether --enable-modules was given.
8677if test "${enable_modules+set}" = set; then :
8678  enableval=$enable_modules;
8679    if test "$enableval" = "none"; then
8680       module_default=no
8681       module_selection=none
8682    else
8683      for i in $enableval; do
8684        if test "$i" = "all" -o "$i" = "most" -o "$i" = "few" -o "$i" = "reallyall"
8685        then
8686          module_selection=$i
8687        else
8688          i=`echo $i | sed 's/-/_/g'`
8689          eval "enable_$i=shared"
8690        fi
8691      done
8692    fi
8693
8694fi
8695
8696
8697  # Check whether --enable-mods-shared was given.
8698if test "${enable_mods_shared+set}" = set; then :
8699  enableval=$enable_mods_shared;
8700    for i in $enableval; do
8701      if test "$i" = "all" -o "$i" = "most" -o "$i" = "few" -o "$i" = "reallyall"
8702      then
8703        module_selection=$i
8704        module_default=shared
8705      else
8706        i=`echo $i | sed 's/-/_/g'`
8707    	eval "enable_$i=shared"
8708      fi
8709    done
8710
8711fi
8712
8713
8714  # Check whether --enable-mods-static was given.
8715if test "${enable_mods_static+set}" = set; then :
8716  enableval=$enable_mods_static;
8717    for i in $enableval; do
8718      if test "$i" = "all" -o "$i" = "most" -o "$i" = "few" -o "$i" = "reallyall"; then
8719        module_selection=$i
8720        module_default=static
8721      else
8722        i=`echo $i | sed 's/-/_/g'`
8723    	eval "enable_$i=static"
8724      fi
8725    done
8726
8727fi
8728
8729
8730
8731
8732
8733
8734
8735  current_dir=aaa
8736  modpath_current=modules/aaa
8737  modpath_static=
8738  modpath_shared=
8739  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
8740    eval MOD_$var=
8741  done
8742  test -d aaa || $srcdir/build/mkdir.sh $modpath_current
8743  > $modpath_current/modules.mk
8744
8745
8746
8747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_file" >&5
8748$as_echo_n "checking whether to enable mod_authn_file... " >&6; }
8749    # Check whether --enable-authn-file was given.
8750if test "${enable_authn_file+set}" = set; then :
8751  enableval=$enable_authn_file; force_authn_file=$enableval
8752else
8753  enable_authn_file=yes
8754fi
8755
8756    _apmod_extra_msg=""
8757        case "$enable_authn_file" in
8758    yes|static|shared)
8759      _apmod_required="yes"
8760      ;;
8761    *)
8762      case "$module_selection" in
8763      reallyall|all|most)
8764        _apmod_required="no"
8765        ;;
8766      *)
8767        _apmod_required="yes"
8768        ;;
8769      esac
8770  esac
8771  if test "$enable_authn_file" = "static"; then
8772    enable_authn_file=static
8773  elif test "$enable_authn_file" = "yes"; then
8774    enable_authn_file=$module_default
8775  elif test "$enable_authn_file" = "most"; then
8776    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
8777            "$module_selection" = "reallyall"
8778    then
8779      enable_authn_file=$module_default
8780    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
8781      enable_authn_file=no
8782    fi
8783    _apmod_extra_msg=" ($module_selection)"
8784  elif test "$enable_authn_file" = "maybe-all"; then
8785    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
8786    then
8787      enable_authn_file=$module_default
8788      _apmod_extra_msg=" ($module_selection)"
8789    else
8790      enable_authn_file=no
8791    fi
8792  elif test "$enable_authn_file" = "no" -a "$module_selection" = "reallyall" -a \
8793            "$force_authn_file" != "no" ; then
8794      enable_authn_file=$module_default
8795      _apmod_extra_msg=" ($module_selection)"
8796  fi
8797  if test "$enable_authn_file" != "no"; then
8798            :
8799  fi
8800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_file$_apmod_extra_msg" >&5
8801$as_echo "$enable_authn_file$_apmod_extra_msg" >&6; }
8802  if test "$enable_authn_file" != "no"; then
8803    case "$enable_authn_file" in
8804    static*)
8805      MODLIST="$MODLIST authn_file"
8806      if test "authn_file" = "so"; then
8807          sharedobjs=yes
8808      fi
8809      shared="";;
8810    *)
8811      enable_authn_file=`echo $enable_authn_file|sed 's/shared,*//'`
8812      sharedobjs=yes
8813      shared=yes
8814      DSO_MODULES="$DSO_MODULES authn_file"
8815      if test "yes" = "yes" ; then
8816        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_file"
8817      fi
8818      ;;
8819    esac
8820
8821
8822  if test -z ""; then
8823    objects="mod_authn_file.lo"
8824  else
8825    objects=""
8826  fi
8827
8828  if test -z "$module_standalone"; then
8829    if test -z "$shared"; then
8830      # The filename of a convenience library must have a "lib" prefix:
8831      libname="libmod_authn_file.la"
8832      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8833      modpath_static="$modpath_static $libname"
8834      cat >>$modpath_current/modules.mk<<EOF
8835$libname: $objects
8836	\$(MOD_LINK) $objects \$(MOD_AUTHN_FILE_LDADD)
8837EOF
8838      if test ! -z "\$(MOD_AUTHN_FILE_LDADD)"; then
8839
8840  if test "x$AP_LIBS" = "x"; then
8841    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_FILE_LDADD)\""
8842    AP_LIBS="\$(MOD_AUTHN_FILE_LDADD)"
8843  else
8844    apr_addto_bugger="\$(MOD_AUTHN_FILE_LDADD)"
8845    for i in $apr_addto_bugger; do
8846      apr_addto_duplicate="0"
8847      for j in $AP_LIBS; do
8848        if test "x$i" = "x$j"; then
8849          apr_addto_duplicate="1"
8850          break
8851        fi
8852      done
8853      if test $apr_addto_duplicate = "0"; then
8854        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
8855        AP_LIBS="$AP_LIBS $i"
8856      fi
8857    done
8858  fi
8859
8860      fi
8861    else
8862      apache_need_shared=yes
8863      libname="mod_authn_file.la"
8864      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8865      modpath_shared="$modpath_shared $libname"
8866      cat >>$modpath_current/modules.mk<<EOF
8867$libname: $shobjects
8868	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_FILE_LDADD)
8869EOF
8870    fi
8871  fi
8872
8873
8874  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_FILE_LDADD"
8875
8876
8877
8878  fi
8879
8880
8881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_dbm" >&5
8882$as_echo_n "checking whether to enable mod_authn_dbm... " >&6; }
8883    # Check whether --enable-authn-dbm was given.
8884if test "${enable_authn_dbm+set}" = set; then :
8885  enableval=$enable_authn_dbm; force_authn_dbm=$enableval
8886else
8887  enable_authn_dbm=most
8888fi
8889
8890    _apmod_extra_msg=""
8891        case "$enable_authn_dbm" in
8892    yes|static|shared)
8893      _apmod_required="yes"
8894      ;;
8895    *)
8896      case "$module_selection" in
8897      reallyall|all|most)
8898        _apmod_required="no"
8899        ;;
8900      *)
8901        _apmod_required="yes"
8902        ;;
8903      esac
8904  esac
8905  if test "$enable_authn_dbm" = "static"; then
8906    enable_authn_dbm=static
8907  elif test "$enable_authn_dbm" = "yes"; then
8908    enable_authn_dbm=$module_default
8909  elif test "$enable_authn_dbm" = "most"; then
8910    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
8911            "$module_selection" = "reallyall"
8912    then
8913      enable_authn_dbm=$module_default
8914    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
8915      enable_authn_dbm=no
8916    fi
8917    _apmod_extra_msg=" ($module_selection)"
8918  elif test "$enable_authn_dbm" = "maybe-all"; then
8919    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
8920    then
8921      enable_authn_dbm=$module_default
8922      _apmod_extra_msg=" ($module_selection)"
8923    else
8924      enable_authn_dbm=no
8925    fi
8926  elif test "$enable_authn_dbm" = "no" -a "$module_selection" = "reallyall" -a \
8927            "$force_authn_dbm" != "no" ; then
8928      enable_authn_dbm=$module_default
8929      _apmod_extra_msg=" ($module_selection)"
8930  fi
8931  if test "$enable_authn_dbm" != "no"; then
8932            :
8933  fi
8934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_dbm$_apmod_extra_msg" >&5
8935$as_echo "$enable_authn_dbm$_apmod_extra_msg" >&6; }
8936  if test "$enable_authn_dbm" != "no"; then
8937    case "$enable_authn_dbm" in
8938    static*)
8939      MODLIST="$MODLIST authn_dbm"
8940      if test "authn_dbm" = "so"; then
8941          sharedobjs=yes
8942      fi
8943      shared="";;
8944    *)
8945      enable_authn_dbm=`echo $enable_authn_dbm|sed 's/shared,*//'`
8946      sharedobjs=yes
8947      shared=yes
8948      DSO_MODULES="$DSO_MODULES authn_dbm"
8949      if test "most" = "yes" ; then
8950        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_dbm"
8951      fi
8952      ;;
8953    esac
8954
8955
8956  if test -z ""; then
8957    objects="mod_authn_dbm.lo"
8958  else
8959    objects=""
8960  fi
8961
8962  if test -z "$module_standalone"; then
8963    if test -z "$shared"; then
8964      # The filename of a convenience library must have a "lib" prefix:
8965      libname="libmod_authn_dbm.la"
8966      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
8967      modpath_static="$modpath_static $libname"
8968      cat >>$modpath_current/modules.mk<<EOF
8969$libname: $objects
8970	\$(MOD_LINK) $objects \$(MOD_AUTHN_DBM_LDADD)
8971EOF
8972      if test ! -z "\$(MOD_AUTHN_DBM_LDADD)"; then
8973
8974  if test "x$AP_LIBS" = "x"; then
8975    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_DBM_LDADD)\""
8976    AP_LIBS="\$(MOD_AUTHN_DBM_LDADD)"
8977  else
8978    apr_addto_bugger="\$(MOD_AUTHN_DBM_LDADD)"
8979    for i in $apr_addto_bugger; do
8980      apr_addto_duplicate="0"
8981      for j in $AP_LIBS; do
8982        if test "x$i" = "x$j"; then
8983          apr_addto_duplicate="1"
8984          break
8985        fi
8986      done
8987      if test $apr_addto_duplicate = "0"; then
8988        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
8989        AP_LIBS="$AP_LIBS $i"
8990      fi
8991    done
8992  fi
8993
8994      fi
8995    else
8996      apache_need_shared=yes
8997      libname="mod_authn_dbm.la"
8998      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
8999      modpath_shared="$modpath_shared $libname"
9000      cat >>$modpath_current/modules.mk<<EOF
9001$libname: $shobjects
9002	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_DBM_LDADD)
9003EOF
9004    fi
9005  fi
9006
9007
9008  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_DBM_LDADD"
9009
9010
9011
9012  fi
9013
9014
9015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_anon" >&5
9016$as_echo_n "checking whether to enable mod_authn_anon... " >&6; }
9017    # Check whether --enable-authn-anon was given.
9018if test "${enable_authn_anon+set}" = set; then :
9019  enableval=$enable_authn_anon; force_authn_anon=$enableval
9020else
9021  enable_authn_anon=most
9022fi
9023
9024    _apmod_extra_msg=""
9025        case "$enable_authn_anon" in
9026    yes|static|shared)
9027      _apmod_required="yes"
9028      ;;
9029    *)
9030      case "$module_selection" in
9031      reallyall|all|most)
9032        _apmod_required="no"
9033        ;;
9034      *)
9035        _apmod_required="yes"
9036        ;;
9037      esac
9038  esac
9039  if test "$enable_authn_anon" = "static"; then
9040    enable_authn_anon=static
9041  elif test "$enable_authn_anon" = "yes"; then
9042    enable_authn_anon=$module_default
9043  elif test "$enable_authn_anon" = "most"; then
9044    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9045            "$module_selection" = "reallyall"
9046    then
9047      enable_authn_anon=$module_default
9048    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9049      enable_authn_anon=no
9050    fi
9051    _apmod_extra_msg=" ($module_selection)"
9052  elif test "$enable_authn_anon" = "maybe-all"; then
9053    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9054    then
9055      enable_authn_anon=$module_default
9056      _apmod_extra_msg=" ($module_selection)"
9057    else
9058      enable_authn_anon=no
9059    fi
9060  elif test "$enable_authn_anon" = "no" -a "$module_selection" = "reallyall" -a \
9061            "$force_authn_anon" != "no" ; then
9062      enable_authn_anon=$module_default
9063      _apmod_extra_msg=" ($module_selection)"
9064  fi
9065  if test "$enable_authn_anon" != "no"; then
9066            :
9067  fi
9068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_anon$_apmod_extra_msg" >&5
9069$as_echo "$enable_authn_anon$_apmod_extra_msg" >&6; }
9070  if test "$enable_authn_anon" != "no"; then
9071    case "$enable_authn_anon" in
9072    static*)
9073      MODLIST="$MODLIST authn_anon"
9074      if test "authn_anon" = "so"; then
9075          sharedobjs=yes
9076      fi
9077      shared="";;
9078    *)
9079      enable_authn_anon=`echo $enable_authn_anon|sed 's/shared,*//'`
9080      sharedobjs=yes
9081      shared=yes
9082      DSO_MODULES="$DSO_MODULES authn_anon"
9083      if test "most" = "yes" ; then
9084        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_anon"
9085      fi
9086      ;;
9087    esac
9088
9089
9090  if test -z ""; then
9091    objects="mod_authn_anon.lo"
9092  else
9093    objects=""
9094  fi
9095
9096  if test -z "$module_standalone"; then
9097    if test -z "$shared"; then
9098      # The filename of a convenience library must have a "lib" prefix:
9099      libname="libmod_authn_anon.la"
9100      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9101      modpath_static="$modpath_static $libname"
9102      cat >>$modpath_current/modules.mk<<EOF
9103$libname: $objects
9104	\$(MOD_LINK) $objects \$(MOD_AUTHN_ANON_LDADD)
9105EOF
9106      if test ! -z "\$(MOD_AUTHN_ANON_LDADD)"; then
9107
9108  if test "x$AP_LIBS" = "x"; then
9109    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_ANON_LDADD)\""
9110    AP_LIBS="\$(MOD_AUTHN_ANON_LDADD)"
9111  else
9112    apr_addto_bugger="\$(MOD_AUTHN_ANON_LDADD)"
9113    for i in $apr_addto_bugger; do
9114      apr_addto_duplicate="0"
9115      for j in $AP_LIBS; do
9116        if test "x$i" = "x$j"; then
9117          apr_addto_duplicate="1"
9118          break
9119        fi
9120      done
9121      if test $apr_addto_duplicate = "0"; then
9122        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9123        AP_LIBS="$AP_LIBS $i"
9124      fi
9125    done
9126  fi
9127
9128      fi
9129    else
9130      apache_need_shared=yes
9131      libname="mod_authn_anon.la"
9132      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9133      modpath_shared="$modpath_shared $libname"
9134      cat >>$modpath_current/modules.mk<<EOF
9135$libname: $shobjects
9136	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_ANON_LDADD)
9137EOF
9138    fi
9139  fi
9140
9141
9142  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_ANON_LDADD"
9143
9144
9145
9146  fi
9147
9148
9149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_dbd" >&5
9150$as_echo_n "checking whether to enable mod_authn_dbd... " >&6; }
9151    # Check whether --enable-authn-dbd was given.
9152if test "${enable_authn_dbd+set}" = set; then :
9153  enableval=$enable_authn_dbd; force_authn_dbd=$enableval
9154else
9155  enable_authn_dbd=most
9156fi
9157
9158    _apmod_extra_msg=""
9159        case "$enable_authn_dbd" in
9160    yes|static|shared)
9161      _apmod_required="yes"
9162      ;;
9163    *)
9164      case "$module_selection" in
9165      reallyall|all|most)
9166        _apmod_required="no"
9167        ;;
9168      *)
9169        _apmod_required="yes"
9170        ;;
9171      esac
9172  esac
9173  if test "$enable_authn_dbd" = "static"; then
9174    enable_authn_dbd=static
9175  elif test "$enable_authn_dbd" = "yes"; then
9176    enable_authn_dbd=$module_default
9177  elif test "$enable_authn_dbd" = "most"; then
9178    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9179            "$module_selection" = "reallyall"
9180    then
9181      enable_authn_dbd=$module_default
9182    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9183      enable_authn_dbd=no
9184    fi
9185    _apmod_extra_msg=" ($module_selection)"
9186  elif test "$enable_authn_dbd" = "maybe-all"; then
9187    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9188    then
9189      enable_authn_dbd=$module_default
9190      _apmod_extra_msg=" ($module_selection)"
9191    else
9192      enable_authn_dbd=no
9193    fi
9194  elif test "$enable_authn_dbd" = "no" -a "$module_selection" = "reallyall" -a \
9195            "$force_authn_dbd" != "no" ; then
9196      enable_authn_dbd=$module_default
9197      _apmod_extra_msg=" ($module_selection)"
9198  fi
9199  if test "$enable_authn_dbd" != "no"; then
9200            :
9201  fi
9202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_dbd$_apmod_extra_msg" >&5
9203$as_echo "$enable_authn_dbd$_apmod_extra_msg" >&6; }
9204  if test "$enable_authn_dbd" != "no"; then
9205    case "$enable_authn_dbd" in
9206    static*)
9207      MODLIST="$MODLIST authn_dbd"
9208      if test "authn_dbd" = "so"; then
9209          sharedobjs=yes
9210      fi
9211      shared="";;
9212    *)
9213      enable_authn_dbd=`echo $enable_authn_dbd|sed 's/shared,*//'`
9214      sharedobjs=yes
9215      shared=yes
9216      DSO_MODULES="$DSO_MODULES authn_dbd"
9217      if test "most" = "yes" ; then
9218        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_dbd"
9219      fi
9220      ;;
9221    esac
9222
9223
9224  if test -z ""; then
9225    objects="mod_authn_dbd.lo"
9226  else
9227    objects=""
9228  fi
9229
9230  if test -z "$module_standalone"; then
9231    if test -z "$shared"; then
9232      # The filename of a convenience library must have a "lib" prefix:
9233      libname="libmod_authn_dbd.la"
9234      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9235      modpath_static="$modpath_static $libname"
9236      cat >>$modpath_current/modules.mk<<EOF
9237$libname: $objects
9238	\$(MOD_LINK) $objects \$(MOD_AUTHN_DBD_LDADD)
9239EOF
9240      if test ! -z "\$(MOD_AUTHN_DBD_LDADD)"; then
9241
9242  if test "x$AP_LIBS" = "x"; then
9243    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_DBD_LDADD)\""
9244    AP_LIBS="\$(MOD_AUTHN_DBD_LDADD)"
9245  else
9246    apr_addto_bugger="\$(MOD_AUTHN_DBD_LDADD)"
9247    for i in $apr_addto_bugger; do
9248      apr_addto_duplicate="0"
9249      for j in $AP_LIBS; do
9250        if test "x$i" = "x$j"; then
9251          apr_addto_duplicate="1"
9252          break
9253        fi
9254      done
9255      if test $apr_addto_duplicate = "0"; then
9256        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9257        AP_LIBS="$AP_LIBS $i"
9258      fi
9259    done
9260  fi
9261
9262      fi
9263    else
9264      apache_need_shared=yes
9265      libname="mod_authn_dbd.la"
9266      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9267      modpath_shared="$modpath_shared $libname"
9268      cat >>$modpath_current/modules.mk<<EOF
9269$libname: $shobjects
9270	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_DBD_LDADD)
9271EOF
9272    fi
9273  fi
9274
9275
9276  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_DBD_LDADD"
9277
9278
9279
9280  fi
9281
9282
9283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_socache" >&5
9284$as_echo_n "checking whether to enable mod_authn_socache... " >&6; }
9285    # Check whether --enable-authn-socache was given.
9286if test "${enable_authn_socache+set}" = set; then :
9287  enableval=$enable_authn_socache; force_authn_socache=$enableval
9288else
9289  enable_authn_socache=most
9290fi
9291
9292    _apmod_extra_msg=""
9293        case "$enable_authn_socache" in
9294    yes|static|shared)
9295      _apmod_required="yes"
9296      ;;
9297    *)
9298      case "$module_selection" in
9299      reallyall|all|most)
9300        _apmod_required="no"
9301        ;;
9302      *)
9303        _apmod_required="yes"
9304        ;;
9305      esac
9306  esac
9307  if test "$enable_authn_socache" = "static"; then
9308    enable_authn_socache=static
9309  elif test "$enable_authn_socache" = "yes"; then
9310    enable_authn_socache=$module_default
9311  elif test "$enable_authn_socache" = "most"; then
9312    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9313            "$module_selection" = "reallyall"
9314    then
9315      enable_authn_socache=$module_default
9316    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9317      enable_authn_socache=no
9318    fi
9319    _apmod_extra_msg=" ($module_selection)"
9320  elif test "$enable_authn_socache" = "maybe-all"; then
9321    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9322    then
9323      enable_authn_socache=$module_default
9324      _apmod_extra_msg=" ($module_selection)"
9325    else
9326      enable_authn_socache=no
9327    fi
9328  elif test "$enable_authn_socache" = "no" -a "$module_selection" = "reallyall" -a \
9329            "$force_authn_socache" != "no" ; then
9330      enable_authn_socache=$module_default
9331      _apmod_extra_msg=" ($module_selection)"
9332  fi
9333  if test "$enable_authn_socache" != "no"; then
9334            :
9335  fi
9336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_socache$_apmod_extra_msg" >&5
9337$as_echo "$enable_authn_socache$_apmod_extra_msg" >&6; }
9338  if test "$enable_authn_socache" != "no"; then
9339    case "$enable_authn_socache" in
9340    static*)
9341      MODLIST="$MODLIST authn_socache"
9342      if test "authn_socache" = "so"; then
9343          sharedobjs=yes
9344      fi
9345      shared="";;
9346    *)
9347      enable_authn_socache=`echo $enable_authn_socache|sed 's/shared,*//'`
9348      sharedobjs=yes
9349      shared=yes
9350      DSO_MODULES="$DSO_MODULES authn_socache"
9351      if test "most" = "yes" ; then
9352        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_socache"
9353      fi
9354      ;;
9355    esac
9356
9357
9358  if test -z ""; then
9359    objects="mod_authn_socache.lo"
9360  else
9361    objects=""
9362  fi
9363
9364  if test -z "$module_standalone"; then
9365    if test -z "$shared"; then
9366      # The filename of a convenience library must have a "lib" prefix:
9367      libname="libmod_authn_socache.la"
9368      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9369      modpath_static="$modpath_static $libname"
9370      cat >>$modpath_current/modules.mk<<EOF
9371$libname: $objects
9372	\$(MOD_LINK) $objects \$(MOD_AUTHN_SOCACHE_LDADD)
9373EOF
9374      if test ! -z "\$(MOD_AUTHN_SOCACHE_LDADD)"; then
9375
9376  if test "x$AP_LIBS" = "x"; then
9377    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_SOCACHE_LDADD)\""
9378    AP_LIBS="\$(MOD_AUTHN_SOCACHE_LDADD)"
9379  else
9380    apr_addto_bugger="\$(MOD_AUTHN_SOCACHE_LDADD)"
9381    for i in $apr_addto_bugger; do
9382      apr_addto_duplicate="0"
9383      for j in $AP_LIBS; do
9384        if test "x$i" = "x$j"; then
9385          apr_addto_duplicate="1"
9386          break
9387        fi
9388      done
9389      if test $apr_addto_duplicate = "0"; then
9390        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9391        AP_LIBS="$AP_LIBS $i"
9392      fi
9393    done
9394  fi
9395
9396      fi
9397    else
9398      apache_need_shared=yes
9399      libname="mod_authn_socache.la"
9400      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9401      modpath_shared="$modpath_shared $libname"
9402      cat >>$modpath_current/modules.mk<<EOF
9403$libname: $shobjects
9404	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_SOCACHE_LDADD)
9405EOF
9406    fi
9407  fi
9408
9409
9410  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_SOCACHE_LDADD"
9411
9412
9413
9414  fi
9415
9416
9417
9418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_core" >&5
9419$as_echo_n "checking whether to enable mod_authn_core... " >&6; }
9420    # Check whether --enable-authn-core was given.
9421if test "${enable_authn_core+set}" = set; then :
9422  enableval=$enable_authn_core; force_authn_core=$enableval
9423else
9424  enable_authn_core=yes
9425fi
9426
9427    _apmod_extra_msg=""
9428        case "$enable_authn_core" in
9429    yes|static|shared)
9430      _apmod_required="yes"
9431      ;;
9432    *)
9433      case "$module_selection" in
9434      reallyall|all|most)
9435        _apmod_required="no"
9436        ;;
9437      *)
9438        _apmod_required="yes"
9439        ;;
9440      esac
9441  esac
9442  if test "$enable_authn_core" = "static"; then
9443    enable_authn_core=static
9444  elif test "$enable_authn_core" = "yes"; then
9445    enable_authn_core=$module_default
9446  elif test "$enable_authn_core" = "most"; then
9447    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9448            "$module_selection" = "reallyall"
9449    then
9450      enable_authn_core=$module_default
9451    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9452      enable_authn_core=no
9453    fi
9454    _apmod_extra_msg=" ($module_selection)"
9455  elif test "$enable_authn_core" = "maybe-all"; then
9456    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9457    then
9458      enable_authn_core=$module_default
9459      _apmod_extra_msg=" ($module_selection)"
9460    else
9461      enable_authn_core=no
9462    fi
9463  elif test "$enable_authn_core" = "no" -a "$module_selection" = "reallyall" -a \
9464            "$force_authn_core" != "no" ; then
9465      enable_authn_core=$module_default
9466      _apmod_extra_msg=" ($module_selection)"
9467  fi
9468  if test "$enable_authn_core" != "no"; then
9469            :
9470  fi
9471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authn_core$_apmod_extra_msg" >&5
9472$as_echo "$enable_authn_core$_apmod_extra_msg" >&6; }
9473  if test "$enable_authn_core" != "no"; then
9474    case "$enable_authn_core" in
9475    static*)
9476      MODLIST="$MODLIST authn_core"
9477      if test "authn_core" = "so"; then
9478          sharedobjs=yes
9479      fi
9480      shared="";;
9481    *)
9482      enable_authn_core=`echo $enable_authn_core|sed 's/shared,*//'`
9483      sharedobjs=yes
9484      shared=yes
9485      DSO_MODULES="$DSO_MODULES authn_core"
9486      if test "yes" = "yes" ; then
9487        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_core"
9488      fi
9489      ;;
9490    esac
9491
9492
9493  if test -z ""; then
9494    objects="mod_authn_core.lo"
9495  else
9496    objects=""
9497  fi
9498
9499  if test -z "$module_standalone"; then
9500    if test -z "$shared"; then
9501      # The filename of a convenience library must have a "lib" prefix:
9502      libname="libmod_authn_core.la"
9503      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9504      modpath_static="$modpath_static $libname"
9505      cat >>$modpath_current/modules.mk<<EOF
9506$libname: $objects
9507	\$(MOD_LINK) $objects \$(MOD_AUTHN_CORE_LDADD)
9508EOF
9509      if test ! -z "\$(MOD_AUTHN_CORE_LDADD)"; then
9510
9511  if test "x$AP_LIBS" = "x"; then
9512    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_CORE_LDADD)\""
9513    AP_LIBS="\$(MOD_AUTHN_CORE_LDADD)"
9514  else
9515    apr_addto_bugger="\$(MOD_AUTHN_CORE_LDADD)"
9516    for i in $apr_addto_bugger; do
9517      apr_addto_duplicate="0"
9518      for j in $AP_LIBS; do
9519        if test "x$i" = "x$j"; then
9520          apr_addto_duplicate="1"
9521          break
9522        fi
9523      done
9524      if test $apr_addto_duplicate = "0"; then
9525        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9526        AP_LIBS="$AP_LIBS $i"
9527      fi
9528    done
9529  fi
9530
9531      fi
9532    else
9533      apache_need_shared=yes
9534      libname="mod_authn_core.la"
9535      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9536      modpath_shared="$modpath_shared $libname"
9537      cat >>$modpath_current/modules.mk<<EOF
9538$libname: $shobjects
9539	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_CORE_LDADD)
9540EOF
9541    fi
9542  fi
9543
9544
9545  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_CORE_LDADD"
9546
9547
9548
9549  fi
9550
9551
9552
9553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_host" >&5
9554$as_echo_n "checking whether to enable mod_authz_host... " >&6; }
9555    # Check whether --enable-authz-host was given.
9556if test "${enable_authz_host+set}" = set; then :
9557  enableval=$enable_authz_host; force_authz_host=$enableval
9558else
9559  enable_authz_host=yes
9560fi
9561
9562    _apmod_extra_msg=""
9563        case "$enable_authz_host" in
9564    yes|static|shared)
9565      _apmod_required="yes"
9566      ;;
9567    *)
9568      case "$module_selection" in
9569      reallyall|all|most)
9570        _apmod_required="no"
9571        ;;
9572      *)
9573        _apmod_required="yes"
9574        ;;
9575      esac
9576  esac
9577  if test "$enable_authz_host" = "static"; then
9578    enable_authz_host=static
9579  elif test "$enable_authz_host" = "yes"; then
9580    enable_authz_host=$module_default
9581  elif test "$enable_authz_host" = "most"; then
9582    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9583            "$module_selection" = "reallyall"
9584    then
9585      enable_authz_host=$module_default
9586    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9587      enable_authz_host=no
9588    fi
9589    _apmod_extra_msg=" ($module_selection)"
9590  elif test "$enable_authz_host" = "maybe-all"; then
9591    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9592    then
9593      enable_authz_host=$module_default
9594      _apmod_extra_msg=" ($module_selection)"
9595    else
9596      enable_authz_host=no
9597    fi
9598  elif test "$enable_authz_host" = "no" -a "$module_selection" = "reallyall" -a \
9599            "$force_authz_host" != "no" ; then
9600      enable_authz_host=$module_default
9601      _apmod_extra_msg=" ($module_selection)"
9602  fi
9603  if test "$enable_authz_host" != "no"; then
9604            :
9605  fi
9606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_host$_apmod_extra_msg" >&5
9607$as_echo "$enable_authz_host$_apmod_extra_msg" >&6; }
9608  if test "$enable_authz_host" != "no"; then
9609    case "$enable_authz_host" in
9610    static*)
9611      MODLIST="$MODLIST authz_host"
9612      if test "authz_host" = "so"; then
9613          sharedobjs=yes
9614      fi
9615      shared="";;
9616    *)
9617      enable_authz_host=`echo $enable_authz_host|sed 's/shared,*//'`
9618      sharedobjs=yes
9619      shared=yes
9620      DSO_MODULES="$DSO_MODULES authz_host"
9621      if test "yes" = "yes" ; then
9622        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_host"
9623      fi
9624      ;;
9625    esac
9626
9627
9628  if test -z ""; then
9629    objects="mod_authz_host.lo"
9630  else
9631    objects=""
9632  fi
9633
9634  if test -z "$module_standalone"; then
9635    if test -z "$shared"; then
9636      # The filename of a convenience library must have a "lib" prefix:
9637      libname="libmod_authz_host.la"
9638      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9639      modpath_static="$modpath_static $libname"
9640      cat >>$modpath_current/modules.mk<<EOF
9641$libname: $objects
9642	\$(MOD_LINK) $objects \$(MOD_AUTHZ_HOST_LDADD)
9643EOF
9644      if test ! -z "\$(MOD_AUTHZ_HOST_LDADD)"; then
9645
9646  if test "x$AP_LIBS" = "x"; then
9647    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_HOST_LDADD)\""
9648    AP_LIBS="\$(MOD_AUTHZ_HOST_LDADD)"
9649  else
9650    apr_addto_bugger="\$(MOD_AUTHZ_HOST_LDADD)"
9651    for i in $apr_addto_bugger; do
9652      apr_addto_duplicate="0"
9653      for j in $AP_LIBS; do
9654        if test "x$i" = "x$j"; then
9655          apr_addto_duplicate="1"
9656          break
9657        fi
9658      done
9659      if test $apr_addto_duplicate = "0"; then
9660        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9661        AP_LIBS="$AP_LIBS $i"
9662      fi
9663    done
9664  fi
9665
9666      fi
9667    else
9668      apache_need_shared=yes
9669      libname="mod_authz_host.la"
9670      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9671      modpath_shared="$modpath_shared $libname"
9672      cat >>$modpath_current/modules.mk<<EOF
9673$libname: $shobjects
9674	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_HOST_LDADD)
9675EOF
9676    fi
9677  fi
9678
9679
9680  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_HOST_LDADD"
9681
9682
9683
9684  fi
9685
9686
9687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_groupfile" >&5
9688$as_echo_n "checking whether to enable mod_authz_groupfile... " >&6; }
9689    # Check whether --enable-authz-groupfile was given.
9690if test "${enable_authz_groupfile+set}" = set; then :
9691  enableval=$enable_authz_groupfile; force_authz_groupfile=$enableval
9692else
9693  enable_authz_groupfile=yes
9694fi
9695
9696    _apmod_extra_msg=""
9697        case "$enable_authz_groupfile" in
9698    yes|static|shared)
9699      _apmod_required="yes"
9700      ;;
9701    *)
9702      case "$module_selection" in
9703      reallyall|all|most)
9704        _apmod_required="no"
9705        ;;
9706      *)
9707        _apmod_required="yes"
9708        ;;
9709      esac
9710  esac
9711  if test "$enable_authz_groupfile" = "static"; then
9712    enable_authz_groupfile=static
9713  elif test "$enable_authz_groupfile" = "yes"; then
9714    enable_authz_groupfile=$module_default
9715  elif test "$enable_authz_groupfile" = "most"; then
9716    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9717            "$module_selection" = "reallyall"
9718    then
9719      enable_authz_groupfile=$module_default
9720    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9721      enable_authz_groupfile=no
9722    fi
9723    _apmod_extra_msg=" ($module_selection)"
9724  elif test "$enable_authz_groupfile" = "maybe-all"; then
9725    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9726    then
9727      enable_authz_groupfile=$module_default
9728      _apmod_extra_msg=" ($module_selection)"
9729    else
9730      enable_authz_groupfile=no
9731    fi
9732  elif test "$enable_authz_groupfile" = "no" -a "$module_selection" = "reallyall" -a \
9733            "$force_authz_groupfile" != "no" ; then
9734      enable_authz_groupfile=$module_default
9735      _apmod_extra_msg=" ($module_selection)"
9736  fi
9737  if test "$enable_authz_groupfile" != "no"; then
9738            :
9739  fi
9740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_groupfile$_apmod_extra_msg" >&5
9741$as_echo "$enable_authz_groupfile$_apmod_extra_msg" >&6; }
9742  if test "$enable_authz_groupfile" != "no"; then
9743    case "$enable_authz_groupfile" in
9744    static*)
9745      MODLIST="$MODLIST authz_groupfile"
9746      if test "authz_groupfile" = "so"; then
9747          sharedobjs=yes
9748      fi
9749      shared="";;
9750    *)
9751      enable_authz_groupfile=`echo $enable_authz_groupfile|sed 's/shared,*//'`
9752      sharedobjs=yes
9753      shared=yes
9754      DSO_MODULES="$DSO_MODULES authz_groupfile"
9755      if test "yes" = "yes" ; then
9756        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_groupfile"
9757      fi
9758      ;;
9759    esac
9760
9761
9762  if test -z ""; then
9763    objects="mod_authz_groupfile.lo"
9764  else
9765    objects=""
9766  fi
9767
9768  if test -z "$module_standalone"; then
9769    if test -z "$shared"; then
9770      # The filename of a convenience library must have a "lib" prefix:
9771      libname="libmod_authz_groupfile.la"
9772      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9773      modpath_static="$modpath_static $libname"
9774      cat >>$modpath_current/modules.mk<<EOF
9775$libname: $objects
9776	\$(MOD_LINK) $objects \$(MOD_AUTHZ_GROUPFILE_LDADD)
9777EOF
9778      if test ! -z "\$(MOD_AUTHZ_GROUPFILE_LDADD)"; then
9779
9780  if test "x$AP_LIBS" = "x"; then
9781    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_GROUPFILE_LDADD)\""
9782    AP_LIBS="\$(MOD_AUTHZ_GROUPFILE_LDADD)"
9783  else
9784    apr_addto_bugger="\$(MOD_AUTHZ_GROUPFILE_LDADD)"
9785    for i in $apr_addto_bugger; do
9786      apr_addto_duplicate="0"
9787      for j in $AP_LIBS; do
9788        if test "x$i" = "x$j"; then
9789          apr_addto_duplicate="1"
9790          break
9791        fi
9792      done
9793      if test $apr_addto_duplicate = "0"; then
9794        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9795        AP_LIBS="$AP_LIBS $i"
9796      fi
9797    done
9798  fi
9799
9800      fi
9801    else
9802      apache_need_shared=yes
9803      libname="mod_authz_groupfile.la"
9804      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9805      modpath_shared="$modpath_shared $libname"
9806      cat >>$modpath_current/modules.mk<<EOF
9807$libname: $shobjects
9808	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_GROUPFILE_LDADD)
9809EOF
9810    fi
9811  fi
9812
9813
9814  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_GROUPFILE_LDADD"
9815
9816
9817
9818  fi
9819
9820
9821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_user" >&5
9822$as_echo_n "checking whether to enable mod_authz_user... " >&6; }
9823    # Check whether --enable-authz-user was given.
9824if test "${enable_authz_user+set}" = set; then :
9825  enableval=$enable_authz_user; force_authz_user=$enableval
9826else
9827  enable_authz_user=yes
9828fi
9829
9830    _apmod_extra_msg=""
9831        case "$enable_authz_user" in
9832    yes|static|shared)
9833      _apmod_required="yes"
9834      ;;
9835    *)
9836      case "$module_selection" in
9837      reallyall|all|most)
9838        _apmod_required="no"
9839        ;;
9840      *)
9841        _apmod_required="yes"
9842        ;;
9843      esac
9844  esac
9845  if test "$enable_authz_user" = "static"; then
9846    enable_authz_user=static
9847  elif test "$enable_authz_user" = "yes"; then
9848    enable_authz_user=$module_default
9849  elif test "$enable_authz_user" = "most"; then
9850    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9851            "$module_selection" = "reallyall"
9852    then
9853      enable_authz_user=$module_default
9854    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9855      enable_authz_user=no
9856    fi
9857    _apmod_extra_msg=" ($module_selection)"
9858  elif test "$enable_authz_user" = "maybe-all"; then
9859    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9860    then
9861      enable_authz_user=$module_default
9862      _apmod_extra_msg=" ($module_selection)"
9863    else
9864      enable_authz_user=no
9865    fi
9866  elif test "$enable_authz_user" = "no" -a "$module_selection" = "reallyall" -a \
9867            "$force_authz_user" != "no" ; then
9868      enable_authz_user=$module_default
9869      _apmod_extra_msg=" ($module_selection)"
9870  fi
9871  if test "$enable_authz_user" != "no"; then
9872            :
9873  fi
9874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_user$_apmod_extra_msg" >&5
9875$as_echo "$enable_authz_user$_apmod_extra_msg" >&6; }
9876  if test "$enable_authz_user" != "no"; then
9877    case "$enable_authz_user" in
9878    static*)
9879      MODLIST="$MODLIST authz_user"
9880      if test "authz_user" = "so"; then
9881          sharedobjs=yes
9882      fi
9883      shared="";;
9884    *)
9885      enable_authz_user=`echo $enable_authz_user|sed 's/shared,*//'`
9886      sharedobjs=yes
9887      shared=yes
9888      DSO_MODULES="$DSO_MODULES authz_user"
9889      if test "yes" = "yes" ; then
9890        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_user"
9891      fi
9892      ;;
9893    esac
9894
9895
9896  if test -z ""; then
9897    objects="mod_authz_user.lo"
9898  else
9899    objects=""
9900  fi
9901
9902  if test -z "$module_standalone"; then
9903    if test -z "$shared"; then
9904      # The filename of a convenience library must have a "lib" prefix:
9905      libname="libmod_authz_user.la"
9906      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
9907      modpath_static="$modpath_static $libname"
9908      cat >>$modpath_current/modules.mk<<EOF
9909$libname: $objects
9910	\$(MOD_LINK) $objects \$(MOD_AUTHZ_USER_LDADD)
9911EOF
9912      if test ! -z "\$(MOD_AUTHZ_USER_LDADD)"; then
9913
9914  if test "x$AP_LIBS" = "x"; then
9915    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_USER_LDADD)\""
9916    AP_LIBS="\$(MOD_AUTHZ_USER_LDADD)"
9917  else
9918    apr_addto_bugger="\$(MOD_AUTHZ_USER_LDADD)"
9919    for i in $apr_addto_bugger; do
9920      apr_addto_duplicate="0"
9921      for j in $AP_LIBS; do
9922        if test "x$i" = "x$j"; then
9923          apr_addto_duplicate="1"
9924          break
9925        fi
9926      done
9927      if test $apr_addto_duplicate = "0"; then
9928        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
9929        AP_LIBS="$AP_LIBS $i"
9930      fi
9931    done
9932  fi
9933
9934      fi
9935    else
9936      apache_need_shared=yes
9937      libname="mod_authz_user.la"
9938      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
9939      modpath_shared="$modpath_shared $libname"
9940      cat >>$modpath_current/modules.mk<<EOF
9941$libname: $shobjects
9942	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_USER_LDADD)
9943EOF
9944    fi
9945  fi
9946
9947
9948  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_USER_LDADD"
9949
9950
9951
9952  fi
9953
9954
9955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_dbm" >&5
9956$as_echo_n "checking whether to enable mod_authz_dbm... " >&6; }
9957    # Check whether --enable-authz-dbm was given.
9958if test "${enable_authz_dbm+set}" = set; then :
9959  enableval=$enable_authz_dbm; force_authz_dbm=$enableval
9960else
9961  enable_authz_dbm=most
9962fi
9963
9964    _apmod_extra_msg=""
9965        case "$enable_authz_dbm" in
9966    yes|static|shared)
9967      _apmod_required="yes"
9968      ;;
9969    *)
9970      case "$module_selection" in
9971      reallyall|all|most)
9972        _apmod_required="no"
9973        ;;
9974      *)
9975        _apmod_required="yes"
9976        ;;
9977      esac
9978  esac
9979  if test "$enable_authz_dbm" = "static"; then
9980    enable_authz_dbm=static
9981  elif test "$enable_authz_dbm" = "yes"; then
9982    enable_authz_dbm=$module_default
9983  elif test "$enable_authz_dbm" = "most"; then
9984    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
9985            "$module_selection" = "reallyall"
9986    then
9987      enable_authz_dbm=$module_default
9988    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
9989      enable_authz_dbm=no
9990    fi
9991    _apmod_extra_msg=" ($module_selection)"
9992  elif test "$enable_authz_dbm" = "maybe-all"; then
9993    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
9994    then
9995      enable_authz_dbm=$module_default
9996      _apmod_extra_msg=" ($module_selection)"
9997    else
9998      enable_authz_dbm=no
9999    fi
10000  elif test "$enable_authz_dbm" = "no" -a "$module_selection" = "reallyall" -a \
10001            "$force_authz_dbm" != "no" ; then
10002      enable_authz_dbm=$module_default
10003      _apmod_extra_msg=" ($module_selection)"
10004  fi
10005  if test "$enable_authz_dbm" != "no"; then
10006            :
10007  fi
10008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_dbm$_apmod_extra_msg" >&5
10009$as_echo "$enable_authz_dbm$_apmod_extra_msg" >&6; }
10010  if test "$enable_authz_dbm" != "no"; then
10011    case "$enable_authz_dbm" in
10012    static*)
10013      MODLIST="$MODLIST authz_dbm"
10014      if test "authz_dbm" = "so"; then
10015          sharedobjs=yes
10016      fi
10017      shared="";;
10018    *)
10019      enable_authz_dbm=`echo $enable_authz_dbm|sed 's/shared,*//'`
10020      sharedobjs=yes
10021      shared=yes
10022      DSO_MODULES="$DSO_MODULES authz_dbm"
10023      if test "most" = "yes" ; then
10024        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_dbm"
10025      fi
10026      ;;
10027    esac
10028
10029
10030  if test -z ""; then
10031    objects="mod_authz_dbm.lo"
10032  else
10033    objects=""
10034  fi
10035
10036  if test -z "$module_standalone"; then
10037    if test -z "$shared"; then
10038      # The filename of a convenience library must have a "lib" prefix:
10039      libname="libmod_authz_dbm.la"
10040      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10041      modpath_static="$modpath_static $libname"
10042      cat >>$modpath_current/modules.mk<<EOF
10043$libname: $objects
10044	\$(MOD_LINK) $objects \$(MOD_AUTHZ_DBM_LDADD)
10045EOF
10046      if test ! -z "\$(MOD_AUTHZ_DBM_LDADD)"; then
10047
10048  if test "x$AP_LIBS" = "x"; then
10049    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_DBM_LDADD)\""
10050    AP_LIBS="\$(MOD_AUTHZ_DBM_LDADD)"
10051  else
10052    apr_addto_bugger="\$(MOD_AUTHZ_DBM_LDADD)"
10053    for i in $apr_addto_bugger; do
10054      apr_addto_duplicate="0"
10055      for j in $AP_LIBS; do
10056        if test "x$i" = "x$j"; then
10057          apr_addto_duplicate="1"
10058          break
10059        fi
10060      done
10061      if test $apr_addto_duplicate = "0"; then
10062        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10063        AP_LIBS="$AP_LIBS $i"
10064      fi
10065    done
10066  fi
10067
10068      fi
10069    else
10070      apache_need_shared=yes
10071      libname="mod_authz_dbm.la"
10072      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10073      modpath_shared="$modpath_shared $libname"
10074      cat >>$modpath_current/modules.mk<<EOF
10075$libname: $shobjects
10076	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_DBM_LDADD)
10077EOF
10078    fi
10079  fi
10080
10081
10082  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_DBM_LDADD"
10083
10084
10085
10086  fi
10087
10088
10089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_owner" >&5
10090$as_echo_n "checking whether to enable mod_authz_owner... " >&6; }
10091    # Check whether --enable-authz-owner was given.
10092if test "${enable_authz_owner+set}" = set; then :
10093  enableval=$enable_authz_owner; force_authz_owner=$enableval
10094else
10095  enable_authz_owner=most
10096fi
10097
10098    _apmod_extra_msg=""
10099        case "$enable_authz_owner" in
10100    yes|static|shared)
10101      _apmod_required="yes"
10102      ;;
10103    *)
10104      case "$module_selection" in
10105      reallyall|all|most)
10106        _apmod_required="no"
10107        ;;
10108      *)
10109        _apmod_required="yes"
10110        ;;
10111      esac
10112  esac
10113  if test "$enable_authz_owner" = "static"; then
10114    enable_authz_owner=static
10115  elif test "$enable_authz_owner" = "yes"; then
10116    enable_authz_owner=$module_default
10117  elif test "$enable_authz_owner" = "most"; then
10118    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10119            "$module_selection" = "reallyall"
10120    then
10121      enable_authz_owner=$module_default
10122    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10123      enable_authz_owner=no
10124    fi
10125    _apmod_extra_msg=" ($module_selection)"
10126  elif test "$enable_authz_owner" = "maybe-all"; then
10127    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10128    then
10129      enable_authz_owner=$module_default
10130      _apmod_extra_msg=" ($module_selection)"
10131    else
10132      enable_authz_owner=no
10133    fi
10134  elif test "$enable_authz_owner" = "no" -a "$module_selection" = "reallyall" -a \
10135            "$force_authz_owner" != "no" ; then
10136      enable_authz_owner=$module_default
10137      _apmod_extra_msg=" ($module_selection)"
10138  fi
10139  if test "$enable_authz_owner" != "no"; then
10140            :
10141  fi
10142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_owner$_apmod_extra_msg" >&5
10143$as_echo "$enable_authz_owner$_apmod_extra_msg" >&6; }
10144  if test "$enable_authz_owner" != "no"; then
10145    case "$enable_authz_owner" in
10146    static*)
10147      MODLIST="$MODLIST authz_owner"
10148      if test "authz_owner" = "so"; then
10149          sharedobjs=yes
10150      fi
10151      shared="";;
10152    *)
10153      enable_authz_owner=`echo $enable_authz_owner|sed 's/shared,*//'`
10154      sharedobjs=yes
10155      shared=yes
10156      DSO_MODULES="$DSO_MODULES authz_owner"
10157      if test "most" = "yes" ; then
10158        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_owner"
10159      fi
10160      ;;
10161    esac
10162
10163
10164  if test -z ""; then
10165    objects="mod_authz_owner.lo"
10166  else
10167    objects=""
10168  fi
10169
10170  if test -z "$module_standalone"; then
10171    if test -z "$shared"; then
10172      # The filename of a convenience library must have a "lib" prefix:
10173      libname="libmod_authz_owner.la"
10174      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10175      modpath_static="$modpath_static $libname"
10176      cat >>$modpath_current/modules.mk<<EOF
10177$libname: $objects
10178	\$(MOD_LINK) $objects \$(MOD_AUTHZ_OWNER_LDADD)
10179EOF
10180      if test ! -z "\$(MOD_AUTHZ_OWNER_LDADD)"; then
10181
10182  if test "x$AP_LIBS" = "x"; then
10183    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_OWNER_LDADD)\""
10184    AP_LIBS="\$(MOD_AUTHZ_OWNER_LDADD)"
10185  else
10186    apr_addto_bugger="\$(MOD_AUTHZ_OWNER_LDADD)"
10187    for i in $apr_addto_bugger; do
10188      apr_addto_duplicate="0"
10189      for j in $AP_LIBS; do
10190        if test "x$i" = "x$j"; then
10191          apr_addto_duplicate="1"
10192          break
10193        fi
10194      done
10195      if test $apr_addto_duplicate = "0"; then
10196        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10197        AP_LIBS="$AP_LIBS $i"
10198      fi
10199    done
10200  fi
10201
10202      fi
10203    else
10204      apache_need_shared=yes
10205      libname="mod_authz_owner.la"
10206      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10207      modpath_shared="$modpath_shared $libname"
10208      cat >>$modpath_current/modules.mk<<EOF
10209$libname: $shobjects
10210	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_OWNER_LDADD)
10211EOF
10212    fi
10213  fi
10214
10215
10216  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_OWNER_LDADD"
10217
10218
10219
10220  fi
10221
10222
10223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_dbd" >&5
10224$as_echo_n "checking whether to enable mod_authz_dbd... " >&6; }
10225    # Check whether --enable-authz-dbd was given.
10226if test "${enable_authz_dbd+set}" = set; then :
10227  enableval=$enable_authz_dbd; force_authz_dbd=$enableval
10228else
10229  enable_authz_dbd=most
10230fi
10231
10232    _apmod_extra_msg=""
10233        case "$enable_authz_dbd" in
10234    yes|static|shared)
10235      _apmod_required="yes"
10236      ;;
10237    *)
10238      case "$module_selection" in
10239      reallyall|all|most)
10240        _apmod_required="no"
10241        ;;
10242      *)
10243        _apmod_required="yes"
10244        ;;
10245      esac
10246  esac
10247  if test "$enable_authz_dbd" = "static"; then
10248    enable_authz_dbd=static
10249  elif test "$enable_authz_dbd" = "yes"; then
10250    enable_authz_dbd=$module_default
10251  elif test "$enable_authz_dbd" = "most"; then
10252    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10253            "$module_selection" = "reallyall"
10254    then
10255      enable_authz_dbd=$module_default
10256    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10257      enable_authz_dbd=no
10258    fi
10259    _apmod_extra_msg=" ($module_selection)"
10260  elif test "$enable_authz_dbd" = "maybe-all"; then
10261    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10262    then
10263      enable_authz_dbd=$module_default
10264      _apmod_extra_msg=" ($module_selection)"
10265    else
10266      enable_authz_dbd=no
10267    fi
10268  elif test "$enable_authz_dbd" = "no" -a "$module_selection" = "reallyall" -a \
10269            "$force_authz_dbd" != "no" ; then
10270      enable_authz_dbd=$module_default
10271      _apmod_extra_msg=" ($module_selection)"
10272  fi
10273  if test "$enable_authz_dbd" != "no"; then
10274            :
10275  fi
10276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_dbd$_apmod_extra_msg" >&5
10277$as_echo "$enable_authz_dbd$_apmod_extra_msg" >&6; }
10278  if test "$enable_authz_dbd" != "no"; then
10279    case "$enable_authz_dbd" in
10280    static*)
10281      MODLIST="$MODLIST authz_dbd"
10282      if test "authz_dbd" = "so"; then
10283          sharedobjs=yes
10284      fi
10285      shared="";;
10286    *)
10287      enable_authz_dbd=`echo $enable_authz_dbd|sed 's/shared,*//'`
10288      sharedobjs=yes
10289      shared=yes
10290      DSO_MODULES="$DSO_MODULES authz_dbd"
10291      if test "most" = "yes" ; then
10292        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_dbd"
10293      fi
10294      ;;
10295    esac
10296
10297
10298  if test -z ""; then
10299    objects="mod_authz_dbd.lo"
10300  else
10301    objects=""
10302  fi
10303
10304  if test -z "$module_standalone"; then
10305    if test -z "$shared"; then
10306      # The filename of a convenience library must have a "lib" prefix:
10307      libname="libmod_authz_dbd.la"
10308      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10309      modpath_static="$modpath_static $libname"
10310      cat >>$modpath_current/modules.mk<<EOF
10311$libname: $objects
10312	\$(MOD_LINK) $objects \$(MOD_AUTHZ_DBD_LDADD)
10313EOF
10314      if test ! -z "\$(MOD_AUTHZ_DBD_LDADD)"; then
10315
10316  if test "x$AP_LIBS" = "x"; then
10317    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_DBD_LDADD)\""
10318    AP_LIBS="\$(MOD_AUTHZ_DBD_LDADD)"
10319  else
10320    apr_addto_bugger="\$(MOD_AUTHZ_DBD_LDADD)"
10321    for i in $apr_addto_bugger; do
10322      apr_addto_duplicate="0"
10323      for j in $AP_LIBS; do
10324        if test "x$i" = "x$j"; then
10325          apr_addto_duplicate="1"
10326          break
10327        fi
10328      done
10329      if test $apr_addto_duplicate = "0"; then
10330        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10331        AP_LIBS="$AP_LIBS $i"
10332      fi
10333    done
10334  fi
10335
10336      fi
10337    else
10338      apache_need_shared=yes
10339      libname="mod_authz_dbd.la"
10340      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10341      modpath_shared="$modpath_shared $libname"
10342      cat >>$modpath_current/modules.mk<<EOF
10343$libname: $shobjects
10344	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_DBD_LDADD)
10345EOF
10346    fi
10347  fi
10348
10349
10350  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_DBD_LDADD"
10351
10352
10353
10354  fi
10355
10356
10357
10358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_core" >&5
10359$as_echo_n "checking whether to enable mod_authz_core... " >&6; }
10360    # Check whether --enable-authz-core was given.
10361if test "${enable_authz_core+set}" = set; then :
10362  enableval=$enable_authz_core; force_authz_core=$enableval
10363else
10364  enable_authz_core=yes
10365fi
10366
10367    _apmod_extra_msg=""
10368        case "$enable_authz_core" in
10369    yes|static|shared)
10370      _apmod_required="yes"
10371      ;;
10372    *)
10373      case "$module_selection" in
10374      reallyall|all|most)
10375        _apmod_required="no"
10376        ;;
10377      *)
10378        _apmod_required="yes"
10379        ;;
10380      esac
10381  esac
10382  if test "$enable_authz_core" = "static"; then
10383    enable_authz_core=static
10384  elif test "$enable_authz_core" = "yes"; then
10385    enable_authz_core=$module_default
10386  elif test "$enable_authz_core" = "most"; then
10387    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10388            "$module_selection" = "reallyall"
10389    then
10390      enable_authz_core=$module_default
10391    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10392      enable_authz_core=no
10393    fi
10394    _apmod_extra_msg=" ($module_selection)"
10395  elif test "$enable_authz_core" = "maybe-all"; then
10396    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10397    then
10398      enable_authz_core=$module_default
10399      _apmod_extra_msg=" ($module_selection)"
10400    else
10401      enable_authz_core=no
10402    fi
10403  elif test "$enable_authz_core" = "no" -a "$module_selection" = "reallyall" -a \
10404            "$force_authz_core" != "no" ; then
10405      enable_authz_core=$module_default
10406      _apmod_extra_msg=" ($module_selection)"
10407  fi
10408  if test "$enable_authz_core" != "no"; then
10409            :
10410  fi
10411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authz_core$_apmod_extra_msg" >&5
10412$as_echo "$enable_authz_core$_apmod_extra_msg" >&6; }
10413  if test "$enable_authz_core" != "no"; then
10414    case "$enable_authz_core" in
10415    static*)
10416      MODLIST="$MODLIST authz_core"
10417      if test "authz_core" = "so"; then
10418          sharedobjs=yes
10419      fi
10420      shared="";;
10421    *)
10422      enable_authz_core=`echo $enable_authz_core|sed 's/shared,*//'`
10423      sharedobjs=yes
10424      shared=yes
10425      DSO_MODULES="$DSO_MODULES authz_core"
10426      if test "yes" = "yes" ; then
10427        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_core"
10428      fi
10429      ;;
10430    esac
10431
10432
10433  if test -z ""; then
10434    objects="mod_authz_core.lo"
10435  else
10436    objects=""
10437  fi
10438
10439  if test -z "$module_standalone"; then
10440    if test -z "$shared"; then
10441      # The filename of a convenience library must have a "lib" prefix:
10442      libname="libmod_authz_core.la"
10443      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10444      modpath_static="$modpath_static $libname"
10445      cat >>$modpath_current/modules.mk<<EOF
10446$libname: $objects
10447	\$(MOD_LINK) $objects \$(MOD_AUTHZ_CORE_LDADD)
10448EOF
10449      if test ! -z "\$(MOD_AUTHZ_CORE_LDADD)"; then
10450
10451  if test "x$AP_LIBS" = "x"; then
10452    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_CORE_LDADD)\""
10453    AP_LIBS="\$(MOD_AUTHZ_CORE_LDADD)"
10454  else
10455    apr_addto_bugger="\$(MOD_AUTHZ_CORE_LDADD)"
10456    for i in $apr_addto_bugger; do
10457      apr_addto_duplicate="0"
10458      for j in $AP_LIBS; do
10459        if test "x$i" = "x$j"; then
10460          apr_addto_duplicate="1"
10461          break
10462        fi
10463      done
10464      if test $apr_addto_duplicate = "0"; then
10465        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10466        AP_LIBS="$AP_LIBS $i"
10467      fi
10468    done
10469  fi
10470
10471      fi
10472    else
10473      apache_need_shared=yes
10474      libname="mod_authz_core.la"
10475      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10476      modpath_shared="$modpath_shared $libname"
10477      cat >>$modpath_current/modules.mk<<EOF
10478$libname: $shobjects
10479	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_CORE_LDADD)
10480EOF
10481    fi
10482  fi
10483
10484
10485  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_CORE_LDADD"
10486
10487
10488
10489  fi
10490
10491
10492
10493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authnz_ldap" >&5
10494$as_echo_n "checking whether to enable mod_authnz_ldap... " >&6; }
10495    # Check whether --enable-authnz-ldap was given.
10496if test "${enable_authnz_ldap+set}" = set; then :
10497  enableval=$enable_authnz_ldap; force_authnz_ldap=$enableval
10498else
10499  enable_authnz_ldap=most
10500fi
10501
10502    _apmod_extra_msg=""
10503        case "$enable_authnz_ldap" in
10504    yes|static|shared)
10505      _apmod_required="yes"
10506      ;;
10507    *)
10508      case "$module_selection" in
10509      reallyall|all|most)
10510        _apmod_required="no"
10511        ;;
10512      *)
10513        _apmod_required="yes"
10514        ;;
10515      esac
10516  esac
10517  if test "$enable_authnz_ldap" = "static"; then
10518    enable_authnz_ldap=static
10519  elif test "$enable_authnz_ldap" = "yes"; then
10520    enable_authnz_ldap=$module_default
10521  elif test "$enable_authnz_ldap" = "most"; then
10522    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10523            "$module_selection" = "reallyall"
10524    then
10525      enable_authnz_ldap=$module_default
10526    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10527      enable_authnz_ldap=no
10528    fi
10529    _apmod_extra_msg=" ($module_selection)"
10530  elif test "$enable_authnz_ldap" = "maybe-all"; then
10531    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10532    then
10533      enable_authnz_ldap=$module_default
10534      _apmod_extra_msg=" ($module_selection)"
10535    else
10536      enable_authnz_ldap=no
10537    fi
10538  elif test "$enable_authnz_ldap" = "no" -a "$module_selection" = "reallyall" -a \
10539            "$force_authnz_ldap" != "no" ; then
10540      enable_authnz_ldap=$module_default
10541      _apmod_extra_msg=" ($module_selection)"
10542  fi
10543  if test "$enable_authnz_ldap" != "no"; then
10544            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
10545$as_echo "checking dependencies" >&6; }
10546            :
10547
10548
10549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap support in apr/apr-util" >&5
10550$as_echo_n "checking for ldap support in apr/apr-util... " >&6; }
10551if ${ac_cv_APR_HAS_LDAP+:} false; then :
10552  $as_echo_n "(cached) " >&6
10553else
10554
10555    apache_old_cppflags="$CPPFLAGS"
10556    CPPFLAGS="$CPPFLAGS $INCLUDES"
10557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558/* end confdefs.h.  */
10559
10560#include <apr_ldap.h>
10561#if APR_HAS_LDAP
10562YES_IS_DEFINED
10563#endif
10564
10565_ACEOF
10566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10567  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
10568  ac_cv_APR_HAS_LDAP=yes
10569else
10570  ac_cv_APR_HAS_LDAP=no
10571fi
10572rm -f conftest*
10573
10574    CPPFLAGS="$apache_old_cppflags"
10575
10576fi
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_APR_HAS_LDAP" >&5
10578$as_echo "$ac_cv_APR_HAS_LDAP" >&6; }
10579
10580  if test "$ac_cv_APR_HAS_LDAP" = "yes" ; then
10581    if test -z "$apu_config" ; then
10582      LDAP_LIBS="`$apr_config --ldap-libs`"
10583    else
10584      LDAP_LIBS="`$apu_config --ldap-libs`"
10585    fi
10586
10587  if test "x$MOD_AUTHNZ_LDAP_LDADD" = "x"; then
10588    test "x$silent" != "xyes" && echo "  setting MOD_AUTHNZ_LDAP_LDADD to \"$LDAP_LIBS\""
10589    MOD_AUTHNZ_LDAP_LDADD="$LDAP_LIBS"
10590  else
10591    apr_addto_bugger="$LDAP_LIBS"
10592    for i in $apr_addto_bugger; do
10593      apr_addto_duplicate="0"
10594      for j in $MOD_AUTHNZ_LDAP_LDADD; do
10595        if test "x$i" = "x$j"; then
10596          apr_addto_duplicate="1"
10597          break
10598        fi
10599      done
10600      if test $apr_addto_duplicate = "0"; then
10601        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_AUTHNZ_LDAP_LDADD"
10602        MOD_AUTHNZ_LDAP_LDADD="$MOD_AUTHNZ_LDAP_LDADD $i"
10603      fi
10604    done
10605  fi
10606
10607
10608  else
10609    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: apr/apr-util is compiled without ldap support" >&5
10610$as_echo "$as_me: WARNING: apr/apr-util is compiled without ldap support" >&2;}
10611    enable_authnz_ldap=no
10612  fi
10613
10614            :
10615            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authnz_ldap" >&5
10616$as_echo_n "checking whether to enable mod_authnz_ldap... " >&6; }
10617            if test "$enable_authnz_ldap" = "no"; then
10618              if test "$_apmod_required" = "no"; then
10619                _apmod_extra_msg=" (disabled)"
10620              else
10621                as_fn_error $? "mod_authnz_ldap has been requested but can not be built due to prerequisite failures" "$LINENO" 5
10622              fi
10623            fi
10624  fi
10625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_authnz_ldap$_apmod_extra_msg" >&5
10626$as_echo "$enable_authnz_ldap$_apmod_extra_msg" >&6; }
10627  if test "$enable_authnz_ldap" != "no"; then
10628    case "$enable_authnz_ldap" in
10629    static*)
10630      MODLIST="$MODLIST authnz_ldap"
10631      if test "authnz_ldap" = "so"; then
10632          sharedobjs=yes
10633      fi
10634      shared="";;
10635    *)
10636      enable_authnz_ldap=`echo $enable_authnz_ldap|sed 's/shared,*//'`
10637      sharedobjs=yes
10638      shared=yes
10639      DSO_MODULES="$DSO_MODULES authnz_ldap"
10640      if test "most" = "yes" ; then
10641        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authnz_ldap"
10642      fi
10643      ;;
10644    esac
10645
10646
10647  if test -z ""; then
10648    objects="mod_authnz_ldap.lo"
10649  else
10650    objects=""
10651  fi
10652
10653  if test -z "$module_standalone"; then
10654    if test -z "$shared"; then
10655      # The filename of a convenience library must have a "lib" prefix:
10656      libname="libmod_authnz_ldap.la"
10657      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10658      modpath_static="$modpath_static $libname"
10659      cat >>$modpath_current/modules.mk<<EOF
10660$libname: $objects
10661	\$(MOD_LINK) $objects \$(MOD_AUTHNZ_LDAP_LDADD)
10662EOF
10663      if test ! -z "\$(MOD_AUTHNZ_LDAP_LDADD)"; then
10664
10665  if test "x$AP_LIBS" = "x"; then
10666    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHNZ_LDAP_LDADD)\""
10667    AP_LIBS="\$(MOD_AUTHNZ_LDAP_LDADD)"
10668  else
10669    apr_addto_bugger="\$(MOD_AUTHNZ_LDAP_LDADD)"
10670    for i in $apr_addto_bugger; do
10671      apr_addto_duplicate="0"
10672      for j in $AP_LIBS; do
10673        if test "x$i" = "x$j"; then
10674          apr_addto_duplicate="1"
10675          break
10676        fi
10677      done
10678      if test $apr_addto_duplicate = "0"; then
10679        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10680        AP_LIBS="$AP_LIBS $i"
10681      fi
10682    done
10683  fi
10684
10685      fi
10686    else
10687      apache_need_shared=yes
10688      libname="mod_authnz_ldap.la"
10689      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10690      modpath_shared="$modpath_shared $libname"
10691      cat >>$modpath_current/modules.mk<<EOF
10692$libname: $shobjects
10693	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHNZ_LDAP_LDADD)
10694EOF
10695    fi
10696  fi
10697
10698
10699  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHNZ_LDAP_LDADD"
10700
10701
10702
10703  fi
10704
10705
10706
10707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_access_compat" >&5
10708$as_echo_n "checking whether to enable mod_access_compat... " >&6; }
10709    # Check whether --enable-access-compat was given.
10710if test "${enable_access_compat+set}" = set; then :
10711  enableval=$enable_access_compat; force_access_compat=$enableval
10712else
10713  enable_access_compat=yes
10714fi
10715
10716    _apmod_extra_msg=""
10717        case "$enable_access_compat" in
10718    yes|static|shared)
10719      _apmod_required="yes"
10720      ;;
10721    *)
10722      case "$module_selection" in
10723      reallyall|all|most)
10724        _apmod_required="no"
10725        ;;
10726      *)
10727        _apmod_required="yes"
10728        ;;
10729      esac
10730  esac
10731  if test "$enable_access_compat" = "static"; then
10732    enable_access_compat=static
10733  elif test "$enable_access_compat" = "yes"; then
10734    enable_access_compat=$module_default
10735  elif test "$enable_access_compat" = "most"; then
10736    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10737            "$module_selection" = "reallyall"
10738    then
10739      enable_access_compat=$module_default
10740    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10741      enable_access_compat=no
10742    fi
10743    _apmod_extra_msg=" ($module_selection)"
10744  elif test "$enable_access_compat" = "maybe-all"; then
10745    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10746    then
10747      enable_access_compat=$module_default
10748      _apmod_extra_msg=" ($module_selection)"
10749    else
10750      enable_access_compat=no
10751    fi
10752  elif test "$enable_access_compat" = "no" -a "$module_selection" = "reallyall" -a \
10753            "$force_access_compat" != "no" ; then
10754      enable_access_compat=$module_default
10755      _apmod_extra_msg=" ($module_selection)"
10756  fi
10757  if test "$enable_access_compat" != "no"; then
10758            :
10759  fi
10760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_access_compat$_apmod_extra_msg" >&5
10761$as_echo "$enable_access_compat$_apmod_extra_msg" >&6; }
10762  if test "$enable_access_compat" != "no"; then
10763    case "$enable_access_compat" in
10764    static*)
10765      MODLIST="$MODLIST access_compat"
10766      if test "access_compat" = "so"; then
10767          sharedobjs=yes
10768      fi
10769      shared="";;
10770    *)
10771      enable_access_compat=`echo $enable_access_compat|sed 's/shared,*//'`
10772      sharedobjs=yes
10773      shared=yes
10774      DSO_MODULES="$DSO_MODULES access_compat"
10775      if test "yes" = "yes" ; then
10776        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},access_compat"
10777      fi
10778      ;;
10779    esac
10780
10781
10782  if test -z ""; then
10783    objects="mod_access_compat.lo"
10784  else
10785    objects=""
10786  fi
10787
10788  if test -z "$module_standalone"; then
10789    if test -z "$shared"; then
10790      # The filename of a convenience library must have a "lib" prefix:
10791      libname="libmod_access_compat.la"
10792      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10793      modpath_static="$modpath_static $libname"
10794      cat >>$modpath_current/modules.mk<<EOF
10795$libname: $objects
10796	\$(MOD_LINK) $objects \$(MOD_ACCESS_COMPAT_LDADD)
10797EOF
10798      if test ! -z "\$(MOD_ACCESS_COMPAT_LDADD)"; then
10799
10800  if test "x$AP_LIBS" = "x"; then
10801    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ACCESS_COMPAT_LDADD)\""
10802    AP_LIBS="\$(MOD_ACCESS_COMPAT_LDADD)"
10803  else
10804    apr_addto_bugger="\$(MOD_ACCESS_COMPAT_LDADD)"
10805    for i in $apr_addto_bugger; do
10806      apr_addto_duplicate="0"
10807      for j in $AP_LIBS; do
10808        if test "x$i" = "x$j"; then
10809          apr_addto_duplicate="1"
10810          break
10811        fi
10812      done
10813      if test $apr_addto_duplicate = "0"; then
10814        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10815        AP_LIBS="$AP_LIBS $i"
10816      fi
10817    done
10818  fi
10819
10820      fi
10821    else
10822      apache_need_shared=yes
10823      libname="mod_access_compat.la"
10824      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10825      modpath_shared="$modpath_shared $libname"
10826      cat >>$modpath_current/modules.mk<<EOF
10827$libname: $shobjects
10828	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ACCESS_COMPAT_LDADD)
10829EOF
10830    fi
10831  fi
10832
10833
10834  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACCESS_COMPAT_LDADD"
10835
10836
10837
10838  fi
10839
10840
10841
10842
10843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_basic" >&5
10844$as_echo_n "checking whether to enable mod_auth_basic... " >&6; }
10845    # Check whether --enable-auth-basic was given.
10846if test "${enable_auth_basic+set}" = set; then :
10847  enableval=$enable_auth_basic; force_auth_basic=$enableval
10848else
10849  enable_auth_basic=yes
10850fi
10851
10852    _apmod_extra_msg=""
10853        case "$enable_auth_basic" in
10854    yes|static|shared)
10855      _apmod_required="yes"
10856      ;;
10857    *)
10858      case "$module_selection" in
10859      reallyall|all|most)
10860        _apmod_required="no"
10861        ;;
10862      *)
10863        _apmod_required="yes"
10864        ;;
10865      esac
10866  esac
10867  if test "$enable_auth_basic" = "static"; then
10868    enable_auth_basic=static
10869  elif test "$enable_auth_basic" = "yes"; then
10870    enable_auth_basic=$module_default
10871  elif test "$enable_auth_basic" = "most"; then
10872    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
10873            "$module_selection" = "reallyall"
10874    then
10875      enable_auth_basic=$module_default
10876    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
10877      enable_auth_basic=no
10878    fi
10879    _apmod_extra_msg=" ($module_selection)"
10880  elif test "$enable_auth_basic" = "maybe-all"; then
10881    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
10882    then
10883      enable_auth_basic=$module_default
10884      _apmod_extra_msg=" ($module_selection)"
10885    else
10886      enable_auth_basic=no
10887    fi
10888  elif test "$enable_auth_basic" = "no" -a "$module_selection" = "reallyall" -a \
10889            "$force_auth_basic" != "no" ; then
10890      enable_auth_basic=$module_default
10891      _apmod_extra_msg=" ($module_selection)"
10892  fi
10893  if test "$enable_auth_basic" != "no"; then
10894            :
10895  fi
10896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_auth_basic$_apmod_extra_msg" >&5
10897$as_echo "$enable_auth_basic$_apmod_extra_msg" >&6; }
10898  if test "$enable_auth_basic" != "no"; then
10899    case "$enable_auth_basic" in
10900    static*)
10901      MODLIST="$MODLIST auth_basic"
10902      if test "auth_basic" = "so"; then
10903          sharedobjs=yes
10904      fi
10905      shared="";;
10906    *)
10907      enable_auth_basic=`echo $enable_auth_basic|sed 's/shared,*//'`
10908      sharedobjs=yes
10909      shared=yes
10910      DSO_MODULES="$DSO_MODULES auth_basic"
10911      if test "yes" = "yes" ; then
10912        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},auth_basic"
10913      fi
10914      ;;
10915    esac
10916
10917
10918  if test -z ""; then
10919    objects="mod_auth_basic.lo"
10920  else
10921    objects=""
10922  fi
10923
10924  if test -z "$module_standalone"; then
10925    if test -z "$shared"; then
10926      # The filename of a convenience library must have a "lib" prefix:
10927      libname="libmod_auth_basic.la"
10928      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
10929      modpath_static="$modpath_static $libname"
10930      cat >>$modpath_current/modules.mk<<EOF
10931$libname: $objects
10932	\$(MOD_LINK) $objects \$(MOD_AUTH_BASIC_LDADD)
10933EOF
10934      if test ! -z "\$(MOD_AUTH_BASIC_LDADD)"; then
10935
10936  if test "x$AP_LIBS" = "x"; then
10937    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTH_BASIC_LDADD)\""
10938    AP_LIBS="\$(MOD_AUTH_BASIC_LDADD)"
10939  else
10940    apr_addto_bugger="\$(MOD_AUTH_BASIC_LDADD)"
10941    for i in $apr_addto_bugger; do
10942      apr_addto_duplicate="0"
10943      for j in $AP_LIBS; do
10944        if test "x$i" = "x$j"; then
10945          apr_addto_duplicate="1"
10946          break
10947        fi
10948      done
10949      if test $apr_addto_duplicate = "0"; then
10950        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
10951        AP_LIBS="$AP_LIBS $i"
10952      fi
10953    done
10954  fi
10955
10956      fi
10957    else
10958      apache_need_shared=yes
10959      libname="mod_auth_basic.la"
10960      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
10961      modpath_shared="$modpath_shared $libname"
10962      cat >>$modpath_current/modules.mk<<EOF
10963$libname: $shobjects
10964	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_BASIC_LDADD)
10965EOF
10966    fi
10967  fi
10968
10969
10970  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_BASIC_LDADD"
10971
10972
10973
10974  fi
10975
10976
10977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_form" >&5
10978$as_echo_n "checking whether to enable mod_auth_form... " >&6; }
10979    # Check whether --enable-auth-form was given.
10980if test "${enable_auth_form+set}" = set; then :
10981  enableval=$enable_auth_form; force_auth_form=$enableval
10982else
10983  enable_auth_form=most
10984fi
10985
10986    _apmod_extra_msg=""
10987        case "$enable_auth_form" in
10988    yes|static|shared)
10989      _apmod_required="yes"
10990      ;;
10991    *)
10992      case "$module_selection" in
10993      reallyall|all|most)
10994        _apmod_required="no"
10995        ;;
10996      *)
10997        _apmod_required="yes"
10998        ;;
10999      esac
11000  esac
11001  if test "$enable_auth_form" = "static"; then
11002    enable_auth_form=static
11003  elif test "$enable_auth_form" = "yes"; then
11004    enable_auth_form=$module_default
11005  elif test "$enable_auth_form" = "most"; then
11006    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11007            "$module_selection" = "reallyall"
11008    then
11009      enable_auth_form=$module_default
11010    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11011      enable_auth_form=no
11012    fi
11013    _apmod_extra_msg=" ($module_selection)"
11014  elif test "$enable_auth_form" = "maybe-all"; then
11015    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11016    then
11017      enable_auth_form=$module_default
11018      _apmod_extra_msg=" ($module_selection)"
11019    else
11020      enable_auth_form=no
11021    fi
11022  elif test "$enable_auth_form" = "no" -a "$module_selection" = "reallyall" -a \
11023            "$force_auth_form" != "no" ; then
11024      enable_auth_form=$module_default
11025      _apmod_extra_msg=" ($module_selection)"
11026  fi
11027  if test "$enable_auth_form" != "no"; then
11028            :
11029  fi
11030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_auth_form$_apmod_extra_msg" >&5
11031$as_echo "$enable_auth_form$_apmod_extra_msg" >&6; }
11032  if test "$enable_auth_form" != "no"; then
11033    case "$enable_auth_form" in
11034    static*)
11035      MODLIST="$MODLIST auth_form"
11036      if test "auth_form" = "so"; then
11037          sharedobjs=yes
11038      fi
11039      shared="";;
11040    *)
11041      enable_auth_form=`echo $enable_auth_form|sed 's/shared,*//'`
11042      sharedobjs=yes
11043      shared=yes
11044      DSO_MODULES="$DSO_MODULES auth_form"
11045      if test "most" = "yes" ; then
11046        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},auth_form"
11047      fi
11048      ;;
11049    esac
11050
11051
11052  if test -z ""; then
11053    objects="mod_auth_form.lo"
11054  else
11055    objects=""
11056  fi
11057
11058  if test -z "$module_standalone"; then
11059    if test -z "$shared"; then
11060      # The filename of a convenience library must have a "lib" prefix:
11061      libname="libmod_auth_form.la"
11062      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11063      modpath_static="$modpath_static $libname"
11064      cat >>$modpath_current/modules.mk<<EOF
11065$libname: $objects
11066	\$(MOD_LINK) $objects \$(MOD_AUTH_FORM_LDADD)
11067EOF
11068      if test ! -z "\$(MOD_AUTH_FORM_LDADD)"; then
11069
11070  if test "x$AP_LIBS" = "x"; then
11071    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTH_FORM_LDADD)\""
11072    AP_LIBS="\$(MOD_AUTH_FORM_LDADD)"
11073  else
11074    apr_addto_bugger="\$(MOD_AUTH_FORM_LDADD)"
11075    for i in $apr_addto_bugger; do
11076      apr_addto_duplicate="0"
11077      for j in $AP_LIBS; do
11078        if test "x$i" = "x$j"; then
11079          apr_addto_duplicate="1"
11080          break
11081        fi
11082      done
11083      if test $apr_addto_duplicate = "0"; then
11084        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11085        AP_LIBS="$AP_LIBS $i"
11086      fi
11087    done
11088  fi
11089
11090      fi
11091    else
11092      apache_need_shared=yes
11093      libname="mod_auth_form.la"
11094      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11095      modpath_shared="$modpath_shared $libname"
11096      cat >>$modpath_current/modules.mk<<EOF
11097$libname: $shobjects
11098	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_FORM_LDADD)
11099EOF
11100    fi
11101  fi
11102
11103
11104  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_FORM_LDADD"
11105
11106
11107
11108  fi
11109
11110
11111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_digest" >&5
11112$as_echo_n "checking whether to enable mod_auth_digest... " >&6; }
11113    # Check whether --enable-auth-digest was given.
11114if test "${enable_auth_digest+set}" = set; then :
11115  enableval=$enable_auth_digest; force_auth_digest=$enableval
11116else
11117  enable_auth_digest=most
11118fi
11119
11120    _apmod_extra_msg=""
11121        case "$enable_auth_digest" in
11122    yes|static|shared)
11123      _apmod_required="yes"
11124      ;;
11125    *)
11126      case "$module_selection" in
11127      reallyall|all|most)
11128        _apmod_required="no"
11129        ;;
11130      *)
11131        _apmod_required="yes"
11132        ;;
11133      esac
11134  esac
11135  if test "$enable_auth_digest" = "static"; then
11136    enable_auth_digest=static
11137  elif test "$enable_auth_digest" = "yes"; then
11138    enable_auth_digest=$module_default
11139  elif test "$enable_auth_digest" = "most"; then
11140    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11141            "$module_selection" = "reallyall"
11142    then
11143      enable_auth_digest=$module_default
11144    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11145      enable_auth_digest=no
11146    fi
11147    _apmod_extra_msg=" ($module_selection)"
11148  elif test "$enable_auth_digest" = "maybe-all"; then
11149    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11150    then
11151      enable_auth_digest=$module_default
11152      _apmod_extra_msg=" ($module_selection)"
11153    else
11154      enable_auth_digest=no
11155    fi
11156  elif test "$enable_auth_digest" = "no" -a "$module_selection" = "reallyall" -a \
11157            "$force_auth_digest" != "no" ; then
11158      enable_auth_digest=$module_default
11159      _apmod_extra_msg=" ($module_selection)"
11160  fi
11161  if test "$enable_auth_digest" != "no"; then
11162            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
11163$as_echo "checking dependencies" >&6; }
11164            :
11165
11166
11167apr_old_cppflags=$CPPFLAGS
11168CPPFLAGS="$CPPFLAGS $INCLUDES"
11169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170/* end confdefs.h.  */
11171
11172#include <apr.h>
11173#if APR_HAS_RANDOM
11174YES_IS_DEFINED
11175#endif
11176
11177_ACEOF
11178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11179  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
11180  ac_cv_define_APR_HAS_RANDOM=yes
11181else
11182  ac_cv_define_APR_HAS_RANDOM=no
11183fi
11184rm -f conftest*
11185
11186CPPFLAGS=$apr_old_cppflags
11187
11188  if test $ac_cv_define_APR_HAS_RANDOM = "no"; then
11189    echo "You need APR random support to use mod_auth_digest."
11190    echo "Look at APR configure options --with-egd and --with-devrandom."
11191    enable_auth_digest="no"
11192  fi
11193
11194            :
11195            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_digest" >&5
11196$as_echo_n "checking whether to enable mod_auth_digest... " >&6; }
11197            if test "$enable_auth_digest" = "no"; then
11198              if test "$_apmod_required" = "no"; then
11199                _apmod_extra_msg=" (disabled)"
11200              else
11201                as_fn_error $? "mod_auth_digest has been requested but can not be built due to prerequisite failures" "$LINENO" 5
11202              fi
11203            fi
11204  fi
11205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_auth_digest$_apmod_extra_msg" >&5
11206$as_echo "$enable_auth_digest$_apmod_extra_msg" >&6; }
11207  if test "$enable_auth_digest" != "no"; then
11208    case "$enable_auth_digest" in
11209    static*)
11210      MODLIST="$MODLIST auth_digest"
11211      if test "auth_digest" = "so"; then
11212          sharedobjs=yes
11213      fi
11214      shared="";;
11215    *)
11216      enable_auth_digest=`echo $enable_auth_digest|sed 's/shared,*//'`
11217      sharedobjs=yes
11218      shared=yes
11219      DSO_MODULES="$DSO_MODULES auth_digest"
11220      if test "most" = "yes" ; then
11221        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},auth_digest"
11222      fi
11223      ;;
11224    esac
11225
11226
11227  if test -z ""; then
11228    objects="mod_auth_digest.lo"
11229  else
11230    objects=""
11231  fi
11232
11233  if test -z "$module_standalone"; then
11234    if test -z "$shared"; then
11235      # The filename of a convenience library must have a "lib" prefix:
11236      libname="libmod_auth_digest.la"
11237      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11238      modpath_static="$modpath_static $libname"
11239      cat >>$modpath_current/modules.mk<<EOF
11240$libname: $objects
11241	\$(MOD_LINK) $objects \$(MOD_AUTH_DIGEST_LDADD)
11242EOF
11243      if test ! -z "\$(MOD_AUTH_DIGEST_LDADD)"; then
11244
11245  if test "x$AP_LIBS" = "x"; then
11246    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTH_DIGEST_LDADD)\""
11247    AP_LIBS="\$(MOD_AUTH_DIGEST_LDADD)"
11248  else
11249    apr_addto_bugger="\$(MOD_AUTH_DIGEST_LDADD)"
11250    for i in $apr_addto_bugger; do
11251      apr_addto_duplicate="0"
11252      for j in $AP_LIBS; do
11253        if test "x$i" = "x$j"; then
11254          apr_addto_duplicate="1"
11255          break
11256        fi
11257      done
11258      if test $apr_addto_duplicate = "0"; then
11259        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11260        AP_LIBS="$AP_LIBS $i"
11261      fi
11262    done
11263  fi
11264
11265      fi
11266    else
11267      apache_need_shared=yes
11268      libname="mod_auth_digest.la"
11269      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11270      modpath_shared="$modpath_shared $libname"
11271      cat >>$modpath_current/modules.mk<<EOF
11272$libname: $shobjects
11273	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_DIGEST_LDADD)
11274EOF
11275    fi
11276  fi
11277
11278
11279  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_DIGEST_LDADD"
11280
11281
11282
11283  fi
11284
11285
11286
11287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_allowmethods" >&5
11288$as_echo_n "checking whether to enable mod_allowmethods... " >&6; }
11289    # Check whether --enable-allowmethods was given.
11290if test "${enable_allowmethods+set}" = set; then :
11291  enableval=$enable_allowmethods; force_allowmethods=$enableval
11292else
11293  enable_allowmethods=most
11294fi
11295
11296    _apmod_extra_msg=""
11297        case "$enable_allowmethods" in
11298    yes|static|shared)
11299      _apmod_required="yes"
11300      ;;
11301    *)
11302      case "$module_selection" in
11303      reallyall|all|most)
11304        _apmod_required="no"
11305        ;;
11306      *)
11307        _apmod_required="yes"
11308        ;;
11309      esac
11310  esac
11311  if test "$enable_allowmethods" = "static"; then
11312    enable_allowmethods=static
11313  elif test "$enable_allowmethods" = "yes"; then
11314    enable_allowmethods=$module_default
11315  elif test "$enable_allowmethods" = "most"; then
11316    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11317            "$module_selection" = "reallyall"
11318    then
11319      enable_allowmethods=$module_default
11320    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11321      enable_allowmethods=no
11322    fi
11323    _apmod_extra_msg=" ($module_selection)"
11324  elif test "$enable_allowmethods" = "maybe-all"; then
11325    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11326    then
11327      enable_allowmethods=$module_default
11328      _apmod_extra_msg=" ($module_selection)"
11329    else
11330      enable_allowmethods=no
11331    fi
11332  elif test "$enable_allowmethods" = "no" -a "$module_selection" = "reallyall" -a \
11333            "$force_allowmethods" != "no" ; then
11334      enable_allowmethods=$module_default
11335      _apmod_extra_msg=" ($module_selection)"
11336  fi
11337  if test "$enable_allowmethods" != "no"; then
11338            :
11339  fi
11340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_allowmethods$_apmod_extra_msg" >&5
11341$as_echo "$enable_allowmethods$_apmod_extra_msg" >&6; }
11342  if test "$enable_allowmethods" != "no"; then
11343    case "$enable_allowmethods" in
11344    static*)
11345      MODLIST="$MODLIST allowmethods"
11346      if test "allowmethods" = "so"; then
11347          sharedobjs=yes
11348      fi
11349      shared="";;
11350    *)
11351      enable_allowmethods=`echo $enable_allowmethods|sed 's/shared,*//'`
11352      sharedobjs=yes
11353      shared=yes
11354      DSO_MODULES="$DSO_MODULES allowmethods"
11355      if test "most" = "yes" ; then
11356        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},allowmethods"
11357      fi
11358      ;;
11359    esac
11360
11361
11362  if test -z ""; then
11363    objects="mod_allowmethods.lo"
11364  else
11365    objects=""
11366  fi
11367
11368  if test -z "$module_standalone"; then
11369    if test -z "$shared"; then
11370      # The filename of a convenience library must have a "lib" prefix:
11371      libname="libmod_allowmethods.la"
11372      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11373      modpath_static="$modpath_static $libname"
11374      cat >>$modpath_current/modules.mk<<EOF
11375$libname: $objects
11376	\$(MOD_LINK) $objects \$(MOD_ALLOWMETHODS_LDADD)
11377EOF
11378      if test ! -z "\$(MOD_ALLOWMETHODS_LDADD)"; then
11379
11380  if test "x$AP_LIBS" = "x"; then
11381    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ALLOWMETHODS_LDADD)\""
11382    AP_LIBS="\$(MOD_ALLOWMETHODS_LDADD)"
11383  else
11384    apr_addto_bugger="\$(MOD_ALLOWMETHODS_LDADD)"
11385    for i in $apr_addto_bugger; do
11386      apr_addto_duplicate="0"
11387      for j in $AP_LIBS; do
11388        if test "x$i" = "x$j"; then
11389          apr_addto_duplicate="1"
11390          break
11391        fi
11392      done
11393      if test $apr_addto_duplicate = "0"; then
11394        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11395        AP_LIBS="$AP_LIBS $i"
11396      fi
11397    done
11398  fi
11399
11400      fi
11401    else
11402      apache_need_shared=yes
11403      libname="mod_allowmethods.la"
11404      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11405      modpath_shared="$modpath_shared $libname"
11406      cat >>$modpath_current/modules.mk<<EOF
11407$libname: $shobjects
11408	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ALLOWMETHODS_LDADD)
11409EOF
11410    fi
11411  fi
11412
11413
11414  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ALLOWMETHODS_LDADD"
11415
11416
11417
11418  fi
11419
11420
11421
11422  if test "x$INCLUDES" = "x"; then
11423    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
11424    INCLUDES="-I\$(top_srcdir)/$modpath_current"
11425  else
11426    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
11427    for i in $apr_addto_bugger; do
11428      apr_addto_duplicate="0"
11429      for j in $INCLUDES; do
11430        if test "x$i" = "x$j"; then
11431          apr_addto_duplicate="1"
11432          break
11433        fi
11434      done
11435      if test $apr_addto_duplicate = "0"; then
11436        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
11437        INCLUDES="$INCLUDES $i"
11438      fi
11439    done
11440  fi
11441
11442
11443
11444  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
11445  echo "static = $modpath_static" >> $modpath_current/modules.mk
11446  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
11447  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
11448    if eval val=\"\$MOD_$var\"; test -n "$val"; then
11449      echo "MOD_$var = $val" >> $modpath_current/modules.mk
11450    fi
11451  done
11452  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
11453    MODULE_DIRS="$MODULE_DIRS $current_dir"
11454  else
11455    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
11456  fi
11457
11458  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
11459
11460
11461
11462
11463
11464
11465  current_dir=arch/win32
11466  modpath_current=modules/arch/win32
11467  modpath_static=
11468  modpath_shared=
11469  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
11470    eval MOD_$var=
11471  done
11472  test -d arch/win32 || $srcdir/build/mkdir.sh $modpath_current
11473  > $modpath_current/modules.mk
11474
11475
11476
11477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_isapi" >&5
11478$as_echo_n "checking whether to enable mod_isapi... " >&6; }
11479    # Check whether --enable-isapi was given.
11480if test "${enable_isapi+set}" = set; then :
11481  enableval=$enable_isapi; force_isapi=$enableval
11482else
11483  enable_isapi=no
11484fi
11485
11486    _apmod_extra_msg=""
11487        case "$enable_isapi" in
11488    yes|static|shared)
11489      _apmod_required="yes"
11490      ;;
11491    *)
11492      case "$module_selection" in
11493      reallyall|all|most)
11494        _apmod_required="no"
11495        ;;
11496      *)
11497        _apmod_required="yes"
11498        ;;
11499      esac
11500  esac
11501  if test "$enable_isapi" = "static"; then
11502    enable_isapi=static
11503  elif test "$enable_isapi" = "yes"; then
11504    enable_isapi=$module_default
11505  elif test "$enable_isapi" = "most"; then
11506    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11507            "$module_selection" = "reallyall"
11508    then
11509      enable_isapi=$module_default
11510    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11511      enable_isapi=no
11512    fi
11513    _apmod_extra_msg=" ($module_selection)"
11514  elif test "$enable_isapi" = "maybe-all"; then
11515    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11516    then
11517      enable_isapi=$module_default
11518      _apmod_extra_msg=" ($module_selection)"
11519    else
11520      enable_isapi=no
11521    fi
11522  elif test "$enable_isapi" = "no" -a "$module_selection" = "reallyall" -a \
11523            "$force_isapi" != "no" ; then
11524      enable_isapi=$module_default
11525      _apmod_extra_msg=" ($module_selection)"
11526  fi
11527  if test "$enable_isapi" != "no"; then
11528            :
11529  fi
11530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_isapi$_apmod_extra_msg" >&5
11531$as_echo "$enable_isapi$_apmod_extra_msg" >&6; }
11532  if test "$enable_isapi" != "no"; then
11533    case "$enable_isapi" in
11534    static*)
11535      MODLIST="$MODLIST isapi"
11536      if test "isapi" = "so"; then
11537          sharedobjs=yes
11538      fi
11539      shared="";;
11540    *)
11541      enable_isapi=`echo $enable_isapi|sed 's/shared,*//'`
11542      sharedobjs=yes
11543      shared=yes
11544      DSO_MODULES="$DSO_MODULES isapi"
11545      if test "no" = "yes" ; then
11546        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},isapi"
11547      fi
11548      ;;
11549    esac
11550
11551
11552  if test -z ""; then
11553    objects="mod_isapi.lo"
11554  else
11555    objects=""
11556  fi
11557
11558  if test -z "$module_standalone"; then
11559    if test -z "$shared"; then
11560      # The filename of a convenience library must have a "lib" prefix:
11561      libname="libmod_isapi.la"
11562      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11563      modpath_static="$modpath_static $libname"
11564      cat >>$modpath_current/modules.mk<<EOF
11565$libname: $objects
11566	\$(MOD_LINK) $objects \$(MOD_ISAPI_LDADD)
11567EOF
11568      if test ! -z "\$(MOD_ISAPI_LDADD)"; then
11569
11570  if test "x$AP_LIBS" = "x"; then
11571    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ISAPI_LDADD)\""
11572    AP_LIBS="\$(MOD_ISAPI_LDADD)"
11573  else
11574    apr_addto_bugger="\$(MOD_ISAPI_LDADD)"
11575    for i in $apr_addto_bugger; do
11576      apr_addto_duplicate="0"
11577      for j in $AP_LIBS; do
11578        if test "x$i" = "x$j"; then
11579          apr_addto_duplicate="1"
11580          break
11581        fi
11582      done
11583      if test $apr_addto_duplicate = "0"; then
11584        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11585        AP_LIBS="$AP_LIBS $i"
11586      fi
11587    done
11588  fi
11589
11590      fi
11591    else
11592      apache_need_shared=yes
11593      libname="mod_isapi.la"
11594      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11595      modpath_shared="$modpath_shared $libname"
11596      cat >>$modpath_current/modules.mk<<EOF
11597$libname: $shobjects
11598	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ISAPI_LDADD)
11599EOF
11600    fi
11601  fi
11602
11603
11604  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ISAPI_LDADD"
11605
11606
11607
11608  fi
11609
11610
11611
11612  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
11613  echo "static = $modpath_static" >> $modpath_current/modules.mk
11614  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
11615  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
11616    if eval val=\"\$MOD_$var\"; test -n "$val"; then
11617      echo "MOD_$var = $val" >> $modpath_current/modules.mk
11618    fi
11619  done
11620  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
11621    MODULE_DIRS="$MODULE_DIRS $current_dir"
11622  else
11623    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
11624  fi
11625
11626  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
11627
11628
11629
11630
11631
11632
11633  current_dir=cache
11634  modpath_current=modules/cache
11635  modpath_static=
11636  modpath_shared=
11637  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
11638    eval MOD_$var=
11639  done
11640  test -d cache || $srcdir/build/mkdir.sh $modpath_current
11641  > $modpath_current/modules.mk
11642
11643
11644
11645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_file_cache" >&5
11646$as_echo_n "checking whether to enable mod_file_cache... " >&6; }
11647    # Check whether --enable-file-cache was given.
11648if test "${enable_file_cache+set}" = set; then :
11649  enableval=$enable_file_cache; force_file_cache=$enableval
11650else
11651  enable_file_cache=most
11652fi
11653
11654    _apmod_extra_msg=""
11655        case "$enable_file_cache" in
11656    yes|static|shared)
11657      _apmod_required="yes"
11658      ;;
11659    *)
11660      case "$module_selection" in
11661      reallyall|all|most)
11662        _apmod_required="no"
11663        ;;
11664      *)
11665        _apmod_required="yes"
11666        ;;
11667      esac
11668  esac
11669  if test "$enable_file_cache" = "static"; then
11670    enable_file_cache=static
11671  elif test "$enable_file_cache" = "yes"; then
11672    enable_file_cache=$module_default
11673  elif test "$enable_file_cache" = "most"; then
11674    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11675            "$module_selection" = "reallyall"
11676    then
11677      enable_file_cache=$module_default
11678    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11679      enable_file_cache=no
11680    fi
11681    _apmod_extra_msg=" ($module_selection)"
11682  elif test "$enable_file_cache" = "maybe-all"; then
11683    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11684    then
11685      enable_file_cache=$module_default
11686      _apmod_extra_msg=" ($module_selection)"
11687    else
11688      enable_file_cache=no
11689    fi
11690  elif test "$enable_file_cache" = "no" -a "$module_selection" = "reallyall" -a \
11691            "$force_file_cache" != "no" ; then
11692      enable_file_cache=$module_default
11693      _apmod_extra_msg=" ($module_selection)"
11694  fi
11695  if test "$enable_file_cache" != "no"; then
11696            :
11697  fi
11698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_file_cache$_apmod_extra_msg" >&5
11699$as_echo "$enable_file_cache$_apmod_extra_msg" >&6; }
11700  if test "$enable_file_cache" != "no"; then
11701    case "$enable_file_cache" in
11702    static*)
11703      MODLIST="$MODLIST file_cache"
11704      if test "file_cache" = "so"; then
11705          sharedobjs=yes
11706      fi
11707      shared="";;
11708    *)
11709      enable_file_cache=`echo $enable_file_cache|sed 's/shared,*//'`
11710      sharedobjs=yes
11711      shared=yes
11712      DSO_MODULES="$DSO_MODULES file_cache"
11713      if test "most" = "yes" ; then
11714        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},file_cache"
11715      fi
11716      ;;
11717    esac
11718
11719
11720  if test -z ""; then
11721    objects="mod_file_cache.lo"
11722  else
11723    objects=""
11724  fi
11725
11726  if test -z "$module_standalone"; then
11727    if test -z "$shared"; then
11728      # The filename of a convenience library must have a "lib" prefix:
11729      libname="libmod_file_cache.la"
11730      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11731      modpath_static="$modpath_static $libname"
11732      cat >>$modpath_current/modules.mk<<EOF
11733$libname: $objects
11734	\$(MOD_LINK) $objects \$(MOD_FILE_CACHE_LDADD)
11735EOF
11736      if test ! -z "\$(MOD_FILE_CACHE_LDADD)"; then
11737
11738  if test "x$AP_LIBS" = "x"; then
11739    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_FILE_CACHE_LDADD)\""
11740    AP_LIBS="\$(MOD_FILE_CACHE_LDADD)"
11741  else
11742    apr_addto_bugger="\$(MOD_FILE_CACHE_LDADD)"
11743    for i in $apr_addto_bugger; do
11744      apr_addto_duplicate="0"
11745      for j in $AP_LIBS; do
11746        if test "x$i" = "x$j"; then
11747          apr_addto_duplicate="1"
11748          break
11749        fi
11750      done
11751      if test $apr_addto_duplicate = "0"; then
11752        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11753        AP_LIBS="$AP_LIBS $i"
11754      fi
11755    done
11756  fi
11757
11758      fi
11759    else
11760      apache_need_shared=yes
11761      libname="mod_file_cache.la"
11762      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11763      modpath_shared="$modpath_shared $libname"
11764      cat >>$modpath_current/modules.mk<<EOF
11765$libname: $shobjects
11766	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_FILE_CACHE_LDADD)
11767EOF
11768    fi
11769  fi
11770
11771
11772  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILE_CACHE_LDADD"
11773
11774
11775
11776  fi
11777
11778
11779cache_objs="mod_cache.lo cache_storage.lo cache_util.lo "
11780cache_disk_objs="mod_cache_disk.lo"
11781cache_socache_objs="mod_cache_socache.lo"
11782
11783case "$host" in
11784  *os2*)
11785    # OS/2 DLLs must resolve all symbols at build time
11786    # and we need some from main cache module
11787    cache_disk_objs="$cache_disk_objs mod_cache.la"
11788    cache_socache_objs="$cache_socache_objs mod_cache.la"
11789    ;;
11790esac
11791
11792
11793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache" >&5
11794$as_echo_n "checking whether to enable mod_cache... " >&6; }
11795    # Check whether --enable-cache was given.
11796if test "${enable_cache+set}" = set; then :
11797  enableval=$enable_cache; force_cache=$enableval
11798else
11799  enable_cache=most
11800fi
11801
11802    _apmod_extra_msg=""
11803        case "$enable_cache" in
11804    yes|static|shared)
11805      _apmod_required="yes"
11806      ;;
11807    *)
11808      case "$module_selection" in
11809      reallyall|all|most)
11810        _apmod_required="no"
11811        ;;
11812      *)
11813        _apmod_required="yes"
11814        ;;
11815      esac
11816  esac
11817  if test "$enable_cache" = "static"; then
11818    enable_cache=static
11819  elif test "$enable_cache" = "yes"; then
11820    enable_cache=$module_default
11821  elif test "$enable_cache" = "most"; then
11822    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11823            "$module_selection" = "reallyall"
11824    then
11825      enable_cache=$module_default
11826    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11827      enable_cache=no
11828    fi
11829    _apmod_extra_msg=" ($module_selection)"
11830  elif test "$enable_cache" = "maybe-all"; then
11831    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11832    then
11833      enable_cache=$module_default
11834      _apmod_extra_msg=" ($module_selection)"
11835    else
11836      enable_cache=no
11837    fi
11838  elif test "$enable_cache" = "no" -a "$module_selection" = "reallyall" -a \
11839            "$force_cache" != "no" ; then
11840      enable_cache=$module_default
11841      _apmod_extra_msg=" ($module_selection)"
11842  fi
11843  if test "$enable_cache" != "no"; then
11844            :
11845  fi
11846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cache$_apmod_extra_msg" >&5
11847$as_echo "$enable_cache$_apmod_extra_msg" >&6; }
11848  if test "$enable_cache" != "no"; then
11849    case "$enable_cache" in
11850    static*)
11851      MODLIST="$MODLIST cache"
11852      if test "cache" = "so"; then
11853          sharedobjs=yes
11854      fi
11855      shared="";;
11856    *)
11857      enable_cache=`echo $enable_cache|sed 's/shared,*//'`
11858      sharedobjs=yes
11859      shared=yes
11860      DSO_MODULES="$DSO_MODULES cache"
11861      if test "most" = "yes" ; then
11862        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cache"
11863      fi
11864      ;;
11865    esac
11866
11867
11868  if test -z "$cache_objs"; then
11869    objects="mod_cache.lo"
11870  else
11871    objects="$cache_objs"
11872  fi
11873
11874  if test -z "$module_standalone"; then
11875    if test -z "$shared"; then
11876      # The filename of a convenience library must have a "lib" prefix:
11877      libname="libmod_cache.la"
11878      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
11879      modpath_static="$modpath_static $libname"
11880      cat >>$modpath_current/modules.mk<<EOF
11881$libname: $objects
11882	\$(MOD_LINK) $objects \$(MOD_CACHE_LDADD)
11883EOF
11884      if test ! -z "\$(MOD_CACHE_LDADD)"; then
11885
11886  if test "x$AP_LIBS" = "x"; then
11887    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CACHE_LDADD)\""
11888    AP_LIBS="\$(MOD_CACHE_LDADD)"
11889  else
11890    apr_addto_bugger="\$(MOD_CACHE_LDADD)"
11891    for i in $apr_addto_bugger; do
11892      apr_addto_duplicate="0"
11893      for j in $AP_LIBS; do
11894        if test "x$i" = "x$j"; then
11895          apr_addto_duplicate="1"
11896          break
11897        fi
11898      done
11899      if test $apr_addto_duplicate = "0"; then
11900        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
11901        AP_LIBS="$AP_LIBS $i"
11902      fi
11903    done
11904  fi
11905
11906      fi
11907    else
11908      apache_need_shared=yes
11909      libname="mod_cache.la"
11910      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
11911      modpath_shared="$modpath_shared $libname"
11912      cat >>$modpath_current/modules.mk<<EOF
11913$libname: $shobjects
11914	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_LDADD)
11915EOF
11916    fi
11917  fi
11918
11919
11920  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_LDADD"
11921
11922
11923
11924  fi
11925
11926
11927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache_disk" >&5
11928$as_echo_n "checking whether to enable mod_cache_disk... " >&6; }
11929    # Check whether --enable-cache-disk was given.
11930if test "${enable_cache_disk+set}" = set; then :
11931  enableval=$enable_cache_disk; force_cache_disk=$enableval
11932else
11933  enable_cache_disk=most
11934fi
11935
11936    _apmod_extra_msg=""
11937        case "$enable_cache_disk" in
11938    yes|static|shared)
11939      _apmod_required="yes"
11940      ;;
11941    *)
11942      case "$module_selection" in
11943      reallyall|all|most)
11944        _apmod_required="no"
11945        ;;
11946      *)
11947        _apmod_required="yes"
11948        ;;
11949      esac
11950  esac
11951  if test "$enable_cache_disk" = "static"; then
11952    enable_cache_disk=static
11953  elif test "$enable_cache_disk" = "yes"; then
11954    enable_cache_disk=$module_default
11955  elif test "$enable_cache_disk" = "most"; then
11956    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
11957            "$module_selection" = "reallyall"
11958    then
11959      enable_cache_disk=$module_default
11960    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
11961      enable_cache_disk=no
11962    fi
11963    _apmod_extra_msg=" ($module_selection)"
11964  elif test "$enable_cache_disk" = "maybe-all"; then
11965    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
11966    then
11967      enable_cache_disk=$module_default
11968      _apmod_extra_msg=" ($module_selection)"
11969    else
11970      enable_cache_disk=no
11971    fi
11972  elif test "$enable_cache_disk" = "no" -a "$module_selection" = "reallyall" -a \
11973            "$force_cache_disk" != "no" ; then
11974      enable_cache_disk=$module_default
11975      _apmod_extra_msg=" ($module_selection)"
11976  fi
11977  if test "$enable_cache_disk" != "no"; then
11978            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
11979$as_echo "checking dependencies" >&6; }
11980            if test "$enable_cache" = "no" ; then
11981                              enable_cache_disk=no
11982                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_cache is disabled but required for mod_cache_disk\"" >&5
11983$as_echo "$as_me: WARNING: \"mod_cache is disabled but required for mod_cache_disk\"" >&2;}
11984                            elif test "$enable_cache_disk" = "static" && test "$enable_cache" != "static" ; then
11985                              enable_cache_disk=no
11986                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_cache_disk statically if mod_cache is built shared\"" >&5
11987$as_echo "$as_me: WARNING: \"cannot build mod_cache_disk statically if mod_cache is built shared\"" >&2;}
11988                            else
11989            :
11990            fi
11991            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache_disk" >&5
11992$as_echo_n "checking whether to enable mod_cache_disk... " >&6; }
11993            if test "$enable_cache_disk" = "no"; then
11994              if test "$_apmod_required" = "no"; then
11995                _apmod_extra_msg=" (disabled)"
11996              else
11997                as_fn_error $? "mod_cache_disk has been requested but can not be built due to prerequisite failures" "$LINENO" 5
11998              fi
11999            fi
12000  fi
12001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cache_disk$_apmod_extra_msg" >&5
12002$as_echo "$enable_cache_disk$_apmod_extra_msg" >&6; }
12003  if test "$enable_cache_disk" != "no"; then
12004    case "$enable_cache_disk" in
12005    static*)
12006      MODLIST="$MODLIST cache_disk"
12007      if test "cache_disk" = "so"; then
12008          sharedobjs=yes
12009      fi
12010      shared="";;
12011    *)
12012      enable_cache_disk=`echo $enable_cache_disk|sed 's/shared,*//'`
12013      sharedobjs=yes
12014      shared=yes
12015      DSO_MODULES="$DSO_MODULES cache_disk"
12016      if test "most" = "yes" ; then
12017        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cache_disk"
12018      fi
12019      ;;
12020    esac
12021
12022
12023  if test -z "$cache_disk_objs"; then
12024    objects="mod_cache_disk.lo"
12025  else
12026    objects="$cache_disk_objs"
12027  fi
12028
12029  if test -z "$module_standalone"; then
12030    if test -z "$shared"; then
12031      # The filename of a convenience library must have a "lib" prefix:
12032      libname="libmod_cache_disk.la"
12033      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12034      modpath_static="$modpath_static $libname"
12035      cat >>$modpath_current/modules.mk<<EOF
12036$libname: $objects
12037	\$(MOD_LINK) $objects \$(MOD_CACHE_DISK_LDADD)
12038EOF
12039      if test ! -z "\$(MOD_CACHE_DISK_LDADD)"; then
12040
12041  if test "x$AP_LIBS" = "x"; then
12042    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CACHE_DISK_LDADD)\""
12043    AP_LIBS="\$(MOD_CACHE_DISK_LDADD)"
12044  else
12045    apr_addto_bugger="\$(MOD_CACHE_DISK_LDADD)"
12046    for i in $apr_addto_bugger; do
12047      apr_addto_duplicate="0"
12048      for j in $AP_LIBS; do
12049        if test "x$i" = "x$j"; then
12050          apr_addto_duplicate="1"
12051          break
12052        fi
12053      done
12054      if test $apr_addto_duplicate = "0"; then
12055        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12056        AP_LIBS="$AP_LIBS $i"
12057      fi
12058    done
12059  fi
12060
12061      fi
12062    else
12063      apache_need_shared=yes
12064      libname="mod_cache_disk.la"
12065      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12066      modpath_shared="$modpath_shared $libname"
12067      cat >>$modpath_current/modules.mk<<EOF
12068$libname: $shobjects
12069	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_DISK_LDADD)
12070EOF
12071    fi
12072  fi
12073
12074
12075  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_DISK_LDADD"
12076
12077
12078
12079  fi
12080
12081
12082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache_socache" >&5
12083$as_echo_n "checking whether to enable mod_cache_socache... " >&6; }
12084    # Check whether --enable-cache-socache was given.
12085if test "${enable_cache_socache+set}" = set; then :
12086  enableval=$enable_cache_socache; force_cache_socache=$enableval
12087else
12088  enable_cache_socache=most
12089fi
12090
12091    _apmod_extra_msg=""
12092        case "$enable_cache_socache" in
12093    yes|static|shared)
12094      _apmod_required="yes"
12095      ;;
12096    *)
12097      case "$module_selection" in
12098      reallyall|all|most)
12099        _apmod_required="no"
12100        ;;
12101      *)
12102        _apmod_required="yes"
12103        ;;
12104      esac
12105  esac
12106  if test "$enable_cache_socache" = "static"; then
12107    enable_cache_socache=static
12108  elif test "$enable_cache_socache" = "yes"; then
12109    enable_cache_socache=$module_default
12110  elif test "$enable_cache_socache" = "most"; then
12111    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12112            "$module_selection" = "reallyall"
12113    then
12114      enable_cache_socache=$module_default
12115    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12116      enable_cache_socache=no
12117    fi
12118    _apmod_extra_msg=" ($module_selection)"
12119  elif test "$enable_cache_socache" = "maybe-all"; then
12120    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12121    then
12122      enable_cache_socache=$module_default
12123      _apmod_extra_msg=" ($module_selection)"
12124    else
12125      enable_cache_socache=no
12126    fi
12127  elif test "$enable_cache_socache" = "no" -a "$module_selection" = "reallyall" -a \
12128            "$force_cache_socache" != "no" ; then
12129      enable_cache_socache=$module_default
12130      _apmod_extra_msg=" ($module_selection)"
12131  fi
12132  if test "$enable_cache_socache" != "no"; then
12133            :
12134  fi
12135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cache_socache$_apmod_extra_msg" >&5
12136$as_echo "$enable_cache_socache$_apmod_extra_msg" >&6; }
12137  if test "$enable_cache_socache" != "no"; then
12138    case "$enable_cache_socache" in
12139    static*)
12140      MODLIST="$MODLIST cache_socache"
12141      if test "cache_socache" = "so"; then
12142          sharedobjs=yes
12143      fi
12144      shared="";;
12145    *)
12146      enable_cache_socache=`echo $enable_cache_socache|sed 's/shared,*//'`
12147      sharedobjs=yes
12148      shared=yes
12149      DSO_MODULES="$DSO_MODULES cache_socache"
12150      if test "most" = "yes" ; then
12151        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cache_socache"
12152      fi
12153      ;;
12154    esac
12155
12156
12157  if test -z "$cache_socache_objs"; then
12158    objects="mod_cache_socache.lo"
12159  else
12160    objects="$cache_socache_objs"
12161  fi
12162
12163  if test -z "$module_standalone"; then
12164    if test -z "$shared"; then
12165      # The filename of a convenience library must have a "lib" prefix:
12166      libname="libmod_cache_socache.la"
12167      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12168      modpath_static="$modpath_static $libname"
12169      cat >>$modpath_current/modules.mk<<EOF
12170$libname: $objects
12171	\$(MOD_LINK) $objects \$(MOD_CACHE_SOCACHE_LDADD)
12172EOF
12173      if test ! -z "\$(MOD_CACHE_SOCACHE_LDADD)"; then
12174
12175  if test "x$AP_LIBS" = "x"; then
12176    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CACHE_SOCACHE_LDADD)\""
12177    AP_LIBS="\$(MOD_CACHE_SOCACHE_LDADD)"
12178  else
12179    apr_addto_bugger="\$(MOD_CACHE_SOCACHE_LDADD)"
12180    for i in $apr_addto_bugger; do
12181      apr_addto_duplicate="0"
12182      for j in $AP_LIBS; do
12183        if test "x$i" = "x$j"; then
12184          apr_addto_duplicate="1"
12185          break
12186        fi
12187      done
12188      if test $apr_addto_duplicate = "0"; then
12189        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12190        AP_LIBS="$AP_LIBS $i"
12191      fi
12192    done
12193  fi
12194
12195      fi
12196    else
12197      apache_need_shared=yes
12198      libname="mod_cache_socache.la"
12199      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12200      modpath_shared="$modpath_shared $libname"
12201      cat >>$modpath_current/modules.mk<<EOF
12202$libname: $shobjects
12203	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_SOCACHE_LDADD)
12204EOF
12205    fi
12206  fi
12207
12208
12209  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_SOCACHE_LDADD"
12210
12211
12212
12213  fi
12214
12215
12216
12217
12218
12219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_shmcb" >&5
12220$as_echo_n "checking whether to enable mod_socache_shmcb... " >&6; }
12221    # Check whether --enable-socache-shmcb was given.
12222if test "${enable_socache_shmcb+set}" = set; then :
12223  enableval=$enable_socache_shmcb; force_socache_shmcb=$enableval
12224else
12225  enable_socache_shmcb=most
12226fi
12227
12228    _apmod_extra_msg=""
12229        case "$enable_socache_shmcb" in
12230    yes|static|shared)
12231      _apmod_required="yes"
12232      ;;
12233    *)
12234      case "$module_selection" in
12235      reallyall|all|most)
12236        _apmod_required="no"
12237        ;;
12238      *)
12239        _apmod_required="yes"
12240        ;;
12241      esac
12242  esac
12243  if test "$enable_socache_shmcb" = "static"; then
12244    enable_socache_shmcb=static
12245  elif test "$enable_socache_shmcb" = "yes"; then
12246    enable_socache_shmcb=$module_default
12247  elif test "$enable_socache_shmcb" = "most"; then
12248    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12249            "$module_selection" = "reallyall"
12250    then
12251      enable_socache_shmcb=$module_default
12252    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12253      enable_socache_shmcb=no
12254    fi
12255    _apmod_extra_msg=" ($module_selection)"
12256  elif test "$enable_socache_shmcb" = "maybe-all"; then
12257    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12258    then
12259      enable_socache_shmcb=$module_default
12260      _apmod_extra_msg=" ($module_selection)"
12261    else
12262      enable_socache_shmcb=no
12263    fi
12264  elif test "$enable_socache_shmcb" = "no" -a "$module_selection" = "reallyall" -a \
12265            "$force_socache_shmcb" != "no" ; then
12266      enable_socache_shmcb=$module_default
12267      _apmod_extra_msg=" ($module_selection)"
12268  fi
12269  if test "$enable_socache_shmcb" != "no"; then
12270            :
12271  fi
12272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_socache_shmcb$_apmod_extra_msg" >&5
12273$as_echo "$enable_socache_shmcb$_apmod_extra_msg" >&6; }
12274  if test "$enable_socache_shmcb" != "no"; then
12275    case "$enable_socache_shmcb" in
12276    static*)
12277      MODLIST="$MODLIST socache_shmcb"
12278      if test "socache_shmcb" = "so"; then
12279          sharedobjs=yes
12280      fi
12281      shared="";;
12282    *)
12283      enable_socache_shmcb=`echo $enable_socache_shmcb|sed 's/shared,*//'`
12284      sharedobjs=yes
12285      shared=yes
12286      DSO_MODULES="$DSO_MODULES socache_shmcb"
12287      if test "most" = "yes" ; then
12288        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_shmcb"
12289      fi
12290      ;;
12291    esac
12292
12293
12294  if test -z ""; then
12295    objects="mod_socache_shmcb.lo"
12296  else
12297    objects=""
12298  fi
12299
12300  if test -z "$module_standalone"; then
12301    if test -z "$shared"; then
12302      # The filename of a convenience library must have a "lib" prefix:
12303      libname="libmod_socache_shmcb.la"
12304      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12305      modpath_static="$modpath_static $libname"
12306      cat >>$modpath_current/modules.mk<<EOF
12307$libname: $objects
12308	\$(MOD_LINK) $objects \$(MOD_SOCACHE_SHMCB_LDADD)
12309EOF
12310      if test ! -z "\$(MOD_SOCACHE_SHMCB_LDADD)"; then
12311
12312  if test "x$AP_LIBS" = "x"; then
12313    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_SHMCB_LDADD)\""
12314    AP_LIBS="\$(MOD_SOCACHE_SHMCB_LDADD)"
12315  else
12316    apr_addto_bugger="\$(MOD_SOCACHE_SHMCB_LDADD)"
12317    for i in $apr_addto_bugger; do
12318      apr_addto_duplicate="0"
12319      for j in $AP_LIBS; do
12320        if test "x$i" = "x$j"; then
12321          apr_addto_duplicate="1"
12322          break
12323        fi
12324      done
12325      if test $apr_addto_duplicate = "0"; then
12326        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12327        AP_LIBS="$AP_LIBS $i"
12328      fi
12329    done
12330  fi
12331
12332      fi
12333    else
12334      apache_need_shared=yes
12335      libname="mod_socache_shmcb.la"
12336      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12337      modpath_shared="$modpath_shared $libname"
12338      cat >>$modpath_current/modules.mk<<EOF
12339$libname: $shobjects
12340	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_SHMCB_LDADD)
12341EOF
12342    fi
12343  fi
12344
12345
12346  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_SHMCB_LDADD"
12347
12348
12349
12350  fi
12351
12352
12353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_dbm" >&5
12354$as_echo_n "checking whether to enable mod_socache_dbm... " >&6; }
12355    # Check whether --enable-socache-dbm was given.
12356if test "${enable_socache_dbm+set}" = set; then :
12357  enableval=$enable_socache_dbm; force_socache_dbm=$enableval
12358else
12359  enable_socache_dbm=most
12360fi
12361
12362    _apmod_extra_msg=""
12363        case "$enable_socache_dbm" in
12364    yes|static|shared)
12365      _apmod_required="yes"
12366      ;;
12367    *)
12368      case "$module_selection" in
12369      reallyall|all|most)
12370        _apmod_required="no"
12371        ;;
12372      *)
12373        _apmod_required="yes"
12374        ;;
12375      esac
12376  esac
12377  if test "$enable_socache_dbm" = "static"; then
12378    enable_socache_dbm=static
12379  elif test "$enable_socache_dbm" = "yes"; then
12380    enable_socache_dbm=$module_default
12381  elif test "$enable_socache_dbm" = "most"; then
12382    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12383            "$module_selection" = "reallyall"
12384    then
12385      enable_socache_dbm=$module_default
12386    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12387      enable_socache_dbm=no
12388    fi
12389    _apmod_extra_msg=" ($module_selection)"
12390  elif test "$enable_socache_dbm" = "maybe-all"; then
12391    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12392    then
12393      enable_socache_dbm=$module_default
12394      _apmod_extra_msg=" ($module_selection)"
12395    else
12396      enable_socache_dbm=no
12397    fi
12398  elif test "$enable_socache_dbm" = "no" -a "$module_selection" = "reallyall" -a \
12399            "$force_socache_dbm" != "no" ; then
12400      enable_socache_dbm=$module_default
12401      _apmod_extra_msg=" ($module_selection)"
12402  fi
12403  if test "$enable_socache_dbm" != "no"; then
12404            :
12405  fi
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_socache_dbm$_apmod_extra_msg" >&5
12407$as_echo "$enable_socache_dbm$_apmod_extra_msg" >&6; }
12408  if test "$enable_socache_dbm" != "no"; then
12409    case "$enable_socache_dbm" in
12410    static*)
12411      MODLIST="$MODLIST socache_dbm"
12412      if test "socache_dbm" = "so"; then
12413          sharedobjs=yes
12414      fi
12415      shared="";;
12416    *)
12417      enable_socache_dbm=`echo $enable_socache_dbm|sed 's/shared,*//'`
12418      sharedobjs=yes
12419      shared=yes
12420      DSO_MODULES="$DSO_MODULES socache_dbm"
12421      if test "most" = "yes" ; then
12422        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_dbm"
12423      fi
12424      ;;
12425    esac
12426
12427
12428  if test -z ""; then
12429    objects="mod_socache_dbm.lo"
12430  else
12431    objects=""
12432  fi
12433
12434  if test -z "$module_standalone"; then
12435    if test -z "$shared"; then
12436      # The filename of a convenience library must have a "lib" prefix:
12437      libname="libmod_socache_dbm.la"
12438      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12439      modpath_static="$modpath_static $libname"
12440      cat >>$modpath_current/modules.mk<<EOF
12441$libname: $objects
12442	\$(MOD_LINK) $objects \$(MOD_SOCACHE_DBM_LDADD)
12443EOF
12444      if test ! -z "\$(MOD_SOCACHE_DBM_LDADD)"; then
12445
12446  if test "x$AP_LIBS" = "x"; then
12447    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_DBM_LDADD)\""
12448    AP_LIBS="\$(MOD_SOCACHE_DBM_LDADD)"
12449  else
12450    apr_addto_bugger="\$(MOD_SOCACHE_DBM_LDADD)"
12451    for i in $apr_addto_bugger; do
12452      apr_addto_duplicate="0"
12453      for j in $AP_LIBS; do
12454        if test "x$i" = "x$j"; then
12455          apr_addto_duplicate="1"
12456          break
12457        fi
12458      done
12459      if test $apr_addto_duplicate = "0"; then
12460        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12461        AP_LIBS="$AP_LIBS $i"
12462      fi
12463    done
12464  fi
12465
12466      fi
12467    else
12468      apache_need_shared=yes
12469      libname="mod_socache_dbm.la"
12470      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12471      modpath_shared="$modpath_shared $libname"
12472      cat >>$modpath_current/modules.mk<<EOF
12473$libname: $shobjects
12474	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_DBM_LDADD)
12475EOF
12476    fi
12477  fi
12478
12479
12480  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_DBM_LDADD"
12481
12482
12483
12484  fi
12485
12486
12487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_memcache" >&5
12488$as_echo_n "checking whether to enable mod_socache_memcache... " >&6; }
12489    # Check whether --enable-socache-memcache was given.
12490if test "${enable_socache_memcache+set}" = set; then :
12491  enableval=$enable_socache_memcache; force_socache_memcache=$enableval
12492else
12493  enable_socache_memcache=most
12494fi
12495
12496    _apmod_extra_msg=""
12497        case "$enable_socache_memcache" in
12498    yes|static|shared)
12499      _apmod_required="yes"
12500      ;;
12501    *)
12502      case "$module_selection" in
12503      reallyall|all|most)
12504        _apmod_required="no"
12505        ;;
12506      *)
12507        _apmod_required="yes"
12508        ;;
12509      esac
12510  esac
12511  if test "$enable_socache_memcache" = "static"; then
12512    enable_socache_memcache=static
12513  elif test "$enable_socache_memcache" = "yes"; then
12514    enable_socache_memcache=$module_default
12515  elif test "$enable_socache_memcache" = "most"; then
12516    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12517            "$module_selection" = "reallyall"
12518    then
12519      enable_socache_memcache=$module_default
12520    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12521      enable_socache_memcache=no
12522    fi
12523    _apmod_extra_msg=" ($module_selection)"
12524  elif test "$enable_socache_memcache" = "maybe-all"; then
12525    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12526    then
12527      enable_socache_memcache=$module_default
12528      _apmod_extra_msg=" ($module_selection)"
12529    else
12530      enable_socache_memcache=no
12531    fi
12532  elif test "$enable_socache_memcache" = "no" -a "$module_selection" = "reallyall" -a \
12533            "$force_socache_memcache" != "no" ; then
12534      enable_socache_memcache=$module_default
12535      _apmod_extra_msg=" ($module_selection)"
12536  fi
12537  if test "$enable_socache_memcache" != "no"; then
12538            :
12539  fi
12540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_socache_memcache$_apmod_extra_msg" >&5
12541$as_echo "$enable_socache_memcache$_apmod_extra_msg" >&6; }
12542  if test "$enable_socache_memcache" != "no"; then
12543    case "$enable_socache_memcache" in
12544    static*)
12545      MODLIST="$MODLIST socache_memcache"
12546      if test "socache_memcache" = "so"; then
12547          sharedobjs=yes
12548      fi
12549      shared="";;
12550    *)
12551      enable_socache_memcache=`echo $enable_socache_memcache|sed 's/shared,*//'`
12552      sharedobjs=yes
12553      shared=yes
12554      DSO_MODULES="$DSO_MODULES socache_memcache"
12555      if test "most" = "yes" ; then
12556        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_memcache"
12557      fi
12558      ;;
12559    esac
12560
12561
12562  if test -z ""; then
12563    objects="mod_socache_memcache.lo"
12564  else
12565    objects=""
12566  fi
12567
12568  if test -z "$module_standalone"; then
12569    if test -z "$shared"; then
12570      # The filename of a convenience library must have a "lib" prefix:
12571      libname="libmod_socache_memcache.la"
12572      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
12573      modpath_static="$modpath_static $libname"
12574      cat >>$modpath_current/modules.mk<<EOF
12575$libname: $objects
12576	\$(MOD_LINK) $objects \$(MOD_SOCACHE_MEMCACHE_LDADD)
12577EOF
12578      if test ! -z "\$(MOD_SOCACHE_MEMCACHE_LDADD)"; then
12579
12580  if test "x$AP_LIBS" = "x"; then
12581    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_MEMCACHE_LDADD)\""
12582    AP_LIBS="\$(MOD_SOCACHE_MEMCACHE_LDADD)"
12583  else
12584    apr_addto_bugger="\$(MOD_SOCACHE_MEMCACHE_LDADD)"
12585    for i in $apr_addto_bugger; do
12586      apr_addto_duplicate="0"
12587      for j in $AP_LIBS; do
12588        if test "x$i" = "x$j"; then
12589          apr_addto_duplicate="1"
12590          break
12591        fi
12592      done
12593      if test $apr_addto_duplicate = "0"; then
12594        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
12595        AP_LIBS="$AP_LIBS $i"
12596      fi
12597    done
12598  fi
12599
12600      fi
12601    else
12602      apache_need_shared=yes
12603      libname="mod_socache_memcache.la"
12604      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
12605      modpath_shared="$modpath_shared $libname"
12606      cat >>$modpath_current/modules.mk<<EOF
12607$libname: $shobjects
12608	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_MEMCACHE_LDADD)
12609EOF
12610    fi
12611  fi
12612
12613
12614  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_MEMCACHE_LDADD"
12615
12616
12617
12618  fi
12619
12620
12621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_dc" >&5
12622$as_echo_n "checking whether to enable mod_socache_dc... " >&6; }
12623    # Check whether --enable-socache-dc was given.
12624if test "${enable_socache_dc+set}" = set; then :
12625  enableval=$enable_socache_dc; force_socache_dc=$enableval
12626else
12627  enable_socache_dc=no
12628fi
12629
12630    _apmod_extra_msg=""
12631        case "$enable_socache_dc" in
12632    yes|static|shared)
12633      _apmod_required="yes"
12634      ;;
12635    *)
12636      case "$module_selection" in
12637      reallyall|all|most)
12638        _apmod_required="no"
12639        ;;
12640      *)
12641        _apmod_required="yes"
12642        ;;
12643      esac
12644  esac
12645  if test "$enable_socache_dc" = "static"; then
12646    enable_socache_dc=static
12647  elif test "$enable_socache_dc" = "yes"; then
12648    enable_socache_dc=$module_default
12649  elif test "$enable_socache_dc" = "most"; then
12650    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
12651            "$module_selection" = "reallyall"
12652    then
12653      enable_socache_dc=$module_default
12654    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
12655      enable_socache_dc=no
12656    fi
12657    _apmod_extra_msg=" ($module_selection)"
12658  elif test "$enable_socache_dc" = "maybe-all"; then
12659    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
12660    then
12661      enable_socache_dc=$module_default
12662      _apmod_extra_msg=" ($module_selection)"
12663    else
12664      enable_socache_dc=no
12665    fi
12666  elif test "$enable_socache_dc" = "no" -a "$module_selection" = "reallyall" -a \
12667            "$force_socache_dc" != "no" ; then
12668      enable_socache_dc=$module_default
12669      _apmod_extra_msg=" ($module_selection)"
12670  fi
12671  if test "$enable_socache_dc" != "no"; then
12672            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
12673$as_echo "checking dependencies" >&6; }
12674            :
12675
12676
12677if test "x$ap_distcache_configured" = "x"; then
12678    ap_distcache_found=""
12679  ap_distcache_base=""
12680  ap_distcache_libs=""
12681  ap_distcache_ldflags=""
12682  ap_distcache_with=""
12683
12684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-provided distcache base" >&5
12685$as_echo_n "checking for user-provided distcache base... " >&6; }
12686
12687# Check whether --with-distcache was given.
12688if test "${with_distcache+set}" = set; then :
12689  withval=$with_distcache;
12690        if test "x$withval" != "xyes" -a "x$withval" != "x"; then
12691            ap_distcache_with="yes"
12692      ap_distcache_base="`cd $withval ; pwd`"
12693    fi
12694
12695fi
12696
12697  if test "x$ap_distcache_base" = "x"; then
12698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12699$as_echo "none" >&6; }
12700  else
12701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_distcache_base" >&5
12702$as_echo "$ap_distcache_base" >&6; }
12703  fi
12704
12705    saved_CPPFLAGS="$CPPFLAGS"
12706  saved_LIBS="$LIBS"
12707  saved_LDFLAGS="$LDFLAGS"
12708
12709  if test "x$ap_distcache_base" != "x"; then
12710
12711  if test "x$CPPFLAGS" = "x"; then
12712    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_distcache_base/include\""
12713    CPPFLAGS="-I$ap_distcache_base/include"
12714  else
12715    apr_addto_bugger="-I$ap_distcache_base/include"
12716    for i in $apr_addto_bugger; do
12717      apr_addto_duplicate="0"
12718      for j in $CPPFLAGS; do
12719        if test "x$i" = "x$j"; then
12720          apr_addto_duplicate="1"
12721          break
12722        fi
12723      done
12724      if test $apr_addto_duplicate = "0"; then
12725        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
12726        CPPFLAGS="$CPPFLAGS $i"
12727      fi
12728    done
12729  fi
12730
12731
12732  if test "x$MOD_INCLUDES" = "x"; then
12733    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"-I$ap_distcache_base/include\""
12734    MOD_INCLUDES="-I$ap_distcache_base/include"
12735  else
12736    apr_addto_bugger="-I$ap_distcache_base/include"
12737    for i in $apr_addto_bugger; do
12738      apr_addto_duplicate="0"
12739      for j in $MOD_INCLUDES; do
12740        if test "x$i" = "x$j"; then
12741          apr_addto_duplicate="1"
12742          break
12743        fi
12744      done
12745      if test $apr_addto_duplicate = "0"; then
12746        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_INCLUDES"
12747        MOD_INCLUDES="$MOD_INCLUDES $i"
12748      fi
12749    done
12750  fi
12751
12752
12753  if test "x$LDFLAGS" = "x"; then
12754    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_distcache_base/lib\""
12755    LDFLAGS="-L$ap_distcache_base/lib"
12756  else
12757    apr_addto_bugger="-L$ap_distcache_base/lib"
12758    for i in $apr_addto_bugger; do
12759      apr_addto_duplicate="0"
12760      for j in $LDFLAGS; do
12761        if test "x$i" = "x$j"; then
12762          apr_addto_duplicate="1"
12763          break
12764        fi
12765      done
12766      if test $apr_addto_duplicate = "0"; then
12767        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
12768        LDFLAGS="$LDFLAGS $i"
12769      fi
12770    done
12771  fi
12772
12773
12774  if test "x$ap_distcache_ldflags" = "x"; then
12775    test "x$silent" != "xyes" && echo "  setting ap_distcache_ldflags to \"-L$ap_distcache_base/lib\""
12776    ap_distcache_ldflags="-L$ap_distcache_base/lib"
12777  else
12778    apr_addto_bugger="-L$ap_distcache_base/lib"
12779    for i in $apr_addto_bugger; do
12780      apr_addto_duplicate="0"
12781      for j in $ap_distcache_ldflags; do
12782        if test "x$i" = "x$j"; then
12783          apr_addto_duplicate="1"
12784          break
12785        fi
12786      done
12787      if test $apr_addto_duplicate = "0"; then
12788        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_distcache_ldflags"
12789        ap_distcache_ldflags="$ap_distcache_ldflags $i"
12790      fi
12791    done
12792  fi
12793
12794    if test "x$ap_platform_runtime_link_flag" != "x"; then
12795
12796  if test "x$LDFLAGS" = "x"; then
12797    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_distcache_base/lib\""
12798    LDFLAGS="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
12799  else
12800    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
12801    for i in $apr_addto_bugger; do
12802      apr_addto_duplicate="0"
12803      for j in $LDFLAGS; do
12804        if test "x$i" = "x$j"; then
12805          apr_addto_duplicate="1"
12806          break
12807        fi
12808      done
12809      if test $apr_addto_duplicate = "0"; then
12810        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
12811        LDFLAGS="$LDFLAGS $i"
12812      fi
12813    done
12814  fi
12815
12816
12817  if test "x$ap_distcache_ldflags" = "x"; then
12818    test "x$silent" != "xyes" && echo "  setting ap_distcache_ldflags to \"$ap_platform_runtime_link_flag$ap_distcache_base/lib\""
12819    ap_distcache_ldflags="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
12820  else
12821    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
12822    for i in $apr_addto_bugger; do
12823      apr_addto_duplicate="0"
12824      for j in $ap_distcache_ldflags; do
12825        if test "x$i" = "x$j"; then
12826          apr_addto_duplicate="1"
12827          break
12828        fi
12829      done
12830      if test $apr_addto_duplicate = "0"; then
12831        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_distcache_ldflags"
12832        ap_distcache_ldflags="$ap_distcache_ldflags $i"
12833      fi
12834    done
12835  fi
12836
12837    fi
12838  fi
12839    for ac_header in distcache/dc_client.h
12840do :
12841  ac_fn_c_check_header_mongrel "$LINENO" "distcache/dc_client.h" "ac_cv_header_distcache_dc_client_h" "$ac_includes_default"
12842if test "x$ac_cv_header_distcache_dc_client_h" = xyes; then :
12843  cat >>confdefs.h <<_ACEOF
12844#define HAVE_DISTCACHE_DC_CLIENT_H 1
12845_ACEOF
12846 ap_distcache_found="yes"
12847fi
12848
12849done
12850
12851  if test "$ap_distcache_found" = "yes"; then
12852        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for distcache version" >&5
12853$as_echo_n "checking for distcache version... " >&6; }
12854    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855/* end confdefs.h.  */
12856#include <distcache/dc_client.h>
12857int
12858main ()
12859{
12860
12861#if DISTCACHE_CLIENT_API != 0x0001
12862#error "distcache API version is unrecognised"
12863#endif
12864  ;
12865  return 0;
12866}
12867_ACEOF
12868if ac_fn_c_try_compile "$LINENO"; then :
12869
12870else
12871  ap_distcache_found="no"
12872fi
12873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_distcache_found" >&5
12875$as_echo "$ap_distcache_found" >&6; }
12876  fi
12877  if test "$ap_distcache_found" != "yes"; then
12878    if test "x$ap_distcache_with" = "x"; then
12879      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ...No distcache detected" >&5
12880$as_echo "$as_me: WARNING: ...No distcache detected" >&2;}
12881    else
12882      as_fn_error $? "...No distcache detected" "$LINENO" 5
12883    fi
12884  else
12885        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for distcache libraries" >&5
12886$as_echo_n "checking for distcache libraries... " >&6; }
12887    ap_distcache_libs="-ldistcache -lnal"
12888
12889  if test "x$LIBS" = "x"; then
12890    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_distcache_libs\""
12891    LIBS="$ap_distcache_libs"
12892  else
12893    apr_addto_bugger="$ap_distcache_libs"
12894    for i in $apr_addto_bugger; do
12895      apr_addto_duplicate="0"
12896      for j in $LIBS; do
12897        if test "x$i" = "x$j"; then
12898          apr_addto_duplicate="1"
12899          break
12900        fi
12901      done
12902      if test $apr_addto_duplicate = "0"; then
12903        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
12904        LIBS="$LIBS $i"
12905      fi
12906    done
12907  fi
12908
12909
12910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911/* end confdefs.h.  */
12912#include <distcache/dc_client.h>
12913int
12914main ()
12915{
12916DC_CTX *foo = DC_CTX_new((const char *)0,0);
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921if ac_fn_c_try_link "$LINENO"; then :
12922
12923else
12924  ap_distcache_found="no"
12925fi
12926rm -f core conftest.err conftest.$ac_objext \
12927    conftest$ac_exeext conftest.$ac_ext
12928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_distcache_found" >&5
12929$as_echo "$ap_distcache_found" >&6; }
12930    if test "$ap_distcache_found" != "yes"; then
12931      if test "x$ap_distcache_base" = "x"; then
12932        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ... Error, distcache libraries were missing or unusable" >&5
12933$as_echo "$as_me: WARNING: ... Error, distcache libraries were missing or unusable" >&2;}
12934      else
12935        as_fn_error $? "... Error, distcache libraries were missing or unusable" "$LINENO" 5
12936      fi
12937    fi
12938  fi
12939
12940    CPPFLAGS="$saved_CPPFLAGS"
12941  LIBS="$saved_LIBS"
12942  LDFLAGS="$saved_LDFLAGS"
12943
12944    if test "$ap_distcache_found" = "yes"; then
12945
12946  if test "x$MOD_SOCACHE_DC_LDADD" = "x"; then
12947    test "x$silent" != "xyes" && echo "  setting MOD_SOCACHE_DC_LDADD to \"$ap_distcache_ldflags $ap_distcache_libs\""
12948    MOD_SOCACHE_DC_LDADD="$ap_distcache_ldflags $ap_distcache_libs"
12949  else
12950    apr_addto_bugger="$ap_distcache_ldflags $ap_distcache_libs"
12951    for i in $apr_addto_bugger; do
12952      apr_addto_duplicate="0"
12953      for j in $MOD_SOCACHE_DC_LDADD; do
12954        if test "x$i" = "x$j"; then
12955          apr_addto_duplicate="1"
12956          break
12957        fi
12958      done
12959      if test $apr_addto_duplicate = "0"; then
12960        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SOCACHE_DC_LDADD"
12961        MOD_SOCACHE_DC_LDADD="$MOD_SOCACHE_DC_LDADD $i"
12962      fi
12963    done
12964  fi
12965
12966
12967$as_echo "#define HAVE_DISTCACHE 1" >>confdefs.h
12968
12969  else
12970    enable_socache_dc=no
12971  fi
12972  ap_distcache_configured="yes"
12973fi
12974
12975
12976            :
12977            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_dc" >&5
12978$as_echo_n "checking whether to enable mod_socache_dc... " >&6; }
12979            if test "$enable_socache_dc" = "no"; then
12980              if test "$_apmod_required" = "no"; then
12981                _apmod_extra_msg=" (disabled)"
12982              else
12983                as_fn_error $? "mod_socache_dc has been requested but can not be built due to prerequisite failures" "$LINENO" 5
12984              fi
12985            fi
12986  fi
12987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_socache_dc$_apmod_extra_msg" >&5
12988$as_echo "$enable_socache_dc$_apmod_extra_msg" >&6; }
12989  if test "$enable_socache_dc" != "no"; then
12990    case "$enable_socache_dc" in
12991    static*)
12992      MODLIST="$MODLIST socache_dc"
12993      if test "socache_dc" = "so"; then
12994          sharedobjs=yes
12995      fi
12996      shared="";;
12997    *)
12998      enable_socache_dc=`echo $enable_socache_dc|sed 's/shared,*//'`
12999      sharedobjs=yes
13000      shared=yes
13001      DSO_MODULES="$DSO_MODULES socache_dc"
13002      if test "no" = "yes" ; then
13003        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_dc"
13004      fi
13005      ;;
13006    esac
13007
13008
13009  if test -z ""; then
13010    objects="mod_socache_dc.lo"
13011  else
13012    objects=""
13013  fi
13014
13015  if test -z "$module_standalone"; then
13016    if test -z "$shared"; then
13017      # The filename of a convenience library must have a "lib" prefix:
13018      libname="libmod_socache_dc.la"
13019      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13020      modpath_static="$modpath_static $libname"
13021      cat >>$modpath_current/modules.mk<<EOF
13022$libname: $objects
13023	\$(MOD_LINK) $objects \$(MOD_SOCACHE_DC_LDADD)
13024EOF
13025      if test ! -z "\$(MOD_SOCACHE_DC_LDADD)"; then
13026
13027  if test "x$AP_LIBS" = "x"; then
13028    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_DC_LDADD)\""
13029    AP_LIBS="\$(MOD_SOCACHE_DC_LDADD)"
13030  else
13031    apr_addto_bugger="\$(MOD_SOCACHE_DC_LDADD)"
13032    for i in $apr_addto_bugger; do
13033      apr_addto_duplicate="0"
13034      for j in $AP_LIBS; do
13035        if test "x$i" = "x$j"; then
13036          apr_addto_duplicate="1"
13037          break
13038        fi
13039      done
13040      if test $apr_addto_duplicate = "0"; then
13041        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13042        AP_LIBS="$AP_LIBS $i"
13043      fi
13044    done
13045  fi
13046
13047      fi
13048    else
13049      apache_need_shared=yes
13050      libname="mod_socache_dc.la"
13051      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13052      modpath_shared="$modpath_shared $libname"
13053      cat >>$modpath_current/modules.mk<<EOF
13054$libname: $shobjects
13055	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_DC_LDADD)
13056EOF
13057    fi
13058  fi
13059
13060
13061  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_DC_LDADD"
13062
13063
13064
13065  fi
13066
13067
13068
13069  if test "x$INCLUDES" = "x"; then
13070    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
13071    INCLUDES="-I\$(top_srcdir)/$modpath_current"
13072  else
13073    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
13074    for i in $apr_addto_bugger; do
13075      apr_addto_duplicate="0"
13076      for j in $INCLUDES; do
13077        if test "x$i" = "x$j"; then
13078          apr_addto_duplicate="1"
13079          break
13080        fi
13081      done
13082      if test $apr_addto_duplicate = "0"; then
13083        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
13084        INCLUDES="$INCLUDES $i"
13085      fi
13086    done
13087  fi
13088
13089
13090
13091  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
13092  echo "static = $modpath_static" >> $modpath_current/modules.mk
13093  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
13094  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13095    if eval val=\"\$MOD_$var\"; test -n "$val"; then
13096      echo "MOD_$var = $val" >> $modpath_current/modules.mk
13097    fi
13098  done
13099  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
13100    MODULE_DIRS="$MODULE_DIRS $current_dir"
13101  else
13102    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
13103  fi
13104
13105  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
13106
13107
13108
13109
13110
13111
13112  current_dir=core
13113  modpath_current=modules/core
13114  modpath_static=
13115  modpath_shared=
13116  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13117    eval MOD_$var=
13118  done
13119  test -d core || $srcdir/build/mkdir.sh $modpath_current
13120  > $modpath_current/modules.mk
13121
13122
13123
13124apr_old_cppflags=$CPPFLAGS
13125CPPFLAGS="$CPPFLAGS $INCLUDES"
13126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127/* end confdefs.h.  */
13128
13129#include <apr.h>
13130#if APR_HAS_DSO
13131YES_IS_DEFINED
13132#endif
13133
13134_ACEOF
13135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13136  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13137  ac_cv_define_APR_HAS_DSO=yes
13138else
13139  ac_cv_define_APR_HAS_DSO=no
13140fi
13141rm -f conftest*
13142
13143CPPFLAGS=$apr_old_cppflags
13144
13145
13146case "x$enable_so" in
13147    "xyes")
13148        if test $ac_cv_define_APR_HAS_DSO = "no"; then
13149            as_fn_error $? "mod_so has been requested but cannot be built on your system" "$LINENO" 5
13150        fi
13151        ;;
13152    "xshared")
13153        as_fn_error $? "mod_so can not be built as a shared DSO" "$LINENO" 5
13154        ;;
13155    "xno")
13156        ;;
13157    "x")
13158        enable_so=$ac_cv_define_APR_HAS_DSO
13159        ;;
13160esac
13161
13162if test "x$enable_so" = "xyes"; then
13163    enable_so="static"
13164fi
13165
13166if test "x$enable_so" = "xstatic"; then
13167
13168  if test "x$HTTPD_LDFLAGS" = "x"; then
13169    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"-export-dynamic\""
13170    HTTPD_LDFLAGS="-export-dynamic"
13171  else
13172    apr_addto_bugger="-export-dynamic"
13173    for i in $apr_addto_bugger; do
13174      apr_addto_duplicate="0"
13175      for j in $HTTPD_LDFLAGS; do
13176        if test "x$i" = "x$j"; then
13177          apr_addto_duplicate="1"
13178          break
13179        fi
13180      done
13181      if test $apr_addto_duplicate = "0"; then
13182        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
13183        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
13184      fi
13185    done
13186  fi
13187
13188    INSTALL_DSO=yes
13189else
13190    INSTALL_DSO=no
13191fi
13192
13193  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_DSO"
13194
13195
13196
13197if test "$sharedobjs" = "yes"; then
13198    if test $ac_cv_define_APR_HAS_DSO = "no"; then
13199        as_fn_error $? "shared objects have been requested but cannot be built since mod_so cannot be built" "$LINENO" 5
13200    elif test $enable_so = "no"; then
13201        as_fn_error $? "shared objects have been requested but cannot be built since mod_so was disabled" "$LINENO" 5
13202    fi
13203fi
13204
13205
13206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_so" >&5
13207$as_echo_n "checking whether to enable mod_so... " >&6; }
13208    # Check whether --enable-so was given.
13209if test "${enable_so+set}" = set; then :
13210  enableval=$enable_so; force_so=$enableval
13211else
13212  enable_so=$enable_so
13213fi
13214
13215    _apmod_extra_msg=""
13216        case "$enable_so" in
13217    yes|static|shared)
13218      _apmod_required="yes"
13219      ;;
13220    *)
13221      case "$module_selection" in
13222      reallyall|all|most)
13223        _apmod_required="no"
13224        ;;
13225      *)
13226        _apmod_required="yes"
13227        ;;
13228      esac
13229  esac
13230  if test "$enable_so" = "static"; then
13231    enable_so=static
13232  elif test "$enable_so" = "yes"; then
13233    enable_so=$module_default
13234  elif test "$enable_so" = "most"; then
13235    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13236            "$module_selection" = "reallyall"
13237    then
13238      enable_so=$module_default
13239    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13240      enable_so=no
13241    fi
13242    _apmod_extra_msg=" ($module_selection)"
13243  elif test "$enable_so" = "maybe-all"; then
13244    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13245    then
13246      enable_so=$module_default
13247      _apmod_extra_msg=" ($module_selection)"
13248    else
13249      enable_so=no
13250    fi
13251  elif test "$enable_so" = "no" -a "$module_selection" = "reallyall" -a \
13252            "$force_so" != "no" ; then
13253      enable_so=$module_default
13254      _apmod_extra_msg=" ($module_selection)"
13255  fi
13256  if test "$enable_so" != "no"; then
13257            :
13258  fi
13259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_so$_apmod_extra_msg" >&5
13260$as_echo "$enable_so$_apmod_extra_msg" >&6; }
13261  if test "$enable_so" != "no"; then
13262    case "$enable_so" in
13263    static*)
13264      MODLIST="$MODLIST so"
13265      if test "so" = "so"; then
13266          sharedobjs=yes
13267      fi
13268      shared="";;
13269    *)
13270      enable_so=`echo $enable_so|sed 's/shared,*//'`
13271      sharedobjs=yes
13272      shared=yes
13273      DSO_MODULES="$DSO_MODULES so"
13274      if test "$enable_so" = "yes" ; then
13275        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},so"
13276      fi
13277      ;;
13278    esac
13279
13280
13281  if test -z ""; then
13282    objects="mod_so.lo"
13283  else
13284    objects=""
13285  fi
13286
13287  if test -z "$module_standalone"; then
13288    if test -z "$shared"; then
13289      # The filename of a convenience library must have a "lib" prefix:
13290      libname="libmod_so.la"
13291      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13292      modpath_static="$modpath_static $libname"
13293      cat >>$modpath_current/modules.mk<<EOF
13294$libname: $objects
13295	\$(MOD_LINK) $objects \$(MOD_SO_LDADD)
13296EOF
13297      if test ! -z "\$(MOD_SO_LDADD)"; then
13298
13299  if test "x$AP_LIBS" = "x"; then
13300    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SO_LDADD)\""
13301    AP_LIBS="\$(MOD_SO_LDADD)"
13302  else
13303    apr_addto_bugger="\$(MOD_SO_LDADD)"
13304    for i in $apr_addto_bugger; do
13305      apr_addto_duplicate="0"
13306      for j in $AP_LIBS; do
13307        if test "x$i" = "x$j"; then
13308          apr_addto_duplicate="1"
13309          break
13310        fi
13311      done
13312      if test $apr_addto_duplicate = "0"; then
13313        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13314        AP_LIBS="$AP_LIBS $i"
13315      fi
13316    done
13317  fi
13318
13319      fi
13320    else
13321      apache_need_shared=yes
13322      libname="mod_so.la"
13323      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13324      modpath_shared="$modpath_shared $libname"
13325      cat >>$modpath_current/modules.mk<<EOF
13326$libname: $shobjects
13327	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SO_LDADD)
13328EOF
13329    fi
13330  fi
13331
13332
13333  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SO_LDADD"
13334
13335
13336
13337  fi
13338
13339
13340
13341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_watchdog" >&5
13342$as_echo_n "checking whether to enable mod_watchdog... " >&6; }
13343    # Check whether --enable-watchdog was given.
13344if test "${enable_watchdog+set}" = set; then :
13345  enableval=$enable_watchdog; force_watchdog=$enableval
13346else
13347  enable_watchdog=maybe-all
13348fi
13349
13350    _apmod_extra_msg=""
13351        case "$enable_watchdog" in
13352    yes|static|shared)
13353      _apmod_required="yes"
13354      ;;
13355    *)
13356      case "$module_selection" in
13357      reallyall|all|most)
13358        _apmod_required="no"
13359        ;;
13360      *)
13361        _apmod_required="yes"
13362        ;;
13363      esac
13364  esac
13365  if test "$enable_watchdog" = "static"; then
13366    enable_watchdog=static
13367  elif test "$enable_watchdog" = "yes"; then
13368    enable_watchdog=$module_default
13369  elif test "$enable_watchdog" = "most"; then
13370    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13371            "$module_selection" = "reallyall"
13372    then
13373      enable_watchdog=$module_default
13374    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13375      enable_watchdog=no
13376    fi
13377    _apmod_extra_msg=" ($module_selection)"
13378  elif test "$enable_watchdog" = "maybe-all"; then
13379    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13380    then
13381      enable_watchdog=$module_default
13382      _apmod_extra_msg=" ($module_selection)"
13383    else
13384      enable_watchdog=no
13385    fi
13386  elif test "$enable_watchdog" = "no" -a "$module_selection" = "reallyall" -a \
13387            "$force_watchdog" != "no" ; then
13388      enable_watchdog=$module_default
13389      _apmod_extra_msg=" ($module_selection)"
13390  fi
13391  if test "$enable_watchdog" != "no"; then
13392            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
13393$as_echo "checking dependencies" >&6; }
13394            :
13395
13396
13397apr_old_cppflags=$CPPFLAGS
13398CPPFLAGS="$CPPFLAGS $INCLUDES"
13399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400/* end confdefs.h.  */
13401
13402#include <apr.h>
13403#if APR_HAS_THREADS
13404YES_IS_DEFINED
13405#endif
13406
13407_ACEOF
13408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13409  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
13410  ac_cv_define_APR_HAS_THREADS=yes
13411else
13412  ac_cv_define_APR_HAS_THREADS=no
13413fi
13414rm -f conftest*
13415
13416CPPFLAGS=$apr_old_cppflags
13417
13418    if test $ac_cv_define_APR_HAS_THREADS = "no"; then
13419        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mod_watchdog requires apr to be built with --enable-threads" >&5
13420$as_echo "$as_me: WARNING: mod_watchdog requires apr to be built with --enable-threads" >&2;}
13421        enable_watchdog=no
13422    fi
13423
13424            :
13425            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_watchdog" >&5
13426$as_echo_n "checking whether to enable mod_watchdog... " >&6; }
13427            if test "$enable_watchdog" = "no"; then
13428              if test "$_apmod_required" = "no"; then
13429                _apmod_extra_msg=" (disabled)"
13430              else
13431                as_fn_error $? "mod_watchdog has been requested but can not be built due to prerequisite failures" "$LINENO" 5
13432              fi
13433            fi
13434  fi
13435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_watchdog$_apmod_extra_msg" >&5
13436$as_echo "$enable_watchdog$_apmod_extra_msg" >&6; }
13437  if test "$enable_watchdog" != "no"; then
13438    case "$enable_watchdog" in
13439    static*)
13440      MODLIST="$MODLIST watchdog"
13441      if test "watchdog" = "so"; then
13442          sharedobjs=yes
13443      fi
13444      shared="";;
13445    *)
13446      enable_watchdog=`echo $enable_watchdog|sed 's/shared,*//'`
13447      sharedobjs=yes
13448      shared=yes
13449      DSO_MODULES="$DSO_MODULES watchdog"
13450      if test "" = "yes" ; then
13451        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},watchdog"
13452      fi
13453      ;;
13454    esac
13455
13456
13457  if test -z ""; then
13458    objects="mod_watchdog.lo"
13459  else
13460    objects=""
13461  fi
13462
13463  if test -z "$module_standalone"; then
13464    if test -z "$shared"; then
13465      # The filename of a convenience library must have a "lib" prefix:
13466      libname="libmod_watchdog.la"
13467      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13468      modpath_static="$modpath_static $libname"
13469      cat >>$modpath_current/modules.mk<<EOF
13470$libname: $objects
13471	\$(MOD_LINK) $objects \$(MOD_WATCHDOG_LDADD)
13472EOF
13473      if test ! -z "\$(MOD_WATCHDOG_LDADD)"; then
13474
13475  if test "x$AP_LIBS" = "x"; then
13476    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_WATCHDOG_LDADD)\""
13477    AP_LIBS="\$(MOD_WATCHDOG_LDADD)"
13478  else
13479    apr_addto_bugger="\$(MOD_WATCHDOG_LDADD)"
13480    for i in $apr_addto_bugger; do
13481      apr_addto_duplicate="0"
13482      for j in $AP_LIBS; do
13483        if test "x$i" = "x$j"; then
13484          apr_addto_duplicate="1"
13485          break
13486        fi
13487      done
13488      if test $apr_addto_duplicate = "0"; then
13489        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13490        AP_LIBS="$AP_LIBS $i"
13491      fi
13492    done
13493  fi
13494
13495      fi
13496    else
13497      apache_need_shared=yes
13498      libname="mod_watchdog.la"
13499      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13500      modpath_shared="$modpath_shared $libname"
13501      cat >>$modpath_current/modules.mk<<EOF
13502$libname: $shobjects
13503	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_WATCHDOG_LDADD)
13504EOF
13505    fi
13506  fi
13507
13508
13509  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_WATCHDOG_LDADD"
13510
13511
13512
13513  fi
13514
13515
13516
13517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_macro" >&5
13518$as_echo_n "checking whether to enable mod_macro... " >&6; }
13519    # Check whether --enable-macro was given.
13520if test "${enable_macro+set}" = set; then :
13521  enableval=$enable_macro; force_macro=$enableval
13522else
13523  enable_macro=most
13524fi
13525
13526    _apmod_extra_msg=""
13527        case "$enable_macro" in
13528    yes|static|shared)
13529      _apmod_required="yes"
13530      ;;
13531    *)
13532      case "$module_selection" in
13533      reallyall|all|most)
13534        _apmod_required="no"
13535        ;;
13536      *)
13537        _apmod_required="yes"
13538        ;;
13539      esac
13540  esac
13541  if test "$enable_macro" = "static"; then
13542    enable_macro=static
13543  elif test "$enable_macro" = "yes"; then
13544    enable_macro=$module_default
13545  elif test "$enable_macro" = "most"; then
13546    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13547            "$module_selection" = "reallyall"
13548    then
13549      enable_macro=$module_default
13550    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13551      enable_macro=no
13552    fi
13553    _apmod_extra_msg=" ($module_selection)"
13554  elif test "$enable_macro" = "maybe-all"; then
13555    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13556    then
13557      enable_macro=$module_default
13558      _apmod_extra_msg=" ($module_selection)"
13559    else
13560      enable_macro=no
13561    fi
13562  elif test "$enable_macro" = "no" -a "$module_selection" = "reallyall" -a \
13563            "$force_macro" != "no" ; then
13564      enable_macro=$module_default
13565      _apmod_extra_msg=" ($module_selection)"
13566  fi
13567  if test "$enable_macro" != "no"; then
13568            :
13569  fi
13570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_macro$_apmod_extra_msg" >&5
13571$as_echo "$enable_macro$_apmod_extra_msg" >&6; }
13572  if test "$enable_macro" != "no"; then
13573    case "$enable_macro" in
13574    static*)
13575      MODLIST="$MODLIST macro"
13576      if test "macro" = "so"; then
13577          sharedobjs=yes
13578      fi
13579      shared="";;
13580    *)
13581      enable_macro=`echo $enable_macro|sed 's/shared,*//'`
13582      sharedobjs=yes
13583      shared=yes
13584      DSO_MODULES="$DSO_MODULES macro"
13585      if test "most" = "yes" ; then
13586        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},macro"
13587      fi
13588      ;;
13589    esac
13590
13591
13592  if test -z ""; then
13593    objects="mod_macro.lo"
13594  else
13595    objects=""
13596  fi
13597
13598  if test -z "$module_standalone"; then
13599    if test -z "$shared"; then
13600      # The filename of a convenience library must have a "lib" prefix:
13601      libname="libmod_macro.la"
13602      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13603      modpath_static="$modpath_static $libname"
13604      cat >>$modpath_current/modules.mk<<EOF
13605$libname: $objects
13606	\$(MOD_LINK) $objects \$(MOD_MACRO_LDADD)
13607EOF
13608      if test ! -z "\$(MOD_MACRO_LDADD)"; then
13609
13610  if test "x$AP_LIBS" = "x"; then
13611    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MACRO_LDADD)\""
13612    AP_LIBS="\$(MOD_MACRO_LDADD)"
13613  else
13614    apr_addto_bugger="\$(MOD_MACRO_LDADD)"
13615    for i in $apr_addto_bugger; do
13616      apr_addto_duplicate="0"
13617      for j in $AP_LIBS; do
13618        if test "x$i" = "x$j"; then
13619          apr_addto_duplicate="1"
13620          break
13621        fi
13622      done
13623      if test $apr_addto_duplicate = "0"; then
13624        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13625        AP_LIBS="$AP_LIBS $i"
13626      fi
13627    done
13628  fi
13629
13630      fi
13631    else
13632      apache_need_shared=yes
13633      libname="mod_macro.la"
13634      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13635      modpath_shared="$modpath_shared $libname"
13636      cat >>$modpath_current/modules.mk<<EOF
13637$libname: $shobjects
13638	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MACRO_LDADD)
13639EOF
13640    fi
13641  fi
13642
13643
13644  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MACRO_LDADD"
13645
13646
13647
13648  fi
13649
13650
13651
13652  if test "x$INCLUDES" = "x"; then
13653    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
13654    INCLUDES="-I\$(top_srcdir)/$modpath_current"
13655  else
13656    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
13657    for i in $apr_addto_bugger; do
13658      apr_addto_duplicate="0"
13659      for j in $INCLUDES; do
13660        if test "x$i" = "x$j"; then
13661          apr_addto_duplicate="1"
13662          break
13663        fi
13664      done
13665      if test $apr_addto_duplicate = "0"; then
13666        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
13667        INCLUDES="$INCLUDES $i"
13668      fi
13669    done
13670  fi
13671
13672
13673
13674  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
13675  echo "static = $modpath_static" >> $modpath_current/modules.mk
13676  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
13677  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13678    if eval val=\"\$MOD_$var\"; test -n "$val"; then
13679      echo "MOD_$var = $val" >> $modpath_current/modules.mk
13680    fi
13681  done
13682  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
13683    MODULE_DIRS="$MODULE_DIRS $current_dir"
13684  else
13685    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
13686  fi
13687
13688  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
13689
13690
13691
13692
13693
13694  current_dir=database
13695  modpath_current=modules/database
13696  modpath_static=
13697  modpath_shared=
13698  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13699    eval MOD_$var=
13700  done
13701  test -d database || $srcdir/build/mkdir.sh $modpath_current
13702  > $modpath_current/modules.mk
13703
13704
13705
13706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dbd" >&5
13707$as_echo_n "checking whether to enable mod_dbd... " >&6; }
13708    # Check whether --enable-dbd was given.
13709if test "${enable_dbd+set}" = set; then :
13710  enableval=$enable_dbd; force_dbd=$enableval
13711else
13712  enable_dbd=most
13713fi
13714
13715    _apmod_extra_msg=""
13716        case "$enable_dbd" in
13717    yes|static|shared)
13718      _apmod_required="yes"
13719      ;;
13720    *)
13721      case "$module_selection" in
13722      reallyall|all|most)
13723        _apmod_required="no"
13724        ;;
13725      *)
13726        _apmod_required="yes"
13727        ;;
13728      esac
13729  esac
13730  if test "$enable_dbd" = "static"; then
13731    enable_dbd=static
13732  elif test "$enable_dbd" = "yes"; then
13733    enable_dbd=$module_default
13734  elif test "$enable_dbd" = "most"; then
13735    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13736            "$module_selection" = "reallyall"
13737    then
13738      enable_dbd=$module_default
13739    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13740      enable_dbd=no
13741    fi
13742    _apmod_extra_msg=" ($module_selection)"
13743  elif test "$enable_dbd" = "maybe-all"; then
13744    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13745    then
13746      enable_dbd=$module_default
13747      _apmod_extra_msg=" ($module_selection)"
13748    else
13749      enable_dbd=no
13750    fi
13751  elif test "$enable_dbd" = "no" -a "$module_selection" = "reallyall" -a \
13752            "$force_dbd" != "no" ; then
13753      enable_dbd=$module_default
13754      _apmod_extra_msg=" ($module_selection)"
13755  fi
13756  if test "$enable_dbd" != "no"; then
13757            :
13758  fi
13759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dbd$_apmod_extra_msg" >&5
13760$as_echo "$enable_dbd$_apmod_extra_msg" >&6; }
13761  if test "$enable_dbd" != "no"; then
13762    case "$enable_dbd" in
13763    static*)
13764      MODLIST="$MODLIST dbd"
13765      if test "dbd" = "so"; then
13766          sharedobjs=yes
13767      fi
13768      shared="";;
13769    *)
13770      enable_dbd=`echo $enable_dbd|sed 's/shared,*//'`
13771      sharedobjs=yes
13772      shared=yes
13773      DSO_MODULES="$DSO_MODULES dbd"
13774      if test "most" = "yes" ; then
13775        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dbd"
13776      fi
13777      ;;
13778    esac
13779
13780
13781  if test -z ""; then
13782    objects="mod_dbd.lo"
13783  else
13784    objects=""
13785  fi
13786
13787  if test -z "$module_standalone"; then
13788    if test -z "$shared"; then
13789      # The filename of a convenience library must have a "lib" prefix:
13790      libname="libmod_dbd.la"
13791      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13792      modpath_static="$modpath_static $libname"
13793      cat >>$modpath_current/modules.mk<<EOF
13794$libname: $objects
13795	\$(MOD_LINK) $objects \$(MOD_DBD_LDADD)
13796EOF
13797      if test ! -z "\$(MOD_DBD_LDADD)"; then
13798
13799  if test "x$AP_LIBS" = "x"; then
13800    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DBD_LDADD)\""
13801    AP_LIBS="\$(MOD_DBD_LDADD)"
13802  else
13803    apr_addto_bugger="\$(MOD_DBD_LDADD)"
13804    for i in $apr_addto_bugger; do
13805      apr_addto_duplicate="0"
13806      for j in $AP_LIBS; do
13807        if test "x$i" = "x$j"; then
13808          apr_addto_duplicate="1"
13809          break
13810        fi
13811      done
13812      if test $apr_addto_duplicate = "0"; then
13813        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
13814        AP_LIBS="$AP_LIBS $i"
13815      fi
13816    done
13817  fi
13818
13819      fi
13820    else
13821      apache_need_shared=yes
13822      libname="mod_dbd.la"
13823      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
13824      modpath_shared="$modpath_shared $libname"
13825      cat >>$modpath_current/modules.mk<<EOF
13826$libname: $shobjects
13827	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DBD_LDADD)
13828EOF
13829    fi
13830  fi
13831
13832
13833  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DBD_LDADD"
13834
13835
13836
13837  fi
13838
13839
13840
13841  if test "x$INCLUDES" = "x"; then
13842    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
13843    INCLUDES="-I\$(top_srcdir)/$modpath_current"
13844  else
13845    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
13846    for i in $apr_addto_bugger; do
13847      apr_addto_duplicate="0"
13848      for j in $INCLUDES; do
13849        if test "x$i" = "x$j"; then
13850          apr_addto_duplicate="1"
13851          break
13852        fi
13853      done
13854      if test $apr_addto_duplicate = "0"; then
13855        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
13856        INCLUDES="$INCLUDES $i"
13857      fi
13858    done
13859  fi
13860
13861
13862
13863  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
13864  echo "static = $modpath_static" >> $modpath_current/modules.mk
13865  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
13866  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13867    if eval val=\"\$MOD_$var\"; test -n "$val"; then
13868      echo "MOD_$var = $val" >> $modpath_current/modules.mk
13869    fi
13870  done
13871  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
13872    MODULE_DIRS="$MODULE_DIRS $current_dir"
13873  else
13874    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
13875  fi
13876
13877  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
13878
13879
13880
13881
13882
13883  current_dir=debugging
13884  modpath_current=modules/debugging
13885  modpath_static=
13886  modpath_shared=
13887  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
13888    eval MOD_$var=
13889  done
13890  test -d debugging || $srcdir/build/mkdir.sh $modpath_current
13891  > $modpath_current/modules.mk
13892
13893
13894
13895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_bucketeer" >&5
13896$as_echo_n "checking whether to enable mod_bucketeer... " >&6; }
13897    # Check whether --enable-bucketeer was given.
13898if test "${enable_bucketeer+set}" = set; then :
13899  enableval=$enable_bucketeer; force_bucketeer=$enableval
13900else
13901  enable_bucketeer=no
13902fi
13903
13904    _apmod_extra_msg=""
13905        case "$enable_bucketeer" in
13906    yes|static|shared)
13907      _apmod_required="yes"
13908      ;;
13909    *)
13910      case "$module_selection" in
13911      reallyall|all|most)
13912        _apmod_required="no"
13913        ;;
13914      *)
13915        _apmod_required="yes"
13916        ;;
13917      esac
13918  esac
13919  if test "$enable_bucketeer" = "static"; then
13920    enable_bucketeer=static
13921  elif test "$enable_bucketeer" = "yes"; then
13922    enable_bucketeer=$module_default
13923  elif test "$enable_bucketeer" = "most"; then
13924    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
13925            "$module_selection" = "reallyall"
13926    then
13927      enable_bucketeer=$module_default
13928    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
13929      enable_bucketeer=no
13930    fi
13931    _apmod_extra_msg=" ($module_selection)"
13932  elif test "$enable_bucketeer" = "maybe-all"; then
13933    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
13934    then
13935      enable_bucketeer=$module_default
13936      _apmod_extra_msg=" ($module_selection)"
13937    else
13938      enable_bucketeer=no
13939    fi
13940  elif test "$enable_bucketeer" = "no" -a "$module_selection" = "reallyall" -a \
13941            "$force_bucketeer" != "no" ; then
13942      enable_bucketeer=$module_default
13943      _apmod_extra_msg=" ($module_selection)"
13944  fi
13945  if test "$enable_bucketeer" != "no"; then
13946            :
13947  fi
13948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bucketeer$_apmod_extra_msg" >&5
13949$as_echo "$enable_bucketeer$_apmod_extra_msg" >&6; }
13950  if test "$enable_bucketeer" != "no"; then
13951    case "$enable_bucketeer" in
13952    static*)
13953      MODLIST="$MODLIST bucketeer"
13954      if test "bucketeer" = "so"; then
13955          sharedobjs=yes
13956      fi
13957      shared="";;
13958    *)
13959      enable_bucketeer=`echo $enable_bucketeer|sed 's/shared,*//'`
13960      sharedobjs=yes
13961      shared=yes
13962      DSO_MODULES="$DSO_MODULES bucketeer"
13963      if test "no" = "yes" ; then
13964        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},bucketeer"
13965      fi
13966      ;;
13967    esac
13968
13969
13970  if test -z ""; then
13971    objects="mod_bucketeer.lo"
13972  else
13973    objects=""
13974  fi
13975
13976  if test -z "$module_standalone"; then
13977    if test -z "$shared"; then
13978      # The filename of a convenience library must have a "lib" prefix:
13979      libname="libmod_bucketeer.la"
13980      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
13981      modpath_static="$modpath_static $libname"
13982      cat >>$modpath_current/modules.mk<<EOF
13983$libname: $objects
13984	\$(MOD_LINK) $objects \$(MOD_BUCKETEER_LDADD)
13985EOF
13986      if test ! -z "\$(MOD_BUCKETEER_LDADD)"; then
13987
13988  if test "x$AP_LIBS" = "x"; then
13989    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_BUCKETEER_LDADD)\""
13990    AP_LIBS="\$(MOD_BUCKETEER_LDADD)"
13991  else
13992    apr_addto_bugger="\$(MOD_BUCKETEER_LDADD)"
13993    for i in $apr_addto_bugger; do
13994      apr_addto_duplicate="0"
13995      for j in $AP_LIBS; do
13996        if test "x$i" = "x$j"; then
13997          apr_addto_duplicate="1"
13998          break
13999        fi
14000      done
14001      if test $apr_addto_duplicate = "0"; then
14002        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14003        AP_LIBS="$AP_LIBS $i"
14004      fi
14005    done
14006  fi
14007
14008      fi
14009    else
14010      apache_need_shared=yes
14011      libname="mod_bucketeer.la"
14012      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14013      modpath_shared="$modpath_shared $libname"
14014      cat >>$modpath_current/modules.mk<<EOF
14015$libname: $shobjects
14016	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_BUCKETEER_LDADD)
14017EOF
14018    fi
14019  fi
14020
14021
14022  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BUCKETEER_LDADD"
14023
14024
14025
14026  fi
14027
14028
14029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dumpio" >&5
14030$as_echo_n "checking whether to enable mod_dumpio... " >&6; }
14031    # Check whether --enable-dumpio was given.
14032if test "${enable_dumpio+set}" = set; then :
14033  enableval=$enable_dumpio; force_dumpio=$enableval
14034else
14035  enable_dumpio=most
14036fi
14037
14038    _apmod_extra_msg=""
14039        case "$enable_dumpio" in
14040    yes|static|shared)
14041      _apmod_required="yes"
14042      ;;
14043    *)
14044      case "$module_selection" in
14045      reallyall|all|most)
14046        _apmod_required="no"
14047        ;;
14048      *)
14049        _apmod_required="yes"
14050        ;;
14051      esac
14052  esac
14053  if test "$enable_dumpio" = "static"; then
14054    enable_dumpio=static
14055  elif test "$enable_dumpio" = "yes"; then
14056    enable_dumpio=$module_default
14057  elif test "$enable_dumpio" = "most"; then
14058    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14059            "$module_selection" = "reallyall"
14060    then
14061      enable_dumpio=$module_default
14062    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14063      enable_dumpio=no
14064    fi
14065    _apmod_extra_msg=" ($module_selection)"
14066  elif test "$enable_dumpio" = "maybe-all"; then
14067    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14068    then
14069      enable_dumpio=$module_default
14070      _apmod_extra_msg=" ($module_selection)"
14071    else
14072      enable_dumpio=no
14073    fi
14074  elif test "$enable_dumpio" = "no" -a "$module_selection" = "reallyall" -a \
14075            "$force_dumpio" != "no" ; then
14076      enable_dumpio=$module_default
14077      _apmod_extra_msg=" ($module_selection)"
14078  fi
14079  if test "$enable_dumpio" != "no"; then
14080            :
14081  fi
14082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dumpio$_apmod_extra_msg" >&5
14083$as_echo "$enable_dumpio$_apmod_extra_msg" >&6; }
14084  if test "$enable_dumpio" != "no"; then
14085    case "$enable_dumpio" in
14086    static*)
14087      MODLIST="$MODLIST dumpio"
14088      if test "dumpio" = "so"; then
14089          sharedobjs=yes
14090      fi
14091      shared="";;
14092    *)
14093      enable_dumpio=`echo $enable_dumpio|sed 's/shared,*//'`
14094      sharedobjs=yes
14095      shared=yes
14096      DSO_MODULES="$DSO_MODULES dumpio"
14097      if test "most" = "yes" ; then
14098        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dumpio"
14099      fi
14100      ;;
14101    esac
14102
14103
14104  if test -z ""; then
14105    objects="mod_dumpio.lo"
14106  else
14107    objects=""
14108  fi
14109
14110  if test -z "$module_standalone"; then
14111    if test -z "$shared"; then
14112      # The filename of a convenience library must have a "lib" prefix:
14113      libname="libmod_dumpio.la"
14114      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14115      modpath_static="$modpath_static $libname"
14116      cat >>$modpath_current/modules.mk<<EOF
14117$libname: $objects
14118	\$(MOD_LINK) $objects \$(MOD_DUMPIO_LDADD)
14119EOF
14120      if test ! -z "\$(MOD_DUMPIO_LDADD)"; then
14121
14122  if test "x$AP_LIBS" = "x"; then
14123    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DUMPIO_LDADD)\""
14124    AP_LIBS="\$(MOD_DUMPIO_LDADD)"
14125  else
14126    apr_addto_bugger="\$(MOD_DUMPIO_LDADD)"
14127    for i in $apr_addto_bugger; do
14128      apr_addto_duplicate="0"
14129      for j in $AP_LIBS; do
14130        if test "x$i" = "x$j"; then
14131          apr_addto_duplicate="1"
14132          break
14133        fi
14134      done
14135      if test $apr_addto_duplicate = "0"; then
14136        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14137        AP_LIBS="$AP_LIBS $i"
14138      fi
14139    done
14140  fi
14141
14142      fi
14143    else
14144      apache_need_shared=yes
14145      libname="mod_dumpio.la"
14146      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14147      modpath_shared="$modpath_shared $libname"
14148      cat >>$modpath_current/modules.mk<<EOF
14149$libname: $shobjects
14150	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DUMPIO_LDADD)
14151EOF
14152    fi
14153  fi
14154
14155
14156  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DUMPIO_LDADD"
14157
14158
14159
14160  fi
14161
14162
14163
14164  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14165  echo "static = $modpath_static" >> $modpath_current/modules.mk
14166  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14167  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14168    if eval val=\"\$MOD_$var\"; test -n "$val"; then
14169      echo "MOD_$var = $val" >> $modpath_current/modules.mk
14170    fi
14171  done
14172  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14173    MODULE_DIRS="$MODULE_DIRS $current_dir"
14174  else
14175    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14176  fi
14177
14178  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14179
14180
14181
14182
14183
14184
14185  current_dir=echo
14186  modpath_current=modules/echo
14187  modpath_static=
14188  modpath_shared=
14189  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14190    eval MOD_$var=
14191  done
14192  test -d echo || $srcdir/build/mkdir.sh $modpath_current
14193  > $modpath_current/modules.mk
14194
14195
14196
14197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_echo" >&5
14198$as_echo_n "checking whether to enable mod_echo... " >&6; }
14199    # Check whether --enable-echo was given.
14200if test "${enable_echo+set}" = set; then :
14201  enableval=$enable_echo; force_echo=$enableval
14202else
14203  enable_echo=maybe-all
14204fi
14205
14206    _apmod_extra_msg=""
14207        case "$enable_echo" in
14208    yes|static|shared)
14209      _apmod_required="yes"
14210      ;;
14211    *)
14212      case "$module_selection" in
14213      reallyall|all|most)
14214        _apmod_required="no"
14215        ;;
14216      *)
14217        _apmod_required="yes"
14218        ;;
14219      esac
14220  esac
14221  if test "$enable_echo" = "static"; then
14222    enable_echo=static
14223  elif test "$enable_echo" = "yes"; then
14224    enable_echo=$module_default
14225  elif test "$enable_echo" = "most"; then
14226    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14227            "$module_selection" = "reallyall"
14228    then
14229      enable_echo=$module_default
14230    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14231      enable_echo=no
14232    fi
14233    _apmod_extra_msg=" ($module_selection)"
14234  elif test "$enable_echo" = "maybe-all"; then
14235    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14236    then
14237      enable_echo=$module_default
14238      _apmod_extra_msg=" ($module_selection)"
14239    else
14240      enable_echo=no
14241    fi
14242  elif test "$enable_echo" = "no" -a "$module_selection" = "reallyall" -a \
14243            "$force_echo" != "no" ; then
14244      enable_echo=$module_default
14245      _apmod_extra_msg=" ($module_selection)"
14246  fi
14247  if test "$enable_echo" != "no"; then
14248            :
14249  fi
14250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_echo$_apmod_extra_msg" >&5
14251$as_echo "$enable_echo$_apmod_extra_msg" >&6; }
14252  if test "$enable_echo" != "no"; then
14253    case "$enable_echo" in
14254    static*)
14255      MODLIST="$MODLIST echo"
14256      if test "echo" = "so"; then
14257          sharedobjs=yes
14258      fi
14259      shared="";;
14260    *)
14261      enable_echo=`echo $enable_echo|sed 's/shared,*//'`
14262      sharedobjs=yes
14263      shared=yes
14264      DSO_MODULES="$DSO_MODULES echo"
14265      if test "" = "yes" ; then
14266        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},echo"
14267      fi
14268      ;;
14269    esac
14270
14271
14272  if test -z ""; then
14273    objects="mod_echo.lo"
14274  else
14275    objects=""
14276  fi
14277
14278  if test -z "$module_standalone"; then
14279    if test -z "$shared"; then
14280      # The filename of a convenience library must have a "lib" prefix:
14281      libname="libmod_echo.la"
14282      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14283      modpath_static="$modpath_static $libname"
14284      cat >>$modpath_current/modules.mk<<EOF
14285$libname: $objects
14286	\$(MOD_LINK) $objects \$(MOD_ECHO_LDADD)
14287EOF
14288      if test ! -z "\$(MOD_ECHO_LDADD)"; then
14289
14290  if test "x$AP_LIBS" = "x"; then
14291    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ECHO_LDADD)\""
14292    AP_LIBS="\$(MOD_ECHO_LDADD)"
14293  else
14294    apr_addto_bugger="\$(MOD_ECHO_LDADD)"
14295    for i in $apr_addto_bugger; do
14296      apr_addto_duplicate="0"
14297      for j in $AP_LIBS; do
14298        if test "x$i" = "x$j"; then
14299          apr_addto_duplicate="1"
14300          break
14301        fi
14302      done
14303      if test $apr_addto_duplicate = "0"; then
14304        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14305        AP_LIBS="$AP_LIBS $i"
14306      fi
14307    done
14308  fi
14309
14310      fi
14311    else
14312      apache_need_shared=yes
14313      libname="mod_echo.la"
14314      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14315      modpath_shared="$modpath_shared $libname"
14316      cat >>$modpath_current/modules.mk<<EOF
14317$libname: $shobjects
14318	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ECHO_LDADD)
14319EOF
14320    fi
14321  fi
14322
14323
14324  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ECHO_LDADD"
14325
14326
14327
14328  fi
14329
14330
14331
14332  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14333  echo "static = $modpath_static" >> $modpath_current/modules.mk
14334  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14335  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14336    if eval val=\"\$MOD_$var\"; test -n "$val"; then
14337      echo "MOD_$var = $val" >> $modpath_current/modules.mk
14338    fi
14339  done
14340  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14341    MODULE_DIRS="$MODULE_DIRS $current_dir"
14342  else
14343    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14344  fi
14345
14346  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14347
14348
14349
14350
14351
14352  current_dir=examples
14353  modpath_current=modules/examples
14354  modpath_static=
14355  modpath_shared=
14356  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14357    eval MOD_$var=
14358  done
14359  test -d examples || $srcdir/build/mkdir.sh $modpath_current
14360  > $modpath_current/modules.mk
14361
14362
14363
14364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_example_hooks" >&5
14365$as_echo_n "checking whether to enable mod_example_hooks... " >&6; }
14366    # Check whether --enable-example-hooks was given.
14367if test "${enable_example_hooks+set}" = set; then :
14368  enableval=$enable_example_hooks; force_example_hooks=$enableval
14369else
14370  enable_example_hooks=no
14371fi
14372
14373    _apmod_extra_msg=""
14374        case "$enable_example_hooks" in
14375    yes|static|shared)
14376      _apmod_required="yes"
14377      ;;
14378    *)
14379      case "$module_selection" in
14380      reallyall|all|most)
14381        _apmod_required="no"
14382        ;;
14383      *)
14384        _apmod_required="yes"
14385        ;;
14386      esac
14387  esac
14388  if test "$enable_example_hooks" = "static"; then
14389    enable_example_hooks=static
14390  elif test "$enable_example_hooks" = "yes"; then
14391    enable_example_hooks=$module_default
14392  elif test "$enable_example_hooks" = "most"; then
14393    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14394            "$module_selection" = "reallyall"
14395    then
14396      enable_example_hooks=$module_default
14397    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14398      enable_example_hooks=no
14399    fi
14400    _apmod_extra_msg=" ($module_selection)"
14401  elif test "$enable_example_hooks" = "maybe-all"; then
14402    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14403    then
14404      enable_example_hooks=$module_default
14405      _apmod_extra_msg=" ($module_selection)"
14406    else
14407      enable_example_hooks=no
14408    fi
14409  elif test "$enable_example_hooks" = "no" -a "$module_selection" = "reallyall" -a \
14410            "$force_example_hooks" != "no" ; then
14411      enable_example_hooks=$module_default
14412      _apmod_extra_msg=" ($module_selection)"
14413  fi
14414  if test "$enable_example_hooks" != "no"; then
14415            :
14416  fi
14417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_example_hooks$_apmod_extra_msg" >&5
14418$as_echo "$enable_example_hooks$_apmod_extra_msg" >&6; }
14419  if test "$enable_example_hooks" != "no"; then
14420    case "$enable_example_hooks" in
14421    static*)
14422      MODLIST="$MODLIST example_hooks"
14423      if test "example_hooks" = "so"; then
14424          sharedobjs=yes
14425      fi
14426      shared="";;
14427    *)
14428      enable_example_hooks=`echo $enable_example_hooks|sed 's/shared,*//'`
14429      sharedobjs=yes
14430      shared=yes
14431      DSO_MODULES="$DSO_MODULES example_hooks"
14432      if test "no" = "yes" ; then
14433        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},example_hooks"
14434      fi
14435      ;;
14436    esac
14437
14438
14439  if test -z ""; then
14440    objects="mod_example_hooks.lo"
14441  else
14442    objects=""
14443  fi
14444
14445  if test -z "$module_standalone"; then
14446    if test -z "$shared"; then
14447      # The filename of a convenience library must have a "lib" prefix:
14448      libname="libmod_example_hooks.la"
14449      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14450      modpath_static="$modpath_static $libname"
14451      cat >>$modpath_current/modules.mk<<EOF
14452$libname: $objects
14453	\$(MOD_LINK) $objects \$(MOD_EXAMPLE_HOOKS_LDADD)
14454EOF
14455      if test ! -z "\$(MOD_EXAMPLE_HOOKS_LDADD)"; then
14456
14457  if test "x$AP_LIBS" = "x"; then
14458    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXAMPLE_HOOKS_LDADD)\""
14459    AP_LIBS="\$(MOD_EXAMPLE_HOOKS_LDADD)"
14460  else
14461    apr_addto_bugger="\$(MOD_EXAMPLE_HOOKS_LDADD)"
14462    for i in $apr_addto_bugger; do
14463      apr_addto_duplicate="0"
14464      for j in $AP_LIBS; do
14465        if test "x$i" = "x$j"; then
14466          apr_addto_duplicate="1"
14467          break
14468        fi
14469      done
14470      if test $apr_addto_duplicate = "0"; then
14471        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14472        AP_LIBS="$AP_LIBS $i"
14473      fi
14474    done
14475  fi
14476
14477      fi
14478    else
14479      apache_need_shared=yes
14480      libname="mod_example_hooks.la"
14481      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14482      modpath_shared="$modpath_shared $libname"
14483      cat >>$modpath_current/modules.mk<<EOF
14484$libname: $shobjects
14485	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXAMPLE_HOOKS_LDADD)
14486EOF
14487    fi
14488  fi
14489
14490
14491  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXAMPLE_HOOKS_LDADD"
14492
14493
14494
14495  fi
14496
14497
14498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_case_filter" >&5
14499$as_echo_n "checking whether to enable mod_case_filter... " >&6; }
14500    # Check whether --enable-case-filter was given.
14501if test "${enable_case_filter+set}" = set; then :
14502  enableval=$enable_case_filter; force_case_filter=$enableval
14503else
14504  enable_case_filter=no
14505fi
14506
14507    _apmod_extra_msg=""
14508        case "$enable_case_filter" in
14509    yes|static|shared)
14510      _apmod_required="yes"
14511      ;;
14512    *)
14513      case "$module_selection" in
14514      reallyall|all|most)
14515        _apmod_required="no"
14516        ;;
14517      *)
14518        _apmod_required="yes"
14519        ;;
14520      esac
14521  esac
14522  if test "$enable_case_filter" = "static"; then
14523    enable_case_filter=static
14524  elif test "$enable_case_filter" = "yes"; then
14525    enable_case_filter=$module_default
14526  elif test "$enable_case_filter" = "most"; then
14527    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14528            "$module_selection" = "reallyall"
14529    then
14530      enable_case_filter=$module_default
14531    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14532      enable_case_filter=no
14533    fi
14534    _apmod_extra_msg=" ($module_selection)"
14535  elif test "$enable_case_filter" = "maybe-all"; then
14536    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14537    then
14538      enable_case_filter=$module_default
14539      _apmod_extra_msg=" ($module_selection)"
14540    else
14541      enable_case_filter=no
14542    fi
14543  elif test "$enable_case_filter" = "no" -a "$module_selection" = "reallyall" -a \
14544            "$force_case_filter" != "no" ; then
14545      enable_case_filter=$module_default
14546      _apmod_extra_msg=" ($module_selection)"
14547  fi
14548  if test "$enable_case_filter" != "no"; then
14549            :
14550  fi
14551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_case_filter$_apmod_extra_msg" >&5
14552$as_echo "$enable_case_filter$_apmod_extra_msg" >&6; }
14553  if test "$enable_case_filter" != "no"; then
14554    case "$enable_case_filter" in
14555    static*)
14556      MODLIST="$MODLIST case_filter"
14557      if test "case_filter" = "so"; then
14558          sharedobjs=yes
14559      fi
14560      shared="";;
14561    *)
14562      enable_case_filter=`echo $enable_case_filter|sed 's/shared,*//'`
14563      sharedobjs=yes
14564      shared=yes
14565      DSO_MODULES="$DSO_MODULES case_filter"
14566      if test "no" = "yes" ; then
14567        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},case_filter"
14568      fi
14569      ;;
14570    esac
14571
14572
14573  if test -z ""; then
14574    objects="mod_case_filter.lo"
14575  else
14576    objects=""
14577  fi
14578
14579  if test -z "$module_standalone"; then
14580    if test -z "$shared"; then
14581      # The filename of a convenience library must have a "lib" prefix:
14582      libname="libmod_case_filter.la"
14583      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14584      modpath_static="$modpath_static $libname"
14585      cat >>$modpath_current/modules.mk<<EOF
14586$libname: $objects
14587	\$(MOD_LINK) $objects \$(MOD_CASE_FILTER_LDADD)
14588EOF
14589      if test ! -z "\$(MOD_CASE_FILTER_LDADD)"; then
14590
14591  if test "x$AP_LIBS" = "x"; then
14592    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CASE_FILTER_LDADD)\""
14593    AP_LIBS="\$(MOD_CASE_FILTER_LDADD)"
14594  else
14595    apr_addto_bugger="\$(MOD_CASE_FILTER_LDADD)"
14596    for i in $apr_addto_bugger; do
14597      apr_addto_duplicate="0"
14598      for j in $AP_LIBS; do
14599        if test "x$i" = "x$j"; then
14600          apr_addto_duplicate="1"
14601          break
14602        fi
14603      done
14604      if test $apr_addto_duplicate = "0"; then
14605        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14606        AP_LIBS="$AP_LIBS $i"
14607      fi
14608    done
14609  fi
14610
14611      fi
14612    else
14613      apache_need_shared=yes
14614      libname="mod_case_filter.la"
14615      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14616      modpath_shared="$modpath_shared $libname"
14617      cat >>$modpath_current/modules.mk<<EOF
14618$libname: $shobjects
14619	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_LDADD)
14620EOF
14621    fi
14622  fi
14623
14624
14625  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_LDADD"
14626
14627
14628
14629  fi
14630
14631
14632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_case_filter_in" >&5
14633$as_echo_n "checking whether to enable mod_case_filter_in... " >&6; }
14634    # Check whether --enable-case-filter-in was given.
14635if test "${enable_case_filter_in+set}" = set; then :
14636  enableval=$enable_case_filter_in; force_case_filter_in=$enableval
14637else
14638  enable_case_filter_in=no
14639fi
14640
14641    _apmod_extra_msg=""
14642        case "$enable_case_filter_in" in
14643    yes|static|shared)
14644      _apmod_required="yes"
14645      ;;
14646    *)
14647      case "$module_selection" in
14648      reallyall|all|most)
14649        _apmod_required="no"
14650        ;;
14651      *)
14652        _apmod_required="yes"
14653        ;;
14654      esac
14655  esac
14656  if test "$enable_case_filter_in" = "static"; then
14657    enable_case_filter_in=static
14658  elif test "$enable_case_filter_in" = "yes"; then
14659    enable_case_filter_in=$module_default
14660  elif test "$enable_case_filter_in" = "most"; then
14661    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14662            "$module_selection" = "reallyall"
14663    then
14664      enable_case_filter_in=$module_default
14665    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14666      enable_case_filter_in=no
14667    fi
14668    _apmod_extra_msg=" ($module_selection)"
14669  elif test "$enable_case_filter_in" = "maybe-all"; then
14670    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14671    then
14672      enable_case_filter_in=$module_default
14673      _apmod_extra_msg=" ($module_selection)"
14674    else
14675      enable_case_filter_in=no
14676    fi
14677  elif test "$enable_case_filter_in" = "no" -a "$module_selection" = "reallyall" -a \
14678            "$force_case_filter_in" != "no" ; then
14679      enable_case_filter_in=$module_default
14680      _apmod_extra_msg=" ($module_selection)"
14681  fi
14682  if test "$enable_case_filter_in" != "no"; then
14683            :
14684  fi
14685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_case_filter_in$_apmod_extra_msg" >&5
14686$as_echo "$enable_case_filter_in$_apmod_extra_msg" >&6; }
14687  if test "$enable_case_filter_in" != "no"; then
14688    case "$enable_case_filter_in" in
14689    static*)
14690      MODLIST="$MODLIST case_filter_in"
14691      if test "case_filter_in" = "so"; then
14692          sharedobjs=yes
14693      fi
14694      shared="";;
14695    *)
14696      enable_case_filter_in=`echo $enable_case_filter_in|sed 's/shared,*//'`
14697      sharedobjs=yes
14698      shared=yes
14699      DSO_MODULES="$DSO_MODULES case_filter_in"
14700      if test "no" = "yes" ; then
14701        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},case_filter_in"
14702      fi
14703      ;;
14704    esac
14705
14706
14707  if test -z ""; then
14708    objects="mod_case_filter_in.lo"
14709  else
14710    objects=""
14711  fi
14712
14713  if test -z "$module_standalone"; then
14714    if test -z "$shared"; then
14715      # The filename of a convenience library must have a "lib" prefix:
14716      libname="libmod_case_filter_in.la"
14717      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14718      modpath_static="$modpath_static $libname"
14719      cat >>$modpath_current/modules.mk<<EOF
14720$libname: $objects
14721	\$(MOD_LINK) $objects \$(MOD_CASE_FILTER_IN_LDADD)
14722EOF
14723      if test ! -z "\$(MOD_CASE_FILTER_IN_LDADD)"; then
14724
14725  if test "x$AP_LIBS" = "x"; then
14726    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CASE_FILTER_IN_LDADD)\""
14727    AP_LIBS="\$(MOD_CASE_FILTER_IN_LDADD)"
14728  else
14729    apr_addto_bugger="\$(MOD_CASE_FILTER_IN_LDADD)"
14730    for i in $apr_addto_bugger; do
14731      apr_addto_duplicate="0"
14732      for j in $AP_LIBS; do
14733        if test "x$i" = "x$j"; then
14734          apr_addto_duplicate="1"
14735          break
14736        fi
14737      done
14738      if test $apr_addto_duplicate = "0"; then
14739        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14740        AP_LIBS="$AP_LIBS $i"
14741      fi
14742    done
14743  fi
14744
14745      fi
14746    else
14747      apache_need_shared=yes
14748      libname="mod_case_filter_in.la"
14749      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14750      modpath_shared="$modpath_shared $libname"
14751      cat >>$modpath_current/modules.mk<<EOF
14752$libname: $shobjects
14753	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_IN_LDADD)
14754EOF
14755    fi
14756  fi
14757
14758
14759  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_IN_LDADD"
14760
14761
14762
14763  fi
14764
14765
14766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_example_ipc" >&5
14767$as_echo_n "checking whether to enable mod_example_ipc... " >&6; }
14768    # Check whether --enable-example-ipc was given.
14769if test "${enable_example_ipc+set}" = set; then :
14770  enableval=$enable_example_ipc; force_example_ipc=$enableval
14771else
14772  enable_example_ipc=no
14773fi
14774
14775    _apmod_extra_msg=""
14776        case "$enable_example_ipc" in
14777    yes|static|shared)
14778      _apmod_required="yes"
14779      ;;
14780    *)
14781      case "$module_selection" in
14782      reallyall|all|most)
14783        _apmod_required="no"
14784        ;;
14785      *)
14786        _apmod_required="yes"
14787        ;;
14788      esac
14789  esac
14790  if test "$enable_example_ipc" = "static"; then
14791    enable_example_ipc=static
14792  elif test "$enable_example_ipc" = "yes"; then
14793    enable_example_ipc=$module_default
14794  elif test "$enable_example_ipc" = "most"; then
14795    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14796            "$module_selection" = "reallyall"
14797    then
14798      enable_example_ipc=$module_default
14799    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
14800      enable_example_ipc=no
14801    fi
14802    _apmod_extra_msg=" ($module_selection)"
14803  elif test "$enable_example_ipc" = "maybe-all"; then
14804    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
14805    then
14806      enable_example_ipc=$module_default
14807      _apmod_extra_msg=" ($module_selection)"
14808    else
14809      enable_example_ipc=no
14810    fi
14811  elif test "$enable_example_ipc" = "no" -a "$module_selection" = "reallyall" -a \
14812            "$force_example_ipc" != "no" ; then
14813      enable_example_ipc=$module_default
14814      _apmod_extra_msg=" ($module_selection)"
14815  fi
14816  if test "$enable_example_ipc" != "no"; then
14817            :
14818  fi
14819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_example_ipc$_apmod_extra_msg" >&5
14820$as_echo "$enable_example_ipc$_apmod_extra_msg" >&6; }
14821  if test "$enable_example_ipc" != "no"; then
14822    case "$enable_example_ipc" in
14823    static*)
14824      MODLIST="$MODLIST example_ipc"
14825      if test "example_ipc" = "so"; then
14826          sharedobjs=yes
14827      fi
14828      shared="";;
14829    *)
14830      enable_example_ipc=`echo $enable_example_ipc|sed 's/shared,*//'`
14831      sharedobjs=yes
14832      shared=yes
14833      DSO_MODULES="$DSO_MODULES example_ipc"
14834      if test "no" = "yes" ; then
14835        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},example_ipc"
14836      fi
14837      ;;
14838    esac
14839
14840
14841  if test -z ""; then
14842    objects="mod_example_ipc.lo"
14843  else
14844    objects=""
14845  fi
14846
14847  if test -z "$module_standalone"; then
14848    if test -z "$shared"; then
14849      # The filename of a convenience library must have a "lib" prefix:
14850      libname="libmod_example_ipc.la"
14851      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
14852      modpath_static="$modpath_static $libname"
14853      cat >>$modpath_current/modules.mk<<EOF
14854$libname: $objects
14855	\$(MOD_LINK) $objects \$(MOD_EXAMPLE_IPC_LDADD)
14856EOF
14857      if test ! -z "\$(MOD_EXAMPLE_IPC_LDADD)"; then
14858
14859  if test "x$AP_LIBS" = "x"; then
14860    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXAMPLE_IPC_LDADD)\""
14861    AP_LIBS="\$(MOD_EXAMPLE_IPC_LDADD)"
14862  else
14863    apr_addto_bugger="\$(MOD_EXAMPLE_IPC_LDADD)"
14864    for i in $apr_addto_bugger; do
14865      apr_addto_duplicate="0"
14866      for j in $AP_LIBS; do
14867        if test "x$i" = "x$j"; then
14868          apr_addto_duplicate="1"
14869          break
14870        fi
14871      done
14872      if test $apr_addto_duplicate = "0"; then
14873        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
14874        AP_LIBS="$AP_LIBS $i"
14875      fi
14876    done
14877  fi
14878
14879      fi
14880    else
14881      apache_need_shared=yes
14882      libname="mod_example_ipc.la"
14883      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
14884      modpath_shared="$modpath_shared $libname"
14885      cat >>$modpath_current/modules.mk<<EOF
14886$libname: $shobjects
14887	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXAMPLE_IPC_LDADD)
14888EOF
14889    fi
14890  fi
14891
14892
14893  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXAMPLE_IPC_LDADD"
14894
14895
14896
14897  fi
14898
14899
14900
14901  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14902  echo "static = $modpath_static" >> $modpath_current/modules.mk
14903  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14904  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14905    if eval val=\"\$MOD_$var\"; test -n "$val"; then
14906      echo "MOD_$var = $val" >> $modpath_current/modules.mk
14907    fi
14908  done
14909  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14910    MODULE_DIRS="$MODULE_DIRS $current_dir"
14911  else
14912    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14913  fi
14914
14915  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14916
14917
14918
14919
14920
14921  current_dir=experimental
14922  modpath_current=modules/experimental
14923  modpath_static=
14924  modpath_shared=
14925  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14926    eval MOD_$var=
14927  done
14928  test -d experimental || $srcdir/build/mkdir.sh $modpath_current
14929  > $modpath_current/modules.mk
14930
14931
14932
14933  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
14934  echo "static = $modpath_static" >> $modpath_current/modules.mk
14935  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
14936  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14937    if eval val=\"\$MOD_$var\"; test -n "$val"; then
14938      echo "MOD_$var = $val" >> $modpath_current/modules.mk
14939    fi
14940  done
14941  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
14942    MODULE_DIRS="$MODULE_DIRS $current_dir"
14943  else
14944    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
14945  fi
14946
14947  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
14948
14949
14950
14951
14952
14953
14954  current_dir=filters
14955  modpath_current=modules/filters
14956  modpath_static=
14957  modpath_shared=
14958  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
14959    eval MOD_$var=
14960  done
14961  test -d filters || $srcdir/build/mkdir.sh $modpath_current
14962  > $modpath_current/modules.mk
14963
14964
14965
14966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_buffer" >&5
14967$as_echo_n "checking whether to enable mod_buffer... " >&6; }
14968    # Check whether --enable-buffer was given.
14969if test "${enable_buffer+set}" = set; then :
14970  enableval=$enable_buffer; force_buffer=$enableval
14971else
14972  enable_buffer=most
14973fi
14974
14975    _apmod_extra_msg=""
14976        case "$enable_buffer" in
14977    yes|static|shared)
14978      _apmod_required="yes"
14979      ;;
14980    *)
14981      case "$module_selection" in
14982      reallyall|all|most)
14983        _apmod_required="no"
14984        ;;
14985      *)
14986        _apmod_required="yes"
14987        ;;
14988      esac
14989  esac
14990  if test "$enable_buffer" = "static"; then
14991    enable_buffer=static
14992  elif test "$enable_buffer" = "yes"; then
14993    enable_buffer=$module_default
14994  elif test "$enable_buffer" = "most"; then
14995    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
14996            "$module_selection" = "reallyall"
14997    then
14998      enable_buffer=$module_default
14999    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15000      enable_buffer=no
15001    fi
15002    _apmod_extra_msg=" ($module_selection)"
15003  elif test "$enable_buffer" = "maybe-all"; then
15004    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15005    then
15006      enable_buffer=$module_default
15007      _apmod_extra_msg=" ($module_selection)"
15008    else
15009      enable_buffer=no
15010    fi
15011  elif test "$enable_buffer" = "no" -a "$module_selection" = "reallyall" -a \
15012            "$force_buffer" != "no" ; then
15013      enable_buffer=$module_default
15014      _apmod_extra_msg=" ($module_selection)"
15015  fi
15016  if test "$enable_buffer" != "no"; then
15017            :
15018  fi
15019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_buffer$_apmod_extra_msg" >&5
15020$as_echo "$enable_buffer$_apmod_extra_msg" >&6; }
15021  if test "$enable_buffer" != "no"; then
15022    case "$enable_buffer" in
15023    static*)
15024      MODLIST="$MODLIST buffer"
15025      if test "buffer" = "so"; then
15026          sharedobjs=yes
15027      fi
15028      shared="";;
15029    *)
15030      enable_buffer=`echo $enable_buffer|sed 's/shared,*//'`
15031      sharedobjs=yes
15032      shared=yes
15033      DSO_MODULES="$DSO_MODULES buffer"
15034      if test "most" = "yes" ; then
15035        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},buffer"
15036      fi
15037      ;;
15038    esac
15039
15040
15041  if test -z ""; then
15042    objects="mod_buffer.lo"
15043  else
15044    objects=""
15045  fi
15046
15047  if test -z "$module_standalone"; then
15048    if test -z "$shared"; then
15049      # The filename of a convenience library must have a "lib" prefix:
15050      libname="libmod_buffer.la"
15051      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15052      modpath_static="$modpath_static $libname"
15053      cat >>$modpath_current/modules.mk<<EOF
15054$libname: $objects
15055	\$(MOD_LINK) $objects \$(MOD_BUFFER_LDADD)
15056EOF
15057      if test ! -z "\$(MOD_BUFFER_LDADD)"; then
15058
15059  if test "x$AP_LIBS" = "x"; then
15060    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_BUFFER_LDADD)\""
15061    AP_LIBS="\$(MOD_BUFFER_LDADD)"
15062  else
15063    apr_addto_bugger="\$(MOD_BUFFER_LDADD)"
15064    for i in $apr_addto_bugger; do
15065      apr_addto_duplicate="0"
15066      for j in $AP_LIBS; do
15067        if test "x$i" = "x$j"; then
15068          apr_addto_duplicate="1"
15069          break
15070        fi
15071      done
15072      if test $apr_addto_duplicate = "0"; then
15073        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15074        AP_LIBS="$AP_LIBS $i"
15075      fi
15076    done
15077  fi
15078
15079      fi
15080    else
15081      apache_need_shared=yes
15082      libname="mod_buffer.la"
15083      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15084      modpath_shared="$modpath_shared $libname"
15085      cat >>$modpath_current/modules.mk<<EOF
15086$libname: $shobjects
15087	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_BUFFER_LDADD)
15088EOF
15089    fi
15090  fi
15091
15092
15093  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BUFFER_LDADD"
15094
15095
15096
15097  fi
15098
15099
15100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_data" >&5
15101$as_echo_n "checking whether to enable mod_data... " >&6; }
15102    # Check whether --enable-data was given.
15103if test "${enable_data+set}" = set; then :
15104  enableval=$enable_data; force_data=$enableval
15105else
15106  enable_data=maybe-all
15107fi
15108
15109    _apmod_extra_msg=""
15110        case "$enable_data" in
15111    yes|static|shared)
15112      _apmod_required="yes"
15113      ;;
15114    *)
15115      case "$module_selection" in
15116      reallyall|all|most)
15117        _apmod_required="no"
15118        ;;
15119      *)
15120        _apmod_required="yes"
15121        ;;
15122      esac
15123  esac
15124  if test "$enable_data" = "static"; then
15125    enable_data=static
15126  elif test "$enable_data" = "yes"; then
15127    enable_data=$module_default
15128  elif test "$enable_data" = "most"; then
15129    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15130            "$module_selection" = "reallyall"
15131    then
15132      enable_data=$module_default
15133    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15134      enable_data=no
15135    fi
15136    _apmod_extra_msg=" ($module_selection)"
15137  elif test "$enable_data" = "maybe-all"; then
15138    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15139    then
15140      enable_data=$module_default
15141      _apmod_extra_msg=" ($module_selection)"
15142    else
15143      enable_data=no
15144    fi
15145  elif test "$enable_data" = "no" -a "$module_selection" = "reallyall" -a \
15146            "$force_data" != "no" ; then
15147      enable_data=$module_default
15148      _apmod_extra_msg=" ($module_selection)"
15149  fi
15150  if test "$enable_data" != "no"; then
15151            :
15152  fi
15153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_data$_apmod_extra_msg" >&5
15154$as_echo "$enable_data$_apmod_extra_msg" >&6; }
15155  if test "$enable_data" != "no"; then
15156    case "$enable_data" in
15157    static*)
15158      MODLIST="$MODLIST data"
15159      if test "data" = "so"; then
15160          sharedobjs=yes
15161      fi
15162      shared="";;
15163    *)
15164      enable_data=`echo $enable_data|sed 's/shared,*//'`
15165      sharedobjs=yes
15166      shared=yes
15167      DSO_MODULES="$DSO_MODULES data"
15168      if test "" = "yes" ; then
15169        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},data"
15170      fi
15171      ;;
15172    esac
15173
15174
15175  if test -z ""; then
15176    objects="mod_data.lo"
15177  else
15178    objects=""
15179  fi
15180
15181  if test -z "$module_standalone"; then
15182    if test -z "$shared"; then
15183      # The filename of a convenience library must have a "lib" prefix:
15184      libname="libmod_data.la"
15185      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15186      modpath_static="$modpath_static $libname"
15187      cat >>$modpath_current/modules.mk<<EOF
15188$libname: $objects
15189	\$(MOD_LINK) $objects \$(MOD_DATA_LDADD)
15190EOF
15191      if test ! -z "\$(MOD_DATA_LDADD)"; then
15192
15193  if test "x$AP_LIBS" = "x"; then
15194    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DATA_LDADD)\""
15195    AP_LIBS="\$(MOD_DATA_LDADD)"
15196  else
15197    apr_addto_bugger="\$(MOD_DATA_LDADD)"
15198    for i in $apr_addto_bugger; do
15199      apr_addto_duplicate="0"
15200      for j in $AP_LIBS; do
15201        if test "x$i" = "x$j"; then
15202          apr_addto_duplicate="1"
15203          break
15204        fi
15205      done
15206      if test $apr_addto_duplicate = "0"; then
15207        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15208        AP_LIBS="$AP_LIBS $i"
15209      fi
15210    done
15211  fi
15212
15213      fi
15214    else
15215      apache_need_shared=yes
15216      libname="mod_data.la"
15217      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15218      modpath_shared="$modpath_shared $libname"
15219      cat >>$modpath_current/modules.mk<<EOF
15220$libname: $shobjects
15221	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DATA_LDADD)
15222EOF
15223    fi
15224  fi
15225
15226
15227  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DATA_LDADD"
15228
15229
15230
15231  fi
15232
15233
15234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ratelimit" >&5
15235$as_echo_n "checking whether to enable mod_ratelimit... " >&6; }
15236    # Check whether --enable-ratelimit was given.
15237if test "${enable_ratelimit+set}" = set; then :
15238  enableval=$enable_ratelimit; force_ratelimit=$enableval
15239else
15240  enable_ratelimit=most
15241fi
15242
15243    _apmod_extra_msg=""
15244        case "$enable_ratelimit" in
15245    yes|static|shared)
15246      _apmod_required="yes"
15247      ;;
15248    *)
15249      case "$module_selection" in
15250      reallyall|all|most)
15251        _apmod_required="no"
15252        ;;
15253      *)
15254        _apmod_required="yes"
15255        ;;
15256      esac
15257  esac
15258  if test "$enable_ratelimit" = "static"; then
15259    enable_ratelimit=static
15260  elif test "$enable_ratelimit" = "yes"; then
15261    enable_ratelimit=$module_default
15262  elif test "$enable_ratelimit" = "most"; then
15263    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15264            "$module_selection" = "reallyall"
15265    then
15266      enable_ratelimit=$module_default
15267    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15268      enable_ratelimit=no
15269    fi
15270    _apmod_extra_msg=" ($module_selection)"
15271  elif test "$enable_ratelimit" = "maybe-all"; then
15272    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15273    then
15274      enable_ratelimit=$module_default
15275      _apmod_extra_msg=" ($module_selection)"
15276    else
15277      enable_ratelimit=no
15278    fi
15279  elif test "$enable_ratelimit" = "no" -a "$module_selection" = "reallyall" -a \
15280            "$force_ratelimit" != "no" ; then
15281      enable_ratelimit=$module_default
15282      _apmod_extra_msg=" ($module_selection)"
15283  fi
15284  if test "$enable_ratelimit" != "no"; then
15285            :
15286  fi
15287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ratelimit$_apmod_extra_msg" >&5
15288$as_echo "$enable_ratelimit$_apmod_extra_msg" >&6; }
15289  if test "$enable_ratelimit" != "no"; then
15290    case "$enable_ratelimit" in
15291    static*)
15292      MODLIST="$MODLIST ratelimit"
15293      if test "ratelimit" = "so"; then
15294          sharedobjs=yes
15295      fi
15296      shared="";;
15297    *)
15298      enable_ratelimit=`echo $enable_ratelimit|sed 's/shared,*//'`
15299      sharedobjs=yes
15300      shared=yes
15301      DSO_MODULES="$DSO_MODULES ratelimit"
15302      if test "most" = "yes" ; then
15303        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ratelimit"
15304      fi
15305      ;;
15306    esac
15307
15308
15309  if test -z ""; then
15310    objects="mod_ratelimit.lo"
15311  else
15312    objects=""
15313  fi
15314
15315  if test -z "$module_standalone"; then
15316    if test -z "$shared"; then
15317      # The filename of a convenience library must have a "lib" prefix:
15318      libname="libmod_ratelimit.la"
15319      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15320      modpath_static="$modpath_static $libname"
15321      cat >>$modpath_current/modules.mk<<EOF
15322$libname: $objects
15323	\$(MOD_LINK) $objects \$(MOD_RATELIMIT_LDADD)
15324EOF
15325      if test ! -z "\$(MOD_RATELIMIT_LDADD)"; then
15326
15327  if test "x$AP_LIBS" = "x"; then
15328    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_RATELIMIT_LDADD)\""
15329    AP_LIBS="\$(MOD_RATELIMIT_LDADD)"
15330  else
15331    apr_addto_bugger="\$(MOD_RATELIMIT_LDADD)"
15332    for i in $apr_addto_bugger; do
15333      apr_addto_duplicate="0"
15334      for j in $AP_LIBS; do
15335        if test "x$i" = "x$j"; then
15336          apr_addto_duplicate="1"
15337          break
15338        fi
15339      done
15340      if test $apr_addto_duplicate = "0"; then
15341        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15342        AP_LIBS="$AP_LIBS $i"
15343      fi
15344    done
15345  fi
15346
15347      fi
15348    else
15349      apache_need_shared=yes
15350      libname="mod_ratelimit.la"
15351      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15352      modpath_shared="$modpath_shared $libname"
15353      cat >>$modpath_current/modules.mk<<EOF
15354$libname: $shobjects
15355	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_RATELIMIT_LDADD)
15356EOF
15357    fi
15358  fi
15359
15360
15361  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_RATELIMIT_LDADD"
15362
15363
15364
15365  fi
15366
15367
15368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_reqtimeout" >&5
15369$as_echo_n "checking whether to enable mod_reqtimeout... " >&6; }
15370    # Check whether --enable-reqtimeout was given.
15371if test "${enable_reqtimeout+set}" = set; then :
15372  enableval=$enable_reqtimeout; force_reqtimeout=$enableval
15373else
15374  enable_reqtimeout=yes
15375fi
15376
15377    _apmod_extra_msg=""
15378        case "$enable_reqtimeout" in
15379    yes|static|shared)
15380      _apmod_required="yes"
15381      ;;
15382    *)
15383      case "$module_selection" in
15384      reallyall|all|most)
15385        _apmod_required="no"
15386        ;;
15387      *)
15388        _apmod_required="yes"
15389        ;;
15390      esac
15391  esac
15392  if test "$enable_reqtimeout" = "static"; then
15393    enable_reqtimeout=static
15394  elif test "$enable_reqtimeout" = "yes"; then
15395    enable_reqtimeout=$module_default
15396  elif test "$enable_reqtimeout" = "most"; then
15397    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15398            "$module_selection" = "reallyall"
15399    then
15400      enable_reqtimeout=$module_default
15401    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15402      enable_reqtimeout=no
15403    fi
15404    _apmod_extra_msg=" ($module_selection)"
15405  elif test "$enable_reqtimeout" = "maybe-all"; then
15406    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15407    then
15408      enable_reqtimeout=$module_default
15409      _apmod_extra_msg=" ($module_selection)"
15410    else
15411      enable_reqtimeout=no
15412    fi
15413  elif test "$enable_reqtimeout" = "no" -a "$module_selection" = "reallyall" -a \
15414            "$force_reqtimeout" != "no" ; then
15415      enable_reqtimeout=$module_default
15416      _apmod_extra_msg=" ($module_selection)"
15417  fi
15418  if test "$enable_reqtimeout" != "no"; then
15419            :
15420  fi
15421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_reqtimeout$_apmod_extra_msg" >&5
15422$as_echo "$enable_reqtimeout$_apmod_extra_msg" >&6; }
15423  if test "$enable_reqtimeout" != "no"; then
15424    case "$enable_reqtimeout" in
15425    static*)
15426      MODLIST="$MODLIST reqtimeout"
15427      if test "reqtimeout" = "so"; then
15428          sharedobjs=yes
15429      fi
15430      shared="";;
15431    *)
15432      enable_reqtimeout=`echo $enable_reqtimeout|sed 's/shared,*//'`
15433      sharedobjs=yes
15434      shared=yes
15435      DSO_MODULES="$DSO_MODULES reqtimeout"
15436      if test "yes" = "yes" ; then
15437        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},reqtimeout"
15438      fi
15439      ;;
15440    esac
15441
15442
15443  if test -z ""; then
15444    objects="mod_reqtimeout.lo"
15445  else
15446    objects=""
15447  fi
15448
15449  if test -z "$module_standalone"; then
15450    if test -z "$shared"; then
15451      # The filename of a convenience library must have a "lib" prefix:
15452      libname="libmod_reqtimeout.la"
15453      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15454      modpath_static="$modpath_static $libname"
15455      cat >>$modpath_current/modules.mk<<EOF
15456$libname: $objects
15457	\$(MOD_LINK) $objects \$(MOD_REQTIMEOUT_LDADD)
15458EOF
15459      if test ! -z "\$(MOD_REQTIMEOUT_LDADD)"; then
15460
15461  if test "x$AP_LIBS" = "x"; then
15462    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REQTIMEOUT_LDADD)\""
15463    AP_LIBS="\$(MOD_REQTIMEOUT_LDADD)"
15464  else
15465    apr_addto_bugger="\$(MOD_REQTIMEOUT_LDADD)"
15466    for i in $apr_addto_bugger; do
15467      apr_addto_duplicate="0"
15468      for j in $AP_LIBS; do
15469        if test "x$i" = "x$j"; then
15470          apr_addto_duplicate="1"
15471          break
15472        fi
15473      done
15474      if test $apr_addto_duplicate = "0"; then
15475        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15476        AP_LIBS="$AP_LIBS $i"
15477      fi
15478    done
15479  fi
15480
15481      fi
15482    else
15483      apache_need_shared=yes
15484      libname="mod_reqtimeout.la"
15485      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15486      modpath_shared="$modpath_shared $libname"
15487      cat >>$modpath_current/modules.mk<<EOF
15488$libname: $shobjects
15489	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REQTIMEOUT_LDADD)
15490EOF
15491    fi
15492  fi
15493
15494
15495  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REQTIMEOUT_LDADD"
15496
15497
15498
15499  fi
15500
15501
15502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ext_filter" >&5
15503$as_echo_n "checking whether to enable mod_ext_filter... " >&6; }
15504    # Check whether --enable-ext-filter was given.
15505if test "${enable_ext_filter+set}" = set; then :
15506  enableval=$enable_ext_filter; force_ext_filter=$enableval
15507else
15508  enable_ext_filter=most
15509fi
15510
15511    _apmod_extra_msg=""
15512        case "$enable_ext_filter" in
15513    yes|static|shared)
15514      _apmod_required="yes"
15515      ;;
15516    *)
15517      case "$module_selection" in
15518      reallyall|all|most)
15519        _apmod_required="no"
15520        ;;
15521      *)
15522        _apmod_required="yes"
15523        ;;
15524      esac
15525  esac
15526  if test "$enable_ext_filter" = "static"; then
15527    enable_ext_filter=static
15528  elif test "$enable_ext_filter" = "yes"; then
15529    enable_ext_filter=$module_default
15530  elif test "$enable_ext_filter" = "most"; then
15531    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15532            "$module_selection" = "reallyall"
15533    then
15534      enable_ext_filter=$module_default
15535    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15536      enable_ext_filter=no
15537    fi
15538    _apmod_extra_msg=" ($module_selection)"
15539  elif test "$enable_ext_filter" = "maybe-all"; then
15540    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15541    then
15542      enable_ext_filter=$module_default
15543      _apmod_extra_msg=" ($module_selection)"
15544    else
15545      enable_ext_filter=no
15546    fi
15547  elif test "$enable_ext_filter" = "no" -a "$module_selection" = "reallyall" -a \
15548            "$force_ext_filter" != "no" ; then
15549      enable_ext_filter=$module_default
15550      _apmod_extra_msg=" ($module_selection)"
15551  fi
15552  if test "$enable_ext_filter" != "no"; then
15553            :
15554  fi
15555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ext_filter$_apmod_extra_msg" >&5
15556$as_echo "$enable_ext_filter$_apmod_extra_msg" >&6; }
15557  if test "$enable_ext_filter" != "no"; then
15558    case "$enable_ext_filter" in
15559    static*)
15560      MODLIST="$MODLIST ext_filter"
15561      if test "ext_filter" = "so"; then
15562          sharedobjs=yes
15563      fi
15564      shared="";;
15565    *)
15566      enable_ext_filter=`echo $enable_ext_filter|sed 's/shared,*//'`
15567      sharedobjs=yes
15568      shared=yes
15569      DSO_MODULES="$DSO_MODULES ext_filter"
15570      if test "most" = "yes" ; then
15571        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ext_filter"
15572      fi
15573      ;;
15574    esac
15575
15576
15577  if test -z ""; then
15578    objects="mod_ext_filter.lo"
15579  else
15580    objects=""
15581  fi
15582
15583  if test -z "$module_standalone"; then
15584    if test -z "$shared"; then
15585      # The filename of a convenience library must have a "lib" prefix:
15586      libname="libmod_ext_filter.la"
15587      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15588      modpath_static="$modpath_static $libname"
15589      cat >>$modpath_current/modules.mk<<EOF
15590$libname: $objects
15591	\$(MOD_LINK) $objects \$(MOD_EXT_FILTER_LDADD)
15592EOF
15593      if test ! -z "\$(MOD_EXT_FILTER_LDADD)"; then
15594
15595  if test "x$AP_LIBS" = "x"; then
15596    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXT_FILTER_LDADD)\""
15597    AP_LIBS="\$(MOD_EXT_FILTER_LDADD)"
15598  else
15599    apr_addto_bugger="\$(MOD_EXT_FILTER_LDADD)"
15600    for i in $apr_addto_bugger; do
15601      apr_addto_duplicate="0"
15602      for j in $AP_LIBS; do
15603        if test "x$i" = "x$j"; then
15604          apr_addto_duplicate="1"
15605          break
15606        fi
15607      done
15608      if test $apr_addto_duplicate = "0"; then
15609        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15610        AP_LIBS="$AP_LIBS $i"
15611      fi
15612    done
15613  fi
15614
15615      fi
15616    else
15617      apache_need_shared=yes
15618      libname="mod_ext_filter.la"
15619      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15620      modpath_shared="$modpath_shared $libname"
15621      cat >>$modpath_current/modules.mk<<EOF
15622$libname: $shobjects
15623	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXT_FILTER_LDADD)
15624EOF
15625    fi
15626  fi
15627
15628
15629  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXT_FILTER_LDADD"
15630
15631
15632
15633  fi
15634
15635
15636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_request" >&5
15637$as_echo_n "checking whether to enable mod_request... " >&6; }
15638    # Check whether --enable-request was given.
15639if test "${enable_request+set}" = set; then :
15640  enableval=$enable_request; force_request=$enableval
15641else
15642  enable_request=most
15643fi
15644
15645    _apmod_extra_msg=""
15646        case "$enable_request" in
15647    yes|static|shared)
15648      _apmod_required="yes"
15649      ;;
15650    *)
15651      case "$module_selection" in
15652      reallyall|all|most)
15653        _apmod_required="no"
15654        ;;
15655      *)
15656        _apmod_required="yes"
15657        ;;
15658      esac
15659  esac
15660  if test "$enable_request" = "static"; then
15661    enable_request=static
15662  elif test "$enable_request" = "yes"; then
15663    enable_request=$module_default
15664  elif test "$enable_request" = "most"; then
15665    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15666            "$module_selection" = "reallyall"
15667    then
15668      enable_request=$module_default
15669    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15670      enable_request=no
15671    fi
15672    _apmod_extra_msg=" ($module_selection)"
15673  elif test "$enable_request" = "maybe-all"; then
15674    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15675    then
15676      enable_request=$module_default
15677      _apmod_extra_msg=" ($module_selection)"
15678    else
15679      enable_request=no
15680    fi
15681  elif test "$enable_request" = "no" -a "$module_selection" = "reallyall" -a \
15682            "$force_request" != "no" ; then
15683      enable_request=$module_default
15684      _apmod_extra_msg=" ($module_selection)"
15685  fi
15686  if test "$enable_request" != "no"; then
15687            :
15688  fi
15689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_request$_apmod_extra_msg" >&5
15690$as_echo "$enable_request$_apmod_extra_msg" >&6; }
15691  if test "$enable_request" != "no"; then
15692    case "$enable_request" in
15693    static*)
15694      MODLIST="$MODLIST request"
15695      if test "request" = "so"; then
15696          sharedobjs=yes
15697      fi
15698      shared="";;
15699    *)
15700      enable_request=`echo $enable_request|sed 's/shared,*//'`
15701      sharedobjs=yes
15702      shared=yes
15703      DSO_MODULES="$DSO_MODULES request"
15704      if test "most" = "yes" ; then
15705        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},request"
15706      fi
15707      ;;
15708    esac
15709
15710
15711  if test -z ""; then
15712    objects="mod_request.lo"
15713  else
15714    objects=""
15715  fi
15716
15717  if test -z "$module_standalone"; then
15718    if test -z "$shared"; then
15719      # The filename of a convenience library must have a "lib" prefix:
15720      libname="libmod_request.la"
15721      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15722      modpath_static="$modpath_static $libname"
15723      cat >>$modpath_current/modules.mk<<EOF
15724$libname: $objects
15725	\$(MOD_LINK) $objects \$(MOD_REQUEST_LDADD)
15726EOF
15727      if test ! -z "\$(MOD_REQUEST_LDADD)"; then
15728
15729  if test "x$AP_LIBS" = "x"; then
15730    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REQUEST_LDADD)\""
15731    AP_LIBS="\$(MOD_REQUEST_LDADD)"
15732  else
15733    apr_addto_bugger="\$(MOD_REQUEST_LDADD)"
15734    for i in $apr_addto_bugger; do
15735      apr_addto_duplicate="0"
15736      for j in $AP_LIBS; do
15737        if test "x$i" = "x$j"; then
15738          apr_addto_duplicate="1"
15739          break
15740        fi
15741      done
15742      if test $apr_addto_duplicate = "0"; then
15743        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15744        AP_LIBS="$AP_LIBS $i"
15745      fi
15746    done
15747  fi
15748
15749      fi
15750    else
15751      apache_need_shared=yes
15752      libname="mod_request.la"
15753      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15754      modpath_shared="$modpath_shared $libname"
15755      cat >>$modpath_current/modules.mk<<EOF
15756$libname: $shobjects
15757	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REQUEST_LDADD)
15758EOF
15759    fi
15760  fi
15761
15762
15763  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REQUEST_LDADD"
15764
15765
15766
15767  fi
15768
15769
15770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_include" >&5
15771$as_echo_n "checking whether to enable mod_include... " >&6; }
15772    # Check whether --enable-include was given.
15773if test "${enable_include+set}" = set; then :
15774  enableval=$enable_include; force_include=$enableval
15775else
15776  enable_include=most
15777fi
15778
15779    _apmod_extra_msg=""
15780        case "$enable_include" in
15781    yes|static|shared)
15782      _apmod_required="yes"
15783      ;;
15784    *)
15785      case "$module_selection" in
15786      reallyall|all|most)
15787        _apmod_required="no"
15788        ;;
15789      *)
15790        _apmod_required="yes"
15791        ;;
15792      esac
15793  esac
15794  if test "$enable_include" = "static"; then
15795    enable_include=static
15796  elif test "$enable_include" = "yes"; then
15797    enable_include=$module_default
15798  elif test "$enable_include" = "most"; then
15799    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15800            "$module_selection" = "reallyall"
15801    then
15802      enable_include=$module_default
15803    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15804      enable_include=no
15805    fi
15806    _apmod_extra_msg=" ($module_selection)"
15807  elif test "$enable_include" = "maybe-all"; then
15808    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15809    then
15810      enable_include=$module_default
15811      _apmod_extra_msg=" ($module_selection)"
15812    else
15813      enable_include=no
15814    fi
15815  elif test "$enable_include" = "no" -a "$module_selection" = "reallyall" -a \
15816            "$force_include" != "no" ; then
15817      enable_include=$module_default
15818      _apmod_extra_msg=" ($module_selection)"
15819  fi
15820  if test "$enable_include" != "no"; then
15821            :
15822  fi
15823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_include$_apmod_extra_msg" >&5
15824$as_echo "$enable_include$_apmod_extra_msg" >&6; }
15825  if test "$enable_include" != "no"; then
15826    case "$enable_include" in
15827    static*)
15828      MODLIST="$MODLIST include"
15829      if test "include" = "so"; then
15830          sharedobjs=yes
15831      fi
15832      shared="";;
15833    *)
15834      enable_include=`echo $enable_include|sed 's/shared,*//'`
15835      sharedobjs=yes
15836      shared=yes
15837      DSO_MODULES="$DSO_MODULES include"
15838      if test "most" = "yes" ; then
15839        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},include"
15840      fi
15841      ;;
15842    esac
15843
15844
15845  if test -z ""; then
15846    objects="mod_include.lo"
15847  else
15848    objects=""
15849  fi
15850
15851  if test -z "$module_standalone"; then
15852    if test -z "$shared"; then
15853      # The filename of a convenience library must have a "lib" prefix:
15854      libname="libmod_include.la"
15855      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15856      modpath_static="$modpath_static $libname"
15857      cat >>$modpath_current/modules.mk<<EOF
15858$libname: $objects
15859	\$(MOD_LINK) $objects \$(MOD_INCLUDE_LDADD)
15860EOF
15861      if test ! -z "\$(MOD_INCLUDE_LDADD)"; then
15862
15863  if test "x$AP_LIBS" = "x"; then
15864    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_INCLUDE_LDADD)\""
15865    AP_LIBS="\$(MOD_INCLUDE_LDADD)"
15866  else
15867    apr_addto_bugger="\$(MOD_INCLUDE_LDADD)"
15868    for i in $apr_addto_bugger; do
15869      apr_addto_duplicate="0"
15870      for j in $AP_LIBS; do
15871        if test "x$i" = "x$j"; then
15872          apr_addto_duplicate="1"
15873          break
15874        fi
15875      done
15876      if test $apr_addto_duplicate = "0"; then
15877        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
15878        AP_LIBS="$AP_LIBS $i"
15879      fi
15880    done
15881  fi
15882
15883      fi
15884    else
15885      apache_need_shared=yes
15886      libname="mod_include.la"
15887      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
15888      modpath_shared="$modpath_shared $libname"
15889      cat >>$modpath_current/modules.mk<<EOF
15890$libname: $shobjects
15891	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INCLUDE_LDADD)
15892EOF
15893    fi
15894  fi
15895
15896
15897  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INCLUDE_LDADD"
15898
15899
15900
15901  fi
15902
15903
15904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_filter" >&5
15905$as_echo_n "checking whether to enable mod_filter... " >&6; }
15906    # Check whether --enable-filter was given.
15907if test "${enable_filter+set}" = set; then :
15908  enableval=$enable_filter; force_filter=$enableval
15909else
15910  enable_filter=yes
15911fi
15912
15913    _apmod_extra_msg=""
15914        case "$enable_filter" in
15915    yes|static|shared)
15916      _apmod_required="yes"
15917      ;;
15918    *)
15919      case "$module_selection" in
15920      reallyall|all|most)
15921        _apmod_required="no"
15922        ;;
15923      *)
15924        _apmod_required="yes"
15925        ;;
15926      esac
15927  esac
15928  if test "$enable_filter" = "static"; then
15929    enable_filter=static
15930  elif test "$enable_filter" = "yes"; then
15931    enable_filter=$module_default
15932  elif test "$enable_filter" = "most"; then
15933    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
15934            "$module_selection" = "reallyall"
15935    then
15936      enable_filter=$module_default
15937    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
15938      enable_filter=no
15939    fi
15940    _apmod_extra_msg=" ($module_selection)"
15941  elif test "$enable_filter" = "maybe-all"; then
15942    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
15943    then
15944      enable_filter=$module_default
15945      _apmod_extra_msg=" ($module_selection)"
15946    else
15947      enable_filter=no
15948    fi
15949  elif test "$enable_filter" = "no" -a "$module_selection" = "reallyall" -a \
15950            "$force_filter" != "no" ; then
15951      enable_filter=$module_default
15952      _apmod_extra_msg=" ($module_selection)"
15953  fi
15954  if test "$enable_filter" != "no"; then
15955            :
15956  fi
15957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_filter$_apmod_extra_msg" >&5
15958$as_echo "$enable_filter$_apmod_extra_msg" >&6; }
15959  if test "$enable_filter" != "no"; then
15960    case "$enable_filter" in
15961    static*)
15962      MODLIST="$MODLIST filter"
15963      if test "filter" = "so"; then
15964          sharedobjs=yes
15965      fi
15966      shared="";;
15967    *)
15968      enable_filter=`echo $enable_filter|sed 's/shared,*//'`
15969      sharedobjs=yes
15970      shared=yes
15971      DSO_MODULES="$DSO_MODULES filter"
15972      if test "yes" = "yes" ; then
15973        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},filter"
15974      fi
15975      ;;
15976    esac
15977
15978
15979  if test -z ""; then
15980    objects="mod_filter.lo"
15981  else
15982    objects=""
15983  fi
15984
15985  if test -z "$module_standalone"; then
15986    if test -z "$shared"; then
15987      # The filename of a convenience library must have a "lib" prefix:
15988      libname="libmod_filter.la"
15989      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
15990      modpath_static="$modpath_static $libname"
15991      cat >>$modpath_current/modules.mk<<EOF
15992$libname: $objects
15993	\$(MOD_LINK) $objects \$(MOD_FILTER_LDADD)
15994EOF
15995      if test ! -z "\$(MOD_FILTER_LDADD)"; then
15996
15997  if test "x$AP_LIBS" = "x"; then
15998    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_FILTER_LDADD)\""
15999    AP_LIBS="\$(MOD_FILTER_LDADD)"
16000  else
16001    apr_addto_bugger="\$(MOD_FILTER_LDADD)"
16002    for i in $apr_addto_bugger; do
16003      apr_addto_duplicate="0"
16004      for j in $AP_LIBS; do
16005        if test "x$i" = "x$j"; then
16006          apr_addto_duplicate="1"
16007          break
16008        fi
16009      done
16010      if test $apr_addto_duplicate = "0"; then
16011        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16012        AP_LIBS="$AP_LIBS $i"
16013      fi
16014    done
16015  fi
16016
16017      fi
16018    else
16019      apache_need_shared=yes
16020      libname="mod_filter.la"
16021      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16022      modpath_shared="$modpath_shared $libname"
16023      cat >>$modpath_current/modules.mk<<EOF
16024$libname: $shobjects
16025	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_FILTER_LDADD)
16026EOF
16027    fi
16028  fi
16029
16030
16031  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILTER_LDADD"
16032
16033
16034
16035  fi
16036
16037
16038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_reflector" >&5
16039$as_echo_n "checking whether to enable mod_reflector... " >&6; }
16040    # Check whether --enable-reflector was given.
16041if test "${enable_reflector+set}" = set; then :
16042  enableval=$enable_reflector; force_reflector=$enableval
16043else
16044  enable_reflector=maybe-all
16045fi
16046
16047    _apmod_extra_msg=""
16048        case "$enable_reflector" in
16049    yes|static|shared)
16050      _apmod_required="yes"
16051      ;;
16052    *)
16053      case "$module_selection" in
16054      reallyall|all|most)
16055        _apmod_required="no"
16056        ;;
16057      *)
16058        _apmod_required="yes"
16059        ;;
16060      esac
16061  esac
16062  if test "$enable_reflector" = "static"; then
16063    enable_reflector=static
16064  elif test "$enable_reflector" = "yes"; then
16065    enable_reflector=$module_default
16066  elif test "$enable_reflector" = "most"; then
16067    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16068            "$module_selection" = "reallyall"
16069    then
16070      enable_reflector=$module_default
16071    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16072      enable_reflector=no
16073    fi
16074    _apmod_extra_msg=" ($module_selection)"
16075  elif test "$enable_reflector" = "maybe-all"; then
16076    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16077    then
16078      enable_reflector=$module_default
16079      _apmod_extra_msg=" ($module_selection)"
16080    else
16081      enable_reflector=no
16082    fi
16083  elif test "$enable_reflector" = "no" -a "$module_selection" = "reallyall" -a \
16084            "$force_reflector" != "no" ; then
16085      enable_reflector=$module_default
16086      _apmod_extra_msg=" ($module_selection)"
16087  fi
16088  if test "$enable_reflector" != "no"; then
16089            :
16090  fi
16091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_reflector$_apmod_extra_msg" >&5
16092$as_echo "$enable_reflector$_apmod_extra_msg" >&6; }
16093  if test "$enable_reflector" != "no"; then
16094    case "$enable_reflector" in
16095    static*)
16096      MODLIST="$MODLIST reflector"
16097      if test "reflector" = "so"; then
16098          sharedobjs=yes
16099      fi
16100      shared="";;
16101    *)
16102      enable_reflector=`echo $enable_reflector|sed 's/shared,*//'`
16103      sharedobjs=yes
16104      shared=yes
16105      DSO_MODULES="$DSO_MODULES reflector"
16106      if test "" = "yes" ; then
16107        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},reflector"
16108      fi
16109      ;;
16110    esac
16111
16112
16113  if test -z ""; then
16114    objects="mod_reflector.lo"
16115  else
16116    objects=""
16117  fi
16118
16119  if test -z "$module_standalone"; then
16120    if test -z "$shared"; then
16121      # The filename of a convenience library must have a "lib" prefix:
16122      libname="libmod_reflector.la"
16123      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16124      modpath_static="$modpath_static $libname"
16125      cat >>$modpath_current/modules.mk<<EOF
16126$libname: $objects
16127	\$(MOD_LINK) $objects \$(MOD_REFLECTOR_LDADD)
16128EOF
16129      if test ! -z "\$(MOD_REFLECTOR_LDADD)"; then
16130
16131  if test "x$AP_LIBS" = "x"; then
16132    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REFLECTOR_LDADD)\""
16133    AP_LIBS="\$(MOD_REFLECTOR_LDADD)"
16134  else
16135    apr_addto_bugger="\$(MOD_REFLECTOR_LDADD)"
16136    for i in $apr_addto_bugger; do
16137      apr_addto_duplicate="0"
16138      for j in $AP_LIBS; do
16139        if test "x$i" = "x$j"; then
16140          apr_addto_duplicate="1"
16141          break
16142        fi
16143      done
16144      if test $apr_addto_duplicate = "0"; then
16145        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16146        AP_LIBS="$AP_LIBS $i"
16147      fi
16148    done
16149  fi
16150
16151      fi
16152    else
16153      apache_need_shared=yes
16154      libname="mod_reflector.la"
16155      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16156      modpath_shared="$modpath_shared $libname"
16157      cat >>$modpath_current/modules.mk<<EOF
16158$libname: $shobjects
16159	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REFLECTOR_LDADD)
16160EOF
16161    fi
16162  fi
16163
16164
16165  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REFLECTOR_LDADD"
16166
16167
16168
16169  fi
16170
16171
16172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_substitute" >&5
16173$as_echo_n "checking whether to enable mod_substitute... " >&6; }
16174    # Check whether --enable-substitute was given.
16175if test "${enable_substitute+set}" = set; then :
16176  enableval=$enable_substitute; force_substitute=$enableval
16177else
16178  enable_substitute=most
16179fi
16180
16181    _apmod_extra_msg=""
16182        case "$enable_substitute" in
16183    yes|static|shared)
16184      _apmod_required="yes"
16185      ;;
16186    *)
16187      case "$module_selection" in
16188      reallyall|all|most)
16189        _apmod_required="no"
16190        ;;
16191      *)
16192        _apmod_required="yes"
16193        ;;
16194      esac
16195  esac
16196  if test "$enable_substitute" = "static"; then
16197    enable_substitute=static
16198  elif test "$enable_substitute" = "yes"; then
16199    enable_substitute=$module_default
16200  elif test "$enable_substitute" = "most"; then
16201    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16202            "$module_selection" = "reallyall"
16203    then
16204      enable_substitute=$module_default
16205    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16206      enable_substitute=no
16207    fi
16208    _apmod_extra_msg=" ($module_selection)"
16209  elif test "$enable_substitute" = "maybe-all"; then
16210    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16211    then
16212      enable_substitute=$module_default
16213      _apmod_extra_msg=" ($module_selection)"
16214    else
16215      enable_substitute=no
16216    fi
16217  elif test "$enable_substitute" = "no" -a "$module_selection" = "reallyall" -a \
16218            "$force_substitute" != "no" ; then
16219      enable_substitute=$module_default
16220      _apmod_extra_msg=" ($module_selection)"
16221  fi
16222  if test "$enable_substitute" != "no"; then
16223            :
16224  fi
16225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_substitute$_apmod_extra_msg" >&5
16226$as_echo "$enable_substitute$_apmod_extra_msg" >&6; }
16227  if test "$enable_substitute" != "no"; then
16228    case "$enable_substitute" in
16229    static*)
16230      MODLIST="$MODLIST substitute"
16231      if test "substitute" = "so"; then
16232          sharedobjs=yes
16233      fi
16234      shared="";;
16235    *)
16236      enable_substitute=`echo $enable_substitute|sed 's/shared,*//'`
16237      sharedobjs=yes
16238      shared=yes
16239      DSO_MODULES="$DSO_MODULES substitute"
16240      if test "most" = "yes" ; then
16241        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},substitute"
16242      fi
16243      ;;
16244    esac
16245
16246
16247  if test -z ""; then
16248    objects="mod_substitute.lo"
16249  else
16250    objects=""
16251  fi
16252
16253  if test -z "$module_standalone"; then
16254    if test -z "$shared"; then
16255      # The filename of a convenience library must have a "lib" prefix:
16256      libname="libmod_substitute.la"
16257      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16258      modpath_static="$modpath_static $libname"
16259      cat >>$modpath_current/modules.mk<<EOF
16260$libname: $objects
16261	\$(MOD_LINK) $objects \$(MOD_SUBSTITUTE_LDADD)
16262EOF
16263      if test ! -z "\$(MOD_SUBSTITUTE_LDADD)"; then
16264
16265  if test "x$AP_LIBS" = "x"; then
16266    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SUBSTITUTE_LDADD)\""
16267    AP_LIBS="\$(MOD_SUBSTITUTE_LDADD)"
16268  else
16269    apr_addto_bugger="\$(MOD_SUBSTITUTE_LDADD)"
16270    for i in $apr_addto_bugger; do
16271      apr_addto_duplicate="0"
16272      for j in $AP_LIBS; do
16273        if test "x$i" = "x$j"; then
16274          apr_addto_duplicate="1"
16275          break
16276        fi
16277      done
16278      if test $apr_addto_duplicate = "0"; then
16279        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16280        AP_LIBS="$AP_LIBS $i"
16281      fi
16282    done
16283  fi
16284
16285      fi
16286    else
16287      apache_need_shared=yes
16288      libname="mod_substitute.la"
16289      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16290      modpath_shared="$modpath_shared $libname"
16291      cat >>$modpath_current/modules.mk<<EOF
16292$libname: $shobjects
16293	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SUBSTITUTE_LDADD)
16294EOF
16295    fi
16296  fi
16297
16298
16299  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SUBSTITUTE_LDADD"
16300
16301
16302
16303  fi
16304
16305
16306sed_obj="mod_sed.lo sed0.lo sed1.lo regexp.lo"
16307
16308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_sed" >&5
16309$as_echo_n "checking whether to enable mod_sed... " >&6; }
16310    # Check whether --enable-sed was given.
16311if test "${enable_sed+set}" = set; then :
16312  enableval=$enable_sed; force_sed=$enableval
16313else
16314  enable_sed=most
16315fi
16316
16317    _apmod_extra_msg=""
16318        case "$enable_sed" in
16319    yes|static|shared)
16320      _apmod_required="yes"
16321      ;;
16322    *)
16323      case "$module_selection" in
16324      reallyall|all|most)
16325        _apmod_required="no"
16326        ;;
16327      *)
16328        _apmod_required="yes"
16329        ;;
16330      esac
16331  esac
16332  if test "$enable_sed" = "static"; then
16333    enable_sed=static
16334  elif test "$enable_sed" = "yes"; then
16335    enable_sed=$module_default
16336  elif test "$enable_sed" = "most"; then
16337    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16338            "$module_selection" = "reallyall"
16339    then
16340      enable_sed=$module_default
16341    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16342      enable_sed=no
16343    fi
16344    _apmod_extra_msg=" ($module_selection)"
16345  elif test "$enable_sed" = "maybe-all"; then
16346    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16347    then
16348      enable_sed=$module_default
16349      _apmod_extra_msg=" ($module_selection)"
16350    else
16351      enable_sed=no
16352    fi
16353  elif test "$enable_sed" = "no" -a "$module_selection" = "reallyall" -a \
16354            "$force_sed" != "no" ; then
16355      enable_sed=$module_default
16356      _apmod_extra_msg=" ($module_selection)"
16357  fi
16358  if test "$enable_sed" != "no"; then
16359            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
16360$as_echo "checking dependencies" >&6; }
16361            :
16362
16363    if test "x$enable_sed" = "xshared"; then
16364        # The only symbol which needs to be exported is the module
16365        # structure, so ask libtool to hide libsed internals:
16366
16367  if test "x$MOD_SED_LDADD" = "x"; then
16368    test "x$silent" != "xyes" && echo "  setting MOD_SED_LDADD to \"-export-symbols-regex sed_module\""
16369    MOD_SED_LDADD="-export-symbols-regex sed_module"
16370  else
16371    apr_addto_bugger="-export-symbols-regex sed_module"
16372    for i in $apr_addto_bugger; do
16373      apr_addto_duplicate="0"
16374      for j in $MOD_SED_LDADD; do
16375        if test "x$i" = "x$j"; then
16376          apr_addto_duplicate="1"
16377          break
16378        fi
16379      done
16380      if test $apr_addto_duplicate = "0"; then
16381        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SED_LDADD"
16382        MOD_SED_LDADD="$MOD_SED_LDADD $i"
16383      fi
16384    done
16385  fi
16386
16387    fi
16388
16389            :
16390            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_sed" >&5
16391$as_echo_n "checking whether to enable mod_sed... " >&6; }
16392            if test "$enable_sed" = "no"; then
16393              if test "$_apmod_required" = "no"; then
16394                _apmod_extra_msg=" (disabled)"
16395              else
16396                as_fn_error $? "mod_sed has been requested but can not be built due to prerequisite failures" "$LINENO" 5
16397              fi
16398            fi
16399  fi
16400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sed$_apmod_extra_msg" >&5
16401$as_echo "$enable_sed$_apmod_extra_msg" >&6; }
16402  if test "$enable_sed" != "no"; then
16403    case "$enable_sed" in
16404    static*)
16405      MODLIST="$MODLIST sed"
16406      if test "sed" = "so"; then
16407          sharedobjs=yes
16408      fi
16409      shared="";;
16410    *)
16411      enable_sed=`echo $enable_sed|sed 's/shared,*//'`
16412      sharedobjs=yes
16413      shared=yes
16414      DSO_MODULES="$DSO_MODULES sed"
16415      if test "most" = "yes" ; then
16416        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},sed"
16417      fi
16418      ;;
16419    esac
16420
16421
16422  if test -z "$sed_obj"; then
16423    objects="mod_sed.lo"
16424  else
16425    objects="$sed_obj"
16426  fi
16427
16428  if test -z "$module_standalone"; then
16429    if test -z "$shared"; then
16430      # The filename of a convenience library must have a "lib" prefix:
16431      libname="libmod_sed.la"
16432      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16433      modpath_static="$modpath_static $libname"
16434      cat >>$modpath_current/modules.mk<<EOF
16435$libname: $objects
16436	\$(MOD_LINK) $objects \$(MOD_SED_LDADD)
16437EOF
16438      if test ! -z "\$(MOD_SED_LDADD)"; then
16439
16440  if test "x$AP_LIBS" = "x"; then
16441    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SED_LDADD)\""
16442    AP_LIBS="\$(MOD_SED_LDADD)"
16443  else
16444    apr_addto_bugger="\$(MOD_SED_LDADD)"
16445    for i in $apr_addto_bugger; do
16446      apr_addto_duplicate="0"
16447      for j in $AP_LIBS; do
16448        if test "x$i" = "x$j"; then
16449          apr_addto_duplicate="1"
16450          break
16451        fi
16452      done
16453      if test $apr_addto_duplicate = "0"; then
16454        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16455        AP_LIBS="$AP_LIBS $i"
16456      fi
16457    done
16458  fi
16459
16460      fi
16461    else
16462      apache_need_shared=yes
16463      libname="mod_sed.la"
16464      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16465      modpath_shared="$modpath_shared $libname"
16466      cat >>$modpath_current/modules.mk<<EOF
16467$libname: $shobjects
16468	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SED_LDADD)
16469EOF
16470    fi
16471  fi
16472
16473
16474  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SED_LDADD"
16475
16476
16477
16478  fi
16479
16480
16481if test "$ac_cv_ebcdic" = "yes"; then
16482# mod_charset_lite can be very useful on an ebcdic system,
16483#   so include it by default
16484
16485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_charset_lite" >&5
16486$as_echo_n "checking whether to enable mod_charset_lite... " >&6; }
16487    # Check whether --enable-charset-lite was given.
16488if test "${enable_charset_lite+set}" = set; then :
16489  enableval=$enable_charset_lite; force_charset_lite=$enableval
16490else
16491  enable_charset_lite=yes
16492fi
16493
16494    _apmod_extra_msg=""
16495        case "$enable_charset_lite" in
16496    yes|static|shared)
16497      _apmod_required="yes"
16498      ;;
16499    *)
16500      case "$module_selection" in
16501      reallyall|all|most)
16502        _apmod_required="no"
16503        ;;
16504      *)
16505        _apmod_required="yes"
16506        ;;
16507      esac
16508  esac
16509  if test "$enable_charset_lite" = "static"; then
16510    enable_charset_lite=static
16511  elif test "$enable_charset_lite" = "yes"; then
16512    enable_charset_lite=$module_default
16513  elif test "$enable_charset_lite" = "most"; then
16514    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16515            "$module_selection" = "reallyall"
16516    then
16517      enable_charset_lite=$module_default
16518    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16519      enable_charset_lite=no
16520    fi
16521    _apmod_extra_msg=" ($module_selection)"
16522  elif test "$enable_charset_lite" = "maybe-all"; then
16523    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16524    then
16525      enable_charset_lite=$module_default
16526      _apmod_extra_msg=" ($module_selection)"
16527    else
16528      enable_charset_lite=no
16529    fi
16530  elif test "$enable_charset_lite" = "no" -a "$module_selection" = "reallyall" -a \
16531            "$force_charset_lite" != "no" ; then
16532      enable_charset_lite=$module_default
16533      _apmod_extra_msg=" ($module_selection)"
16534  fi
16535  if test "$enable_charset_lite" != "no"; then
16536            :
16537  fi
16538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_charset_lite$_apmod_extra_msg" >&5
16539$as_echo "$enable_charset_lite$_apmod_extra_msg" >&6; }
16540  if test "$enable_charset_lite" != "no"; then
16541    case "$enable_charset_lite" in
16542    static*)
16543      MODLIST="$MODLIST charset_lite"
16544      if test "charset_lite" = "so"; then
16545          sharedobjs=yes
16546      fi
16547      shared="";;
16548    *)
16549      enable_charset_lite=`echo $enable_charset_lite|sed 's/shared,*//'`
16550      sharedobjs=yes
16551      shared=yes
16552      DSO_MODULES="$DSO_MODULES charset_lite"
16553      if test "yes" = "yes" ; then
16554        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},charset_lite"
16555      fi
16556      ;;
16557    esac
16558
16559
16560  if test -z ""; then
16561    objects="mod_charset_lite.lo"
16562  else
16563    objects=""
16564  fi
16565
16566  if test -z "$module_standalone"; then
16567    if test -z "$shared"; then
16568      # The filename of a convenience library must have a "lib" prefix:
16569      libname="libmod_charset_lite.la"
16570      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16571      modpath_static="$modpath_static $libname"
16572      cat >>$modpath_current/modules.mk<<EOF
16573$libname: $objects
16574	\$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
16575EOF
16576      if test ! -z "\$(MOD_CHARSET_LITE_LDADD)"; then
16577
16578  if test "x$AP_LIBS" = "x"; then
16579    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CHARSET_LITE_LDADD)\""
16580    AP_LIBS="\$(MOD_CHARSET_LITE_LDADD)"
16581  else
16582    apr_addto_bugger="\$(MOD_CHARSET_LITE_LDADD)"
16583    for i in $apr_addto_bugger; do
16584      apr_addto_duplicate="0"
16585      for j in $AP_LIBS; do
16586        if test "x$i" = "x$j"; then
16587          apr_addto_duplicate="1"
16588          break
16589        fi
16590      done
16591      if test $apr_addto_duplicate = "0"; then
16592        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16593        AP_LIBS="$AP_LIBS $i"
16594      fi
16595    done
16596  fi
16597
16598      fi
16599    else
16600      apache_need_shared=yes
16601      libname="mod_charset_lite.la"
16602      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16603      modpath_shared="$modpath_shared $libname"
16604      cat >>$modpath_current/modules.mk<<EOF
16605$libname: $shobjects
16606	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
16607EOF
16608    fi
16609  fi
16610
16611
16612  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
16613
16614
16615
16616  fi
16617
16618else
16619
16620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_charset_lite" >&5
16621$as_echo_n "checking whether to enable mod_charset_lite... " >&6; }
16622    # Check whether --enable-charset-lite was given.
16623if test "${enable_charset_lite+set}" = set; then :
16624  enableval=$enable_charset_lite; force_charset_lite=$enableval
16625else
16626  enable_charset_lite=maybe-all
16627fi
16628
16629    _apmod_extra_msg=""
16630        case "$enable_charset_lite" in
16631    yes|static|shared)
16632      _apmod_required="yes"
16633      ;;
16634    *)
16635      case "$module_selection" in
16636      reallyall|all|most)
16637        _apmod_required="no"
16638        ;;
16639      *)
16640        _apmod_required="yes"
16641        ;;
16642      esac
16643  esac
16644  if test "$enable_charset_lite" = "static"; then
16645    enable_charset_lite=static
16646  elif test "$enable_charset_lite" = "yes"; then
16647    enable_charset_lite=$module_default
16648  elif test "$enable_charset_lite" = "most"; then
16649    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16650            "$module_selection" = "reallyall"
16651    then
16652      enable_charset_lite=$module_default
16653    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16654      enable_charset_lite=no
16655    fi
16656    _apmod_extra_msg=" ($module_selection)"
16657  elif test "$enable_charset_lite" = "maybe-all"; then
16658    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16659    then
16660      enable_charset_lite=$module_default
16661      _apmod_extra_msg=" ($module_selection)"
16662    else
16663      enable_charset_lite=no
16664    fi
16665  elif test "$enable_charset_lite" = "no" -a "$module_selection" = "reallyall" -a \
16666            "$force_charset_lite" != "no" ; then
16667      enable_charset_lite=$module_default
16668      _apmod_extra_msg=" ($module_selection)"
16669  fi
16670  if test "$enable_charset_lite" != "no"; then
16671            :
16672  fi
16673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_charset_lite$_apmod_extra_msg" >&5
16674$as_echo "$enable_charset_lite$_apmod_extra_msg" >&6; }
16675  if test "$enable_charset_lite" != "no"; then
16676    case "$enable_charset_lite" in
16677    static*)
16678      MODLIST="$MODLIST charset_lite"
16679      if test "charset_lite" = "so"; then
16680          sharedobjs=yes
16681      fi
16682      shared="";;
16683    *)
16684      enable_charset_lite=`echo $enable_charset_lite|sed 's/shared,*//'`
16685      sharedobjs=yes
16686      shared=yes
16687      DSO_MODULES="$DSO_MODULES charset_lite"
16688      if test "" = "yes" ; then
16689        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},charset_lite"
16690      fi
16691      ;;
16692    esac
16693
16694
16695  if test -z ""; then
16696    objects="mod_charset_lite.lo"
16697  else
16698    objects=""
16699  fi
16700
16701  if test -z "$module_standalone"; then
16702    if test -z "$shared"; then
16703      # The filename of a convenience library must have a "lib" prefix:
16704      libname="libmod_charset_lite.la"
16705      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
16706      modpath_static="$modpath_static $libname"
16707      cat >>$modpath_current/modules.mk<<EOF
16708$libname: $objects
16709	\$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
16710EOF
16711      if test ! -z "\$(MOD_CHARSET_LITE_LDADD)"; then
16712
16713  if test "x$AP_LIBS" = "x"; then
16714    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CHARSET_LITE_LDADD)\""
16715    AP_LIBS="\$(MOD_CHARSET_LITE_LDADD)"
16716  else
16717    apr_addto_bugger="\$(MOD_CHARSET_LITE_LDADD)"
16718    for i in $apr_addto_bugger; do
16719      apr_addto_duplicate="0"
16720      for j in $AP_LIBS; do
16721        if test "x$i" = "x$j"; then
16722          apr_addto_duplicate="1"
16723          break
16724        fi
16725      done
16726      if test $apr_addto_duplicate = "0"; then
16727        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
16728        AP_LIBS="$AP_LIBS $i"
16729      fi
16730    done
16731  fi
16732
16733      fi
16734    else
16735      apache_need_shared=yes
16736      libname="mod_charset_lite.la"
16737      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
16738      modpath_shared="$modpath_shared $libname"
16739      cat >>$modpath_current/modules.mk<<EOF
16740$libname: $shobjects
16741	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
16742EOF
16743    fi
16744  fi
16745
16746
16747  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
16748
16749
16750
16751  fi
16752
16753fi
16754
16755
16756
16757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_deflate" >&5
16758$as_echo_n "checking whether to enable mod_deflate... " >&6; }
16759    # Check whether --enable-deflate was given.
16760if test "${enable_deflate+set}" = set; then :
16761  enableval=$enable_deflate; force_deflate=$enableval
16762else
16763  enable_deflate=most
16764fi
16765
16766    _apmod_extra_msg=""
16767        case "$enable_deflate" in
16768    yes|static|shared)
16769      _apmod_required="yes"
16770      ;;
16771    *)
16772      case "$module_selection" in
16773      reallyall|all|most)
16774        _apmod_required="no"
16775        ;;
16776      *)
16777        _apmod_required="yes"
16778        ;;
16779      esac
16780  esac
16781  if test "$enable_deflate" = "static"; then
16782    enable_deflate=static
16783  elif test "$enable_deflate" = "yes"; then
16784    enable_deflate=$module_default
16785  elif test "$enable_deflate" = "most"; then
16786    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
16787            "$module_selection" = "reallyall"
16788    then
16789      enable_deflate=$module_default
16790    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
16791      enable_deflate=no
16792    fi
16793    _apmod_extra_msg=" ($module_selection)"
16794  elif test "$enable_deflate" = "maybe-all"; then
16795    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
16796    then
16797      enable_deflate=$module_default
16798      _apmod_extra_msg=" ($module_selection)"
16799    else
16800      enable_deflate=no
16801    fi
16802  elif test "$enable_deflate" = "no" -a "$module_selection" = "reallyall" -a \
16803            "$force_deflate" != "no" ; then
16804      enable_deflate=$module_default
16805      _apmod_extra_msg=" ($module_selection)"
16806  fi
16807  if test "$enable_deflate" != "no"; then
16808            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
16809$as_echo "checking dependencies" >&6; }
16810            :
16811
16812
16813# Check whether --with-z was given.
16814if test "${with_z+set}" = set; then :
16815  withval=$with_z;
16816    if test "x$withval" != "xyes" && test "x$withval" != "x"; then
16817      ap_zlib_base="$withval"
16818      ap_zlib_with="yes"
16819    fi
16820
16821fi
16822
16823  if test "x$ap_zlib_base" = "x"; then
16824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib location" >&5
16825$as_echo_n "checking for zlib location... " >&6; }
16826    if ${ap_cv_zlib+:} false; then :
16827  $as_echo_n "(cached) " >&6
16828else
16829
16830      for dir in /usr/local /usr ; do
16831        if test -d $dir && test -f $dir/include/zlib.h; then
16832          ap_cv_zlib=$dir
16833          break
16834        fi
16835      done
16836
16837fi
16838
16839    ap_zlib_base=$ap_cv_zlib
16840    if test "x$ap_zlib_base" = "x"; then
16841      enable_deflate=no
16842      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16843$as_echo "not found" >&6; }
16844    else
16845      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_zlib_base" >&5
16846$as_echo "$ap_zlib_base" >&6; }
16847    fi
16848  fi
16849  if test "$enable_deflate" != "no"; then
16850    ap_save_includes=$INCLUDES
16851    ap_save_ldflags=$LDFLAGS
16852    ap_save_cppflags=$CPPFLAGS
16853    ap_zlib_ldflags=""
16854    if test "$ap_zlib_base" != "/usr"; then
16855
16856  if test "x$INCLUDES" = "x"; then
16857    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I${ap_zlib_base}/include\""
16858    INCLUDES="-I${ap_zlib_base}/include"
16859  else
16860    apr_addto_bugger="-I${ap_zlib_base}/include"
16861    for i in $apr_addto_bugger; do
16862      apr_addto_duplicate="0"
16863      for j in $INCLUDES; do
16864        if test "x$i" = "x$j"; then
16865          apr_addto_duplicate="1"
16866          break
16867        fi
16868      done
16869      if test $apr_addto_duplicate = "0"; then
16870        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
16871        INCLUDES="$INCLUDES $i"
16872      fi
16873    done
16874  fi
16875
16876
16877  if test "x$MOD_INCLUDES" = "x"; then
16878    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"-I${ap_zlib_base}/include\""
16879    MOD_INCLUDES="-I${ap_zlib_base}/include"
16880  else
16881    apr_addto_bugger="-I${ap_zlib_base}/include"
16882    for i in $apr_addto_bugger; do
16883      apr_addto_duplicate="0"
16884      for j in $MOD_INCLUDES; do
16885        if test "x$i" = "x$j"; then
16886          apr_addto_duplicate="1"
16887          break
16888        fi
16889      done
16890      if test $apr_addto_duplicate = "0"; then
16891        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_INCLUDES"
16892        MOD_INCLUDES="$MOD_INCLUDES $i"
16893      fi
16894    done
16895  fi
16896
16897            CPPFLAGS="$CPPFLAGS $INCLUDES"
16898
16899  if test "x$LDFLAGS" = "x"; then
16900    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L${ap_zlib_base}/lib\""
16901    LDFLAGS="-L${ap_zlib_base}/lib"
16902  else
16903    apr_addto_bugger="-L${ap_zlib_base}/lib"
16904    for i in $apr_addto_bugger; do
16905      apr_addto_duplicate="0"
16906      for j in $LDFLAGS; do
16907        if test "x$i" = "x$j"; then
16908          apr_addto_duplicate="1"
16909          break
16910        fi
16911      done
16912      if test $apr_addto_duplicate = "0"; then
16913        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
16914        LDFLAGS="$LDFLAGS $i"
16915      fi
16916    done
16917  fi
16918
16919
16920  if test "x$ap_zlib_ldflags" = "x"; then
16921    test "x$silent" != "xyes" && echo "  setting ap_zlib_ldflags to \"-L${ap_zlib_base}/lib\""
16922    ap_zlib_ldflags="-L${ap_zlib_base}/lib"
16923  else
16924    apr_addto_bugger="-L${ap_zlib_base}/lib"
16925    for i in $apr_addto_bugger; do
16926      apr_addto_duplicate="0"
16927      for j in $ap_zlib_ldflags; do
16928        if test "x$i" = "x$j"; then
16929          apr_addto_duplicate="1"
16930          break
16931        fi
16932      done
16933      if test $apr_addto_duplicate = "0"; then
16934        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_zlib_ldflags"
16935        ap_zlib_ldflags="$ap_zlib_ldflags $i"
16936      fi
16937    done
16938  fi
16939
16940      if test "x$ap_platform_runtime_link_flag" != "x"; then
16941
16942  if test "x$LDFLAGS" = "x"; then
16943    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag${ap_zlib_base}/lib\""
16944    LDFLAGS="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
16945  else
16946    apr_addto_bugger="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
16947    for i in $apr_addto_bugger; do
16948      apr_addto_duplicate="0"
16949      for j in $LDFLAGS; do
16950        if test "x$i" = "x$j"; then
16951          apr_addto_duplicate="1"
16952          break
16953        fi
16954      done
16955      if test $apr_addto_duplicate = "0"; then
16956        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
16957        LDFLAGS="$LDFLAGS $i"
16958      fi
16959    done
16960  fi
16961
16962
16963  if test "x$ap_zlib_ldflags" = "x"; then
16964    test "x$silent" != "xyes" && echo "  setting ap_zlib_ldflags to \"$ap_platform_runtime_link_flag${ap_zlib_base}/lib\""
16965    ap_zlib_ldflags="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
16966  else
16967    apr_addto_bugger="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
16968    for i in $apr_addto_bugger; do
16969      apr_addto_duplicate="0"
16970      for j in $ap_zlib_ldflags; do
16971        if test "x$i" = "x$j"; then
16972          apr_addto_duplicate="1"
16973          break
16974        fi
16975      done
16976      if test $apr_addto_duplicate = "0"; then
16977        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_zlib_ldflags"
16978        ap_zlib_ldflags="$ap_zlib_ldflags $i"
16979      fi
16980    done
16981  fi
16982
16983      fi
16984    fi
16985
16986  if test "x$LIBS" = "x"; then
16987    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lz\""
16988    LIBS="-lz"
16989  else
16990    apr_addto_bugger="-lz"
16991    for i in $apr_addto_bugger; do
16992      apr_addto_duplicate="0"
16993      for j in $LIBS; do
16994        if test "x$i" = "x$j"; then
16995          apr_addto_duplicate="1"
16996          break
16997        fi
16998      done
16999      if test $apr_addto_duplicate = "0"; then
17000        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
17001        LIBS="$LIBS $i"
17002      fi
17003    done
17004  fi
17005
17006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
17007$as_echo_n "checking for zlib library... " >&6; }
17008    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009/* end confdefs.h.  */
17010#include <zlib.h>
17011int
17012main ()
17013{
17014int i = Z_OK;
17015  ;
17016  return 0;
17017}
17018_ACEOF
17019if ac_fn_c_try_link "$LINENO"; then :
17020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17021$as_echo "found" >&6; }
17022
17023  if test "x$MOD_DEFLATE_LDADD" = "x"; then
17024    test "x$silent" != "xyes" && echo "  setting MOD_DEFLATE_LDADD to \"$ap_zlib_ldflags -lz\""
17025    MOD_DEFLATE_LDADD="$ap_zlib_ldflags -lz"
17026  else
17027    apr_addto_bugger="$ap_zlib_ldflags -lz"
17028    for i in $apr_addto_bugger; do
17029      apr_addto_duplicate="0"
17030      for j in $MOD_DEFLATE_LDADD; do
17031        if test "x$i" = "x$j"; then
17032          apr_addto_duplicate="1"
17033          break
17034        fi
17035      done
17036      if test $apr_addto_duplicate = "0"; then
17037        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_DEFLATE_LDADD"
17038        MOD_DEFLATE_LDADD="$MOD_DEFLATE_LDADD $i"
17039      fi
17040    done
17041  fi
17042
17043else
17044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17045$as_echo "not found" >&6; }
17046       enable_deflate=no
17047       if test "x$ap_zlib_with" = "x"; then
17048         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ... Error, zlib was missing or unusable" >&5
17049$as_echo "$as_me: WARNING: ... Error, zlib was missing or unusable" >&2;}
17050       else
17051         as_fn_error $? "... Error, zlib was missing or unusable" "$LINENO" 5
17052       fi
17053
17054fi
17055rm -f core conftest.err conftest.$ac_objext \
17056    conftest$ac_exeext conftest.$ac_ext
17057    INCLUDES=$ap_save_includes
17058    LDFLAGS=$ap_save_ldflags
17059    CPPFLAGS=$ap_save_cppflags
17060
17061  if test "x$LIBS" = "x-lz"; then
17062    test "x$silent" != "xyes" && echo "  nulling LIBS"
17063    LIBS=""
17064  else
17065    apr_new_bugger=""
17066    apr_removed=0
17067    for i in $LIBS; do
17068      if test "x$i" != "x-lz"; then
17069        apr_new_bugger="$apr_new_bugger $i"
17070      else
17071        apr_removed=1
17072      fi
17073    done
17074    if test $apr_removed = "1"; then
17075      test "x$silent" != "xyes" && echo "  removed \"-lz\" from LIBS"
17076      LIBS=$apr_new_bugger
17077    fi
17078  fi
17079
17080  fi
17081
17082            :
17083            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_deflate" >&5
17084$as_echo_n "checking whether to enable mod_deflate... " >&6; }
17085            if test "$enable_deflate" = "no"; then
17086              if test "$_apmod_required" = "no"; then
17087                _apmod_extra_msg=" (disabled)"
17088              else
17089                as_fn_error $? "mod_deflate has been requested but can not be built due to prerequisite failures" "$LINENO" 5
17090              fi
17091            fi
17092  fi
17093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_deflate$_apmod_extra_msg" >&5
17094$as_echo "$enable_deflate$_apmod_extra_msg" >&6; }
17095  if test "$enable_deflate" != "no"; then
17096    case "$enable_deflate" in
17097    static*)
17098      MODLIST="$MODLIST deflate"
17099      if test "deflate" = "so"; then
17100          sharedobjs=yes
17101      fi
17102      shared="";;
17103    *)
17104      enable_deflate=`echo $enable_deflate|sed 's/shared,*//'`
17105      sharedobjs=yes
17106      shared=yes
17107      DSO_MODULES="$DSO_MODULES deflate"
17108      if test "most" = "yes" ; then
17109        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},deflate"
17110      fi
17111      ;;
17112    esac
17113
17114
17115  if test -z ""; then
17116    objects="mod_deflate.lo"
17117  else
17118    objects=""
17119  fi
17120
17121  if test -z "$module_standalone"; then
17122    if test -z "$shared"; then
17123      # The filename of a convenience library must have a "lib" prefix:
17124      libname="libmod_deflate.la"
17125      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17126      modpath_static="$modpath_static $libname"
17127      cat >>$modpath_current/modules.mk<<EOF
17128$libname: $objects
17129	\$(MOD_LINK) $objects \$(MOD_DEFLATE_LDADD)
17130EOF
17131      if test ! -z "\$(MOD_DEFLATE_LDADD)"; then
17132
17133  if test "x$AP_LIBS" = "x"; then
17134    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DEFLATE_LDADD)\""
17135    AP_LIBS="\$(MOD_DEFLATE_LDADD)"
17136  else
17137    apr_addto_bugger="\$(MOD_DEFLATE_LDADD)"
17138    for i in $apr_addto_bugger; do
17139      apr_addto_duplicate="0"
17140      for j in $AP_LIBS; do
17141        if test "x$i" = "x$j"; then
17142          apr_addto_duplicate="1"
17143          break
17144        fi
17145      done
17146      if test $apr_addto_duplicate = "0"; then
17147        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17148        AP_LIBS="$AP_LIBS $i"
17149      fi
17150    done
17151  fi
17152
17153      fi
17154    else
17155      apache_need_shared=yes
17156      libname="mod_deflate.la"
17157      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17158      modpath_shared="$modpath_shared $libname"
17159      cat >>$modpath_current/modules.mk<<EOF
17160$libname: $shobjects
17161	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DEFLATE_LDADD)
17162EOF
17163    fi
17164  fi
17165
17166
17167  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DEFLATE_LDADD"
17168
17169
17170
17171  fi
17172
17173
17174
17175
17176
17177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_xml2enc" >&5
17178$as_echo_n "checking whether to enable mod_xml2enc... " >&6; }
17179    # Check whether --enable-xml2enc was given.
17180if test "${enable_xml2enc+set}" = set; then :
17181  enableval=$enable_xml2enc; force_xml2enc=$enableval
17182else
17183  enable_xml2enc=maybe-all
17184fi
17185
17186    _apmod_extra_msg=""
17187        case "$enable_xml2enc" in
17188    yes|static|shared)
17189      _apmod_required="yes"
17190      ;;
17191    *)
17192      case "$module_selection" in
17193      reallyall|all|most)
17194        _apmod_required="no"
17195        ;;
17196      *)
17197        _apmod_required="yes"
17198        ;;
17199      esac
17200  esac
17201  if test "$enable_xml2enc" = "static"; then
17202    enable_xml2enc=static
17203  elif test "$enable_xml2enc" = "yes"; then
17204    enable_xml2enc=$module_default
17205  elif test "$enable_xml2enc" = "most"; then
17206    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
17207            "$module_selection" = "reallyall"
17208    then
17209      enable_xml2enc=$module_default
17210    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
17211      enable_xml2enc=no
17212    fi
17213    _apmod_extra_msg=" ($module_selection)"
17214  elif test "$enable_xml2enc" = "maybe-all"; then
17215    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
17216    then
17217      enable_xml2enc=$module_default
17218      _apmod_extra_msg=" ($module_selection)"
17219    else
17220      enable_xml2enc=no
17221    fi
17222  elif test "$enable_xml2enc" = "no" -a "$module_selection" = "reallyall" -a \
17223            "$force_xml2enc" != "no" ; then
17224      enable_xml2enc=$module_default
17225      _apmod_extra_msg=" ($module_selection)"
17226  fi
17227  if test "$enable_xml2enc" != "no"; then
17228            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
17229$as_echo "checking dependencies" >&6; }
17230            :
17231
17232
17233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
17234$as_echo_n "checking for libxml2... " >&6; }
17235if ${ac_cv_libxml2+:} false; then :
17236  $as_echo_n "(cached) " >&6
17237else
17238
17239
17240# Check whether --with-libxml2 was given.
17241if test "${with_libxml2+set}" = set; then :
17242  withval=$with_libxml2; test_paths="${with_libxml2}"
17243else
17244  test_paths="/usr/include/libxml2 /usr/local/include/libxml2 /usr/include /usr/local/include"
17245
17246fi
17247
17248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
17249$as_echo_n "checking for libxml2... " >&6; }
17250    xml2_path=""
17251    for x in ${test_paths}; do
17252        if test -f "${x}/libxml/parser.h"; then
17253          xml2_path="${x}"
17254          break
17255        fi
17256    done
17257    if test -n "${xml2_path}" ; then
17258      ac_cv_libxml2=yes
17259      XML2_INCLUDES="${xml2_path}"
17260    else
17261      ac_cv_libxml2=no
17262    fi
17263
17264fi
17265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxml2" >&5
17266$as_echo "$ac_cv_libxml2" >&6; }
17267
17268  if test "$ac_cv_libxml2" = "yes" ; then
17269
17270  if test "x$MOD_CFLAGS" = "x"; then
17271    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I${XML2_INCLUDES}\""
17272    MOD_CFLAGS="-I${XML2_INCLUDES}"
17273  else
17274    apr_addto_bugger="-I${XML2_INCLUDES}"
17275    for i in $apr_addto_bugger; do
17276      apr_addto_duplicate="0"
17277      for j in $MOD_CFLAGS; do
17278        if test "x$i" = "x$j"; then
17279          apr_addto_duplicate="1"
17280          break
17281        fi
17282      done
17283      if test $apr_addto_duplicate = "0"; then
17284        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
17285        MOD_CFLAGS="$MOD_CFLAGS $i"
17286      fi
17287    done
17288  fi
17289
17290
17291  if test "x$MOD_XML2ENC_LDADD" = "x"; then
17292    test "x$silent" != "xyes" && echo "  setting MOD_XML2ENC_LDADD to \"-lxml2\""
17293    MOD_XML2ENC_LDADD="-lxml2"
17294  else
17295    apr_addto_bugger="-lxml2"
17296    for i in $apr_addto_bugger; do
17297      apr_addto_duplicate="0"
17298      for j in $MOD_XML2ENC_LDADD; do
17299        if test "x$i" = "x$j"; then
17300          apr_addto_duplicate="1"
17301          break
17302        fi
17303      done
17304      if test $apr_addto_duplicate = "0"; then
17305        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_XML2ENC_LDADD"
17306        MOD_XML2ENC_LDADD="$MOD_XML2ENC_LDADD $i"
17307      fi
17308    done
17309  fi
17310
17311  else
17312    enable_xml2enc=no
17313  fi
17314
17315            :
17316            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_xml2enc" >&5
17317$as_echo_n "checking whether to enable mod_xml2enc... " >&6; }
17318            if test "$enable_xml2enc" = "no"; then
17319              if test "$_apmod_required" = "no"; then
17320                _apmod_extra_msg=" (disabled)"
17321              else
17322                as_fn_error $? "mod_xml2enc has been requested but can not be built due to prerequisite failures" "$LINENO" 5
17323              fi
17324            fi
17325  fi
17326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xml2enc$_apmod_extra_msg" >&5
17327$as_echo "$enable_xml2enc$_apmod_extra_msg" >&6; }
17328  if test "$enable_xml2enc" != "no"; then
17329    case "$enable_xml2enc" in
17330    static*)
17331      MODLIST="$MODLIST xml2enc"
17332      if test "xml2enc" = "so"; then
17333          sharedobjs=yes
17334      fi
17335      shared="";;
17336    *)
17337      enable_xml2enc=`echo $enable_xml2enc|sed 's/shared,*//'`
17338      sharedobjs=yes
17339      shared=yes
17340      DSO_MODULES="$DSO_MODULES xml2enc"
17341      if test "" = "yes" ; then
17342        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},xml2enc"
17343      fi
17344      ;;
17345    esac
17346
17347
17348  if test -z ""; then
17349    objects="mod_xml2enc.lo"
17350  else
17351    objects=""
17352  fi
17353
17354  if test -z "$module_standalone"; then
17355    if test -z "$shared"; then
17356      # The filename of a convenience library must have a "lib" prefix:
17357      libname="libmod_xml2enc.la"
17358      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17359      modpath_static="$modpath_static $libname"
17360      cat >>$modpath_current/modules.mk<<EOF
17361$libname: $objects
17362	\$(MOD_LINK) $objects \$(MOD_XML2ENC_LDADD)
17363EOF
17364      if test ! -z "\$(MOD_XML2ENC_LDADD)"; then
17365
17366  if test "x$AP_LIBS" = "x"; then
17367    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_XML2ENC_LDADD)\""
17368    AP_LIBS="\$(MOD_XML2ENC_LDADD)"
17369  else
17370    apr_addto_bugger="\$(MOD_XML2ENC_LDADD)"
17371    for i in $apr_addto_bugger; do
17372      apr_addto_duplicate="0"
17373      for j in $AP_LIBS; do
17374        if test "x$i" = "x$j"; then
17375          apr_addto_duplicate="1"
17376          break
17377        fi
17378      done
17379      if test $apr_addto_duplicate = "0"; then
17380        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17381        AP_LIBS="$AP_LIBS $i"
17382      fi
17383    done
17384  fi
17385
17386      fi
17387    else
17388      apache_need_shared=yes
17389      libname="mod_xml2enc.la"
17390      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17391      modpath_shared="$modpath_shared $libname"
17392      cat >>$modpath_current/modules.mk<<EOF
17393$libname: $shobjects
17394	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_XML2ENC_LDADD)
17395EOF
17396    fi
17397  fi
17398
17399
17400  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_XML2ENC_LDADD"
17401
17402
17403
17404  fi
17405
17406
17407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_html" >&5
17408$as_echo_n "checking whether to enable mod_proxy_html... " >&6; }
17409    # Check whether --enable-proxy-html was given.
17410if test "${enable_proxy_html+set}" = set; then :
17411  enableval=$enable_proxy_html; force_proxy_html=$enableval
17412else
17413  enable_proxy_html=maybe-all
17414fi
17415
17416    _apmod_extra_msg=""
17417        case "$enable_proxy_html" in
17418    yes|static|shared)
17419      _apmod_required="yes"
17420      ;;
17421    *)
17422      case "$module_selection" in
17423      reallyall|all|most)
17424        _apmod_required="no"
17425        ;;
17426      *)
17427        _apmod_required="yes"
17428        ;;
17429      esac
17430  esac
17431  if test "$enable_proxy_html" = "static"; then
17432    enable_proxy_html=static
17433  elif test "$enable_proxy_html" = "yes"; then
17434    enable_proxy_html=$module_default
17435  elif test "$enable_proxy_html" = "most"; then
17436    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
17437            "$module_selection" = "reallyall"
17438    then
17439      enable_proxy_html=$module_default
17440    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
17441      enable_proxy_html=no
17442    fi
17443    _apmod_extra_msg=" ($module_selection)"
17444  elif test "$enable_proxy_html" = "maybe-all"; then
17445    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
17446    then
17447      enable_proxy_html=$module_default
17448      _apmod_extra_msg=" ($module_selection)"
17449    else
17450      enable_proxy_html=no
17451    fi
17452  elif test "$enable_proxy_html" = "no" -a "$module_selection" = "reallyall" -a \
17453            "$force_proxy_html" != "no" ; then
17454      enable_proxy_html=$module_default
17455      _apmod_extra_msg=" ($module_selection)"
17456  fi
17457  if test "$enable_proxy_html" != "no"; then
17458            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
17459$as_echo "checking dependencies" >&6; }
17460            :
17461
17462
17463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
17464$as_echo_n "checking for libxml2... " >&6; }
17465if ${ac_cv_libxml2+:} false; then :
17466  $as_echo_n "(cached) " >&6
17467else
17468
17469
17470# Check whether --with-libxml2 was given.
17471if test "${with_libxml2+set}" = set; then :
17472  withval=$with_libxml2; test_paths="${with_libxml2}"
17473else
17474  test_paths="/usr/include/libxml2 /usr/local/include/libxml2 /usr/include /usr/local/include"
17475
17476fi
17477
17478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
17479$as_echo_n "checking for libxml2... " >&6; }
17480    xml2_path=""
17481    for x in ${test_paths}; do
17482        if test -f "${x}/libxml/parser.h"; then
17483          xml2_path="${x}"
17484          break
17485        fi
17486    done
17487    if test -n "${xml2_path}" ; then
17488      ac_cv_libxml2=yes
17489      XML2_INCLUDES="${xml2_path}"
17490    else
17491      ac_cv_libxml2=no
17492    fi
17493
17494fi
17495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxml2" >&5
17496$as_echo "$ac_cv_libxml2" >&6; }
17497
17498  if test "$ac_cv_libxml2" = "yes" ; then
17499
17500  if test "x$MOD_CFLAGS" = "x"; then
17501    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I${XML2_INCLUDES}\""
17502    MOD_CFLAGS="-I${XML2_INCLUDES}"
17503  else
17504    apr_addto_bugger="-I${XML2_INCLUDES}"
17505    for i in $apr_addto_bugger; do
17506      apr_addto_duplicate="0"
17507      for j in $MOD_CFLAGS; do
17508        if test "x$i" = "x$j"; then
17509          apr_addto_duplicate="1"
17510          break
17511        fi
17512      done
17513      if test $apr_addto_duplicate = "0"; then
17514        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
17515        MOD_CFLAGS="$MOD_CFLAGS $i"
17516      fi
17517    done
17518  fi
17519
17520
17521  if test "x$MOD_PROXY_HTML_LDADD" = "x"; then
17522    test "x$silent" != "xyes" && echo "  setting MOD_PROXY_HTML_LDADD to \"-lxml2\""
17523    MOD_PROXY_HTML_LDADD="-lxml2"
17524  else
17525    apr_addto_bugger="-lxml2"
17526    for i in $apr_addto_bugger; do
17527      apr_addto_duplicate="0"
17528      for j in $MOD_PROXY_HTML_LDADD; do
17529        if test "x$i" = "x$j"; then
17530          apr_addto_duplicate="1"
17531          break
17532        fi
17533      done
17534      if test $apr_addto_duplicate = "0"; then
17535        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_PROXY_HTML_LDADD"
17536        MOD_PROXY_HTML_LDADD="$MOD_PROXY_HTML_LDADD $i"
17537      fi
17538    done
17539  fi
17540
17541  else
17542    enable_proxy_html=no
17543  fi
17544
17545
17546            :
17547            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_html" >&5
17548$as_echo_n "checking whether to enable mod_proxy_html... " >&6; }
17549            if test "$enable_proxy_html" = "no"; then
17550              if test "$_apmod_required" = "no"; then
17551                _apmod_extra_msg=" (disabled)"
17552              else
17553                as_fn_error $? "mod_proxy_html has been requested but can not be built due to prerequisite failures" "$LINENO" 5
17554              fi
17555            fi
17556  fi
17557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_html$_apmod_extra_msg" >&5
17558$as_echo "$enable_proxy_html$_apmod_extra_msg" >&6; }
17559  if test "$enable_proxy_html" != "no"; then
17560    case "$enable_proxy_html" in
17561    static*)
17562      MODLIST="$MODLIST proxy_html"
17563      if test "proxy_html" = "so"; then
17564          sharedobjs=yes
17565      fi
17566      shared="";;
17567    *)
17568      enable_proxy_html=`echo $enable_proxy_html|sed 's/shared,*//'`
17569      sharedobjs=yes
17570      shared=yes
17571      DSO_MODULES="$DSO_MODULES proxy_html"
17572      if test "" = "yes" ; then
17573        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_html"
17574      fi
17575      ;;
17576    esac
17577
17578
17579  if test -z ""; then
17580    objects="mod_proxy_html.lo"
17581  else
17582    objects=""
17583  fi
17584
17585  if test -z "$module_standalone"; then
17586    if test -z "$shared"; then
17587      # The filename of a convenience library must have a "lib" prefix:
17588      libname="libmod_proxy_html.la"
17589      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17590      modpath_static="$modpath_static $libname"
17591      cat >>$modpath_current/modules.mk<<EOF
17592$libname: $objects
17593	\$(MOD_LINK) $objects \$(MOD_PROXY_HTML_LDADD)
17594EOF
17595      if test ! -z "\$(MOD_PROXY_HTML_LDADD)"; then
17596
17597  if test "x$AP_LIBS" = "x"; then
17598    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_HTML_LDADD)\""
17599    AP_LIBS="\$(MOD_PROXY_HTML_LDADD)"
17600  else
17601    apr_addto_bugger="\$(MOD_PROXY_HTML_LDADD)"
17602    for i in $apr_addto_bugger; do
17603      apr_addto_duplicate="0"
17604      for j in $AP_LIBS; do
17605        if test "x$i" = "x$j"; then
17606          apr_addto_duplicate="1"
17607          break
17608        fi
17609      done
17610      if test $apr_addto_duplicate = "0"; then
17611        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17612        AP_LIBS="$AP_LIBS $i"
17613      fi
17614    done
17615  fi
17616
17617      fi
17618    else
17619      apache_need_shared=yes
17620      libname="mod_proxy_html.la"
17621      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17622      modpath_shared="$modpath_shared $libname"
17623      cat >>$modpath_current/modules.mk<<EOF
17624$libname: $shobjects
17625	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HTML_LDADD)
17626EOF
17627    fi
17628  fi
17629
17630
17631  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTML_LDADD"
17632
17633
17634
17635  fi
17636
17637
17638
17639  if test "x$INCLUDES" = "x"; then
17640    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
17641    INCLUDES="-I\$(top_srcdir)/$modpath_current"
17642  else
17643    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
17644    for i in $apr_addto_bugger; do
17645      apr_addto_duplicate="0"
17646      for j in $INCLUDES; do
17647        if test "x$i" = "x$j"; then
17648          apr_addto_duplicate="1"
17649          break
17650        fi
17651      done
17652      if test $apr_addto_duplicate = "0"; then
17653        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
17654        INCLUDES="$INCLUDES $i"
17655      fi
17656    done
17657  fi
17658
17659
17660
17661  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
17662  echo "static = $modpath_static" >> $modpath_current/modules.mk
17663  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
17664  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
17665    if eval val=\"\$MOD_$var\"; test -n "$val"; then
17666      echo "MOD_$var = $val" >> $modpath_current/modules.mk
17667    fi
17668  done
17669  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
17670    MODULE_DIRS="$MODULE_DIRS $current_dir"
17671  else
17672    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
17673  fi
17674
17675  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
17676
17677
17678
17679
17680
17681  current_dir=http
17682  modpath_current=modules/http
17683  modpath_static=
17684  modpath_shared=
17685  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
17686    eval MOD_$var=
17687  done
17688  test -d http || $srcdir/build/mkdir.sh $modpath_current
17689  > $modpath_current/modules.mk
17690
17691
17692http_objects="http_core.lo http_protocol.lo http_request.lo http_filters.lo chunk_filter.lo byterange_filter.lo http_etag.lo"
17693
17694if test "$enable_http" = "yes"; then
17695    enable_http="static"
17696elif test "$enable_http" = "shared"; then
17697    as_fn_error $? "mod_http can not be built as a shared DSO" "$LINENO" 5
17698fi
17699
17700
17701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_http" >&5
17702$as_echo_n "checking whether to enable mod_http... " >&6; }
17703    # Check whether --enable-http was given.
17704if test "${enable_http+set}" = set; then :
17705  enableval=$enable_http; force_http=$enableval
17706else
17707  enable_http=static
17708fi
17709
17710    _apmod_extra_msg=""
17711        case "$enable_http" in
17712    yes|static|shared)
17713      _apmod_required="yes"
17714      ;;
17715    *)
17716      case "$module_selection" in
17717      reallyall|all|most)
17718        _apmod_required="no"
17719        ;;
17720      *)
17721        _apmod_required="yes"
17722        ;;
17723      esac
17724  esac
17725  if test "$enable_http" = "static"; then
17726    enable_http=static
17727  elif test "$enable_http" = "yes"; then
17728    enable_http=$module_default
17729  elif test "$enable_http" = "most"; then
17730    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
17731            "$module_selection" = "reallyall"
17732    then
17733      enable_http=$module_default
17734    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
17735      enable_http=no
17736    fi
17737    _apmod_extra_msg=" ($module_selection)"
17738  elif test "$enable_http" = "maybe-all"; then
17739    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
17740    then
17741      enable_http=$module_default
17742      _apmod_extra_msg=" ($module_selection)"
17743    else
17744      enable_http=no
17745    fi
17746  elif test "$enable_http" = "no" -a "$module_selection" = "reallyall" -a \
17747            "$force_http" != "no" ; then
17748      enable_http=$module_default
17749      _apmod_extra_msg=" ($module_selection)"
17750  fi
17751  if test "$enable_http" != "no"; then
17752            :
17753  fi
17754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_http$_apmod_extra_msg" >&5
17755$as_echo "$enable_http$_apmod_extra_msg" >&6; }
17756  if test "$enable_http" != "no"; then
17757    case "$enable_http" in
17758    static*)
17759      MODLIST="$MODLIST http"
17760      if test "http" = "so"; then
17761          sharedobjs=yes
17762      fi
17763      shared="";;
17764    *)
17765      enable_http=`echo $enable_http|sed 's/shared,*//'`
17766      sharedobjs=yes
17767      shared=yes
17768      DSO_MODULES="$DSO_MODULES http"
17769      if test "static" = "yes" ; then
17770        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},http"
17771      fi
17772      ;;
17773    esac
17774
17775
17776  if test -z "$http_objects"; then
17777    objects="mod_http.lo"
17778  else
17779    objects="$http_objects"
17780  fi
17781
17782  if test -z "$module_standalone"; then
17783    if test -z "$shared"; then
17784      # The filename of a convenience library must have a "lib" prefix:
17785      libname="libmod_http.la"
17786      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17787      modpath_static="$modpath_static $libname"
17788      cat >>$modpath_current/modules.mk<<EOF
17789$libname: $objects
17790	\$(MOD_LINK) $objects \$(MOD_HTTP_LDADD)
17791EOF
17792      if test ! -z "\$(MOD_HTTP_LDADD)"; then
17793
17794  if test "x$AP_LIBS" = "x"; then
17795    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HTTP_LDADD)\""
17796    AP_LIBS="\$(MOD_HTTP_LDADD)"
17797  else
17798    apr_addto_bugger="\$(MOD_HTTP_LDADD)"
17799    for i in $apr_addto_bugger; do
17800      apr_addto_duplicate="0"
17801      for j in $AP_LIBS; do
17802        if test "x$i" = "x$j"; then
17803          apr_addto_duplicate="1"
17804          break
17805        fi
17806      done
17807      if test $apr_addto_duplicate = "0"; then
17808        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17809        AP_LIBS="$AP_LIBS $i"
17810      fi
17811    done
17812  fi
17813
17814      fi
17815    else
17816      apache_need_shared=yes
17817      libname="mod_http.la"
17818      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17819      modpath_shared="$modpath_shared $libname"
17820      cat >>$modpath_current/modules.mk<<EOF
17821$libname: $shobjects
17822	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HTTP_LDADD)
17823EOF
17824    fi
17825  fi
17826
17827
17828  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HTTP_LDADD"
17829
17830
17831
17832  fi
17833
17834
17835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_mime" >&5
17836$as_echo_n "checking whether to enable mod_mime... " >&6; }
17837    # Check whether --enable-mime was given.
17838if test "${enable_mime+set}" = set; then :
17839  enableval=$enable_mime; force_mime=$enableval
17840else
17841  enable_mime=yes
17842fi
17843
17844    _apmod_extra_msg=""
17845        case "$enable_mime" in
17846    yes|static|shared)
17847      _apmod_required="yes"
17848      ;;
17849    *)
17850      case "$module_selection" in
17851      reallyall|all|most)
17852        _apmod_required="no"
17853        ;;
17854      *)
17855        _apmod_required="yes"
17856        ;;
17857      esac
17858  esac
17859  if test "$enable_mime" = "static"; then
17860    enable_mime=static
17861  elif test "$enable_mime" = "yes"; then
17862    enable_mime=$module_default
17863  elif test "$enable_mime" = "most"; then
17864    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
17865            "$module_selection" = "reallyall"
17866    then
17867      enable_mime=$module_default
17868    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
17869      enable_mime=no
17870    fi
17871    _apmod_extra_msg=" ($module_selection)"
17872  elif test "$enable_mime" = "maybe-all"; then
17873    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
17874    then
17875      enable_mime=$module_default
17876      _apmod_extra_msg=" ($module_selection)"
17877    else
17878      enable_mime=no
17879    fi
17880  elif test "$enable_mime" = "no" -a "$module_selection" = "reallyall" -a \
17881            "$force_mime" != "no" ; then
17882      enable_mime=$module_default
17883      _apmod_extra_msg=" ($module_selection)"
17884  fi
17885  if test "$enable_mime" != "no"; then
17886            :
17887  fi
17888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mime$_apmod_extra_msg" >&5
17889$as_echo "$enable_mime$_apmod_extra_msg" >&6; }
17890  if test "$enable_mime" != "no"; then
17891    case "$enable_mime" in
17892    static*)
17893      MODLIST="$MODLIST mime"
17894      if test "mime" = "so"; then
17895          sharedobjs=yes
17896      fi
17897      shared="";;
17898    *)
17899      enable_mime=`echo $enable_mime|sed 's/shared,*//'`
17900      sharedobjs=yes
17901      shared=yes
17902      DSO_MODULES="$DSO_MODULES mime"
17903      if test "yes" = "yes" ; then
17904        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mime"
17905      fi
17906      ;;
17907    esac
17908
17909
17910  if test -z ""; then
17911    objects="mod_mime.lo"
17912  else
17913    objects=""
17914  fi
17915
17916  if test -z "$module_standalone"; then
17917    if test -z "$shared"; then
17918      # The filename of a convenience library must have a "lib" prefix:
17919      libname="libmod_mime.la"
17920      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
17921      modpath_static="$modpath_static $libname"
17922      cat >>$modpath_current/modules.mk<<EOF
17923$libname: $objects
17924	\$(MOD_LINK) $objects \$(MOD_MIME_LDADD)
17925EOF
17926      if test ! -z "\$(MOD_MIME_LDADD)"; then
17927
17928  if test "x$AP_LIBS" = "x"; then
17929    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MIME_LDADD)\""
17930    AP_LIBS="\$(MOD_MIME_LDADD)"
17931  else
17932    apr_addto_bugger="\$(MOD_MIME_LDADD)"
17933    for i in $apr_addto_bugger; do
17934      apr_addto_duplicate="0"
17935      for j in $AP_LIBS; do
17936        if test "x$i" = "x$j"; then
17937          apr_addto_duplicate="1"
17938          break
17939        fi
17940      done
17941      if test $apr_addto_duplicate = "0"; then
17942        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
17943        AP_LIBS="$AP_LIBS $i"
17944      fi
17945    done
17946  fi
17947
17948      fi
17949    else
17950      apache_need_shared=yes
17951      libname="mod_mime.la"
17952      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
17953      modpath_shared="$modpath_shared $libname"
17954      cat >>$modpath_current/modules.mk<<EOF
17955$libname: $shobjects
17956	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_LDADD)
17957EOF
17958    fi
17959  fi
17960
17961
17962  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_LDADD"
17963
17964
17965
17966  fi
17967
17968
17969
17970  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
17971  echo "static = $modpath_static" >> $modpath_current/modules.mk
17972  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
17973  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
17974    if eval val=\"\$MOD_$var\"; test -n "$val"; then
17975      echo "MOD_$var = $val" >> $modpath_current/modules.mk
17976    fi
17977  done
17978  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
17979    MODULE_DIRS="$MODULE_DIRS $current_dir"
17980  else
17981    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
17982  fi
17983
17984  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
17985
17986
17987
17988
17989
17990
17991  current_dir=ldap
17992  modpath_current=modules/ldap
17993  modpath_static=
17994  modpath_shared=
17995  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
17996    eval MOD_$var=
17997  done
17998  test -d ldap || $srcdir/build/mkdir.sh $modpath_current
17999  > $modpath_current/modules.mk
18000
18001
18002ldap_objects="util_ldap.lo util_ldap_cache.lo util_ldap_cache_mgr.lo"
18003
18004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ldap" >&5
18005$as_echo_n "checking whether to enable mod_ldap... " >&6; }
18006    # Check whether --enable-ldap was given.
18007if test "${enable_ldap+set}" = set; then :
18008  enableval=$enable_ldap; force_ldap=$enableval
18009else
18010  enable_ldap=most
18011fi
18012
18013    _apmod_extra_msg=""
18014        case "$enable_ldap" in
18015    yes|static|shared)
18016      _apmod_required="yes"
18017      ;;
18018    *)
18019      case "$module_selection" in
18020      reallyall|all|most)
18021        _apmod_required="no"
18022        ;;
18023      *)
18024        _apmod_required="yes"
18025        ;;
18026      esac
18027  esac
18028  if test "$enable_ldap" = "static"; then
18029    enable_ldap=static
18030  elif test "$enable_ldap" = "yes"; then
18031    enable_ldap=$module_default
18032  elif test "$enable_ldap" = "most"; then
18033    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18034            "$module_selection" = "reallyall"
18035    then
18036      enable_ldap=$module_default
18037    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18038      enable_ldap=no
18039    fi
18040    _apmod_extra_msg=" ($module_selection)"
18041  elif test "$enable_ldap" = "maybe-all"; then
18042    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18043    then
18044      enable_ldap=$module_default
18045      _apmod_extra_msg=" ($module_selection)"
18046    else
18047      enable_ldap=no
18048    fi
18049  elif test "$enable_ldap" = "no" -a "$module_selection" = "reallyall" -a \
18050            "$force_ldap" != "no" ; then
18051      enable_ldap=$module_default
18052      _apmod_extra_msg=" ($module_selection)"
18053  fi
18054  if test "$enable_ldap" != "no"; then
18055            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
18056$as_echo "checking dependencies" >&6; }
18057            :
18058
18059
18060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap support in apr/apr-util" >&5
18061$as_echo_n "checking for ldap support in apr/apr-util... " >&6; }
18062if ${ac_cv_APR_HAS_LDAP+:} false; then :
18063  $as_echo_n "(cached) " >&6
18064else
18065
18066    apache_old_cppflags="$CPPFLAGS"
18067    CPPFLAGS="$CPPFLAGS $INCLUDES"
18068    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18069/* end confdefs.h.  */
18070
18071#include <apr_ldap.h>
18072#if APR_HAS_LDAP
18073YES_IS_DEFINED
18074#endif
18075
18076_ACEOF
18077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18078  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
18079  ac_cv_APR_HAS_LDAP=yes
18080else
18081  ac_cv_APR_HAS_LDAP=no
18082fi
18083rm -f conftest*
18084
18085    CPPFLAGS="$apache_old_cppflags"
18086
18087fi
18088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_APR_HAS_LDAP" >&5
18089$as_echo "$ac_cv_APR_HAS_LDAP" >&6; }
18090
18091  if test "$ac_cv_APR_HAS_LDAP" = "yes" ; then
18092    if test -z "$apu_config" ; then
18093      LDAP_LIBS="`$apr_config --ldap-libs`"
18094    else
18095      LDAP_LIBS="`$apu_config --ldap-libs`"
18096    fi
18097
18098  if test "x$MOD_LDAP_LDADD" = "x"; then
18099    test "x$silent" != "xyes" && echo "  setting MOD_LDAP_LDADD to \"$LDAP_LIBS\""
18100    MOD_LDAP_LDADD="$LDAP_LIBS"
18101  else
18102    apr_addto_bugger="$LDAP_LIBS"
18103    for i in $apr_addto_bugger; do
18104      apr_addto_duplicate="0"
18105      for j in $MOD_LDAP_LDADD; do
18106        if test "x$i" = "x$j"; then
18107          apr_addto_duplicate="1"
18108          break
18109        fi
18110      done
18111      if test $apr_addto_duplicate = "0"; then
18112        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDAP_LDADD"
18113        MOD_LDAP_LDADD="$MOD_LDAP_LDADD $i"
18114      fi
18115    done
18116  fi
18117
18118
18119  else
18120    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: apr/apr-util is compiled without ldap support" >&5
18121$as_echo "$as_me: WARNING: apr/apr-util is compiled without ldap support" >&2;}
18122    enable_ldap=no
18123  fi
18124
18125            :
18126            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ldap" >&5
18127$as_echo_n "checking whether to enable mod_ldap... " >&6; }
18128            if test "$enable_ldap" = "no"; then
18129              if test "$_apmod_required" = "no"; then
18130                _apmod_extra_msg=" (disabled)"
18131              else
18132                as_fn_error $? "mod_ldap has been requested but can not be built due to prerequisite failures" "$LINENO" 5
18133              fi
18134            fi
18135  fi
18136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ldap$_apmod_extra_msg" >&5
18137$as_echo "$enable_ldap$_apmod_extra_msg" >&6; }
18138  if test "$enable_ldap" != "no"; then
18139    case "$enable_ldap" in
18140    static*)
18141      MODLIST="$MODLIST ldap"
18142      if test "ldap" = "so"; then
18143          sharedobjs=yes
18144      fi
18145      shared="";;
18146    *)
18147      enable_ldap=`echo $enable_ldap|sed 's/shared,*//'`
18148      sharedobjs=yes
18149      shared=yes
18150      DSO_MODULES="$DSO_MODULES ldap"
18151      if test "most " = "yes" ; then
18152        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ldap"
18153      fi
18154      ;;
18155    esac
18156
18157
18158  if test -z "$ldap_objects"; then
18159    objects="mod_ldap.lo"
18160  else
18161    objects="$ldap_objects"
18162  fi
18163
18164  if test -z "$module_standalone"; then
18165    if test -z "$shared"; then
18166      # The filename of a convenience library must have a "lib" prefix:
18167      libname="libmod_ldap.la"
18168      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18169      modpath_static="$modpath_static $libname"
18170      cat >>$modpath_current/modules.mk<<EOF
18171$libname: $objects
18172	\$(MOD_LINK) $objects \$(MOD_LDAP_LDADD)
18173EOF
18174      if test ! -z "\$(MOD_LDAP_LDADD)"; then
18175
18176  if test "x$AP_LIBS" = "x"; then
18177    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LDAP_LDADD)\""
18178    AP_LIBS="\$(MOD_LDAP_LDADD)"
18179  else
18180    apr_addto_bugger="\$(MOD_LDAP_LDADD)"
18181    for i in $apr_addto_bugger; do
18182      apr_addto_duplicate="0"
18183      for j in $AP_LIBS; do
18184        if test "x$i" = "x$j"; then
18185          apr_addto_duplicate="1"
18186          break
18187        fi
18188      done
18189      if test $apr_addto_duplicate = "0"; then
18190        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18191        AP_LIBS="$AP_LIBS $i"
18192      fi
18193    done
18194  fi
18195
18196      fi
18197    else
18198      apache_need_shared=yes
18199      libname="mod_ldap.la"
18200      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18201      modpath_shared="$modpath_shared $libname"
18202      cat >>$modpath_current/modules.mk<<EOF
18203$libname: $shobjects
18204	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LDAP_LDADD)
18205EOF
18206    fi
18207  fi
18208
18209
18210  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LDAP_LDADD"
18211
18212
18213
18214  fi
18215
18216
18217
18218  if test "x$INCLUDES" = "x"; then
18219    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
18220    INCLUDES="-I\$(top_srcdir)/$modpath_current"
18221  else
18222    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
18223    for i in $apr_addto_bugger; do
18224      apr_addto_duplicate="0"
18225      for j in $INCLUDES; do
18226        if test "x$i" = "x$j"; then
18227          apr_addto_duplicate="1"
18228          break
18229        fi
18230      done
18231      if test $apr_addto_duplicate = "0"; then
18232        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
18233        INCLUDES="$INCLUDES $i"
18234      fi
18235    done
18236  fi
18237
18238
18239
18240  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
18241  echo "static = $modpath_static" >> $modpath_current/modules.mk
18242  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
18243  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
18244    if eval val=\"\$MOD_$var\"; test -n "$val"; then
18245      echo "MOD_$var = $val" >> $modpath_current/modules.mk
18246    fi
18247  done
18248  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
18249    MODULE_DIRS="$MODULE_DIRS $current_dir"
18250  else
18251    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
18252  fi
18253
18254  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
18255
18256
18257
18258
18259
18260
18261  current_dir=loggers
18262  modpath_current=modules/loggers
18263  modpath_static=
18264  modpath_shared=
18265  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
18266    eval MOD_$var=
18267  done
18268  test -d loggers || $srcdir/build/mkdir.sh $modpath_current
18269  > $modpath_current/modules.mk
18270
18271
18272
18273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_log_config" >&5
18274$as_echo_n "checking whether to enable mod_log_config... " >&6; }
18275    # Check whether --enable-log-config was given.
18276if test "${enable_log_config+set}" = set; then :
18277  enableval=$enable_log_config; force_log_config=$enableval
18278else
18279  enable_log_config=yes
18280fi
18281
18282    _apmod_extra_msg=""
18283        case "$enable_log_config" in
18284    yes|static|shared)
18285      _apmod_required="yes"
18286      ;;
18287    *)
18288      case "$module_selection" in
18289      reallyall|all|most)
18290        _apmod_required="no"
18291        ;;
18292      *)
18293        _apmod_required="yes"
18294        ;;
18295      esac
18296  esac
18297  if test "$enable_log_config" = "static"; then
18298    enable_log_config=static
18299  elif test "$enable_log_config" = "yes"; then
18300    enable_log_config=$module_default
18301  elif test "$enable_log_config" = "most"; then
18302    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18303            "$module_selection" = "reallyall"
18304    then
18305      enable_log_config=$module_default
18306    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18307      enable_log_config=no
18308    fi
18309    _apmod_extra_msg=" ($module_selection)"
18310  elif test "$enable_log_config" = "maybe-all"; then
18311    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18312    then
18313      enable_log_config=$module_default
18314      _apmod_extra_msg=" ($module_selection)"
18315    else
18316      enable_log_config=no
18317    fi
18318  elif test "$enable_log_config" = "no" -a "$module_selection" = "reallyall" -a \
18319            "$force_log_config" != "no" ; then
18320      enable_log_config=$module_default
18321      _apmod_extra_msg=" ($module_selection)"
18322  fi
18323  if test "$enable_log_config" != "no"; then
18324            :
18325  fi
18326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_config$_apmod_extra_msg" >&5
18327$as_echo "$enable_log_config$_apmod_extra_msg" >&6; }
18328  if test "$enable_log_config" != "no"; then
18329    case "$enable_log_config" in
18330    static*)
18331      MODLIST="$MODLIST log_config"
18332      if test "log_config" = "so"; then
18333          sharedobjs=yes
18334      fi
18335      shared="";;
18336    *)
18337      enable_log_config=`echo $enable_log_config|sed 's/shared,*//'`
18338      sharedobjs=yes
18339      shared=yes
18340      DSO_MODULES="$DSO_MODULES log_config"
18341      if test "yes" = "yes" ; then
18342        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},log_config"
18343      fi
18344      ;;
18345    esac
18346
18347
18348  if test -z ""; then
18349    objects="mod_log_config.lo"
18350  else
18351    objects=""
18352  fi
18353
18354  if test -z "$module_standalone"; then
18355    if test -z "$shared"; then
18356      # The filename of a convenience library must have a "lib" prefix:
18357      libname="libmod_log_config.la"
18358      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18359      modpath_static="$modpath_static $libname"
18360      cat >>$modpath_current/modules.mk<<EOF
18361$libname: $objects
18362	\$(MOD_LINK) $objects \$(MOD_LOG_CONFIG_LDADD)
18363EOF
18364      if test ! -z "\$(MOD_LOG_CONFIG_LDADD)"; then
18365
18366  if test "x$AP_LIBS" = "x"; then
18367    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOG_CONFIG_LDADD)\""
18368    AP_LIBS="\$(MOD_LOG_CONFIG_LDADD)"
18369  else
18370    apr_addto_bugger="\$(MOD_LOG_CONFIG_LDADD)"
18371    for i in $apr_addto_bugger; do
18372      apr_addto_duplicate="0"
18373      for j in $AP_LIBS; do
18374        if test "x$i" = "x$j"; then
18375          apr_addto_duplicate="1"
18376          break
18377        fi
18378      done
18379      if test $apr_addto_duplicate = "0"; then
18380        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18381        AP_LIBS="$AP_LIBS $i"
18382      fi
18383    done
18384  fi
18385
18386      fi
18387    else
18388      apache_need_shared=yes
18389      libname="mod_log_config.la"
18390      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18391      modpath_shared="$modpath_shared $libname"
18392      cat >>$modpath_current/modules.mk<<EOF
18393$libname: $shobjects
18394	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_CONFIG_LDADD)
18395EOF
18396    fi
18397  fi
18398
18399
18400  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_CONFIG_LDADD"
18401
18402
18403
18404  fi
18405
18406
18407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_log_debug" >&5
18408$as_echo_n "checking whether to enable mod_log_debug... " >&6; }
18409    # Check whether --enable-log-debug was given.
18410if test "${enable_log_debug+set}" = set; then :
18411  enableval=$enable_log_debug; force_log_debug=$enableval
18412else
18413  enable_log_debug=most
18414fi
18415
18416    _apmod_extra_msg=""
18417        case "$enable_log_debug" in
18418    yes|static|shared)
18419      _apmod_required="yes"
18420      ;;
18421    *)
18422      case "$module_selection" in
18423      reallyall|all|most)
18424        _apmod_required="no"
18425        ;;
18426      *)
18427        _apmod_required="yes"
18428        ;;
18429      esac
18430  esac
18431  if test "$enable_log_debug" = "static"; then
18432    enable_log_debug=static
18433  elif test "$enable_log_debug" = "yes"; then
18434    enable_log_debug=$module_default
18435  elif test "$enable_log_debug" = "most"; then
18436    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18437            "$module_selection" = "reallyall"
18438    then
18439      enable_log_debug=$module_default
18440    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18441      enable_log_debug=no
18442    fi
18443    _apmod_extra_msg=" ($module_selection)"
18444  elif test "$enable_log_debug" = "maybe-all"; then
18445    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18446    then
18447      enable_log_debug=$module_default
18448      _apmod_extra_msg=" ($module_selection)"
18449    else
18450      enable_log_debug=no
18451    fi
18452  elif test "$enable_log_debug" = "no" -a "$module_selection" = "reallyall" -a \
18453            "$force_log_debug" != "no" ; then
18454      enable_log_debug=$module_default
18455      _apmod_extra_msg=" ($module_selection)"
18456  fi
18457  if test "$enable_log_debug" != "no"; then
18458            :
18459  fi
18460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_debug$_apmod_extra_msg" >&5
18461$as_echo "$enable_log_debug$_apmod_extra_msg" >&6; }
18462  if test "$enable_log_debug" != "no"; then
18463    case "$enable_log_debug" in
18464    static*)
18465      MODLIST="$MODLIST log_debug"
18466      if test "log_debug" = "so"; then
18467          sharedobjs=yes
18468      fi
18469      shared="";;
18470    *)
18471      enable_log_debug=`echo $enable_log_debug|sed 's/shared,*//'`
18472      sharedobjs=yes
18473      shared=yes
18474      DSO_MODULES="$DSO_MODULES log_debug"
18475      if test "most" = "yes" ; then
18476        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},log_debug"
18477      fi
18478      ;;
18479    esac
18480
18481
18482  if test -z ""; then
18483    objects="mod_log_debug.lo"
18484  else
18485    objects=""
18486  fi
18487
18488  if test -z "$module_standalone"; then
18489    if test -z "$shared"; then
18490      # The filename of a convenience library must have a "lib" prefix:
18491      libname="libmod_log_debug.la"
18492      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18493      modpath_static="$modpath_static $libname"
18494      cat >>$modpath_current/modules.mk<<EOF
18495$libname: $objects
18496	\$(MOD_LINK) $objects \$(MOD_LOG_DEBUG_LDADD)
18497EOF
18498      if test ! -z "\$(MOD_LOG_DEBUG_LDADD)"; then
18499
18500  if test "x$AP_LIBS" = "x"; then
18501    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOG_DEBUG_LDADD)\""
18502    AP_LIBS="\$(MOD_LOG_DEBUG_LDADD)"
18503  else
18504    apr_addto_bugger="\$(MOD_LOG_DEBUG_LDADD)"
18505    for i in $apr_addto_bugger; do
18506      apr_addto_duplicate="0"
18507      for j in $AP_LIBS; do
18508        if test "x$i" = "x$j"; then
18509          apr_addto_duplicate="1"
18510          break
18511        fi
18512      done
18513      if test $apr_addto_duplicate = "0"; then
18514        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18515        AP_LIBS="$AP_LIBS $i"
18516      fi
18517    done
18518  fi
18519
18520      fi
18521    else
18522      apache_need_shared=yes
18523      libname="mod_log_debug.la"
18524      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18525      modpath_shared="$modpath_shared $libname"
18526      cat >>$modpath_current/modules.mk<<EOF
18527$libname: $shobjects
18528	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_DEBUG_LDADD)
18529EOF
18530    fi
18531  fi
18532
18533
18534  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_DEBUG_LDADD"
18535
18536
18537
18538  fi
18539
18540
18541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_log_forensic" >&5
18542$as_echo_n "checking whether to enable mod_log_forensic... " >&6; }
18543    # Check whether --enable-log-forensic was given.
18544if test "${enable_log_forensic+set}" = set; then :
18545  enableval=$enable_log_forensic; force_log_forensic=$enableval
18546else
18547  enable_log_forensic=maybe-all
18548fi
18549
18550    _apmod_extra_msg=""
18551        case "$enable_log_forensic" in
18552    yes|static|shared)
18553      _apmod_required="yes"
18554      ;;
18555    *)
18556      case "$module_selection" in
18557      reallyall|all|most)
18558        _apmod_required="no"
18559        ;;
18560      *)
18561        _apmod_required="yes"
18562        ;;
18563      esac
18564  esac
18565  if test "$enable_log_forensic" = "static"; then
18566    enable_log_forensic=static
18567  elif test "$enable_log_forensic" = "yes"; then
18568    enable_log_forensic=$module_default
18569  elif test "$enable_log_forensic" = "most"; then
18570    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18571            "$module_selection" = "reallyall"
18572    then
18573      enable_log_forensic=$module_default
18574    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18575      enable_log_forensic=no
18576    fi
18577    _apmod_extra_msg=" ($module_selection)"
18578  elif test "$enable_log_forensic" = "maybe-all"; then
18579    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18580    then
18581      enable_log_forensic=$module_default
18582      _apmod_extra_msg=" ($module_selection)"
18583    else
18584      enable_log_forensic=no
18585    fi
18586  elif test "$enable_log_forensic" = "no" -a "$module_selection" = "reallyall" -a \
18587            "$force_log_forensic" != "no" ; then
18588      enable_log_forensic=$module_default
18589      _apmod_extra_msg=" ($module_selection)"
18590  fi
18591  if test "$enable_log_forensic" != "no"; then
18592            :
18593  fi
18594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_forensic$_apmod_extra_msg" >&5
18595$as_echo "$enable_log_forensic$_apmod_extra_msg" >&6; }
18596  if test "$enable_log_forensic" != "no"; then
18597    case "$enable_log_forensic" in
18598    static*)
18599      MODLIST="$MODLIST log_forensic"
18600      if test "log_forensic" = "so"; then
18601          sharedobjs=yes
18602      fi
18603      shared="";;
18604    *)
18605      enable_log_forensic=`echo $enable_log_forensic|sed 's/shared,*//'`
18606      sharedobjs=yes
18607      shared=yes
18608      DSO_MODULES="$DSO_MODULES log_forensic"
18609      if test "" = "yes" ; then
18610        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},log_forensic"
18611      fi
18612      ;;
18613    esac
18614
18615
18616  if test -z ""; then
18617    objects="mod_log_forensic.lo"
18618  else
18619    objects=""
18620  fi
18621
18622  if test -z "$module_standalone"; then
18623    if test -z "$shared"; then
18624      # The filename of a convenience library must have a "lib" prefix:
18625      libname="libmod_log_forensic.la"
18626      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18627      modpath_static="$modpath_static $libname"
18628      cat >>$modpath_current/modules.mk<<EOF
18629$libname: $objects
18630	\$(MOD_LINK) $objects \$(MOD_LOG_FORENSIC_LDADD)
18631EOF
18632      if test ! -z "\$(MOD_LOG_FORENSIC_LDADD)"; then
18633
18634  if test "x$AP_LIBS" = "x"; then
18635    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOG_FORENSIC_LDADD)\""
18636    AP_LIBS="\$(MOD_LOG_FORENSIC_LDADD)"
18637  else
18638    apr_addto_bugger="\$(MOD_LOG_FORENSIC_LDADD)"
18639    for i in $apr_addto_bugger; do
18640      apr_addto_duplicate="0"
18641      for j in $AP_LIBS; do
18642        if test "x$i" = "x$j"; then
18643          apr_addto_duplicate="1"
18644          break
18645        fi
18646      done
18647      if test $apr_addto_duplicate = "0"; then
18648        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18649        AP_LIBS="$AP_LIBS $i"
18650      fi
18651    done
18652  fi
18653
18654      fi
18655    else
18656      apache_need_shared=yes
18657      libname="mod_log_forensic.la"
18658      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18659      modpath_shared="$modpath_shared $libname"
18660      cat >>$modpath_current/modules.mk<<EOF
18661$libname: $shobjects
18662	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_FORENSIC_LDADD)
18663EOF
18664    fi
18665  fi
18666
18667
18668  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_FORENSIC_LDADD"
18669
18670
18671
18672  fi
18673
18674
18675if test "x$enable_log_forensic" != "xno"; then
18676    # mod_log_forensic needs test_char.h
18677
18678  if test "x$INCLUDES" = "x"; then
18679    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_builddir)/server\""
18680    INCLUDES="-I\$(top_builddir)/server"
18681  else
18682    apr_addto_bugger="-I\$(top_builddir)/server"
18683    for i in $apr_addto_bugger; do
18684      apr_addto_duplicate="0"
18685      for j in $INCLUDES; do
18686        if test "x$i" = "x$j"; then
18687          apr_addto_duplicate="1"
18688          break
18689        fi
18690      done
18691      if test $apr_addto_duplicate = "0"; then
18692        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
18693        INCLUDES="$INCLUDES $i"
18694      fi
18695    done
18696  fi
18697
18698fi
18699
18700
18701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_logio" >&5
18702$as_echo_n "checking whether to enable mod_logio... " >&6; }
18703    # Check whether --enable-logio was given.
18704if test "${enable_logio+set}" = set; then :
18705  enableval=$enable_logio; force_logio=$enableval
18706else
18707  enable_logio=most
18708fi
18709
18710    _apmod_extra_msg=""
18711        case "$enable_logio" in
18712    yes|static|shared)
18713      _apmod_required="yes"
18714      ;;
18715    *)
18716      case "$module_selection" in
18717      reallyall|all|most)
18718        _apmod_required="no"
18719        ;;
18720      *)
18721        _apmod_required="yes"
18722        ;;
18723      esac
18724  esac
18725  if test "$enable_logio" = "static"; then
18726    enable_logio=static
18727  elif test "$enable_logio" = "yes"; then
18728    enable_logio=$module_default
18729  elif test "$enable_logio" = "most"; then
18730    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18731            "$module_selection" = "reallyall"
18732    then
18733      enable_logio=$module_default
18734    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18735      enable_logio=no
18736    fi
18737    _apmod_extra_msg=" ($module_selection)"
18738  elif test "$enable_logio" = "maybe-all"; then
18739    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18740    then
18741      enable_logio=$module_default
18742      _apmod_extra_msg=" ($module_selection)"
18743    else
18744      enable_logio=no
18745    fi
18746  elif test "$enable_logio" = "no" -a "$module_selection" = "reallyall" -a \
18747            "$force_logio" != "no" ; then
18748      enable_logio=$module_default
18749      _apmod_extra_msg=" ($module_selection)"
18750  fi
18751  if test "$enable_logio" != "no"; then
18752            :
18753  fi
18754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_logio$_apmod_extra_msg" >&5
18755$as_echo "$enable_logio$_apmod_extra_msg" >&6; }
18756  if test "$enable_logio" != "no"; then
18757    case "$enable_logio" in
18758    static*)
18759      MODLIST="$MODLIST logio"
18760      if test "logio" = "so"; then
18761          sharedobjs=yes
18762      fi
18763      shared="";;
18764    *)
18765      enable_logio=`echo $enable_logio|sed 's/shared,*//'`
18766      sharedobjs=yes
18767      shared=yes
18768      DSO_MODULES="$DSO_MODULES logio"
18769      if test "most" = "yes" ; then
18770        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},logio"
18771      fi
18772      ;;
18773    esac
18774
18775
18776  if test -z ""; then
18777    objects="mod_logio.lo"
18778  else
18779    objects=""
18780  fi
18781
18782  if test -z "$module_standalone"; then
18783    if test -z "$shared"; then
18784      # The filename of a convenience library must have a "lib" prefix:
18785      libname="libmod_logio.la"
18786      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
18787      modpath_static="$modpath_static $libname"
18788      cat >>$modpath_current/modules.mk<<EOF
18789$libname: $objects
18790	\$(MOD_LINK) $objects \$(MOD_LOGIO_LDADD)
18791EOF
18792      if test ! -z "\$(MOD_LOGIO_LDADD)"; then
18793
18794  if test "x$AP_LIBS" = "x"; then
18795    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOGIO_LDADD)\""
18796    AP_LIBS="\$(MOD_LOGIO_LDADD)"
18797  else
18798    apr_addto_bugger="\$(MOD_LOGIO_LDADD)"
18799    for i in $apr_addto_bugger; do
18800      apr_addto_duplicate="0"
18801      for j in $AP_LIBS; do
18802        if test "x$i" = "x$j"; then
18803          apr_addto_duplicate="1"
18804          break
18805        fi
18806      done
18807      if test $apr_addto_duplicate = "0"; then
18808        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
18809        AP_LIBS="$AP_LIBS $i"
18810      fi
18811    done
18812  fi
18813
18814      fi
18815    else
18816      apache_need_shared=yes
18817      libname="mod_logio.la"
18818      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
18819      modpath_shared="$modpath_shared $libname"
18820      cat >>$modpath_current/modules.mk<<EOF
18821$libname: $shobjects
18822	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOGIO_LDADD)
18823EOF
18824    fi
18825  fi
18826
18827
18828  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOGIO_LDADD"
18829
18830
18831
18832  fi
18833
18834
18835
18836  if test "x$INCLUDES" = "x"; then
18837    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
18838    INCLUDES="-I\$(top_srcdir)/$modpath_current"
18839  else
18840    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
18841    for i in $apr_addto_bugger; do
18842      apr_addto_duplicate="0"
18843      for j in $INCLUDES; do
18844        if test "x$i" = "x$j"; then
18845          apr_addto_duplicate="1"
18846          break
18847        fi
18848      done
18849      if test $apr_addto_duplicate = "0"; then
18850        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
18851        INCLUDES="$INCLUDES $i"
18852      fi
18853    done
18854  fi
18855
18856
18857
18858  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
18859  echo "static = $modpath_static" >> $modpath_current/modules.mk
18860  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
18861  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
18862    if eval val=\"\$MOD_$var\"; test -n "$val"; then
18863      echo "MOD_$var = $val" >> $modpath_current/modules.mk
18864    fi
18865  done
18866  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
18867    MODULE_DIRS="$MODULE_DIRS $current_dir"
18868  else
18869    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
18870  fi
18871
18872  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
18873
18874
18875
18876
18877
18878  current_dir=lua
18879  modpath_current=modules/lua
18880  modpath_static=
18881  modpath_shared=
18882  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
18883    eval MOD_$var=
18884  done
18885  test -d lua || $srcdir/build/mkdir.sh $modpath_current
18886  > $modpath_current/modules.mk
18887
18888
18889
18890
18891lua_objects="lua_apr.lo lua_config.lo mod_lua.lo lua_request.lo lua_vmprep.lo lua_dbd.lo lua_passwd.lo"
18892
18893
18894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lua" >&5
18895$as_echo_n "checking whether to enable mod_lua... " >&6; }
18896    # Check whether --enable-lua was given.
18897if test "${enable_lua+set}" = set; then :
18898  enableval=$enable_lua; force_lua=$enableval
18899else
18900  enable_lua=maybe-all
18901fi
18902
18903    _apmod_extra_msg=""
18904        case "$enable_lua" in
18905    yes|static|shared)
18906      _apmod_required="yes"
18907      ;;
18908    *)
18909      case "$module_selection" in
18910      reallyall|all|most)
18911        _apmod_required="no"
18912        ;;
18913      *)
18914        _apmod_required="yes"
18915        ;;
18916      esac
18917  esac
18918  if test "$enable_lua" = "static"; then
18919    enable_lua=static
18920  elif test "$enable_lua" = "yes"; then
18921    enable_lua=$module_default
18922  elif test "$enable_lua" = "most"; then
18923    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
18924            "$module_selection" = "reallyall"
18925    then
18926      enable_lua=$module_default
18927    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
18928      enable_lua=no
18929    fi
18930    _apmod_extra_msg=" ($module_selection)"
18931  elif test "$enable_lua" = "maybe-all"; then
18932    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
18933    then
18934      enable_lua=$module_default
18935      _apmod_extra_msg=" ($module_selection)"
18936    else
18937      enable_lua=no
18938    fi
18939  elif test "$enable_lua" = "no" -a "$module_selection" = "reallyall" -a \
18940            "$force_lua" != "no" ; then
18941      enable_lua=$module_default
18942      _apmod_extra_msg=" ($module_selection)"
18943  fi
18944  if test "$enable_lua" != "no"; then
18945            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
18946$as_echo "checking dependencies" >&6; }
18947            :
18948
18949
18950
18951# Check whether --with-lua was given.
18952if test "${with_lua+set}" = set; then :
18953  withval=$with_lua; lua_path="$withval"
18954else
18955  :
18956fi
18957
18958
18959if test -z "$lua_path"; then
18960    test_paths=". /usr/local /usr"
18961else
18962    test_paths="${lua_path}"
18963fi
18964
18965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
18966$as_echo_n "checking for pow in -lm... " >&6; }
18967if ${ac_cv_lib_m_pow+:} false; then :
18968  $as_echo_n "(cached) " >&6
18969else
18970  ac_check_lib_save_LIBS=$LIBS
18971LIBS="-lm  $LIBS"
18972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973/* end confdefs.h.  */
18974
18975/* Override any GCC internal prototype to avoid an error.
18976   Use char because int might match the return type of a GCC
18977   builtin and then its argument prototype would still apply.  */
18978#ifdef __cplusplus
18979extern "C"
18980#endif
18981char pow ();
18982int
18983main ()
18984{
18985return pow ();
18986  ;
18987  return 0;
18988}
18989_ACEOF
18990if ac_fn_c_try_link "$LINENO"; then :
18991  ac_cv_lib_m_pow=yes
18992else
18993  ac_cv_lib_m_pow=no
18994fi
18995rm -f core conftest.err conftest.$ac_objext \
18996    conftest$ac_exeext conftest.$ac_ext
18997LIBS=$ac_check_lib_save_LIBS
18998fi
18999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
19000$as_echo "$ac_cv_lib_m_pow" >&6; }
19001if test "x$ac_cv_lib_m_pow" = xyes; then :
19002  lib_m="-lm"
19003fi
19004
19005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
19006$as_echo_n "checking for sqrt in -lm... " >&6; }
19007if ${ac_cv_lib_m_sqrt+:} false; then :
19008  $as_echo_n "(cached) " >&6
19009else
19010  ac_check_lib_save_LIBS=$LIBS
19011LIBS="-lm  $LIBS"
19012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013/* end confdefs.h.  */
19014
19015/* Override any GCC internal prototype to avoid an error.
19016   Use char because int might match the return type of a GCC
19017   builtin and then its argument prototype would still apply.  */
19018#ifdef __cplusplus
19019extern "C"
19020#endif
19021char sqrt ();
19022int
19023main ()
19024{
19025return sqrt ();
19026  ;
19027  return 0;
19028}
19029_ACEOF
19030if ac_fn_c_try_link "$LINENO"; then :
19031  ac_cv_lib_m_sqrt=yes
19032else
19033  ac_cv_lib_m_sqrt=no
19034fi
19035rm -f core conftest.err conftest.$ac_objext \
19036    conftest$ac_exeext conftest.$ac_ext
19037LIBS=$ac_check_lib_save_LIBS
19038fi
19039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
19040$as_echo "$ac_cv_lib_m_sqrt" >&6; }
19041if test "x$ac_cv_lib_m_sqrt" = xyes; then :
19042  lib_m="-lm"
19043fi
19044
19045for x in $test_paths ; do
19046  if test "x$x" = "x."; then
19047    ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
19048if test "x$ac_cv_header_lua_h" = xyes; then :
19049
19050        save_CFLAGS=$CFLAGS
19051        save_LDFLAGS=$LDFLAGS
19052        CFLAGS="$CFLAGS"
19053        LDFLAGS="$LDFLAGS $lib_m"
19054        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1" >&5
19055$as_echo_n "checking for luaL_newstate in -llua5.1... " >&6; }
19056if ${ac_cv_lib_lua5_1_luaL_newstate+:} false; then :
19057  $as_echo_n "(cached) " >&6
19058else
19059  ac_check_lib_save_LIBS=$LIBS
19060LIBS="-llua5.1  $LIBS"
19061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062/* end confdefs.h.  */
19063
19064/* Override any GCC internal prototype to avoid an error.
19065   Use char because int might match the return type of a GCC
19066   builtin and then its argument prototype would still apply.  */
19067#ifdef __cplusplus
19068extern "C"
19069#endif
19070char luaL_newstate ();
19071int
19072main ()
19073{
19074return luaL_newstate ();
19075  ;
19076  return 0;
19077}
19078_ACEOF
19079if ac_fn_c_try_link "$LINENO"; then :
19080  ac_cv_lib_lua5_1_luaL_newstate=yes
19081else
19082  ac_cv_lib_lua5_1_luaL_newstate=no
19083fi
19084rm -f core conftest.err conftest.$ac_objext \
19085    conftest$ac_exeext conftest.$ac_ext
19086LIBS=$ac_check_lib_save_LIBS
19087fi
19088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1_luaL_newstate" >&5
19089$as_echo "$ac_cv_lib_lua5_1_luaL_newstate" >&6; }
19090if test "x$ac_cv_lib_lua5_1_luaL_newstate" = xyes; then :
19091
19092            LUA_LIBS="-llua5.1 $lib_m"
19093
19094else
19095
19096            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua-5.1" >&5
19097$as_echo_n "checking for luaL_newstate in -llua-5.1... " >&6; }
19098if ${ac_cv_lib_lua_5_1_luaL_newstate+:} false; then :
19099  $as_echo_n "(cached) " >&6
19100else
19101  ac_check_lib_save_LIBS=$LIBS
19102LIBS="-llua-5.1  $LIBS"
19103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19104/* end confdefs.h.  */
19105
19106/* Override any GCC internal prototype to avoid an error.
19107   Use char because int might match the return type of a GCC
19108   builtin and then its argument prototype would still apply.  */
19109#ifdef __cplusplus
19110extern "C"
19111#endif
19112char luaL_newstate ();
19113int
19114main ()
19115{
19116return luaL_newstate ();
19117  ;
19118  return 0;
19119}
19120_ACEOF
19121if ac_fn_c_try_link "$LINENO"; then :
19122  ac_cv_lib_lua_5_1_luaL_newstate=yes
19123else
19124  ac_cv_lib_lua_5_1_luaL_newstate=no
19125fi
19126rm -f core conftest.err conftest.$ac_objext \
19127    conftest$ac_exeext conftest.$ac_ext
19128LIBS=$ac_check_lib_save_LIBS
19129fi
19130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_5_1_luaL_newstate" >&5
19131$as_echo "$ac_cv_lib_lua_5_1_luaL_newstate" >&6; }
19132if test "x$ac_cv_lib_lua_5_1_luaL_newstate" = xyes; then :
19133
19134                LUA_LIBS="-llua-5.1 $lib_m"
19135
19136else
19137
19138                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
19139$as_echo_n "checking for luaL_newstate in -llua... " >&6; }
19140if ${ac_cv_lib_lua_luaL_newstate+:} false; then :
19141  $as_echo_n "(cached) " >&6
19142else
19143  ac_check_lib_save_LIBS=$LIBS
19144LIBS="-llua  $LIBS"
19145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146/* end confdefs.h.  */
19147
19148/* Override any GCC internal prototype to avoid an error.
19149   Use char because int might match the return type of a GCC
19150   builtin and then its argument prototype would still apply.  */
19151#ifdef __cplusplus
19152extern "C"
19153#endif
19154char luaL_newstate ();
19155int
19156main ()
19157{
19158return luaL_newstate ();
19159  ;
19160  return 0;
19161}
19162_ACEOF
19163if ac_fn_c_try_link "$LINENO"; then :
19164  ac_cv_lib_lua_luaL_newstate=yes
19165else
19166  ac_cv_lib_lua_luaL_newstate=no
19167fi
19168rm -f core conftest.err conftest.$ac_objext \
19169    conftest$ac_exeext conftest.$ac_ext
19170LIBS=$ac_check_lib_save_LIBS
19171fi
19172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
19173$as_echo "$ac_cv_lib_lua_luaL_newstate" >&6; }
19174if test "x$ac_cv_lib_lua_luaL_newstate" = xyes; then :
19175
19176                    LUA_LIBS="-llua $lib_m"
19177
19178fi
19179
19180
19181fi
19182
19183
19184fi
19185
19186        LUA_CFLAGS=
19187        CFLAGS=$save_CFLAGS
19188        LDFLAGS=$save_LDFLAGS
19189        break
19190
19191fi
19192
19193
19194  else
19195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua5.1" >&5
19196$as_echo_n "checking for lua.h in ${x}/include/lua5.1... " >&6; }
19197    if test -f ${x}/include/lua5.1/lua.h; then
19198        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19199$as_echo "yes" >&6; }
19200        save_CFLAGS=$CFLAGS
19201        save_LDFLAGS=$LDFLAGS
19202        CFLAGS="$CFLAGS"
19203        LDFLAGS="-L$x/lib $LDFLAGS $lib_m"
19204        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1" >&5
19205$as_echo_n "checking for luaL_newstate in -llua5.1... " >&6; }
19206if ${ac_cv_lib_lua5_1_luaL_newstate+:} false; then :
19207  $as_echo_n "(cached) " >&6
19208else
19209  ac_check_lib_save_LIBS=$LIBS
19210LIBS="-llua5.1  $LIBS"
19211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212/* end confdefs.h.  */
19213
19214/* Override any GCC internal prototype to avoid an error.
19215   Use char because int might match the return type of a GCC
19216   builtin and then its argument prototype would still apply.  */
19217#ifdef __cplusplus
19218extern "C"
19219#endif
19220char luaL_newstate ();
19221int
19222main ()
19223{
19224return luaL_newstate ();
19225  ;
19226  return 0;
19227}
19228_ACEOF
19229if ac_fn_c_try_link "$LINENO"; then :
19230  ac_cv_lib_lua5_1_luaL_newstate=yes
19231else
19232  ac_cv_lib_lua5_1_luaL_newstate=no
19233fi
19234rm -f core conftest.err conftest.$ac_objext \
19235    conftest$ac_exeext conftest.$ac_ext
19236LIBS=$ac_check_lib_save_LIBS
19237fi
19238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1_luaL_newstate" >&5
19239$as_echo "$ac_cv_lib_lua5_1_luaL_newstate" >&6; }
19240if test "x$ac_cv_lib_lua5_1_luaL_newstate" = xyes; then :
19241
19242            LUA_LIBS="-L$x/lib -llua5.1 $lib_m"
19243            if test "x$ap_platform_runtime_link_flag" != "x"; then
19244
19245  if test "x$LUA_LIBS" = "x"; then
19246    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag$x/lib\""
19247    LUA_LIBS="$ap_platform_runtime_link_flag$x/lib"
19248  else
19249    apr_addto_bugger="$ap_platform_runtime_link_flag$x/lib"
19250    for i in $apr_addto_bugger; do
19251      apr_addto_duplicate="0"
19252      for j in $LUA_LIBS; do
19253        if test "x$i" = "x$j"; then
19254          apr_addto_duplicate="1"
19255          break
19256        fi
19257      done
19258      if test $apr_addto_duplicate = "0"; then
19259        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
19260        LUA_LIBS="$LUA_LIBS $i"
19261      fi
19262    done
19263  fi
19264
19265            fi
19266            LUA_CFLAGS="-I$x/include/lua5.1"
19267
19268fi
19269
19270        CFLAGS=$save_CFLAGS
19271        LDFLAGS=$save_LDFLAGS
19272        break
19273    else
19274        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275$as_echo "no" >&6; }
19276    fi
19277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua51" >&5
19278$as_echo_n "checking for lua.h in ${x}/include/lua51... " >&6; }
19279    if test -f ${x}/include/lua51/lua.h; then
19280        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19281$as_echo "yes" >&6; }
19282        save_CFLAGS=$CFLAGS
19283        save_LDFLAGS=$LDFLAGS
19284        CFLAGS="$CFLAGS"
19285        LDFLAGS="-L$x/lib/lua51 $LDFLAGS $lib_m"
19286        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
19287$as_echo_n "checking for luaL_newstate in -llua... " >&6; }
19288if ${ac_cv_lib_lua_luaL_newstate+:} false; then :
19289  $as_echo_n "(cached) " >&6
19290else
19291  ac_check_lib_save_LIBS=$LIBS
19292LIBS="-llua  $LIBS"
19293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294/* end confdefs.h.  */
19295
19296/* Override any GCC internal prototype to avoid an error.
19297   Use char because int might match the return type of a GCC
19298   builtin and then its argument prototype would still apply.  */
19299#ifdef __cplusplus
19300extern "C"
19301#endif
19302char luaL_newstate ();
19303int
19304main ()
19305{
19306return luaL_newstate ();
19307  ;
19308  return 0;
19309}
19310_ACEOF
19311if ac_fn_c_try_link "$LINENO"; then :
19312  ac_cv_lib_lua_luaL_newstate=yes
19313else
19314  ac_cv_lib_lua_luaL_newstate=no
19315fi
19316rm -f core conftest.err conftest.$ac_objext \
19317    conftest$ac_exeext conftest.$ac_ext
19318LIBS=$ac_check_lib_save_LIBS
19319fi
19320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
19321$as_echo "$ac_cv_lib_lua_luaL_newstate" >&6; }
19322if test "x$ac_cv_lib_lua_luaL_newstate" = xyes; then :
19323
19324            LUA_LIBS="-L$x/lib/lua51 -llua $lib_m"
19325            if test "x$ap_platform_runtime_link_flag" != "x"; then
19326
19327  if test "x$LUA_LIBS" = "x"; then
19328    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag$x/lib/lua51\""
19329    LUA_LIBS="$ap_platform_runtime_link_flag$x/lib/lua51"
19330  else
19331    apr_addto_bugger="$ap_platform_runtime_link_flag$x/lib/lua51"
19332    for i in $apr_addto_bugger; do
19333      apr_addto_duplicate="0"
19334      for j in $LUA_LIBS; do
19335        if test "x$i" = "x$j"; then
19336          apr_addto_duplicate="1"
19337          break
19338        fi
19339      done
19340      if test $apr_addto_duplicate = "0"; then
19341        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
19342        LUA_LIBS="$LUA_LIBS $i"
19343      fi
19344    done
19345  fi
19346
19347            fi
19348            LUA_CFLAGS="-I$x/include/lua51"
19349
19350fi
19351
19352        CFLAGS=$save_CFLAGS
19353        LDFLAGS=$save_LDFLAGS
19354        break
19355    else
19356        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19357$as_echo "no" >&6; }
19358    fi
19359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include" >&5
19360$as_echo_n "checking for lua.h in ${x}/include... " >&6; }
19361    if test -f ${x}/include/lua.h; then
19362        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19363$as_echo "yes" >&6; }
19364        save_CFLAGS=$CFLAGS
19365        save_LDFLAGS=$LDFLAGS
19366        CFLAGS="$CFLAGS"
19367        LDFLAGS="-L$x/lib $LDFLAGS $lib_m"
19368        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
19369$as_echo_n "checking for luaL_newstate in -llua... " >&6; }
19370if ${ac_cv_lib_lua_luaL_newstate+:} false; then :
19371  $as_echo_n "(cached) " >&6
19372else
19373  ac_check_lib_save_LIBS=$LIBS
19374LIBS="-llua  $LIBS"
19375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376/* end confdefs.h.  */
19377
19378/* Override any GCC internal prototype to avoid an error.
19379   Use char because int might match the return type of a GCC
19380   builtin and then its argument prototype would still apply.  */
19381#ifdef __cplusplus
19382extern "C"
19383#endif
19384char luaL_newstate ();
19385int
19386main ()
19387{
19388return luaL_newstate ();
19389  ;
19390  return 0;
19391}
19392_ACEOF
19393if ac_fn_c_try_link "$LINENO"; then :
19394  ac_cv_lib_lua_luaL_newstate=yes
19395else
19396  ac_cv_lib_lua_luaL_newstate=no
19397fi
19398rm -f core conftest.err conftest.$ac_objext \
19399    conftest$ac_exeext conftest.$ac_ext
19400LIBS=$ac_check_lib_save_LIBS
19401fi
19402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
19403$as_echo "$ac_cv_lib_lua_luaL_newstate" >&6; }
19404if test "x$ac_cv_lib_lua_luaL_newstate" = xyes; then :
19405
19406            LUA_LIBS="-L$x/lib -llua $lib_m"
19407            if test "x$ap_platform_runtime_link_flag" != "x"; then
19408
19409  if test "x$LUA_LIBS" = "x"; then
19410    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag$x/lib\""
19411    LUA_LIBS="$ap_platform_runtime_link_flag$x/lib"
19412  else
19413    apr_addto_bugger="$ap_platform_runtime_link_flag$x/lib"
19414    for i in $apr_addto_bugger; do
19415      apr_addto_duplicate="0"
19416      for j in $LUA_LIBS; do
19417        if test "x$i" = "x$j"; then
19418          apr_addto_duplicate="1"
19419          break
19420        fi
19421      done
19422      if test $apr_addto_duplicate = "0"; then
19423        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
19424        LUA_LIBS="$LUA_LIBS $i"
19425      fi
19426    done
19427  fi
19428
19429            fi
19430            LUA_CFLAGS="-I$x/include"
19431
19432fi
19433
19434        CFLAGS=$save_CFLAGS
19435        LDFLAGS=$save_LDFLAGS
19436        break
19437    else
19438        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19439$as_echo "no" >&6; }
19440    fi
19441  fi
19442done
19443
19444
19445
19446
19447if test -z "${LUA_LIBS}"; then
19448  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Lua 5.1 library not found." >&5
19449$as_echo "$as_me: WARNING: *** Lua 5.1 library not found." >&2;}
19450  enable_lua="no"
19451    if test -z "${lua_path}"; then
19452        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua 5.1 library is required" >&5
19453$as_echo "$as_me: WARNING: Lua 5.1 library is required" >&2;}
19454    else
19455        as_fn_error $? "Lua 5.1 library is required" "$LINENO" 5
19456    fi
19457else
19458  { $as_echo "$as_me:${as_lineno-$LINENO}: using '${LUA_LIBS}' for Lua Library" >&5
19459$as_echo "$as_me: using '${LUA_LIBS}' for Lua Library" >&6;}
19460  # Check whether --enable-luajit was given.
19461if test "${enable_luajit+set}" = set; then :
19462  enableval=$enable_luajit;
19463    if test "$enableval" = "yes"; then
19464
19465  if test "x$MOD_CPPFLAGS" = "x"; then
19466    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DAP_ENABLE_LUAJIT"\""
19467    MOD_CPPFLAGS=""-DAP_ENABLE_LUAJIT""
19468  else
19469    apr_addto_bugger=""-DAP_ENABLE_LUAJIT""
19470    for i in $apr_addto_bugger; do
19471      apr_addto_duplicate="0"
19472      for j in $MOD_CPPFLAGS; do
19473        if test "x$i" = "x$j"; then
19474          apr_addto_duplicate="1"
19475          break
19476        fi
19477      done
19478      if test $apr_addto_duplicate = "0"; then
19479        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
19480        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
19481      fi
19482    done
19483  fi
19484
19485    fi
19486
19487fi
19488
19489
19490fi
19491
19492  if test "x$enable_lua" != "xno" ; then
19493
19494  if test "x$MOD_INCLUDES" = "x"; then
19495    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"$LUA_CFLAGS\""
19496    MOD_INCLUDES="$LUA_CFLAGS"
19497  else
19498    apr_addto_bugger="$LUA_CFLAGS"
19499    for i in $apr_addto_bugger; do
19500      apr_addto_duplicate="0"
19501      for j in $MOD_INCLUDES; do
19502        if test "x$i" = "x$j"; then
19503          apr_addto_duplicate="1"
19504          break
19505        fi
19506      done
19507      if test $apr_addto_duplicate = "0"; then
19508        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_INCLUDES"
19509        MOD_INCLUDES="$MOD_INCLUDES $i"
19510      fi
19511    done
19512  fi
19513
19514
19515  if test "x$MOD_LUA_LDADD" = "x"; then
19516    test "x$silent" != "xyes" && echo "  setting MOD_LUA_LDADD to \"$LUA_LIBS\""
19517    MOD_LUA_LDADD="$LUA_LIBS"
19518  else
19519    apr_addto_bugger="$LUA_LIBS"
19520    for i in $apr_addto_bugger; do
19521      apr_addto_duplicate="0"
19522      for j in $MOD_LUA_LDADD; do
19523        if test "x$i" = "x$j"; then
19524          apr_addto_duplicate="1"
19525          break
19526        fi
19527      done
19528      if test $apr_addto_duplicate = "0"; then
19529        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LUA_LDADD"
19530        MOD_LUA_LDADD="$MOD_LUA_LDADD $i"
19531      fi
19532    done
19533  fi
19534
19535  fi
19536
19537            :
19538            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lua" >&5
19539$as_echo_n "checking whether to enable mod_lua... " >&6; }
19540            if test "$enable_lua" = "no"; then
19541              if test "$_apmod_required" = "no"; then
19542                _apmod_extra_msg=" (disabled)"
19543              else
19544                as_fn_error $? "mod_lua has been requested but can not be built due to prerequisite failures" "$LINENO" 5
19545              fi
19546            fi
19547  fi
19548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lua$_apmod_extra_msg" >&5
19549$as_echo "$enable_lua$_apmod_extra_msg" >&6; }
19550  if test "$enable_lua" != "no"; then
19551    case "$enable_lua" in
19552    static*)
19553      MODLIST="$MODLIST lua"
19554      if test "lua" = "so"; then
19555          sharedobjs=yes
19556      fi
19557      shared="";;
19558    *)
19559      enable_lua=`echo $enable_lua|sed 's/shared,*//'`
19560      sharedobjs=yes
19561      shared=yes
19562      DSO_MODULES="$DSO_MODULES lua"
19563      if test "" = "yes" ; then
19564        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lua"
19565      fi
19566      ;;
19567    esac
19568
19569
19570  if test -z "$lua_objects"; then
19571    objects="mod_lua.lo"
19572  else
19573    objects="$lua_objects"
19574  fi
19575
19576  if test -z "$module_standalone"; then
19577    if test -z "$shared"; then
19578      # The filename of a convenience library must have a "lib" prefix:
19579      libname="libmod_lua.la"
19580      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
19581      modpath_static="$modpath_static $libname"
19582      cat >>$modpath_current/modules.mk<<EOF
19583$libname: $objects
19584	\$(MOD_LINK) $objects \$(MOD_LUA_LDADD)
19585EOF
19586      if test ! -z "\$(MOD_LUA_LDADD)"; then
19587
19588  if test "x$AP_LIBS" = "x"; then
19589    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LUA_LDADD)\""
19590    AP_LIBS="\$(MOD_LUA_LDADD)"
19591  else
19592    apr_addto_bugger="\$(MOD_LUA_LDADD)"
19593    for i in $apr_addto_bugger; do
19594      apr_addto_duplicate="0"
19595      for j in $AP_LIBS; do
19596        if test "x$i" = "x$j"; then
19597          apr_addto_duplicate="1"
19598          break
19599        fi
19600      done
19601      if test $apr_addto_duplicate = "0"; then
19602        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
19603        AP_LIBS="$AP_LIBS $i"
19604      fi
19605    done
19606  fi
19607
19608      fi
19609    else
19610      apache_need_shared=yes
19611      libname="mod_lua.la"
19612      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
19613      modpath_shared="$modpath_shared $libname"
19614      cat >>$modpath_current/modules.mk<<EOF
19615$libname: $shobjects
19616	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LUA_LDADD)
19617EOF
19618    fi
19619  fi
19620
19621
19622  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LUA_LDADD"
19623
19624
19625
19626  fi
19627
19628
19629
19630  if test "x$INCLUDES" = "x"; then
19631    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
19632    INCLUDES="-I\$(top_srcdir)/$modpath_current"
19633  else
19634    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
19635    for i in $apr_addto_bugger; do
19636      apr_addto_duplicate="0"
19637      for j in $INCLUDES; do
19638        if test "x$i" = "x$j"; then
19639          apr_addto_duplicate="1"
19640          break
19641        fi
19642      done
19643      if test $apr_addto_duplicate = "0"; then
19644        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
19645        INCLUDES="$INCLUDES $i"
19646      fi
19647    done
19648  fi
19649
19650
19651
19652  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
19653  echo "static = $modpath_static" >> $modpath_current/modules.mk
19654  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
19655  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
19656    if eval val=\"\$MOD_$var\"; test -n "$val"; then
19657      echo "MOD_$var = $val" >> $modpath_current/modules.mk
19658    fi
19659  done
19660  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
19661    MODULE_DIRS="$MODULE_DIRS $current_dir"
19662  else
19663    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
19664  fi
19665
19666  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
19667
19668
19669
19670
19671
19672
19673  current_dir=metadata
19674  modpath_current=modules/metadata
19675  modpath_static=
19676  modpath_shared=
19677  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
19678    eval MOD_$var=
19679  done
19680  test -d metadata || $srcdir/build/mkdir.sh $modpath_current
19681  > $modpath_current/modules.mk
19682
19683
19684
19685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_env" >&5
19686$as_echo_n "checking whether to enable mod_env... " >&6; }
19687    # Check whether --enable-env was given.
19688if test "${enable_env+set}" = set; then :
19689  enableval=$enable_env; force_env=$enableval
19690else
19691  enable_env=yes
19692fi
19693
19694    _apmod_extra_msg=""
19695        case "$enable_env" in
19696    yes|static|shared)
19697      _apmod_required="yes"
19698      ;;
19699    *)
19700      case "$module_selection" in
19701      reallyall|all|most)
19702        _apmod_required="no"
19703        ;;
19704      *)
19705        _apmod_required="yes"
19706        ;;
19707      esac
19708  esac
19709  if test "$enable_env" = "static"; then
19710    enable_env=static
19711  elif test "$enable_env" = "yes"; then
19712    enable_env=$module_default
19713  elif test "$enable_env" = "most"; then
19714    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
19715            "$module_selection" = "reallyall"
19716    then
19717      enable_env=$module_default
19718    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
19719      enable_env=no
19720    fi
19721    _apmod_extra_msg=" ($module_selection)"
19722  elif test "$enable_env" = "maybe-all"; then
19723    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
19724    then
19725      enable_env=$module_default
19726      _apmod_extra_msg=" ($module_selection)"
19727    else
19728      enable_env=no
19729    fi
19730  elif test "$enable_env" = "no" -a "$module_selection" = "reallyall" -a \
19731            "$force_env" != "no" ; then
19732      enable_env=$module_default
19733      _apmod_extra_msg=" ($module_selection)"
19734  fi
19735  if test "$enable_env" != "no"; then
19736            :
19737  fi
19738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_env$_apmod_extra_msg" >&5
19739$as_echo "$enable_env$_apmod_extra_msg" >&6; }
19740  if test "$enable_env" != "no"; then
19741    case "$enable_env" in
19742    static*)
19743      MODLIST="$MODLIST env"
19744      if test "env" = "so"; then
19745          sharedobjs=yes
19746      fi
19747      shared="";;
19748    *)
19749      enable_env=`echo $enable_env|sed 's/shared,*//'`
19750      sharedobjs=yes
19751      shared=yes
19752      DSO_MODULES="$DSO_MODULES env"
19753      if test "yes" = "yes" ; then
19754        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},env"
19755      fi
19756      ;;
19757    esac
19758
19759
19760  if test -z ""; then
19761    objects="mod_env.lo"
19762  else
19763    objects=""
19764  fi
19765
19766  if test -z "$module_standalone"; then
19767    if test -z "$shared"; then
19768      # The filename of a convenience library must have a "lib" prefix:
19769      libname="libmod_env.la"
19770      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
19771      modpath_static="$modpath_static $libname"
19772      cat >>$modpath_current/modules.mk<<EOF
19773$libname: $objects
19774	\$(MOD_LINK) $objects \$(MOD_ENV_LDADD)
19775EOF
19776      if test ! -z "\$(MOD_ENV_LDADD)"; then
19777
19778  if test "x$AP_LIBS" = "x"; then
19779    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ENV_LDADD)\""
19780    AP_LIBS="\$(MOD_ENV_LDADD)"
19781  else
19782    apr_addto_bugger="\$(MOD_ENV_LDADD)"
19783    for i in $apr_addto_bugger; do
19784      apr_addto_duplicate="0"
19785      for j in $AP_LIBS; do
19786        if test "x$i" = "x$j"; then
19787          apr_addto_duplicate="1"
19788          break
19789        fi
19790      done
19791      if test $apr_addto_duplicate = "0"; then
19792        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
19793        AP_LIBS="$AP_LIBS $i"
19794      fi
19795    done
19796  fi
19797
19798      fi
19799    else
19800      apache_need_shared=yes
19801      libname="mod_env.la"
19802      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
19803      modpath_shared="$modpath_shared $libname"
19804      cat >>$modpath_current/modules.mk<<EOF
19805$libname: $shobjects
19806	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ENV_LDADD)
19807EOF
19808    fi
19809  fi
19810
19811
19812  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ENV_LDADD"
19813
19814
19815
19816  fi
19817
19818
19819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_mime_magic" >&5
19820$as_echo_n "checking whether to enable mod_mime_magic... " >&6; }
19821    # Check whether --enable-mime-magic was given.
19822if test "${enable_mime_magic+set}" = set; then :
19823  enableval=$enable_mime_magic; force_mime_magic=$enableval
19824else
19825  enable_mime_magic=maybe-all
19826fi
19827
19828    _apmod_extra_msg=""
19829        case "$enable_mime_magic" in
19830    yes|static|shared)
19831      _apmod_required="yes"
19832      ;;
19833    *)
19834      case "$module_selection" in
19835      reallyall|all|most)
19836        _apmod_required="no"
19837        ;;
19838      *)
19839        _apmod_required="yes"
19840        ;;
19841      esac
19842  esac
19843  if test "$enable_mime_magic" = "static"; then
19844    enable_mime_magic=static
19845  elif test "$enable_mime_magic" = "yes"; then
19846    enable_mime_magic=$module_default
19847  elif test "$enable_mime_magic" = "most"; then
19848    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
19849            "$module_selection" = "reallyall"
19850    then
19851      enable_mime_magic=$module_default
19852    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
19853      enable_mime_magic=no
19854    fi
19855    _apmod_extra_msg=" ($module_selection)"
19856  elif test "$enable_mime_magic" = "maybe-all"; then
19857    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
19858    then
19859      enable_mime_magic=$module_default
19860      _apmod_extra_msg=" ($module_selection)"
19861    else
19862      enable_mime_magic=no
19863    fi
19864  elif test "$enable_mime_magic" = "no" -a "$module_selection" = "reallyall" -a \
19865            "$force_mime_magic" != "no" ; then
19866      enable_mime_magic=$module_default
19867      _apmod_extra_msg=" ($module_selection)"
19868  fi
19869  if test "$enable_mime_magic" != "no"; then
19870            :
19871  fi
19872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mime_magic$_apmod_extra_msg" >&5
19873$as_echo "$enable_mime_magic$_apmod_extra_msg" >&6; }
19874  if test "$enable_mime_magic" != "no"; then
19875    case "$enable_mime_magic" in
19876    static*)
19877      MODLIST="$MODLIST mime_magic"
19878      if test "mime_magic" = "so"; then
19879          sharedobjs=yes
19880      fi
19881      shared="";;
19882    *)
19883      enable_mime_magic=`echo $enable_mime_magic|sed 's/shared,*//'`
19884      sharedobjs=yes
19885      shared=yes
19886      DSO_MODULES="$DSO_MODULES mime_magic"
19887      if test "" = "yes" ; then
19888        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mime_magic"
19889      fi
19890      ;;
19891    esac
19892
19893
19894  if test -z ""; then
19895    objects="mod_mime_magic.lo"
19896  else
19897    objects=""
19898  fi
19899
19900  if test -z "$module_standalone"; then
19901    if test -z "$shared"; then
19902      # The filename of a convenience library must have a "lib" prefix:
19903      libname="libmod_mime_magic.la"
19904      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
19905      modpath_static="$modpath_static $libname"
19906      cat >>$modpath_current/modules.mk<<EOF
19907$libname: $objects
19908	\$(MOD_LINK) $objects \$(MOD_MIME_MAGIC_LDADD)
19909EOF
19910      if test ! -z "\$(MOD_MIME_MAGIC_LDADD)"; then
19911
19912  if test "x$AP_LIBS" = "x"; then
19913    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MIME_MAGIC_LDADD)\""
19914    AP_LIBS="\$(MOD_MIME_MAGIC_LDADD)"
19915  else
19916    apr_addto_bugger="\$(MOD_MIME_MAGIC_LDADD)"
19917    for i in $apr_addto_bugger; do
19918      apr_addto_duplicate="0"
19919      for j in $AP_LIBS; do
19920        if test "x$i" = "x$j"; then
19921          apr_addto_duplicate="1"
19922          break
19923        fi
19924      done
19925      if test $apr_addto_duplicate = "0"; then
19926        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
19927        AP_LIBS="$AP_LIBS $i"
19928      fi
19929    done
19930  fi
19931
19932      fi
19933    else
19934      apache_need_shared=yes
19935      libname="mod_mime_magic.la"
19936      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
19937      modpath_shared="$modpath_shared $libname"
19938      cat >>$modpath_current/modules.mk<<EOF
19939$libname: $shobjects
19940	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_MAGIC_LDADD)
19941EOF
19942    fi
19943  fi
19944
19945
19946  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_MAGIC_LDADD"
19947
19948
19949
19950  fi
19951
19952
19953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cern_meta" >&5
19954$as_echo_n "checking whether to enable mod_cern_meta... " >&6; }
19955    # Check whether --enable-cern-meta was given.
19956if test "${enable_cern_meta+set}" = set; then :
19957  enableval=$enable_cern_meta; force_cern_meta=$enableval
19958else
19959  enable_cern_meta=no
19960fi
19961
19962    _apmod_extra_msg=""
19963        case "$enable_cern_meta" in
19964    yes|static|shared)
19965      _apmod_required="yes"
19966      ;;
19967    *)
19968      case "$module_selection" in
19969      reallyall|all|most)
19970        _apmod_required="no"
19971        ;;
19972      *)
19973        _apmod_required="yes"
19974        ;;
19975      esac
19976  esac
19977  if test "$enable_cern_meta" = "static"; then
19978    enable_cern_meta=static
19979  elif test "$enable_cern_meta" = "yes"; then
19980    enable_cern_meta=$module_default
19981  elif test "$enable_cern_meta" = "most"; then
19982    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
19983            "$module_selection" = "reallyall"
19984    then
19985      enable_cern_meta=$module_default
19986    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
19987      enable_cern_meta=no
19988    fi
19989    _apmod_extra_msg=" ($module_selection)"
19990  elif test "$enable_cern_meta" = "maybe-all"; then
19991    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
19992    then
19993      enable_cern_meta=$module_default
19994      _apmod_extra_msg=" ($module_selection)"
19995    else
19996      enable_cern_meta=no
19997    fi
19998  elif test "$enable_cern_meta" = "no" -a "$module_selection" = "reallyall" -a \
19999            "$force_cern_meta" != "no" ; then
20000      enable_cern_meta=$module_default
20001      _apmod_extra_msg=" ($module_selection)"
20002  fi
20003  if test "$enable_cern_meta" != "no"; then
20004            :
20005  fi
20006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cern_meta$_apmod_extra_msg" >&5
20007$as_echo "$enable_cern_meta$_apmod_extra_msg" >&6; }
20008  if test "$enable_cern_meta" != "no"; then
20009    case "$enable_cern_meta" in
20010    static*)
20011      MODLIST="$MODLIST cern_meta"
20012      if test "cern_meta" = "so"; then
20013          sharedobjs=yes
20014      fi
20015      shared="";;
20016    *)
20017      enable_cern_meta=`echo $enable_cern_meta|sed 's/shared,*//'`
20018      sharedobjs=yes
20019      shared=yes
20020      DSO_MODULES="$DSO_MODULES cern_meta"
20021      if test "no" = "yes" ; then
20022        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cern_meta"
20023      fi
20024      ;;
20025    esac
20026
20027
20028  if test -z ""; then
20029    objects="mod_cern_meta.lo"
20030  else
20031    objects=""
20032  fi
20033
20034  if test -z "$module_standalone"; then
20035    if test -z "$shared"; then
20036      # The filename of a convenience library must have a "lib" prefix:
20037      libname="libmod_cern_meta.la"
20038      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20039      modpath_static="$modpath_static $libname"
20040      cat >>$modpath_current/modules.mk<<EOF
20041$libname: $objects
20042	\$(MOD_LINK) $objects \$(MOD_CERN_META_LDADD)
20043EOF
20044      if test ! -z "\$(MOD_CERN_META_LDADD)"; then
20045
20046  if test "x$AP_LIBS" = "x"; then
20047    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CERN_META_LDADD)\""
20048    AP_LIBS="\$(MOD_CERN_META_LDADD)"
20049  else
20050    apr_addto_bugger="\$(MOD_CERN_META_LDADD)"
20051    for i in $apr_addto_bugger; do
20052      apr_addto_duplicate="0"
20053      for j in $AP_LIBS; do
20054        if test "x$i" = "x$j"; then
20055          apr_addto_duplicate="1"
20056          break
20057        fi
20058      done
20059      if test $apr_addto_duplicate = "0"; then
20060        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20061        AP_LIBS="$AP_LIBS $i"
20062      fi
20063    done
20064  fi
20065
20066      fi
20067    else
20068      apache_need_shared=yes
20069      libname="mod_cern_meta.la"
20070      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20071      modpath_shared="$modpath_shared $libname"
20072      cat >>$modpath_current/modules.mk<<EOF
20073$libname: $shobjects
20074	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CERN_META_LDADD)
20075EOF
20076    fi
20077  fi
20078
20079
20080  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CERN_META_LDADD"
20081
20082
20083
20084  fi
20085
20086
20087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_expires" >&5
20088$as_echo_n "checking whether to enable mod_expires... " >&6; }
20089    # Check whether --enable-expires was given.
20090if test "${enable_expires+set}" = set; then :
20091  enableval=$enable_expires; force_expires=$enableval
20092else
20093  enable_expires=most
20094fi
20095
20096    _apmod_extra_msg=""
20097        case "$enable_expires" in
20098    yes|static|shared)
20099      _apmod_required="yes"
20100      ;;
20101    *)
20102      case "$module_selection" in
20103      reallyall|all|most)
20104        _apmod_required="no"
20105        ;;
20106      *)
20107        _apmod_required="yes"
20108        ;;
20109      esac
20110  esac
20111  if test "$enable_expires" = "static"; then
20112    enable_expires=static
20113  elif test "$enable_expires" = "yes"; then
20114    enable_expires=$module_default
20115  elif test "$enable_expires" = "most"; then
20116    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20117            "$module_selection" = "reallyall"
20118    then
20119      enable_expires=$module_default
20120    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20121      enable_expires=no
20122    fi
20123    _apmod_extra_msg=" ($module_selection)"
20124  elif test "$enable_expires" = "maybe-all"; then
20125    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20126    then
20127      enable_expires=$module_default
20128      _apmod_extra_msg=" ($module_selection)"
20129    else
20130      enable_expires=no
20131    fi
20132  elif test "$enable_expires" = "no" -a "$module_selection" = "reallyall" -a \
20133            "$force_expires" != "no" ; then
20134      enable_expires=$module_default
20135      _apmod_extra_msg=" ($module_selection)"
20136  fi
20137  if test "$enable_expires" != "no"; then
20138            :
20139  fi
20140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_expires$_apmod_extra_msg" >&5
20141$as_echo "$enable_expires$_apmod_extra_msg" >&6; }
20142  if test "$enable_expires" != "no"; then
20143    case "$enable_expires" in
20144    static*)
20145      MODLIST="$MODLIST expires"
20146      if test "expires" = "so"; then
20147          sharedobjs=yes
20148      fi
20149      shared="";;
20150    *)
20151      enable_expires=`echo $enable_expires|sed 's/shared,*//'`
20152      sharedobjs=yes
20153      shared=yes
20154      DSO_MODULES="$DSO_MODULES expires"
20155      if test "most" = "yes" ; then
20156        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},expires"
20157      fi
20158      ;;
20159    esac
20160
20161
20162  if test -z ""; then
20163    objects="mod_expires.lo"
20164  else
20165    objects=""
20166  fi
20167
20168  if test -z "$module_standalone"; then
20169    if test -z "$shared"; then
20170      # The filename of a convenience library must have a "lib" prefix:
20171      libname="libmod_expires.la"
20172      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20173      modpath_static="$modpath_static $libname"
20174      cat >>$modpath_current/modules.mk<<EOF
20175$libname: $objects
20176	\$(MOD_LINK) $objects \$(MOD_EXPIRES_LDADD)
20177EOF
20178      if test ! -z "\$(MOD_EXPIRES_LDADD)"; then
20179
20180  if test "x$AP_LIBS" = "x"; then
20181    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXPIRES_LDADD)\""
20182    AP_LIBS="\$(MOD_EXPIRES_LDADD)"
20183  else
20184    apr_addto_bugger="\$(MOD_EXPIRES_LDADD)"
20185    for i in $apr_addto_bugger; do
20186      apr_addto_duplicate="0"
20187      for j in $AP_LIBS; do
20188        if test "x$i" = "x$j"; then
20189          apr_addto_duplicate="1"
20190          break
20191        fi
20192      done
20193      if test $apr_addto_duplicate = "0"; then
20194        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20195        AP_LIBS="$AP_LIBS $i"
20196      fi
20197    done
20198  fi
20199
20200      fi
20201    else
20202      apache_need_shared=yes
20203      libname="mod_expires.la"
20204      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20205      modpath_shared="$modpath_shared $libname"
20206      cat >>$modpath_current/modules.mk<<EOF
20207$libname: $shobjects
20208	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXPIRES_LDADD)
20209EOF
20210    fi
20211  fi
20212
20213
20214  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXPIRES_LDADD"
20215
20216
20217
20218  fi
20219
20220
20221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_headers" >&5
20222$as_echo_n "checking whether to enable mod_headers... " >&6; }
20223    # Check whether --enable-headers was given.
20224if test "${enable_headers+set}" = set; then :
20225  enableval=$enable_headers; force_headers=$enableval
20226else
20227  enable_headers=yes
20228fi
20229
20230    _apmod_extra_msg=""
20231        case "$enable_headers" in
20232    yes|static|shared)
20233      _apmod_required="yes"
20234      ;;
20235    *)
20236      case "$module_selection" in
20237      reallyall|all|most)
20238        _apmod_required="no"
20239        ;;
20240      *)
20241        _apmod_required="yes"
20242        ;;
20243      esac
20244  esac
20245  if test "$enable_headers" = "static"; then
20246    enable_headers=static
20247  elif test "$enable_headers" = "yes"; then
20248    enable_headers=$module_default
20249  elif test "$enable_headers" = "most"; then
20250    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20251            "$module_selection" = "reallyall"
20252    then
20253      enable_headers=$module_default
20254    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20255      enable_headers=no
20256    fi
20257    _apmod_extra_msg=" ($module_selection)"
20258  elif test "$enable_headers" = "maybe-all"; then
20259    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20260    then
20261      enable_headers=$module_default
20262      _apmod_extra_msg=" ($module_selection)"
20263    else
20264      enable_headers=no
20265    fi
20266  elif test "$enable_headers" = "no" -a "$module_selection" = "reallyall" -a \
20267            "$force_headers" != "no" ; then
20268      enable_headers=$module_default
20269      _apmod_extra_msg=" ($module_selection)"
20270  fi
20271  if test "$enable_headers" != "no"; then
20272            :
20273  fi
20274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_headers$_apmod_extra_msg" >&5
20275$as_echo "$enable_headers$_apmod_extra_msg" >&6; }
20276  if test "$enable_headers" != "no"; then
20277    case "$enable_headers" in
20278    static*)
20279      MODLIST="$MODLIST headers"
20280      if test "headers" = "so"; then
20281          sharedobjs=yes
20282      fi
20283      shared="";;
20284    *)
20285      enable_headers=`echo $enable_headers|sed 's/shared,*//'`
20286      sharedobjs=yes
20287      shared=yes
20288      DSO_MODULES="$DSO_MODULES headers"
20289      if test "yes" = "yes" ; then
20290        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},headers"
20291      fi
20292      ;;
20293    esac
20294
20295
20296  if test -z ""; then
20297    objects="mod_headers.lo"
20298  else
20299    objects=""
20300  fi
20301
20302  if test -z "$module_standalone"; then
20303    if test -z "$shared"; then
20304      # The filename of a convenience library must have a "lib" prefix:
20305      libname="libmod_headers.la"
20306      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20307      modpath_static="$modpath_static $libname"
20308      cat >>$modpath_current/modules.mk<<EOF
20309$libname: $objects
20310	\$(MOD_LINK) $objects \$(MOD_HEADERS_LDADD)
20311EOF
20312      if test ! -z "\$(MOD_HEADERS_LDADD)"; then
20313
20314  if test "x$AP_LIBS" = "x"; then
20315    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HEADERS_LDADD)\""
20316    AP_LIBS="\$(MOD_HEADERS_LDADD)"
20317  else
20318    apr_addto_bugger="\$(MOD_HEADERS_LDADD)"
20319    for i in $apr_addto_bugger; do
20320      apr_addto_duplicate="0"
20321      for j in $AP_LIBS; do
20322        if test "x$i" = "x$j"; then
20323          apr_addto_duplicate="1"
20324          break
20325        fi
20326      done
20327      if test $apr_addto_duplicate = "0"; then
20328        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20329        AP_LIBS="$AP_LIBS $i"
20330      fi
20331    done
20332  fi
20333
20334      fi
20335    else
20336      apache_need_shared=yes
20337      libname="mod_headers.la"
20338      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20339      modpath_shared="$modpath_shared $libname"
20340      cat >>$modpath_current/modules.mk<<EOF
20341$libname: $shobjects
20342	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEADERS_LDADD)
20343EOF
20344    fi
20345  fi
20346
20347
20348  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEADERS_LDADD"
20349
20350
20351
20352  fi
20353
20354
20355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ident" >&5
20356$as_echo_n "checking whether to enable mod_ident... " >&6; }
20357    # Check whether --enable-ident was given.
20358if test "${enable_ident+set}" = set; then :
20359  enableval=$enable_ident; force_ident=$enableval
20360else
20361  enable_ident=no
20362fi
20363
20364    _apmod_extra_msg=""
20365        case "$enable_ident" in
20366    yes|static|shared)
20367      _apmod_required="yes"
20368      ;;
20369    *)
20370      case "$module_selection" in
20371      reallyall|all|most)
20372        _apmod_required="no"
20373        ;;
20374      *)
20375        _apmod_required="yes"
20376        ;;
20377      esac
20378  esac
20379  if test "$enable_ident" = "static"; then
20380    enable_ident=static
20381  elif test "$enable_ident" = "yes"; then
20382    enable_ident=$module_default
20383  elif test "$enable_ident" = "most"; then
20384    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20385            "$module_selection" = "reallyall"
20386    then
20387      enable_ident=$module_default
20388    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20389      enable_ident=no
20390    fi
20391    _apmod_extra_msg=" ($module_selection)"
20392  elif test "$enable_ident" = "maybe-all"; then
20393    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20394    then
20395      enable_ident=$module_default
20396      _apmod_extra_msg=" ($module_selection)"
20397    else
20398      enable_ident=no
20399    fi
20400  elif test "$enable_ident" = "no" -a "$module_selection" = "reallyall" -a \
20401            "$force_ident" != "no" ; then
20402      enable_ident=$module_default
20403      _apmod_extra_msg=" ($module_selection)"
20404  fi
20405  if test "$enable_ident" != "no"; then
20406            :
20407  fi
20408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ident$_apmod_extra_msg" >&5
20409$as_echo "$enable_ident$_apmod_extra_msg" >&6; }
20410  if test "$enable_ident" != "no"; then
20411    case "$enable_ident" in
20412    static*)
20413      MODLIST="$MODLIST ident"
20414      if test "ident" = "so"; then
20415          sharedobjs=yes
20416      fi
20417      shared="";;
20418    *)
20419      enable_ident=`echo $enable_ident|sed 's/shared,*//'`
20420      sharedobjs=yes
20421      shared=yes
20422      DSO_MODULES="$DSO_MODULES ident"
20423      if test "no" = "yes" ; then
20424        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ident"
20425      fi
20426      ;;
20427    esac
20428
20429
20430  if test -z ""; then
20431    objects="mod_ident.lo"
20432  else
20433    objects=""
20434  fi
20435
20436  if test -z "$module_standalone"; then
20437    if test -z "$shared"; then
20438      # The filename of a convenience library must have a "lib" prefix:
20439      libname="libmod_ident.la"
20440      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20441      modpath_static="$modpath_static $libname"
20442      cat >>$modpath_current/modules.mk<<EOF
20443$libname: $objects
20444	\$(MOD_LINK) $objects \$(MOD_IDENT_LDADD)
20445EOF
20446      if test ! -z "\$(MOD_IDENT_LDADD)"; then
20447
20448  if test "x$AP_LIBS" = "x"; then
20449    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_IDENT_LDADD)\""
20450    AP_LIBS="\$(MOD_IDENT_LDADD)"
20451  else
20452    apr_addto_bugger="\$(MOD_IDENT_LDADD)"
20453    for i in $apr_addto_bugger; do
20454      apr_addto_duplicate="0"
20455      for j in $AP_LIBS; do
20456        if test "x$i" = "x$j"; then
20457          apr_addto_duplicate="1"
20458          break
20459        fi
20460      done
20461      if test $apr_addto_duplicate = "0"; then
20462        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20463        AP_LIBS="$AP_LIBS $i"
20464      fi
20465    done
20466  fi
20467
20468      fi
20469    else
20470      apache_need_shared=yes
20471      libname="mod_ident.la"
20472      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20473      modpath_shared="$modpath_shared $libname"
20474      cat >>$modpath_current/modules.mk<<EOF
20475$libname: $shobjects
20476	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_IDENT_LDADD)
20477EOF
20478    fi
20479  fi
20480
20481
20482  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IDENT_LDADD"
20483
20484
20485
20486  fi
20487
20488
20489
20490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_usertrack" >&5
20491$as_echo_n "checking whether to enable mod_usertrack... " >&6; }
20492    # Check whether --enable-usertrack was given.
20493if test "${enable_usertrack+set}" = set; then :
20494  enableval=$enable_usertrack; force_usertrack=$enableval
20495else
20496  enable_usertrack=maybe-all
20497fi
20498
20499    _apmod_extra_msg=""
20500        case "$enable_usertrack" in
20501    yes|static|shared)
20502      _apmod_required="yes"
20503      ;;
20504    *)
20505      case "$module_selection" in
20506      reallyall|all|most)
20507        _apmod_required="no"
20508        ;;
20509      *)
20510        _apmod_required="yes"
20511        ;;
20512      esac
20513  esac
20514  if test "$enable_usertrack" = "static"; then
20515    enable_usertrack=static
20516  elif test "$enable_usertrack" = "yes"; then
20517    enable_usertrack=$module_default
20518  elif test "$enable_usertrack" = "most"; then
20519    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20520            "$module_selection" = "reallyall"
20521    then
20522      enable_usertrack=$module_default
20523    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20524      enable_usertrack=no
20525    fi
20526    _apmod_extra_msg=" ($module_selection)"
20527  elif test "$enable_usertrack" = "maybe-all"; then
20528    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20529    then
20530      enable_usertrack=$module_default
20531      _apmod_extra_msg=" ($module_selection)"
20532    else
20533      enable_usertrack=no
20534    fi
20535  elif test "$enable_usertrack" = "no" -a "$module_selection" = "reallyall" -a \
20536            "$force_usertrack" != "no" ; then
20537      enable_usertrack=$module_default
20538      _apmod_extra_msg=" ($module_selection)"
20539  fi
20540  if test "$enable_usertrack" != "no"; then
20541            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
20542$as_echo "checking dependencies" >&6; }
20543            :
20544
20545  for ac_header in sys/times.h
20546do :
20547  ac_fn_c_check_header_mongrel "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
20548if test "x$ac_cv_header_sys_times_h" = xyes; then :
20549  cat >>confdefs.h <<_ACEOF
20550#define HAVE_SYS_TIMES_H 1
20551_ACEOF
20552
20553fi
20554
20555done
20556
20557  for ac_func in times
20558do :
20559  ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
20560if test "x$ac_cv_func_times" = xyes; then :
20561  cat >>confdefs.h <<_ACEOF
20562#define HAVE_TIMES 1
20563_ACEOF
20564
20565fi
20566done
20567
20568
20569            :
20570            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_usertrack" >&5
20571$as_echo_n "checking whether to enable mod_usertrack... " >&6; }
20572            if test "$enable_usertrack" = "no"; then
20573              if test "$_apmod_required" = "no"; then
20574                _apmod_extra_msg=" (disabled)"
20575              else
20576                as_fn_error $? "mod_usertrack has been requested but can not be built due to prerequisite failures" "$LINENO" 5
20577              fi
20578            fi
20579  fi
20580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_usertrack$_apmod_extra_msg" >&5
20581$as_echo "$enable_usertrack$_apmod_extra_msg" >&6; }
20582  if test "$enable_usertrack" != "no"; then
20583    case "$enable_usertrack" in
20584    static*)
20585      MODLIST="$MODLIST usertrack"
20586      if test "usertrack" = "so"; then
20587          sharedobjs=yes
20588      fi
20589      shared="";;
20590    *)
20591      enable_usertrack=`echo $enable_usertrack|sed 's/shared,*//'`
20592      sharedobjs=yes
20593      shared=yes
20594      DSO_MODULES="$DSO_MODULES usertrack"
20595      if test "" = "yes" ; then
20596        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},usertrack"
20597      fi
20598      ;;
20599    esac
20600
20601
20602  if test -z ""; then
20603    objects="mod_usertrack.lo"
20604  else
20605    objects=""
20606  fi
20607
20608  if test -z "$module_standalone"; then
20609    if test -z "$shared"; then
20610      # The filename of a convenience library must have a "lib" prefix:
20611      libname="libmod_usertrack.la"
20612      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20613      modpath_static="$modpath_static $libname"
20614      cat >>$modpath_current/modules.mk<<EOF
20615$libname: $objects
20616	\$(MOD_LINK) $objects \$(MOD_USERTRACK_LDADD)
20617EOF
20618      if test ! -z "\$(MOD_USERTRACK_LDADD)"; then
20619
20620  if test "x$AP_LIBS" = "x"; then
20621    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_USERTRACK_LDADD)\""
20622    AP_LIBS="\$(MOD_USERTRACK_LDADD)"
20623  else
20624    apr_addto_bugger="\$(MOD_USERTRACK_LDADD)"
20625    for i in $apr_addto_bugger; do
20626      apr_addto_duplicate="0"
20627      for j in $AP_LIBS; do
20628        if test "x$i" = "x$j"; then
20629          apr_addto_duplicate="1"
20630          break
20631        fi
20632      done
20633      if test $apr_addto_duplicate = "0"; then
20634        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20635        AP_LIBS="$AP_LIBS $i"
20636      fi
20637    done
20638  fi
20639
20640      fi
20641    else
20642      apache_need_shared=yes
20643      libname="mod_usertrack.la"
20644      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20645      modpath_shared="$modpath_shared $libname"
20646      cat >>$modpath_current/modules.mk<<EOF
20647$libname: $shobjects
20648	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERTRACK_LDADD)
20649EOF
20650    fi
20651  fi
20652
20653
20654  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERTRACK_LDADD"
20655
20656
20657
20658  fi
20659
20660
20661
20662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_unique_id" >&5
20663$as_echo_n "checking whether to enable mod_unique_id... " >&6; }
20664    # Check whether --enable-unique-id was given.
20665if test "${enable_unique_id+set}" = set; then :
20666  enableval=$enable_unique_id; force_unique_id=$enableval
20667else
20668  enable_unique_id=most
20669fi
20670
20671    _apmod_extra_msg=""
20672        case "$enable_unique_id" in
20673    yes|static|shared)
20674      _apmod_required="yes"
20675      ;;
20676    *)
20677      case "$module_selection" in
20678      reallyall|all|most)
20679        _apmod_required="no"
20680        ;;
20681      *)
20682        _apmod_required="yes"
20683        ;;
20684      esac
20685  esac
20686  if test "$enable_unique_id" = "static"; then
20687    enable_unique_id=static
20688  elif test "$enable_unique_id" = "yes"; then
20689    enable_unique_id=$module_default
20690  elif test "$enable_unique_id" = "most"; then
20691    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20692            "$module_selection" = "reallyall"
20693    then
20694      enable_unique_id=$module_default
20695    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20696      enable_unique_id=no
20697    fi
20698    _apmod_extra_msg=" ($module_selection)"
20699  elif test "$enable_unique_id" = "maybe-all"; then
20700    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20701    then
20702      enable_unique_id=$module_default
20703      _apmod_extra_msg=" ($module_selection)"
20704    else
20705      enable_unique_id=no
20706    fi
20707  elif test "$enable_unique_id" = "no" -a "$module_selection" = "reallyall" -a \
20708            "$force_unique_id" != "no" ; then
20709      enable_unique_id=$module_default
20710      _apmod_extra_msg=" ($module_selection)"
20711  fi
20712  if test "$enable_unique_id" != "no"; then
20713            :
20714  fi
20715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unique_id$_apmod_extra_msg" >&5
20716$as_echo "$enable_unique_id$_apmod_extra_msg" >&6; }
20717  if test "$enable_unique_id" != "no"; then
20718    case "$enable_unique_id" in
20719    static*)
20720      MODLIST="$MODLIST unique_id"
20721      if test "unique_id" = "so"; then
20722          sharedobjs=yes
20723      fi
20724      shared="";;
20725    *)
20726      enable_unique_id=`echo $enable_unique_id|sed 's/shared,*//'`
20727      sharedobjs=yes
20728      shared=yes
20729      DSO_MODULES="$DSO_MODULES unique_id"
20730      if test "most" = "yes" ; then
20731        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},unique_id"
20732      fi
20733      ;;
20734    esac
20735
20736
20737  if test -z ""; then
20738    objects="mod_unique_id.lo"
20739  else
20740    objects=""
20741  fi
20742
20743  if test -z "$module_standalone"; then
20744    if test -z "$shared"; then
20745      # The filename of a convenience library must have a "lib" prefix:
20746      libname="libmod_unique_id.la"
20747      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20748      modpath_static="$modpath_static $libname"
20749      cat >>$modpath_current/modules.mk<<EOF
20750$libname: $objects
20751	\$(MOD_LINK) $objects \$(MOD_UNIQUE_ID_LDADD)
20752EOF
20753      if test ! -z "\$(MOD_UNIQUE_ID_LDADD)"; then
20754
20755  if test "x$AP_LIBS" = "x"; then
20756    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_UNIQUE_ID_LDADD)\""
20757    AP_LIBS="\$(MOD_UNIQUE_ID_LDADD)"
20758  else
20759    apr_addto_bugger="\$(MOD_UNIQUE_ID_LDADD)"
20760    for i in $apr_addto_bugger; do
20761      apr_addto_duplicate="0"
20762      for j in $AP_LIBS; do
20763        if test "x$i" = "x$j"; then
20764          apr_addto_duplicate="1"
20765          break
20766        fi
20767      done
20768      if test $apr_addto_duplicate = "0"; then
20769        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20770        AP_LIBS="$AP_LIBS $i"
20771      fi
20772    done
20773  fi
20774
20775      fi
20776    else
20777      apache_need_shared=yes
20778      libname="mod_unique_id.la"
20779      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20780      modpath_shared="$modpath_shared $libname"
20781      cat >>$modpath_current/modules.mk<<EOF
20782$libname: $shobjects
20783	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_UNIQUE_ID_LDADD)
20784EOF
20785    fi
20786  fi
20787
20788
20789  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIQUE_ID_LDADD"
20790
20791
20792
20793  fi
20794
20795
20796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_setenvif" >&5
20797$as_echo_n "checking whether to enable mod_setenvif... " >&6; }
20798    # Check whether --enable-setenvif was given.
20799if test "${enable_setenvif+set}" = set; then :
20800  enableval=$enable_setenvif; force_setenvif=$enableval
20801else
20802  enable_setenvif=yes
20803fi
20804
20805    _apmod_extra_msg=""
20806        case "$enable_setenvif" in
20807    yes|static|shared)
20808      _apmod_required="yes"
20809      ;;
20810    *)
20811      case "$module_selection" in
20812      reallyall|all|most)
20813        _apmod_required="no"
20814        ;;
20815      *)
20816        _apmod_required="yes"
20817        ;;
20818      esac
20819  esac
20820  if test "$enable_setenvif" = "static"; then
20821    enable_setenvif=static
20822  elif test "$enable_setenvif" = "yes"; then
20823    enable_setenvif=$module_default
20824  elif test "$enable_setenvif" = "most"; then
20825    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20826            "$module_selection" = "reallyall"
20827    then
20828      enable_setenvif=$module_default
20829    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20830      enable_setenvif=no
20831    fi
20832    _apmod_extra_msg=" ($module_selection)"
20833  elif test "$enable_setenvif" = "maybe-all"; then
20834    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20835    then
20836      enable_setenvif=$module_default
20837      _apmod_extra_msg=" ($module_selection)"
20838    else
20839      enable_setenvif=no
20840    fi
20841  elif test "$enable_setenvif" = "no" -a "$module_selection" = "reallyall" -a \
20842            "$force_setenvif" != "no" ; then
20843      enable_setenvif=$module_default
20844      _apmod_extra_msg=" ($module_selection)"
20845  fi
20846  if test "$enable_setenvif" != "no"; then
20847            :
20848  fi
20849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_setenvif$_apmod_extra_msg" >&5
20850$as_echo "$enable_setenvif$_apmod_extra_msg" >&6; }
20851  if test "$enable_setenvif" != "no"; then
20852    case "$enable_setenvif" in
20853    static*)
20854      MODLIST="$MODLIST setenvif"
20855      if test "setenvif" = "so"; then
20856          sharedobjs=yes
20857      fi
20858      shared="";;
20859    *)
20860      enable_setenvif=`echo $enable_setenvif|sed 's/shared,*//'`
20861      sharedobjs=yes
20862      shared=yes
20863      DSO_MODULES="$DSO_MODULES setenvif"
20864      if test "yes" = "yes" ; then
20865        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},setenvif"
20866      fi
20867      ;;
20868    esac
20869
20870
20871  if test -z ""; then
20872    objects="mod_setenvif.lo"
20873  else
20874    objects=""
20875  fi
20876
20877  if test -z "$module_standalone"; then
20878    if test -z "$shared"; then
20879      # The filename of a convenience library must have a "lib" prefix:
20880      libname="libmod_setenvif.la"
20881      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
20882      modpath_static="$modpath_static $libname"
20883      cat >>$modpath_current/modules.mk<<EOF
20884$libname: $objects
20885	\$(MOD_LINK) $objects \$(MOD_SETENVIF_LDADD)
20886EOF
20887      if test ! -z "\$(MOD_SETENVIF_LDADD)"; then
20888
20889  if test "x$AP_LIBS" = "x"; then
20890    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SETENVIF_LDADD)\""
20891    AP_LIBS="\$(MOD_SETENVIF_LDADD)"
20892  else
20893    apr_addto_bugger="\$(MOD_SETENVIF_LDADD)"
20894    for i in $apr_addto_bugger; do
20895      apr_addto_duplicate="0"
20896      for j in $AP_LIBS; do
20897        if test "x$i" = "x$j"; then
20898          apr_addto_duplicate="1"
20899          break
20900        fi
20901      done
20902      if test $apr_addto_duplicate = "0"; then
20903        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
20904        AP_LIBS="$AP_LIBS $i"
20905      fi
20906    done
20907  fi
20908
20909      fi
20910    else
20911      apache_need_shared=yes
20912      libname="mod_setenvif.la"
20913      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
20914      modpath_shared="$modpath_shared $libname"
20915      cat >>$modpath_current/modules.mk<<EOF
20916$libname: $shobjects
20917	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SETENVIF_LDADD)
20918EOF
20919    fi
20920  fi
20921
20922
20923  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SETENVIF_LDADD"
20924
20925
20926
20927  fi
20928
20929
20930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_version" >&5
20931$as_echo_n "checking whether to enable mod_version... " >&6; }
20932    # Check whether --enable-version was given.
20933if test "${enable_version+set}" = set; then :
20934  enableval=$enable_version; force_version=$enableval
20935else
20936  enable_version=yes
20937fi
20938
20939    _apmod_extra_msg=""
20940        case "$enable_version" in
20941    yes|static|shared)
20942      _apmod_required="yes"
20943      ;;
20944    *)
20945      case "$module_selection" in
20946      reallyall|all|most)
20947        _apmod_required="no"
20948        ;;
20949      *)
20950        _apmod_required="yes"
20951        ;;
20952      esac
20953  esac
20954  if test "$enable_version" = "static"; then
20955    enable_version=static
20956  elif test "$enable_version" = "yes"; then
20957    enable_version=$module_default
20958  elif test "$enable_version" = "most"; then
20959    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
20960            "$module_selection" = "reallyall"
20961    then
20962      enable_version=$module_default
20963    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
20964      enable_version=no
20965    fi
20966    _apmod_extra_msg=" ($module_selection)"
20967  elif test "$enable_version" = "maybe-all"; then
20968    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
20969    then
20970      enable_version=$module_default
20971      _apmod_extra_msg=" ($module_selection)"
20972    else
20973      enable_version=no
20974    fi
20975  elif test "$enable_version" = "no" -a "$module_selection" = "reallyall" -a \
20976            "$force_version" != "no" ; then
20977      enable_version=$module_default
20978      _apmod_extra_msg=" ($module_selection)"
20979  fi
20980  if test "$enable_version" != "no"; then
20981            :
20982  fi
20983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version$_apmod_extra_msg" >&5
20984$as_echo "$enable_version$_apmod_extra_msg" >&6; }
20985  if test "$enable_version" != "no"; then
20986    case "$enable_version" in
20987    static*)
20988      MODLIST="$MODLIST version"
20989      if test "version" = "so"; then
20990          sharedobjs=yes
20991      fi
20992      shared="";;
20993    *)
20994      enable_version=`echo $enable_version|sed 's/shared,*//'`
20995      sharedobjs=yes
20996      shared=yes
20997      DSO_MODULES="$DSO_MODULES version"
20998      if test "yes" = "yes" ; then
20999        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},version"
21000      fi
21001      ;;
21002    esac
21003
21004
21005  if test -z ""; then
21006    objects="mod_version.lo"
21007  else
21008    objects=""
21009  fi
21010
21011  if test -z "$module_standalone"; then
21012    if test -z "$shared"; then
21013      # The filename of a convenience library must have a "lib" prefix:
21014      libname="libmod_version.la"
21015      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21016      modpath_static="$modpath_static $libname"
21017      cat >>$modpath_current/modules.mk<<EOF
21018$libname: $objects
21019	\$(MOD_LINK) $objects \$(MOD_VERSION_LDADD)
21020EOF
21021      if test ! -z "\$(MOD_VERSION_LDADD)"; then
21022
21023  if test "x$AP_LIBS" = "x"; then
21024    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_VERSION_LDADD)\""
21025    AP_LIBS="\$(MOD_VERSION_LDADD)"
21026  else
21027    apr_addto_bugger="\$(MOD_VERSION_LDADD)"
21028    for i in $apr_addto_bugger; do
21029      apr_addto_duplicate="0"
21030      for j in $AP_LIBS; do
21031        if test "x$i" = "x$j"; then
21032          apr_addto_duplicate="1"
21033          break
21034        fi
21035      done
21036      if test $apr_addto_duplicate = "0"; then
21037        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21038        AP_LIBS="$AP_LIBS $i"
21039      fi
21040    done
21041  fi
21042
21043      fi
21044    else
21045      apache_need_shared=yes
21046      libname="mod_version.la"
21047      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21048      modpath_shared="$modpath_shared $libname"
21049      cat >>$modpath_current/modules.mk<<EOF
21050$libname: $shobjects
21051	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VERSION_LDADD)
21052EOF
21053    fi
21054  fi
21055
21056
21057  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VERSION_LDADD"
21058
21059
21060
21061  fi
21062
21063
21064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_remoteip" >&5
21065$as_echo_n "checking whether to enable mod_remoteip... " >&6; }
21066    # Check whether --enable-remoteip was given.
21067if test "${enable_remoteip+set}" = set; then :
21068  enableval=$enable_remoteip; force_remoteip=$enableval
21069else
21070  enable_remoteip=most
21071fi
21072
21073    _apmod_extra_msg=""
21074        case "$enable_remoteip" in
21075    yes|static|shared)
21076      _apmod_required="yes"
21077      ;;
21078    *)
21079      case "$module_selection" in
21080      reallyall|all|most)
21081        _apmod_required="no"
21082        ;;
21083      *)
21084        _apmod_required="yes"
21085        ;;
21086      esac
21087  esac
21088  if test "$enable_remoteip" = "static"; then
21089    enable_remoteip=static
21090  elif test "$enable_remoteip" = "yes"; then
21091    enable_remoteip=$module_default
21092  elif test "$enable_remoteip" = "most"; then
21093    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21094            "$module_selection" = "reallyall"
21095    then
21096      enable_remoteip=$module_default
21097    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21098      enable_remoteip=no
21099    fi
21100    _apmod_extra_msg=" ($module_selection)"
21101  elif test "$enable_remoteip" = "maybe-all"; then
21102    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21103    then
21104      enable_remoteip=$module_default
21105      _apmod_extra_msg=" ($module_selection)"
21106    else
21107      enable_remoteip=no
21108    fi
21109  elif test "$enable_remoteip" = "no" -a "$module_selection" = "reallyall" -a \
21110            "$force_remoteip" != "no" ; then
21111      enable_remoteip=$module_default
21112      _apmod_extra_msg=" ($module_selection)"
21113  fi
21114  if test "$enable_remoteip" != "no"; then
21115            :
21116  fi
21117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_remoteip$_apmod_extra_msg" >&5
21118$as_echo "$enable_remoteip$_apmod_extra_msg" >&6; }
21119  if test "$enable_remoteip" != "no"; then
21120    case "$enable_remoteip" in
21121    static*)
21122      MODLIST="$MODLIST remoteip"
21123      if test "remoteip" = "so"; then
21124          sharedobjs=yes
21125      fi
21126      shared="";;
21127    *)
21128      enable_remoteip=`echo $enable_remoteip|sed 's/shared,*//'`
21129      sharedobjs=yes
21130      shared=yes
21131      DSO_MODULES="$DSO_MODULES remoteip"
21132      if test "most" = "yes" ; then
21133        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},remoteip"
21134      fi
21135      ;;
21136    esac
21137
21138
21139  if test -z ""; then
21140    objects="mod_remoteip.lo"
21141  else
21142    objects=""
21143  fi
21144
21145  if test -z "$module_standalone"; then
21146    if test -z "$shared"; then
21147      # The filename of a convenience library must have a "lib" prefix:
21148      libname="libmod_remoteip.la"
21149      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21150      modpath_static="$modpath_static $libname"
21151      cat >>$modpath_current/modules.mk<<EOF
21152$libname: $objects
21153	\$(MOD_LINK) $objects \$(MOD_REMOTEIP_LDADD)
21154EOF
21155      if test ! -z "\$(MOD_REMOTEIP_LDADD)"; then
21156
21157  if test "x$AP_LIBS" = "x"; then
21158    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REMOTEIP_LDADD)\""
21159    AP_LIBS="\$(MOD_REMOTEIP_LDADD)"
21160  else
21161    apr_addto_bugger="\$(MOD_REMOTEIP_LDADD)"
21162    for i in $apr_addto_bugger; do
21163      apr_addto_duplicate="0"
21164      for j in $AP_LIBS; do
21165        if test "x$i" = "x$j"; then
21166          apr_addto_duplicate="1"
21167          break
21168        fi
21169      done
21170      if test $apr_addto_duplicate = "0"; then
21171        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21172        AP_LIBS="$AP_LIBS $i"
21173      fi
21174    done
21175  fi
21176
21177      fi
21178    else
21179      apache_need_shared=yes
21180      libname="mod_remoteip.la"
21181      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21182      modpath_shared="$modpath_shared $libname"
21183      cat >>$modpath_current/modules.mk<<EOF
21184$libname: $shobjects
21185	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REMOTEIP_LDADD)
21186EOF
21187    fi
21188  fi
21189
21190
21191  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REMOTEIP_LDADD"
21192
21193
21194
21195  fi
21196
21197
21198
21199  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
21200  echo "static = $modpath_static" >> $modpath_current/modules.mk
21201  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
21202  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
21203    if eval val=\"\$MOD_$var\"; test -n "$val"; then
21204      echo "MOD_$var = $val" >> $modpath_current/modules.mk
21205    fi
21206  done
21207  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
21208    MODULE_DIRS="$MODULE_DIRS $current_dir"
21209  else
21210    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
21211  fi
21212
21213  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
21214
21215
21216
21217
21218
21219  current_dir=proxy
21220  modpath_current=modules/proxy
21221  modpath_static=
21222  modpath_shared=
21223  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
21224    eval MOD_$var=
21225  done
21226  test -d proxy || $srcdir/build/mkdir.sh $modpath_current
21227  > $modpath_current/modules.mk
21228
21229
21230if test "$enable_proxy" = "shared"; then
21231  proxy_mods_enable=shared
21232elif test "$enable_proxy" = "yes"; then
21233  proxy_mods_enable=yes
21234else
21235  proxy_mods_enable=most
21236fi
21237
21238proxy_objs="mod_proxy.lo proxy_util.lo"
21239
21240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy" >&5
21241$as_echo_n "checking whether to enable mod_proxy... " >&6; }
21242    # Check whether --enable-proxy was given.
21243if test "${enable_proxy+set}" = set; then :
21244  enableval=$enable_proxy; force_proxy=$enableval
21245else
21246  enable_proxy=$proxy_mods_enable
21247fi
21248
21249    _apmod_extra_msg=""
21250        case "$enable_proxy" in
21251    yes|static|shared)
21252      _apmod_required="yes"
21253      ;;
21254    *)
21255      case "$module_selection" in
21256      reallyall|all|most)
21257        _apmod_required="no"
21258        ;;
21259      *)
21260        _apmod_required="yes"
21261        ;;
21262      esac
21263  esac
21264  if test "$enable_proxy" = "static"; then
21265    enable_proxy=static
21266  elif test "$enable_proxy" = "yes"; then
21267    enable_proxy=$module_default
21268  elif test "$enable_proxy" = "most"; then
21269    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21270            "$module_selection" = "reallyall"
21271    then
21272      enable_proxy=$module_default
21273    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21274      enable_proxy=no
21275    fi
21276    _apmod_extra_msg=" ($module_selection)"
21277  elif test "$enable_proxy" = "maybe-all"; then
21278    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21279    then
21280      enable_proxy=$module_default
21281      _apmod_extra_msg=" ($module_selection)"
21282    else
21283      enable_proxy=no
21284    fi
21285  elif test "$enable_proxy" = "no" -a "$module_selection" = "reallyall" -a \
21286            "$force_proxy" != "no" ; then
21287      enable_proxy=$module_default
21288      _apmod_extra_msg=" ($module_selection)"
21289  fi
21290  if test "$enable_proxy" != "no"; then
21291            :
21292  fi
21293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy$_apmod_extra_msg" >&5
21294$as_echo "$enable_proxy$_apmod_extra_msg" >&6; }
21295  if test "$enable_proxy" != "no"; then
21296    case "$enable_proxy" in
21297    static*)
21298      MODLIST="$MODLIST proxy"
21299      if test "proxy" = "so"; then
21300          sharedobjs=yes
21301      fi
21302      shared="";;
21303    *)
21304      enable_proxy=`echo $enable_proxy|sed 's/shared,*//'`
21305      sharedobjs=yes
21306      shared=yes
21307      DSO_MODULES="$DSO_MODULES proxy"
21308      if test "$proxy_mods_enable" = "yes" ; then
21309        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy"
21310      fi
21311      ;;
21312    esac
21313
21314
21315  if test -z "$proxy_objs"; then
21316    objects="mod_proxy.lo"
21317  else
21318    objects="$proxy_objs"
21319  fi
21320
21321  if test -z "$module_standalone"; then
21322    if test -z "$shared"; then
21323      # The filename of a convenience library must have a "lib" prefix:
21324      libname="libmod_proxy.la"
21325      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21326      modpath_static="$modpath_static $libname"
21327      cat >>$modpath_current/modules.mk<<EOF
21328$libname: $objects
21329	\$(MOD_LINK) $objects \$(MOD_PROXY_LDADD)
21330EOF
21331      if test ! -z "\$(MOD_PROXY_LDADD)"; then
21332
21333  if test "x$AP_LIBS" = "x"; then
21334    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_LDADD)\""
21335    AP_LIBS="\$(MOD_PROXY_LDADD)"
21336  else
21337    apr_addto_bugger="\$(MOD_PROXY_LDADD)"
21338    for i in $apr_addto_bugger; do
21339      apr_addto_duplicate="0"
21340      for j in $AP_LIBS; do
21341        if test "x$i" = "x$j"; then
21342          apr_addto_duplicate="1"
21343          break
21344        fi
21345      done
21346      if test $apr_addto_duplicate = "0"; then
21347        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21348        AP_LIBS="$AP_LIBS $i"
21349      fi
21350    done
21351  fi
21352
21353      fi
21354    else
21355      apache_need_shared=yes
21356      libname="mod_proxy.la"
21357      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21358      modpath_shared="$modpath_shared $libname"
21359      cat >>$modpath_current/modules.mk<<EOF
21360$libname: $shobjects
21361	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_LDADD)
21362EOF
21363    fi
21364  fi
21365
21366
21367  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_LDADD"
21368
21369
21370
21371  fi
21372
21373
21374proxy_connect_objs="mod_proxy_connect.lo"
21375proxy_ftp_objs="mod_proxy_ftp.lo"
21376proxy_http_objs="mod_proxy_http.lo"
21377proxy_fcgi_objs="mod_proxy_fcgi.lo"
21378proxy_scgi_objs="mod_proxy_scgi.lo"
21379proxy_fdpass_objs="mod_proxy_fdpass.lo"
21380proxy_ajp_objs="mod_proxy_ajp.lo ajp_header.lo ajp_link.lo ajp_msg.lo ajp_utils.lo"
21381proxy_wstunnel_objs="mod_proxy_wstunnel.lo"
21382proxy_balancer_objs="mod_proxy_balancer.lo"
21383
21384case "$host" in
21385  *os2*)
21386    # OS/2 DLLs must resolve all symbols at build time and
21387    # these sub-modules need some from the main proxy module
21388    proxy_connect_objs="$proxy_connect_objs mod_proxy.la"
21389    proxy_ftp_objs="$proxy_ftp_objs mod_proxy.la"
21390    proxy_http_objs="$proxy_http_objs mod_proxy.la"
21391    proxy_fcgi_objs="$proxy_fcgi_objs mod_proxy.la"
21392    proxy_scgi_objs="$proxy_scgi_objs mod_proxy.la"
21393    proxy_fdpass_objs="$proxy_fdpass_objs mod_proxy.la"
21394    proxy_ajp_objs="$proxy_ajp_objs mod_proxy.la"
21395    proxy_wstunnel_objs="$proxy_wstunnel_objs mod_proxy.la"
21396    proxy_balancer_objs="$proxy_balancer_objs mod_proxy.la"
21397    ;;
21398esac
21399
21400
21401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_connect" >&5
21402$as_echo_n "checking whether to enable mod_proxy_connect... " >&6; }
21403    # Check whether --enable-proxy-connect was given.
21404if test "${enable_proxy_connect+set}" = set; then :
21405  enableval=$enable_proxy_connect; force_proxy_connect=$enableval
21406else
21407  enable_proxy_connect=$proxy_mods_enable
21408fi
21409
21410    _apmod_extra_msg=""
21411        case "$enable_proxy_connect" in
21412    yes|static|shared)
21413      _apmod_required="yes"
21414      ;;
21415    *)
21416      case "$module_selection" in
21417      reallyall|all|most)
21418        _apmod_required="no"
21419        ;;
21420      *)
21421        _apmod_required="yes"
21422        ;;
21423      esac
21424  esac
21425  if test "$enable_proxy_connect" = "static"; then
21426    enable_proxy_connect=static
21427  elif test "$enable_proxy_connect" = "yes"; then
21428    enable_proxy_connect=$module_default
21429  elif test "$enable_proxy_connect" = "most"; then
21430    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21431            "$module_selection" = "reallyall"
21432    then
21433      enable_proxy_connect=$module_default
21434    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21435      enable_proxy_connect=no
21436    fi
21437    _apmod_extra_msg=" ($module_selection)"
21438  elif test "$enable_proxy_connect" = "maybe-all"; then
21439    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21440    then
21441      enable_proxy_connect=$module_default
21442      _apmod_extra_msg=" ($module_selection)"
21443    else
21444      enable_proxy_connect=no
21445    fi
21446  elif test "$enable_proxy_connect" = "no" -a "$module_selection" = "reallyall" -a \
21447            "$force_proxy_connect" != "no" ; then
21448      enable_proxy_connect=$module_default
21449      _apmod_extra_msg=" ($module_selection)"
21450  fi
21451  if test "$enable_proxy_connect" != "no"; then
21452            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
21453$as_echo "checking dependencies" >&6; }
21454            if test "$enable_proxy" = "no" ; then
21455                              enable_proxy_connect=no
21456                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_connect\"" >&5
21457$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_connect\"" >&2;}
21458                            elif test "$enable_proxy_connect" = "static" && test "$enable_proxy" != "static" ; then
21459                              enable_proxy_connect=no
21460                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_connect statically if mod_proxy is built shared\"" >&5
21461$as_echo "$as_me: WARNING: \"cannot build mod_proxy_connect statically if mod_proxy is built shared\"" >&2;}
21462                            else
21463            :
21464            fi
21465            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_connect" >&5
21466$as_echo_n "checking whether to enable mod_proxy_connect... " >&6; }
21467            if test "$enable_proxy_connect" = "no"; then
21468              if test "$_apmod_required" = "no"; then
21469                _apmod_extra_msg=" (disabled)"
21470              else
21471                as_fn_error $? "mod_proxy_connect has been requested but can not be built due to prerequisite failures" "$LINENO" 5
21472              fi
21473            fi
21474  fi
21475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_connect$_apmod_extra_msg" >&5
21476$as_echo "$enable_proxy_connect$_apmod_extra_msg" >&6; }
21477  if test "$enable_proxy_connect" != "no"; then
21478    case "$enable_proxy_connect" in
21479    static*)
21480      MODLIST="$MODLIST proxy_connect"
21481      if test "proxy_connect" = "so"; then
21482          sharedobjs=yes
21483      fi
21484      shared="";;
21485    *)
21486      enable_proxy_connect=`echo $enable_proxy_connect|sed 's/shared,*//'`
21487      sharedobjs=yes
21488      shared=yes
21489      DSO_MODULES="$DSO_MODULES proxy_connect"
21490      if test "$proxy_mods_enable" = "yes" ; then
21491        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_connect"
21492      fi
21493      ;;
21494    esac
21495
21496
21497  if test -z "$proxy_connect_objs"; then
21498    objects="mod_proxy_connect.lo"
21499  else
21500    objects="$proxy_connect_objs"
21501  fi
21502
21503  if test -z "$module_standalone"; then
21504    if test -z "$shared"; then
21505      # The filename of a convenience library must have a "lib" prefix:
21506      libname="libmod_proxy_connect.la"
21507      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21508      modpath_static="$modpath_static $libname"
21509      cat >>$modpath_current/modules.mk<<EOF
21510$libname: $objects
21511	\$(MOD_LINK) $objects \$(MOD_PROXY_CONNECT_LDADD)
21512EOF
21513      if test ! -z "\$(MOD_PROXY_CONNECT_LDADD)"; then
21514
21515  if test "x$AP_LIBS" = "x"; then
21516    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_CONNECT_LDADD)\""
21517    AP_LIBS="\$(MOD_PROXY_CONNECT_LDADD)"
21518  else
21519    apr_addto_bugger="\$(MOD_PROXY_CONNECT_LDADD)"
21520    for i in $apr_addto_bugger; do
21521      apr_addto_duplicate="0"
21522      for j in $AP_LIBS; do
21523        if test "x$i" = "x$j"; then
21524          apr_addto_duplicate="1"
21525          break
21526        fi
21527      done
21528      if test $apr_addto_duplicate = "0"; then
21529        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21530        AP_LIBS="$AP_LIBS $i"
21531      fi
21532    done
21533  fi
21534
21535      fi
21536    else
21537      apache_need_shared=yes
21538      libname="mod_proxy_connect.la"
21539      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21540      modpath_shared="$modpath_shared $libname"
21541      cat >>$modpath_current/modules.mk<<EOF
21542$libname: $shobjects
21543	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_CONNECT_LDADD)
21544EOF
21545    fi
21546  fi
21547
21548
21549  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_CONNECT_LDADD"
21550
21551
21552
21553  fi
21554
21555
21556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ftp" >&5
21557$as_echo_n "checking whether to enable mod_proxy_ftp... " >&6; }
21558    # Check whether --enable-proxy-ftp was given.
21559if test "${enable_proxy_ftp+set}" = set; then :
21560  enableval=$enable_proxy_ftp; force_proxy_ftp=$enableval
21561else
21562  enable_proxy_ftp=$proxy_mods_enable
21563fi
21564
21565    _apmod_extra_msg=""
21566        case "$enable_proxy_ftp" in
21567    yes|static|shared)
21568      _apmod_required="yes"
21569      ;;
21570    *)
21571      case "$module_selection" in
21572      reallyall|all|most)
21573        _apmod_required="no"
21574        ;;
21575      *)
21576        _apmod_required="yes"
21577        ;;
21578      esac
21579  esac
21580  if test "$enable_proxy_ftp" = "static"; then
21581    enable_proxy_ftp=static
21582  elif test "$enable_proxy_ftp" = "yes"; then
21583    enable_proxy_ftp=$module_default
21584  elif test "$enable_proxy_ftp" = "most"; then
21585    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21586            "$module_selection" = "reallyall"
21587    then
21588      enable_proxy_ftp=$module_default
21589    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21590      enable_proxy_ftp=no
21591    fi
21592    _apmod_extra_msg=" ($module_selection)"
21593  elif test "$enable_proxy_ftp" = "maybe-all"; then
21594    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21595    then
21596      enable_proxy_ftp=$module_default
21597      _apmod_extra_msg=" ($module_selection)"
21598    else
21599      enable_proxy_ftp=no
21600    fi
21601  elif test "$enable_proxy_ftp" = "no" -a "$module_selection" = "reallyall" -a \
21602            "$force_proxy_ftp" != "no" ; then
21603      enable_proxy_ftp=$module_default
21604      _apmod_extra_msg=" ($module_selection)"
21605  fi
21606  if test "$enable_proxy_ftp" != "no"; then
21607            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
21608$as_echo "checking dependencies" >&6; }
21609            if test "$enable_proxy" = "no" ; then
21610                              enable_proxy_ftp=no
21611                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_ftp\"" >&5
21612$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_ftp\"" >&2;}
21613                            elif test "$enable_proxy_ftp" = "static" && test "$enable_proxy" != "static" ; then
21614                              enable_proxy_ftp=no
21615                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_ftp statically if mod_proxy is built shared\"" >&5
21616$as_echo "$as_me: WARNING: \"cannot build mod_proxy_ftp statically if mod_proxy is built shared\"" >&2;}
21617                            else
21618            :
21619            fi
21620            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ftp" >&5
21621$as_echo_n "checking whether to enable mod_proxy_ftp... " >&6; }
21622            if test "$enable_proxy_ftp" = "no"; then
21623              if test "$_apmod_required" = "no"; then
21624                _apmod_extra_msg=" (disabled)"
21625              else
21626                as_fn_error $? "mod_proxy_ftp has been requested but can not be built due to prerequisite failures" "$LINENO" 5
21627              fi
21628            fi
21629  fi
21630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_ftp$_apmod_extra_msg" >&5
21631$as_echo "$enable_proxy_ftp$_apmod_extra_msg" >&6; }
21632  if test "$enable_proxy_ftp" != "no"; then
21633    case "$enable_proxy_ftp" in
21634    static*)
21635      MODLIST="$MODLIST proxy_ftp"
21636      if test "proxy_ftp" = "so"; then
21637          sharedobjs=yes
21638      fi
21639      shared="";;
21640    *)
21641      enable_proxy_ftp=`echo $enable_proxy_ftp|sed 's/shared,*//'`
21642      sharedobjs=yes
21643      shared=yes
21644      DSO_MODULES="$DSO_MODULES proxy_ftp"
21645      if test "$proxy_mods_enable" = "yes" ; then
21646        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_ftp"
21647      fi
21648      ;;
21649    esac
21650
21651
21652  if test -z "$proxy_ftp_objs"; then
21653    objects="mod_proxy_ftp.lo"
21654  else
21655    objects="$proxy_ftp_objs"
21656  fi
21657
21658  if test -z "$module_standalone"; then
21659    if test -z "$shared"; then
21660      # The filename of a convenience library must have a "lib" prefix:
21661      libname="libmod_proxy_ftp.la"
21662      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21663      modpath_static="$modpath_static $libname"
21664      cat >>$modpath_current/modules.mk<<EOF
21665$libname: $objects
21666	\$(MOD_LINK) $objects \$(MOD_PROXY_FTP_LDADD)
21667EOF
21668      if test ! -z "\$(MOD_PROXY_FTP_LDADD)"; then
21669
21670  if test "x$AP_LIBS" = "x"; then
21671    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_FTP_LDADD)\""
21672    AP_LIBS="\$(MOD_PROXY_FTP_LDADD)"
21673  else
21674    apr_addto_bugger="\$(MOD_PROXY_FTP_LDADD)"
21675    for i in $apr_addto_bugger; do
21676      apr_addto_duplicate="0"
21677      for j in $AP_LIBS; do
21678        if test "x$i" = "x$j"; then
21679          apr_addto_duplicate="1"
21680          break
21681        fi
21682      done
21683      if test $apr_addto_duplicate = "0"; then
21684        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21685        AP_LIBS="$AP_LIBS $i"
21686      fi
21687    done
21688  fi
21689
21690      fi
21691    else
21692      apache_need_shared=yes
21693      libname="mod_proxy_ftp.la"
21694      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21695      modpath_shared="$modpath_shared $libname"
21696      cat >>$modpath_current/modules.mk<<EOF
21697$libname: $shobjects
21698	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FTP_LDADD)
21699EOF
21700    fi
21701  fi
21702
21703
21704  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FTP_LDADD"
21705
21706
21707
21708  fi
21709
21710
21711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_http" >&5
21712$as_echo_n "checking whether to enable mod_proxy_http... " >&6; }
21713    # Check whether --enable-proxy-http was given.
21714if test "${enable_proxy_http+set}" = set; then :
21715  enableval=$enable_proxy_http; force_proxy_http=$enableval
21716else
21717  enable_proxy_http=$proxy_mods_enable
21718fi
21719
21720    _apmod_extra_msg=""
21721        case "$enable_proxy_http" in
21722    yes|static|shared)
21723      _apmod_required="yes"
21724      ;;
21725    *)
21726      case "$module_selection" in
21727      reallyall|all|most)
21728        _apmod_required="no"
21729        ;;
21730      *)
21731        _apmod_required="yes"
21732        ;;
21733      esac
21734  esac
21735  if test "$enable_proxy_http" = "static"; then
21736    enable_proxy_http=static
21737  elif test "$enable_proxy_http" = "yes"; then
21738    enable_proxy_http=$module_default
21739  elif test "$enable_proxy_http" = "most"; then
21740    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21741            "$module_selection" = "reallyall"
21742    then
21743      enable_proxy_http=$module_default
21744    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21745      enable_proxy_http=no
21746    fi
21747    _apmod_extra_msg=" ($module_selection)"
21748  elif test "$enable_proxy_http" = "maybe-all"; then
21749    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21750    then
21751      enable_proxy_http=$module_default
21752      _apmod_extra_msg=" ($module_selection)"
21753    else
21754      enable_proxy_http=no
21755    fi
21756  elif test "$enable_proxy_http" = "no" -a "$module_selection" = "reallyall" -a \
21757            "$force_proxy_http" != "no" ; then
21758      enable_proxy_http=$module_default
21759      _apmod_extra_msg=" ($module_selection)"
21760  fi
21761  if test "$enable_proxy_http" != "no"; then
21762            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
21763$as_echo "checking dependencies" >&6; }
21764            if test "$enable_proxy" = "no" ; then
21765                              enable_proxy_http=no
21766                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_http\"" >&5
21767$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_http\"" >&2;}
21768                            elif test "$enable_proxy_http" = "static" && test "$enable_proxy" != "static" ; then
21769                              enable_proxy_http=no
21770                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_http statically if mod_proxy is built shared\"" >&5
21771$as_echo "$as_me: WARNING: \"cannot build mod_proxy_http statically if mod_proxy is built shared\"" >&2;}
21772                            else
21773            :
21774            fi
21775            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_http" >&5
21776$as_echo_n "checking whether to enable mod_proxy_http... " >&6; }
21777            if test "$enable_proxy_http" = "no"; then
21778              if test "$_apmod_required" = "no"; then
21779                _apmod_extra_msg=" (disabled)"
21780              else
21781                as_fn_error $? "mod_proxy_http has been requested but can not be built due to prerequisite failures" "$LINENO" 5
21782              fi
21783            fi
21784  fi
21785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_http$_apmod_extra_msg" >&5
21786$as_echo "$enable_proxy_http$_apmod_extra_msg" >&6; }
21787  if test "$enable_proxy_http" != "no"; then
21788    case "$enable_proxy_http" in
21789    static*)
21790      MODLIST="$MODLIST proxy_http"
21791      if test "proxy_http" = "so"; then
21792          sharedobjs=yes
21793      fi
21794      shared="";;
21795    *)
21796      enable_proxy_http=`echo $enable_proxy_http|sed 's/shared,*//'`
21797      sharedobjs=yes
21798      shared=yes
21799      DSO_MODULES="$DSO_MODULES proxy_http"
21800      if test "$proxy_mods_enable" = "yes" ; then
21801        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_http"
21802      fi
21803      ;;
21804    esac
21805
21806
21807  if test -z "$proxy_http_objs"; then
21808    objects="mod_proxy_http.lo"
21809  else
21810    objects="$proxy_http_objs"
21811  fi
21812
21813  if test -z "$module_standalone"; then
21814    if test -z "$shared"; then
21815      # The filename of a convenience library must have a "lib" prefix:
21816      libname="libmod_proxy_http.la"
21817      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21818      modpath_static="$modpath_static $libname"
21819      cat >>$modpath_current/modules.mk<<EOF
21820$libname: $objects
21821	\$(MOD_LINK) $objects \$(MOD_PROXY_HTTP_LDADD)
21822EOF
21823      if test ! -z "\$(MOD_PROXY_HTTP_LDADD)"; then
21824
21825  if test "x$AP_LIBS" = "x"; then
21826    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_HTTP_LDADD)\""
21827    AP_LIBS="\$(MOD_PROXY_HTTP_LDADD)"
21828  else
21829    apr_addto_bugger="\$(MOD_PROXY_HTTP_LDADD)"
21830    for i in $apr_addto_bugger; do
21831      apr_addto_duplicate="0"
21832      for j in $AP_LIBS; do
21833        if test "x$i" = "x$j"; then
21834          apr_addto_duplicate="1"
21835          break
21836        fi
21837      done
21838      if test $apr_addto_duplicate = "0"; then
21839        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21840        AP_LIBS="$AP_LIBS $i"
21841      fi
21842    done
21843  fi
21844
21845      fi
21846    else
21847      apache_need_shared=yes
21848      libname="mod_proxy_http.la"
21849      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
21850      modpath_shared="$modpath_shared $libname"
21851      cat >>$modpath_current/modules.mk<<EOF
21852$libname: $shobjects
21853	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HTTP_LDADD)
21854EOF
21855    fi
21856  fi
21857
21858
21859  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTTP_LDADD"
21860
21861
21862
21863  fi
21864
21865
21866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fcgi" >&5
21867$as_echo_n "checking whether to enable mod_proxy_fcgi... " >&6; }
21868    # Check whether --enable-proxy-fcgi was given.
21869if test "${enable_proxy_fcgi+set}" = set; then :
21870  enableval=$enable_proxy_fcgi; force_proxy_fcgi=$enableval
21871else
21872  enable_proxy_fcgi=$proxy_mods_enable
21873fi
21874
21875    _apmod_extra_msg=""
21876        case "$enable_proxy_fcgi" in
21877    yes|static|shared)
21878      _apmod_required="yes"
21879      ;;
21880    *)
21881      case "$module_selection" in
21882      reallyall|all|most)
21883        _apmod_required="no"
21884        ;;
21885      *)
21886        _apmod_required="yes"
21887        ;;
21888      esac
21889  esac
21890  if test "$enable_proxy_fcgi" = "static"; then
21891    enable_proxy_fcgi=static
21892  elif test "$enable_proxy_fcgi" = "yes"; then
21893    enable_proxy_fcgi=$module_default
21894  elif test "$enable_proxy_fcgi" = "most"; then
21895    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
21896            "$module_selection" = "reallyall"
21897    then
21898      enable_proxy_fcgi=$module_default
21899    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
21900      enable_proxy_fcgi=no
21901    fi
21902    _apmod_extra_msg=" ($module_selection)"
21903  elif test "$enable_proxy_fcgi" = "maybe-all"; then
21904    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
21905    then
21906      enable_proxy_fcgi=$module_default
21907      _apmod_extra_msg=" ($module_selection)"
21908    else
21909      enable_proxy_fcgi=no
21910    fi
21911  elif test "$enable_proxy_fcgi" = "no" -a "$module_selection" = "reallyall" -a \
21912            "$force_proxy_fcgi" != "no" ; then
21913      enable_proxy_fcgi=$module_default
21914      _apmod_extra_msg=" ($module_selection)"
21915  fi
21916  if test "$enable_proxy_fcgi" != "no"; then
21917            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
21918$as_echo "checking dependencies" >&6; }
21919            if test "$enable_proxy" = "no" ; then
21920                              enable_proxy_fcgi=no
21921                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_fcgi\"" >&5
21922$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_fcgi\"" >&2;}
21923                            elif test "$enable_proxy_fcgi" = "static" && test "$enable_proxy" != "static" ; then
21924                              enable_proxy_fcgi=no
21925                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_fcgi statically if mod_proxy is built shared\"" >&5
21926$as_echo "$as_me: WARNING: \"cannot build mod_proxy_fcgi statically if mod_proxy is built shared\"" >&2;}
21927                            else
21928            :
21929            fi
21930            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fcgi" >&5
21931$as_echo_n "checking whether to enable mod_proxy_fcgi... " >&6; }
21932            if test "$enable_proxy_fcgi" = "no"; then
21933              if test "$_apmod_required" = "no"; then
21934                _apmod_extra_msg=" (disabled)"
21935              else
21936                as_fn_error $? "mod_proxy_fcgi has been requested but can not be built due to prerequisite failures" "$LINENO" 5
21937              fi
21938            fi
21939  fi
21940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_fcgi$_apmod_extra_msg" >&5
21941$as_echo "$enable_proxy_fcgi$_apmod_extra_msg" >&6; }
21942  if test "$enable_proxy_fcgi" != "no"; then
21943    case "$enable_proxy_fcgi" in
21944    static*)
21945      MODLIST="$MODLIST proxy_fcgi"
21946      if test "proxy_fcgi" = "so"; then
21947          sharedobjs=yes
21948      fi
21949      shared="";;
21950    *)
21951      enable_proxy_fcgi=`echo $enable_proxy_fcgi|sed 's/shared,*//'`
21952      sharedobjs=yes
21953      shared=yes
21954      DSO_MODULES="$DSO_MODULES proxy_fcgi"
21955      if test "$proxy_mods_enable" = "yes" ; then
21956        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_fcgi"
21957      fi
21958      ;;
21959    esac
21960
21961
21962  if test -z "$proxy_fcgi_objs"; then
21963    objects="mod_proxy_fcgi.lo"
21964  else
21965    objects="$proxy_fcgi_objs"
21966  fi
21967
21968  if test -z "$module_standalone"; then
21969    if test -z "$shared"; then
21970      # The filename of a convenience library must have a "lib" prefix:
21971      libname="libmod_proxy_fcgi.la"
21972      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
21973      modpath_static="$modpath_static $libname"
21974      cat >>$modpath_current/modules.mk<<EOF
21975$libname: $objects
21976	\$(MOD_LINK) $objects \$(MOD_PROXY_FCGI_LDADD)
21977EOF
21978      if test ! -z "\$(MOD_PROXY_FCGI_LDADD)"; then
21979
21980  if test "x$AP_LIBS" = "x"; then
21981    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_FCGI_LDADD)\""
21982    AP_LIBS="\$(MOD_PROXY_FCGI_LDADD)"
21983  else
21984    apr_addto_bugger="\$(MOD_PROXY_FCGI_LDADD)"
21985    for i in $apr_addto_bugger; do
21986      apr_addto_duplicate="0"
21987      for j in $AP_LIBS; do
21988        if test "x$i" = "x$j"; then
21989          apr_addto_duplicate="1"
21990          break
21991        fi
21992      done
21993      if test $apr_addto_duplicate = "0"; then
21994        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
21995        AP_LIBS="$AP_LIBS $i"
21996      fi
21997    done
21998  fi
21999
22000      fi
22001    else
22002      apache_need_shared=yes
22003      libname="mod_proxy_fcgi.la"
22004      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22005      modpath_shared="$modpath_shared $libname"
22006      cat >>$modpath_current/modules.mk<<EOF
22007$libname: $shobjects
22008	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FCGI_LDADD)
22009EOF
22010    fi
22011  fi
22012
22013
22014  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FCGI_LDADD"
22015
22016
22017
22018  fi
22019
22020
22021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_scgi" >&5
22022$as_echo_n "checking whether to enable mod_proxy_scgi... " >&6; }
22023    # Check whether --enable-proxy-scgi was given.
22024if test "${enable_proxy_scgi+set}" = set; then :
22025  enableval=$enable_proxy_scgi; force_proxy_scgi=$enableval
22026else
22027  enable_proxy_scgi=$proxy_mods_enable
22028fi
22029
22030    _apmod_extra_msg=""
22031        case "$enable_proxy_scgi" in
22032    yes|static|shared)
22033      _apmod_required="yes"
22034      ;;
22035    *)
22036      case "$module_selection" in
22037      reallyall|all|most)
22038        _apmod_required="no"
22039        ;;
22040      *)
22041        _apmod_required="yes"
22042        ;;
22043      esac
22044  esac
22045  if test "$enable_proxy_scgi" = "static"; then
22046    enable_proxy_scgi=static
22047  elif test "$enable_proxy_scgi" = "yes"; then
22048    enable_proxy_scgi=$module_default
22049  elif test "$enable_proxy_scgi" = "most"; then
22050    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22051            "$module_selection" = "reallyall"
22052    then
22053      enable_proxy_scgi=$module_default
22054    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22055      enable_proxy_scgi=no
22056    fi
22057    _apmod_extra_msg=" ($module_selection)"
22058  elif test "$enable_proxy_scgi" = "maybe-all"; then
22059    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22060    then
22061      enable_proxy_scgi=$module_default
22062      _apmod_extra_msg=" ($module_selection)"
22063    else
22064      enable_proxy_scgi=no
22065    fi
22066  elif test "$enable_proxy_scgi" = "no" -a "$module_selection" = "reallyall" -a \
22067            "$force_proxy_scgi" != "no" ; then
22068      enable_proxy_scgi=$module_default
22069      _apmod_extra_msg=" ($module_selection)"
22070  fi
22071  if test "$enable_proxy_scgi" != "no"; then
22072            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22073$as_echo "checking dependencies" >&6; }
22074            if test "$enable_proxy" = "no" ; then
22075                              enable_proxy_scgi=no
22076                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_scgi\"" >&5
22077$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_scgi\"" >&2;}
22078                            elif test "$enable_proxy_scgi" = "static" && test "$enable_proxy" != "static" ; then
22079                              enable_proxy_scgi=no
22080                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_scgi statically if mod_proxy is built shared\"" >&5
22081$as_echo "$as_me: WARNING: \"cannot build mod_proxy_scgi statically if mod_proxy is built shared\"" >&2;}
22082                            else
22083            :
22084            fi
22085            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_scgi" >&5
22086$as_echo_n "checking whether to enable mod_proxy_scgi... " >&6; }
22087            if test "$enable_proxy_scgi" = "no"; then
22088              if test "$_apmod_required" = "no"; then
22089                _apmod_extra_msg=" (disabled)"
22090              else
22091                as_fn_error $? "mod_proxy_scgi has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22092              fi
22093            fi
22094  fi
22095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_scgi$_apmod_extra_msg" >&5
22096$as_echo "$enable_proxy_scgi$_apmod_extra_msg" >&6; }
22097  if test "$enable_proxy_scgi" != "no"; then
22098    case "$enable_proxy_scgi" in
22099    static*)
22100      MODLIST="$MODLIST proxy_scgi"
22101      if test "proxy_scgi" = "so"; then
22102          sharedobjs=yes
22103      fi
22104      shared="";;
22105    *)
22106      enable_proxy_scgi=`echo $enable_proxy_scgi|sed 's/shared,*//'`
22107      sharedobjs=yes
22108      shared=yes
22109      DSO_MODULES="$DSO_MODULES proxy_scgi"
22110      if test "$proxy_mods_enable" = "yes" ; then
22111        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_scgi"
22112      fi
22113      ;;
22114    esac
22115
22116
22117  if test -z "$proxy_scgi_objs"; then
22118    objects="mod_proxy_scgi.lo"
22119  else
22120    objects="$proxy_scgi_objs"
22121  fi
22122
22123  if test -z "$module_standalone"; then
22124    if test -z "$shared"; then
22125      # The filename of a convenience library must have a "lib" prefix:
22126      libname="libmod_proxy_scgi.la"
22127      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22128      modpath_static="$modpath_static $libname"
22129      cat >>$modpath_current/modules.mk<<EOF
22130$libname: $objects
22131	\$(MOD_LINK) $objects \$(MOD_PROXY_SCGI_LDADD)
22132EOF
22133      if test ! -z "\$(MOD_PROXY_SCGI_LDADD)"; then
22134
22135  if test "x$AP_LIBS" = "x"; then
22136    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_SCGI_LDADD)\""
22137    AP_LIBS="\$(MOD_PROXY_SCGI_LDADD)"
22138  else
22139    apr_addto_bugger="\$(MOD_PROXY_SCGI_LDADD)"
22140    for i in $apr_addto_bugger; do
22141      apr_addto_duplicate="0"
22142      for j in $AP_LIBS; do
22143        if test "x$i" = "x$j"; then
22144          apr_addto_duplicate="1"
22145          break
22146        fi
22147      done
22148      if test $apr_addto_duplicate = "0"; then
22149        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22150        AP_LIBS="$AP_LIBS $i"
22151      fi
22152    done
22153  fi
22154
22155      fi
22156    else
22157      apache_need_shared=yes
22158      libname="mod_proxy_scgi.la"
22159      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22160      modpath_shared="$modpath_shared $libname"
22161      cat >>$modpath_current/modules.mk<<EOF
22162$libname: $shobjects
22163	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_SCGI_LDADD)
22164EOF
22165    fi
22166  fi
22167
22168
22169  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_SCGI_LDADD"
22170
22171
22172
22173  fi
22174
22175
22176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fdpass" >&5
22177$as_echo_n "checking whether to enable mod_proxy_fdpass... " >&6; }
22178    # Check whether --enable-proxy-fdpass was given.
22179if test "${enable_proxy_fdpass+set}" = set; then :
22180  enableval=$enable_proxy_fdpass; force_proxy_fdpass=$enableval
22181else
22182  enable_proxy_fdpass=maybe-all
22183fi
22184
22185    _apmod_extra_msg=""
22186        case "$enable_proxy_fdpass" in
22187    yes|static|shared)
22188      _apmod_required="yes"
22189      ;;
22190    *)
22191      case "$module_selection" in
22192      reallyall|all|most)
22193        _apmod_required="no"
22194        ;;
22195      *)
22196        _apmod_required="yes"
22197        ;;
22198      esac
22199  esac
22200  if test "$enable_proxy_fdpass" = "static"; then
22201    enable_proxy_fdpass=static
22202  elif test "$enable_proxy_fdpass" = "yes"; then
22203    enable_proxy_fdpass=$module_default
22204  elif test "$enable_proxy_fdpass" = "most"; then
22205    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22206            "$module_selection" = "reallyall"
22207    then
22208      enable_proxy_fdpass=$module_default
22209    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22210      enable_proxy_fdpass=no
22211    fi
22212    _apmod_extra_msg=" ($module_selection)"
22213  elif test "$enable_proxy_fdpass" = "maybe-all"; then
22214    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22215    then
22216      enable_proxy_fdpass=$module_default
22217      _apmod_extra_msg=" ($module_selection)"
22218    else
22219      enable_proxy_fdpass=no
22220    fi
22221  elif test "$enable_proxy_fdpass" = "no" -a "$module_selection" = "reallyall" -a \
22222            "$force_proxy_fdpass" != "no" ; then
22223      enable_proxy_fdpass=$module_default
22224      _apmod_extra_msg=" ($module_selection)"
22225  fi
22226  if test "$enable_proxy_fdpass" != "no"; then
22227            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22228$as_echo "checking dependencies" >&6; }
22229            if test "$enable_proxy" = "no" ; then
22230                              enable_proxy_fdpass=no
22231                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_fdpass\"" >&5
22232$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_fdpass\"" >&2;}
22233                            elif test "$enable_proxy_fdpass" = "static" && test "$enable_proxy" != "static" ; then
22234                              enable_proxy_fdpass=no
22235                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_fdpass statically if mod_proxy is built shared\"" >&5
22236$as_echo "$as_me: WARNING: \"cannot build mod_proxy_fdpass statically if mod_proxy is built shared\"" >&2;}
22237                            else
22238
22239  ac_fn_c_check_decl "$LINENO" "CMSG_DATA" "ac_cv_have_decl_CMSG_DATA" "
22240    #include <sys/types.h>
22241    #include <sys/socket.h>
22242
22243"
22244if test "x$ac_cv_have_decl_CMSG_DATA" = xyes; then :
22245
22246fi
22247
22248  if test $ac_cv_have_decl_CMSG_DATA = "no"; then
22249    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system does not support CMSG_DATA." >&5
22250$as_echo "$as_me: WARNING: Your system does not support CMSG_DATA." >&2;}
22251    enable_proxy_fdpass=no
22252  fi
22253
22254            fi
22255            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fdpass" >&5
22256$as_echo_n "checking whether to enable mod_proxy_fdpass... " >&6; }
22257            if test "$enable_proxy_fdpass" = "no"; then
22258              if test "$_apmod_required" = "no"; then
22259                _apmod_extra_msg=" (disabled)"
22260              else
22261                as_fn_error $? "mod_proxy_fdpass has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22262              fi
22263            fi
22264  fi
22265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_fdpass$_apmod_extra_msg" >&5
22266$as_echo "$enable_proxy_fdpass$_apmod_extra_msg" >&6; }
22267  if test "$enable_proxy_fdpass" != "no"; then
22268    case "$enable_proxy_fdpass" in
22269    static*)
22270      MODLIST="$MODLIST proxy_fdpass"
22271      if test "proxy_fdpass" = "so"; then
22272          sharedobjs=yes
22273      fi
22274      shared="";;
22275    *)
22276      enable_proxy_fdpass=`echo $enable_proxy_fdpass|sed 's/shared,*//'`
22277      sharedobjs=yes
22278      shared=yes
22279      DSO_MODULES="$DSO_MODULES proxy_fdpass"
22280      if test "" = "yes" ; then
22281        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_fdpass"
22282      fi
22283      ;;
22284    esac
22285
22286
22287  if test -z "$proxy_fdpass_objs"; then
22288    objects="mod_proxy_fdpass.lo"
22289  else
22290    objects="$proxy_fdpass_objs"
22291  fi
22292
22293  if test -z "$module_standalone"; then
22294    if test -z "$shared"; then
22295      # The filename of a convenience library must have a "lib" prefix:
22296      libname="libmod_proxy_fdpass.la"
22297      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22298      modpath_static="$modpath_static $libname"
22299      cat >>$modpath_current/modules.mk<<EOF
22300$libname: $objects
22301	\$(MOD_LINK) $objects \$(MOD_PROXY_FDPASS_LDADD)
22302EOF
22303      if test ! -z "\$(MOD_PROXY_FDPASS_LDADD)"; then
22304
22305  if test "x$AP_LIBS" = "x"; then
22306    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_FDPASS_LDADD)\""
22307    AP_LIBS="\$(MOD_PROXY_FDPASS_LDADD)"
22308  else
22309    apr_addto_bugger="\$(MOD_PROXY_FDPASS_LDADD)"
22310    for i in $apr_addto_bugger; do
22311      apr_addto_duplicate="0"
22312      for j in $AP_LIBS; do
22313        if test "x$i" = "x$j"; then
22314          apr_addto_duplicate="1"
22315          break
22316        fi
22317      done
22318      if test $apr_addto_duplicate = "0"; then
22319        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22320        AP_LIBS="$AP_LIBS $i"
22321      fi
22322    done
22323  fi
22324
22325      fi
22326    else
22327      apache_need_shared=yes
22328      libname="mod_proxy_fdpass.la"
22329      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22330      modpath_shared="$modpath_shared $libname"
22331      cat >>$modpath_current/modules.mk<<EOF
22332$libname: $shobjects
22333	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FDPASS_LDADD)
22334EOF
22335    fi
22336  fi
22337
22338
22339  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FDPASS_LDADD"
22340
22341
22342
22343  fi
22344
22345
22346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_wstunnel" >&5
22347$as_echo_n "checking whether to enable mod_proxy_wstunnel... " >&6; }
22348    # Check whether --enable-proxy-wstunnel was given.
22349if test "${enable_proxy_wstunnel+set}" = set; then :
22350  enableval=$enable_proxy_wstunnel; force_proxy_wstunnel=$enableval
22351else
22352  enable_proxy_wstunnel=$proxy_mods_enable
22353fi
22354
22355    _apmod_extra_msg=""
22356        case "$enable_proxy_wstunnel" in
22357    yes|static|shared)
22358      _apmod_required="yes"
22359      ;;
22360    *)
22361      case "$module_selection" in
22362      reallyall|all|most)
22363        _apmod_required="no"
22364        ;;
22365      *)
22366        _apmod_required="yes"
22367        ;;
22368      esac
22369  esac
22370  if test "$enable_proxy_wstunnel" = "static"; then
22371    enable_proxy_wstunnel=static
22372  elif test "$enable_proxy_wstunnel" = "yes"; then
22373    enable_proxy_wstunnel=$module_default
22374  elif test "$enable_proxy_wstunnel" = "most"; then
22375    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22376            "$module_selection" = "reallyall"
22377    then
22378      enable_proxy_wstunnel=$module_default
22379    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22380      enable_proxy_wstunnel=no
22381    fi
22382    _apmod_extra_msg=" ($module_selection)"
22383  elif test "$enable_proxy_wstunnel" = "maybe-all"; then
22384    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22385    then
22386      enable_proxy_wstunnel=$module_default
22387      _apmod_extra_msg=" ($module_selection)"
22388    else
22389      enable_proxy_wstunnel=no
22390    fi
22391  elif test "$enable_proxy_wstunnel" = "no" -a "$module_selection" = "reallyall" -a \
22392            "$force_proxy_wstunnel" != "no" ; then
22393      enable_proxy_wstunnel=$module_default
22394      _apmod_extra_msg=" ($module_selection)"
22395  fi
22396  if test "$enable_proxy_wstunnel" != "no"; then
22397            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22398$as_echo "checking dependencies" >&6; }
22399            if test "$enable_proxy" = "no" ; then
22400                              enable_proxy_wstunnel=no
22401                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_wstunnel\"" >&5
22402$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_wstunnel\"" >&2;}
22403                            elif test "$enable_proxy_wstunnel" = "static" && test "$enable_proxy" != "static" ; then
22404                              enable_proxy_wstunnel=no
22405                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_wstunnel statically if mod_proxy is built shared\"" >&5
22406$as_echo "$as_me: WARNING: \"cannot build mod_proxy_wstunnel statically if mod_proxy is built shared\"" >&2;}
22407                            else
22408            :
22409            fi
22410            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_wstunnel" >&5
22411$as_echo_n "checking whether to enable mod_proxy_wstunnel... " >&6; }
22412            if test "$enable_proxy_wstunnel" = "no"; then
22413              if test "$_apmod_required" = "no"; then
22414                _apmod_extra_msg=" (disabled)"
22415              else
22416                as_fn_error $? "mod_proxy_wstunnel has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22417              fi
22418            fi
22419  fi
22420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_wstunnel$_apmod_extra_msg" >&5
22421$as_echo "$enable_proxy_wstunnel$_apmod_extra_msg" >&6; }
22422  if test "$enable_proxy_wstunnel" != "no"; then
22423    case "$enable_proxy_wstunnel" in
22424    static*)
22425      MODLIST="$MODLIST proxy_wstunnel"
22426      if test "proxy_wstunnel" = "so"; then
22427          sharedobjs=yes
22428      fi
22429      shared="";;
22430    *)
22431      enable_proxy_wstunnel=`echo $enable_proxy_wstunnel|sed 's/shared,*//'`
22432      sharedobjs=yes
22433      shared=yes
22434      DSO_MODULES="$DSO_MODULES proxy_wstunnel"
22435      if test "$proxy_mods_enable" = "yes" ; then
22436        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_wstunnel"
22437      fi
22438      ;;
22439    esac
22440
22441
22442  if test -z "$proxy_wstunnel_objs"; then
22443    objects="mod_proxy_wstunnel.lo"
22444  else
22445    objects="$proxy_wstunnel_objs"
22446  fi
22447
22448  if test -z "$module_standalone"; then
22449    if test -z "$shared"; then
22450      # The filename of a convenience library must have a "lib" prefix:
22451      libname="libmod_proxy_wstunnel.la"
22452      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22453      modpath_static="$modpath_static $libname"
22454      cat >>$modpath_current/modules.mk<<EOF
22455$libname: $objects
22456	\$(MOD_LINK) $objects \$(MOD_PROXY_WSTUNNEL_LDADD)
22457EOF
22458      if test ! -z "\$(MOD_PROXY_WSTUNNEL_LDADD)"; then
22459
22460  if test "x$AP_LIBS" = "x"; then
22461    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_WSTUNNEL_LDADD)\""
22462    AP_LIBS="\$(MOD_PROXY_WSTUNNEL_LDADD)"
22463  else
22464    apr_addto_bugger="\$(MOD_PROXY_WSTUNNEL_LDADD)"
22465    for i in $apr_addto_bugger; do
22466      apr_addto_duplicate="0"
22467      for j in $AP_LIBS; do
22468        if test "x$i" = "x$j"; then
22469          apr_addto_duplicate="1"
22470          break
22471        fi
22472      done
22473      if test $apr_addto_duplicate = "0"; then
22474        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22475        AP_LIBS="$AP_LIBS $i"
22476      fi
22477    done
22478  fi
22479
22480      fi
22481    else
22482      apache_need_shared=yes
22483      libname="mod_proxy_wstunnel.la"
22484      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22485      modpath_shared="$modpath_shared $libname"
22486      cat >>$modpath_current/modules.mk<<EOF
22487$libname: $shobjects
22488	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_WSTUNNEL_LDADD)
22489EOF
22490    fi
22491  fi
22492
22493
22494  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_WSTUNNEL_LDADD"
22495
22496
22497
22498  fi
22499
22500
22501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ajp" >&5
22502$as_echo_n "checking whether to enable mod_proxy_ajp... " >&6; }
22503    # Check whether --enable-proxy-ajp was given.
22504if test "${enable_proxy_ajp+set}" = set; then :
22505  enableval=$enable_proxy_ajp; force_proxy_ajp=$enableval
22506else
22507  enable_proxy_ajp=$proxy_mods_enable
22508fi
22509
22510    _apmod_extra_msg=""
22511        case "$enable_proxy_ajp" in
22512    yes|static|shared)
22513      _apmod_required="yes"
22514      ;;
22515    *)
22516      case "$module_selection" in
22517      reallyall|all|most)
22518        _apmod_required="no"
22519        ;;
22520      *)
22521        _apmod_required="yes"
22522        ;;
22523      esac
22524  esac
22525  if test "$enable_proxy_ajp" = "static"; then
22526    enable_proxy_ajp=static
22527  elif test "$enable_proxy_ajp" = "yes"; then
22528    enable_proxy_ajp=$module_default
22529  elif test "$enable_proxy_ajp" = "most"; then
22530    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22531            "$module_selection" = "reallyall"
22532    then
22533      enable_proxy_ajp=$module_default
22534    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22535      enable_proxy_ajp=no
22536    fi
22537    _apmod_extra_msg=" ($module_selection)"
22538  elif test "$enable_proxy_ajp" = "maybe-all"; then
22539    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22540    then
22541      enable_proxy_ajp=$module_default
22542      _apmod_extra_msg=" ($module_selection)"
22543    else
22544      enable_proxy_ajp=no
22545    fi
22546  elif test "$enable_proxy_ajp" = "no" -a "$module_selection" = "reallyall" -a \
22547            "$force_proxy_ajp" != "no" ; then
22548      enable_proxy_ajp=$module_default
22549      _apmod_extra_msg=" ($module_selection)"
22550  fi
22551  if test "$enable_proxy_ajp" != "no"; then
22552            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22553$as_echo "checking dependencies" >&6; }
22554            if test "$enable_proxy" = "no" ; then
22555                              enable_proxy_ajp=no
22556                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_ajp\"" >&5
22557$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_ajp\"" >&2;}
22558                            elif test "$enable_proxy_ajp" = "static" && test "$enable_proxy" != "static" ; then
22559                              enable_proxy_ajp=no
22560                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_ajp statically if mod_proxy is built shared\"" >&5
22561$as_echo "$as_me: WARNING: \"cannot build mod_proxy_ajp statically if mod_proxy is built shared\"" >&2;}
22562                            else
22563            :
22564            fi
22565            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ajp" >&5
22566$as_echo_n "checking whether to enable mod_proxy_ajp... " >&6; }
22567            if test "$enable_proxy_ajp" = "no"; then
22568              if test "$_apmod_required" = "no"; then
22569                _apmod_extra_msg=" (disabled)"
22570              else
22571                as_fn_error $? "mod_proxy_ajp has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22572              fi
22573            fi
22574  fi
22575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_ajp$_apmod_extra_msg" >&5
22576$as_echo "$enable_proxy_ajp$_apmod_extra_msg" >&6; }
22577  if test "$enable_proxy_ajp" != "no"; then
22578    case "$enable_proxy_ajp" in
22579    static*)
22580      MODLIST="$MODLIST proxy_ajp"
22581      if test "proxy_ajp" = "so"; then
22582          sharedobjs=yes
22583      fi
22584      shared="";;
22585    *)
22586      enable_proxy_ajp=`echo $enable_proxy_ajp|sed 's/shared,*//'`
22587      sharedobjs=yes
22588      shared=yes
22589      DSO_MODULES="$DSO_MODULES proxy_ajp"
22590      if test "$proxy_mods_enable" = "yes" ; then
22591        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_ajp"
22592      fi
22593      ;;
22594    esac
22595
22596
22597  if test -z "$proxy_ajp_objs"; then
22598    objects="mod_proxy_ajp.lo"
22599  else
22600    objects="$proxy_ajp_objs"
22601  fi
22602
22603  if test -z "$module_standalone"; then
22604    if test -z "$shared"; then
22605      # The filename of a convenience library must have a "lib" prefix:
22606      libname="libmod_proxy_ajp.la"
22607      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22608      modpath_static="$modpath_static $libname"
22609      cat >>$modpath_current/modules.mk<<EOF
22610$libname: $objects
22611	\$(MOD_LINK) $objects \$(MOD_PROXY_AJP_LDADD)
22612EOF
22613      if test ! -z "\$(MOD_PROXY_AJP_LDADD)"; then
22614
22615  if test "x$AP_LIBS" = "x"; then
22616    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_AJP_LDADD)\""
22617    AP_LIBS="\$(MOD_PROXY_AJP_LDADD)"
22618  else
22619    apr_addto_bugger="\$(MOD_PROXY_AJP_LDADD)"
22620    for i in $apr_addto_bugger; do
22621      apr_addto_duplicate="0"
22622      for j in $AP_LIBS; do
22623        if test "x$i" = "x$j"; then
22624          apr_addto_duplicate="1"
22625          break
22626        fi
22627      done
22628      if test $apr_addto_duplicate = "0"; then
22629        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22630        AP_LIBS="$AP_LIBS $i"
22631      fi
22632    done
22633  fi
22634
22635      fi
22636    else
22637      apache_need_shared=yes
22638      libname="mod_proxy_ajp.la"
22639      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22640      modpath_shared="$modpath_shared $libname"
22641      cat >>$modpath_current/modules.mk<<EOF
22642$libname: $shobjects
22643	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_AJP_LDADD)
22644EOF
22645    fi
22646  fi
22647
22648
22649  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_AJP_LDADD"
22650
22651
22652
22653  fi
22654
22655
22656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_balancer" >&5
22657$as_echo_n "checking whether to enable mod_proxy_balancer... " >&6; }
22658    # Check whether --enable-proxy-balancer was given.
22659if test "${enable_proxy_balancer+set}" = set; then :
22660  enableval=$enable_proxy_balancer; force_proxy_balancer=$enableval
22661else
22662  enable_proxy_balancer=$proxy_mods_enable
22663fi
22664
22665    _apmod_extra_msg=""
22666        case "$enable_proxy_balancer" in
22667    yes|static|shared)
22668      _apmod_required="yes"
22669      ;;
22670    *)
22671      case "$module_selection" in
22672      reallyall|all|most)
22673        _apmod_required="no"
22674        ;;
22675      *)
22676        _apmod_required="yes"
22677        ;;
22678      esac
22679  esac
22680  if test "$enable_proxy_balancer" = "static"; then
22681    enable_proxy_balancer=static
22682  elif test "$enable_proxy_balancer" = "yes"; then
22683    enable_proxy_balancer=$module_default
22684  elif test "$enable_proxy_balancer" = "most"; then
22685    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22686            "$module_selection" = "reallyall"
22687    then
22688      enable_proxy_balancer=$module_default
22689    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22690      enable_proxy_balancer=no
22691    fi
22692    _apmod_extra_msg=" ($module_selection)"
22693  elif test "$enable_proxy_balancer" = "maybe-all"; then
22694    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22695    then
22696      enable_proxy_balancer=$module_default
22697      _apmod_extra_msg=" ($module_selection)"
22698    else
22699      enable_proxy_balancer=no
22700    fi
22701  elif test "$enable_proxy_balancer" = "no" -a "$module_selection" = "reallyall" -a \
22702            "$force_proxy_balancer" != "no" ; then
22703      enable_proxy_balancer=$module_default
22704      _apmod_extra_msg=" ($module_selection)"
22705  fi
22706  if test "$enable_proxy_balancer" != "no"; then
22707            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22708$as_echo "checking dependencies" >&6; }
22709            if test "$enable_proxy" = "no" ; then
22710                              enable_proxy_balancer=no
22711                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_balancer\"" >&5
22712$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_balancer\"" >&2;}
22713                            elif test "$enable_proxy_balancer" = "static" && test "$enable_proxy" != "static" ; then
22714                              enable_proxy_balancer=no
22715                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_balancer statically if mod_proxy is built shared\"" >&5
22716$as_echo "$as_me: WARNING: \"cannot build mod_proxy_balancer statically if mod_proxy is built shared\"" >&2;}
22717                            else
22718            :
22719            fi
22720            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_balancer" >&5
22721$as_echo_n "checking whether to enable mod_proxy_balancer... " >&6; }
22722            if test "$enable_proxy_balancer" = "no"; then
22723              if test "$_apmod_required" = "no"; then
22724                _apmod_extra_msg=" (disabled)"
22725              else
22726                as_fn_error $? "mod_proxy_balancer has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22727              fi
22728            fi
22729  fi
22730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_balancer$_apmod_extra_msg" >&5
22731$as_echo "$enable_proxy_balancer$_apmod_extra_msg" >&6; }
22732  if test "$enable_proxy_balancer" != "no"; then
22733    case "$enable_proxy_balancer" in
22734    static*)
22735      MODLIST="$MODLIST proxy_balancer"
22736      if test "proxy_balancer" = "so"; then
22737          sharedobjs=yes
22738      fi
22739      shared="";;
22740    *)
22741      enable_proxy_balancer=`echo $enable_proxy_balancer|sed 's/shared,*//'`
22742      sharedobjs=yes
22743      shared=yes
22744      DSO_MODULES="$DSO_MODULES proxy_balancer"
22745      if test "$proxy_mods_enable" = "yes" ; then
22746        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_balancer"
22747      fi
22748      ;;
22749    esac
22750
22751
22752  if test -z "$proxy_balancer_objs"; then
22753    objects="mod_proxy_balancer.lo"
22754  else
22755    objects="$proxy_balancer_objs"
22756  fi
22757
22758  if test -z "$module_standalone"; then
22759    if test -z "$shared"; then
22760      # The filename of a convenience library must have a "lib" prefix:
22761      libname="libmod_proxy_balancer.la"
22762      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22763      modpath_static="$modpath_static $libname"
22764      cat >>$modpath_current/modules.mk<<EOF
22765$libname: $objects
22766	\$(MOD_LINK) $objects \$(MOD_PROXY_BALANCER_LDADD)
22767EOF
22768      if test ! -z "\$(MOD_PROXY_BALANCER_LDADD)"; then
22769
22770  if test "x$AP_LIBS" = "x"; then
22771    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_BALANCER_LDADD)\""
22772    AP_LIBS="\$(MOD_PROXY_BALANCER_LDADD)"
22773  else
22774    apr_addto_bugger="\$(MOD_PROXY_BALANCER_LDADD)"
22775    for i in $apr_addto_bugger; do
22776      apr_addto_duplicate="0"
22777      for j in $AP_LIBS; do
22778        if test "x$i" = "x$j"; then
22779          apr_addto_duplicate="1"
22780          break
22781        fi
22782      done
22783      if test $apr_addto_duplicate = "0"; then
22784        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22785        AP_LIBS="$AP_LIBS $i"
22786      fi
22787    done
22788  fi
22789
22790      fi
22791    else
22792      apache_need_shared=yes
22793      libname="mod_proxy_balancer.la"
22794      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22795      modpath_shared="$modpath_shared $libname"
22796      cat >>$modpath_current/modules.mk<<EOF
22797$libname: $shobjects
22798	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_BALANCER_LDADD)
22799EOF
22800    fi
22801  fi
22802
22803
22804  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_BALANCER_LDADD"
22805
22806
22807
22808  fi
22809
22810
22811
22812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_express" >&5
22813$as_echo_n "checking whether to enable mod_proxy_express... " >&6; }
22814    # Check whether --enable-proxy-express was given.
22815if test "${enable_proxy_express+set}" = set; then :
22816  enableval=$enable_proxy_express; force_proxy_express=$enableval
22817else
22818  enable_proxy_express=$proxy_mods_enable
22819fi
22820
22821    _apmod_extra_msg=""
22822        case "$enable_proxy_express" in
22823    yes|static|shared)
22824      _apmod_required="yes"
22825      ;;
22826    *)
22827      case "$module_selection" in
22828      reallyall|all|most)
22829        _apmod_required="no"
22830        ;;
22831      *)
22832        _apmod_required="yes"
22833        ;;
22834      esac
22835  esac
22836  if test "$enable_proxy_express" = "static"; then
22837    enable_proxy_express=static
22838  elif test "$enable_proxy_express" = "yes"; then
22839    enable_proxy_express=$module_default
22840  elif test "$enable_proxy_express" = "most"; then
22841    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
22842            "$module_selection" = "reallyall"
22843    then
22844      enable_proxy_express=$module_default
22845    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
22846      enable_proxy_express=no
22847    fi
22848    _apmod_extra_msg=" ($module_selection)"
22849  elif test "$enable_proxy_express" = "maybe-all"; then
22850    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
22851    then
22852      enable_proxy_express=$module_default
22853      _apmod_extra_msg=" ($module_selection)"
22854    else
22855      enable_proxy_express=no
22856    fi
22857  elif test "$enable_proxy_express" = "no" -a "$module_selection" = "reallyall" -a \
22858            "$force_proxy_express" != "no" ; then
22859      enable_proxy_express=$module_default
22860      _apmod_extra_msg=" ($module_selection)"
22861  fi
22862  if test "$enable_proxy_express" != "no"; then
22863            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
22864$as_echo "checking dependencies" >&6; }
22865            if test "$enable_proxy" = "no" ; then
22866                              enable_proxy_express=no
22867                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_express\"" >&5
22868$as_echo "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_express\"" >&2;}
22869                            elif test "$enable_proxy_express" = "static" && test "$enable_proxy" != "static" ; then
22870                              enable_proxy_express=no
22871                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_proxy_express statically if mod_proxy is built shared\"" >&5
22872$as_echo "$as_me: WARNING: \"cannot build mod_proxy_express statically if mod_proxy is built shared\"" >&2;}
22873                            else
22874            :
22875            fi
22876            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_express" >&5
22877$as_echo_n "checking whether to enable mod_proxy_express... " >&6; }
22878            if test "$enable_proxy_express" = "no"; then
22879              if test "$_apmod_required" = "no"; then
22880                _apmod_extra_msg=" (disabled)"
22881              else
22882                as_fn_error $? "mod_proxy_express has been requested but can not be built due to prerequisite failures" "$LINENO" 5
22883              fi
22884            fi
22885  fi
22886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_express$_apmod_extra_msg" >&5
22887$as_echo "$enable_proxy_express$_apmod_extra_msg" >&6; }
22888  if test "$enable_proxy_express" != "no"; then
22889    case "$enable_proxy_express" in
22890    static*)
22891      MODLIST="$MODLIST proxy_express"
22892      if test "proxy_express" = "so"; then
22893          sharedobjs=yes
22894      fi
22895      shared="";;
22896    *)
22897      enable_proxy_express=`echo $enable_proxy_express|sed 's/shared,*//'`
22898      sharedobjs=yes
22899      shared=yes
22900      DSO_MODULES="$DSO_MODULES proxy_express"
22901      if test "$proxy_mods_enable" = "yes" ; then
22902        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_express"
22903      fi
22904      ;;
22905    esac
22906
22907
22908  if test -z ""; then
22909    objects="mod_proxy_express.lo"
22910  else
22911    objects=""
22912  fi
22913
22914  if test -z "$module_standalone"; then
22915    if test -z "$shared"; then
22916      # The filename of a convenience library must have a "lib" prefix:
22917      libname="libmod_proxy_express.la"
22918      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
22919      modpath_static="$modpath_static $libname"
22920      cat >>$modpath_current/modules.mk<<EOF
22921$libname: $objects
22922	\$(MOD_LINK) $objects \$(MOD_PROXY_EXPRESS_LDADD)
22923EOF
22924      if test ! -z "\$(MOD_PROXY_EXPRESS_LDADD)"; then
22925
22926  if test "x$AP_LIBS" = "x"; then
22927    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_EXPRESS_LDADD)\""
22928    AP_LIBS="\$(MOD_PROXY_EXPRESS_LDADD)"
22929  else
22930    apr_addto_bugger="\$(MOD_PROXY_EXPRESS_LDADD)"
22931    for i in $apr_addto_bugger; do
22932      apr_addto_duplicate="0"
22933      for j in $AP_LIBS; do
22934        if test "x$i" = "x$j"; then
22935          apr_addto_duplicate="1"
22936          break
22937        fi
22938      done
22939      if test $apr_addto_duplicate = "0"; then
22940        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
22941        AP_LIBS="$AP_LIBS $i"
22942      fi
22943    done
22944  fi
22945
22946      fi
22947    else
22948      apache_need_shared=yes
22949      libname="mod_proxy_express.la"
22950      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
22951      modpath_shared="$modpath_shared $libname"
22952      cat >>$modpath_current/modules.mk<<EOF
22953$libname: $shobjects
22954	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_EXPRESS_LDADD)
22955EOF
22956    fi
22957  fi
22958
22959
22960  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_EXPRESS_LDADD"
22961
22962
22963
22964  fi
22965
22966
22967
22968  if test "x$INCLUDES" = "x"; then
22969    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
22970    INCLUDES="-I\$(top_srcdir)/$modpath_current"
22971  else
22972    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
22973    for i in $apr_addto_bugger; do
22974      apr_addto_duplicate="0"
22975      for j in $INCLUDES; do
22976        if test "x$i" = "x$j"; then
22977          apr_addto_duplicate="1"
22978          break
22979        fi
22980      done
22981      if test $apr_addto_duplicate = "0"; then
22982        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
22983        INCLUDES="$INCLUDES $i"
22984      fi
22985    done
22986  fi
22987
22988
22989
22990  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
22991  echo "static = $modpath_static" >> $modpath_current/modules.mk
22992  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
22993  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
22994    if eval val=\"\$MOD_$var\"; test -n "$val"; then
22995      echo "MOD_$var = $val" >> $modpath_current/modules.mk
22996    fi
22997  done
22998  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
22999    MODULE_DIRS="$MODULE_DIRS $current_dir"
23000  else
23001    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
23002  fi
23003
23004  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
23005
23006
23007
23008
23009
23010if test -z "$enable_session" ; then
23011  session_mods_enable=most
23012else
23013  session_mods_enable=$enable_session
23014fi
23015
23016
23017
23018
23019  current_dir=session
23020  modpath_current=modules/session
23021  modpath_static=
23022  modpath_shared=
23023  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
23024    eval MOD_$var=
23025  done
23026  test -d session || $srcdir/build/mkdir.sh $modpath_current
23027  > $modpath_current/modules.mk
23028
23029
23030session_cookie_objects='mod_session_cookie.lo'
23031session_crypto_objects='mod_session_crypto.lo'
23032session_dbd_objects='mod_session_dbd.lo'
23033
23034case "$host" in
23035  *os2*)
23036    # OS/2 DLLs must resolve all symbols at build time
23037    # and we need some from main session module
23038    session_cookie_objects="$session_cookie_objects mod_session.la"
23039    session_crypto_objects="$session_crypto_objects mod_session.la"
23040    session_dbd_objects="$session_dbd_objects mod_session.la"
23041    ;;
23042esac
23043
23044
23045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session" >&5
23046$as_echo_n "checking whether to enable mod_session... " >&6; }
23047    # Check whether --enable-session was given.
23048if test "${enable_session+set}" = set; then :
23049  enableval=$enable_session; force_session=$enableval
23050else
23051  enable_session=most
23052fi
23053
23054    _apmod_extra_msg=""
23055        case "$enable_session" in
23056    yes|static|shared)
23057      _apmod_required="yes"
23058      ;;
23059    *)
23060      case "$module_selection" in
23061      reallyall|all|most)
23062        _apmod_required="no"
23063        ;;
23064      *)
23065        _apmod_required="yes"
23066        ;;
23067      esac
23068  esac
23069  if test "$enable_session" = "static"; then
23070    enable_session=static
23071  elif test "$enable_session" = "yes"; then
23072    enable_session=$module_default
23073  elif test "$enable_session" = "most"; then
23074    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23075            "$module_selection" = "reallyall"
23076    then
23077      enable_session=$module_default
23078    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23079      enable_session=no
23080    fi
23081    _apmod_extra_msg=" ($module_selection)"
23082  elif test "$enable_session" = "maybe-all"; then
23083    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23084    then
23085      enable_session=$module_default
23086      _apmod_extra_msg=" ($module_selection)"
23087    else
23088      enable_session=no
23089    fi
23090  elif test "$enable_session" = "no" -a "$module_selection" = "reallyall" -a \
23091            "$force_session" != "no" ; then
23092      enable_session=$module_default
23093      _apmod_extra_msg=" ($module_selection)"
23094  fi
23095  if test "$enable_session" != "no"; then
23096            :
23097  fi
23098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_session$_apmod_extra_msg" >&5
23099$as_echo "$enable_session$_apmod_extra_msg" >&6; }
23100  if test "$enable_session" != "no"; then
23101    case "$enable_session" in
23102    static*)
23103      MODLIST="$MODLIST session"
23104      if test "session" = "so"; then
23105          sharedobjs=yes
23106      fi
23107      shared="";;
23108    *)
23109      enable_session=`echo $enable_session|sed 's/shared,*//'`
23110      sharedobjs=yes
23111      shared=yes
23112      DSO_MODULES="$DSO_MODULES session"
23113      if test "most" = "yes" ; then
23114        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session"
23115      fi
23116      ;;
23117    esac
23118
23119
23120  if test -z ""; then
23121    objects="mod_session.lo"
23122  else
23123    objects=""
23124  fi
23125
23126  if test -z "$module_standalone"; then
23127    if test -z "$shared"; then
23128      # The filename of a convenience library must have a "lib" prefix:
23129      libname="libmod_session.la"
23130      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23131      modpath_static="$modpath_static $libname"
23132      cat >>$modpath_current/modules.mk<<EOF
23133$libname: $objects
23134	\$(MOD_LINK) $objects \$(MOD_SESSION_LDADD)
23135EOF
23136      if test ! -z "\$(MOD_SESSION_LDADD)"; then
23137
23138  if test "x$AP_LIBS" = "x"; then
23139    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_LDADD)\""
23140    AP_LIBS="\$(MOD_SESSION_LDADD)"
23141  else
23142    apr_addto_bugger="\$(MOD_SESSION_LDADD)"
23143    for i in $apr_addto_bugger; do
23144      apr_addto_duplicate="0"
23145      for j in $AP_LIBS; do
23146        if test "x$i" = "x$j"; then
23147          apr_addto_duplicate="1"
23148          break
23149        fi
23150      done
23151      if test $apr_addto_duplicate = "0"; then
23152        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23153        AP_LIBS="$AP_LIBS $i"
23154      fi
23155    done
23156  fi
23157
23158      fi
23159    else
23160      apache_need_shared=yes
23161      libname="mod_session.la"
23162      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23163      modpath_shared="$modpath_shared $libname"
23164      cat >>$modpath_current/modules.mk<<EOF
23165$libname: $shobjects
23166	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_LDADD)
23167EOF
23168    fi
23169  fi
23170
23171
23172  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_LDADD"
23173
23174
23175
23176  fi
23177
23178
23179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_cookie" >&5
23180$as_echo_n "checking whether to enable mod_session_cookie... " >&6; }
23181    # Check whether --enable-session-cookie was given.
23182if test "${enable_session_cookie+set}" = set; then :
23183  enableval=$enable_session_cookie; force_session_cookie=$enableval
23184else
23185  enable_session_cookie=$session_mods_enable
23186fi
23187
23188    _apmod_extra_msg=""
23189        case "$enable_session_cookie" in
23190    yes|static|shared)
23191      _apmod_required="yes"
23192      ;;
23193    *)
23194      case "$module_selection" in
23195      reallyall|all|most)
23196        _apmod_required="no"
23197        ;;
23198      *)
23199        _apmod_required="yes"
23200        ;;
23201      esac
23202  esac
23203  if test "$enable_session_cookie" = "static"; then
23204    enable_session_cookie=static
23205  elif test "$enable_session_cookie" = "yes"; then
23206    enable_session_cookie=$module_default
23207  elif test "$enable_session_cookie" = "most"; then
23208    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23209            "$module_selection" = "reallyall"
23210    then
23211      enable_session_cookie=$module_default
23212    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23213      enable_session_cookie=no
23214    fi
23215    _apmod_extra_msg=" ($module_selection)"
23216  elif test "$enable_session_cookie" = "maybe-all"; then
23217    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23218    then
23219      enable_session_cookie=$module_default
23220      _apmod_extra_msg=" ($module_selection)"
23221    else
23222      enable_session_cookie=no
23223    fi
23224  elif test "$enable_session_cookie" = "no" -a "$module_selection" = "reallyall" -a \
23225            "$force_session_cookie" != "no" ; then
23226      enable_session_cookie=$module_default
23227      _apmod_extra_msg=" ($module_selection)"
23228  fi
23229  if test "$enable_session_cookie" != "no"; then
23230            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
23231$as_echo "checking dependencies" >&6; }
23232            if test "$enable_session" = "no" ; then
23233                              enable_session_cookie=no
23234                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_cookie\"" >&5
23235$as_echo "$as_me: WARNING: \"mod_session is disabled but required for mod_session_cookie\"" >&2;}
23236                            elif test "$enable_session_cookie" = "static" && test "$enable_session" != "static" ; then
23237                              enable_session_cookie=no
23238                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_session_cookie statically if mod_session is built shared\"" >&5
23239$as_echo "$as_me: WARNING: \"cannot build mod_session_cookie statically if mod_session is built shared\"" >&2;}
23240                            else
23241            :
23242            fi
23243            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_cookie" >&5
23244$as_echo_n "checking whether to enable mod_session_cookie... " >&6; }
23245            if test "$enable_session_cookie" = "no"; then
23246              if test "$_apmod_required" = "no"; then
23247                _apmod_extra_msg=" (disabled)"
23248              else
23249                as_fn_error $? "mod_session_cookie has been requested but can not be built due to prerequisite failures" "$LINENO" 5
23250              fi
23251            fi
23252  fi
23253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_session_cookie$_apmod_extra_msg" >&5
23254$as_echo "$enable_session_cookie$_apmod_extra_msg" >&6; }
23255  if test "$enable_session_cookie" != "no"; then
23256    case "$enable_session_cookie" in
23257    static*)
23258      MODLIST="$MODLIST session_cookie"
23259      if test "session_cookie" = "so"; then
23260          sharedobjs=yes
23261      fi
23262      shared="";;
23263    *)
23264      enable_session_cookie=`echo $enable_session_cookie|sed 's/shared,*//'`
23265      sharedobjs=yes
23266      shared=yes
23267      DSO_MODULES="$DSO_MODULES session_cookie"
23268      if test "$session_mods_enable" = "yes" ; then
23269        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_cookie"
23270      fi
23271      ;;
23272    esac
23273
23274
23275  if test -z "$session_cookie_objects"; then
23276    objects="mod_session_cookie.lo"
23277  else
23278    objects="$session_cookie_objects"
23279  fi
23280
23281  if test -z "$module_standalone"; then
23282    if test -z "$shared"; then
23283      # The filename of a convenience library must have a "lib" prefix:
23284      libname="libmod_session_cookie.la"
23285      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23286      modpath_static="$modpath_static $libname"
23287      cat >>$modpath_current/modules.mk<<EOF
23288$libname: $objects
23289	\$(MOD_LINK) $objects \$(MOD_SESSION_COOKIE_LDADD)
23290EOF
23291      if test ! -z "\$(MOD_SESSION_COOKIE_LDADD)"; then
23292
23293  if test "x$AP_LIBS" = "x"; then
23294    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_COOKIE_LDADD)\""
23295    AP_LIBS="\$(MOD_SESSION_COOKIE_LDADD)"
23296  else
23297    apr_addto_bugger="\$(MOD_SESSION_COOKIE_LDADD)"
23298    for i in $apr_addto_bugger; do
23299      apr_addto_duplicate="0"
23300      for j in $AP_LIBS; do
23301        if test "x$i" = "x$j"; then
23302          apr_addto_duplicate="1"
23303          break
23304        fi
23305      done
23306      if test $apr_addto_duplicate = "0"; then
23307        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23308        AP_LIBS="$AP_LIBS $i"
23309      fi
23310    done
23311  fi
23312
23313      fi
23314    else
23315      apache_need_shared=yes
23316      libname="mod_session_cookie.la"
23317      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23318      modpath_shared="$modpath_shared $libname"
23319      cat >>$modpath_current/modules.mk<<EOF
23320$libname: $shobjects
23321	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_COOKIE_LDADD)
23322EOF
23323    fi
23324  fi
23325
23326
23327  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_COOKIE_LDADD"
23328
23329
23330
23331  fi
23332
23333
23334if test "$enable_session_crypto" != ""; then
23335  session_mods_enable_crypto=$enable_session_crypto
23336else
23337  session_mods_enable_crypto=$session_mods_enable
23338fi
23339if test "$session_mods_enable_crypto" != "no"; then
23340  saved_CPPFLAGS="$CPPFLAGS"
23341  CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
23342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343/* end confdefs.h.  */
23344#include <apr_crypto.h>
23345int
23346main ()
23347{
23348
23349#if APU_HAVE_CRYPTO == 0
23350#error no crypto support
23351#endif
23352
23353  ;
23354  return 0;
23355}
23356_ACEOF
23357if ac_fn_c_try_compile "$LINENO"; then :
23358  ap_HAVE_APR_CRYPTO="yes"
23359else
23360  ap_HAVE_APR_CRYPTO="no"
23361fi
23362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363  CPPFLAGS="$saved_CPPFLAGS"
23364  if test $ap_HAVE_APR_CRYPTO = "no"; then
23365    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your APR does not include SSL/EVP support. To enable it: configure --with-crypto" >&5
23366$as_echo "$as_me: WARNING: Your APR does not include SSL/EVP support. To enable it: configure --with-crypto" >&2;}
23367    if test "$enable_session_crypto" != "" -a "$enable_session_crypto" != "no"; then
23368        as_fn_error $? "mod_session_crypto cannot be enabled" "$LINENO" 5
23369    fi
23370    session_mods_enable_crypto="no"
23371  fi
23372fi
23373
23374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_crypto" >&5
23375$as_echo_n "checking whether to enable mod_session_crypto... " >&6; }
23376    # Check whether --enable-session-crypto was given.
23377if test "${enable_session_crypto+set}" = set; then :
23378  enableval=$enable_session_crypto; force_session_crypto=$enableval
23379else
23380  enable_session_crypto=$session_mods_enable_crypto
23381fi
23382
23383    _apmod_extra_msg=""
23384        case "$enable_session_crypto" in
23385    yes|static|shared)
23386      _apmod_required="yes"
23387      ;;
23388    *)
23389      case "$module_selection" in
23390      reallyall|all|most)
23391        _apmod_required="no"
23392        ;;
23393      *)
23394        _apmod_required="yes"
23395        ;;
23396      esac
23397  esac
23398  if test "$enable_session_crypto" = "static"; then
23399    enable_session_crypto=static
23400  elif test "$enable_session_crypto" = "yes"; then
23401    enable_session_crypto=$module_default
23402  elif test "$enable_session_crypto" = "most"; then
23403    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23404            "$module_selection" = "reallyall"
23405    then
23406      enable_session_crypto=$module_default
23407    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23408      enable_session_crypto=no
23409    fi
23410    _apmod_extra_msg=" ($module_selection)"
23411  elif test "$enable_session_crypto" = "maybe-all"; then
23412    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23413    then
23414      enable_session_crypto=$module_default
23415      _apmod_extra_msg=" ($module_selection)"
23416    else
23417      enable_session_crypto=no
23418    fi
23419  elif test "$enable_session_crypto" = "no" -a "$module_selection" = "reallyall" -a \
23420            "$force_session_crypto" != "no" ; then
23421      enable_session_crypto=$module_default
23422      _apmod_extra_msg=" ($module_selection)"
23423  fi
23424  if test "$enable_session_crypto" != "no"; then
23425            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
23426$as_echo "checking dependencies" >&6; }
23427            if test "$enable_session" = "no" ; then
23428                              enable_session_crypto=no
23429                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_crypto\"" >&5
23430$as_echo "$as_me: WARNING: \"mod_session is disabled but required for mod_session_crypto\"" >&2;}
23431                            elif test "$enable_session_crypto" = "static" && test "$enable_session" != "static" ; then
23432                              enable_session_crypto=no
23433                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_session_crypto statically if mod_session is built shared\"" >&5
23434$as_echo "$as_me: WARNING: \"cannot build mod_session_crypto statically if mod_session is built shared\"" >&2;}
23435                            else
23436
23437if test "$session_mods_enable_crypto" = "no" ; then
23438  enable_session_crypto=no
23439fi
23440
23441            fi
23442            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_crypto" >&5
23443$as_echo_n "checking whether to enable mod_session_crypto... " >&6; }
23444            if test "$enable_session_crypto" = "no"; then
23445              if test "$_apmod_required" = "no"; then
23446                _apmod_extra_msg=" (disabled)"
23447              else
23448                as_fn_error $? "mod_session_crypto has been requested but can not be built due to prerequisite failures" "$LINENO" 5
23449              fi
23450            fi
23451  fi
23452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_session_crypto$_apmod_extra_msg" >&5
23453$as_echo "$enable_session_crypto$_apmod_extra_msg" >&6; }
23454  if test "$enable_session_crypto" != "no"; then
23455    case "$enable_session_crypto" in
23456    static*)
23457      MODLIST="$MODLIST session_crypto"
23458      if test "session_crypto" = "so"; then
23459          sharedobjs=yes
23460      fi
23461      shared="";;
23462    *)
23463      enable_session_crypto=`echo $enable_session_crypto|sed 's/shared,*//'`
23464      sharedobjs=yes
23465      shared=yes
23466      DSO_MODULES="$DSO_MODULES session_crypto"
23467      if test "$session_mods_enable_crypto" = "yes" ; then
23468        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_crypto"
23469      fi
23470      ;;
23471    esac
23472
23473
23474  if test -z "$session_crypto_objects"; then
23475    objects="mod_session_crypto.lo"
23476  else
23477    objects="$session_crypto_objects"
23478  fi
23479
23480  if test -z "$module_standalone"; then
23481    if test -z "$shared"; then
23482      # The filename of a convenience library must have a "lib" prefix:
23483      libname="libmod_session_crypto.la"
23484      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23485      modpath_static="$modpath_static $libname"
23486      cat >>$modpath_current/modules.mk<<EOF
23487$libname: $objects
23488	\$(MOD_LINK) $objects \$(MOD_SESSION_CRYPTO_LDADD)
23489EOF
23490      if test ! -z "\$(MOD_SESSION_CRYPTO_LDADD)"; then
23491
23492  if test "x$AP_LIBS" = "x"; then
23493    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_CRYPTO_LDADD)\""
23494    AP_LIBS="\$(MOD_SESSION_CRYPTO_LDADD)"
23495  else
23496    apr_addto_bugger="\$(MOD_SESSION_CRYPTO_LDADD)"
23497    for i in $apr_addto_bugger; do
23498      apr_addto_duplicate="0"
23499      for j in $AP_LIBS; do
23500        if test "x$i" = "x$j"; then
23501          apr_addto_duplicate="1"
23502          break
23503        fi
23504      done
23505      if test $apr_addto_duplicate = "0"; then
23506        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23507        AP_LIBS="$AP_LIBS $i"
23508      fi
23509    done
23510  fi
23511
23512      fi
23513    else
23514      apache_need_shared=yes
23515      libname="mod_session_crypto.la"
23516      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23517      modpath_shared="$modpath_shared $libname"
23518      cat >>$modpath_current/modules.mk<<EOF
23519$libname: $shobjects
23520	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_CRYPTO_LDADD)
23521EOF
23522    fi
23523  fi
23524
23525
23526  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_CRYPTO_LDADD"
23527
23528
23529
23530  fi
23531
23532
23533
23534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_dbd" >&5
23535$as_echo_n "checking whether to enable mod_session_dbd... " >&6; }
23536    # Check whether --enable-session-dbd was given.
23537if test "${enable_session_dbd+set}" = set; then :
23538  enableval=$enable_session_dbd; force_session_dbd=$enableval
23539else
23540  enable_session_dbd=$session_mods_enable
23541fi
23542
23543    _apmod_extra_msg=""
23544        case "$enable_session_dbd" in
23545    yes|static|shared)
23546      _apmod_required="yes"
23547      ;;
23548    *)
23549      case "$module_selection" in
23550      reallyall|all|most)
23551        _apmod_required="no"
23552        ;;
23553      *)
23554        _apmod_required="yes"
23555        ;;
23556      esac
23557  esac
23558  if test "$enable_session_dbd" = "static"; then
23559    enable_session_dbd=static
23560  elif test "$enable_session_dbd" = "yes"; then
23561    enable_session_dbd=$module_default
23562  elif test "$enable_session_dbd" = "most"; then
23563    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23564            "$module_selection" = "reallyall"
23565    then
23566      enable_session_dbd=$module_default
23567    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23568      enable_session_dbd=no
23569    fi
23570    _apmod_extra_msg=" ($module_selection)"
23571  elif test "$enable_session_dbd" = "maybe-all"; then
23572    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23573    then
23574      enable_session_dbd=$module_default
23575      _apmod_extra_msg=" ($module_selection)"
23576    else
23577      enable_session_dbd=no
23578    fi
23579  elif test "$enable_session_dbd" = "no" -a "$module_selection" = "reallyall" -a \
23580            "$force_session_dbd" != "no" ; then
23581      enable_session_dbd=$module_default
23582      _apmod_extra_msg=" ($module_selection)"
23583  fi
23584  if test "$enable_session_dbd" != "no"; then
23585            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
23586$as_echo "checking dependencies" >&6; }
23587            if test "$enable_session" = "no" ; then
23588                              enable_session_dbd=no
23589                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_dbd\"" >&5
23590$as_echo "$as_me: WARNING: \"mod_session is disabled but required for mod_session_dbd\"" >&2;}
23591                            elif test "$enable_session_dbd" = "static" && test "$enable_session" != "static" ; then
23592                              enable_session_dbd=no
23593                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_session_dbd statically if mod_session is built shared\"" >&5
23594$as_echo "$as_me: WARNING: \"cannot build mod_session_dbd statically if mod_session is built shared\"" >&2;}
23595                            else
23596            :
23597            fi
23598            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_dbd" >&5
23599$as_echo_n "checking whether to enable mod_session_dbd... " >&6; }
23600            if test "$enable_session_dbd" = "no"; then
23601              if test "$_apmod_required" = "no"; then
23602                _apmod_extra_msg=" (disabled)"
23603              else
23604                as_fn_error $? "mod_session_dbd has been requested but can not be built due to prerequisite failures" "$LINENO" 5
23605              fi
23606            fi
23607  fi
23608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_session_dbd$_apmod_extra_msg" >&5
23609$as_echo "$enable_session_dbd$_apmod_extra_msg" >&6; }
23610  if test "$enable_session_dbd" != "no"; then
23611    case "$enable_session_dbd" in
23612    static*)
23613      MODLIST="$MODLIST session_dbd"
23614      if test "session_dbd" = "so"; then
23615          sharedobjs=yes
23616      fi
23617      shared="";;
23618    *)
23619      enable_session_dbd=`echo $enable_session_dbd|sed 's/shared,*//'`
23620      sharedobjs=yes
23621      shared=yes
23622      DSO_MODULES="$DSO_MODULES session_dbd"
23623      if test "$session_mods_enable" = "yes" ; then
23624        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_dbd"
23625      fi
23626      ;;
23627    esac
23628
23629
23630  if test -z "$session_dbd_objects"; then
23631    objects="mod_session_dbd.lo"
23632  else
23633    objects="$session_dbd_objects"
23634  fi
23635
23636  if test -z "$module_standalone"; then
23637    if test -z "$shared"; then
23638      # The filename of a convenience library must have a "lib" prefix:
23639      libname="libmod_session_dbd.la"
23640      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23641      modpath_static="$modpath_static $libname"
23642      cat >>$modpath_current/modules.mk<<EOF
23643$libname: $objects
23644	\$(MOD_LINK) $objects \$(MOD_SESSION_DBD_LDADD)
23645EOF
23646      if test ! -z "\$(MOD_SESSION_DBD_LDADD)"; then
23647
23648  if test "x$AP_LIBS" = "x"; then
23649    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_DBD_LDADD)\""
23650    AP_LIBS="\$(MOD_SESSION_DBD_LDADD)"
23651  else
23652    apr_addto_bugger="\$(MOD_SESSION_DBD_LDADD)"
23653    for i in $apr_addto_bugger; do
23654      apr_addto_duplicate="0"
23655      for j in $AP_LIBS; do
23656        if test "x$i" = "x$j"; then
23657          apr_addto_duplicate="1"
23658          break
23659        fi
23660      done
23661      if test $apr_addto_duplicate = "0"; then
23662        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23663        AP_LIBS="$AP_LIBS $i"
23664      fi
23665    done
23666  fi
23667
23668      fi
23669    else
23670      apache_need_shared=yes
23671      libname="mod_session_dbd.la"
23672      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23673      modpath_shared="$modpath_shared $libname"
23674      cat >>$modpath_current/modules.mk<<EOF
23675$libname: $shobjects
23676	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_DBD_LDADD)
23677EOF
23678    fi
23679  fi
23680
23681
23682  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_DBD_LDADD"
23683
23684
23685
23686  fi
23687
23688
23689
23690  if test "x$INCLUDES" = "x"; then
23691    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
23692    INCLUDES="-I\$(top_srcdir)/$modpath_current"
23693  else
23694    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
23695    for i in $apr_addto_bugger; do
23696      apr_addto_duplicate="0"
23697      for j in $INCLUDES; do
23698        if test "x$i" = "x$j"; then
23699          apr_addto_duplicate="1"
23700          break
23701        fi
23702      done
23703      if test $apr_addto_duplicate = "0"; then
23704        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
23705        INCLUDES="$INCLUDES $i"
23706      fi
23707    done
23708  fi
23709
23710
23711
23712  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
23713  echo "static = $modpath_static" >> $modpath_current/modules.mk
23714  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
23715  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
23716    if eval val=\"\$MOD_$var\"; test -n "$val"; then
23717      echo "MOD_$var = $val" >> $modpath_current/modules.mk
23718    fi
23719  done
23720  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
23721    MODULE_DIRS="$MODULE_DIRS $current_dir"
23722  else
23723    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
23724  fi
23725
23726  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
23727
23728
23729
23730
23731
23732
23733
23734  current_dir=slotmem
23735  modpath_current=modules/slotmem
23736  modpath_static=
23737  modpath_shared=
23738  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
23739    eval MOD_$var=
23740  done
23741  test -d slotmem || $srcdir/build/mkdir.sh $modpath_current
23742  > $modpath_current/modules.mk
23743
23744
23745
23746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_slotmem_shm" >&5
23747$as_echo_n "checking whether to enable mod_slotmem_shm... " >&6; }
23748    # Check whether --enable-slotmem-shm was given.
23749if test "${enable_slotmem_shm+set}" = set; then :
23750  enableval=$enable_slotmem_shm; force_slotmem_shm=$enableval
23751else
23752  enable_slotmem_shm=most
23753fi
23754
23755    _apmod_extra_msg=""
23756        case "$enable_slotmem_shm" in
23757    yes|static|shared)
23758      _apmod_required="yes"
23759      ;;
23760    *)
23761      case "$module_selection" in
23762      reallyall|all|most)
23763        _apmod_required="no"
23764        ;;
23765      *)
23766        _apmod_required="yes"
23767        ;;
23768      esac
23769  esac
23770  if test "$enable_slotmem_shm" = "static"; then
23771    enable_slotmem_shm=static
23772  elif test "$enable_slotmem_shm" = "yes"; then
23773    enable_slotmem_shm=$module_default
23774  elif test "$enable_slotmem_shm" = "most"; then
23775    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23776            "$module_selection" = "reallyall"
23777    then
23778      enable_slotmem_shm=$module_default
23779    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23780      enable_slotmem_shm=no
23781    fi
23782    _apmod_extra_msg=" ($module_selection)"
23783  elif test "$enable_slotmem_shm" = "maybe-all"; then
23784    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23785    then
23786      enable_slotmem_shm=$module_default
23787      _apmod_extra_msg=" ($module_selection)"
23788    else
23789      enable_slotmem_shm=no
23790    fi
23791  elif test "$enable_slotmem_shm" = "no" -a "$module_selection" = "reallyall" -a \
23792            "$force_slotmem_shm" != "no" ; then
23793      enable_slotmem_shm=$module_default
23794      _apmod_extra_msg=" ($module_selection)"
23795  fi
23796  if test "$enable_slotmem_shm" != "no"; then
23797            :
23798  fi
23799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_slotmem_shm$_apmod_extra_msg" >&5
23800$as_echo "$enable_slotmem_shm$_apmod_extra_msg" >&6; }
23801  if test "$enable_slotmem_shm" != "no"; then
23802    case "$enable_slotmem_shm" in
23803    static*)
23804      MODLIST="$MODLIST slotmem_shm"
23805      if test "slotmem_shm" = "so"; then
23806          sharedobjs=yes
23807      fi
23808      shared="";;
23809    *)
23810      enable_slotmem_shm=`echo $enable_slotmem_shm|sed 's/shared,*//'`
23811      sharedobjs=yes
23812      shared=yes
23813      DSO_MODULES="$DSO_MODULES slotmem_shm"
23814      if test "most" = "yes" ; then
23815        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},slotmem_shm"
23816      fi
23817      ;;
23818    esac
23819
23820
23821  if test -z ""; then
23822    objects="mod_slotmem_shm.lo"
23823  else
23824    objects=""
23825  fi
23826
23827  if test -z "$module_standalone"; then
23828    if test -z "$shared"; then
23829      # The filename of a convenience library must have a "lib" prefix:
23830      libname="libmod_slotmem_shm.la"
23831      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23832      modpath_static="$modpath_static $libname"
23833      cat >>$modpath_current/modules.mk<<EOF
23834$libname: $objects
23835	\$(MOD_LINK) $objects \$(MOD_SLOTMEM_SHM_LDADD)
23836EOF
23837      if test ! -z "\$(MOD_SLOTMEM_SHM_LDADD)"; then
23838
23839  if test "x$AP_LIBS" = "x"; then
23840    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SLOTMEM_SHM_LDADD)\""
23841    AP_LIBS="\$(MOD_SLOTMEM_SHM_LDADD)"
23842  else
23843    apr_addto_bugger="\$(MOD_SLOTMEM_SHM_LDADD)"
23844    for i in $apr_addto_bugger; do
23845      apr_addto_duplicate="0"
23846      for j in $AP_LIBS; do
23847        if test "x$i" = "x$j"; then
23848          apr_addto_duplicate="1"
23849          break
23850        fi
23851      done
23852      if test $apr_addto_duplicate = "0"; then
23853        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23854        AP_LIBS="$AP_LIBS $i"
23855      fi
23856    done
23857  fi
23858
23859      fi
23860    else
23861      apache_need_shared=yes
23862      libname="mod_slotmem_shm.la"
23863      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23864      modpath_shared="$modpath_shared $libname"
23865      cat >>$modpath_current/modules.mk<<EOF
23866$libname: $shobjects
23867	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SLOTMEM_SHM_LDADD)
23868EOF
23869    fi
23870  fi
23871
23872
23873  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SLOTMEM_SHM_LDADD"
23874
23875
23876
23877  fi
23878
23879
23880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_slotmem_plain" >&5
23881$as_echo_n "checking whether to enable mod_slotmem_plain... " >&6; }
23882    # Check whether --enable-slotmem-plain was given.
23883if test "${enable_slotmem_plain+set}" = set; then :
23884  enableval=$enable_slotmem_plain; force_slotmem_plain=$enableval
23885else
23886  enable_slotmem_plain=maybe-all
23887fi
23888
23889    _apmod_extra_msg=""
23890        case "$enable_slotmem_plain" in
23891    yes|static|shared)
23892      _apmod_required="yes"
23893      ;;
23894    *)
23895      case "$module_selection" in
23896      reallyall|all|most)
23897        _apmod_required="no"
23898        ;;
23899      *)
23900        _apmod_required="yes"
23901        ;;
23902      esac
23903  esac
23904  if test "$enable_slotmem_plain" = "static"; then
23905    enable_slotmem_plain=static
23906  elif test "$enable_slotmem_plain" = "yes"; then
23907    enable_slotmem_plain=$module_default
23908  elif test "$enable_slotmem_plain" = "most"; then
23909    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
23910            "$module_selection" = "reallyall"
23911    then
23912      enable_slotmem_plain=$module_default
23913    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
23914      enable_slotmem_plain=no
23915    fi
23916    _apmod_extra_msg=" ($module_selection)"
23917  elif test "$enable_slotmem_plain" = "maybe-all"; then
23918    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
23919    then
23920      enable_slotmem_plain=$module_default
23921      _apmod_extra_msg=" ($module_selection)"
23922    else
23923      enable_slotmem_plain=no
23924    fi
23925  elif test "$enable_slotmem_plain" = "no" -a "$module_selection" = "reallyall" -a \
23926            "$force_slotmem_plain" != "no" ; then
23927      enable_slotmem_plain=$module_default
23928      _apmod_extra_msg=" ($module_selection)"
23929  fi
23930  if test "$enable_slotmem_plain" != "no"; then
23931            :
23932  fi
23933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_slotmem_plain$_apmod_extra_msg" >&5
23934$as_echo "$enable_slotmem_plain$_apmod_extra_msg" >&6; }
23935  if test "$enable_slotmem_plain" != "no"; then
23936    case "$enable_slotmem_plain" in
23937    static*)
23938      MODLIST="$MODLIST slotmem_plain"
23939      if test "slotmem_plain" = "so"; then
23940          sharedobjs=yes
23941      fi
23942      shared="";;
23943    *)
23944      enable_slotmem_plain=`echo $enable_slotmem_plain|sed 's/shared,*//'`
23945      sharedobjs=yes
23946      shared=yes
23947      DSO_MODULES="$DSO_MODULES slotmem_plain"
23948      if test "" = "yes" ; then
23949        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},slotmem_plain"
23950      fi
23951      ;;
23952    esac
23953
23954
23955  if test -z ""; then
23956    objects="mod_slotmem_plain.lo"
23957  else
23958    objects=""
23959  fi
23960
23961  if test -z "$module_standalone"; then
23962    if test -z "$shared"; then
23963      # The filename of a convenience library must have a "lib" prefix:
23964      libname="libmod_slotmem_plain.la"
23965      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
23966      modpath_static="$modpath_static $libname"
23967      cat >>$modpath_current/modules.mk<<EOF
23968$libname: $objects
23969	\$(MOD_LINK) $objects \$(MOD_SLOTMEM_PLAIN_LDADD)
23970EOF
23971      if test ! -z "\$(MOD_SLOTMEM_PLAIN_LDADD)"; then
23972
23973  if test "x$AP_LIBS" = "x"; then
23974    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SLOTMEM_PLAIN_LDADD)\""
23975    AP_LIBS="\$(MOD_SLOTMEM_PLAIN_LDADD)"
23976  else
23977    apr_addto_bugger="\$(MOD_SLOTMEM_PLAIN_LDADD)"
23978    for i in $apr_addto_bugger; do
23979      apr_addto_duplicate="0"
23980      for j in $AP_LIBS; do
23981        if test "x$i" = "x$j"; then
23982          apr_addto_duplicate="1"
23983          break
23984        fi
23985      done
23986      if test $apr_addto_duplicate = "0"; then
23987        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
23988        AP_LIBS="$AP_LIBS $i"
23989      fi
23990    done
23991  fi
23992
23993      fi
23994    else
23995      apache_need_shared=yes
23996      libname="mod_slotmem_plain.la"
23997      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
23998      modpath_shared="$modpath_shared $libname"
23999      cat >>$modpath_current/modules.mk<<EOF
24000$libname: $shobjects
24001	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SLOTMEM_PLAIN_LDADD)
24002EOF
24003    fi
24004  fi
24005
24006
24007  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SLOTMEM_PLAIN_LDADD"
24008
24009
24010
24011  fi
24012
24013
24014
24015  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
24016  echo "static = $modpath_static" >> $modpath_current/modules.mk
24017  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
24018  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
24019    if eval val=\"\$MOD_$var\"; test -n "$val"; then
24020      echo "MOD_$var = $val" >> $modpath_current/modules.mk
24021    fi
24022  done
24023  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
24024    MODULE_DIRS="$MODULE_DIRS $current_dir"
24025  else
24026    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
24027  fi
24028
24029  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
24030
24031
24032
24033
24034
24035  current_dir=ssl
24036  modpath_current=modules/ssl
24037  modpath_static=
24038  modpath_shared=
24039  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
24040    eval MOD_$var=
24041  done
24042  test -d ssl || $srcdir/build/mkdir.sh $modpath_current
24043  > $modpath_current/modules.mk
24044
24045
24046ssl_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_scache.lo ssl_util_stapling.lo ssl_util.lo ssl_util_ssl.lo ssl_engine_ocsp.lo ssl_util_ocsp.lo "
24047
24048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ssl" >&5
24049$as_echo_n "checking whether to enable mod_ssl... " >&6; }
24050    # Check whether --enable-ssl was given.
24051if test "${enable_ssl+set}" = set; then :
24052  enableval=$enable_ssl; force_ssl=$enableval
24053else
24054  enable_ssl=most
24055fi
24056
24057    _apmod_extra_msg=""
24058        case "$enable_ssl" in
24059    yes|static|shared)
24060      _apmod_required="yes"
24061      ;;
24062    *)
24063      case "$module_selection" in
24064      reallyall|all|most)
24065        _apmod_required="no"
24066        ;;
24067      *)
24068        _apmod_required="yes"
24069        ;;
24070      esac
24071  esac
24072  if test "$enable_ssl" = "static"; then
24073    enable_ssl=static
24074  elif test "$enable_ssl" = "yes"; then
24075    enable_ssl=$module_default
24076  elif test "$enable_ssl" = "most"; then
24077    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
24078            "$module_selection" = "reallyall"
24079    then
24080      enable_ssl=$module_default
24081    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
24082      enable_ssl=no
24083    fi
24084    _apmod_extra_msg=" ($module_selection)"
24085  elif test "$enable_ssl" = "maybe-all"; then
24086    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
24087    then
24088      enable_ssl=$module_default
24089      _apmod_extra_msg=" ($module_selection)"
24090    else
24091      enable_ssl=no
24092    fi
24093  elif test "$enable_ssl" = "no" -a "$module_selection" = "reallyall" -a \
24094            "$force_ssl" != "no" ; then
24095      enable_ssl=$module_default
24096      _apmod_extra_msg=" ($module_selection)"
24097  fi
24098  if test "$enable_ssl" != "no"; then
24099            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
24100$as_echo "checking dependencies" >&6; }
24101            :
24102
24103
24104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
24105$as_echo_n "checking for OpenSSL... " >&6; }
24106if ${ac_cv_openssl+:} false; then :
24107  $as_echo_n "(cached) " >&6
24108else
24109
24110        ac_cv_openssl=no
24111    ap_openssl_found=""
24112    ap_openssl_base=""
24113    ap_openssl_libs=""
24114
24115        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-provided OpenSSL base directory" >&5
24116$as_echo_n "checking for user-provided OpenSSL base directory... " >&6; }
24117
24118# Check whether --with-ssl was given.
24119if test "${with_ssl+set}" = set; then :
24120  withval=$with_ssl;
24121            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
24122                ap_openssl_base="`cd $withval ; pwd`"
24123      fi
24124
24125fi
24126
24127    if test "x$ap_openssl_base" = "x"; then
24128      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
24129$as_echo "none" >&6; }
24130    else
24131      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_openssl_base" >&5
24132$as_echo "$ap_openssl_base" >&6; }
24133    fi
24134
24135        saved_CPPFLAGS="$CPPFLAGS"
24136    saved_LIBS="$LIBS"
24137    saved_LDFLAGS="$LDFLAGS"
24138
24139        if test -n "$PKGCONFIG"; then
24140      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
24141      if test "x$ap_openssl_base" != "x" -a \
24142              -f "${ap_openssl_base}/lib/pkgconfig/openssl.pc"; then
24143                        PKG_CONFIG_PATH="${ap_openssl_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
24144        export PKG_CONFIG_PATH
24145      fi
24146      # Check whether --enable-ssl-staticlib-deps was given.
24147if test "${enable_ssl_staticlib_deps+set}" = set; then :
24148  enableval=$enable_ssl_staticlib_deps;
24149        if test "$enableval" = "yes"; then
24150          PKGCONFIG_LIBOPTS="--static"
24151        fi
24152
24153fi
24154
24155      ap_openssl_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors openssl`"
24156      if test $? -eq 0; then
24157        ap_openssl_found="yes"
24158        pkglookup="`$PKGCONFIG --cflags-only-I openssl`"
24159
24160  if test "x$CPPFLAGS" = "x"; then
24161    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
24162    CPPFLAGS="$pkglookup"
24163  else
24164    apr_addto_bugger="$pkglookup"
24165    for i in $apr_addto_bugger; do
24166      apr_addto_duplicate="0"
24167      for j in $CPPFLAGS; do
24168        if test "x$i" = "x$j"; then
24169          apr_addto_duplicate="1"
24170          break
24171        fi
24172      done
24173      if test $apr_addto_duplicate = "0"; then
24174        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
24175        CPPFLAGS="$CPPFLAGS $i"
24176      fi
24177    done
24178  fi
24179
24180
24181  if test "x$MOD_CFLAGS" = "x"; then
24182    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
24183    MOD_CFLAGS="$pkglookup"
24184  else
24185    apr_addto_bugger="$pkglookup"
24186    for i in $apr_addto_bugger; do
24187      apr_addto_duplicate="0"
24188      for j in $MOD_CFLAGS; do
24189        if test "x$i" = "x$j"; then
24190          apr_addto_duplicate="1"
24191          break
24192        fi
24193      done
24194      if test $apr_addto_duplicate = "0"; then
24195        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
24196        MOD_CFLAGS="$MOD_CFLAGS $i"
24197      fi
24198    done
24199  fi
24200
24201
24202  if test "x$ab_CFLAGS" = "x"; then
24203    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"$pkglookup\""
24204    ab_CFLAGS="$pkglookup"
24205  else
24206    apr_addto_bugger="$pkglookup"
24207    for i in $apr_addto_bugger; do
24208      apr_addto_duplicate="0"
24209      for j in $ab_CFLAGS; do
24210        if test "x$i" = "x$j"; then
24211          apr_addto_duplicate="1"
24212          break
24213        fi
24214      done
24215      if test $apr_addto_duplicate = "0"; then
24216        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
24217        ab_CFLAGS="$ab_CFLAGS $i"
24218      fi
24219    done
24220  fi
24221
24222        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L openssl`"
24223
24224  if test "x$LDFLAGS" = "x"; then
24225    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
24226    LDFLAGS="$pkglookup"
24227  else
24228    apr_addto_bugger="$pkglookup"
24229    for i in $apr_addto_bugger; do
24230      apr_addto_duplicate="0"
24231      for j in $LDFLAGS; do
24232        if test "x$i" = "x$j"; then
24233          apr_addto_duplicate="1"
24234          break
24235        fi
24236      done
24237      if test $apr_addto_duplicate = "0"; then
24238        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24239        LDFLAGS="$LDFLAGS $i"
24240      fi
24241    done
24242  fi
24243
24244
24245  if test "x$MOD_LDFLAGS" = "x"; then
24246    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
24247    MOD_LDFLAGS="$pkglookup"
24248  else
24249    apr_addto_bugger="$pkglookup"
24250    for i in $apr_addto_bugger; do
24251      apr_addto_duplicate="0"
24252      for j in $MOD_LDFLAGS; do
24253        if test "x$i" = "x$j"; then
24254          apr_addto_duplicate="1"
24255          break
24256        fi
24257      done
24258      if test $apr_addto_duplicate = "0"; then
24259        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24260        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24261      fi
24262    done
24263  fi
24264
24265        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other openssl`"
24266
24267  if test "x$LDFLAGS" = "x"; then
24268    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
24269    LDFLAGS="$pkglookup"
24270  else
24271    apr_addto_bugger="$pkglookup"
24272    for i in $apr_addto_bugger; do
24273      apr_addto_duplicate="0"
24274      for j in $LDFLAGS; do
24275        if test "x$i" = "x$j"; then
24276          apr_addto_duplicate="1"
24277          break
24278        fi
24279      done
24280      if test $apr_addto_duplicate = "0"; then
24281        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24282        LDFLAGS="$LDFLAGS $i"
24283      fi
24284    done
24285  fi
24286
24287
24288  if test "x$MOD_LDFLAGS" = "x"; then
24289    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
24290    MOD_LDFLAGS="$pkglookup"
24291  else
24292    apr_addto_bugger="$pkglookup"
24293    for i in $apr_addto_bugger; do
24294      apr_addto_duplicate="0"
24295      for j in $MOD_LDFLAGS; do
24296        if test "x$i" = "x$j"; then
24297          apr_addto_duplicate="1"
24298          break
24299        fi
24300      done
24301      if test $apr_addto_duplicate = "0"; then
24302        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24303        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24304      fi
24305    done
24306  fi
24307
24308      fi
24309      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
24310    fi
24311
24312        if test "x$ap_openssl_base" != "x" -a "x$ap_openssl_found" = "x"; then
24313
24314  if test "x$CPPFLAGS" = "x"; then
24315    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_openssl_base/include\""
24316    CPPFLAGS="-I$ap_openssl_base/include"
24317  else
24318    apr_addto_bugger="-I$ap_openssl_base/include"
24319    for i in $apr_addto_bugger; do
24320      apr_addto_duplicate="0"
24321      for j in $CPPFLAGS; do
24322        if test "x$i" = "x$j"; then
24323          apr_addto_duplicate="1"
24324          break
24325        fi
24326      done
24327      if test $apr_addto_duplicate = "0"; then
24328        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
24329        CPPFLAGS="$CPPFLAGS $i"
24330      fi
24331    done
24332  fi
24333
24334
24335  if test "x$MOD_CFLAGS" = "x"; then
24336    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_openssl_base/include\""
24337    MOD_CFLAGS="-I$ap_openssl_base/include"
24338  else
24339    apr_addto_bugger="-I$ap_openssl_base/include"
24340    for i in $apr_addto_bugger; do
24341      apr_addto_duplicate="0"
24342      for j in $MOD_CFLAGS; do
24343        if test "x$i" = "x$j"; then
24344          apr_addto_duplicate="1"
24345          break
24346        fi
24347      done
24348      if test $apr_addto_duplicate = "0"; then
24349        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
24350        MOD_CFLAGS="$MOD_CFLAGS $i"
24351      fi
24352    done
24353  fi
24354
24355
24356  if test "x$ab_CFLAGS" = "x"; then
24357    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"-I$ap_openssl_base/include\""
24358    ab_CFLAGS="-I$ap_openssl_base/include"
24359  else
24360    apr_addto_bugger="-I$ap_openssl_base/include"
24361    for i in $apr_addto_bugger; do
24362      apr_addto_duplicate="0"
24363      for j in $ab_CFLAGS; do
24364        if test "x$i" = "x$j"; then
24365          apr_addto_duplicate="1"
24366          break
24367        fi
24368      done
24369      if test $apr_addto_duplicate = "0"; then
24370        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
24371        ab_CFLAGS="$ab_CFLAGS $i"
24372      fi
24373    done
24374  fi
24375
24376
24377  if test "x$LDFLAGS" = "x"; then
24378    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_openssl_base/lib\""
24379    LDFLAGS="-L$ap_openssl_base/lib"
24380  else
24381    apr_addto_bugger="-L$ap_openssl_base/lib"
24382    for i in $apr_addto_bugger; do
24383      apr_addto_duplicate="0"
24384      for j in $LDFLAGS; do
24385        if test "x$i" = "x$j"; then
24386          apr_addto_duplicate="1"
24387          break
24388        fi
24389      done
24390      if test $apr_addto_duplicate = "0"; then
24391        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24392        LDFLAGS="$LDFLAGS $i"
24393      fi
24394    done
24395  fi
24396
24397
24398  if test "x$MOD_LDFLAGS" = "x"; then
24399    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_openssl_base/lib\""
24400    MOD_LDFLAGS="-L$ap_openssl_base/lib"
24401  else
24402    apr_addto_bugger="-L$ap_openssl_base/lib"
24403    for i in $apr_addto_bugger; do
24404      apr_addto_duplicate="0"
24405      for j in $MOD_LDFLAGS; do
24406        if test "x$i" = "x$j"; then
24407          apr_addto_duplicate="1"
24408          break
24409        fi
24410      done
24411      if test $apr_addto_duplicate = "0"; then
24412        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24413        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24414      fi
24415    done
24416  fi
24417
24418      if test "x$ap_platform_runtime_link_flag" != "x"; then
24419
24420  if test "x$LDFLAGS" = "x"; then
24421    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
24422    LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
24423  else
24424    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
24425    for i in $apr_addto_bugger; do
24426      apr_addto_duplicate="0"
24427      for j in $LDFLAGS; do
24428        if test "x$i" = "x$j"; then
24429          apr_addto_duplicate="1"
24430          break
24431        fi
24432      done
24433      if test $apr_addto_duplicate = "0"; then
24434        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24435        LDFLAGS="$LDFLAGS $i"
24436      fi
24437    done
24438  fi
24439
24440
24441  if test "x$MOD_LDFLAGS" = "x"; then
24442    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
24443    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
24444  else
24445    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
24446    for i in $apr_addto_bugger; do
24447      apr_addto_duplicate="0"
24448      for j in $MOD_LDFLAGS; do
24449        if test "x$i" = "x$j"; then
24450          apr_addto_duplicate="1"
24451          break
24452        fi
24453      done
24454      if test $apr_addto_duplicate = "0"; then
24455        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24456        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24457      fi
24458    done
24459  fi
24460
24461      fi
24462    fi
24463
24464    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
24465$as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
24466    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24467/* end confdefs.h.  */
24468#include <openssl/opensslv.h>
24469int
24470main ()
24471{
24472
24473#if !defined(OPENSSL_VERSION_NUMBER)
24474#error "Missing OpenSSL version"
24475#endif
24476#if OPENSSL_VERSION_NUMBER < 0x0090700f
24477#error "Unsupported OpenSSL version " OPENSSL_VERSION_TEXT
24478#endif
24479  ;
24480  return 0;
24481}
24482_ACEOF
24483if ac_fn_c_try_compile "$LINENO"; then :
24484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
24485$as_echo "OK" >&6; }
24486       ac_cv_openssl=yes
24487else
24488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
24489$as_echo "FAILED" >&6; }
24490fi
24491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492
24493    if test "x$ac_cv_openssl" = "xyes"; then
24494      ap_openssl_libs="${ap_openssl_libs:--lssl -lcrypto} `$apr_config --libs`"
24495
24496  if test "x$MOD_LDFLAGS" = "x"; then
24497    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_openssl_libs\""
24498    MOD_LDFLAGS="$ap_openssl_libs"
24499  else
24500    apr_addto_bugger="$ap_openssl_libs"
24501    for i in $apr_addto_bugger; do
24502      apr_addto_duplicate="0"
24503      for j in $MOD_LDFLAGS; do
24504        if test "x$i" = "x$j"; then
24505          apr_addto_duplicate="1"
24506          break
24507        fi
24508      done
24509      if test $apr_addto_duplicate = "0"; then
24510        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
24511        MOD_LDFLAGS="$MOD_LDFLAGS $i"
24512      fi
24513    done
24514  fi
24515
24516
24517  if test "x$LIBS" = "x"; then
24518    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_openssl_libs\""
24519    LIBS="$ap_openssl_libs"
24520  else
24521    apr_addto_bugger="$ap_openssl_libs"
24522    for i in $apr_addto_bugger; do
24523      apr_addto_duplicate="0"
24524      for j in $LIBS; do
24525        if test "x$i" = "x$j"; then
24526          apr_addto_duplicate="1"
24527          break
24528        fi
24529      done
24530      if test $apr_addto_duplicate = "0"; then
24531        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24532        LIBS="$LIBS $i"
24533      fi
24534    done
24535  fi
24536
24537
24538  test "x$silent" != "xyes" && echo "  forcing ab_LDFLAGS to \"$MOD_LDFLAGS\""
24539  ab_LDFLAGS="$MOD_LDFLAGS"
24540
24541
24542  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_CFLAGS"
24543
24544
24545
24546  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LDFLAGS"
24547
24548
24549
24550            liberrors=""
24551      for ac_header in openssl/engine.h
24552do :
24553  ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
24554if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
24555  cat >>confdefs.h <<_ACEOF
24556#define HAVE_OPENSSL_ENGINE_H 1
24557_ACEOF
24558
24559fi
24560
24561done
24562
24563      for ac_func in SSLeay_version SSL_CTX_new
24564do :
24565  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24566ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24567if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24568  cat >>confdefs.h <<_ACEOF
24569#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24570_ACEOF
24571
24572else
24573  liberrors="yes"
24574fi
24575done
24576
24577      for ac_func in ENGINE_init ENGINE_load_builtin_engines
24578do :
24579  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24580ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24581if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24582  cat >>confdefs.h <<_ACEOF
24583#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24584_ACEOF
24585
24586fi
24587done
24588
24589      if test "x$liberrors" != "x"; then
24590        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL libraries are unusable" >&5
24591$as_echo "$as_me: WARNING: OpenSSL libraries are unusable" >&2;}
24592      fi
24593    else
24594      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL version is too old" >&5
24595$as_echo "$as_me: WARNING: OpenSSL version is too old" >&2;}
24596    fi
24597
24598        CPPFLAGS="$saved_CPPFLAGS"
24599    LIBS="$saved_LIBS"
24600    LDFLAGS="$saved_LDFLAGS"
24601
24602fi
24603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_openssl" >&5
24604$as_echo "$ac_cv_openssl" >&6; }
24605  if test "x$ac_cv_openssl" = "xyes"; then
24606
24607$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
24608
24609  fi
24610
24611    if test "$ac_cv_openssl" = "yes" ; then
24612        if test "x$enable_ssl" = "xshared"; then
24613           # The only symbol which needs to be exported is the module
24614           # structure, so ask libtool to hide everything else:
24615
24616  if test "x$MOD_SSL_LDADD" = "x"; then
24617    test "x$silent" != "xyes" && echo "  setting MOD_SSL_LDADD to \"-export-symbols-regex ssl_module\""
24618    MOD_SSL_LDADD="-export-symbols-regex ssl_module"
24619  else
24620    apr_addto_bugger="-export-symbols-regex ssl_module"
24621    for i in $apr_addto_bugger; do
24622      apr_addto_duplicate="0"
24623      for j in $MOD_SSL_LDADD; do
24624        if test "x$i" = "x$j"; then
24625          apr_addto_duplicate="1"
24626          break
24627        fi
24628      done
24629      if test $apr_addto_duplicate = "0"; then
24630        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SSL_LDADD"
24631        MOD_SSL_LDADD="$MOD_SSL_LDADD $i"
24632      fi
24633    done
24634  fi
24635
24636        fi
24637    else
24638        enable_ssl=no
24639    fi
24640
24641            :
24642            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ssl" >&5
24643$as_echo_n "checking whether to enable mod_ssl... " >&6; }
24644            if test "$enable_ssl" = "no"; then
24645              if test "$_apmod_required" = "no"; then
24646                _apmod_extra_msg=" (disabled)"
24647              else
24648                as_fn_error $? "mod_ssl has been requested but can not be built due to prerequisite failures" "$LINENO" 5
24649              fi
24650            fi
24651  fi
24652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ssl$_apmod_extra_msg" >&5
24653$as_echo "$enable_ssl$_apmod_extra_msg" >&6; }
24654  if test "$enable_ssl" != "no"; then
24655    case "$enable_ssl" in
24656    static*)
24657      MODLIST="$MODLIST ssl"
24658      if test "ssl" = "so"; then
24659          sharedobjs=yes
24660      fi
24661      shared="";;
24662    *)
24663      enable_ssl=`echo $enable_ssl|sed 's/shared,*//'`
24664      sharedobjs=yes
24665      shared=yes
24666      DSO_MODULES="$DSO_MODULES ssl"
24667      if test "most" = "yes" ; then
24668        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ssl"
24669      fi
24670      ;;
24671    esac
24672
24673
24674  if test -z "$ssl_objs"; then
24675    objects="mod_ssl.lo"
24676  else
24677    objects="$ssl_objs"
24678  fi
24679
24680  if test -z "$module_standalone"; then
24681    if test -z "$shared"; then
24682      # The filename of a convenience library must have a "lib" prefix:
24683      libname="libmod_ssl.la"
24684      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
24685      modpath_static="$modpath_static $libname"
24686      cat >>$modpath_current/modules.mk<<EOF
24687$libname: $objects
24688	\$(MOD_LINK) $objects \$(MOD_SSL_LDADD)
24689EOF
24690      if test ! -z "\$(MOD_SSL_LDADD)"; then
24691
24692  if test "x$AP_LIBS" = "x"; then
24693    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SSL_LDADD)\""
24694    AP_LIBS="\$(MOD_SSL_LDADD)"
24695  else
24696    apr_addto_bugger="\$(MOD_SSL_LDADD)"
24697    for i in $apr_addto_bugger; do
24698      apr_addto_duplicate="0"
24699      for j in $AP_LIBS; do
24700        if test "x$i" = "x$j"; then
24701          apr_addto_duplicate="1"
24702          break
24703        fi
24704      done
24705      if test $apr_addto_duplicate = "0"; then
24706        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
24707        AP_LIBS="$AP_LIBS $i"
24708      fi
24709    done
24710  fi
24711
24712      fi
24713    else
24714      apache_need_shared=yes
24715      libname="mod_ssl.la"
24716      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
24717      modpath_shared="$modpath_shared $libname"
24718      cat >>$modpath_current/modules.mk<<EOF
24719$libname: $shobjects
24720	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SSL_LDADD)
24721EOF
24722    fi
24723  fi
24724
24725
24726  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SSL_LDADD"
24727
24728
24729
24730  fi
24731
24732
24733# Ensure that other modules can pick up mod_ssl.h
24734
24735  if test "x$INCLUDES" = "x"; then
24736    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
24737    INCLUDES="-I\$(top_srcdir)/$modpath_current"
24738  else
24739    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
24740    for i in $apr_addto_bugger; do
24741      apr_addto_duplicate="0"
24742      for j in $INCLUDES; do
24743        if test "x$i" = "x$j"; then
24744          apr_addto_duplicate="1"
24745          break
24746        fi
24747      done
24748      if test $apr_addto_duplicate = "0"; then
24749        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
24750        INCLUDES="$INCLUDES $i"
24751      fi
24752    done
24753  fi
24754
24755
24756
24757  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
24758  echo "static = $modpath_static" >> $modpath_current/modules.mk
24759  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
24760  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
24761    if eval val=\"\$MOD_$var\"; test -n "$val"; then
24762      echo "MOD_$var = $val" >> $modpath_current/modules.mk
24763    fi
24764  done
24765  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
24766    MODULE_DIRS="$MODULE_DIRS $current_dir"
24767  else
24768    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
24769  fi
24770
24771  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
24772
24773
24774
24775
24776
24777
24778  current_dir=test
24779  modpath_current=modules/test
24780  modpath_static=
24781  modpath_shared=
24782  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
24783    eval MOD_$var=
24784  done
24785  test -d test || $srcdir/build/mkdir.sh $modpath_current
24786  > $modpath_current/modules.mk
24787
24788
24789
24790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_hook_export" >&5
24791$as_echo_n "checking whether to enable mod_optional_hook_export... " >&6; }
24792    # Check whether --enable-optional-hook-export was given.
24793if test "${enable_optional_hook_export+set}" = set; then :
24794  enableval=$enable_optional_hook_export; force_optional_hook_export=$enableval
24795else
24796  enable_optional_hook_export=no
24797fi
24798
24799    _apmod_extra_msg=""
24800        case "$enable_optional_hook_export" in
24801    yes|static|shared)
24802      _apmod_required="yes"
24803      ;;
24804    *)
24805      case "$module_selection" in
24806      reallyall|all|most)
24807        _apmod_required="no"
24808        ;;
24809      *)
24810        _apmod_required="yes"
24811        ;;
24812      esac
24813  esac
24814  if test "$enable_optional_hook_export" = "static"; then
24815    enable_optional_hook_export=static
24816  elif test "$enable_optional_hook_export" = "yes"; then
24817    enable_optional_hook_export=$module_default
24818  elif test "$enable_optional_hook_export" = "most"; then
24819    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
24820            "$module_selection" = "reallyall"
24821    then
24822      enable_optional_hook_export=$module_default
24823    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
24824      enable_optional_hook_export=no
24825    fi
24826    _apmod_extra_msg=" ($module_selection)"
24827  elif test "$enable_optional_hook_export" = "maybe-all"; then
24828    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
24829    then
24830      enable_optional_hook_export=$module_default
24831      _apmod_extra_msg=" ($module_selection)"
24832    else
24833      enable_optional_hook_export=no
24834    fi
24835  elif test "$enable_optional_hook_export" = "no" -a "$module_selection" = "reallyall" -a \
24836            "$force_optional_hook_export" != "no" ; then
24837      enable_optional_hook_export=$module_default
24838      _apmod_extra_msg=" ($module_selection)"
24839  fi
24840  if test "$enable_optional_hook_export" != "no"; then
24841            :
24842  fi
24843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optional_hook_export$_apmod_extra_msg" >&5
24844$as_echo "$enable_optional_hook_export$_apmod_extra_msg" >&6; }
24845  if test "$enable_optional_hook_export" != "no"; then
24846    case "$enable_optional_hook_export" in
24847    static*)
24848      MODLIST="$MODLIST optional_hook_export"
24849      if test "optional_hook_export" = "so"; then
24850          sharedobjs=yes
24851      fi
24852      shared="";;
24853    *)
24854      enable_optional_hook_export=`echo $enable_optional_hook_export|sed 's/shared,*//'`
24855      sharedobjs=yes
24856      shared=yes
24857      DSO_MODULES="$DSO_MODULES optional_hook_export"
24858      if test "no" = "yes" ; then
24859        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_hook_export"
24860      fi
24861      ;;
24862    esac
24863
24864
24865  if test -z ""; then
24866    objects="mod_optional_hook_export.lo"
24867  else
24868    objects=""
24869  fi
24870
24871  if test -z "$module_standalone"; then
24872    if test -z "$shared"; then
24873      # The filename of a convenience library must have a "lib" prefix:
24874      libname="libmod_optional_hook_export.la"
24875      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
24876      modpath_static="$modpath_static $libname"
24877      cat >>$modpath_current/modules.mk<<EOF
24878$libname: $objects
24879	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
24880EOF
24881      if test ! -z "\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)"; then
24882
24883  if test "x$AP_LIBS" = "x"; then
24884    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)\""
24885    AP_LIBS="\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)"
24886  else
24887    apr_addto_bugger="\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)"
24888    for i in $apr_addto_bugger; do
24889      apr_addto_duplicate="0"
24890      for j in $AP_LIBS; do
24891        if test "x$i" = "x$j"; then
24892          apr_addto_duplicate="1"
24893          break
24894        fi
24895      done
24896      if test $apr_addto_duplicate = "0"; then
24897        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
24898        AP_LIBS="$AP_LIBS $i"
24899      fi
24900    done
24901  fi
24902
24903      fi
24904    else
24905      apache_need_shared=yes
24906      libname="mod_optional_hook_export.la"
24907      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
24908      modpath_shared="$modpath_shared $libname"
24909      cat >>$modpath_current/modules.mk<<EOF
24910$libname: $shobjects
24911	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
24912EOF
24913    fi
24914  fi
24915
24916
24917  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_EXPORT_LDADD"
24918
24919
24920
24921  fi
24922
24923
24924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_hook_import" >&5
24925$as_echo_n "checking whether to enable mod_optional_hook_import... " >&6; }
24926    # Check whether --enable-optional-hook-import was given.
24927if test "${enable_optional_hook_import+set}" = set; then :
24928  enableval=$enable_optional_hook_import; force_optional_hook_import=$enableval
24929else
24930  enable_optional_hook_import=no
24931fi
24932
24933    _apmod_extra_msg=""
24934        case "$enable_optional_hook_import" in
24935    yes|static|shared)
24936      _apmod_required="yes"
24937      ;;
24938    *)
24939      case "$module_selection" in
24940      reallyall|all|most)
24941        _apmod_required="no"
24942        ;;
24943      *)
24944        _apmod_required="yes"
24945        ;;
24946      esac
24947  esac
24948  if test "$enable_optional_hook_import" = "static"; then
24949    enable_optional_hook_import=static
24950  elif test "$enable_optional_hook_import" = "yes"; then
24951    enable_optional_hook_import=$module_default
24952  elif test "$enable_optional_hook_import" = "most"; then
24953    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
24954            "$module_selection" = "reallyall"
24955    then
24956      enable_optional_hook_import=$module_default
24957    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
24958      enable_optional_hook_import=no
24959    fi
24960    _apmod_extra_msg=" ($module_selection)"
24961  elif test "$enable_optional_hook_import" = "maybe-all"; then
24962    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
24963    then
24964      enable_optional_hook_import=$module_default
24965      _apmod_extra_msg=" ($module_selection)"
24966    else
24967      enable_optional_hook_import=no
24968    fi
24969  elif test "$enable_optional_hook_import" = "no" -a "$module_selection" = "reallyall" -a \
24970            "$force_optional_hook_import" != "no" ; then
24971      enable_optional_hook_import=$module_default
24972      _apmod_extra_msg=" ($module_selection)"
24973  fi
24974  if test "$enable_optional_hook_import" != "no"; then
24975            :
24976  fi
24977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optional_hook_import$_apmod_extra_msg" >&5
24978$as_echo "$enable_optional_hook_import$_apmod_extra_msg" >&6; }
24979  if test "$enable_optional_hook_import" != "no"; then
24980    case "$enable_optional_hook_import" in
24981    static*)
24982      MODLIST="$MODLIST optional_hook_import"
24983      if test "optional_hook_import" = "so"; then
24984          sharedobjs=yes
24985      fi
24986      shared="";;
24987    *)
24988      enable_optional_hook_import=`echo $enable_optional_hook_import|sed 's/shared,*//'`
24989      sharedobjs=yes
24990      shared=yes
24991      DSO_MODULES="$DSO_MODULES optional_hook_import"
24992      if test "no" = "yes" ; then
24993        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_hook_import"
24994      fi
24995      ;;
24996    esac
24997
24998
24999  if test -z ""; then
25000    objects="mod_optional_hook_import.lo"
25001  else
25002    objects=""
25003  fi
25004
25005  if test -z "$module_standalone"; then
25006    if test -z "$shared"; then
25007      # The filename of a convenience library must have a "lib" prefix:
25008      libname="libmod_optional_hook_import.la"
25009      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
25010      modpath_static="$modpath_static $libname"
25011      cat >>$modpath_current/modules.mk<<EOF
25012$libname: $objects
25013	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
25014EOF
25015      if test ! -z "\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)"; then
25016
25017  if test "x$AP_LIBS" = "x"; then
25018    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)\""
25019    AP_LIBS="\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)"
25020  else
25021    apr_addto_bugger="\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)"
25022    for i in $apr_addto_bugger; do
25023      apr_addto_duplicate="0"
25024      for j in $AP_LIBS; do
25025        if test "x$i" = "x$j"; then
25026          apr_addto_duplicate="1"
25027          break
25028        fi
25029      done
25030      if test $apr_addto_duplicate = "0"; then
25031        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
25032        AP_LIBS="$AP_LIBS $i"
25033      fi
25034    done
25035  fi
25036
25037      fi
25038    else
25039      apache_need_shared=yes
25040      libname="mod_optional_hook_import.la"
25041      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
25042      modpath_shared="$modpath_shared $libname"
25043      cat >>$modpath_current/modules.mk<<EOF
25044$libname: $shobjects
25045	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
25046EOF
25047    fi
25048  fi
25049
25050
25051  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_IMPORT_LDADD"
25052
25053
25054
25055  fi
25056
25057
25058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_fn_import" >&5
25059$as_echo_n "checking whether to enable mod_optional_fn_import... " >&6; }
25060    # Check whether --enable-optional-fn-import was given.
25061if test "${enable_optional_fn_import+set}" = set; then :
25062  enableval=$enable_optional_fn_import; force_optional_fn_import=$enableval
25063else
25064  enable_optional_fn_import=no
25065fi
25066
25067    _apmod_extra_msg=""
25068        case "$enable_optional_fn_import" in
25069    yes|static|shared)
25070      _apmod_required="yes"
25071      ;;
25072    *)
25073      case "$module_selection" in
25074      reallyall|all|most)
25075        _apmod_required="no"
25076        ;;
25077      *)
25078        _apmod_required="yes"
25079        ;;
25080      esac
25081  esac
25082  if test "$enable_optional_fn_import" = "static"; then
25083    enable_optional_fn_import=static
25084  elif test "$enable_optional_fn_import" = "yes"; then
25085    enable_optional_fn_import=$module_default
25086  elif test "$enable_optional_fn_import" = "most"; then
25087    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
25088            "$module_selection" = "reallyall"
25089    then
25090      enable_optional_fn_import=$module_default
25091    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
25092      enable_optional_fn_import=no
25093    fi
25094    _apmod_extra_msg=" ($module_selection)"
25095  elif test "$enable_optional_fn_import" = "maybe-all"; then
25096    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
25097    then
25098      enable_optional_fn_import=$module_default
25099      _apmod_extra_msg=" ($module_selection)"
25100    else
25101      enable_optional_fn_import=no
25102    fi
25103  elif test "$enable_optional_fn_import" = "no" -a "$module_selection" = "reallyall" -a \
25104            "$force_optional_fn_import" != "no" ; then
25105      enable_optional_fn_import=$module_default
25106      _apmod_extra_msg=" ($module_selection)"
25107  fi
25108  if test "$enable_optional_fn_import" != "no"; then
25109            :
25110  fi
25111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optional_fn_import$_apmod_extra_msg" >&5
25112$as_echo "$enable_optional_fn_import$_apmod_extra_msg" >&6; }
25113  if test "$enable_optional_fn_import" != "no"; then
25114    case "$enable_optional_fn_import" in
25115    static*)
25116      MODLIST="$MODLIST optional_fn_import"
25117      if test "optional_fn_import" = "so"; then
25118          sharedobjs=yes
25119      fi
25120      shared="";;
25121    *)
25122      enable_optional_fn_import=`echo $enable_optional_fn_import|sed 's/shared,*//'`
25123      sharedobjs=yes
25124      shared=yes
25125      DSO_MODULES="$DSO_MODULES optional_fn_import"
25126      if test "no" = "yes" ; then
25127        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_fn_import"
25128      fi
25129      ;;
25130    esac
25131
25132
25133  if test -z ""; then
25134    objects="mod_optional_fn_import.lo"
25135  else
25136    objects=""
25137  fi
25138
25139  if test -z "$module_standalone"; then
25140    if test -z "$shared"; then
25141      # The filename of a convenience library must have a "lib" prefix:
25142      libname="libmod_optional_fn_import.la"
25143      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
25144      modpath_static="$modpath_static $libname"
25145      cat >>$modpath_current/modules.mk<<EOF
25146$libname: $objects
25147	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
25148EOF
25149      if test ! -z "\$(MOD_OPTIONAL_FN_IMPORT_LDADD)"; then
25150
25151  if test "x$AP_LIBS" = "x"; then
25152    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_FN_IMPORT_LDADD)\""
25153    AP_LIBS="\$(MOD_OPTIONAL_FN_IMPORT_LDADD)"
25154  else
25155    apr_addto_bugger="\$(MOD_OPTIONAL_FN_IMPORT_LDADD)"
25156    for i in $apr_addto_bugger; do
25157      apr_addto_duplicate="0"
25158      for j in $AP_LIBS; do
25159        if test "x$i" = "x$j"; then
25160          apr_addto_duplicate="1"
25161          break
25162        fi
25163      done
25164      if test $apr_addto_duplicate = "0"; then
25165        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
25166        AP_LIBS="$AP_LIBS $i"
25167      fi
25168    done
25169  fi
25170
25171      fi
25172    else
25173      apache_need_shared=yes
25174      libname="mod_optional_fn_import.la"
25175      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
25176      modpath_shared="$modpath_shared $libname"
25177      cat >>$modpath_current/modules.mk<<EOF
25178$libname: $shobjects
25179	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
25180EOF
25181    fi
25182  fi
25183
25184
25185  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_IMPORT_LDADD"
25186
25187
25188
25189  fi
25190
25191
25192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_fn_export" >&5
25193$as_echo_n "checking whether to enable mod_optional_fn_export... " >&6; }
25194    # Check whether --enable-optional-fn-export was given.
25195if test "${enable_optional_fn_export+set}" = set; then :
25196  enableval=$enable_optional_fn_export; force_optional_fn_export=$enableval
25197else
25198  enable_optional_fn_export=no
25199fi
25200
25201    _apmod_extra_msg=""
25202        case "$enable_optional_fn_export" in
25203    yes|static|shared)
25204      _apmod_required="yes"
25205      ;;
25206    *)
25207      case "$module_selection" in
25208      reallyall|all|most)
25209        _apmod_required="no"
25210        ;;
25211      *)
25212        _apmod_required="yes"
25213        ;;
25214      esac
25215  esac
25216  if test "$enable_optional_fn_export" = "static"; then
25217    enable_optional_fn_export=static
25218  elif test "$enable_optional_fn_export" = "yes"; then
25219    enable_optional_fn_export=$module_default
25220  elif test "$enable_optional_fn_export" = "most"; then
25221    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
25222            "$module_selection" = "reallyall"
25223    then
25224      enable_optional_fn_export=$module_default
25225    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
25226      enable_optional_fn_export=no
25227    fi
25228    _apmod_extra_msg=" ($module_selection)"
25229  elif test "$enable_optional_fn_export" = "maybe-all"; then
25230    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
25231    then
25232      enable_optional_fn_export=$module_default
25233      _apmod_extra_msg=" ($module_selection)"
25234    else
25235      enable_optional_fn_export=no
25236    fi
25237  elif test "$enable_optional_fn_export" = "no" -a "$module_selection" = "reallyall" -a \
25238            "$force_optional_fn_export" != "no" ; then
25239      enable_optional_fn_export=$module_default
25240      _apmod_extra_msg=" ($module_selection)"
25241  fi
25242  if test "$enable_optional_fn_export" != "no"; then
25243            :
25244  fi
25245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optional_fn_export$_apmod_extra_msg" >&5
25246$as_echo "$enable_optional_fn_export$_apmod_extra_msg" >&6; }
25247  if test "$enable_optional_fn_export" != "no"; then
25248    case "$enable_optional_fn_export" in
25249    static*)
25250      MODLIST="$MODLIST optional_fn_export"
25251      if test "optional_fn_export" = "so"; then
25252          sharedobjs=yes
25253      fi
25254      shared="";;
25255    *)
25256      enable_optional_fn_export=`echo $enable_optional_fn_export|sed 's/shared,*//'`
25257      sharedobjs=yes
25258      shared=yes
25259      DSO_MODULES="$DSO_MODULES optional_fn_export"
25260      if test "no" = "yes" ; then
25261        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_fn_export"
25262      fi
25263      ;;
25264    esac
25265
25266
25267  if test -z ""; then
25268    objects="mod_optional_fn_export.lo"
25269  else
25270    objects=""
25271  fi
25272
25273  if test -z "$module_standalone"; then
25274    if test -z "$shared"; then
25275      # The filename of a convenience library must have a "lib" prefix:
25276      libname="libmod_optional_fn_export.la"
25277      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
25278      modpath_static="$modpath_static $libname"
25279      cat >>$modpath_current/modules.mk<<EOF
25280$libname: $objects
25281	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
25282EOF
25283      if test ! -z "\$(MOD_OPTIONAL_FN_EXPORT_LDADD)"; then
25284
25285  if test "x$AP_LIBS" = "x"; then
25286    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_FN_EXPORT_LDADD)\""
25287    AP_LIBS="\$(MOD_OPTIONAL_FN_EXPORT_LDADD)"
25288  else
25289    apr_addto_bugger="\$(MOD_OPTIONAL_FN_EXPORT_LDADD)"
25290    for i in $apr_addto_bugger; do
25291      apr_addto_duplicate="0"
25292      for j in $AP_LIBS; do
25293        if test "x$i" = "x$j"; then
25294          apr_addto_duplicate="1"
25295          break
25296        fi
25297      done
25298      if test $apr_addto_duplicate = "0"; then
25299        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
25300        AP_LIBS="$AP_LIBS $i"
25301      fi
25302    done
25303  fi
25304
25305      fi
25306    else
25307      apache_need_shared=yes
25308      libname="mod_optional_fn_export.la"
25309      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
25310      modpath_shared="$modpath_shared $libname"
25311      cat >>$modpath_current/modules.mk<<EOF
25312$libname: $shobjects
25313	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
25314EOF
25315    fi
25316  fi
25317
25318
25319  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_EXPORT_LDADD"
25320
25321
25322
25323  fi
25324
25325
25326
25327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dialup" >&5
25328$as_echo_n "checking whether to enable mod_dialup... " >&6; }
25329    # Check whether --enable-dialup was given.
25330if test "${enable_dialup+set}" = set; then :
25331  enableval=$enable_dialup; force_dialup=$enableval
25332else
25333  enable_dialup=maybe-all
25334fi
25335
25336    _apmod_extra_msg=""
25337        case "$enable_dialup" in
25338    yes|static|shared)
25339      _apmod_required="yes"
25340      ;;
25341    *)
25342      case "$module_selection" in
25343      reallyall|all|most)
25344        _apmod_required="no"
25345        ;;
25346      *)
25347        _apmod_required="yes"
25348        ;;
25349      esac
25350  esac
25351  if test "$enable_dialup" = "static"; then
25352    enable_dialup=static
25353  elif test "$enable_dialup" = "yes"; then
25354    enable_dialup=$module_default
25355  elif test "$enable_dialup" = "most"; then
25356    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
25357            "$module_selection" = "reallyall"
25358    then
25359      enable_dialup=$module_default
25360    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
25361      enable_dialup=no
25362    fi
25363    _apmod_extra_msg=" ($module_selection)"
25364  elif test "$enable_dialup" = "maybe-all"; then
25365    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
25366    then
25367      enable_dialup=$module_default
25368      _apmod_extra_msg=" ($module_selection)"
25369    else
25370      enable_dialup=no
25371    fi
25372  elif test "$enable_dialup" = "no" -a "$module_selection" = "reallyall" -a \
25373            "$force_dialup" != "no" ; then
25374      enable_dialup=$module_default
25375      _apmod_extra_msg=" ($module_selection)"
25376  fi
25377  if test "$enable_dialup" != "no"; then
25378            :
25379  fi
25380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dialup$_apmod_extra_msg" >&5
25381$as_echo "$enable_dialup$_apmod_extra_msg" >&6; }
25382  if test "$enable_dialup" != "no"; then
25383    case "$enable_dialup" in
25384    static*)
25385      MODLIST="$MODLIST dialup"
25386      if test "dialup" = "so"; then
25387          sharedobjs=yes
25388      fi
25389      shared="";;
25390    *)
25391      enable_dialup=`echo $enable_dialup|sed 's/shared,*//'`
25392      sharedobjs=yes
25393      shared=yes
25394      DSO_MODULES="$DSO_MODULES dialup"
25395      if test "" = "yes" ; then
25396        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dialup"
25397      fi
25398      ;;
25399    esac
25400
25401
25402  if test -z ""; then
25403    objects="mod_dialup.lo"
25404  else
25405    objects=""
25406  fi
25407
25408  if test -z "$module_standalone"; then
25409    if test -z "$shared"; then
25410      # The filename of a convenience library must have a "lib" prefix:
25411      libname="libmod_dialup.la"
25412      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
25413      modpath_static="$modpath_static $libname"
25414      cat >>$modpath_current/modules.mk<<EOF
25415$libname: $objects
25416	\$(MOD_LINK) $objects \$(MOD_DIALUP_LDADD)
25417EOF
25418      if test ! -z "\$(MOD_DIALUP_LDADD)"; then
25419
25420  if test "x$AP_LIBS" = "x"; then
25421    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DIALUP_LDADD)\""
25422    AP_LIBS="\$(MOD_DIALUP_LDADD)"
25423  else
25424    apr_addto_bugger="\$(MOD_DIALUP_LDADD)"
25425    for i in $apr_addto_bugger; do
25426      apr_addto_duplicate="0"
25427      for j in $AP_LIBS; do
25428        if test "x$i" = "x$j"; then
25429          apr_addto_duplicate="1"
25430          break
25431        fi
25432      done
25433      if test $apr_addto_duplicate = "0"; then
25434        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
25435        AP_LIBS="$AP_LIBS $i"
25436      fi
25437    done
25438  fi
25439
25440      fi
25441    else
25442      apache_need_shared=yes
25443      libname="mod_dialup.la"
25444      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
25445      modpath_shared="$modpath_shared $libname"
25446      cat >>$modpath_current/modules.mk<<EOF
25447$libname: $shobjects
25448	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DIALUP_LDADD)
25449EOF
25450    fi
25451  fi
25452
25453
25454  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DIALUP_LDADD"
25455
25456
25457
25458  fi
25459
25460
25461
25462  if test "x$INCLUDES" = "x"; then
25463    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
25464    INCLUDES="-I\$(top_srcdir)/$modpath_current"
25465  else
25466    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
25467    for i in $apr_addto_bugger; do
25468      apr_addto_duplicate="0"
25469      for j in $INCLUDES; do
25470        if test "x$i" = "x$j"; then
25471          apr_addto_duplicate="1"
25472          break
25473        fi
25474      done
25475      if test $apr_addto_duplicate = "0"; then
25476        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
25477        INCLUDES="$INCLUDES $i"
25478      fi
25479    done
25480  fi
25481
25482
25483
25484  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
25485  echo "static = $modpath_static" >> $modpath_current/modules.mk
25486  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
25487  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
25488    if eval val=\"\$MOD_$var\"; test -n "$val"; then
25489      echo "MOD_$var = $val" >> $modpath_current/modules.mk
25490    fi
25491  done
25492  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
25493    MODULE_DIRS="$MODULE_DIRS $current_dir"
25494  else
25495    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
25496  fi
25497
25498  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
25499
25500
25501
25502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target platform" >&5
25503$as_echo_n "checking for target platform... " >&6; }
25504
25505case $host in
25506*pc-os2-emx*)
25507  OS="os2"
25508  OS_DIR=$OS
25509  ;;
25510bs2000*)
25511  OS="unix"
25512  OS_DIR=$OS
25513  ;;
25514*cygwin*)
25515  OS="cygwin"
25516  OS_DIR="unix"
25517  ;;
25518*mingw32*)
25519  OS="win32"
25520  OS_DIR=$OS
25521  ;;
25522*)
25523  OS="unix"
25524  OS_DIR=$OS;;
25525esac
25526
25527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
25528$as_echo "$OS" >&6; }
25529
25530  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/${OS_DIR}/Makefile"
25531
25532
25533if test "$OS" = "os2" ; then
25534
25535  if test "x$CFLAGS" = "x"; then
25536    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-DOS2 -O2\""
25537    CFLAGS="-DOS2 -O2"
25538  else
25539    apr_addto_bugger="-DOS2 -O2"
25540    for i in $apr_addto_bugger; do
25541      apr_addto_duplicate="0"
25542      for j in $CFLAGS; do
25543        if test "x$i" = "x$j"; then
25544          apr_addto_duplicate="1"
25545          break
25546        fi
25547      done
25548      if test $apr_addto_duplicate = "0"; then
25549        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
25550        CFLAGS="$CFLAGS $i"
25551      fi
25552    done
25553  fi
25554
25555fi
25556
25557if test "$OS" = "unix" ; then
25558
25559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
25560$as_echo_n "checking for rlim_t... " >&6; }
25561if ${ac_cv_type_rlim_t+:} false; then :
25562  $as_echo_n "(cached) " >&6
25563else
25564
25565    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25566/* end confdefs.h.  */
25567
25568#include <sys/types.h>
25569#include <sys/time.h>
25570#include <sys/resource.h>
25571
25572int
25573main ()
25574{
25575rlim_t spoon;
25576  ;
25577  return 0;
25578}
25579_ACEOF
25580if ac_fn_c_try_compile "$LINENO"; then :
25581
25582      ac_cv_type_rlim_t=yes
25583
25584else
25585  ac_cv_type_rlim_t=no
25586
25587fi
25588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25589
25590fi
25591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
25592$as_echo "$ac_cv_type_rlim_t" >&6; }
25593  if test "$ac_cv_type_rlim_t" = "no" ; then
25594
25595$as_echo "#define rlim_t int" >>confdefs.h
25596
25597  fi
25598
25599
25600    for ac_header in sys/time.h sys/resource.h sys/sem.h sys/ipc.h
25601do :
25602  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25603ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25605  cat >>confdefs.h <<_ACEOF
25606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25607_ACEOF
25608
25609fi
25610
25611done
25612
25613
25614    for ac_func in setsid killpg
25615do :
25616  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25617ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25618if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25619  cat >>confdefs.h <<_ACEOF
25620#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25621_ACEOF
25622
25623fi
25624done
25625
25626fi
25627
25628
25629
25630for ac_header in bstring.h unistd.h
25631do :
25632  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25633ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25634if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25635  cat >>confdefs.h <<_ACEOF
25636#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25637_ACEOF
25638
25639fi
25640
25641done
25642
25643
25644
25645
25646for ac_func in syslog
25647do :
25648  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
25649if test "x$ac_cv_func_syslog" = xyes; then :
25650  cat >>confdefs.h <<_ACEOF
25651#define HAVE_SYSLOG 1
25652_ACEOF
25653
25654fi
25655done
25656
25657
25658    for ac_header in sys/times.h
25659do :
25660  ac_fn_c_check_header_mongrel "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
25661if test "x$ac_cv_header_sys_times_h" = xyes; then :
25662  cat >>confdefs.h <<_ACEOF
25663#define HAVE_SYS_TIMES_H 1
25664_ACEOF
25665
25666fi
25667
25668done
25669
25670    for ac_func in times
25671do :
25672  ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
25673if test "x$ac_cv_func_times" = xyes; then :
25674  cat >>confdefs.h <<_ACEOF
25675#define HAVE_TIMES 1
25676_ACEOF
25677
25678fi
25679done
25680
25681
25682# util_expr needs header files in server source dir
25683
25684  if test "x$INCLUDES" = "x"; then
25685    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/server\""
25686    INCLUDES="-I\$(top_srcdir)/server"
25687  else
25688    apr_addto_bugger="-I\$(top_srcdir)/server"
25689    for i in $apr_addto_bugger; do
25690      apr_addto_duplicate="0"
25691      for j in $INCLUDES; do
25692        if test "x$i" = "x$j"; then
25693          apr_addto_duplicate="1"
25694          break
25695        fi
25696      done
25697      if test $apr_addto_duplicate = "0"; then
25698        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
25699        INCLUDES="$INCLUDES $i"
25700      fi
25701    done
25702  fi
25703
25704
25705
25706
25707apr_old_cppflags=$CPPFLAGS
25708CPPFLAGS="$CPPFLAGS $INCLUDES"
25709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25710/* end confdefs.h.  */
25711
25712#include <apr.h>
25713#if APR_HAS_THREADS
25714YES_IS_DEFINED
25715#endif
25716
25717_ACEOF
25718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25719  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25720  ac_cv_define_APR_HAS_THREADS=yes
25721else
25722  ac_cv_define_APR_HAS_THREADS=no
25723fi
25724rm -f conftest*
25725
25726CPPFLAGS=$apr_old_cppflags
25727
25728
25729have_threaded_sig_graceful=yes
25730case $host in
25731    *-linux-*)
25732        case `uname -r` in
25733          2.0* )
25734                                                have_threaded_sig_graceful=no
25735          ;;
25736        esac
25737    ;;
25738esac
25739
25740
25741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR supports thread-safe pollsets" >&5
25742$as_echo_n "checking whether APR supports thread-safe pollsets... " >&6; }
25743if ${ac_cv_have_threadsafe_pollset+:} false; then :
25744  $as_echo_n "(cached) " >&6
25745else
25746
25747    case $host in
25748        *-apple-darwin[1-9].*)
25749
25750  if test -z "$ac_cv_func_kqueue"; then
25751    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
25752    ac_cv_func_kqueue="no"
25753  fi
25754
25755            ;;
25756    esac
25757    for ac_func in kqueue port_create epoll_create
25758do :
25759  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25760ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25761if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25762  cat >>confdefs.h <<_ACEOF
25763#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25764_ACEOF
25765
25766fi
25767done
25768
25769    if test "$ac_cv_func_kqueue$ac_cv_func_port_create$ac_cv_func_epoll_create" != "nonono"; then
25770        ac_cv_have_threadsafe_pollset=yes
25771    else
25772        ac_cv_have_threadsafe_pollset=no
25773    fi
25774
25775fi
25776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_threadsafe_pollset" >&5
25777$as_echo "$ac_cv_have_threadsafe_pollset" >&6; }
25778
25779case $host in
25780    *mingw32* | *os2-emx*)
25781        forking_mpms_supported=no
25782        ;;
25783    *)
25784        forking_mpms_supported=yes
25785        ;;
25786esac
25787
25788
25789
25790ap_mpm_is_supported ()
25791{
25792    eval "tmp=\$ap_supported_mpm_$1"
25793    if test -z "$tmp"; then
25794        return 1
25795    else
25796        return 0
25797    fi
25798}
25799
25800ap_mpm_supports_shared ()
25801{
25802    eval "tmp=\$ap_supported_mpm_$1"
25803    if test "$tmp" = "shared"; then
25804        return 0
25805    else
25806        return 1
25807    fi
25808}
25809
25810ap_mpm_is_threaded ()
25811{
25812    if test "$mpm_build" = "shared" -a ac_cv_define_APR_HAS_THREADS = "yes"; then
25813        return 0
25814    fi
25815
25816    for mpm in $ap_enabled_mpms; do
25817        eval "tmp=\$ap_threaded_mpm_$mpm"
25818        if test "$tmp" = "yes"; then
25819            return 0
25820        fi
25821    done
25822    return 1
25823}
25824
25825ap_mpm_is_enabled ()
25826{
25827    eval "tmp=\$ap_enabled_mpm_$1"
25828    if test "$tmp" = "yes"; then
25829        return 0
25830    else
25831        return 1
25832    fi
25833}
25834
25835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if event MPM supports this platform" >&5
25836$as_echo_n "checking if event MPM supports this platform... " >&6; }
25837if test $forking_mpms_supported != yes; then
25838    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - This is not a forking platform" >&5
25839$as_echo "no - This is not a forking platform" >&6; }
25840elif test $ac_cv_define_APR_HAS_THREADS != yes; then
25841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - APR does not support threads" >&5
25842$as_echo "no - APR does not support threads" >&6; }
25843elif test $have_threaded_sig_graceful != yes; then
25844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - SIG_GRACEFUL cannot be used with a threaded MPM" >&5
25845$as_echo "no - SIG_GRACEFUL cannot be used with a threaded MPM" >&6; }
25846elif test $ac_cv_have_threadsafe_pollset != yes; then
25847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - APR_POLLSET_THREADSAFE is not supported" >&5
25848$as_echo "no - APR_POLLSET_THREADSAFE is not supported" >&6; }
25849else
25850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25851$as_echo "yes" >&6; }
25852
25853    if test "yes" = "yes"; then
25854        eval "ap_supported_mpm_event=shared"
25855        ap_supported_shared_mpms="$ap_supported_shared_mpms event "
25856    else
25857        eval "ap_supported_mpm_event=static"
25858    fi
25859    if test "yes" = "yes"; then
25860        eval "ap_threaded_mpm_event=yes"
25861    fi
25862
25863fi
25864
25865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mpmt_os2 MPM supports this platform" >&5
25866$as_echo_n "checking if mpmt_os2 MPM supports this platform... " >&6; }
25867case $host in
25868    *os2-emx*)
25869        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25870$as_echo "yes" >&6; }
25871
25872    if test "no" = "yes"; then
25873        eval "ap_supported_mpm_mpmt_os2=shared"
25874        ap_supported_shared_mpms="$ap_supported_shared_mpms mpmt_os2 "
25875    else
25876        eval "ap_supported_mpm_mpmt_os2=static"
25877    fi
25878    if test "yes" = "yes"; then
25879        eval "ap_threaded_mpm_mpmt_os2=yes"
25880    fi
25881
25882        ;;
25883    *)
25884        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25885$as_echo "no" >&6; }
25886        ;;
25887esac
25888
25889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if prefork MPM supports this platform" >&5
25890$as_echo_n "checking if prefork MPM supports this platform... " >&6; }
25891if test $forking_mpms_supported != yes; then
25892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - This is not a forking platform" >&5
25893$as_echo "no - This is not a forking platform" >&6; }
25894else
25895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25896$as_echo "yes" >&6; }
25897
25898    if test "yes" = "yes"; then
25899        eval "ap_supported_mpm_prefork=shared"
25900        ap_supported_shared_mpms="$ap_supported_shared_mpms prefork "
25901    else
25902        eval "ap_supported_mpm_prefork=static"
25903    fi
25904    if test "no" = "yes"; then
25905        eval "ap_threaded_mpm_prefork=yes"
25906    fi
25907
25908fi
25909
25910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WinNT MPM supports this platform" >&5
25911$as_echo_n "checking if WinNT MPM supports this platform... " >&6; }
25912case $host in
25913    *mingw32*)
25914        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25915$as_echo "yes" >&6; }
25916
25917    if test "no" = "yes"; then
25918        eval "ap_supported_mpm_winnt=shared"
25919        ap_supported_shared_mpms="$ap_supported_shared_mpms winnt "
25920    else
25921        eval "ap_supported_mpm_winnt=static"
25922    fi
25923    if test "yes" = "yes"; then
25924        eval "ap_threaded_mpm_winnt=yes"
25925    fi
25926
25927        ;;
25928    *)
25929        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25930$as_echo "no" >&6; }
25931        ;;
25932esac
25933
25934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if worker MPM supports this platform" >&5
25935$as_echo_n "checking if worker MPM supports this platform... " >&6; }
25936if test $forking_mpms_supported != yes; then
25937    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - This is not a forking platform" >&5
25938$as_echo "no - This is not a forking platform" >&6; }
25939elif test $ac_cv_define_APR_HAS_THREADS != yes; then
25940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - APR does not support threads" >&5
25941$as_echo "no - APR does not support threads" >&6; }
25942elif test $have_threaded_sig_graceful != yes; then
25943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - SIG_GRACEFUL cannot be used with a threaded MPM" >&5
25944$as_echo "no - SIG_GRACEFUL cannot be used with a threaded MPM" >&6; }
25945else
25946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25947$as_echo "yes" >&6; }
25948
25949    if test "yes" = "yes"; then
25950        eval "ap_supported_mpm_worker=shared"
25951        ap_supported_shared_mpms="$ap_supported_shared_mpms worker "
25952    else
25953        eval "ap_supported_mpm_worker=static"
25954    fi
25955    if test "yes" = "yes"; then
25956        eval "ap_threaded_mpm_worker=yes"
25957    fi
25958
25959fi
25960
25961htpasswd_LTFLAGS=""
25962htdigest_LTFLAGS=""
25963rotatelogs_LTFLAGS=""
25964logresolve_LTFLAGS=""
25965htdbm_LTFLAGS=""
25966ab_LTFLAGS=""
25967checkgid_LTFLAGS=""
25968htcacheclean_LTFLAGS=""
25969httxt2dbm_LTFLAGS=""
25970fcgistarter_LTFLAGS=""
25971
25972# Check whether --enable-static-support was given.
25973if test "${enable_static_support+set}" = set; then :
25974  enableval=$enable_static_support;
25975if test "$enableval" = "yes" ; then
25976
25977  if test "x$htpasswd_LTFLAGS" = "x"; then
25978    test "x$silent" != "xyes" && echo "  setting htpasswd_LTFLAGS to \"-static\""
25979    htpasswd_LTFLAGS="-static"
25980  else
25981    apr_addto_bugger="-static"
25982    for i in $apr_addto_bugger; do
25983      apr_addto_duplicate="0"
25984      for j in $htpasswd_LTFLAGS; do
25985        if test "x$i" = "x$j"; then
25986          apr_addto_duplicate="1"
25987          break
25988        fi
25989      done
25990      if test $apr_addto_duplicate = "0"; then
25991        test "x$silent" != "xyes" && echo "  adding \"$i\" to htpasswd_LTFLAGS"
25992        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
25993      fi
25994    done
25995  fi
25996
25997
25998  if test "x$htdigest_LTFLAGS" = "x"; then
25999    test "x$silent" != "xyes" && echo "  setting htdigest_LTFLAGS to \"-static\""
26000    htdigest_LTFLAGS="-static"
26001  else
26002    apr_addto_bugger="-static"
26003    for i in $apr_addto_bugger; do
26004      apr_addto_duplicate="0"
26005      for j in $htdigest_LTFLAGS; do
26006        if test "x$i" = "x$j"; then
26007          apr_addto_duplicate="1"
26008          break
26009        fi
26010      done
26011      if test $apr_addto_duplicate = "0"; then
26012        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdigest_LTFLAGS"
26013        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
26014      fi
26015    done
26016  fi
26017
26018
26019  if test "x$rotatelogs_LTFLAGS" = "x"; then
26020    test "x$silent" != "xyes" && echo "  setting rotatelogs_LTFLAGS to \"-static\""
26021    rotatelogs_LTFLAGS="-static"
26022  else
26023    apr_addto_bugger="-static"
26024    for i in $apr_addto_bugger; do
26025      apr_addto_duplicate="0"
26026      for j in $rotatelogs_LTFLAGS; do
26027        if test "x$i" = "x$j"; then
26028          apr_addto_duplicate="1"
26029          break
26030        fi
26031      done
26032      if test $apr_addto_duplicate = "0"; then
26033        test "x$silent" != "xyes" && echo "  adding \"$i\" to rotatelogs_LTFLAGS"
26034        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
26035      fi
26036    done
26037  fi
26038
26039
26040  if test "x$logresolve_LTFLAGS" = "x"; then
26041    test "x$silent" != "xyes" && echo "  setting logresolve_LTFLAGS to \"-static\""
26042    logresolve_LTFLAGS="-static"
26043  else
26044    apr_addto_bugger="-static"
26045    for i in $apr_addto_bugger; do
26046      apr_addto_duplicate="0"
26047      for j in $logresolve_LTFLAGS; do
26048        if test "x$i" = "x$j"; then
26049          apr_addto_duplicate="1"
26050          break
26051        fi
26052      done
26053      if test $apr_addto_duplicate = "0"; then
26054        test "x$silent" != "xyes" && echo "  adding \"$i\" to logresolve_LTFLAGS"
26055        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
26056      fi
26057    done
26058  fi
26059
26060
26061  if test "x$htdbm_LTFLAGS" = "x"; then
26062    test "x$silent" != "xyes" && echo "  setting htdbm_LTFLAGS to \"-static\""
26063    htdbm_LTFLAGS="-static"
26064  else
26065    apr_addto_bugger="-static"
26066    for i in $apr_addto_bugger; do
26067      apr_addto_duplicate="0"
26068      for j in $htdbm_LTFLAGS; do
26069        if test "x$i" = "x$j"; then
26070          apr_addto_duplicate="1"
26071          break
26072        fi
26073      done
26074      if test $apr_addto_duplicate = "0"; then
26075        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdbm_LTFLAGS"
26076        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
26077      fi
26078    done
26079  fi
26080
26081
26082  if test "x$ab_LTFLAGS" = "x"; then
26083    test "x$silent" != "xyes" && echo "  setting ab_LTFLAGS to \"-static\""
26084    ab_LTFLAGS="-static"
26085  else
26086    apr_addto_bugger="-static"
26087    for i in $apr_addto_bugger; do
26088      apr_addto_duplicate="0"
26089      for j in $ab_LTFLAGS; do
26090        if test "x$i" = "x$j"; then
26091          apr_addto_duplicate="1"
26092          break
26093        fi
26094      done
26095      if test $apr_addto_duplicate = "0"; then
26096        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_LTFLAGS"
26097        ab_LTFLAGS="$ab_LTFLAGS $i"
26098      fi
26099    done
26100  fi
26101
26102
26103  if test "x$checkgid_LTFLAGS" = "x"; then
26104    test "x$silent" != "xyes" && echo "  setting checkgid_LTFLAGS to \"-static\""
26105    checkgid_LTFLAGS="-static"
26106  else
26107    apr_addto_bugger="-static"
26108    for i in $apr_addto_bugger; do
26109      apr_addto_duplicate="0"
26110      for j in $checkgid_LTFLAGS; do
26111        if test "x$i" = "x$j"; then
26112          apr_addto_duplicate="1"
26113          break
26114        fi
26115      done
26116      if test $apr_addto_duplicate = "0"; then
26117        test "x$silent" != "xyes" && echo "  adding \"$i\" to checkgid_LTFLAGS"
26118        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
26119      fi
26120    done
26121  fi
26122
26123
26124  if test "x$htcacheclean_LTFLAGS" = "x"; then
26125    test "x$silent" != "xyes" && echo "  setting htcacheclean_LTFLAGS to \"-static\""
26126    htcacheclean_LTFLAGS="-static"
26127  else
26128    apr_addto_bugger="-static"
26129    for i in $apr_addto_bugger; do
26130      apr_addto_duplicate="0"
26131      for j in $htcacheclean_LTFLAGS; do
26132        if test "x$i" = "x$j"; then
26133          apr_addto_duplicate="1"
26134          break
26135        fi
26136      done
26137      if test $apr_addto_duplicate = "0"; then
26138        test "x$silent" != "xyes" && echo "  adding \"$i\" to htcacheclean_LTFLAGS"
26139        htcacheclean_LTFLAGS="$htcacheclean_LTFLAGS $i"
26140      fi
26141    done
26142  fi
26143
26144
26145  if test "x$httxt2dbm_LTFLAGS" = "x"; then
26146    test "x$silent" != "xyes" && echo "  setting httxt2dbm_LTFLAGS to \"-static\""
26147    httxt2dbm_LTFLAGS="-static"
26148  else
26149    apr_addto_bugger="-static"
26150    for i in $apr_addto_bugger; do
26151      apr_addto_duplicate="0"
26152      for j in $httxt2dbm_LTFLAGS; do
26153        if test "x$i" = "x$j"; then
26154          apr_addto_duplicate="1"
26155          break
26156        fi
26157      done
26158      if test $apr_addto_duplicate = "0"; then
26159        test "x$silent" != "xyes" && echo "  adding \"$i\" to httxt2dbm_LTFLAGS"
26160        httxt2dbm_LTFLAGS="$httxt2dbm_LTFLAGS $i"
26161      fi
26162    done
26163  fi
26164
26165
26166  if test "x$fcgistarter_LTFLAGS" = "x"; then
26167    test "x$silent" != "xyes" && echo "  setting fcgistarter_LTFLAGS to \"-static\""
26168    fcgistarter_LTFLAGS="-static"
26169  else
26170    apr_addto_bugger="-static"
26171    for i in $apr_addto_bugger; do
26172      apr_addto_duplicate="0"
26173      for j in $fcgistarter_LTFLAGS; do
26174        if test "x$i" = "x$j"; then
26175          apr_addto_duplicate="1"
26176          break
26177        fi
26178      done
26179      if test $apr_addto_duplicate = "0"; then
26180        test "x$silent" != "xyes" && echo "  adding \"$i\" to fcgistarter_LTFLAGS"
26181        fcgistarter_LTFLAGS="$fcgistarter_LTFLAGS $i"
26182      fi
26183    done
26184  fi
26185
26186fi
26187
26188fi
26189
26190
26191# Check whether --enable-static-htpasswd was given.
26192if test "${enable_static_htpasswd+set}" = set; then :
26193  enableval=$enable_static_htpasswd;
26194if test "$enableval" = "yes" ; then
26195
26196  if test "x$htpasswd_LTFLAGS" = "x"; then
26197    test "x$silent" != "xyes" && echo "  setting htpasswd_LTFLAGS to \"-static\""
26198    htpasswd_LTFLAGS="-static"
26199  else
26200    apr_addto_bugger="-static"
26201    for i in $apr_addto_bugger; do
26202      apr_addto_duplicate="0"
26203      for j in $htpasswd_LTFLAGS; do
26204        if test "x$i" = "x$j"; then
26205          apr_addto_duplicate="1"
26206          break
26207        fi
26208      done
26209      if test $apr_addto_duplicate = "0"; then
26210        test "x$silent" != "xyes" && echo "  adding \"$i\" to htpasswd_LTFLAGS"
26211        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
26212      fi
26213    done
26214  fi
26215
26216else
26217
26218  if test "x$htpasswd_LTFLAGS" = "x-static"; then
26219    test "x$silent" != "xyes" && echo "  nulling htpasswd_LTFLAGS"
26220    htpasswd_LTFLAGS=""
26221  else
26222    apr_new_bugger=""
26223    apr_removed=0
26224    for i in $htpasswd_LTFLAGS; do
26225      if test "x$i" != "x-static"; then
26226        apr_new_bugger="$apr_new_bugger $i"
26227      else
26228        apr_removed=1
26229      fi
26230    done
26231    if test $apr_removed = "1"; then
26232      test "x$silent" != "xyes" && echo "  removed \"-static\" from htpasswd_LTFLAGS"
26233      htpasswd_LTFLAGS=$apr_new_bugger
26234    fi
26235  fi
26236
26237fi
26238
26239fi
26240
26241
26242  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htpasswd_LTFLAGS"
26243
26244
26245
26246# Check whether --enable-static-htdigest was given.
26247if test "${enable_static_htdigest+set}" = set; then :
26248  enableval=$enable_static_htdigest;
26249if test "$enableval" = "yes" ; then
26250
26251  if test "x$htdigest_LTFLAGS" = "x"; then
26252    test "x$silent" != "xyes" && echo "  setting htdigest_LTFLAGS to \"-static\""
26253    htdigest_LTFLAGS="-static"
26254  else
26255    apr_addto_bugger="-static"
26256    for i in $apr_addto_bugger; do
26257      apr_addto_duplicate="0"
26258      for j in $htdigest_LTFLAGS; do
26259        if test "x$i" = "x$j"; then
26260          apr_addto_duplicate="1"
26261          break
26262        fi
26263      done
26264      if test $apr_addto_duplicate = "0"; then
26265        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdigest_LTFLAGS"
26266        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
26267      fi
26268    done
26269  fi
26270
26271else
26272
26273  if test "x$htdigest_LTFLAGS" = "x-static"; then
26274    test "x$silent" != "xyes" && echo "  nulling htdigest_LTFLAGS"
26275    htdigest_LTFLAGS=""
26276  else
26277    apr_new_bugger=""
26278    apr_removed=0
26279    for i in $htdigest_LTFLAGS; do
26280      if test "x$i" != "x-static"; then
26281        apr_new_bugger="$apr_new_bugger $i"
26282      else
26283        apr_removed=1
26284      fi
26285    done
26286    if test $apr_removed = "1"; then
26287      test "x$silent" != "xyes" && echo "  removed \"-static\" from htdigest_LTFLAGS"
26288      htdigest_LTFLAGS=$apr_new_bugger
26289    fi
26290  fi
26291
26292fi
26293
26294fi
26295
26296
26297  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdigest_LTFLAGS"
26298
26299
26300
26301# Check whether --enable-static-rotatelogs was given.
26302if test "${enable_static_rotatelogs+set}" = set; then :
26303  enableval=$enable_static_rotatelogs;
26304if test "$enableval" = "yes" ; then
26305
26306  if test "x$rotatelogs_LTFLAGS" = "x"; then
26307    test "x$silent" != "xyes" && echo "  setting rotatelogs_LTFLAGS to \"-static\""
26308    rotatelogs_LTFLAGS="-static"
26309  else
26310    apr_addto_bugger="-static"
26311    for i in $apr_addto_bugger; do
26312      apr_addto_duplicate="0"
26313      for j in $rotatelogs_LTFLAGS; do
26314        if test "x$i" = "x$j"; then
26315          apr_addto_duplicate="1"
26316          break
26317        fi
26318      done
26319      if test $apr_addto_duplicate = "0"; then
26320        test "x$silent" != "xyes" && echo "  adding \"$i\" to rotatelogs_LTFLAGS"
26321        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
26322      fi
26323    done
26324  fi
26325
26326else
26327
26328  if test "x$rotatelogs_LTFLAGS" = "x-static"; then
26329    test "x$silent" != "xyes" && echo "  nulling rotatelogs_LTFLAGS"
26330    rotatelogs_LTFLAGS=""
26331  else
26332    apr_new_bugger=""
26333    apr_removed=0
26334    for i in $rotatelogs_LTFLAGS; do
26335      if test "x$i" != "x-static"; then
26336        apr_new_bugger="$apr_new_bugger $i"
26337      else
26338        apr_removed=1
26339      fi
26340    done
26341    if test $apr_removed = "1"; then
26342      test "x$silent" != "xyes" && echo "  removed \"-static\" from rotatelogs_LTFLAGS"
26343      rotatelogs_LTFLAGS=$apr_new_bugger
26344    fi
26345  fi
26346
26347fi
26348
26349fi
26350
26351
26352  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rotatelogs_LTFLAGS"
26353
26354
26355
26356# Check whether --enable-static-logresolve was given.
26357if test "${enable_static_logresolve+set}" = set; then :
26358  enableval=$enable_static_logresolve;
26359if test "$enableval" = "yes" ; then
26360
26361  if test "x$logresolve_LTFLAGS" = "x"; then
26362    test "x$silent" != "xyes" && echo "  setting logresolve_LTFLAGS to \"-static\""
26363    logresolve_LTFLAGS="-static"
26364  else
26365    apr_addto_bugger="-static"
26366    for i in $apr_addto_bugger; do
26367      apr_addto_duplicate="0"
26368      for j in $logresolve_LTFLAGS; do
26369        if test "x$i" = "x$j"; then
26370          apr_addto_duplicate="1"
26371          break
26372        fi
26373      done
26374      if test $apr_addto_duplicate = "0"; then
26375        test "x$silent" != "xyes" && echo "  adding \"$i\" to logresolve_LTFLAGS"
26376        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
26377      fi
26378    done
26379  fi
26380
26381else
26382
26383  if test "x$logresolve_LTFLAGS" = "x-static"; then
26384    test "x$silent" != "xyes" && echo "  nulling logresolve_LTFLAGS"
26385    logresolve_LTFLAGS=""
26386  else
26387    apr_new_bugger=""
26388    apr_removed=0
26389    for i in $logresolve_LTFLAGS; do
26390      if test "x$i" != "x-static"; then
26391        apr_new_bugger="$apr_new_bugger $i"
26392      else
26393        apr_removed=1
26394      fi
26395    done
26396    if test $apr_removed = "1"; then
26397      test "x$silent" != "xyes" && echo "  removed \"-static\" from logresolve_LTFLAGS"
26398      logresolve_LTFLAGS=$apr_new_bugger
26399    fi
26400  fi
26401
26402fi
26403
26404fi
26405
26406
26407  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logresolve_LTFLAGS"
26408
26409
26410
26411# Check whether --enable-static-htdbm was given.
26412if test "${enable_static_htdbm+set}" = set; then :
26413  enableval=$enable_static_htdbm;
26414if test "$enableval" = "yes" ; then
26415
26416  if test "x$htdbm_LTFLAGS" = "x"; then
26417    test "x$silent" != "xyes" && echo "  setting htdbm_LTFLAGS to \"-static\""
26418    htdbm_LTFLAGS="-static"
26419  else
26420    apr_addto_bugger="-static"
26421    for i in $apr_addto_bugger; do
26422      apr_addto_duplicate="0"
26423      for j in $htdbm_LTFLAGS; do
26424        if test "x$i" = "x$j"; then
26425          apr_addto_duplicate="1"
26426          break
26427        fi
26428      done
26429      if test $apr_addto_duplicate = "0"; then
26430        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdbm_LTFLAGS"
26431        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
26432      fi
26433    done
26434  fi
26435
26436else
26437
26438  if test "x$htdbm_LTFLAGS" = "x-static"; then
26439    test "x$silent" != "xyes" && echo "  nulling htdbm_LTFLAGS"
26440    htdbm_LTFLAGS=""
26441  else
26442    apr_new_bugger=""
26443    apr_removed=0
26444    for i in $htdbm_LTFLAGS; do
26445      if test "x$i" != "x-static"; then
26446        apr_new_bugger="$apr_new_bugger $i"
26447      else
26448        apr_removed=1
26449      fi
26450    done
26451    if test $apr_removed = "1"; then
26452      test "x$silent" != "xyes" && echo "  removed \"-static\" from htdbm_LTFLAGS"
26453      htdbm_LTFLAGS=$apr_new_bugger
26454    fi
26455  fi
26456
26457fi
26458
26459fi
26460
26461
26462  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdbm_LTFLAGS"
26463
26464
26465
26466# Check whether --enable-static-ab was given.
26467if test "${enable_static_ab+set}" = set; then :
26468  enableval=$enable_static_ab;
26469if test "$enableval" = "yes" ; then
26470
26471  if test "x$ab_LTFLAGS" = "x"; then
26472    test "x$silent" != "xyes" && echo "  setting ab_LTFLAGS to \"-static\""
26473    ab_LTFLAGS="-static"
26474  else
26475    apr_addto_bugger="-static"
26476    for i in $apr_addto_bugger; do
26477      apr_addto_duplicate="0"
26478      for j in $ab_LTFLAGS; do
26479        if test "x$i" = "x$j"; then
26480          apr_addto_duplicate="1"
26481          break
26482        fi
26483      done
26484      if test $apr_addto_duplicate = "0"; then
26485        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_LTFLAGS"
26486        ab_LTFLAGS="$ab_LTFLAGS $i"
26487      fi
26488    done
26489  fi
26490
26491else
26492
26493  if test "x$ab_LTFLAGS" = "x-static"; then
26494    test "x$silent" != "xyes" && echo "  nulling ab_LTFLAGS"
26495    ab_LTFLAGS=""
26496  else
26497    apr_new_bugger=""
26498    apr_removed=0
26499    for i in $ab_LTFLAGS; do
26500      if test "x$i" != "x-static"; then
26501        apr_new_bugger="$apr_new_bugger $i"
26502      else
26503        apr_removed=1
26504      fi
26505    done
26506    if test $apr_removed = "1"; then
26507      test "x$silent" != "xyes" && echo "  removed \"-static\" from ab_LTFLAGS"
26508      ab_LTFLAGS=$apr_new_bugger
26509    fi
26510  fi
26511
26512fi
26513
26514fi
26515
26516
26517  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LTFLAGS"
26518
26519
26520
26521# Check whether --enable-static-checkgid was given.
26522if test "${enable_static_checkgid+set}" = set; then :
26523  enableval=$enable_static_checkgid;
26524if test "$enableval" = "yes" ; then
26525
26526  if test "x$checkgid_LTFLAGS" = "x"; then
26527    test "x$silent" != "xyes" && echo "  setting checkgid_LTFLAGS to \"-static\""
26528    checkgid_LTFLAGS="-static"
26529  else
26530    apr_addto_bugger="-static"
26531    for i in $apr_addto_bugger; do
26532      apr_addto_duplicate="0"
26533      for j in $checkgid_LTFLAGS; do
26534        if test "x$i" = "x$j"; then
26535          apr_addto_duplicate="1"
26536          break
26537        fi
26538      done
26539      if test $apr_addto_duplicate = "0"; then
26540        test "x$silent" != "xyes" && echo "  adding \"$i\" to checkgid_LTFLAGS"
26541        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
26542      fi
26543    done
26544  fi
26545
26546else
26547
26548  if test "x$checkgid_LTFLAGS" = "x-static"; then
26549    test "x$silent" != "xyes" && echo "  nulling checkgid_LTFLAGS"
26550    checkgid_LTFLAGS=""
26551  else
26552    apr_new_bugger=""
26553    apr_removed=0
26554    for i in $checkgid_LTFLAGS; do
26555      if test "x$i" != "x-static"; then
26556        apr_new_bugger="$apr_new_bugger $i"
26557      else
26558        apr_removed=1
26559      fi
26560    done
26561    if test $apr_removed = "1"; then
26562      test "x$silent" != "xyes" && echo "  removed \"-static\" from checkgid_LTFLAGS"
26563      checkgid_LTFLAGS=$apr_new_bugger
26564    fi
26565  fi
26566
26567fi
26568
26569fi
26570
26571
26572  APACHE_VAR_SUBST="$APACHE_VAR_SUBST checkgid_LTFLAGS"
26573
26574
26575
26576# Check whether --enable-static-htcacheclean was given.
26577if test "${enable_static_htcacheclean+set}" = set; then :
26578  enableval=$enable_static_htcacheclean;
26579if test "$enableval" = "yes" ; then
26580
26581  if test "x$htcacheclean_LTFLAGS" = "x"; then
26582    test "x$silent" != "xyes" && echo "  setting htcacheclean_LTFLAGS to \"-static\""
26583    htcacheclean_LTFLAGS="-static"
26584  else
26585    apr_addto_bugger="-static"
26586    for i in $apr_addto_bugger; do
26587      apr_addto_duplicate="0"
26588      for j in $htcacheclean_LTFLAGS; do
26589        if test "x$i" = "x$j"; then
26590          apr_addto_duplicate="1"
26591          break
26592        fi
26593      done
26594      if test $apr_addto_duplicate = "0"; then
26595        test "x$silent" != "xyes" && echo "  adding \"$i\" to htcacheclean_LTFLAGS"
26596        htcacheclean_LTFLAGS="$htcacheclean_LTFLAGS $i"
26597      fi
26598    done
26599  fi
26600
26601else
26602
26603  if test "x$htcacheclean_LTFLAGS" = "x-static"; then
26604    test "x$silent" != "xyes" && echo "  nulling htcacheclean_LTFLAGS"
26605    htcacheclean_LTFLAGS=""
26606  else
26607    apr_new_bugger=""
26608    apr_removed=0
26609    for i in $htcacheclean_LTFLAGS; do
26610      if test "x$i" != "x-static"; then
26611        apr_new_bugger="$apr_new_bugger $i"
26612      else
26613        apr_removed=1
26614      fi
26615    done
26616    if test $apr_removed = "1"; then
26617      test "x$silent" != "xyes" && echo "  removed \"-static\" from htcacheclean_LTFLAGS"
26618      htcacheclean_LTFLAGS=$apr_new_bugger
26619    fi
26620  fi
26621
26622fi
26623
26624fi
26625
26626
26627  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htcacheclean_LTFLAGS"
26628
26629
26630
26631# Check whether --enable-static-httxt2dbm was given.
26632if test "${enable_static_httxt2dbm+set}" = set; then :
26633  enableval=$enable_static_httxt2dbm;
26634if test "$enableval" = "yes" ; then
26635
26636  if test "x$httxt2dbm_LTFLAGS" = "x"; then
26637    test "x$silent" != "xyes" && echo "  setting httxt2dbm_LTFLAGS to \"-static\""
26638    httxt2dbm_LTFLAGS="-static"
26639  else
26640    apr_addto_bugger="-static"
26641    for i in $apr_addto_bugger; do
26642      apr_addto_duplicate="0"
26643      for j in $httxt2dbm_LTFLAGS; do
26644        if test "x$i" = "x$j"; then
26645          apr_addto_duplicate="1"
26646          break
26647        fi
26648      done
26649      if test $apr_addto_duplicate = "0"; then
26650        test "x$silent" != "xyes" && echo "  adding \"$i\" to httxt2dbm_LTFLAGS"
26651        httxt2dbm_LTFLAGS="$httxt2dbm_LTFLAGS $i"
26652      fi
26653    done
26654  fi
26655
26656else
26657
26658  if test "x$httxt2dbm" = "x-static"; then
26659    test "x$silent" != "xyes" && echo "  nulling httxt2dbm"
26660    httxt2dbm=""
26661  else
26662    apr_new_bugger=""
26663    apr_removed=0
26664    for i in $httxt2dbm; do
26665      if test "x$i" != "x-static"; then
26666        apr_new_bugger="$apr_new_bugger $i"
26667      else
26668        apr_removed=1
26669      fi
26670    done
26671    if test $apr_removed = "1"; then
26672      test "x$silent" != "xyes" && echo "  removed \"-static\" from httxt2dbm"
26673      httxt2dbm=$apr_new_bugger
26674    fi
26675  fi
26676
26677fi
26678
26679fi
26680
26681
26682  APACHE_VAR_SUBST="$APACHE_VAR_SUBST httxt2dbm_LTFLAGS"
26683
26684
26685
26686# Check whether --enable-static-fcgistarter was given.
26687if test "${enable_static_fcgistarter+set}" = set; then :
26688  enableval=$enable_static_fcgistarter;
26689if test "$enableval" = "yes" ; then
26690
26691  if test "x$fcgistarter_LTFLAGS" = "x"; then
26692    test "x$silent" != "xyes" && echo "  setting fcgistarter_LTFLAGS to \"-static\""
26693    fcgistarter_LTFLAGS="-static"
26694  else
26695    apr_addto_bugger="-static"
26696    for i in $apr_addto_bugger; do
26697      apr_addto_duplicate="0"
26698      for j in $fcgistarter_LTFLAGS; do
26699        if test "x$i" = "x$j"; then
26700          apr_addto_duplicate="1"
26701          break
26702        fi
26703      done
26704      if test $apr_addto_duplicate = "0"; then
26705        test "x$silent" != "xyes" && echo "  adding \"$i\" to fcgistarter_LTFLAGS"
26706        fcgistarter_LTFLAGS="$fcgistarter_LTFLAGS $i"
26707      fi
26708    done
26709  fi
26710
26711else
26712
26713  if test "x$fcgistarter" = "x-static"; then
26714    test "x$silent" != "xyes" && echo "  nulling fcgistarter"
26715    fcgistarter=""
26716  else
26717    apr_new_bugger=""
26718    apr_removed=0
26719    for i in $fcgistarter; do
26720      if test "x$i" != "x-static"; then
26721        apr_new_bugger="$apr_new_bugger $i"
26722      else
26723        apr_removed=1
26724      fi
26725    done
26726    if test $apr_removed = "1"; then
26727      test "x$silent" != "xyes" && echo "  removed \"-static\" from fcgistarter"
26728      fcgistarter=$apr_new_bugger
26729    fi
26730  fi
26731
26732fi
26733
26734fi
26735
26736
26737  APACHE_VAR_SUBST="$APACHE_VAR_SUBST fcgistarter_LTFLAGS"
26738
26739
26740
26741# Configure or check which of the non-portable support programs can be enabled.
26742
26743NONPORTABLE_SUPPORT=""
26744case $host in
26745    *mingw*)
26746        ;;
26747    *)
26748        NONPORTABLE_SUPPORT="checkgid fcgistarter"
26749        ;;
26750esac
26751
26752  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NONPORTABLE_SUPPORT"
26753
26754
26755
26756# Configure the ulimit -n command used by apachectl.
26757
26758case $host in
26759    *aix*)
26760        # this works in any locale, unlike the default command below, which
26761        # fails in a non-English locale if the hard limit is unlimited
26762        # since the display of the limit will translate "unlimited", but
26763        # ulimit only accepts English "unlimited" on input
26764        APACHECTL_ULIMIT="ulimit -S -n unlimited"
26765        ;;
26766    *alpha*-dec-osf*)
26767        # Tru64: -H is for setting, not retrieving
26768        APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
26769        ;;
26770    *)
26771        if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT >/dev/null 2>&1; then
26772            APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
26773        else
26774            APACHECTL_ULIMIT=""
26775        fi
26776        ;;
26777esac
26778
26779  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APACHECTL_ULIMIT"
26780
26781
26782
26783
26784  current_dir=proxy/balancers
26785  modpath_current=modules/proxy/balancers
26786  modpath_static=
26787  modpath_shared=
26788  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
26789    eval MOD_$var=
26790  done
26791  test -d proxy/balancers || $srcdir/build/mkdir.sh $modpath_current
26792  > $modpath_current/modules.mk
26793
26794
26795
26796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_byrequests" >&5
26797$as_echo_n "checking whether to enable mod_lbmethod_byrequests... " >&6; }
26798    # Check whether --enable-lbmethod-byrequests was given.
26799if test "${enable_lbmethod_byrequests+set}" = set; then :
26800  enableval=$enable_lbmethod_byrequests; force_lbmethod_byrequests=$enableval
26801else
26802  enable_lbmethod_byrequests=$proxy_mods_enable
26803fi
26804
26805    _apmod_extra_msg=""
26806        case "$enable_lbmethod_byrequests" in
26807    yes|static|shared)
26808      _apmod_required="yes"
26809      ;;
26810    *)
26811      case "$module_selection" in
26812      reallyall|all|most)
26813        _apmod_required="no"
26814        ;;
26815      *)
26816        _apmod_required="yes"
26817        ;;
26818      esac
26819  esac
26820  if test "$enable_lbmethod_byrequests" = "static"; then
26821    enable_lbmethod_byrequests=static
26822  elif test "$enable_lbmethod_byrequests" = "yes"; then
26823    enable_lbmethod_byrequests=$module_default
26824  elif test "$enable_lbmethod_byrequests" = "most"; then
26825    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
26826            "$module_selection" = "reallyall"
26827    then
26828      enable_lbmethod_byrequests=$module_default
26829    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
26830      enable_lbmethod_byrequests=no
26831    fi
26832    _apmod_extra_msg=" ($module_selection)"
26833  elif test "$enable_lbmethod_byrequests" = "maybe-all"; then
26834    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
26835    then
26836      enable_lbmethod_byrequests=$module_default
26837      _apmod_extra_msg=" ($module_selection)"
26838    else
26839      enable_lbmethod_byrequests=no
26840    fi
26841  elif test "$enable_lbmethod_byrequests" = "no" -a "$module_selection" = "reallyall" -a \
26842            "$force_lbmethod_byrequests" != "no" ; then
26843      enable_lbmethod_byrequests=$module_default
26844      _apmod_extra_msg=" ($module_selection)"
26845  fi
26846  if test "$enable_lbmethod_byrequests" != "no"; then
26847            :
26848  fi
26849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_byrequests$_apmod_extra_msg" >&5
26850$as_echo "$enable_lbmethod_byrequests$_apmod_extra_msg" >&6; }
26851  if test "$enable_lbmethod_byrequests" != "no"; then
26852    case "$enable_lbmethod_byrequests" in
26853    static*)
26854      MODLIST="$MODLIST lbmethod_byrequests"
26855      if test "lbmethod_byrequests" = "so"; then
26856          sharedobjs=yes
26857      fi
26858      shared="";;
26859    *)
26860      enable_lbmethod_byrequests=`echo $enable_lbmethod_byrequests|sed 's/shared,*//'`
26861      sharedobjs=yes
26862      shared=yes
26863      DSO_MODULES="$DSO_MODULES lbmethod_byrequests"
26864      if test "$proxy_mods_enable" = "yes" ; then
26865        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_byrequests"
26866      fi
26867      ;;
26868    esac
26869
26870
26871  if test -z ""; then
26872    objects="mod_lbmethod_byrequests.lo"
26873  else
26874    objects=""
26875  fi
26876
26877  if test -z "$module_standalone"; then
26878    if test -z "$shared"; then
26879      # The filename of a convenience library must have a "lib" prefix:
26880      libname="libmod_lbmethod_byrequests.la"
26881      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
26882      modpath_static="$modpath_static $libname"
26883      cat >>$modpath_current/modules.mk<<EOF
26884$libname: $objects
26885	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYREQUESTS_LDADD)
26886EOF
26887      if test ! -z "\$(MOD_LBMETHOD_BYREQUESTS_LDADD)"; then
26888
26889  if test "x$AP_LIBS" = "x"; then
26890    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYREQUESTS_LDADD)\""
26891    AP_LIBS="\$(MOD_LBMETHOD_BYREQUESTS_LDADD)"
26892  else
26893    apr_addto_bugger="\$(MOD_LBMETHOD_BYREQUESTS_LDADD)"
26894    for i in $apr_addto_bugger; do
26895      apr_addto_duplicate="0"
26896      for j in $AP_LIBS; do
26897        if test "x$i" = "x$j"; then
26898          apr_addto_duplicate="1"
26899          break
26900        fi
26901      done
26902      if test $apr_addto_duplicate = "0"; then
26903        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
26904        AP_LIBS="$AP_LIBS $i"
26905      fi
26906    done
26907  fi
26908
26909      fi
26910    else
26911      apache_need_shared=yes
26912      libname="mod_lbmethod_byrequests.la"
26913      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
26914      modpath_shared="$modpath_shared $libname"
26915      cat >>$modpath_current/modules.mk<<EOF
26916$libname: $shobjects
26917	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYREQUESTS_LDADD)
26918EOF
26919    fi
26920  fi
26921
26922
26923  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYREQUESTS_LDADD"
26924
26925
26926
26927  fi
26928
26929
26930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bytraffic" >&5
26931$as_echo_n "checking whether to enable mod_lbmethod_bytraffic... " >&6; }
26932    # Check whether --enable-lbmethod-bytraffic was given.
26933if test "${enable_lbmethod_bytraffic+set}" = set; then :
26934  enableval=$enable_lbmethod_bytraffic; force_lbmethod_bytraffic=$enableval
26935else
26936  enable_lbmethod_bytraffic=$proxy_mods_enable
26937fi
26938
26939    _apmod_extra_msg=""
26940        case "$enable_lbmethod_bytraffic" in
26941    yes|static|shared)
26942      _apmod_required="yes"
26943      ;;
26944    *)
26945      case "$module_selection" in
26946      reallyall|all|most)
26947        _apmod_required="no"
26948        ;;
26949      *)
26950        _apmod_required="yes"
26951        ;;
26952      esac
26953  esac
26954  if test "$enable_lbmethod_bytraffic" = "static"; then
26955    enable_lbmethod_bytraffic=static
26956  elif test "$enable_lbmethod_bytraffic" = "yes"; then
26957    enable_lbmethod_bytraffic=$module_default
26958  elif test "$enable_lbmethod_bytraffic" = "most"; then
26959    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
26960            "$module_selection" = "reallyall"
26961    then
26962      enable_lbmethod_bytraffic=$module_default
26963    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
26964      enable_lbmethod_bytraffic=no
26965    fi
26966    _apmod_extra_msg=" ($module_selection)"
26967  elif test "$enable_lbmethod_bytraffic" = "maybe-all"; then
26968    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
26969    then
26970      enable_lbmethod_bytraffic=$module_default
26971      _apmod_extra_msg=" ($module_selection)"
26972    else
26973      enable_lbmethod_bytraffic=no
26974    fi
26975  elif test "$enable_lbmethod_bytraffic" = "no" -a "$module_selection" = "reallyall" -a \
26976            "$force_lbmethod_bytraffic" != "no" ; then
26977      enable_lbmethod_bytraffic=$module_default
26978      _apmod_extra_msg=" ($module_selection)"
26979  fi
26980  if test "$enable_lbmethod_bytraffic" != "no"; then
26981            :
26982  fi
26983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_bytraffic$_apmod_extra_msg" >&5
26984$as_echo "$enable_lbmethod_bytraffic$_apmod_extra_msg" >&6; }
26985  if test "$enable_lbmethod_bytraffic" != "no"; then
26986    case "$enable_lbmethod_bytraffic" in
26987    static*)
26988      MODLIST="$MODLIST lbmethod_bytraffic"
26989      if test "lbmethod_bytraffic" = "so"; then
26990          sharedobjs=yes
26991      fi
26992      shared="";;
26993    *)
26994      enable_lbmethod_bytraffic=`echo $enable_lbmethod_bytraffic|sed 's/shared,*//'`
26995      sharedobjs=yes
26996      shared=yes
26997      DSO_MODULES="$DSO_MODULES lbmethod_bytraffic"
26998      if test "$proxy_mods_enable" = "yes" ; then
26999        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_bytraffic"
27000      fi
27001      ;;
27002    esac
27003
27004
27005  if test -z ""; then
27006    objects="mod_lbmethod_bytraffic.lo"
27007  else
27008    objects=""
27009  fi
27010
27011  if test -z "$module_standalone"; then
27012    if test -z "$shared"; then
27013      # The filename of a convenience library must have a "lib" prefix:
27014      libname="libmod_lbmethod_bytraffic.la"
27015      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
27016      modpath_static="$modpath_static $libname"
27017      cat >>$modpath_current/modules.mk<<EOF
27018$libname: $objects
27019	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYTRAFFIC_LDADD)
27020EOF
27021      if test ! -z "\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)"; then
27022
27023  if test "x$AP_LIBS" = "x"; then
27024    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)\""
27025    AP_LIBS="\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)"
27026  else
27027    apr_addto_bugger="\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)"
27028    for i in $apr_addto_bugger; do
27029      apr_addto_duplicate="0"
27030      for j in $AP_LIBS; do
27031        if test "x$i" = "x$j"; then
27032          apr_addto_duplicate="1"
27033          break
27034        fi
27035      done
27036      if test $apr_addto_duplicate = "0"; then
27037        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27038        AP_LIBS="$AP_LIBS $i"
27039      fi
27040    done
27041  fi
27042
27043      fi
27044    else
27045      apache_need_shared=yes
27046      libname="mod_lbmethod_bytraffic.la"
27047      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27048      modpath_shared="$modpath_shared $libname"
27049      cat >>$modpath_current/modules.mk<<EOF
27050$libname: $shobjects
27051	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYTRAFFIC_LDADD)
27052EOF
27053    fi
27054  fi
27055
27056
27057  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYTRAFFIC_LDADD"
27058
27059
27060
27061  fi
27062
27063
27064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bybusyness" >&5
27065$as_echo_n "checking whether to enable mod_lbmethod_bybusyness... " >&6; }
27066    # Check whether --enable-lbmethod-bybusyness was given.
27067if test "${enable_lbmethod_bybusyness+set}" = set; then :
27068  enableval=$enable_lbmethod_bybusyness; force_lbmethod_bybusyness=$enableval
27069else
27070  enable_lbmethod_bybusyness=$proxy_mods_enable
27071fi
27072
27073    _apmod_extra_msg=""
27074        case "$enable_lbmethod_bybusyness" in
27075    yes|static|shared)
27076      _apmod_required="yes"
27077      ;;
27078    *)
27079      case "$module_selection" in
27080      reallyall|all|most)
27081        _apmod_required="no"
27082        ;;
27083      *)
27084        _apmod_required="yes"
27085        ;;
27086      esac
27087  esac
27088  if test "$enable_lbmethod_bybusyness" = "static"; then
27089    enable_lbmethod_bybusyness=static
27090  elif test "$enable_lbmethod_bybusyness" = "yes"; then
27091    enable_lbmethod_bybusyness=$module_default
27092  elif test "$enable_lbmethod_bybusyness" = "most"; then
27093    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
27094            "$module_selection" = "reallyall"
27095    then
27096      enable_lbmethod_bybusyness=$module_default
27097    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
27098      enable_lbmethod_bybusyness=no
27099    fi
27100    _apmod_extra_msg=" ($module_selection)"
27101  elif test "$enable_lbmethod_bybusyness" = "maybe-all"; then
27102    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
27103    then
27104      enable_lbmethod_bybusyness=$module_default
27105      _apmod_extra_msg=" ($module_selection)"
27106    else
27107      enable_lbmethod_bybusyness=no
27108    fi
27109  elif test "$enable_lbmethod_bybusyness" = "no" -a "$module_selection" = "reallyall" -a \
27110            "$force_lbmethod_bybusyness" != "no" ; then
27111      enable_lbmethod_bybusyness=$module_default
27112      _apmod_extra_msg=" ($module_selection)"
27113  fi
27114  if test "$enable_lbmethod_bybusyness" != "no"; then
27115            :
27116  fi
27117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_bybusyness$_apmod_extra_msg" >&5
27118$as_echo "$enable_lbmethod_bybusyness$_apmod_extra_msg" >&6; }
27119  if test "$enable_lbmethod_bybusyness" != "no"; then
27120    case "$enable_lbmethod_bybusyness" in
27121    static*)
27122      MODLIST="$MODLIST lbmethod_bybusyness"
27123      if test "lbmethod_bybusyness" = "so"; then
27124          sharedobjs=yes
27125      fi
27126      shared="";;
27127    *)
27128      enable_lbmethod_bybusyness=`echo $enable_lbmethod_bybusyness|sed 's/shared,*//'`
27129      sharedobjs=yes
27130      shared=yes
27131      DSO_MODULES="$DSO_MODULES lbmethod_bybusyness"
27132      if test "$proxy_mods_enable" = "yes" ; then
27133        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_bybusyness"
27134      fi
27135      ;;
27136    esac
27137
27138
27139  if test -z ""; then
27140    objects="mod_lbmethod_bybusyness.lo"
27141  else
27142    objects=""
27143  fi
27144
27145  if test -z "$module_standalone"; then
27146    if test -z "$shared"; then
27147      # The filename of a convenience library must have a "lib" prefix:
27148      libname="libmod_lbmethod_bybusyness.la"
27149      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
27150      modpath_static="$modpath_static $libname"
27151      cat >>$modpath_current/modules.mk<<EOF
27152$libname: $objects
27153	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYBUSYNESS_LDADD)
27154EOF
27155      if test ! -z "\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"; then
27156
27157  if test "x$AP_LIBS" = "x"; then
27158    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)\""
27159    AP_LIBS="\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"
27160  else
27161    apr_addto_bugger="\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"
27162    for i in $apr_addto_bugger; do
27163      apr_addto_duplicate="0"
27164      for j in $AP_LIBS; do
27165        if test "x$i" = "x$j"; then
27166          apr_addto_duplicate="1"
27167          break
27168        fi
27169      done
27170      if test $apr_addto_duplicate = "0"; then
27171        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27172        AP_LIBS="$AP_LIBS $i"
27173      fi
27174    done
27175  fi
27176
27177      fi
27178    else
27179      apache_need_shared=yes
27180      libname="mod_lbmethod_bybusyness.la"
27181      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27182      modpath_shared="$modpath_shared $libname"
27183      cat >>$modpath_current/modules.mk<<EOF
27184$libname: $shobjects
27185	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYBUSYNESS_LDADD)
27186EOF
27187    fi
27188  fi
27189
27190
27191  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYBUSYNESS_LDADD"
27192
27193
27194
27195  fi
27196
27197
27198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_heartbeat" >&5
27199$as_echo_n "checking whether to enable mod_lbmethod_heartbeat... " >&6; }
27200    # Check whether --enable-lbmethod-heartbeat was given.
27201if test "${enable_lbmethod_heartbeat+set}" = set; then :
27202  enableval=$enable_lbmethod_heartbeat; force_lbmethod_heartbeat=$enableval
27203else
27204  enable_lbmethod_heartbeat=$proxy_mods_enable
27205fi
27206
27207    _apmod_extra_msg=""
27208        case "$enable_lbmethod_heartbeat" in
27209    yes|static|shared)
27210      _apmod_required="yes"
27211      ;;
27212    *)
27213      case "$module_selection" in
27214      reallyall|all|most)
27215        _apmod_required="no"
27216        ;;
27217      *)
27218        _apmod_required="yes"
27219        ;;
27220      esac
27221  esac
27222  if test "$enable_lbmethod_heartbeat" = "static"; then
27223    enable_lbmethod_heartbeat=static
27224  elif test "$enable_lbmethod_heartbeat" = "yes"; then
27225    enable_lbmethod_heartbeat=$module_default
27226  elif test "$enable_lbmethod_heartbeat" = "most"; then
27227    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
27228            "$module_selection" = "reallyall"
27229    then
27230      enable_lbmethod_heartbeat=$module_default
27231    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
27232      enable_lbmethod_heartbeat=no
27233    fi
27234    _apmod_extra_msg=" ($module_selection)"
27235  elif test "$enable_lbmethod_heartbeat" = "maybe-all"; then
27236    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
27237    then
27238      enable_lbmethod_heartbeat=$module_default
27239      _apmod_extra_msg=" ($module_selection)"
27240    else
27241      enable_lbmethod_heartbeat=no
27242    fi
27243  elif test "$enable_lbmethod_heartbeat" = "no" -a "$module_selection" = "reallyall" -a \
27244            "$force_lbmethod_heartbeat" != "no" ; then
27245      enable_lbmethod_heartbeat=$module_default
27246      _apmod_extra_msg=" ($module_selection)"
27247  fi
27248  if test "$enable_lbmethod_heartbeat" != "no"; then
27249            :
27250  fi
27251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_heartbeat$_apmod_extra_msg" >&5
27252$as_echo "$enable_lbmethod_heartbeat$_apmod_extra_msg" >&6; }
27253  if test "$enable_lbmethod_heartbeat" != "no"; then
27254    case "$enable_lbmethod_heartbeat" in
27255    static*)
27256      MODLIST="$MODLIST lbmethod_heartbeat"
27257      if test "lbmethod_heartbeat" = "so"; then
27258          sharedobjs=yes
27259      fi
27260      shared="";;
27261    *)
27262      enable_lbmethod_heartbeat=`echo $enable_lbmethod_heartbeat|sed 's/shared,*//'`
27263      sharedobjs=yes
27264      shared=yes
27265      DSO_MODULES="$DSO_MODULES lbmethod_heartbeat"
27266      if test "$proxy_mods_enable" = "yes" ; then
27267        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_heartbeat"
27268      fi
27269      ;;
27270    esac
27271
27272
27273  if test -z ""; then
27274    objects="mod_lbmethod_heartbeat.lo"
27275  else
27276    objects=""
27277  fi
27278
27279  if test -z "$module_standalone"; then
27280    if test -z "$shared"; then
27281      # The filename of a convenience library must have a "lib" prefix:
27282      libname="libmod_lbmethod_heartbeat.la"
27283      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
27284      modpath_static="$modpath_static $libname"
27285      cat >>$modpath_current/modules.mk<<EOF
27286$libname: $objects
27287	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_HEARTBEAT_LDADD)
27288EOF
27289      if test ! -z "\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"; then
27290
27291  if test "x$AP_LIBS" = "x"; then
27292    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_HEARTBEAT_LDADD)\""
27293    AP_LIBS="\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"
27294  else
27295    apr_addto_bugger="\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"
27296    for i in $apr_addto_bugger; do
27297      apr_addto_duplicate="0"
27298      for j in $AP_LIBS; do
27299        if test "x$i" = "x$j"; then
27300          apr_addto_duplicate="1"
27301          break
27302        fi
27303      done
27304      if test $apr_addto_duplicate = "0"; then
27305        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27306        AP_LIBS="$AP_LIBS $i"
27307      fi
27308    done
27309  fi
27310
27311      fi
27312    else
27313      apache_need_shared=yes
27314      libname="mod_lbmethod_heartbeat.la"
27315      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27316      modpath_shared="$modpath_shared $libname"
27317      cat >>$modpath_current/modules.mk<<EOF
27318$libname: $shobjects
27319	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_HEARTBEAT_LDADD)
27320EOF
27321    fi
27322  fi
27323
27324
27325  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_HEARTBEAT_LDADD"
27326
27327
27328
27329  fi
27330
27331
27332
27333  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
27334  echo "static = $modpath_static" >> $modpath_current/modules.mk
27335  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
27336  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
27337    if eval val=\"\$MOD_$var\"; test -n "$val"; then
27338      echo "MOD_$var = $val" >> $modpath_current/modules.mk
27339    fi
27340  done
27341  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
27342    MODULE_DIRS="$MODULE_DIRS $current_dir"
27343  else
27344    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
27345  fi
27346
27347  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
27348
27349
27350
27351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which MPM to use by default" >&5
27352$as_echo_n "checking which MPM to use by default... " >&6; }
27353
27354# Check whether --with-mpm was given.
27355if test "${with_mpm+set}" = set; then :
27356  withval=$with_mpm;
27357    default_mpm=$withval
27358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
27359$as_echo "$withval" >&6; };
27360
27361else
27362
27363                if ap_mpm_is_supported "winnt"; then
27364        default_mpm=winnt
27365        { $as_echo "$as_me:${as_lineno-$LINENO}: result: winnt" >&5
27366$as_echo "winnt" >&6; }
27367    elif ap_mpm_is_supported "mpmt_os2"; then
27368        default_mpm=mpmt_os2
27369        { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpmt_os2" >&5
27370$as_echo "mpmt_os2" >&6; }
27371    elif ap_mpm_is_supported "event"; then
27372        default_mpm=event
27373        { $as_echo "$as_me:${as_lineno-$LINENO}: result: event" >&5
27374$as_echo "event" >&6; }
27375    elif ap_mpm_is_supported "worker"; then
27376        default_mpm=worker
27377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: worker - event is not supported" >&5
27378$as_echo "worker - event is not supported" >&6; }
27379    else
27380        default_mpm=prefork
27381        { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefork - event and worker are not supported" >&5
27382$as_echo "prefork - event and worker are not supported" >&6; }
27383    fi
27384
27385fi
27386
27387
27388
27389    if ap_mpm_is_enabled $default_mpm; then
27390        :
27391    else
27392        eval "ap_enabled_mpm_$default_mpm=yes"
27393        ap_enabled_mpms="$ap_enabled_mpms $default_mpm "
27394    fi
27395
27396
27397# Check whether --enable-mpms-shared was given.
27398if test "${enable_mpms_shared+set}" = set; then :
27399  enableval=$enable_mpms_shared;
27400    if test "$enableval" = "no"; then
27401        mpm_build=static
27402    else
27403        mpm_build=shared
27404        if test "$enableval" = "yes"; then
27405            enableval=$default_mpm
27406        fi
27407        for i in $enableval; do
27408            if test "$i" = "all"; then
27409                for j in $ap_supported_shared_mpms; do
27410                    eval "enable_mpm_$j=shared"
27411
27412    if ap_mpm_is_enabled $j; then
27413        :
27414    else
27415        eval "ap_enabled_mpm_$j=yes"
27416        ap_enabled_mpms="$ap_enabled_mpms $j "
27417    fi
27418
27419                done
27420            else
27421                i=`echo $i | sed 's/-/_/g'`
27422                if ap_mpm_supports_shared $i; then
27423                    eval "enable_mpm_$i=shared"
27424
27425    if ap_mpm_is_enabled $i; then
27426        :
27427    else
27428        eval "ap_enabled_mpm_$i=yes"
27429        ap_enabled_mpms="$ap_enabled_mpms $i "
27430    fi
27431
27432                else
27433                    as_fn_error $? "MPM $i does not support dynamic loading." "$LINENO" 5
27434                fi
27435            fi
27436        done
27437    fi
27438
27439else
27440  mpm_build=static
27441fi
27442
27443
27444for i in $ap_enabled_mpms; do
27445    if ap_mpm_is_supported $i; then
27446        :
27447    else
27448        as_fn_error $? "MPM $i is not supported on this platform." "$LINENO" 5
27449    fi
27450done
27451
27452if test $mpm_build = "shared"; then
27453    eval "tmp=\$enable_mpm_$default_mpm"
27454    if test "$tmp" != "shared"; then
27455        as_fn_error $? "The default MPM ($default_mpm) must be included in --enable-mpms-shared.  Use --with-mpm to change the default MPM." "$LINENO" 5
27456    fi
27457fi
27458
27459
27460  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/Makefile"
27461
27462
27463if test $mpm_build = "shared"; then
27464    MPM_LIB=""
27465else
27466    MPM_LIB=server/mpm/$default_mpm/lib${default_mpm}.la
27467    MODLIST="$MODLIST mpm_${default_mpm}"
27468fi
27469
27470MPM_SUBDIRS=$ap_enabled_mpms
27471
27472  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_SUBDIRS"
27473
27474
27475
27476  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_LIB"
27477
27478
27479
27480
27481
27482  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MPM_EVENT_LDADD"
27483
27484
27485
27486
27487    if ap_mpm_is_enabled event; then
27488        if test -z "event.lo fdqueue.lo pod.lo"; then
27489            objects="event.lo"
27490        else
27491            objects="event.lo fdqueue.lo pod.lo"
27492        fi
27493
27494        if test -z ""; then
27495            mpmpath="server/mpm/event"
27496        else
27497            mpmpath=
27498        fi
27499
27500                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
27501
27502
27503  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
27504
27505
27506        if test -z "$enable_mpm_event"; then
27507
27508  if test "x$AP_LIBS" = "x"; then
27509    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MPM_EVENT_LDADD)\""
27510    AP_LIBS="\$(MOD_MPM_EVENT_LDADD)"
27511  else
27512    apr_addto_bugger="\$(MOD_MPM_EVENT_LDADD)"
27513    for i in $apr_addto_bugger; do
27514      apr_addto_duplicate="0"
27515      for j in $AP_LIBS; do
27516        if test "x$i" = "x$j"; then
27517          apr_addto_duplicate="1"
27518          break
27519        fi
27520      done
27521      if test $apr_addto_duplicate = "0"; then
27522        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27523        AP_LIBS="$AP_LIBS $i"
27524      fi
27525    done
27526  fi
27527
27528            libname="libevent.la"
27529            cat >$mpmpath/modules.mk<<EOF
27530$libname: $objects
27531	\$(MOD_LINK) $objects
27532DISTCLEAN_TARGETS = modules.mk
27533static = $libname
27534shared =
27535EOF
27536        else
27537            apache_need_shared=yes
27538            libname="mod_mpm_event.la"
27539            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27540            cat >$mpmpath/modules.mk<<EOF
27541$libname: $shobjects
27542	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_MPM_EVENT_LDADD)
27543DISTCLEAN_TARGETS = modules.mk
27544static =
27545shared = $libname
27546EOF
27547            # add default MPM to LoadModule list
27548            if test event = $default_mpm; then
27549                DSO_MODULES="$DSO_MODULES mpm_event"
27550                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_event"
27551            fi
27552        fi
27553
27554    for ac_func in pthread_kill
27555do :
27556  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
27557if test "x$ac_cv_func_pthread_kill" = xyes; then :
27558  cat >>confdefs.h <<_ACEOF
27559#define HAVE_PTHREAD_KILL 1
27560_ACEOF
27561
27562fi
27563done
27564
27565
27566    fi
27567
27568
27569
27570    if ap_mpm_is_enabled prefork; then
27571        if test -z ""; then
27572            objects="prefork.lo"
27573        else
27574            objects=""
27575        fi
27576
27577        if test -z ""; then
27578            mpmpath="server/mpm/prefork"
27579        else
27580            mpmpath=
27581        fi
27582
27583                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
27584
27585
27586  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
27587
27588
27589        if test -z "$enable_mpm_prefork"; then
27590
27591  if test "x$AP_LIBS" = "x"; then
27592    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
27593    AP_LIBS=""
27594  else
27595    apr_addto_bugger=""
27596    for i in $apr_addto_bugger; do
27597      apr_addto_duplicate="0"
27598      for j in $AP_LIBS; do
27599        if test "x$i" = "x$j"; then
27600          apr_addto_duplicate="1"
27601          break
27602        fi
27603      done
27604      if test $apr_addto_duplicate = "0"; then
27605        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27606        AP_LIBS="$AP_LIBS $i"
27607      fi
27608    done
27609  fi
27610
27611            libname="libprefork.la"
27612            cat >$mpmpath/modules.mk<<EOF
27613$libname: $objects
27614	\$(MOD_LINK) $objects
27615DISTCLEAN_TARGETS = modules.mk
27616static = $libname
27617shared =
27618EOF
27619        else
27620            apache_need_shared=yes
27621            libname="mod_mpm_prefork.la"
27622            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27623            cat >$mpmpath/modules.mk<<EOF
27624$libname: $shobjects
27625	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
27626DISTCLEAN_TARGETS = modules.mk
27627static =
27628shared = $libname
27629EOF
27630            # add default MPM to LoadModule list
27631            if test prefork = $default_mpm; then
27632                DSO_MODULES="$DSO_MODULES mpm_prefork"
27633                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_prefork"
27634            fi
27635        fi
27636
27637    fi
27638
27639
27640winnt_objects="child.lo mpm_winnt.lo nt_eventlog.lo service.lo"
27641
27642    if ap_mpm_is_enabled winnt; then
27643        if test -z "$winnt_objects"; then
27644            objects="winnt.lo"
27645        else
27646            objects="$winnt_objects"
27647        fi
27648
27649        if test -z ""; then
27650            mpmpath="server/mpm/winnt"
27651        else
27652            mpmpath=
27653        fi
27654
27655                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
27656
27657
27658  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
27659
27660
27661        if test -z "$enable_mpm_winnt"; then
27662
27663  if test "x$AP_LIBS" = "x"; then
27664    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
27665    AP_LIBS=""
27666  else
27667    apr_addto_bugger=""
27668    for i in $apr_addto_bugger; do
27669      apr_addto_duplicate="0"
27670      for j in $AP_LIBS; do
27671        if test "x$i" = "x$j"; then
27672          apr_addto_duplicate="1"
27673          break
27674        fi
27675      done
27676      if test $apr_addto_duplicate = "0"; then
27677        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27678        AP_LIBS="$AP_LIBS $i"
27679      fi
27680    done
27681  fi
27682
27683            libname="libwinnt.la"
27684            cat >$mpmpath/modules.mk<<EOF
27685$libname: $objects
27686	\$(MOD_LINK) $objects
27687DISTCLEAN_TARGETS = modules.mk
27688static = $libname
27689shared =
27690EOF
27691        else
27692            apache_need_shared=yes
27693            libname="mod_mpm_winnt.la"
27694            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27695            cat >$mpmpath/modules.mk<<EOF
27696$libname: $shobjects
27697	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
27698DISTCLEAN_TARGETS = modules.mk
27699static =
27700shared = $libname
27701EOF
27702            # add default MPM to LoadModule list
27703            if test winnt = $default_mpm; then
27704                DSO_MODULES="$DSO_MODULES mpm_winnt"
27705                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_winnt"
27706            fi
27707        fi
27708
27709    fi
27710
27711
27712
27713
27714    if ap_mpm_is_enabled worker; then
27715        if test -z "worker.lo fdqueue.lo pod.lo"; then
27716            objects="worker.lo"
27717        else
27718            objects="worker.lo fdqueue.lo pod.lo"
27719        fi
27720
27721        if test -z ""; then
27722            mpmpath="server/mpm/worker"
27723        else
27724            mpmpath=
27725        fi
27726
27727                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
27728
27729
27730  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
27731
27732
27733        if test -z "$enable_mpm_worker"; then
27734
27735  if test "x$AP_LIBS" = "x"; then
27736    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
27737    AP_LIBS=""
27738  else
27739    apr_addto_bugger=""
27740    for i in $apr_addto_bugger; do
27741      apr_addto_duplicate="0"
27742      for j in $AP_LIBS; do
27743        if test "x$i" = "x$j"; then
27744          apr_addto_duplicate="1"
27745          break
27746        fi
27747      done
27748      if test $apr_addto_duplicate = "0"; then
27749        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27750        AP_LIBS="$AP_LIBS $i"
27751      fi
27752    done
27753  fi
27754
27755            libname="libworker.la"
27756            cat >$mpmpath/modules.mk<<EOF
27757$libname: $objects
27758	\$(MOD_LINK) $objects
27759DISTCLEAN_TARGETS = modules.mk
27760static = $libname
27761shared =
27762EOF
27763        else
27764            apache_need_shared=yes
27765            libname="mod_mpm_worker.la"
27766            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27767            cat >$mpmpath/modules.mk<<EOF
27768$libname: $shobjects
27769	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
27770DISTCLEAN_TARGETS = modules.mk
27771static =
27772shared = $libname
27773EOF
27774            # add default MPM to LoadModule list
27775            if test worker = $default_mpm; then
27776                DSO_MODULES="$DSO_MODULES mpm_worker"
27777                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_worker"
27778            fi
27779        fi
27780
27781    for ac_func in pthread_kill
27782do :
27783  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
27784if test "x$ac_cv_func_pthread_kill" = xyes; then :
27785  cat >>confdefs.h <<_ACEOF
27786#define HAVE_PTHREAD_KILL 1
27787_ACEOF
27788
27789fi
27790done
27791
27792
27793    fi
27794
27795
27796
27797
27798  current_dir=arch/unix
27799  modpath_current=modules/arch/unix
27800  modpath_static=
27801  modpath_shared=
27802  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
27803    eval MOD_$var=
27804  done
27805  test -d arch/unix || $srcdir/build/mkdir.sh $modpath_current
27806  > $modpath_current/modules.mk
27807
27808
27809if ap_mpm_is_enabled "worker" \
27810   || ap_mpm_is_enabled "event" \
27811   || ap_mpm_is_enabled "prefork"; then
27812    unixd_mods_enable=yes
27813else
27814    unixd_mods_enable=no
27815fi
27816
27817
27818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_unixd" >&5
27819$as_echo_n "checking whether to enable mod_unixd... " >&6; }
27820    # Check whether --enable-unixd was given.
27821if test "${enable_unixd+set}" = set; then :
27822  enableval=$enable_unixd; force_unixd=$enableval
27823else
27824  enable_unixd=$unixd_mods_enable
27825fi
27826
27827    _apmod_extra_msg=""
27828        case "$enable_unixd" in
27829    yes|static|shared)
27830      _apmod_required="yes"
27831      ;;
27832    *)
27833      case "$module_selection" in
27834      reallyall|all|most)
27835        _apmod_required="no"
27836        ;;
27837      *)
27838        _apmod_required="yes"
27839        ;;
27840      esac
27841  esac
27842  if test "$enable_unixd" = "static"; then
27843    enable_unixd=static
27844  elif test "$enable_unixd" = "yes"; then
27845    enable_unixd=$module_default
27846  elif test "$enable_unixd" = "most"; then
27847    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
27848            "$module_selection" = "reallyall"
27849    then
27850      enable_unixd=$module_default
27851    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
27852      enable_unixd=no
27853    fi
27854    _apmod_extra_msg=" ($module_selection)"
27855  elif test "$enable_unixd" = "maybe-all"; then
27856    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
27857    then
27858      enable_unixd=$module_default
27859      _apmod_extra_msg=" ($module_selection)"
27860    else
27861      enable_unixd=no
27862    fi
27863  elif test "$enable_unixd" = "no" -a "$module_selection" = "reallyall" -a \
27864            "$force_unixd" != "no" ; then
27865      enable_unixd=$module_default
27866      _apmod_extra_msg=" ($module_selection)"
27867  fi
27868  if test "$enable_unixd" != "no"; then
27869            :
27870  fi
27871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unixd$_apmod_extra_msg" >&5
27872$as_echo "$enable_unixd$_apmod_extra_msg" >&6; }
27873  if test "$enable_unixd" != "no"; then
27874    case "$enable_unixd" in
27875    static*)
27876      MODLIST="$MODLIST unixd"
27877      if test "unixd" = "so"; then
27878          sharedobjs=yes
27879      fi
27880      shared="";;
27881    *)
27882      enable_unixd=`echo $enable_unixd|sed 's/shared,*//'`
27883      sharedobjs=yes
27884      shared=yes
27885      DSO_MODULES="$DSO_MODULES unixd"
27886      if test "$unixd_mods_enable" = "yes" ; then
27887        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},unixd"
27888      fi
27889      ;;
27890    esac
27891
27892
27893  if test -z ""; then
27894    objects="mod_unixd.lo"
27895  else
27896    objects=""
27897  fi
27898
27899  if test -z "$module_standalone"; then
27900    if test -z "$shared"; then
27901      # The filename of a convenience library must have a "lib" prefix:
27902      libname="libmod_unixd.la"
27903      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
27904      modpath_static="$modpath_static $libname"
27905      cat >>$modpath_current/modules.mk<<EOF
27906$libname: $objects
27907	\$(MOD_LINK) $objects \$(MOD_UNIXD_LDADD)
27908EOF
27909      if test ! -z "\$(MOD_UNIXD_LDADD)"; then
27910
27911  if test "x$AP_LIBS" = "x"; then
27912    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_UNIXD_LDADD)\""
27913    AP_LIBS="\$(MOD_UNIXD_LDADD)"
27914  else
27915    apr_addto_bugger="\$(MOD_UNIXD_LDADD)"
27916    for i in $apr_addto_bugger; do
27917      apr_addto_duplicate="0"
27918      for j in $AP_LIBS; do
27919        if test "x$i" = "x$j"; then
27920          apr_addto_duplicate="1"
27921          break
27922        fi
27923      done
27924      if test $apr_addto_duplicate = "0"; then
27925        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
27926        AP_LIBS="$AP_LIBS $i"
27927      fi
27928    done
27929  fi
27930
27931      fi
27932    else
27933      apache_need_shared=yes
27934      libname="mod_unixd.la"
27935      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
27936      modpath_shared="$modpath_shared $libname"
27937      cat >>$modpath_current/modules.mk<<EOF
27938$libname: $shobjects
27939	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_UNIXD_LDADD)
27940EOF
27941    fi
27942  fi
27943
27944
27945  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIXD_LDADD"
27946
27947
27948
27949  fi
27950
27951
27952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_privileges" >&5
27953$as_echo_n "checking whether to enable mod_privileges... " >&6; }
27954    # Check whether --enable-privileges was given.
27955if test "${enable_privileges+set}" = set; then :
27956  enableval=$enable_privileges; force_privileges=$enableval
27957else
27958  enable_privileges=no
27959fi
27960
27961    _apmod_extra_msg=""
27962        case "$enable_privileges" in
27963    yes|static|shared)
27964      _apmod_required="yes"
27965      ;;
27966    *)
27967      case "$module_selection" in
27968      reallyall|all|most)
27969        _apmod_required="no"
27970        ;;
27971      *)
27972        _apmod_required="yes"
27973        ;;
27974      esac
27975  esac
27976  if test "$enable_privileges" = "static"; then
27977    enable_privileges=static
27978  elif test "$enable_privileges" = "yes"; then
27979    enable_privileges=$module_default
27980  elif test "$enable_privileges" = "most"; then
27981    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
27982            "$module_selection" = "reallyall"
27983    then
27984      enable_privileges=$module_default
27985    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
27986      enable_privileges=no
27987    fi
27988    _apmod_extra_msg=" ($module_selection)"
27989  elif test "$enable_privileges" = "maybe-all"; then
27990    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
27991    then
27992      enable_privileges=$module_default
27993      _apmod_extra_msg=" ($module_selection)"
27994    else
27995      enable_privileges=no
27996    fi
27997  elif test "$enable_privileges" = "no" -a "$module_selection" = "reallyall" -a \
27998            "$force_privileges" != "no" ; then
27999      enable_privileges=$module_default
28000      _apmod_extra_msg=" ($module_selection)"
28001  fi
28002  if test "$enable_privileges" != "no"; then
28003            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
28004$as_echo "checking dependencies" >&6; }
28005            :
28006
28007  for ac_header in priv.h
28008do :
28009  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
28010if test "x$ac_cv_header_priv_h" = xyes; then :
28011  cat >>confdefs.h <<_ACEOF
28012#define HAVE_PRIV_H 1
28013_ACEOF
28014 ap_HAVE_PRIV_H="yes"
28015else
28016  ap_HAVE_PRIV_H="no"
28017fi
28018
28019done
28020
28021  if test $ap_HAVE_PRIV_H = "no"; then
28022    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system does not support privileges." >&5
28023$as_echo "$as_me: WARNING: Your system does not support privileges." >&2;}
28024    enable_privileges="no"
28025  fi
28026
28027            :
28028            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_privileges" >&5
28029$as_echo_n "checking whether to enable mod_privileges... " >&6; }
28030            if test "$enable_privileges" = "no"; then
28031              if test "$_apmod_required" = "no"; then
28032                _apmod_extra_msg=" (disabled)"
28033              else
28034                as_fn_error $? "mod_privileges has been requested but can not be built due to prerequisite failures" "$LINENO" 5
28035              fi
28036            fi
28037  fi
28038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_privileges$_apmod_extra_msg" >&5
28039$as_echo "$enable_privileges$_apmod_extra_msg" >&6; }
28040  if test "$enable_privileges" != "no"; then
28041    case "$enable_privileges" in
28042    static*)
28043      MODLIST="$MODLIST privileges"
28044      if test "privileges" = "so"; then
28045          sharedobjs=yes
28046      fi
28047      shared="";;
28048    *)
28049      enable_privileges=`echo $enable_privileges|sed 's/shared,*//'`
28050      sharedobjs=yes
28051      shared=yes
28052      DSO_MODULES="$DSO_MODULES privileges"
28053      if test "no" = "yes" ; then
28054        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},privileges"
28055      fi
28056      ;;
28057    esac
28058
28059
28060  if test -z ""; then
28061    objects="mod_privileges.lo"
28062  else
28063    objects=""
28064  fi
28065
28066  if test -z "$module_standalone"; then
28067    if test -z "$shared"; then
28068      # The filename of a convenience library must have a "lib" prefix:
28069      libname="libmod_privileges.la"
28070      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28071      modpath_static="$modpath_static $libname"
28072      cat >>$modpath_current/modules.mk<<EOF
28073$libname: $objects
28074	\$(MOD_LINK) $objects \$(MOD_PRIVILEGES_LDADD)
28075EOF
28076      if test ! -z "\$(MOD_PRIVILEGES_LDADD)"; then
28077
28078  if test "x$AP_LIBS" = "x"; then
28079    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PRIVILEGES_LDADD)\""
28080    AP_LIBS="\$(MOD_PRIVILEGES_LDADD)"
28081  else
28082    apr_addto_bugger="\$(MOD_PRIVILEGES_LDADD)"
28083    for i in $apr_addto_bugger; do
28084      apr_addto_duplicate="0"
28085      for j in $AP_LIBS; do
28086        if test "x$i" = "x$j"; then
28087          apr_addto_duplicate="1"
28088          break
28089        fi
28090      done
28091      if test $apr_addto_duplicate = "0"; then
28092        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28093        AP_LIBS="$AP_LIBS $i"
28094      fi
28095    done
28096  fi
28097
28098      fi
28099    else
28100      apache_need_shared=yes
28101      libname="mod_privileges.la"
28102      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28103      modpath_shared="$modpath_shared $libname"
28104      cat >>$modpath_current/modules.mk<<EOF
28105$libname: $shobjects
28106	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PRIVILEGES_LDADD)
28107EOF
28108    fi
28109  fi
28110
28111
28112  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PRIVILEGES_LDADD"
28113
28114
28115
28116  fi
28117
28118
28119
28120  if test "x$INCLUDES" = "x"; then
28121    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
28122    INCLUDES="-I\$(top_srcdir)/$modpath_current"
28123  else
28124    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
28125    for i in $apr_addto_bugger; do
28126      apr_addto_duplicate="0"
28127      for j in $INCLUDES; do
28128        if test "x$i" = "x$j"; then
28129          apr_addto_duplicate="1"
28130          break
28131        fi
28132      done
28133      if test $apr_addto_duplicate = "0"; then
28134        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
28135        INCLUDES="$INCLUDES $i"
28136      fi
28137    done
28138  fi
28139
28140
28141
28142  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
28143  echo "static = $modpath_static" >> $modpath_current/modules.mk
28144  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
28145  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28146    if eval val=\"\$MOD_$var\"; test -n "$val"; then
28147      echo "MOD_$var = $val" >> $modpath_current/modules.mk
28148    fi
28149  done
28150  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
28151    MODULE_DIRS="$MODULE_DIRS $current_dir"
28152  else
28153    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
28154  fi
28155
28156  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
28157
28158
28159
28160
28161
28162
28163  current_dir=cluster
28164  modpath_current=modules/cluster
28165  modpath_static=
28166  modpath_shared=
28167  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28168    eval MOD_$var=
28169  done
28170  test -d cluster || $srcdir/build/mkdir.sh $modpath_current
28171  > $modpath_current/modules.mk
28172
28173
28174heartbeat_objects='mod_heartbeat.lo'
28175
28176case "$host" in
28177  *os2*)
28178    # OS/2 DLLs must resolve all symbols at build time
28179    # and we need some from the watchdog module
28180    heartbeat_objects="$heartbeat_objects ../core/mod_watchdog.la"
28181    ;;
28182esac
28183
28184
28185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_heartbeat" >&5
28186$as_echo_n "checking whether to enable mod_heartbeat... " >&6; }
28187    # Check whether --enable-heartbeat was given.
28188if test "${enable_heartbeat+set}" = set; then :
28189  enableval=$enable_heartbeat; force_heartbeat=$enableval
28190else
28191  enable_heartbeat=maybe-all
28192fi
28193
28194    _apmod_extra_msg=""
28195        case "$enable_heartbeat" in
28196    yes|static|shared)
28197      _apmod_required="yes"
28198      ;;
28199    *)
28200      case "$module_selection" in
28201      reallyall|all|most)
28202        _apmod_required="no"
28203        ;;
28204      *)
28205        _apmod_required="yes"
28206        ;;
28207      esac
28208  esac
28209  if test "$enable_heartbeat" = "static"; then
28210    enable_heartbeat=static
28211  elif test "$enable_heartbeat" = "yes"; then
28212    enable_heartbeat=$module_default
28213  elif test "$enable_heartbeat" = "most"; then
28214    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28215            "$module_selection" = "reallyall"
28216    then
28217      enable_heartbeat=$module_default
28218    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28219      enable_heartbeat=no
28220    fi
28221    _apmod_extra_msg=" ($module_selection)"
28222  elif test "$enable_heartbeat" = "maybe-all"; then
28223    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28224    then
28225      enable_heartbeat=$module_default
28226      _apmod_extra_msg=" ($module_selection)"
28227    else
28228      enable_heartbeat=no
28229    fi
28230  elif test "$enable_heartbeat" = "no" -a "$module_selection" = "reallyall" -a \
28231            "$force_heartbeat" != "no" ; then
28232      enable_heartbeat=$module_default
28233      _apmod_extra_msg=" ($module_selection)"
28234  fi
28235  if test "$enable_heartbeat" != "no"; then
28236            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
28237$as_echo "checking dependencies" >&6; }
28238            if test "$enable_watchdog" = "no" ; then
28239                              enable_heartbeat=no
28240                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_watchdog is disabled but required for mod_heartbeat\"" >&5
28241$as_echo "$as_me: WARNING: \"mod_watchdog is disabled but required for mod_heartbeat\"" >&2;}
28242                            elif test "$enable_heartbeat" = "static" && test "$enable_watchdog" != "static" ; then
28243                              enable_heartbeat=no
28244                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_heartbeat statically if mod_watchdog is built shared\"" >&5
28245$as_echo "$as_me: WARNING: \"cannot build mod_heartbeat statically if mod_watchdog is built shared\"" >&2;}
28246                            else
28247            :
28248            fi
28249            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_heartbeat" >&5
28250$as_echo_n "checking whether to enable mod_heartbeat... " >&6; }
28251            if test "$enable_heartbeat" = "no"; then
28252              if test "$_apmod_required" = "no"; then
28253                _apmod_extra_msg=" (disabled)"
28254              else
28255                as_fn_error $? "mod_heartbeat has been requested but can not be built due to prerequisite failures" "$LINENO" 5
28256              fi
28257            fi
28258  fi
28259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_heartbeat$_apmod_extra_msg" >&5
28260$as_echo "$enable_heartbeat$_apmod_extra_msg" >&6; }
28261  if test "$enable_heartbeat" != "no"; then
28262    case "$enable_heartbeat" in
28263    static*)
28264      MODLIST="$MODLIST heartbeat"
28265      if test "heartbeat" = "so"; then
28266          sharedobjs=yes
28267      fi
28268      shared="";;
28269    *)
28270      enable_heartbeat=`echo $enable_heartbeat|sed 's/shared,*//'`
28271      sharedobjs=yes
28272      shared=yes
28273      DSO_MODULES="$DSO_MODULES heartbeat"
28274      if test "" = "yes" ; then
28275        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},heartbeat"
28276      fi
28277      ;;
28278    esac
28279
28280
28281  if test -z "$heartbeat_objects"; then
28282    objects="mod_heartbeat.lo"
28283  else
28284    objects="$heartbeat_objects"
28285  fi
28286
28287  if test -z "$module_standalone"; then
28288    if test -z "$shared"; then
28289      # The filename of a convenience library must have a "lib" prefix:
28290      libname="libmod_heartbeat.la"
28291      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28292      modpath_static="$modpath_static $libname"
28293      cat >>$modpath_current/modules.mk<<EOF
28294$libname: $objects
28295	\$(MOD_LINK) $objects \$(MOD_HEARTBEAT_LDADD)
28296EOF
28297      if test ! -z "\$(MOD_HEARTBEAT_LDADD)"; then
28298
28299  if test "x$AP_LIBS" = "x"; then
28300    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HEARTBEAT_LDADD)\""
28301    AP_LIBS="\$(MOD_HEARTBEAT_LDADD)"
28302  else
28303    apr_addto_bugger="\$(MOD_HEARTBEAT_LDADD)"
28304    for i in $apr_addto_bugger; do
28305      apr_addto_duplicate="0"
28306      for j in $AP_LIBS; do
28307        if test "x$i" = "x$j"; then
28308          apr_addto_duplicate="1"
28309          break
28310        fi
28311      done
28312      if test $apr_addto_duplicate = "0"; then
28313        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28314        AP_LIBS="$AP_LIBS $i"
28315      fi
28316    done
28317  fi
28318
28319      fi
28320    else
28321      apache_need_shared=yes
28322      libname="mod_heartbeat.la"
28323      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28324      modpath_shared="$modpath_shared $libname"
28325      cat >>$modpath_current/modules.mk<<EOF
28326$libname: $shobjects
28327	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEARTBEAT_LDADD)
28328EOF
28329    fi
28330  fi
28331
28332
28333  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEARTBEAT_LDADD"
28334
28335
28336
28337  fi
28338
28339
28340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_heartmonitor" >&5
28341$as_echo_n "checking whether to enable mod_heartmonitor... " >&6; }
28342    # Check whether --enable-heartmonitor was given.
28343if test "${enable_heartmonitor+set}" = set; then :
28344  enableval=$enable_heartmonitor; force_heartmonitor=$enableval
28345else
28346  enable_heartmonitor=maybe-all
28347fi
28348
28349    _apmod_extra_msg=""
28350        case "$enable_heartmonitor" in
28351    yes|static|shared)
28352      _apmod_required="yes"
28353      ;;
28354    *)
28355      case "$module_selection" in
28356      reallyall|all|most)
28357        _apmod_required="no"
28358        ;;
28359      *)
28360        _apmod_required="yes"
28361        ;;
28362      esac
28363  esac
28364  if test "$enable_heartmonitor" = "static"; then
28365    enable_heartmonitor=static
28366  elif test "$enable_heartmonitor" = "yes"; then
28367    enable_heartmonitor=$module_default
28368  elif test "$enable_heartmonitor" = "most"; then
28369    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28370            "$module_selection" = "reallyall"
28371    then
28372      enable_heartmonitor=$module_default
28373    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28374      enable_heartmonitor=no
28375    fi
28376    _apmod_extra_msg=" ($module_selection)"
28377  elif test "$enable_heartmonitor" = "maybe-all"; then
28378    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28379    then
28380      enable_heartmonitor=$module_default
28381      _apmod_extra_msg=" ($module_selection)"
28382    else
28383      enable_heartmonitor=no
28384    fi
28385  elif test "$enable_heartmonitor" = "no" -a "$module_selection" = "reallyall" -a \
28386            "$force_heartmonitor" != "no" ; then
28387      enable_heartmonitor=$module_default
28388      _apmod_extra_msg=" ($module_selection)"
28389  fi
28390  if test "$enable_heartmonitor" != "no"; then
28391            :
28392  fi
28393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_heartmonitor$_apmod_extra_msg" >&5
28394$as_echo "$enable_heartmonitor$_apmod_extra_msg" >&6; }
28395  if test "$enable_heartmonitor" != "no"; then
28396    case "$enable_heartmonitor" in
28397    static*)
28398      MODLIST="$MODLIST heartmonitor"
28399      if test "heartmonitor" = "so"; then
28400          sharedobjs=yes
28401      fi
28402      shared="";;
28403    *)
28404      enable_heartmonitor=`echo $enable_heartmonitor|sed 's/shared,*//'`
28405      sharedobjs=yes
28406      shared=yes
28407      DSO_MODULES="$DSO_MODULES heartmonitor"
28408      if test "" = "yes" ; then
28409        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},heartmonitor"
28410      fi
28411      ;;
28412    esac
28413
28414
28415  if test -z ""; then
28416    objects="mod_heartmonitor.lo"
28417  else
28418    objects=""
28419  fi
28420
28421  if test -z "$module_standalone"; then
28422    if test -z "$shared"; then
28423      # The filename of a convenience library must have a "lib" prefix:
28424      libname="libmod_heartmonitor.la"
28425      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28426      modpath_static="$modpath_static $libname"
28427      cat >>$modpath_current/modules.mk<<EOF
28428$libname: $objects
28429	\$(MOD_LINK) $objects \$(MOD_HEARTMONITOR_LDADD)
28430EOF
28431      if test ! -z "\$(MOD_HEARTMONITOR_LDADD)"; then
28432
28433  if test "x$AP_LIBS" = "x"; then
28434    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HEARTMONITOR_LDADD)\""
28435    AP_LIBS="\$(MOD_HEARTMONITOR_LDADD)"
28436  else
28437    apr_addto_bugger="\$(MOD_HEARTMONITOR_LDADD)"
28438    for i in $apr_addto_bugger; do
28439      apr_addto_duplicate="0"
28440      for j in $AP_LIBS; do
28441        if test "x$i" = "x$j"; then
28442          apr_addto_duplicate="1"
28443          break
28444        fi
28445      done
28446      if test $apr_addto_duplicate = "0"; then
28447        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28448        AP_LIBS="$AP_LIBS $i"
28449      fi
28450    done
28451  fi
28452
28453      fi
28454    else
28455      apache_need_shared=yes
28456      libname="mod_heartmonitor.la"
28457      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28458      modpath_shared="$modpath_shared $libname"
28459      cat >>$modpath_current/modules.mk<<EOF
28460$libname: $shobjects
28461	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEARTMONITOR_LDADD)
28462EOF
28463    fi
28464  fi
28465
28466
28467  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEARTMONITOR_LDADD"
28468
28469
28470
28471  fi
28472
28473
28474
28475  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
28476  echo "static = $modpath_static" >> $modpath_current/modules.mk
28477  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
28478  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28479    if eval val=\"\$MOD_$var\"; test -n "$val"; then
28480      echo "MOD_$var = $val" >> $modpath_current/modules.mk
28481    fi
28482  done
28483  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
28484    MODULE_DIRS="$MODULE_DIRS $current_dir"
28485  else
28486    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
28487  fi
28488
28489  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
28490
28491
28492
28493
28494
28495  current_dir=dav/main
28496  modpath_current=modules/dav/main
28497  modpath_static=
28498  modpath_shared=
28499  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28500    eval MOD_$var=
28501  done
28502  test -d dav/main || $srcdir/build/mkdir.sh $modpath_current
28503  > $modpath_current/modules.mk
28504
28505
28506dav_objects="mod_dav.lo props.lo util.lo util_lock.lo liveprop.lo providers.lo std_liveprop.lo"
28507
28508if test "$enable_http" = "no"; then
28509  dav_enable=no
28510else
28511  dav_enable=most
28512fi
28513
28514
28515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav" >&5
28516$as_echo_n "checking whether to enable mod_dav... " >&6; }
28517    # Check whether --enable-dav was given.
28518if test "${enable_dav+set}" = set; then :
28519  enableval=$enable_dav; force_dav=$enableval
28520else
28521  enable_dav=$dav_enable
28522fi
28523
28524    _apmod_extra_msg=""
28525        case "$enable_dav" in
28526    yes|static|shared)
28527      _apmod_required="yes"
28528      ;;
28529    *)
28530      case "$module_selection" in
28531      reallyall|all|most)
28532        _apmod_required="no"
28533        ;;
28534      *)
28535        _apmod_required="yes"
28536        ;;
28537      esac
28538  esac
28539  if test "$enable_dav" = "static"; then
28540    enable_dav=static
28541  elif test "$enable_dav" = "yes"; then
28542    enable_dav=$module_default
28543  elif test "$enable_dav" = "most"; then
28544    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28545            "$module_selection" = "reallyall"
28546    then
28547      enable_dav=$module_default
28548    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28549      enable_dav=no
28550    fi
28551    _apmod_extra_msg=" ($module_selection)"
28552  elif test "$enable_dav" = "maybe-all"; then
28553    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28554    then
28555      enable_dav=$module_default
28556      _apmod_extra_msg=" ($module_selection)"
28557    else
28558      enable_dav=no
28559    fi
28560  elif test "$enable_dav" = "no" -a "$module_selection" = "reallyall" -a \
28561            "$force_dav" != "no" ; then
28562      enable_dav=$module_default
28563      _apmod_extra_msg=" ($module_selection)"
28564  fi
28565  if test "$enable_dav" != "no"; then
28566            :
28567  fi
28568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dav$_apmod_extra_msg" >&5
28569$as_echo "$enable_dav$_apmod_extra_msg" >&6; }
28570  if test "$enable_dav" != "no"; then
28571    case "$enable_dav" in
28572    static*)
28573      MODLIST="$MODLIST dav"
28574      if test "dav" = "so"; then
28575          sharedobjs=yes
28576      fi
28577      shared="";;
28578    *)
28579      enable_dav=`echo $enable_dav|sed 's/shared,*//'`
28580      sharedobjs=yes
28581      shared=yes
28582      DSO_MODULES="$DSO_MODULES dav"
28583      if test "$dav_enable" = "yes" ; then
28584        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dav"
28585      fi
28586      ;;
28587    esac
28588
28589
28590  if test -z "$dav_objects"; then
28591    objects="mod_dav.lo"
28592  else
28593    objects="$dav_objects"
28594  fi
28595
28596  if test -z "$module_standalone"; then
28597    if test -z "$shared"; then
28598      # The filename of a convenience library must have a "lib" prefix:
28599      libname="libmod_dav.la"
28600      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28601      modpath_static="$modpath_static $libname"
28602      cat >>$modpath_current/modules.mk<<EOF
28603$libname: $objects
28604	\$(MOD_LINK) $objects \$(MOD_DAV_LDADD)
28605EOF
28606      if test ! -z "\$(MOD_DAV_LDADD)"; then
28607
28608  if test "x$AP_LIBS" = "x"; then
28609    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DAV_LDADD)\""
28610    AP_LIBS="\$(MOD_DAV_LDADD)"
28611  else
28612    apr_addto_bugger="\$(MOD_DAV_LDADD)"
28613    for i in $apr_addto_bugger; do
28614      apr_addto_duplicate="0"
28615      for j in $AP_LIBS; do
28616        if test "x$i" = "x$j"; then
28617          apr_addto_duplicate="1"
28618          break
28619        fi
28620      done
28621      if test $apr_addto_duplicate = "0"; then
28622        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28623        AP_LIBS="$AP_LIBS $i"
28624      fi
28625    done
28626  fi
28627
28628      fi
28629    else
28630      apache_need_shared=yes
28631      libname="mod_dav.la"
28632      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28633      modpath_shared="$modpath_shared $libname"
28634      cat >>$modpath_current/modules.mk<<EOF
28635$libname: $shobjects
28636	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_LDADD)
28637EOF
28638    fi
28639  fi
28640
28641
28642  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LDADD"
28643
28644
28645
28646  fi
28647
28648
28649if test "$dav_enable" != "no" -o "$enable_dav" != "no"; then
28650  apache_need_expat=yes
28651fi
28652
28653
28654  if test "x$INCLUDES" = "x"; then
28655    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
28656    INCLUDES="-I\$(top_srcdir)/$modpath_current"
28657  else
28658    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
28659    for i in $apr_addto_bugger; do
28660      apr_addto_duplicate="0"
28661      for j in $INCLUDES; do
28662        if test "x$i" = "x$j"; then
28663          apr_addto_duplicate="1"
28664          break
28665        fi
28666      done
28667      if test $apr_addto_duplicate = "0"; then
28668        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
28669        INCLUDES="$INCLUDES $i"
28670      fi
28671    done
28672  fi
28673
28674
28675
28676  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
28677  echo "static = $modpath_static" >> $modpath_current/modules.mk
28678  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
28679  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28680    if eval val=\"\$MOD_$var\"; test -n "$val"; then
28681      echo "MOD_$var = $val" >> $modpath_current/modules.mk
28682    fi
28683  done
28684  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
28685    MODULE_DIRS="$MODULE_DIRS $current_dir"
28686  else
28687    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
28688  fi
28689
28690  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
28691
28692
28693
28694
28695
28696
28697  current_dir=generators
28698  modpath_current=modules/generators
28699  modpath_static=
28700  modpath_shared=
28701  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
28702    eval MOD_$var=
28703  done
28704  test -d generators || $srcdir/build/mkdir.sh $modpath_current
28705  > $modpath_current/modules.mk
28706
28707
28708
28709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_status" >&5
28710$as_echo_n "checking whether to enable mod_status... " >&6; }
28711    # Check whether --enable-status was given.
28712if test "${enable_status+set}" = set; then :
28713  enableval=$enable_status; force_status=$enableval
28714else
28715  enable_status=yes
28716fi
28717
28718    _apmod_extra_msg=""
28719        case "$enable_status" in
28720    yes|static|shared)
28721      _apmod_required="yes"
28722      ;;
28723    *)
28724      case "$module_selection" in
28725      reallyall|all|most)
28726        _apmod_required="no"
28727        ;;
28728      *)
28729        _apmod_required="yes"
28730        ;;
28731      esac
28732  esac
28733  if test "$enable_status" = "static"; then
28734    enable_status=static
28735  elif test "$enable_status" = "yes"; then
28736    enable_status=$module_default
28737  elif test "$enable_status" = "most"; then
28738    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28739            "$module_selection" = "reallyall"
28740    then
28741      enable_status=$module_default
28742    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28743      enable_status=no
28744    fi
28745    _apmod_extra_msg=" ($module_selection)"
28746  elif test "$enable_status" = "maybe-all"; then
28747    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28748    then
28749      enable_status=$module_default
28750      _apmod_extra_msg=" ($module_selection)"
28751    else
28752      enable_status=no
28753    fi
28754  elif test "$enable_status" = "no" -a "$module_selection" = "reallyall" -a \
28755            "$force_status" != "no" ; then
28756      enable_status=$module_default
28757      _apmod_extra_msg=" ($module_selection)"
28758  fi
28759  if test "$enable_status" != "no"; then
28760            :
28761  fi
28762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_status$_apmod_extra_msg" >&5
28763$as_echo "$enable_status$_apmod_extra_msg" >&6; }
28764  if test "$enable_status" != "no"; then
28765    case "$enable_status" in
28766    static*)
28767      MODLIST="$MODLIST status"
28768      if test "status" = "so"; then
28769          sharedobjs=yes
28770      fi
28771      shared="";;
28772    *)
28773      enable_status=`echo $enable_status|sed 's/shared,*//'`
28774      sharedobjs=yes
28775      shared=yes
28776      DSO_MODULES="$DSO_MODULES status"
28777      if test "yes" = "yes" ; then
28778        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},status"
28779      fi
28780      ;;
28781    esac
28782
28783
28784  if test -z ""; then
28785    objects="mod_status.lo"
28786  else
28787    objects=""
28788  fi
28789
28790  if test -z "$module_standalone"; then
28791    if test -z "$shared"; then
28792      # The filename of a convenience library must have a "lib" prefix:
28793      libname="libmod_status.la"
28794      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28795      modpath_static="$modpath_static $libname"
28796      cat >>$modpath_current/modules.mk<<EOF
28797$libname: $objects
28798	\$(MOD_LINK) $objects \$(MOD_STATUS_LDADD)
28799EOF
28800      if test ! -z "\$(MOD_STATUS_LDADD)"; then
28801
28802  if test "x$AP_LIBS" = "x"; then
28803    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_STATUS_LDADD)\""
28804    AP_LIBS="\$(MOD_STATUS_LDADD)"
28805  else
28806    apr_addto_bugger="\$(MOD_STATUS_LDADD)"
28807    for i in $apr_addto_bugger; do
28808      apr_addto_duplicate="0"
28809      for j in $AP_LIBS; do
28810        if test "x$i" = "x$j"; then
28811          apr_addto_duplicate="1"
28812          break
28813        fi
28814      done
28815      if test $apr_addto_duplicate = "0"; then
28816        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28817        AP_LIBS="$AP_LIBS $i"
28818      fi
28819    done
28820  fi
28821
28822      fi
28823    else
28824      apache_need_shared=yes
28825      libname="mod_status.la"
28826      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28827      modpath_shared="$modpath_shared $libname"
28828      cat >>$modpath_current/modules.mk<<EOF
28829$libname: $shobjects
28830	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_STATUS_LDADD)
28831EOF
28832    fi
28833  fi
28834
28835
28836  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_STATUS_LDADD"
28837
28838
28839
28840  fi
28841
28842
28843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_autoindex" >&5
28844$as_echo_n "checking whether to enable mod_autoindex... " >&6; }
28845    # Check whether --enable-autoindex was given.
28846if test "${enable_autoindex+set}" = set; then :
28847  enableval=$enable_autoindex; force_autoindex=$enableval
28848else
28849  enable_autoindex=yes
28850fi
28851
28852    _apmod_extra_msg=""
28853        case "$enable_autoindex" in
28854    yes|static|shared)
28855      _apmod_required="yes"
28856      ;;
28857    *)
28858      case "$module_selection" in
28859      reallyall|all|most)
28860        _apmod_required="no"
28861        ;;
28862      *)
28863        _apmod_required="yes"
28864        ;;
28865      esac
28866  esac
28867  if test "$enable_autoindex" = "static"; then
28868    enable_autoindex=static
28869  elif test "$enable_autoindex" = "yes"; then
28870    enable_autoindex=$module_default
28871  elif test "$enable_autoindex" = "most"; then
28872    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
28873            "$module_selection" = "reallyall"
28874    then
28875      enable_autoindex=$module_default
28876    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
28877      enable_autoindex=no
28878    fi
28879    _apmod_extra_msg=" ($module_selection)"
28880  elif test "$enable_autoindex" = "maybe-all"; then
28881    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
28882    then
28883      enable_autoindex=$module_default
28884      _apmod_extra_msg=" ($module_selection)"
28885    else
28886      enable_autoindex=no
28887    fi
28888  elif test "$enable_autoindex" = "no" -a "$module_selection" = "reallyall" -a \
28889            "$force_autoindex" != "no" ; then
28890      enable_autoindex=$module_default
28891      _apmod_extra_msg=" ($module_selection)"
28892  fi
28893  if test "$enable_autoindex" != "no"; then
28894            :
28895  fi
28896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoindex$_apmod_extra_msg" >&5
28897$as_echo "$enable_autoindex$_apmod_extra_msg" >&6; }
28898  if test "$enable_autoindex" != "no"; then
28899    case "$enable_autoindex" in
28900    static*)
28901      MODLIST="$MODLIST autoindex"
28902      if test "autoindex" = "so"; then
28903          sharedobjs=yes
28904      fi
28905      shared="";;
28906    *)
28907      enable_autoindex=`echo $enable_autoindex|sed 's/shared,*//'`
28908      sharedobjs=yes
28909      shared=yes
28910      DSO_MODULES="$DSO_MODULES autoindex"
28911      if test "yes" = "yes" ; then
28912        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},autoindex"
28913      fi
28914      ;;
28915    esac
28916
28917
28918  if test -z ""; then
28919    objects="mod_autoindex.lo"
28920  else
28921    objects=""
28922  fi
28923
28924  if test -z "$module_standalone"; then
28925    if test -z "$shared"; then
28926      # The filename of a convenience library must have a "lib" prefix:
28927      libname="libmod_autoindex.la"
28928      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
28929      modpath_static="$modpath_static $libname"
28930      cat >>$modpath_current/modules.mk<<EOF
28931$libname: $objects
28932	\$(MOD_LINK) $objects \$(MOD_AUTOINDEX_LDADD)
28933EOF
28934      if test ! -z "\$(MOD_AUTOINDEX_LDADD)"; then
28935
28936  if test "x$AP_LIBS" = "x"; then
28937    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTOINDEX_LDADD)\""
28938    AP_LIBS="\$(MOD_AUTOINDEX_LDADD)"
28939  else
28940    apr_addto_bugger="\$(MOD_AUTOINDEX_LDADD)"
28941    for i in $apr_addto_bugger; do
28942      apr_addto_duplicate="0"
28943      for j in $AP_LIBS; do
28944        if test "x$i" = "x$j"; then
28945          apr_addto_duplicate="1"
28946          break
28947        fi
28948      done
28949      if test $apr_addto_duplicate = "0"; then
28950        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
28951        AP_LIBS="$AP_LIBS $i"
28952      fi
28953    done
28954  fi
28955
28956      fi
28957    else
28958      apache_need_shared=yes
28959      libname="mod_autoindex.la"
28960      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
28961      modpath_shared="$modpath_shared $libname"
28962      cat >>$modpath_current/modules.mk<<EOF
28963$libname: $shobjects
28964	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTOINDEX_LDADD)
28965EOF
28966    fi
28967  fi
28968
28969
28970  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTOINDEX_LDADD"
28971
28972
28973
28974  fi
28975
28976
28977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_asis" >&5
28978$as_echo_n "checking whether to enable mod_asis... " >&6; }
28979    # Check whether --enable-asis was given.
28980if test "${enable_asis+set}" = set; then :
28981  enableval=$enable_asis; force_asis=$enableval
28982else
28983  enable_asis=maybe-all
28984fi
28985
28986    _apmod_extra_msg=""
28987        case "$enable_asis" in
28988    yes|static|shared)
28989      _apmod_required="yes"
28990      ;;
28991    *)
28992      case "$module_selection" in
28993      reallyall|all|most)
28994        _apmod_required="no"
28995        ;;
28996      *)
28997        _apmod_required="yes"
28998        ;;
28999      esac
29000  esac
29001  if test "$enable_asis" = "static"; then
29002    enable_asis=static
29003  elif test "$enable_asis" = "yes"; then
29004    enable_asis=$module_default
29005  elif test "$enable_asis" = "most"; then
29006    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29007            "$module_selection" = "reallyall"
29008    then
29009      enable_asis=$module_default
29010    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29011      enable_asis=no
29012    fi
29013    _apmod_extra_msg=" ($module_selection)"
29014  elif test "$enable_asis" = "maybe-all"; then
29015    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29016    then
29017      enable_asis=$module_default
29018      _apmod_extra_msg=" ($module_selection)"
29019    else
29020      enable_asis=no
29021    fi
29022  elif test "$enable_asis" = "no" -a "$module_selection" = "reallyall" -a \
29023            "$force_asis" != "no" ; then
29024      enable_asis=$module_default
29025      _apmod_extra_msg=" ($module_selection)"
29026  fi
29027  if test "$enable_asis" != "no"; then
29028            :
29029  fi
29030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_asis$_apmod_extra_msg" >&5
29031$as_echo "$enable_asis$_apmod_extra_msg" >&6; }
29032  if test "$enable_asis" != "no"; then
29033    case "$enable_asis" in
29034    static*)
29035      MODLIST="$MODLIST asis"
29036      if test "asis" = "so"; then
29037          sharedobjs=yes
29038      fi
29039      shared="";;
29040    *)
29041      enable_asis=`echo $enable_asis|sed 's/shared,*//'`
29042      sharedobjs=yes
29043      shared=yes
29044      DSO_MODULES="$DSO_MODULES asis"
29045      if test "" = "yes" ; then
29046        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},asis"
29047      fi
29048      ;;
29049    esac
29050
29051
29052  if test -z ""; then
29053    objects="mod_asis.lo"
29054  else
29055    objects=""
29056  fi
29057
29058  if test -z "$module_standalone"; then
29059    if test -z "$shared"; then
29060      # The filename of a convenience library must have a "lib" prefix:
29061      libname="libmod_asis.la"
29062      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29063      modpath_static="$modpath_static $libname"
29064      cat >>$modpath_current/modules.mk<<EOF
29065$libname: $objects
29066	\$(MOD_LINK) $objects \$(MOD_ASIS_LDADD)
29067EOF
29068      if test ! -z "\$(MOD_ASIS_LDADD)"; then
29069
29070  if test "x$AP_LIBS" = "x"; then
29071    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ASIS_LDADD)\""
29072    AP_LIBS="\$(MOD_ASIS_LDADD)"
29073  else
29074    apr_addto_bugger="\$(MOD_ASIS_LDADD)"
29075    for i in $apr_addto_bugger; do
29076      apr_addto_duplicate="0"
29077      for j in $AP_LIBS; do
29078        if test "x$i" = "x$j"; then
29079          apr_addto_duplicate="1"
29080          break
29081        fi
29082      done
29083      if test $apr_addto_duplicate = "0"; then
29084        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29085        AP_LIBS="$AP_LIBS $i"
29086      fi
29087    done
29088  fi
29089
29090      fi
29091    else
29092      apache_need_shared=yes
29093      libname="mod_asis.la"
29094      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29095      modpath_shared="$modpath_shared $libname"
29096      cat >>$modpath_current/modules.mk<<EOF
29097$libname: $shobjects
29098	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ASIS_LDADD)
29099EOF
29100    fi
29101  fi
29102
29103
29104  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ASIS_LDADD"
29105
29106
29107
29108  fi
29109
29110
29111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_info" >&5
29112$as_echo_n "checking whether to enable mod_info... " >&6; }
29113    # Check whether --enable-info was given.
29114if test "${enable_info+set}" = set; then :
29115  enableval=$enable_info; force_info=$enableval
29116else
29117  enable_info=most
29118fi
29119
29120    _apmod_extra_msg=""
29121        case "$enable_info" in
29122    yes|static|shared)
29123      _apmod_required="yes"
29124      ;;
29125    *)
29126      case "$module_selection" in
29127      reallyall|all|most)
29128        _apmod_required="no"
29129        ;;
29130      *)
29131        _apmod_required="yes"
29132        ;;
29133      esac
29134  esac
29135  if test "$enable_info" = "static"; then
29136    enable_info=static
29137  elif test "$enable_info" = "yes"; then
29138    enable_info=$module_default
29139  elif test "$enable_info" = "most"; then
29140    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29141            "$module_selection" = "reallyall"
29142    then
29143      enable_info=$module_default
29144    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29145      enable_info=no
29146    fi
29147    _apmod_extra_msg=" ($module_selection)"
29148  elif test "$enable_info" = "maybe-all"; then
29149    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29150    then
29151      enable_info=$module_default
29152      _apmod_extra_msg=" ($module_selection)"
29153    else
29154      enable_info=no
29155    fi
29156  elif test "$enable_info" = "no" -a "$module_selection" = "reallyall" -a \
29157            "$force_info" != "no" ; then
29158      enable_info=$module_default
29159      _apmod_extra_msg=" ($module_selection)"
29160  fi
29161  if test "$enable_info" != "no"; then
29162            :
29163  fi
29164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_info$_apmod_extra_msg" >&5
29165$as_echo "$enable_info$_apmod_extra_msg" >&6; }
29166  if test "$enable_info" != "no"; then
29167    case "$enable_info" in
29168    static*)
29169      MODLIST="$MODLIST info"
29170      if test "info" = "so"; then
29171          sharedobjs=yes
29172      fi
29173      shared="";;
29174    *)
29175      enable_info=`echo $enable_info|sed 's/shared,*//'`
29176      sharedobjs=yes
29177      shared=yes
29178      DSO_MODULES="$DSO_MODULES info"
29179      if test "most" = "yes" ; then
29180        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},info"
29181      fi
29182      ;;
29183    esac
29184
29185
29186  if test -z ""; then
29187    objects="mod_info.lo"
29188  else
29189    objects=""
29190  fi
29191
29192  if test -z "$module_standalone"; then
29193    if test -z "$shared"; then
29194      # The filename of a convenience library must have a "lib" prefix:
29195      libname="libmod_info.la"
29196      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29197      modpath_static="$modpath_static $libname"
29198      cat >>$modpath_current/modules.mk<<EOF
29199$libname: $objects
29200	\$(MOD_LINK) $objects \$(MOD_INFO_LDADD)
29201EOF
29202      if test ! -z "\$(MOD_INFO_LDADD)"; then
29203
29204  if test "x$AP_LIBS" = "x"; then
29205    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_INFO_LDADD)\""
29206    AP_LIBS="\$(MOD_INFO_LDADD)"
29207  else
29208    apr_addto_bugger="\$(MOD_INFO_LDADD)"
29209    for i in $apr_addto_bugger; do
29210      apr_addto_duplicate="0"
29211      for j in $AP_LIBS; do
29212        if test "x$i" = "x$j"; then
29213          apr_addto_duplicate="1"
29214          break
29215        fi
29216      done
29217      if test $apr_addto_duplicate = "0"; then
29218        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29219        AP_LIBS="$AP_LIBS $i"
29220      fi
29221    done
29222  fi
29223
29224      fi
29225    else
29226      apache_need_shared=yes
29227      libname="mod_info.la"
29228      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29229      modpath_shared="$modpath_shared $libname"
29230      cat >>$modpath_current/modules.mk<<EOF
29231$libname: $shobjects
29232	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INFO_LDADD)
29233EOF
29234    fi
29235  fi
29236
29237
29238  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INFO_LDADD"
29239
29240
29241
29242  fi
29243
29244
29245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_suexec" >&5
29246$as_echo_n "checking whether to enable mod_suexec... " >&6; }
29247    # Check whether --enable-suexec was given.
29248if test "${enable_suexec+set}" = set; then :
29249  enableval=$enable_suexec; force_suexec=$enableval
29250else
29251  enable_suexec=no
29252fi
29253
29254    _apmod_extra_msg=""
29255        case "$enable_suexec" in
29256    yes|static|shared)
29257      _apmod_required="yes"
29258      ;;
29259    *)
29260      case "$module_selection" in
29261      reallyall|all|most)
29262        _apmod_required="no"
29263        ;;
29264      *)
29265        _apmod_required="yes"
29266        ;;
29267      esac
29268  esac
29269  if test "$enable_suexec" = "static"; then
29270    enable_suexec=static
29271  elif test "$enable_suexec" = "yes"; then
29272    enable_suexec=$module_default
29273  elif test "$enable_suexec" = "most"; then
29274    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29275            "$module_selection" = "reallyall"
29276    then
29277      enable_suexec=$module_default
29278    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29279      enable_suexec=no
29280    fi
29281    _apmod_extra_msg=" ($module_selection)"
29282  elif test "$enable_suexec" = "maybe-all"; then
29283    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29284    then
29285      enable_suexec=$module_default
29286      _apmod_extra_msg=" ($module_selection)"
29287    else
29288      enable_suexec=no
29289    fi
29290  elif test "$enable_suexec" = "no" -a "$module_selection" = "reallyall" -a \
29291            "$force_suexec" != "no" ; then
29292      enable_suexec=$module_default
29293      _apmod_extra_msg=" ($module_selection)"
29294  fi
29295  if test "$enable_suexec" != "no"; then
29296            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
29297$as_echo "checking dependencies" >&6; }
29298            :
29299
29300              other_targets=suexec
29301            :
29302            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_suexec" >&5
29303$as_echo_n "checking whether to enable mod_suexec... " >&6; }
29304            if test "$enable_suexec" = "no"; then
29305              if test "$_apmod_required" = "no"; then
29306                _apmod_extra_msg=" (disabled)"
29307              else
29308                as_fn_error $? "mod_suexec has been requested but can not be built due to prerequisite failures" "$LINENO" 5
29309              fi
29310            fi
29311  fi
29312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_suexec$_apmod_extra_msg" >&5
29313$as_echo "$enable_suexec$_apmod_extra_msg" >&6; }
29314  if test "$enable_suexec" != "no"; then
29315    case "$enable_suexec" in
29316    static*)
29317      MODLIST="$MODLIST suexec"
29318      if test "suexec" = "so"; then
29319          sharedobjs=yes
29320      fi
29321      shared="";;
29322    *)
29323      enable_suexec=`echo $enable_suexec|sed 's/shared,*//'`
29324      sharedobjs=yes
29325      shared=yes
29326      DSO_MODULES="$DSO_MODULES suexec"
29327      if test "no" = "yes" ; then
29328        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},suexec"
29329      fi
29330      ;;
29331    esac
29332
29333
29334  if test -z ""; then
29335    objects="mod_suexec.lo"
29336  else
29337    objects=""
29338  fi
29339
29340  if test -z "$module_standalone"; then
29341    if test -z "$shared"; then
29342      # The filename of a convenience library must have a "lib" prefix:
29343      libname="libmod_suexec.la"
29344      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29345      modpath_static="$modpath_static $libname"
29346      cat >>$modpath_current/modules.mk<<EOF
29347$libname: $objects
29348	\$(MOD_LINK) $objects \$(MOD_SUEXEC_LDADD)
29349EOF
29350      if test ! -z "\$(MOD_SUEXEC_LDADD)"; then
29351
29352  if test "x$AP_LIBS" = "x"; then
29353    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SUEXEC_LDADD)\""
29354    AP_LIBS="\$(MOD_SUEXEC_LDADD)"
29355  else
29356    apr_addto_bugger="\$(MOD_SUEXEC_LDADD)"
29357    for i in $apr_addto_bugger; do
29358      apr_addto_duplicate="0"
29359      for j in $AP_LIBS; do
29360        if test "x$i" = "x$j"; then
29361          apr_addto_duplicate="1"
29362          break
29363        fi
29364      done
29365      if test $apr_addto_duplicate = "0"; then
29366        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29367        AP_LIBS="$AP_LIBS $i"
29368      fi
29369    done
29370  fi
29371
29372      fi
29373    else
29374      apache_need_shared=yes
29375      libname="mod_suexec.la"
29376      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29377      modpath_shared="$modpath_shared $libname"
29378      cat >>$modpath_current/modules.mk<<EOF
29379$libname: $shobjects
29380	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SUEXEC_LDADD)
29381EOF
29382    fi
29383  fi
29384
29385
29386  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SUEXEC_LDADD"
29387
29388
29389
29390  fi
29391
29392
29393# Is mod_cgid needed?
29394case $host in
29395    *mingw*)
29396                cgid_needed="no"
29397        ;;
29398    *)
29399        if ap_mpm_is_threaded; then
29400                                                cgid_needed="yes"
29401        else
29402                                    cgid_needed="no"
29403        fi
29404        ;;
29405esac
29406
29407if test $cgid_needed = "yes"; then
29408
29409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgid" >&5
29410$as_echo_n "checking whether to enable mod_cgid... " >&6; }
29411    # Check whether --enable-cgid was given.
29412if test "${enable_cgid+set}" = set; then :
29413  enableval=$enable_cgid; force_cgid=$enableval
29414else
29415  enable_cgid=most
29416fi
29417
29418    _apmod_extra_msg=""
29419        case "$enable_cgid" in
29420    yes|static|shared)
29421      _apmod_required="yes"
29422      ;;
29423    *)
29424      case "$module_selection" in
29425      reallyall|all|most)
29426        _apmod_required="no"
29427        ;;
29428      *)
29429        _apmod_required="yes"
29430        ;;
29431      esac
29432  esac
29433  if test "$enable_cgid" = "static"; then
29434    enable_cgid=static
29435  elif test "$enable_cgid" = "yes"; then
29436    enable_cgid=$module_default
29437  elif test "$enable_cgid" = "most"; then
29438    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29439            "$module_selection" = "reallyall"
29440    then
29441      enable_cgid=$module_default
29442    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29443      enable_cgid=no
29444    fi
29445    _apmod_extra_msg=" ($module_selection)"
29446  elif test "$enable_cgid" = "maybe-all"; then
29447    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29448    then
29449      enable_cgid=$module_default
29450      _apmod_extra_msg=" ($module_selection)"
29451    else
29452      enable_cgid=no
29453    fi
29454  elif test "$enable_cgid" = "no" -a "$module_selection" = "reallyall" -a \
29455            "$force_cgid" != "no" ; then
29456      enable_cgid=$module_default
29457      _apmod_extra_msg=" ($module_selection)"
29458  fi
29459  if test "$enable_cgid" != "no"; then
29460            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
29461$as_echo "checking dependencies" >&6; }
29462            :
29463
29464    case $host in
29465      *-solaris2*)
29466        case `uname -r` in
29467          5.10)
29468                    case `uname -p` in
29469            i386)
29470              patch_id="120665"
29471              ;;
29472            sparc)
29473              patch_id="120664"
29474              ;;
29475            *)
29476              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown platform" >&5
29477$as_echo "$as_me: WARNING: Unknown platform" >&2;}
29478              patch_id="120664"
29479              ;;
29480          esac
29481          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris patch $patch_id" >&5
29482$as_echo_n "checking for Solaris patch $patch_id... " >&6; }
29483          showrev -p | grep "$patch_id" >/dev/null 2>&1
29484          if test $? -eq 1; then
29485                              as_fn_error $? "Please apply either patch # 120664 (Sparc) or # 120665 (x86).
29486Without these patches, mod_cgid is non-functional on Solaris 10 due to an OS
29487bug with AF_UNIX sockets.
29488If you can not apply these patches, you can do one of the following:
29489 - run configure with --disable-cgid
29490 - switch to the prefork MPM
29491For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>" "$LINENO" 5
29492          else
29493            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29494$as_echo "yes" >&6; }
29495          fi
29496          ;;
29497        esac
29498        ;;
29499    esac
29500
29501            :
29502            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgid" >&5
29503$as_echo_n "checking whether to enable mod_cgid... " >&6; }
29504            if test "$enable_cgid" = "no"; then
29505              if test "$_apmod_required" = "no"; then
29506                _apmod_extra_msg=" (disabled)"
29507              else
29508                as_fn_error $? "mod_cgid has been requested but can not be built due to prerequisite failures" "$LINENO" 5
29509              fi
29510            fi
29511  fi
29512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cgid$_apmod_extra_msg" >&5
29513$as_echo "$enable_cgid$_apmod_extra_msg" >&6; }
29514  if test "$enable_cgid" != "no"; then
29515    case "$enable_cgid" in
29516    static*)
29517      MODLIST="$MODLIST cgid"
29518      if test "cgid" = "so"; then
29519          sharedobjs=yes
29520      fi
29521      shared="";;
29522    *)
29523      enable_cgid=`echo $enable_cgid|sed 's/shared,*//'`
29524      sharedobjs=yes
29525      shared=yes
29526      DSO_MODULES="$DSO_MODULES cgid"
29527      if test "most" = "yes" ; then
29528        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgid"
29529      fi
29530      ;;
29531    esac
29532
29533
29534  if test -z ""; then
29535    objects="mod_cgid.lo"
29536  else
29537    objects=""
29538  fi
29539
29540  if test -z "$module_standalone"; then
29541    if test -z "$shared"; then
29542      # The filename of a convenience library must have a "lib" prefix:
29543      libname="libmod_cgid.la"
29544      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29545      modpath_static="$modpath_static $libname"
29546      cat >>$modpath_current/modules.mk<<EOF
29547$libname: $objects
29548	\$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
29549EOF
29550      if test ! -z "\$(MOD_CGID_LDADD)"; then
29551
29552  if test "x$AP_LIBS" = "x"; then
29553    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGID_LDADD)\""
29554    AP_LIBS="\$(MOD_CGID_LDADD)"
29555  else
29556    apr_addto_bugger="\$(MOD_CGID_LDADD)"
29557    for i in $apr_addto_bugger; do
29558      apr_addto_duplicate="0"
29559      for j in $AP_LIBS; do
29560        if test "x$i" = "x$j"; then
29561          apr_addto_duplicate="1"
29562          break
29563        fi
29564      done
29565      if test $apr_addto_duplicate = "0"; then
29566        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29567        AP_LIBS="$AP_LIBS $i"
29568      fi
29569    done
29570  fi
29571
29572      fi
29573    else
29574      apache_need_shared=yes
29575      libname="mod_cgid.la"
29576      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29577      modpath_shared="$modpath_shared $libname"
29578      cat >>$modpath_current/modules.mk<<EOF
29579$libname: $shobjects
29580	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
29581EOF
29582    fi
29583  fi
29584
29585
29586  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
29587
29588
29589
29590  fi
29591
29592
29593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgi" >&5
29594$as_echo_n "checking whether to enable mod_cgi... " >&6; }
29595    # Check whether --enable-cgi was given.
29596if test "${enable_cgi+set}" = set; then :
29597  enableval=$enable_cgi; force_cgi=$enableval
29598else
29599  enable_cgi=no
29600fi
29601
29602    _apmod_extra_msg=""
29603        case "$enable_cgi" in
29604    yes|static|shared)
29605      _apmod_required="yes"
29606      ;;
29607    *)
29608      case "$module_selection" in
29609      reallyall|all|most)
29610        _apmod_required="no"
29611        ;;
29612      *)
29613        _apmod_required="yes"
29614        ;;
29615      esac
29616  esac
29617  if test "$enable_cgi" = "static"; then
29618    enable_cgi=static
29619  elif test "$enable_cgi" = "yes"; then
29620    enable_cgi=$module_default
29621  elif test "$enable_cgi" = "most"; then
29622    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29623            "$module_selection" = "reallyall"
29624    then
29625      enable_cgi=$module_default
29626    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29627      enable_cgi=no
29628    fi
29629    _apmod_extra_msg=" ($module_selection)"
29630  elif test "$enable_cgi" = "maybe-all"; then
29631    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29632    then
29633      enable_cgi=$module_default
29634      _apmod_extra_msg=" ($module_selection)"
29635    else
29636      enable_cgi=no
29637    fi
29638  elif test "$enable_cgi" = "no" -a "$module_selection" = "reallyall" -a \
29639            "$force_cgi" != "no" ; then
29640      enable_cgi=$module_default
29641      _apmod_extra_msg=" ($module_selection)"
29642  fi
29643  if test "$enable_cgi" != "no"; then
29644            :
29645  fi
29646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cgi$_apmod_extra_msg" >&5
29647$as_echo "$enable_cgi$_apmod_extra_msg" >&6; }
29648  if test "$enable_cgi" != "no"; then
29649    case "$enable_cgi" in
29650    static*)
29651      MODLIST="$MODLIST cgi"
29652      if test "cgi" = "so"; then
29653          sharedobjs=yes
29654      fi
29655      shared="";;
29656    *)
29657      enable_cgi=`echo $enable_cgi|sed 's/shared,*//'`
29658      sharedobjs=yes
29659      shared=yes
29660      DSO_MODULES="$DSO_MODULES cgi"
29661      if test "no" = "yes" ; then
29662        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgi"
29663      fi
29664      ;;
29665    esac
29666
29667
29668  if test -z ""; then
29669    objects="mod_cgi.lo"
29670  else
29671    objects=""
29672  fi
29673
29674  if test -z "$module_standalone"; then
29675    if test -z "$shared"; then
29676      # The filename of a convenience library must have a "lib" prefix:
29677      libname="libmod_cgi.la"
29678      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29679      modpath_static="$modpath_static $libname"
29680      cat >>$modpath_current/modules.mk<<EOF
29681$libname: $objects
29682	\$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
29683EOF
29684      if test ! -z "\$(MOD_CGI_LDADD)"; then
29685
29686  if test "x$AP_LIBS" = "x"; then
29687    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGI_LDADD)\""
29688    AP_LIBS="\$(MOD_CGI_LDADD)"
29689  else
29690    apr_addto_bugger="\$(MOD_CGI_LDADD)"
29691    for i in $apr_addto_bugger; do
29692      apr_addto_duplicate="0"
29693      for j in $AP_LIBS; do
29694        if test "x$i" = "x$j"; then
29695          apr_addto_duplicate="1"
29696          break
29697        fi
29698      done
29699      if test $apr_addto_duplicate = "0"; then
29700        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29701        AP_LIBS="$AP_LIBS $i"
29702      fi
29703    done
29704  fi
29705
29706      fi
29707    else
29708      apache_need_shared=yes
29709      libname="mod_cgi.la"
29710      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29711      modpath_shared="$modpath_shared $libname"
29712      cat >>$modpath_current/modules.mk<<EOF
29713$libname: $shobjects
29714	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
29715EOF
29716    fi
29717  fi
29718
29719
29720  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
29721
29722
29723
29724  fi
29725
29726else
29727
29728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgi" >&5
29729$as_echo_n "checking whether to enable mod_cgi... " >&6; }
29730    # Check whether --enable-cgi was given.
29731if test "${enable_cgi+set}" = set; then :
29732  enableval=$enable_cgi; force_cgi=$enableval
29733else
29734  enable_cgi=most
29735fi
29736
29737    _apmod_extra_msg=""
29738        case "$enable_cgi" in
29739    yes|static|shared)
29740      _apmod_required="yes"
29741      ;;
29742    *)
29743      case "$module_selection" in
29744      reallyall|all|most)
29745        _apmod_required="no"
29746        ;;
29747      *)
29748        _apmod_required="yes"
29749        ;;
29750      esac
29751  esac
29752  if test "$enable_cgi" = "static"; then
29753    enable_cgi=static
29754  elif test "$enable_cgi" = "yes"; then
29755    enable_cgi=$module_default
29756  elif test "$enable_cgi" = "most"; then
29757    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29758            "$module_selection" = "reallyall"
29759    then
29760      enable_cgi=$module_default
29761    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29762      enable_cgi=no
29763    fi
29764    _apmod_extra_msg=" ($module_selection)"
29765  elif test "$enable_cgi" = "maybe-all"; then
29766    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29767    then
29768      enable_cgi=$module_default
29769      _apmod_extra_msg=" ($module_selection)"
29770    else
29771      enable_cgi=no
29772    fi
29773  elif test "$enable_cgi" = "no" -a "$module_selection" = "reallyall" -a \
29774            "$force_cgi" != "no" ; then
29775      enable_cgi=$module_default
29776      _apmod_extra_msg=" ($module_selection)"
29777  fi
29778  if test "$enable_cgi" != "no"; then
29779            :
29780  fi
29781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cgi$_apmod_extra_msg" >&5
29782$as_echo "$enable_cgi$_apmod_extra_msg" >&6; }
29783  if test "$enable_cgi" != "no"; then
29784    case "$enable_cgi" in
29785    static*)
29786      MODLIST="$MODLIST cgi"
29787      if test "cgi" = "so"; then
29788          sharedobjs=yes
29789      fi
29790      shared="";;
29791    *)
29792      enable_cgi=`echo $enable_cgi|sed 's/shared,*//'`
29793      sharedobjs=yes
29794      shared=yes
29795      DSO_MODULES="$DSO_MODULES cgi"
29796      if test "most" = "yes" ; then
29797        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgi"
29798      fi
29799      ;;
29800    esac
29801
29802
29803  if test -z ""; then
29804    objects="mod_cgi.lo"
29805  else
29806    objects=""
29807  fi
29808
29809  if test -z "$module_standalone"; then
29810    if test -z "$shared"; then
29811      # The filename of a convenience library must have a "lib" prefix:
29812      libname="libmod_cgi.la"
29813      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29814      modpath_static="$modpath_static $libname"
29815      cat >>$modpath_current/modules.mk<<EOF
29816$libname: $objects
29817	\$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
29818EOF
29819      if test ! -z "\$(MOD_CGI_LDADD)"; then
29820
29821  if test "x$AP_LIBS" = "x"; then
29822    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGI_LDADD)\""
29823    AP_LIBS="\$(MOD_CGI_LDADD)"
29824  else
29825    apr_addto_bugger="\$(MOD_CGI_LDADD)"
29826    for i in $apr_addto_bugger; do
29827      apr_addto_duplicate="0"
29828      for j in $AP_LIBS; do
29829        if test "x$i" = "x$j"; then
29830          apr_addto_duplicate="1"
29831          break
29832        fi
29833      done
29834      if test $apr_addto_duplicate = "0"; then
29835        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29836        AP_LIBS="$AP_LIBS $i"
29837      fi
29838    done
29839  fi
29840
29841      fi
29842    else
29843      apache_need_shared=yes
29844      libname="mod_cgi.la"
29845      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29846      modpath_shared="$modpath_shared $libname"
29847      cat >>$modpath_current/modules.mk<<EOF
29848$libname: $shobjects
29849	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
29850EOF
29851    fi
29852  fi
29853
29854
29855  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
29856
29857
29858
29859  fi
29860
29861
29862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgid" >&5
29863$as_echo_n "checking whether to enable mod_cgid... " >&6; }
29864    # Check whether --enable-cgid was given.
29865if test "${enable_cgid+set}" = set; then :
29866  enableval=$enable_cgid; force_cgid=$enableval
29867else
29868  enable_cgid=no
29869fi
29870
29871    _apmod_extra_msg=""
29872        case "$enable_cgid" in
29873    yes|static|shared)
29874      _apmod_required="yes"
29875      ;;
29876    *)
29877      case "$module_selection" in
29878      reallyall|all|most)
29879        _apmod_required="no"
29880        ;;
29881      *)
29882        _apmod_required="yes"
29883        ;;
29884      esac
29885  esac
29886  if test "$enable_cgid" = "static"; then
29887    enable_cgid=static
29888  elif test "$enable_cgid" = "yes"; then
29889    enable_cgid=$module_default
29890  elif test "$enable_cgid" = "most"; then
29891    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
29892            "$module_selection" = "reallyall"
29893    then
29894      enable_cgid=$module_default
29895    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
29896      enable_cgid=no
29897    fi
29898    _apmod_extra_msg=" ($module_selection)"
29899  elif test "$enable_cgid" = "maybe-all"; then
29900    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
29901    then
29902      enable_cgid=$module_default
29903      _apmod_extra_msg=" ($module_selection)"
29904    else
29905      enable_cgid=no
29906    fi
29907  elif test "$enable_cgid" = "no" -a "$module_selection" = "reallyall" -a \
29908            "$force_cgid" != "no" ; then
29909      enable_cgid=$module_default
29910      _apmod_extra_msg=" ($module_selection)"
29911  fi
29912  if test "$enable_cgid" != "no"; then
29913            :
29914  fi
29915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cgid$_apmod_extra_msg" >&5
29916$as_echo "$enable_cgid$_apmod_extra_msg" >&6; }
29917  if test "$enable_cgid" != "no"; then
29918    case "$enable_cgid" in
29919    static*)
29920      MODLIST="$MODLIST cgid"
29921      if test "cgid" = "so"; then
29922          sharedobjs=yes
29923      fi
29924      shared="";;
29925    *)
29926      enable_cgid=`echo $enable_cgid|sed 's/shared,*//'`
29927      sharedobjs=yes
29928      shared=yes
29929      DSO_MODULES="$DSO_MODULES cgid"
29930      if test "no" = "yes" ; then
29931        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgid"
29932      fi
29933      ;;
29934    esac
29935
29936
29937  if test -z ""; then
29938    objects="mod_cgid.lo"
29939  else
29940    objects=""
29941  fi
29942
29943  if test -z "$module_standalone"; then
29944    if test -z "$shared"; then
29945      # The filename of a convenience library must have a "lib" prefix:
29946      libname="libmod_cgid.la"
29947      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
29948      modpath_static="$modpath_static $libname"
29949      cat >>$modpath_current/modules.mk<<EOF
29950$libname: $objects
29951	\$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
29952EOF
29953      if test ! -z "\$(MOD_CGID_LDADD)"; then
29954
29955  if test "x$AP_LIBS" = "x"; then
29956    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGID_LDADD)\""
29957    AP_LIBS="\$(MOD_CGID_LDADD)"
29958  else
29959    apr_addto_bugger="\$(MOD_CGID_LDADD)"
29960    for i in $apr_addto_bugger; do
29961      apr_addto_duplicate="0"
29962      for j in $AP_LIBS; do
29963        if test "x$i" = "x$j"; then
29964          apr_addto_duplicate="1"
29965          break
29966        fi
29967      done
29968      if test $apr_addto_duplicate = "0"; then
29969        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
29970        AP_LIBS="$AP_LIBS $i"
29971      fi
29972    done
29973  fi
29974
29975      fi
29976    else
29977      apache_need_shared=yes
29978      libname="mod_cgid.la"
29979      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
29980      modpath_shared="$modpath_shared $libname"
29981      cat >>$modpath_current/modules.mk<<EOF
29982$libname: $shobjects
29983	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
29984EOF
29985    fi
29986  fi
29987
29988
29989  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
29990
29991
29992
29993  fi
29994
29995fi
29996
29997
29998  if test "x$INCLUDES" = "x"; then
29999    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
30000    INCLUDES="-I\$(top_srcdir)/$modpath_current"
30001  else
30002    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
30003    for i in $apr_addto_bugger; do
30004      apr_addto_duplicate="0"
30005      for j in $INCLUDES; do
30006        if test "x$i" = "x$j"; then
30007          apr_addto_duplicate="1"
30008          break
30009        fi
30010      done
30011      if test $apr_addto_duplicate = "0"; then
30012        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
30013        INCLUDES="$INCLUDES $i"
30014      fi
30015    done
30016  fi
30017
30018
30019
30020  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
30021  echo "static = $modpath_static" >> $modpath_current/modules.mk
30022  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
30023  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30024    if eval val=\"\$MOD_$var\"; test -n "$val"; then
30025      echo "MOD_$var = $val" >> $modpath_current/modules.mk
30026    fi
30027  done
30028  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
30029    MODULE_DIRS="$MODULE_DIRS $current_dir"
30030  else
30031    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
30032  fi
30033
30034  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
30035
30036
30037
30038
30039    if ap_mpm_is_enabled mpmt_os2; then
30040        if test -z "mpmt_os2.lo mpmt_os2_child.lo"; then
30041            objects="mpmt_os2.lo"
30042        else
30043            objects="mpmt_os2.lo mpmt_os2_child.lo"
30044        fi
30045
30046        if test -z ""; then
30047            mpmpath="server/mpm/mpmt_os2"
30048        else
30049            mpmpath=
30050        fi
30051
30052                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath
30053
30054
30055  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"
30056
30057
30058        if test -z "$enable_mpm_mpmt_os2"; then
30059
30060  if test "x$AP_LIBS" = "x"; then
30061    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
30062    AP_LIBS=""
30063  else
30064    apr_addto_bugger=""
30065    for i in $apr_addto_bugger; do
30066      apr_addto_duplicate="0"
30067      for j in $AP_LIBS; do
30068        if test "x$i" = "x$j"; then
30069          apr_addto_duplicate="1"
30070          break
30071        fi
30072      done
30073      if test $apr_addto_duplicate = "0"; then
30074        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30075        AP_LIBS="$AP_LIBS $i"
30076      fi
30077    done
30078  fi
30079
30080            libname="libmpmt_os2.la"
30081            cat >$mpmpath/modules.mk<<EOF
30082$libname: $objects
30083	\$(MOD_LINK) $objects
30084DISTCLEAN_TARGETS = modules.mk
30085static = $libname
30086shared =
30087EOF
30088        else
30089            apache_need_shared=yes
30090            libname="mod_mpm_mpmt_os2.la"
30091            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30092            cat >$mpmpath/modules.mk<<EOF
30093$libname: $shobjects
30094	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
30095DISTCLEAN_TARGETS = modules.mk
30096static =
30097shared = $libname
30098EOF
30099            # add default MPM to LoadModule list
30100            if test mpmt_os2 = $default_mpm; then
30101                DSO_MODULES="$DSO_MODULES mpm_mpmt_os2"
30102                ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mpm_mpmt_os2"
30103            fi
30104        fi
30105
30106
30107  if test "x$CFLAGS" = "x"; then
30108    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
30109    CFLAGS="-Zmt"
30110  else
30111    apr_addto_bugger="-Zmt"
30112    for i in $apr_addto_bugger; do
30113      apr_addto_duplicate="0"
30114      for j in $CFLAGS; do
30115        if test "x$i" = "x$j"; then
30116          apr_addto_duplicate="1"
30117          break
30118        fi
30119      done
30120      if test $apr_addto_duplicate = "0"; then
30121        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
30122        CFLAGS="$CFLAGS $i"
30123      fi
30124    done
30125  fi
30126
30127
30128    fi
30129
30130
30131
30132
30133  current_dir=dav/fs
30134  modpath_current=modules/dav/fs
30135  modpath_static=
30136  modpath_shared=
30137  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30138    eval MOD_$var=
30139  done
30140  test -d dav/fs || $srcdir/build/mkdir.sh $modpath_current
30141  > $modpath_current/modules.mk
30142
30143
30144dav_fs_objects="mod_dav_fs.lo dbm.lo lock.lo repos.lo"
30145
30146if test "x$enable_dav" != "x"; then
30147  dav_fs_enable=$enable_dav
30148else
30149  dav_fs_enable=$dav_enable
30150fi
30151
30152case "$host" in
30153  *os2*)
30154    # OS/2 DLLs must resolve all symbols at build time
30155    # and we need some from main DAV module
30156    dav_fs_objects="$dav_fs_objects ../main/mod_dav.la"
30157    ;;
30158esac
30159
30160
30161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_fs" >&5
30162$as_echo_n "checking whether to enable mod_dav_fs... " >&6; }
30163    # Check whether --enable-dav-fs was given.
30164if test "${enable_dav_fs+set}" = set; then :
30165  enableval=$enable_dav_fs; force_dav_fs=$enableval
30166else
30167  enable_dav_fs=$dav_fs_enable
30168fi
30169
30170    _apmod_extra_msg=""
30171        case "$enable_dav_fs" in
30172    yes|static|shared)
30173      _apmod_required="yes"
30174      ;;
30175    *)
30176      case "$module_selection" in
30177      reallyall|all|most)
30178        _apmod_required="no"
30179        ;;
30180      *)
30181        _apmod_required="yes"
30182        ;;
30183      esac
30184  esac
30185  if test "$enable_dav_fs" = "static"; then
30186    enable_dav_fs=static
30187  elif test "$enable_dav_fs" = "yes"; then
30188    enable_dav_fs=$module_default
30189  elif test "$enable_dav_fs" = "most"; then
30190    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30191            "$module_selection" = "reallyall"
30192    then
30193      enable_dav_fs=$module_default
30194    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30195      enable_dav_fs=no
30196    fi
30197    _apmod_extra_msg=" ($module_selection)"
30198  elif test "$enable_dav_fs" = "maybe-all"; then
30199    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30200    then
30201      enable_dav_fs=$module_default
30202      _apmod_extra_msg=" ($module_selection)"
30203    else
30204      enable_dav_fs=no
30205    fi
30206  elif test "$enable_dav_fs" = "no" -a "$module_selection" = "reallyall" -a \
30207            "$force_dav_fs" != "no" ; then
30208      enable_dav_fs=$module_default
30209      _apmod_extra_msg=" ($module_selection)"
30210  fi
30211  if test "$enable_dav_fs" != "no"; then
30212            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
30213$as_echo "checking dependencies" >&6; }
30214            if test "$enable_dav" = "no" ; then
30215                              enable_dav_fs=no
30216                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_dav is disabled but required for mod_dav_fs\"" >&5
30217$as_echo "$as_me: WARNING: \"mod_dav is disabled but required for mod_dav_fs\"" >&2;}
30218                            elif test "$enable_dav_fs" = "static" && test "$enable_dav" != "static" ; then
30219                              enable_dav_fs=no
30220                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_dav_fs statically if mod_dav is built shared\"" >&5
30221$as_echo "$as_me: WARNING: \"cannot build mod_dav_fs statically if mod_dav is built shared\"" >&2;}
30222                            else
30223            :
30224            fi
30225            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_fs" >&5
30226$as_echo_n "checking whether to enable mod_dav_fs... " >&6; }
30227            if test "$enable_dav_fs" = "no"; then
30228              if test "$_apmod_required" = "no"; then
30229                _apmod_extra_msg=" (disabled)"
30230              else
30231                as_fn_error $? "mod_dav_fs has been requested but can not be built due to prerequisite failures" "$LINENO" 5
30232              fi
30233            fi
30234  fi
30235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dav_fs$_apmod_extra_msg" >&5
30236$as_echo "$enable_dav_fs$_apmod_extra_msg" >&6; }
30237  if test "$enable_dav_fs" != "no"; then
30238    case "$enable_dav_fs" in
30239    static*)
30240      MODLIST="$MODLIST dav_fs"
30241      if test "dav_fs" = "so"; then
30242          sharedobjs=yes
30243      fi
30244      shared="";;
30245    *)
30246      enable_dav_fs=`echo $enable_dav_fs|sed 's/shared,*//'`
30247      sharedobjs=yes
30248      shared=yes
30249      DSO_MODULES="$DSO_MODULES dav_fs"
30250      if test "$dav_fs_enable" = "yes" ; then
30251        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dav_fs"
30252      fi
30253      ;;
30254    esac
30255
30256
30257  if test -z "$dav_fs_objects"; then
30258    objects="mod_dav_fs.lo"
30259  else
30260    objects="$dav_fs_objects"
30261  fi
30262
30263  if test -z "$module_standalone"; then
30264    if test -z "$shared"; then
30265      # The filename of a convenience library must have a "lib" prefix:
30266      libname="libmod_dav_fs.la"
30267      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30268      modpath_static="$modpath_static $libname"
30269      cat >>$modpath_current/modules.mk<<EOF
30270$libname: $objects
30271	\$(MOD_LINK) $objects \$(MOD_DAV_FS_LDADD)
30272EOF
30273      if test ! -z "\$(MOD_DAV_FS_LDADD)"; then
30274
30275  if test "x$AP_LIBS" = "x"; then
30276    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DAV_FS_LDADD)\""
30277    AP_LIBS="\$(MOD_DAV_FS_LDADD)"
30278  else
30279    apr_addto_bugger="\$(MOD_DAV_FS_LDADD)"
30280    for i in $apr_addto_bugger; do
30281      apr_addto_duplicate="0"
30282      for j in $AP_LIBS; do
30283        if test "x$i" = "x$j"; then
30284          apr_addto_duplicate="1"
30285          break
30286        fi
30287      done
30288      if test $apr_addto_duplicate = "0"; then
30289        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30290        AP_LIBS="$AP_LIBS $i"
30291      fi
30292    done
30293  fi
30294
30295      fi
30296    else
30297      apache_need_shared=yes
30298      libname="mod_dav_fs.la"
30299      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30300      modpath_shared="$modpath_shared $libname"
30301      cat >>$modpath_current/modules.mk<<EOF
30302$libname: $shobjects
30303	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_FS_LDADD)
30304EOF
30305    fi
30306  fi
30307
30308
30309  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_FS_LDADD"
30310
30311
30312
30313  fi
30314
30315
30316
30317  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
30318  echo "static = $modpath_static" >> $modpath_current/modules.mk
30319  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
30320  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30321    if eval val=\"\$MOD_$var\"; test -n "$val"; then
30322      echo "MOD_$var = $val" >> $modpath_current/modules.mk
30323    fi
30324  done
30325  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
30326    MODULE_DIRS="$MODULE_DIRS $current_dir"
30327  else
30328    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
30329  fi
30330
30331  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
30332
30333
30334
30335
30336
30337  current_dir=dav/lock
30338  modpath_current=modules/dav/lock
30339  modpath_static=
30340  modpath_shared=
30341  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30342    eval MOD_$var=
30343  done
30344  test -d dav/lock || $srcdir/build/mkdir.sh $modpath_current
30345  > $modpath_current/modules.mk
30346
30347
30348dav_lock_objects="mod_dav_lock.lo locks.lo"
30349
30350case "$host" in
30351  *os2*)
30352    # OS/2 DLLs must resolve all symbols at build time
30353    # and we need some from main DAV module
30354    dav_lock_objects="$dav_lock_objects ../main/mod_dav.la"
30355    ;;
30356esac
30357
30358
30359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_lock" >&5
30360$as_echo_n "checking whether to enable mod_dav_lock... " >&6; }
30361    # Check whether --enable-dav-lock was given.
30362if test "${enable_dav_lock+set}" = set; then :
30363  enableval=$enable_dav_lock; force_dav_lock=$enableval
30364else
30365  enable_dav_lock=maybe-all
30366fi
30367
30368    _apmod_extra_msg=""
30369        case "$enable_dav_lock" in
30370    yes|static|shared)
30371      _apmod_required="yes"
30372      ;;
30373    *)
30374      case "$module_selection" in
30375      reallyall|all|most)
30376        _apmod_required="no"
30377        ;;
30378      *)
30379        _apmod_required="yes"
30380        ;;
30381      esac
30382  esac
30383  if test "$enable_dav_lock" = "static"; then
30384    enable_dav_lock=static
30385  elif test "$enable_dav_lock" = "yes"; then
30386    enable_dav_lock=$module_default
30387  elif test "$enable_dav_lock" = "most"; then
30388    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30389            "$module_selection" = "reallyall"
30390    then
30391      enable_dav_lock=$module_default
30392    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30393      enable_dav_lock=no
30394    fi
30395    _apmod_extra_msg=" ($module_selection)"
30396  elif test "$enable_dav_lock" = "maybe-all"; then
30397    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30398    then
30399      enable_dav_lock=$module_default
30400      _apmod_extra_msg=" ($module_selection)"
30401    else
30402      enable_dav_lock=no
30403    fi
30404  elif test "$enable_dav_lock" = "no" -a "$module_selection" = "reallyall" -a \
30405            "$force_dav_lock" != "no" ; then
30406      enable_dav_lock=$module_default
30407      _apmod_extra_msg=" ($module_selection)"
30408  fi
30409  if test "$enable_dav_lock" != "no"; then
30410            { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
30411$as_echo "checking dependencies" >&6; }
30412            if test "$enable_dav" = "no" ; then
30413                              enable_dav_lock=no
30414                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_dav is disabled but required for mod_dav_lock\"" >&5
30415$as_echo "$as_me: WARNING: \"mod_dav is disabled but required for mod_dav_lock\"" >&2;}
30416                            elif test "$enable_dav_lock" = "static" && test "$enable_dav" != "static" ; then
30417                              enable_dav_lock=no
30418                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"cannot build mod_dav_lock statically if mod_dav is built shared\"" >&5
30419$as_echo "$as_me: WARNING: \"cannot build mod_dav_lock statically if mod_dav is built shared\"" >&2;}
30420                            else
30421            :
30422            fi
30423            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_lock" >&5
30424$as_echo_n "checking whether to enable mod_dav_lock... " >&6; }
30425            if test "$enable_dav_lock" = "no"; then
30426              if test "$_apmod_required" = "no"; then
30427                _apmod_extra_msg=" (disabled)"
30428              else
30429                as_fn_error $? "mod_dav_lock has been requested but can not be built due to prerequisite failures" "$LINENO" 5
30430              fi
30431            fi
30432  fi
30433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dav_lock$_apmod_extra_msg" >&5
30434$as_echo "$enable_dav_lock$_apmod_extra_msg" >&6; }
30435  if test "$enable_dav_lock" != "no"; then
30436    case "$enable_dav_lock" in
30437    static*)
30438      MODLIST="$MODLIST dav_lock"
30439      if test "dav_lock" = "so"; then
30440          sharedobjs=yes
30441      fi
30442      shared="";;
30443    *)
30444      enable_dav_lock=`echo $enable_dav_lock|sed 's/shared,*//'`
30445      sharedobjs=yes
30446      shared=yes
30447      DSO_MODULES="$DSO_MODULES dav_lock"
30448      if test "" = "yes" ; then
30449        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dav_lock"
30450      fi
30451      ;;
30452    esac
30453
30454
30455  if test -z "$dav_lock_objects"; then
30456    objects="mod_dav_lock.lo"
30457  else
30458    objects="$dav_lock_objects"
30459  fi
30460
30461  if test -z "$module_standalone"; then
30462    if test -z "$shared"; then
30463      # The filename of a convenience library must have a "lib" prefix:
30464      libname="libmod_dav_lock.la"
30465      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30466      modpath_static="$modpath_static $libname"
30467      cat >>$modpath_current/modules.mk<<EOF
30468$libname: $objects
30469	\$(MOD_LINK) $objects \$(MOD_DAV_LOCK_LDADD)
30470EOF
30471      if test ! -z "\$(MOD_DAV_LOCK_LDADD)"; then
30472
30473  if test "x$AP_LIBS" = "x"; then
30474    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DAV_LOCK_LDADD)\""
30475    AP_LIBS="\$(MOD_DAV_LOCK_LDADD)"
30476  else
30477    apr_addto_bugger="\$(MOD_DAV_LOCK_LDADD)"
30478    for i in $apr_addto_bugger; do
30479      apr_addto_duplicate="0"
30480      for j in $AP_LIBS; do
30481        if test "x$i" = "x$j"; then
30482          apr_addto_duplicate="1"
30483          break
30484        fi
30485      done
30486      if test $apr_addto_duplicate = "0"; then
30487        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30488        AP_LIBS="$AP_LIBS $i"
30489      fi
30490    done
30491  fi
30492
30493      fi
30494    else
30495      apache_need_shared=yes
30496      libname="mod_dav_lock.la"
30497      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30498      modpath_shared="$modpath_shared $libname"
30499      cat >>$modpath_current/modules.mk<<EOF
30500$libname: $shobjects
30501	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_LOCK_LDADD)
30502EOF
30503    fi
30504  fi
30505
30506
30507  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LOCK_LDADD"
30508
30509
30510
30511  fi
30512
30513
30514
30515  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
30516  echo "static = $modpath_static" >> $modpath_current/modules.mk
30517  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
30518  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30519    if eval val=\"\$MOD_$var\"; test -n "$val"; then
30520      echo "MOD_$var = $val" >> $modpath_current/modules.mk
30521    fi
30522  done
30523  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
30524    MODULE_DIRS="$MODULE_DIRS $current_dir"
30525  else
30526    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
30527  fi
30528
30529  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
30530
30531
30532
30533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra modules" >&5
30534$as_echo_n "checking for extra modules... " >&6; }
30535
30536# Check whether --with-module was given.
30537if test "${with_module+set}" = set; then :
30538  withval=$with_module;
30539    withval=`echo $withval | sed -e 's/,/ /g'`
30540    for mod in $withval
30541    do
30542      modtype=`echo $mod | sed -e's/\(.*\):.*/\1/'`
30543      pkg=`echo $mod | sed -e's/.*:\(.*\)/\1/'`
30544      modfilec=`echo $pkg | sed -e 's;^.*/;;'`
30545      modfileo=`echo $pkg | sed -e 's;^.*/;;' -e 's;\.c$;.o;'`
30546      modpath_current="modules/$modtype"
30547      if test "x$mod" != "x$modpath_current/$modfilec"; then
30548        if test ! -d "$modpath_current"; then
30549          mkdir $modpath_current
30550          echo 'include $(top_srcdir)/build/special.mk' > $modpath_current/Makefile.in
30551        fi
30552        cp $pkg $modpath_current/$modfilec
30553      fi
30554      module=`echo $pkg | sed -e 's;\(.*/\).*mod_\(.*\).c;\2;'`
30555      objects="mod_$module.lo"
30556      # The filename of a convenience library must have a "lib" prefix:
30557      libname="libmod_$module.la"
30558      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30559      if test ! -s "$modpath_current/modules.mk"; then
30560        cat >>$modpath_current/modules.mk<<EOF
30561$libname: $objects
30562	\$(MOD_LINK) $objects
30563DISTCLEAN_TARGETS = modules.mk
30564static = $libname
30565shared =
30566EOF
30567      else
30568        cat >>$modpath_current/modules.mk.tmp<<EOF
30569$libname: $objects
30570	\$(MOD_LINK) $objects
30571EOF
30572        cat $modpath_current/modules.mk >> $modpath_current/modules.mk.tmp
30573        rm $modpath_current/modules.mk
30574        mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
30575        sed -e "s/\(static =.*\)/\1 $libname/" $modpath_current/modules.mk > $modpath_current/modules.mk.tmp
30576        rm $modpath_current/modules.mk
30577        mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
30578      fi
30579      MODLIST="$MODLIST $module"
30580      EXTRA_MODLIST="$EXTRA_MODLIST $modtype:$modfilec"
30581      MODULE_DIRS="$MODULE_DIRS $modtype"
30582
30583  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
30584
30585    done
30586    if test ! -z "$EXTRA_MODLIST"; then
30587      { $as_echo "$as_me:${as_lineno-$LINENO}: result: added:$EXTRA_MODLIST" >&5
30588$as_echo "added:$EXTRA_MODLIST" >&6; }
30589    fi
30590
30591else
30592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
30593$as_echo "none" >&6; }
30594
30595fi
30596
30597
30598
30599
30600
30601  current_dir=mappers
30602  modpath_current=modules/mappers
30603  modpath_static=
30604  modpath_shared=
30605  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
30606    eval MOD_$var=
30607  done
30608  test -d mappers || $srcdir/build/mkdir.sh $modpath_current
30609  > $modpath_current/modules.mk
30610
30611
30612
30613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_vhost_alias" >&5
30614$as_echo_n "checking whether to enable mod_vhost_alias... " >&6; }
30615    # Check whether --enable-vhost-alias was given.
30616if test "${enable_vhost_alias+set}" = set; then :
30617  enableval=$enable_vhost_alias; force_vhost_alias=$enableval
30618else
30619  enable_vhost_alias=most
30620fi
30621
30622    _apmod_extra_msg=""
30623        case "$enable_vhost_alias" in
30624    yes|static|shared)
30625      _apmod_required="yes"
30626      ;;
30627    *)
30628      case "$module_selection" in
30629      reallyall|all|most)
30630        _apmod_required="no"
30631        ;;
30632      *)
30633        _apmod_required="yes"
30634        ;;
30635      esac
30636  esac
30637  if test "$enable_vhost_alias" = "static"; then
30638    enable_vhost_alias=static
30639  elif test "$enable_vhost_alias" = "yes"; then
30640    enable_vhost_alias=$module_default
30641  elif test "$enable_vhost_alias" = "most"; then
30642    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30643            "$module_selection" = "reallyall"
30644    then
30645      enable_vhost_alias=$module_default
30646    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30647      enable_vhost_alias=no
30648    fi
30649    _apmod_extra_msg=" ($module_selection)"
30650  elif test "$enable_vhost_alias" = "maybe-all"; then
30651    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30652    then
30653      enable_vhost_alias=$module_default
30654      _apmod_extra_msg=" ($module_selection)"
30655    else
30656      enable_vhost_alias=no
30657    fi
30658  elif test "$enable_vhost_alias" = "no" -a "$module_selection" = "reallyall" -a \
30659            "$force_vhost_alias" != "no" ; then
30660      enable_vhost_alias=$module_default
30661      _apmod_extra_msg=" ($module_selection)"
30662  fi
30663  if test "$enable_vhost_alias" != "no"; then
30664            :
30665  fi
30666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vhost_alias$_apmod_extra_msg" >&5
30667$as_echo "$enable_vhost_alias$_apmod_extra_msg" >&6; }
30668  if test "$enable_vhost_alias" != "no"; then
30669    case "$enable_vhost_alias" in
30670    static*)
30671      MODLIST="$MODLIST vhost_alias"
30672      if test "vhost_alias" = "so"; then
30673          sharedobjs=yes
30674      fi
30675      shared="";;
30676    *)
30677      enable_vhost_alias=`echo $enable_vhost_alias|sed 's/shared,*//'`
30678      sharedobjs=yes
30679      shared=yes
30680      DSO_MODULES="$DSO_MODULES vhost_alias"
30681      if test "most" = "yes" ; then
30682        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},vhost_alias"
30683      fi
30684      ;;
30685    esac
30686
30687
30688  if test -z ""; then
30689    objects="mod_vhost_alias.lo"
30690  else
30691    objects=""
30692  fi
30693
30694  if test -z "$module_standalone"; then
30695    if test -z "$shared"; then
30696      # The filename of a convenience library must have a "lib" prefix:
30697      libname="libmod_vhost_alias.la"
30698      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30699      modpath_static="$modpath_static $libname"
30700      cat >>$modpath_current/modules.mk<<EOF
30701$libname: $objects
30702	\$(MOD_LINK) $objects \$(MOD_VHOST_ALIAS_LDADD)
30703EOF
30704      if test ! -z "\$(MOD_VHOST_ALIAS_LDADD)"; then
30705
30706  if test "x$AP_LIBS" = "x"; then
30707    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_VHOST_ALIAS_LDADD)\""
30708    AP_LIBS="\$(MOD_VHOST_ALIAS_LDADD)"
30709  else
30710    apr_addto_bugger="\$(MOD_VHOST_ALIAS_LDADD)"
30711    for i in $apr_addto_bugger; do
30712      apr_addto_duplicate="0"
30713      for j in $AP_LIBS; do
30714        if test "x$i" = "x$j"; then
30715          apr_addto_duplicate="1"
30716          break
30717        fi
30718      done
30719      if test $apr_addto_duplicate = "0"; then
30720        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30721        AP_LIBS="$AP_LIBS $i"
30722      fi
30723    done
30724  fi
30725
30726      fi
30727    else
30728      apache_need_shared=yes
30729      libname="mod_vhost_alias.la"
30730      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30731      modpath_shared="$modpath_shared $libname"
30732      cat >>$modpath_current/modules.mk<<EOF
30733$libname: $shobjects
30734	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VHOST_ALIAS_LDADD)
30735EOF
30736    fi
30737  fi
30738
30739
30740  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VHOST_ALIAS_LDADD"
30741
30742
30743
30744  fi
30745
30746
30747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_negotiation" >&5
30748$as_echo_n "checking whether to enable mod_negotiation... " >&6; }
30749    # Check whether --enable-negotiation was given.
30750if test "${enable_negotiation+set}" = set; then :
30751  enableval=$enable_negotiation; force_negotiation=$enableval
30752else
30753  enable_negotiation=most
30754fi
30755
30756    _apmod_extra_msg=""
30757        case "$enable_negotiation" in
30758    yes|static|shared)
30759      _apmod_required="yes"
30760      ;;
30761    *)
30762      case "$module_selection" in
30763      reallyall|all|most)
30764        _apmod_required="no"
30765        ;;
30766      *)
30767        _apmod_required="yes"
30768        ;;
30769      esac
30770  esac
30771  if test "$enable_negotiation" = "static"; then
30772    enable_negotiation=static
30773  elif test "$enable_negotiation" = "yes"; then
30774    enable_negotiation=$module_default
30775  elif test "$enable_negotiation" = "most"; then
30776    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30777            "$module_selection" = "reallyall"
30778    then
30779      enable_negotiation=$module_default
30780    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30781      enable_negotiation=no
30782    fi
30783    _apmod_extra_msg=" ($module_selection)"
30784  elif test "$enable_negotiation" = "maybe-all"; then
30785    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30786    then
30787      enable_negotiation=$module_default
30788      _apmod_extra_msg=" ($module_selection)"
30789    else
30790      enable_negotiation=no
30791    fi
30792  elif test "$enable_negotiation" = "no" -a "$module_selection" = "reallyall" -a \
30793            "$force_negotiation" != "no" ; then
30794      enable_negotiation=$module_default
30795      _apmod_extra_msg=" ($module_selection)"
30796  fi
30797  if test "$enable_negotiation" != "no"; then
30798            :
30799  fi
30800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_negotiation$_apmod_extra_msg" >&5
30801$as_echo "$enable_negotiation$_apmod_extra_msg" >&6; }
30802  if test "$enable_negotiation" != "no"; then
30803    case "$enable_negotiation" in
30804    static*)
30805      MODLIST="$MODLIST negotiation"
30806      if test "negotiation" = "so"; then
30807          sharedobjs=yes
30808      fi
30809      shared="";;
30810    *)
30811      enable_negotiation=`echo $enable_negotiation|sed 's/shared,*//'`
30812      sharedobjs=yes
30813      shared=yes
30814      DSO_MODULES="$DSO_MODULES negotiation"
30815      if test "most" = "yes" ; then
30816        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},negotiation"
30817      fi
30818      ;;
30819    esac
30820
30821
30822  if test -z ""; then
30823    objects="mod_negotiation.lo"
30824  else
30825    objects=""
30826  fi
30827
30828  if test -z "$module_standalone"; then
30829    if test -z "$shared"; then
30830      # The filename of a convenience library must have a "lib" prefix:
30831      libname="libmod_negotiation.la"
30832      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30833      modpath_static="$modpath_static $libname"
30834      cat >>$modpath_current/modules.mk<<EOF
30835$libname: $objects
30836	\$(MOD_LINK) $objects \$(MOD_NEGOTIATION_LDADD)
30837EOF
30838      if test ! -z "\$(MOD_NEGOTIATION_LDADD)"; then
30839
30840  if test "x$AP_LIBS" = "x"; then
30841    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_NEGOTIATION_LDADD)\""
30842    AP_LIBS="\$(MOD_NEGOTIATION_LDADD)"
30843  else
30844    apr_addto_bugger="\$(MOD_NEGOTIATION_LDADD)"
30845    for i in $apr_addto_bugger; do
30846      apr_addto_duplicate="0"
30847      for j in $AP_LIBS; do
30848        if test "x$i" = "x$j"; then
30849          apr_addto_duplicate="1"
30850          break
30851        fi
30852      done
30853      if test $apr_addto_duplicate = "0"; then
30854        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30855        AP_LIBS="$AP_LIBS $i"
30856      fi
30857    done
30858  fi
30859
30860      fi
30861    else
30862      apache_need_shared=yes
30863      libname="mod_negotiation.la"
30864      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30865      modpath_shared="$modpath_shared $libname"
30866      cat >>$modpath_current/modules.mk<<EOF
30867$libname: $shobjects
30868	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_NEGOTIATION_LDADD)
30869EOF
30870    fi
30871  fi
30872
30873
30874  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_NEGOTIATION_LDADD"
30875
30876
30877
30878  fi
30879
30880
30881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dir" >&5
30882$as_echo_n "checking whether to enable mod_dir... " >&6; }
30883    # Check whether --enable-dir was given.
30884if test "${enable_dir+set}" = set; then :
30885  enableval=$enable_dir; force_dir=$enableval
30886else
30887  enable_dir=yes
30888fi
30889
30890    _apmod_extra_msg=""
30891        case "$enable_dir" in
30892    yes|static|shared)
30893      _apmod_required="yes"
30894      ;;
30895    *)
30896      case "$module_selection" in
30897      reallyall|all|most)
30898        _apmod_required="no"
30899        ;;
30900      *)
30901        _apmod_required="yes"
30902        ;;
30903      esac
30904  esac
30905  if test "$enable_dir" = "static"; then
30906    enable_dir=static
30907  elif test "$enable_dir" = "yes"; then
30908    enable_dir=$module_default
30909  elif test "$enable_dir" = "most"; then
30910    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
30911            "$module_selection" = "reallyall"
30912    then
30913      enable_dir=$module_default
30914    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
30915      enable_dir=no
30916    fi
30917    _apmod_extra_msg=" ($module_selection)"
30918  elif test "$enable_dir" = "maybe-all"; then
30919    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
30920    then
30921      enable_dir=$module_default
30922      _apmod_extra_msg=" ($module_selection)"
30923    else
30924      enable_dir=no
30925    fi
30926  elif test "$enable_dir" = "no" -a "$module_selection" = "reallyall" -a \
30927            "$force_dir" != "no" ; then
30928      enable_dir=$module_default
30929      _apmod_extra_msg=" ($module_selection)"
30930  fi
30931  if test "$enable_dir" != "no"; then
30932            :
30933  fi
30934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dir$_apmod_extra_msg" >&5
30935$as_echo "$enable_dir$_apmod_extra_msg" >&6; }
30936  if test "$enable_dir" != "no"; then
30937    case "$enable_dir" in
30938    static*)
30939      MODLIST="$MODLIST dir"
30940      if test "dir" = "so"; then
30941          sharedobjs=yes
30942      fi
30943      shared="";;
30944    *)
30945      enable_dir=`echo $enable_dir|sed 's/shared,*//'`
30946      sharedobjs=yes
30947      shared=yes
30948      DSO_MODULES="$DSO_MODULES dir"
30949      if test "yes" = "yes" ; then
30950        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dir"
30951      fi
30952      ;;
30953    esac
30954
30955
30956  if test -z ""; then
30957    objects="mod_dir.lo"
30958  else
30959    objects=""
30960  fi
30961
30962  if test -z "$module_standalone"; then
30963    if test -z "$shared"; then
30964      # The filename of a convenience library must have a "lib" prefix:
30965      libname="libmod_dir.la"
30966      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
30967      modpath_static="$modpath_static $libname"
30968      cat >>$modpath_current/modules.mk<<EOF
30969$libname: $objects
30970	\$(MOD_LINK) $objects \$(MOD_DIR_LDADD)
30971EOF
30972      if test ! -z "\$(MOD_DIR_LDADD)"; then
30973
30974  if test "x$AP_LIBS" = "x"; then
30975    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DIR_LDADD)\""
30976    AP_LIBS="\$(MOD_DIR_LDADD)"
30977  else
30978    apr_addto_bugger="\$(MOD_DIR_LDADD)"
30979    for i in $apr_addto_bugger; do
30980      apr_addto_duplicate="0"
30981      for j in $AP_LIBS; do
30982        if test "x$i" = "x$j"; then
30983          apr_addto_duplicate="1"
30984          break
30985        fi
30986      done
30987      if test $apr_addto_duplicate = "0"; then
30988        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
30989        AP_LIBS="$AP_LIBS $i"
30990      fi
30991    done
30992  fi
30993
30994      fi
30995    else
30996      apache_need_shared=yes
30997      libname="mod_dir.la"
30998      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
30999      modpath_shared="$modpath_shared $libname"
31000      cat >>$modpath_current/modules.mk<<EOF
31001$libname: $shobjects
31002	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DIR_LDADD)
31003EOF
31004    fi
31005  fi
31006
31007
31008  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DIR_LDADD"
31009
31010
31011
31012  fi
31013
31014
31015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_imagemap" >&5
31016$as_echo_n "checking whether to enable mod_imagemap... " >&6; }
31017    # Check whether --enable-imagemap was given.
31018if test "${enable_imagemap+set}" = set; then :
31019  enableval=$enable_imagemap; force_imagemap=$enableval
31020else
31021  enable_imagemap=no
31022fi
31023
31024    _apmod_extra_msg=""
31025        case "$enable_imagemap" in
31026    yes|static|shared)
31027      _apmod_required="yes"
31028      ;;
31029    *)
31030      case "$module_selection" in
31031      reallyall|all|most)
31032        _apmod_required="no"
31033        ;;
31034      *)
31035        _apmod_required="yes"
31036        ;;
31037      esac
31038  esac
31039  if test "$enable_imagemap" = "static"; then
31040    enable_imagemap=static
31041  elif test "$enable_imagemap" = "yes"; then
31042    enable_imagemap=$module_default
31043  elif test "$enable_imagemap" = "most"; then
31044    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31045            "$module_selection" = "reallyall"
31046    then
31047      enable_imagemap=$module_default
31048    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31049      enable_imagemap=no
31050    fi
31051    _apmod_extra_msg=" ($module_selection)"
31052  elif test "$enable_imagemap" = "maybe-all"; then
31053    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31054    then
31055      enable_imagemap=$module_default
31056      _apmod_extra_msg=" ($module_selection)"
31057    else
31058      enable_imagemap=no
31059    fi
31060  elif test "$enable_imagemap" = "no" -a "$module_selection" = "reallyall" -a \
31061            "$force_imagemap" != "no" ; then
31062      enable_imagemap=$module_default
31063      _apmod_extra_msg=" ($module_selection)"
31064  fi
31065  if test "$enable_imagemap" != "no"; then
31066            :
31067  fi
31068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_imagemap$_apmod_extra_msg" >&5
31069$as_echo "$enable_imagemap$_apmod_extra_msg" >&6; }
31070  if test "$enable_imagemap" != "no"; then
31071    case "$enable_imagemap" in
31072    static*)
31073      MODLIST="$MODLIST imagemap"
31074      if test "imagemap" = "so"; then
31075          sharedobjs=yes
31076      fi
31077      shared="";;
31078    *)
31079      enable_imagemap=`echo $enable_imagemap|sed 's/shared,*//'`
31080      sharedobjs=yes
31081      shared=yes
31082      DSO_MODULES="$DSO_MODULES imagemap"
31083      if test "no" = "yes" ; then
31084        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},imagemap"
31085      fi
31086      ;;
31087    esac
31088
31089
31090  if test -z ""; then
31091    objects="mod_imagemap.lo"
31092  else
31093    objects=""
31094  fi
31095
31096  if test -z "$module_standalone"; then
31097    if test -z "$shared"; then
31098      # The filename of a convenience library must have a "lib" prefix:
31099      libname="libmod_imagemap.la"
31100      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31101      modpath_static="$modpath_static $libname"
31102      cat >>$modpath_current/modules.mk<<EOF
31103$libname: $objects
31104	\$(MOD_LINK) $objects \$(MOD_IMAGEMAP_LDADD)
31105EOF
31106      if test ! -z "\$(MOD_IMAGEMAP_LDADD)"; then
31107
31108  if test "x$AP_LIBS" = "x"; then
31109    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_IMAGEMAP_LDADD)\""
31110    AP_LIBS="\$(MOD_IMAGEMAP_LDADD)"
31111  else
31112    apr_addto_bugger="\$(MOD_IMAGEMAP_LDADD)"
31113    for i in $apr_addto_bugger; do
31114      apr_addto_duplicate="0"
31115      for j in $AP_LIBS; do
31116        if test "x$i" = "x$j"; then
31117          apr_addto_duplicate="1"
31118          break
31119        fi
31120      done
31121      if test $apr_addto_duplicate = "0"; then
31122        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31123        AP_LIBS="$AP_LIBS $i"
31124      fi
31125    done
31126  fi
31127
31128      fi
31129    else
31130      apache_need_shared=yes
31131      libname="mod_imagemap.la"
31132      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31133      modpath_shared="$modpath_shared $libname"
31134      cat >>$modpath_current/modules.mk<<EOF
31135$libname: $shobjects
31136	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_IMAGEMAP_LDADD)
31137EOF
31138    fi
31139  fi
31140
31141
31142  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IMAGEMAP_LDADD"
31143
31144
31145
31146  fi
31147
31148
31149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_actions" >&5
31150$as_echo_n "checking whether to enable mod_actions... " >&6; }
31151    # Check whether --enable-actions was given.
31152if test "${enable_actions+set}" = set; then :
31153  enableval=$enable_actions; force_actions=$enableval
31154else
31155  enable_actions=most
31156fi
31157
31158    _apmod_extra_msg=""
31159        case "$enable_actions" in
31160    yes|static|shared)
31161      _apmod_required="yes"
31162      ;;
31163    *)
31164      case "$module_selection" in
31165      reallyall|all|most)
31166        _apmod_required="no"
31167        ;;
31168      *)
31169        _apmod_required="yes"
31170        ;;
31171      esac
31172  esac
31173  if test "$enable_actions" = "static"; then
31174    enable_actions=static
31175  elif test "$enable_actions" = "yes"; then
31176    enable_actions=$module_default
31177  elif test "$enable_actions" = "most"; then
31178    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31179            "$module_selection" = "reallyall"
31180    then
31181      enable_actions=$module_default
31182    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31183      enable_actions=no
31184    fi
31185    _apmod_extra_msg=" ($module_selection)"
31186  elif test "$enable_actions" = "maybe-all"; then
31187    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31188    then
31189      enable_actions=$module_default
31190      _apmod_extra_msg=" ($module_selection)"
31191    else
31192      enable_actions=no
31193    fi
31194  elif test "$enable_actions" = "no" -a "$module_selection" = "reallyall" -a \
31195            "$force_actions" != "no" ; then
31196      enable_actions=$module_default
31197      _apmod_extra_msg=" ($module_selection)"
31198  fi
31199  if test "$enable_actions" != "no"; then
31200            :
31201  fi
31202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_actions$_apmod_extra_msg" >&5
31203$as_echo "$enable_actions$_apmod_extra_msg" >&6; }
31204  if test "$enable_actions" != "no"; then
31205    case "$enable_actions" in
31206    static*)
31207      MODLIST="$MODLIST actions"
31208      if test "actions" = "so"; then
31209          sharedobjs=yes
31210      fi
31211      shared="";;
31212    *)
31213      enable_actions=`echo $enable_actions|sed 's/shared,*//'`
31214      sharedobjs=yes
31215      shared=yes
31216      DSO_MODULES="$DSO_MODULES actions"
31217      if test "most" = "yes" ; then
31218        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},actions"
31219      fi
31220      ;;
31221    esac
31222
31223
31224  if test -z ""; then
31225    objects="mod_actions.lo"
31226  else
31227    objects=""
31228  fi
31229
31230  if test -z "$module_standalone"; then
31231    if test -z "$shared"; then
31232      # The filename of a convenience library must have a "lib" prefix:
31233      libname="libmod_actions.la"
31234      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31235      modpath_static="$modpath_static $libname"
31236      cat >>$modpath_current/modules.mk<<EOF
31237$libname: $objects
31238	\$(MOD_LINK) $objects \$(MOD_ACTIONS_LDADD)
31239EOF
31240      if test ! -z "\$(MOD_ACTIONS_LDADD)"; then
31241
31242  if test "x$AP_LIBS" = "x"; then
31243    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ACTIONS_LDADD)\""
31244    AP_LIBS="\$(MOD_ACTIONS_LDADD)"
31245  else
31246    apr_addto_bugger="\$(MOD_ACTIONS_LDADD)"
31247    for i in $apr_addto_bugger; do
31248      apr_addto_duplicate="0"
31249      for j in $AP_LIBS; do
31250        if test "x$i" = "x$j"; then
31251          apr_addto_duplicate="1"
31252          break
31253        fi
31254      done
31255      if test $apr_addto_duplicate = "0"; then
31256        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31257        AP_LIBS="$AP_LIBS $i"
31258      fi
31259    done
31260  fi
31261
31262      fi
31263    else
31264      apache_need_shared=yes
31265      libname="mod_actions.la"
31266      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31267      modpath_shared="$modpath_shared $libname"
31268      cat >>$modpath_current/modules.mk<<EOF
31269$libname: $shobjects
31270	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ACTIONS_LDADD)
31271EOF
31272    fi
31273  fi
31274
31275
31276  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACTIONS_LDADD"
31277
31278
31279
31280  fi
31281
31282
31283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_speling" >&5
31284$as_echo_n "checking whether to enable mod_speling... " >&6; }
31285    # Check whether --enable-speling was given.
31286if test "${enable_speling+set}" = set; then :
31287  enableval=$enable_speling; force_speling=$enableval
31288else
31289  enable_speling=most
31290fi
31291
31292    _apmod_extra_msg=""
31293        case "$enable_speling" in
31294    yes|static|shared)
31295      _apmod_required="yes"
31296      ;;
31297    *)
31298      case "$module_selection" in
31299      reallyall|all|most)
31300        _apmod_required="no"
31301        ;;
31302      *)
31303        _apmod_required="yes"
31304        ;;
31305      esac
31306  esac
31307  if test "$enable_speling" = "static"; then
31308    enable_speling=static
31309  elif test "$enable_speling" = "yes"; then
31310    enable_speling=$module_default
31311  elif test "$enable_speling" = "most"; then
31312    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31313            "$module_selection" = "reallyall"
31314    then
31315      enable_speling=$module_default
31316    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31317      enable_speling=no
31318    fi
31319    _apmod_extra_msg=" ($module_selection)"
31320  elif test "$enable_speling" = "maybe-all"; then
31321    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31322    then
31323      enable_speling=$module_default
31324      _apmod_extra_msg=" ($module_selection)"
31325    else
31326      enable_speling=no
31327    fi
31328  elif test "$enable_speling" = "no" -a "$module_selection" = "reallyall" -a \
31329            "$force_speling" != "no" ; then
31330      enable_speling=$module_default
31331      _apmod_extra_msg=" ($module_selection)"
31332  fi
31333  if test "$enable_speling" != "no"; then
31334            :
31335  fi
31336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_speling$_apmod_extra_msg" >&5
31337$as_echo "$enable_speling$_apmod_extra_msg" >&6; }
31338  if test "$enable_speling" != "no"; then
31339    case "$enable_speling" in
31340    static*)
31341      MODLIST="$MODLIST speling"
31342      if test "speling" = "so"; then
31343          sharedobjs=yes
31344      fi
31345      shared="";;
31346    *)
31347      enable_speling=`echo $enable_speling|sed 's/shared,*//'`
31348      sharedobjs=yes
31349      shared=yes
31350      DSO_MODULES="$DSO_MODULES speling"
31351      if test "most" = "yes" ; then
31352        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},speling"
31353      fi
31354      ;;
31355    esac
31356
31357
31358  if test -z ""; then
31359    objects="mod_speling.lo"
31360  else
31361    objects=""
31362  fi
31363
31364  if test -z "$module_standalone"; then
31365    if test -z "$shared"; then
31366      # The filename of a convenience library must have a "lib" prefix:
31367      libname="libmod_speling.la"
31368      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31369      modpath_static="$modpath_static $libname"
31370      cat >>$modpath_current/modules.mk<<EOF
31371$libname: $objects
31372	\$(MOD_LINK) $objects \$(MOD_SPELING_LDADD)
31373EOF
31374      if test ! -z "\$(MOD_SPELING_LDADD)"; then
31375
31376  if test "x$AP_LIBS" = "x"; then
31377    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SPELING_LDADD)\""
31378    AP_LIBS="\$(MOD_SPELING_LDADD)"
31379  else
31380    apr_addto_bugger="\$(MOD_SPELING_LDADD)"
31381    for i in $apr_addto_bugger; do
31382      apr_addto_duplicate="0"
31383      for j in $AP_LIBS; do
31384        if test "x$i" = "x$j"; then
31385          apr_addto_duplicate="1"
31386          break
31387        fi
31388      done
31389      if test $apr_addto_duplicate = "0"; then
31390        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31391        AP_LIBS="$AP_LIBS $i"
31392      fi
31393    done
31394  fi
31395
31396      fi
31397    else
31398      apache_need_shared=yes
31399      libname="mod_speling.la"
31400      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31401      modpath_shared="$modpath_shared $libname"
31402      cat >>$modpath_current/modules.mk<<EOF
31403$libname: $shobjects
31404	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SPELING_LDADD)
31405EOF
31406    fi
31407  fi
31408
31409
31410  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SPELING_LDADD"
31411
31412
31413
31414  fi
31415
31416
31417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_userdir" >&5
31418$as_echo_n "checking whether to enable mod_userdir... " >&6; }
31419    # Check whether --enable-userdir was given.
31420if test "${enable_userdir+set}" = set; then :
31421  enableval=$enable_userdir; force_userdir=$enableval
31422else
31423  enable_userdir=most
31424fi
31425
31426    _apmod_extra_msg=""
31427        case "$enable_userdir" in
31428    yes|static|shared)
31429      _apmod_required="yes"
31430      ;;
31431    *)
31432      case "$module_selection" in
31433      reallyall|all|most)
31434        _apmod_required="no"
31435        ;;
31436      *)
31437        _apmod_required="yes"
31438        ;;
31439      esac
31440  esac
31441  if test "$enable_userdir" = "static"; then
31442    enable_userdir=static
31443  elif test "$enable_userdir" = "yes"; then
31444    enable_userdir=$module_default
31445  elif test "$enable_userdir" = "most"; then
31446    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31447            "$module_selection" = "reallyall"
31448    then
31449      enable_userdir=$module_default
31450    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31451      enable_userdir=no
31452    fi
31453    _apmod_extra_msg=" ($module_selection)"
31454  elif test "$enable_userdir" = "maybe-all"; then
31455    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31456    then
31457      enable_userdir=$module_default
31458      _apmod_extra_msg=" ($module_selection)"
31459    else
31460      enable_userdir=no
31461    fi
31462  elif test "$enable_userdir" = "no" -a "$module_selection" = "reallyall" -a \
31463            "$force_userdir" != "no" ; then
31464      enable_userdir=$module_default
31465      _apmod_extra_msg=" ($module_selection)"
31466  fi
31467  if test "$enable_userdir" != "no"; then
31468            :
31469  fi
31470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_userdir$_apmod_extra_msg" >&5
31471$as_echo "$enable_userdir$_apmod_extra_msg" >&6; }
31472  if test "$enable_userdir" != "no"; then
31473    case "$enable_userdir" in
31474    static*)
31475      MODLIST="$MODLIST userdir"
31476      if test "userdir" = "so"; then
31477          sharedobjs=yes
31478      fi
31479      shared="";;
31480    *)
31481      enable_userdir=`echo $enable_userdir|sed 's/shared,*//'`
31482      sharedobjs=yes
31483      shared=yes
31484      DSO_MODULES="$DSO_MODULES userdir"
31485      if test "most" = "yes" ; then
31486        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},userdir"
31487      fi
31488      ;;
31489    esac
31490
31491
31492  if test -z ""; then
31493    objects="mod_userdir.lo"
31494  else
31495    objects=""
31496  fi
31497
31498  if test -z "$module_standalone"; then
31499    if test -z "$shared"; then
31500      # The filename of a convenience library must have a "lib" prefix:
31501      libname="libmod_userdir.la"
31502      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31503      modpath_static="$modpath_static $libname"
31504      cat >>$modpath_current/modules.mk<<EOF
31505$libname: $objects
31506	\$(MOD_LINK) $objects \$(MOD_USERDIR_LDADD)
31507EOF
31508      if test ! -z "\$(MOD_USERDIR_LDADD)"; then
31509
31510  if test "x$AP_LIBS" = "x"; then
31511    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_USERDIR_LDADD)\""
31512    AP_LIBS="\$(MOD_USERDIR_LDADD)"
31513  else
31514    apr_addto_bugger="\$(MOD_USERDIR_LDADD)"
31515    for i in $apr_addto_bugger; do
31516      apr_addto_duplicate="0"
31517      for j in $AP_LIBS; do
31518        if test "x$i" = "x$j"; then
31519          apr_addto_duplicate="1"
31520          break
31521        fi
31522      done
31523      if test $apr_addto_duplicate = "0"; then
31524        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31525        AP_LIBS="$AP_LIBS $i"
31526      fi
31527    done
31528  fi
31529
31530      fi
31531    else
31532      apache_need_shared=yes
31533      libname="mod_userdir.la"
31534      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31535      modpath_shared="$modpath_shared $libname"
31536      cat >>$modpath_current/modules.mk<<EOF
31537$libname: $shobjects
31538	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERDIR_LDADD)
31539EOF
31540    fi
31541  fi
31542
31543
31544  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERDIR_LDADD"
31545
31546
31547
31548  fi
31549
31550
31551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_alias" >&5
31552$as_echo_n "checking whether to enable mod_alias... " >&6; }
31553    # Check whether --enable-alias was given.
31554if test "${enable_alias+set}" = set; then :
31555  enableval=$enable_alias; force_alias=$enableval
31556else
31557  enable_alias=yes
31558fi
31559
31560    _apmod_extra_msg=""
31561        case "$enable_alias" in
31562    yes|static|shared)
31563      _apmod_required="yes"
31564      ;;
31565    *)
31566      case "$module_selection" in
31567      reallyall|all|most)
31568        _apmod_required="no"
31569        ;;
31570      *)
31571        _apmod_required="yes"
31572        ;;
31573      esac
31574  esac
31575  if test "$enable_alias" = "static"; then
31576    enable_alias=static
31577  elif test "$enable_alias" = "yes"; then
31578    enable_alias=$module_default
31579  elif test "$enable_alias" = "most"; then
31580    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31581            "$module_selection" = "reallyall"
31582    then
31583      enable_alias=$module_default
31584    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31585      enable_alias=no
31586    fi
31587    _apmod_extra_msg=" ($module_selection)"
31588  elif test "$enable_alias" = "maybe-all"; then
31589    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31590    then
31591      enable_alias=$module_default
31592      _apmod_extra_msg=" ($module_selection)"
31593    else
31594      enable_alias=no
31595    fi
31596  elif test "$enable_alias" = "no" -a "$module_selection" = "reallyall" -a \
31597            "$force_alias" != "no" ; then
31598      enable_alias=$module_default
31599      _apmod_extra_msg=" ($module_selection)"
31600  fi
31601  if test "$enable_alias" != "no"; then
31602            :
31603  fi
31604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alias$_apmod_extra_msg" >&5
31605$as_echo "$enable_alias$_apmod_extra_msg" >&6; }
31606  if test "$enable_alias" != "no"; then
31607    case "$enable_alias" in
31608    static*)
31609      MODLIST="$MODLIST alias"
31610      if test "alias" = "so"; then
31611          sharedobjs=yes
31612      fi
31613      shared="";;
31614    *)
31615      enable_alias=`echo $enable_alias|sed 's/shared,*//'`
31616      sharedobjs=yes
31617      shared=yes
31618      DSO_MODULES="$DSO_MODULES alias"
31619      if test "yes" = "yes" ; then
31620        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},alias"
31621      fi
31622      ;;
31623    esac
31624
31625
31626  if test -z ""; then
31627    objects="mod_alias.lo"
31628  else
31629    objects=""
31630  fi
31631
31632  if test -z "$module_standalone"; then
31633    if test -z "$shared"; then
31634      # The filename of a convenience library must have a "lib" prefix:
31635      libname="libmod_alias.la"
31636      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31637      modpath_static="$modpath_static $libname"
31638      cat >>$modpath_current/modules.mk<<EOF
31639$libname: $objects
31640	\$(MOD_LINK) $objects \$(MOD_ALIAS_LDADD)
31641EOF
31642      if test ! -z "\$(MOD_ALIAS_LDADD)"; then
31643
31644  if test "x$AP_LIBS" = "x"; then
31645    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ALIAS_LDADD)\""
31646    AP_LIBS="\$(MOD_ALIAS_LDADD)"
31647  else
31648    apr_addto_bugger="\$(MOD_ALIAS_LDADD)"
31649    for i in $apr_addto_bugger; do
31650      apr_addto_duplicate="0"
31651      for j in $AP_LIBS; do
31652        if test "x$i" = "x$j"; then
31653          apr_addto_duplicate="1"
31654          break
31655        fi
31656      done
31657      if test $apr_addto_duplicate = "0"; then
31658        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31659        AP_LIBS="$AP_LIBS $i"
31660      fi
31661    done
31662  fi
31663
31664      fi
31665    else
31666      apache_need_shared=yes
31667      libname="mod_alias.la"
31668      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31669      modpath_shared="$modpath_shared $libname"
31670      cat >>$modpath_current/modules.mk<<EOF
31671$libname: $shobjects
31672	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ALIAS_LDADD)
31673EOF
31674    fi
31675  fi
31676
31677
31678  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ALIAS_LDADD"
31679
31680
31681
31682  fi
31683
31684
31685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_rewrite" >&5
31686$as_echo_n "checking whether to enable mod_rewrite... " >&6; }
31687    # Check whether --enable-rewrite was given.
31688if test "${enable_rewrite+set}" = set; then :
31689  enableval=$enable_rewrite; force_rewrite=$enableval
31690else
31691  enable_rewrite=most
31692fi
31693
31694    _apmod_extra_msg=""
31695        case "$enable_rewrite" in
31696    yes|static|shared)
31697      _apmod_required="yes"
31698      ;;
31699    *)
31700      case "$module_selection" in
31701      reallyall|all|most)
31702        _apmod_required="no"
31703        ;;
31704      *)
31705        _apmod_required="yes"
31706        ;;
31707      esac
31708  esac
31709  if test "$enable_rewrite" = "static"; then
31710    enable_rewrite=static
31711  elif test "$enable_rewrite" = "yes"; then
31712    enable_rewrite=$module_default
31713  elif test "$enable_rewrite" = "most"; then
31714    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
31715            "$module_selection" = "reallyall"
31716    then
31717      enable_rewrite=$module_default
31718    elif test "$module_selection" = "few" -o "$module_selection" = "none"; then
31719      enable_rewrite=no
31720    fi
31721    _apmod_extra_msg=" ($module_selection)"
31722  elif test "$enable_rewrite" = "maybe-all"; then
31723    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
31724    then
31725      enable_rewrite=$module_default
31726      _apmod_extra_msg=" ($module_selection)"
31727    else
31728      enable_rewrite=no
31729    fi
31730  elif test "$enable_rewrite" = "no" -a "$module_selection" = "reallyall" -a \
31731            "$force_rewrite" != "no" ; then
31732      enable_rewrite=$module_default
31733      _apmod_extra_msg=" ($module_selection)"
31734  fi
31735  if test "$enable_rewrite" != "no"; then
31736            :
31737  fi
31738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rewrite$_apmod_extra_msg" >&5
31739$as_echo "$enable_rewrite$_apmod_extra_msg" >&6; }
31740  if test "$enable_rewrite" != "no"; then
31741    case "$enable_rewrite" in
31742    static*)
31743      MODLIST="$MODLIST rewrite"
31744      if test "rewrite" = "so"; then
31745          sharedobjs=yes
31746      fi
31747      shared="";;
31748    *)
31749      enable_rewrite=`echo $enable_rewrite|sed 's/shared,*//'`
31750      sharedobjs=yes
31751      shared=yes
31752      DSO_MODULES="$DSO_MODULES rewrite"
31753      if test "most" = "yes" ; then
31754        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},rewrite"
31755      fi
31756      ;;
31757    esac
31758
31759
31760  if test -z ""; then
31761    objects="mod_rewrite.lo"
31762  else
31763    objects=""
31764  fi
31765
31766  if test -z "$module_standalone"; then
31767    if test -z "$shared"; then
31768      # The filename of a convenience library must have a "lib" prefix:
31769      libname="libmod_rewrite.la"
31770      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
31771      modpath_static="$modpath_static $libname"
31772      cat >>$modpath_current/modules.mk<<EOF
31773$libname: $objects
31774	\$(MOD_LINK) $objects \$(MOD_REWRITE_LDADD)
31775EOF
31776      if test ! -z "\$(MOD_REWRITE_LDADD)"; then
31777
31778  if test "x$AP_LIBS" = "x"; then
31779    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REWRITE_LDADD)\""
31780    AP_LIBS="\$(MOD_REWRITE_LDADD)"
31781  else
31782    apr_addto_bugger="\$(MOD_REWRITE_LDADD)"
31783    for i in $apr_addto_bugger; do
31784      apr_addto_duplicate="0"
31785      for j in $AP_LIBS; do
31786        if test "x$i" = "x$j"; then
31787          apr_addto_duplicate="1"
31788          break
31789        fi
31790      done
31791      if test $apr_addto_duplicate = "0"; then
31792        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
31793        AP_LIBS="$AP_LIBS $i"
31794      fi
31795    done
31796  fi
31797
31798      fi
31799    else
31800      apache_need_shared=yes
31801      libname="mod_rewrite.la"
31802      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
31803      modpath_shared="$modpath_shared $libname"
31804      cat >>$modpath_current/modules.mk<<EOF
31805$libname: $shobjects
31806	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REWRITE_LDADD)
31807EOF
31808    fi
31809  fi
31810
31811
31812  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REWRITE_LDADD"
31813
31814
31815
31816  fi
31817
31818
31819
31820  if test "x$INCLUDES" = "x"; then
31821    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
31822    INCLUDES="-I\$(top_srcdir)/$modpath_current"
31823  else
31824    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
31825    for i in $apr_addto_bugger; do
31826      apr_addto_duplicate="0"
31827      for j in $INCLUDES; do
31828        if test "x$i" = "x$j"; then
31829          apr_addto_duplicate="1"
31830          break
31831        fi
31832      done
31833      if test $apr_addto_duplicate = "0"; then
31834        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
31835        INCLUDES="$INCLUDES $i"
31836      fi
31837    done
31838  fi
31839
31840
31841
31842  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
31843  echo "static = $modpath_static" >> $modpath_current/modules.mk
31844  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
31845  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
31846    if eval val=\"\$MOD_$var\"; test -n "$val"; then
31847      echo "MOD_$var = $val" >> $modpath_current/modules.mk
31848    fi
31849  done
31850  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
31851    MODULE_DIRS="$MODULE_DIRS $current_dir"
31852  else
31853    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
31854  fi
31855
31856  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
31857
31858
31859
31860
31861
31862
31863  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
31864
31865
31866
31867  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS"
31868
31869
31870
31871  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_DIR"
31872
31873
31874
31875  APACHE_VAR_SUBST="$APACHE_VAR_SUBST BUILTIN_LIBS"
31876
31877
31878
31879  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLIBPATH_VAR"
31880
31881
31882
31883  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_SPECIFIC_VARS"
31884
31885
31886
31887PRE_SHARED_CMDS='echo ""'
31888POST_SHARED_CMDS='echo ""'
31889
31890
31891if test "$apache_need_shared" = "yes"; then
31892  if test -f $ac_aux_dir/ltconfig; then
31893    $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
31894  fi
31895  shared_build="shared-build"
31896fi
31897
31898
31899if test "$enable_so" = "yes" -o "$enable_so" = "static"; then
31900  case $host in
31901    *-ibm-aix*)
31902
31903  if test "x$HTTPD_LDFLAGS" = "x"; then
31904    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp\""
31905    HTTPD_LDFLAGS="-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
31906  else
31907    apr_addto_bugger="-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
31908    for i in $apr_addto_bugger; do
31909      apr_addto_duplicate="0"
31910      for j in $HTTPD_LDFLAGS; do
31911        if test "x$i" = "x$j"; then
31912          apr_addto_duplicate="1"
31913          break
31914        fi
31915      done
31916      if test $apr_addto_duplicate = "0"; then
31917        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
31918        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
31919      fi
31920    done
31921  fi
31922
31923
31924  if test "x$SH_LDFLAGS" = "x"; then
31925    test "x$silent" != "xyes" && echo "  setting SH_LDFLAGS to \"\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)\""
31926    SH_LDFLAGS="\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
31927  else
31928    apr_addto_bugger="\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
31929    for i in $apr_addto_bugger; do
31930      apr_addto_duplicate="0"
31931      for j in $SH_LDFLAGS; do
31932        if test "x$i" = "x$j"; then
31933          apr_addto_duplicate="1"
31934          break
31935        fi
31936      done
31937      if test $apr_addto_duplicate = "0"; then
31938        test "x$silent" != "xyes" && echo "  adding \"$i\" to SH_LDFLAGS"
31939        SH_LDFLAGS="$SH_LDFLAGS $i"
31940      fi
31941    done
31942  fi
31943
31944
31945  if test "x$UTIL_LDFLAGS" = "x"; then
31946    test "x$silent" != "xyes" && echo "  setting UTIL_LDFLAGS to \"-Wl,-uXML_Parse\""
31947    UTIL_LDFLAGS="-Wl,-uXML_Parse"
31948  else
31949    apr_addto_bugger="-Wl,-uXML_Parse"
31950    for i in $apr_addto_bugger; do
31951      apr_addto_duplicate="0"
31952      for j in $UTIL_LDFLAGS; do
31953        if test "x$i" = "x$j"; then
31954          apr_addto_duplicate="1"
31955          break
31956        fi
31957      done
31958      if test $apr_addto_duplicate = "0"; then
31959        test "x$silent" != "xyes" && echo "  adding \"$i\" to UTIL_LDFLAGS"
31960        UTIL_LDFLAGS="$UTIL_LDFLAGS $i"
31961      fi
31962    done
31963  fi
31964
31965      ;;
31966    *os390)
31967
31968  if test "x$HTTPD_LDFLAGS" = "x"; then
31969    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll\""
31970    HTTPD_LDFLAGS="--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
31971  else
31972    apr_addto_bugger="--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
31973    for i in $apr_addto_bugger; do
31974      apr_addto_duplicate="0"
31975      for j in $HTTPD_LDFLAGS; do
31976        if test "x$i" = "x$j"; then
31977          apr_addto_duplicate="1"
31978          break
31979        fi
31980      done
31981      if test $apr_addto_duplicate = "0"; then
31982        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
31983        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
31984      fi
31985    done
31986  fi
31987
31988
31989  if test "x$SH_LDFLAGS" = "x"; then
31990    test "x$silent" != "xyes" && echo "  setting SH_LDFLAGS to \"--core-dll=$abs_srcdir/apachecore.dll\""
31991    SH_LDFLAGS="--core-dll=$abs_srcdir/apachecore.dll"
31992  else
31993    apr_addto_bugger="--core-dll=$abs_srcdir/apachecore.dll"
31994    for i in $apr_addto_bugger; do
31995      apr_addto_duplicate="0"
31996      for j in $SH_LDFLAGS; do
31997        if test "x$i" = "x$j"; then
31998          apr_addto_duplicate="1"
31999          break
32000        fi
32001      done
32002      if test $apr_addto_duplicate = "0"; then
32003        test "x$silent" != "xyes" && echo "  adding \"$i\" to SH_LDFLAGS"
32004        SH_LDFLAGS="$SH_LDFLAGS $i"
32005      fi
32006    done
32007  fi
32008
32009  esac
32010  MOD_SO_ENABLED=yes
32011fi
32012
32013
32014
32015  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PRE_SHARED_CMDS"
32016
32017
32018
32019  APACHE_VAR_SUBST="$APACHE_VAR_SUBST POST_SHARED_CMDS"
32020
32021
32022
32023  APACHE_VAR_SUBST="$APACHE_VAR_SUBST shared_build"
32024
32025
32026
32027
32028# Check whether --with-program-name was given.
32029if test "${with_program_name+set}" = set; then :
32030  withval=$with_program_name;
32031  progname="$withval"
32032else
32033
32034  progname="httpd"
32035fi
32036
32037
32038# SuExec parameters
32039
32040# Check whether --with-suexec-bin was given.
32041if test "${with_suexec_bin+set}" = set; then :
32042  withval=$with_suexec_bin;
32043
32044cat >>confdefs.h <<_ACEOF
32045#define SUEXEC_BIN "$withval"
32046_ACEOF
32047
32048
32049fi
32050
32051
32052
32053# Check whether --with-suexec-caller was given.
32054if test "${with_suexec_caller+set}" = set; then :
32055  withval=$with_suexec_caller;
32056
32057cat >>confdefs.h <<_ACEOF
32058#define AP_HTTPD_USER "$withval"
32059_ACEOF
32060
32061fi
32062
32063
32064
32065# Check whether --with-suexec-userdir was given.
32066if test "${with_suexec_userdir+set}" = set; then :
32067  withval=$with_suexec_userdir;
32068
32069cat >>confdefs.h <<_ACEOF
32070#define AP_USERDIR_SUFFIX "$withval"
32071_ACEOF
32072
32073fi
32074
32075
32076
32077# Check whether --with-suexec-docroot was given.
32078if test "${with_suexec_docroot+set}" = set; then :
32079  withval=$with_suexec_docroot;
32080
32081cat >>confdefs.h <<_ACEOF
32082#define AP_DOC_ROOT "$withval"
32083_ACEOF
32084
32085fi
32086
32087
32088
32089# Check whether --with-suexec-uidmin was given.
32090if test "${with_suexec_uidmin+set}" = set; then :
32091  withval=$with_suexec_uidmin;
32092
32093cat >>confdefs.h <<_ACEOF
32094#define AP_UID_MIN $withval
32095_ACEOF
32096
32097fi
32098
32099
32100
32101# Check whether --with-suexec-gidmin was given.
32102if test "${with_suexec_gidmin+set}" = set; then :
32103  withval=$with_suexec_gidmin;
32104
32105cat >>confdefs.h <<_ACEOF
32106#define AP_GID_MIN $withval
32107_ACEOF
32108
32109fi
32110
32111
32112
32113# Check whether --with-suexec-logfile was given.
32114if test "${with_suexec_logfile+set}" = set; then :
32115  withval=$with_suexec_logfile;
32116
32117cat >>confdefs.h <<_ACEOF
32118#define AP_LOG_EXEC "$withval"
32119_ACEOF
32120
32121fi
32122
32123
32124
32125# Check whether --with-suexec-safepath was given.
32126if test "${with_suexec_safepath+set}" = set; then :
32127  withval=$with_suexec_safepath;
32128
32129cat >>confdefs.h <<_ACEOF
32130#define AP_SAFE_PATH "$withval"
32131_ACEOF
32132
32133fi
32134
32135
32136
32137# Check whether --with-suexec-umask was given.
32138if test "${with_suexec_umask+set}" = set; then :
32139  withval=$with_suexec_umask;
32140
32141cat >>confdefs.h <<_ACEOF
32142#define AP_SUEXEC_UMASK 0$withval
32143_ACEOF
32144
32145fi
32146
32147
32148if test x${apu_found} != xobsolete; then
32149  AP_LIBS="$AP_LIBS `$apu_config --avoid-ldap --link-libtool --libs`"
32150fi
32151AP_LIBS="$AP_LIBS `$apr_config --link-libtool --libs`"
32152
32153  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIBS"
32154
32155
32156
32157  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_BUILD_SRCLIB_DIRS"
32158
32159
32160
32161  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_CLEAN_SRCLIB_DIRS"
32162
32163
32164
32165
32166$as_echo "#define AP_USING_AUTOCONF 1" >>confdefs.h
32167
32168
32169if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then
32170
32171$as_echo "#define SINGLE_LISTEN_UNSERIALIZED_ACCEPT 1" >>confdefs.h
32172
32173fi
32174
32175if test "$AP_NONBLOCK_WHEN_MULTI_LISTEN" = "1"; then
32176
32177$as_echo "#define AP_NONBLOCK_WHEN_MULTI_LISTEN 1" >>confdefs.h
32178
32179fi
32180
32181
32182apr_old_cppflags=$CPPFLAGS
32183CPPFLAGS="$CPPFLAGS $INCLUDES"
32184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32185/* end confdefs.h.  */
32186
32187#include <apr.h>
32188#if APR_HAVE_IPV6
32189YES_IS_DEFINED
32190#endif
32191
32192_ACEOF
32193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32194  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
32195  ac_cv_define_APR_HAVE_IPV6=yes
32196else
32197  ac_cv_define_APR_HAVE_IPV6=no
32198fi
32199rm -f conftest*
32200
32201CPPFLAGS=$apr_old_cppflags
32202
32203
32204# Check whether --enable-v4-mapped was given.
32205if test "${enable_v4_mapped+set}" = set; then :
32206  enableval=$enable_v4_mapped;
32207  v4mapped=$enableval
32208
32209else
32210
32211    case $host in
32212    *freebsd5*|*netbsd*|*openbsd*)
32213        v4mapped=no
32214        ;;
32215    *)
32216        v4mapped=yes
32217        ;;
32218    esac
32219    if ap_mpm_is_enabled winnt; then
32220                v4mapped=no
32221    fi
32222
32223fi
32224
32225
32226if test $v4mapped = "yes" -a $ac_cv_define_APR_HAVE_IPV6 = "yes"; then
32227
32228$as_echo "#define AP_ENABLE_V4_MAPPED 1" >>confdefs.h
32229
32230fi
32231
32232
32233  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES Makefile modules/Makefile srclib/Makefile"
32234
32235
32236  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/Makefile server/Makefile"
32237
32238
32239  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES support/Makefile"
32240
32241
32242if test -d ./test; then
32243
32244  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"
32245
32246fi
32247
32248{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32249$as_echo "$as_me: " >&6;}
32250{ $as_echo "$as_me:${as_lineno-$LINENO}: Restore user-defined environment settings..." >&5
32251$as_echo "$as_me: Restore user-defined environment settings..." >&6;}
32252{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32253$as_echo "$as_me: " >&6;}
32254
32255
32256set X $apr_ste_save_CPPFLAGS
32257if test ${#} -eq 1; then
32258  EXTRA_CPPFLAGS="$CPPFLAGS"
32259  CPPFLAGS=
32260else
32261  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
32262    EXTRA_CPPFLAGS=
32263  else
32264    EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
32265    CPPFLAGS="$apr_ste_save_CPPFLAGS"
32266  fi
32267fi
32268if test "x$silent" != "xyes"; then
32269  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
32270  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
32271fi
32272
32273
32274
32275set X $apr_ste_save_CFLAGS
32276if test ${#} -eq 1; then
32277  EXTRA_CFLAGS="$CFLAGS"
32278  CFLAGS=
32279else
32280  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
32281    EXTRA_CFLAGS=
32282  else
32283    EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
32284    CFLAGS="$apr_ste_save_CFLAGS"
32285  fi
32286fi
32287if test "x$silent" != "xyes"; then
32288  echo "  restoring CFLAGS to \"$CFLAGS\""
32289  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
32290fi
32291
32292
32293
32294set X $apr_ste_save_CXXFLAGS
32295if test ${#} -eq 1; then
32296  EXTRA_CXXFLAGS="$CXXFLAGS"
32297  CXXFLAGS=
32298else
32299  if test "x$apr_ste_save_CXXFLAGS" = "x$CXXFLAGS"; then
32300    EXTRA_CXXFLAGS=
32301  else
32302    EXTRA_CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s%${apr_ste_save_CXXFLAGS}%%"`
32303    CXXFLAGS="$apr_ste_save_CXXFLAGS"
32304  fi
32305fi
32306if test "x$silent" != "xyes"; then
32307  echo "  restoring CXXFLAGS to \"$CXXFLAGS\""
32308  echo "  setting EXTRA_CXXFLAGS to \"$EXTRA_CXXFLAGS\""
32309fi
32310
32311
32312
32313set X $apr_ste_save_LDFLAGS
32314if test ${#} -eq 1; then
32315  EXTRA_LDFLAGS="$LDFLAGS"
32316  LDFLAGS=
32317else
32318  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
32319    EXTRA_LDFLAGS=
32320  else
32321    EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
32322    LDFLAGS="$apr_ste_save_LDFLAGS"
32323  fi
32324fi
32325if test "x$silent" != "xyes"; then
32326  echo "  restoring LDFLAGS to \"$LDFLAGS\""
32327  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
32328fi
32329
32330
32331
32332set X $apr_ste_save_LIBS
32333if test ${#} -eq 1; then
32334  EXTRA_LIBS="$LIBS"
32335  LIBS=
32336else
32337  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
32338    EXTRA_LIBS=
32339  else
32340    EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
32341    LIBS="$apr_ste_save_LIBS"
32342  fi
32343fi
32344if test "x$silent" != "xyes"; then
32345  echo "  restoring LIBS to \"$LIBS\""
32346  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
32347fi
32348
32349
32350
32351set X $apr_ste_save_INCLUDES
32352if test ${#} -eq 1; then
32353  EXTRA_INCLUDES="$INCLUDES"
32354  INCLUDES=
32355else
32356  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
32357    EXTRA_INCLUDES=
32358  else
32359    EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
32360    INCLUDES="$apr_ste_save_INCLUDES"
32361  fi
32362fi
32363if test "x$silent" != "xyes"; then
32364  echo "  restoring INCLUDES to \"$INCLUDES\""
32365  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
32366fi
32367
32368
32369
32370{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32371$as_echo "$as_me: " >&6;}
32372{ $as_echo "$as_me:${as_lineno-$LINENO}: Construct makefiles and header files..." >&5
32373$as_echo "$as_me: Construct makefiles and header files..." >&6;}
32374{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32375$as_echo "$as_me: " >&6;}
32376
32377
32378
32379  APACHE_VAR_SUBST="$APACHE_VAR_SUBST abs_srcdir"
32380
32381
32382
32383  APACHE_VAR_SUBST="$APACHE_VAR_SUBST bindir"
32384
32385
32386
32387  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sbindir"
32388
32389
32390
32391  APACHE_VAR_SUBST="$APACHE_VAR_SUBST cgidir"
32392
32393
32394
32395  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logfiledir"
32396
32397
32398
32399  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exec_prefix"
32400
32401
32402
32403  APACHE_VAR_SUBST="$APACHE_VAR_SUBST datadir"
32404
32405
32406
32407  APACHE_VAR_SUBST="$APACHE_VAR_SUBST localstatedir"
32408
32409
32410
32411  APACHE_VAR_SUBST="$APACHE_VAR_SUBST mandir"
32412
32413
32414
32415  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libdir"
32416
32417
32418
32419  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libexecdir"
32420
32421
32422
32423  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdocsdir"
32424
32425
32426
32427  APACHE_VAR_SUBST="$APACHE_VAR_SUBST manualdir"
32428
32429
32430
32431  APACHE_VAR_SUBST="$APACHE_VAR_SUBST includedir"
32432
32433
32434
32435  APACHE_VAR_SUBST="$APACHE_VAR_SUBST errordir"
32436
32437
32438
32439  APACHE_VAR_SUBST="$APACHE_VAR_SUBST iconsdir"
32440
32441
32442
32443  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sysconfdir"
32444
32445
32446
32447  APACHE_VAR_SUBST="$APACHE_VAR_SUBST installbuilddir"
32448
32449
32450
32451  APACHE_VAR_SUBST="$APACHE_VAR_SUBST runtimedir"
32452
32453
32454
32455  APACHE_VAR_SUBST="$APACHE_VAR_SUBST proxycachedir"
32456
32457
32458
32459  APACHE_VAR_SUBST="$APACHE_VAR_SUBST other_targets"
32460
32461
32462
32463  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
32464
32465
32466
32467  APACHE_VAR_SUBST="$APACHE_VAR_SUBST prefix"
32468
32469
32470
32471  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AWK"
32472
32473
32474
32475  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CC"
32476
32477
32478
32479  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPP"
32480
32481
32482
32483  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXX"
32484
32485
32486
32487  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPPFLAGS"
32488
32489
32490
32491  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CFLAGS"
32492
32493
32494
32495  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXXFLAGS"
32496
32497
32498
32499  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTFLAGS"
32500
32501
32502
32503  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LDFLAGS"
32504
32505
32506
32507  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LT_LDFLAGS"
32508
32509
32510
32511  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LDFLAGS"
32512
32513
32514
32515  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_LDFLAGS"
32516
32517
32518
32519  APACHE_VAR_SUBST="$APACHE_VAR_SUBST UTIL_LDFLAGS"
32520
32521
32522
32523  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBS"
32524
32525
32526
32527  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DEFS"
32528
32529
32530
32531  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INCLUDES"
32532
32533
32534
32535  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CPPFLAGS"
32536
32537
32538
32539  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CFLAGS"
32540
32541
32542
32543  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CXXFLAGS"
32544
32545
32546
32547  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LDFLAGS"
32548
32549
32550
32551  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LIBS"
32552
32553
32554
32555  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CPPFLAGS"
32556
32557
32558
32559  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CFLAGS"
32560
32561
32562
32563  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CXXFLAGS"
32564
32565
32566
32567  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LDFLAGS"
32568
32569
32570
32571  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LIBS"
32572
32573
32574
32575  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_INCLUDES"
32576
32577
32578
32579  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INTERNAL_CPPFLAGS"
32580
32581
32582
32583  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBTOOL"
32584
32585
32586
32587  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHELL"
32588
32589
32590
32591  APACHE_VAR_SUBST="$APACHE_VAR_SUBST RSYNC"
32592
32593
32594
32595  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_DIRS"
32596
32597
32598
32599  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_CLEANDIRS"
32600
32601
32602
32603  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PORT"
32604
32605
32606
32607  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SSLPORT"
32608
32609
32610
32611  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB_FILE"
32612
32613
32614
32615  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB"
32616
32617
32618
32619  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBS"
32620
32621
32622
32623  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBTOOL"
32624
32625
32626
32627  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MK_IMPLIB"
32628
32629
32630
32631  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MKDEP"
32632
32633
32634
32635  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_PROG_FLAGS"
32636
32637
32638
32639  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DSO_MODULES"
32640
32641
32642
32643  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ENABLED_DSO_MODULES"
32644
32645
32646
32647  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LOAD_ALL_MODULES"
32648
32649
32650
32651  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_BINDIR"
32652
32653
32654
32655  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_INCLUDEDIR"
32656
32657
32658
32659  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_VERSION"
32660
32661
32662
32663  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_CONFIG"
32664
32665
32666
32667  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_BINDIR"
32668
32669
32670
32671  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_INCLUDEDIR"
32672
32673
32674
32675  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_VERSION"
32676
32677
32678
32679  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_CONFIG"
32680
32681
32682
32683  abs_srcdir="`(cd $srcdir && pwd)`"
32684
32685  { $as_echo "$as_me:${as_lineno-$LINENO}: creating config_vars.mk" >&5
32686$as_echo "$as_me: creating config_vars.mk" >&6;}
32687  test -d build || $mkdir_p build
32688  > build/config_vars.mk
32689  for i in $APACHE_VAR_SUBST; do
32690    eval echo "$i = \$$i" >> build/config_vars.mk
32691  done
32692
32693
32694rm -f modules.c
32695echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c
32696
32697
32698ap_last=
32699ap_cur="$prefix"
32700while test "x${ap_cur}" != "x${ap_last}";
32701do
32702  ap_last="${ap_cur}"
32703  ap_cur=`eval "echo ${ap_cur}"`
32704done
32705ap_prefix="${ap_cur}"
32706
32707
32708cat >>confdefs.h <<_ACEOF
32709#define HTTPD_ROOT "${ap_prefix}"
32710_ACEOF
32711
32712
32713cat >>confdefs.h <<_ACEOF
32714#define SERVER_CONFIG_FILE "${rel_sysconfdir}/${progname}.conf"
32715_ACEOF
32716
32717
32718cat >>confdefs.h <<_ACEOF
32719#define AP_TYPES_CONFIG_FILE "${rel_sysconfdir}/mime.types"
32720_ACEOF
32721
32722
32723perlbin=`$ac_aux_dir/PrintPath perl`
32724if test "x$perlbin" = "x"; then
32725    perlbin="/replace/with/path/to/perl/interpreter"
32726fi
32727
32728
32729
32730BSD_MAKEFILE=no
32731ap_make_include=include
32732ap_make_delimiter=' '
32733case $host in
32734*bsdi*)
32735    # Check whether they've installed GNU make
32736    if make --version > /dev/null 2>&1; then
32737        true
32738    else
32739        BSD_MAKEFILE=yes
32740        ap_make_include=.include
32741        ap_make_delimiter='"'
32742    fi
32743    ;;
32744esac
32745
32746
32747
32748test -d docs/conf||$mkdir_p docs/conf
32749
32750ac_config_files="$ac_config_files $APACHE_OUTPUT_FILES docs/conf/httpd.conf docs/conf/extra/httpd-autoindex.conf docs/conf/extra/httpd-dav.conf docs/conf/extra/httpd-default.conf docs/conf/extra/httpd-info.conf docs/conf/extra/httpd-languages.conf docs/conf/extra/httpd-manual.conf docs/conf/extra/httpd-mpm.conf docs/conf/extra/httpd-multilang-errordoc.conf docs/conf/extra/httpd-ssl.conf docs/conf/extra/httpd-userdir.conf docs/conf/extra/httpd-vhosts.conf docs/conf/extra/proxy-html.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 build/config_vars.sh"
32751
32752ac_config_commands="$ac_config_commands default"
32753
32754cat >confcache <<\_ACEOF
32755# This file is a shell script that caches the results of configure
32756# tests run on this system so they can be shared between configure
32757# scripts and configure runs, see configure's option --config-cache.
32758# It is not useful on other systems.  If it contains results you don't
32759# want to keep, you may remove or edit it.
32760#
32761# config.status only pays attention to the cache file if you give it
32762# the --recheck option to rerun configure.
32763#
32764# `ac_cv_env_foo' variables (set or unset) will be overridden when
32765# loading this file, other *unset* `ac_cv_foo' will be assigned the
32766# following values.
32767
32768_ACEOF
32769
32770# The following way of writing the cache mishandles newlines in values,
32771# but we know of no workaround that is simple, portable, and efficient.
32772# So, we kill variables containing newlines.
32773# Ultrix sh set writes to stderr and can't be redirected directly,
32774# and sets the high bit in the cache file unless we assign to the vars.
32775(
32776  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32777    eval ac_val=\$$ac_var
32778    case $ac_val in #(
32779    *${as_nl}*)
32780      case $ac_var in #(
32781      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32782$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32783      esac
32784      case $ac_var in #(
32785      _ | IFS | as_nl) ;; #(
32786      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32787      *) { eval $ac_var=; unset $ac_var;} ;;
32788      esac ;;
32789    esac
32790  done
32791
32792  (set) 2>&1 |
32793    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32794    *${as_nl}ac_space=\ *)
32795      # `set' does not quote correctly, so add quotes: double-quote
32796      # substitution turns \\\\ into \\, and sed turns \\ into \.
32797      sed -n \
32798	"s/'/'\\\\''/g;
32799	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32800      ;; #(
32801    *)
32802      # `set' quotes correctly as required by POSIX, so do not add quotes.
32803      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32804      ;;
32805    esac |
32806    sort
32807) |
32808  sed '
32809     /^ac_cv_env_/b end
32810     t clear
32811     :clear
32812     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32813     t end
32814     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32815     :end' >>confcache
32816if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32817  if test -w "$cache_file"; then
32818    if test "x$cache_file" != "x/dev/null"; then
32819      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32820$as_echo "$as_me: updating cache $cache_file" >&6;}
32821      if test ! -f "$cache_file" || test -h "$cache_file"; then
32822	cat confcache >"$cache_file"
32823      else
32824        case $cache_file in #(
32825        */* | ?:*)
32826	  mv -f confcache "$cache_file"$$ &&
32827	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32828        *)
32829	  mv -f confcache "$cache_file" ;;
32830	esac
32831      fi
32832    fi
32833  else
32834    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32835$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32836  fi
32837fi
32838rm -f confcache
32839
32840test "x$prefix" = xNONE && prefix=$ac_default_prefix
32841# Let make expand exec_prefix.
32842test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32843
32844DEFS=-DHAVE_CONFIG_H
32845
32846ac_libobjs=
32847ac_ltlibobjs=
32848U=
32849for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32850  # 1. Remove the extension, and $U if already installed.
32851  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32852  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32853  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32854  #    will be set to the directory where LIBOBJS objects are built.
32855  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32856  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32857done
32858LIBOBJS=$ac_libobjs
32859
32860LTLIBOBJS=$ac_ltlibobjs
32861
32862
32863
32864: "${CONFIG_STATUS=./config.status}"
32865ac_write_fail=0
32866ac_clean_files_save=$ac_clean_files
32867ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32868{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32869$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32870as_write_fail=0
32871cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32872#! $SHELL
32873# Generated by $as_me.
32874# Run this file to recreate the current configuration.
32875# Compiler output produced by configure, useful for debugging
32876# configure, is in config.log if it exists.
32877
32878debug=false
32879ac_cs_recheck=false
32880ac_cs_silent=false
32881
32882SHELL=\${CONFIG_SHELL-$SHELL}
32883export SHELL
32884_ASEOF
32885cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32886## -------------------- ##
32887## M4sh Initialization. ##
32888## -------------------- ##
32889
32890# Be more Bourne compatible
32891DUALCASE=1; export DUALCASE # for MKS sh
32892if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32893  emulate sh
32894  NULLCMD=:
32895  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32896  # is contrary to our usage.  Disable this feature.
32897  alias -g '${1+"$@"}'='"$@"'
32898  setopt NO_GLOB_SUBST
32899else
32900  case `(set -o) 2>/dev/null` in #(
32901  *posix*) :
32902    set -o posix ;; #(
32903  *) :
32904     ;;
32905esac
32906fi
32907
32908
32909as_nl='
32910'
32911export as_nl
32912# Printing a long string crashes Solaris 7 /usr/bin/printf.
32913as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32914as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32915as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32916# Prefer a ksh shell builtin over an external printf program on Solaris,
32917# but without wasting forks for bash or zsh.
32918if test -z "$BASH_VERSION$ZSH_VERSION" \
32919    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32920  as_echo='print -r --'
32921  as_echo_n='print -rn --'
32922elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32923  as_echo='printf %s\n'
32924  as_echo_n='printf %s'
32925else
32926  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32927    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32928    as_echo_n='/usr/ucb/echo -n'
32929  else
32930    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32931    as_echo_n_body='eval
32932      arg=$1;
32933      case $arg in #(
32934      *"$as_nl"*)
32935	expr "X$arg" : "X\\(.*\\)$as_nl";
32936	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32937      esac;
32938      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32939    '
32940    export as_echo_n_body
32941    as_echo_n='sh -c $as_echo_n_body as_echo'
32942  fi
32943  export as_echo_body
32944  as_echo='sh -c $as_echo_body as_echo'
32945fi
32946
32947# The user is always right.
32948if test "${PATH_SEPARATOR+set}" != set; then
32949  PATH_SEPARATOR=:
32950  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32951    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32952      PATH_SEPARATOR=';'
32953  }
32954fi
32955
32956
32957# IFS
32958# We need space, tab and new line, in precisely that order.  Quoting is
32959# there to prevent editors from complaining about space-tab.
32960# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32961# splitting by setting IFS to empty value.)
32962IFS=" ""	$as_nl"
32963
32964# Find who we are.  Look in the path if we contain no directory separator.
32965as_myself=
32966case $0 in #((
32967  *[\\/]* ) as_myself=$0 ;;
32968  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32969for as_dir in $PATH
32970do
32971  IFS=$as_save_IFS
32972  test -z "$as_dir" && as_dir=.
32973    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32974  done
32975IFS=$as_save_IFS
32976
32977     ;;
32978esac
32979# We did not find ourselves, most probably we were run as `sh COMMAND'
32980# in which case we are not to be found in the path.
32981if test "x$as_myself" = x; then
32982  as_myself=$0
32983fi
32984if test ! -f "$as_myself"; then
32985  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32986  exit 1
32987fi
32988
32989# Unset variables that we do not need and which cause bugs (e.g. in
32990# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
32991# suppresses any "Segmentation fault" message there.  '((' could
32992# trigger a bug in pdksh 5.2.14.
32993for as_var in BASH_ENV ENV MAIL MAILPATH
32994do eval test x\${$as_var+set} = xset \
32995  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32996done
32997PS1='$ '
32998PS2='> '
32999PS4='+ '
33000
33001# NLS nuisances.
33002LC_ALL=C
33003export LC_ALL
33004LANGUAGE=C
33005export LANGUAGE
33006
33007# CDPATH.
33008(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33009
33010
33011# as_fn_error STATUS ERROR [LINENO LOG_FD]
33012# ----------------------------------------
33013# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33014# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33015# script with STATUS, using 1 if that was 0.
33016as_fn_error ()
33017{
33018  as_status=$1; test $as_status -eq 0 && as_status=1
33019  if test "$4"; then
33020    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33021    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33022  fi
33023  $as_echo "$as_me: error: $2" >&2
33024  as_fn_exit $as_status
33025} # as_fn_error
33026
33027
33028# as_fn_set_status STATUS
33029# -----------------------
33030# Set $? to STATUS, without forking.
33031as_fn_set_status ()
33032{
33033  return $1
33034} # as_fn_set_status
33035
33036# as_fn_exit STATUS
33037# -----------------
33038# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33039as_fn_exit ()
33040{
33041  set +e
33042  as_fn_set_status $1
33043  exit $1
33044} # as_fn_exit
33045
33046# as_fn_unset VAR
33047# ---------------
33048# Portably unset VAR.
33049as_fn_unset ()
33050{
33051  { eval $1=; unset $1;}
33052}
33053as_unset=as_fn_unset
33054# as_fn_append VAR VALUE
33055# ----------------------
33056# Append the text in VALUE to the end of the definition contained in VAR. Take
33057# advantage of any shell optimizations that allow amortized linear growth over
33058# repeated appends, instead of the typical quadratic growth present in naive
33059# implementations.
33060if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33061  eval 'as_fn_append ()
33062  {
33063    eval $1+=\$2
33064  }'
33065else
33066  as_fn_append ()
33067  {
33068    eval $1=\$$1\$2
33069  }
33070fi # as_fn_append
33071
33072# as_fn_arith ARG...
33073# ------------------
33074# Perform arithmetic evaluation on the ARGs, and store the result in the
33075# global $as_val. Take advantage of shells that can avoid forks. The arguments
33076# must be portable across $(()) and expr.
33077if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33078  eval 'as_fn_arith ()
33079  {
33080    as_val=$(( $* ))
33081  }'
33082else
33083  as_fn_arith ()
33084  {
33085    as_val=`expr "$@" || test $? -eq 1`
33086  }
33087fi # as_fn_arith
33088
33089
33090if expr a : '\(a\)' >/dev/null 2>&1 &&
33091   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33092  as_expr=expr
33093else
33094  as_expr=false
33095fi
33096
33097if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33098  as_basename=basename
33099else
33100  as_basename=false
33101fi
33102
33103if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33104  as_dirname=dirname
33105else
33106  as_dirname=false
33107fi
33108
33109as_me=`$as_basename -- "$0" ||
33110$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33111	 X"$0" : 'X\(//\)$' \| \
33112	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33113$as_echo X/"$0" |
33114    sed '/^.*\/\([^/][^/]*\)\/*$/{
33115	    s//\1/
33116	    q
33117	  }
33118	  /^X\/\(\/\/\)$/{
33119	    s//\1/
33120	    q
33121	  }
33122	  /^X\/\(\/\).*/{
33123	    s//\1/
33124	    q
33125	  }
33126	  s/.*/./; q'`
33127
33128# Avoid depending upon Character Ranges.
33129as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33130as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33131as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33132as_cr_digits='0123456789'
33133as_cr_alnum=$as_cr_Letters$as_cr_digits
33134
33135ECHO_C= ECHO_N= ECHO_T=
33136case `echo -n x` in #(((((
33137-n*)
33138  case `echo 'xy\c'` in
33139  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33140  xy)  ECHO_C='\c';;
33141  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33142       ECHO_T='	';;
33143  esac;;
33144*)
33145  ECHO_N='-n';;
33146esac
33147
33148rm -f conf$$ conf$$.exe conf$$.file
33149if test -d conf$$.dir; then
33150  rm -f conf$$.dir/conf$$.file
33151else
33152  rm -f conf$$.dir
33153  mkdir conf$$.dir 2>/dev/null
33154fi
33155if (echo >conf$$.file) 2>/dev/null; then
33156  if ln -s conf$$.file conf$$ 2>/dev/null; then
33157    as_ln_s='ln -s'
33158    # ... but there are two gotchas:
33159    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33160    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33161    # In both cases, we have to default to `cp -pR'.
33162    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33163      as_ln_s='cp -pR'
33164  elif ln conf$$.file conf$$ 2>/dev/null; then
33165    as_ln_s=ln
33166  else
33167    as_ln_s='cp -pR'
33168  fi
33169else
33170  as_ln_s='cp -pR'
33171fi
33172rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33173rmdir conf$$.dir 2>/dev/null
33174
33175
33176# as_fn_mkdir_p
33177# -------------
33178# Create "$as_dir" as a directory, including parents if necessary.
33179as_fn_mkdir_p ()
33180{
33181
33182  case $as_dir in #(
33183  -*) as_dir=./$as_dir;;
33184  esac
33185  test -d "$as_dir" || eval $as_mkdir_p || {
33186    as_dirs=
33187    while :; do
33188      case $as_dir in #(
33189      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33190      *) as_qdir=$as_dir;;
33191      esac
33192      as_dirs="'$as_qdir' $as_dirs"
33193      as_dir=`$as_dirname -- "$as_dir" ||
33194$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33195	 X"$as_dir" : 'X\(//\)[^/]' \| \
33196	 X"$as_dir" : 'X\(//\)$' \| \
33197	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33198$as_echo X"$as_dir" |
33199    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33200	    s//\1/
33201	    q
33202	  }
33203	  /^X\(\/\/\)[^/].*/{
33204	    s//\1/
33205	    q
33206	  }
33207	  /^X\(\/\/\)$/{
33208	    s//\1/
33209	    q
33210	  }
33211	  /^X\(\/\).*/{
33212	    s//\1/
33213	    q
33214	  }
33215	  s/.*/./; q'`
33216      test -d "$as_dir" && break
33217    done
33218    test -z "$as_dirs" || eval "mkdir $as_dirs"
33219  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33220
33221
33222} # as_fn_mkdir_p
33223if mkdir -p . 2>/dev/null; then
33224  as_mkdir_p='mkdir -p "$as_dir"'
33225else
33226  test -d ./-p && rmdir ./-p
33227  as_mkdir_p=false
33228fi
33229
33230
33231# as_fn_executable_p FILE
33232# -----------------------
33233# Test if FILE is an executable regular file.
33234as_fn_executable_p ()
33235{
33236  test -f "$1" && test -x "$1"
33237} # as_fn_executable_p
33238as_test_x='test -x'
33239as_executable_p=as_fn_executable_p
33240
33241# Sed expression to map a string onto a valid CPP name.
33242as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33243
33244# Sed expression to map a string onto a valid variable name.
33245as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33246
33247
33248exec 6>&1
33249## ----------------------------------- ##
33250## Main body of $CONFIG_STATUS script. ##
33251## ----------------------------------- ##
33252_ASEOF
33253test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33254
33255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33256# Save the log message, to keep $0 and so on meaningful, and to
33257# report actual input values of CONFIG_FILES etc. instead of their
33258# values after options handling.
33259ac_log="
33260This file was extended by $as_me, which was
33261generated by GNU Autoconf 2.69.  Invocation command line was
33262
33263  CONFIG_FILES    = $CONFIG_FILES
33264  CONFIG_HEADERS  = $CONFIG_HEADERS
33265  CONFIG_LINKS    = $CONFIG_LINKS
33266  CONFIG_COMMANDS = $CONFIG_COMMANDS
33267  $ $0 $@
33268
33269on `(hostname || uname -n) 2>/dev/null | sed 1q`
33270"
33271
33272_ACEOF
33273
33274case $ac_config_files in *"
33275"*) set x $ac_config_files; shift; ac_config_files=$*;;
33276esac
33277
33278case $ac_config_headers in *"
33279"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33280esac
33281
33282
33283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33284# Files that config.status was made for.
33285config_files="$ac_config_files"
33286config_headers="$ac_config_headers"
33287config_commands="$ac_config_commands"
33288
33289_ACEOF
33290
33291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33292ac_cs_usage="\
33293\`$as_me' instantiates files and other configuration actions
33294from templates according to the current configuration.  Unless the files
33295and actions are specified as TAGs, all are instantiated by default.
33296
33297Usage: $0 [OPTION]... [TAG]...
33298
33299  -h, --help       print this help, then exit
33300  -V, --version    print version number and configuration settings, then exit
33301      --config     print configuration, then exit
33302  -q, --quiet, --silent
33303                   do not print progress messages
33304  -d, --debug      don't remove temporary files
33305      --recheck    update $as_me by reconfiguring in the same conditions
33306      --file=FILE[:TEMPLATE]
33307                   instantiate the configuration file FILE
33308      --header=FILE[:TEMPLATE]
33309                   instantiate the configuration header FILE
33310
33311Configuration files:
33312$config_files
33313
33314Configuration headers:
33315$config_headers
33316
33317Configuration commands:
33318$config_commands
33319
33320Report bugs to the package provider."
33321
33322_ACEOF
33323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33324ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33325ac_cs_version="\\
33326config.status
33327configured by $0, generated by GNU Autoconf 2.69,
33328  with options \\"\$ac_cs_config\\"
33329
33330Copyright (C) 2012 Free Software Foundation, Inc.
33331This config.status script is free software; the Free Software Foundation
33332gives unlimited permission to copy, distribute and modify it."
33333
33334ac_pwd='$ac_pwd'
33335srcdir='$srcdir'
33336AWK='$AWK'
33337test -n "\$AWK" || AWK=awk
33338_ACEOF
33339
33340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33341# The default lists apply if the user does not specify any file.
33342ac_need_defaults=:
33343while test $# != 0
33344do
33345  case $1 in
33346  --*=?*)
33347    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33348    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33349    ac_shift=:
33350    ;;
33351  --*=)
33352    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33353    ac_optarg=
33354    ac_shift=:
33355    ;;
33356  *)
33357    ac_option=$1
33358    ac_optarg=$2
33359    ac_shift=shift
33360    ;;
33361  esac
33362
33363  case $ac_option in
33364  # Handling of the options.
33365  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33366    ac_cs_recheck=: ;;
33367  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33368    $as_echo "$ac_cs_version"; exit ;;
33369  --config | --confi | --conf | --con | --co | --c )
33370    $as_echo "$ac_cs_config"; exit ;;
33371  --debug | --debu | --deb | --de | --d | -d )
33372    debug=: ;;
33373  --file | --fil | --fi | --f )
33374    $ac_shift
33375    case $ac_optarg in
33376    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33377    '') as_fn_error $? "missing file argument" ;;
33378    esac
33379    as_fn_append CONFIG_FILES " '$ac_optarg'"
33380    ac_need_defaults=false;;
33381  --header | --heade | --head | --hea )
33382    $ac_shift
33383    case $ac_optarg in
33384    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33385    esac
33386    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33387    ac_need_defaults=false;;
33388  --he | --h)
33389    # Conflict between --help and --header
33390    as_fn_error $? "ambiguous option: \`$1'
33391Try \`$0 --help' for more information.";;
33392  --help | --hel | -h )
33393    $as_echo "$ac_cs_usage"; exit ;;
33394  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33395  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33396    ac_cs_silent=: ;;
33397
33398  # This is an error.
33399  -*) as_fn_error $? "unrecognized option: \`$1'
33400Try \`$0 --help' for more information." ;;
33401
33402  *) as_fn_append ac_config_targets " $1"
33403     ac_need_defaults=false ;;
33404
33405  esac
33406  shift
33407done
33408
33409ac_configure_extra_args=
33410
33411if $ac_cs_silent; then
33412  exec 6>/dev/null
33413  ac_configure_extra_args="$ac_configure_extra_args --silent"
33414fi
33415
33416_ACEOF
33417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33418if \$ac_cs_recheck; then
33419  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33420  shift
33421  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33422  CONFIG_SHELL='$SHELL'
33423  export CONFIG_SHELL
33424  exec "\$@"
33425fi
33426
33427_ACEOF
33428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33429exec 5>>config.log
33430{
33431  echo
33432  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33433## Running $as_me. ##
33434_ASBOX
33435  $as_echo "$ac_log"
33436} >&5
33437
33438_ACEOF
33439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33440#
33441# INIT-COMMANDS
33442#
33443
33444
33445  $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES
33446
33447
33448
33449_ACEOF
33450
33451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33452
33453# Handling of arguments.
33454for ac_config_target in $ac_config_targets
33455do
33456  case $ac_config_target in
33457    "include/ap_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ap_config_auto.h" ;;
33458    "$APACHE_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $APACHE_OUTPUT_FILES" ;;
33459    "docs/conf/httpd.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/httpd.conf" ;;
33460    "docs/conf/extra/httpd-autoindex.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-autoindex.conf" ;;
33461    "docs/conf/extra/httpd-dav.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-dav.conf" ;;
33462    "docs/conf/extra/httpd-default.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-default.conf" ;;
33463    "docs/conf/extra/httpd-info.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-info.conf" ;;
33464    "docs/conf/extra/httpd-languages.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-languages.conf" ;;
33465    "docs/conf/extra/httpd-manual.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-manual.conf" ;;
33466    "docs/conf/extra/httpd-mpm.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-mpm.conf" ;;
33467    "docs/conf/extra/httpd-multilang-errordoc.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-multilang-errordoc.conf" ;;
33468    "docs/conf/extra/httpd-ssl.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-ssl.conf" ;;
33469    "docs/conf/extra/httpd-userdir.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-userdir.conf" ;;
33470    "docs/conf/extra/httpd-vhosts.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-vhosts.conf" ;;
33471    "docs/conf/extra/proxy-html.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/proxy-html.conf" ;;
33472    "include/ap_config_layout.h") CONFIG_FILES="$CONFIG_FILES include/ap_config_layout.h" ;;
33473    "support/apxs") CONFIG_FILES="$CONFIG_FILES support/apxs" ;;
33474    "support/apachectl") CONFIG_FILES="$CONFIG_FILES support/apachectl" ;;
33475    "support/dbmmanage") CONFIG_FILES="$CONFIG_FILES support/dbmmanage" ;;
33476    "support/envvars-std") CONFIG_FILES="$CONFIG_FILES support/envvars-std" ;;
33477    "support/log_server_status") CONFIG_FILES="$CONFIG_FILES support/log_server_status" ;;
33478    "support/logresolve.pl") CONFIG_FILES="$CONFIG_FILES support/logresolve.pl" ;;
33479    "support/phf_abuse_log.cgi") CONFIG_FILES="$CONFIG_FILES support/phf_abuse_log.cgi" ;;
33480    "support/split-logfile") CONFIG_FILES="$CONFIG_FILES support/split-logfile" ;;
33481    "build/rules.mk") CONFIG_FILES="$CONFIG_FILES build/rules.mk" ;;
33482    "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
33483    "build/config_vars.sh") CONFIG_FILES="$CONFIG_FILES build/config_vars.sh" ;;
33484    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33485
33486  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33487  esac
33488done
33489
33490
33491# If the user did not use the arguments to specify the items to instantiate,
33492# then the envvar interface is used.  Set only those that are not.
33493# We use the long form for the default assignment because of an extremely
33494# bizarre bug on SunOS 4.1.3.
33495if $ac_need_defaults; then
33496  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33497  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33498  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33499fi
33500
33501# Have a temporary directory for convenience.  Make it in the build tree
33502# simply because there is no reason against having it here, and in addition,
33503# creating and moving files from /tmp can sometimes cause problems.
33504# Hook for its removal unless debugging.
33505# Note that there is a small window in which the directory will not be cleaned:
33506# after its creation but before its name has been assigned to `$tmp'.
33507$debug ||
33508{
33509  tmp= ac_tmp=
33510  trap 'exit_status=$?
33511  : "${ac_tmp:=$tmp}"
33512  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33513' 0
33514  trap 'as_fn_exit 1' 1 2 13 15
33515}
33516# Create a (secure) tmp directory for tmp files.
33517
33518{
33519  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33520  test -d "$tmp"
33521}  ||
33522{
33523  tmp=./conf$$-$RANDOM
33524  (umask 077 && mkdir "$tmp")
33525} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33526ac_tmp=$tmp
33527
33528# Set up the scripts for CONFIG_FILES section.
33529# No need to generate them if there are no CONFIG_FILES.
33530# This happens for instance with `./config.status config.h'.
33531if test -n "$CONFIG_FILES"; then
33532
33533
33534ac_cr=`echo X | tr X '\015'`
33535# On cygwin, bash can eat \r inside `` if the user requested igncr.
33536# But we know of no other shell where ac_cr would be empty at this
33537# point, so we can use a bashism as a fallback.
33538if test "x$ac_cr" = x; then
33539  eval ac_cr=\$\'\\r\'
33540fi
33541ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33542if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33543  ac_cs_awk_cr='\\r'
33544else
33545  ac_cs_awk_cr=$ac_cr
33546fi
33547
33548echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33549_ACEOF
33550
33551
33552{
33553  echo "cat >conf$$subs.awk <<_ACEOF" &&
33554  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33555  echo "_ACEOF"
33556} >conf$$subs.sh ||
33557  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33558ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33559ac_delim='%!_!# '
33560for ac_last_try in false false false false false :; do
33561  . ./conf$$subs.sh ||
33562    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33563
33564  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33565  if test $ac_delim_n = $ac_delim_num; then
33566    break
33567  elif $ac_last_try; then
33568    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33569  else
33570    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33571  fi
33572done
33573rm -f conf$$subs.sh
33574
33575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33576cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33577_ACEOF
33578sed -n '
33579h
33580s/^/S["/; s/!.*/"]=/
33581p
33582g
33583s/^[^!]*!//
33584:repl
33585t repl
33586s/'"$ac_delim"'$//
33587t delim
33588:nl
33589h
33590s/\(.\{148\}\)..*/\1/
33591t more1
33592s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33593p
33594n
33595b repl
33596:more1
33597s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33598p
33599g
33600s/.\{148\}//
33601t nl
33602:delim
33603h
33604s/\(.\{148\}\)..*/\1/
33605t more2
33606s/["\\]/\\&/g; s/^/"/; s/$/"/
33607p
33608b
33609:more2
33610s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33611p
33612g
33613s/.\{148\}//
33614t delim
33615' <conf$$subs.awk | sed '
33616/^[^""]/{
33617  N
33618  s/\n//
33619}
33620' >>$CONFIG_STATUS || ac_write_fail=1
33621rm -f conf$$subs.awk
33622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33623_ACAWK
33624cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33625  for (key in S) S_is_set[key] = 1
33626  FS = ""
33627
33628}
33629{
33630  line = $ 0
33631  nfields = split(line, field, "@")
33632  substed = 0
33633  len = length(field[1])
33634  for (i = 2; i < nfields; i++) {
33635    key = field[i]
33636    keylen = length(key)
33637    if (S_is_set[key]) {
33638      value = S[key]
33639      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33640      len += length(value) + length(field[++i])
33641      substed = 1
33642    } else
33643      len += 1 + keylen
33644  }
33645
33646  print line
33647}
33648
33649_ACAWK
33650_ACEOF
33651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33652if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33653  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33654else
33655  cat
33656fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33657  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33658_ACEOF
33659
33660# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33661# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33662# trailing colons and then remove the whole line if VPATH becomes empty
33663# (actually we leave an empty line to preserve line numbers).
33664if test "x$srcdir" = x.; then
33665  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
33666h
33667s///
33668s/^/:/
33669s/[	 ]*$/:/
33670s/:\$(srcdir):/:/g
33671s/:\${srcdir}:/:/g
33672s/:@srcdir@:/:/g
33673s/^:*//
33674s/:*$//
33675x
33676s/\(=[	 ]*\).*/\1/
33677G
33678s/\n//
33679s/^[^=]*=[	 ]*$//
33680}'
33681fi
33682
33683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33684fi # test -n "$CONFIG_FILES"
33685
33686# Set up the scripts for CONFIG_HEADERS section.
33687# No need to generate them if there are no CONFIG_HEADERS.
33688# This happens for instance with `./config.status Makefile'.
33689if test -n "$CONFIG_HEADERS"; then
33690cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33691BEGIN {
33692_ACEOF
33693
33694# Transform confdefs.h into an awk script `defines.awk', embedded as
33695# here-document in config.status, that substitutes the proper values into
33696# config.h.in to produce config.h.
33697
33698# Create a delimiter string that does not exist in confdefs.h, to ease
33699# handling of long lines.
33700ac_delim='%!_!# '
33701for ac_last_try in false false :; do
33702  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33703  if test -z "$ac_tt"; then
33704    break
33705  elif $ac_last_try; then
33706    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33707  else
33708    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33709  fi
33710done
33711
33712# For the awk script, D is an array of macro values keyed by name,
33713# likewise P contains macro parameters if any.  Preserve backslash
33714# newline sequences.
33715
33716ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33717sed -n '
33718s/.\{148\}/&'"$ac_delim"'/g
33719t rset
33720:rset
33721s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
33722t def
33723d
33724:def
33725s/\\$//
33726t bsnl
33727s/["\\]/\\&/g
33728s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33729D["\1"]=" \3"/p
33730s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
33731d
33732:bsnl
33733s/["\\]/\\&/g
33734s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33735D["\1"]=" \3\\\\\\n"\\/p
33736t cont
33737s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33738t cont
33739d
33740:cont
33741n
33742s/.\{148\}/&'"$ac_delim"'/g
33743t clear
33744:clear
33745s/\\$//
33746t bsnlc
33747s/["\\]/\\&/g; s/^/"/; s/$/"/p
33748d
33749:bsnlc
33750s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33751b cont
33752' <confdefs.h | sed '
33753s/'"$ac_delim"'/"\\\
33754"/g' >>$CONFIG_STATUS || ac_write_fail=1
33755
33756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33757  for (key in D) D_is_set[key] = 1
33758  FS = ""
33759}
33760/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33761  line = \$ 0
33762  split(line, arg, " ")
33763  if (arg[1] == "#") {
33764    defundef = arg[2]
33765    mac1 = arg[3]
33766  } else {
33767    defundef = substr(arg[1], 2)
33768    mac1 = arg[2]
33769  }
33770  split(mac1, mac2, "(") #)
33771  macro = mac2[1]
33772  prefix = substr(line, 1, index(line, defundef) - 1)
33773  if (D_is_set[macro]) {
33774    # Preserve the white space surrounding the "#".
33775    print prefix "define", macro P[macro] D[macro]
33776    next
33777  } else {
33778    # Replace #undef with comments.  This is necessary, for example,
33779    # in the case of _POSIX_SOURCE, which is predefined and required
33780    # on some systems where configure will not decide to define it.
33781    if (defundef == "undef") {
33782      print "/*", prefix defundef, macro, "*/"
33783      next
33784    }
33785  }
33786}
33787{ print }
33788_ACAWK
33789_ACEOF
33790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33791  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33792fi # test -n "$CONFIG_HEADERS"
33793
33794
33795eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
33796shift
33797for ac_tag
33798do
33799  case $ac_tag in
33800  :[FHLC]) ac_mode=$ac_tag; continue;;
33801  esac
33802  case $ac_mode$ac_tag in
33803  :[FHL]*:*);;
33804  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33805  :[FH]-) ac_tag=-:-;;
33806  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33807  esac
33808  ac_save_IFS=$IFS
33809  IFS=:
33810  set x $ac_tag
33811  IFS=$ac_save_IFS
33812  shift
33813  ac_file=$1
33814  shift
33815
33816  case $ac_mode in
33817  :L) ac_source=$1;;
33818  :[FH])
33819    ac_file_inputs=
33820    for ac_f
33821    do
33822      case $ac_f in
33823      -) ac_f="$ac_tmp/stdin";;
33824      *) # Look for the file first in the build tree, then in the source tree
33825	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
33826	 # because $ac_f cannot contain `:'.
33827	 test -f "$ac_f" ||
33828	   case $ac_f in
33829	   [\\/$]*) false;;
33830	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33831	   esac ||
33832	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33833      esac
33834      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33835      as_fn_append ac_file_inputs " '$ac_f'"
33836    done
33837
33838    # Let's still pretend it is `configure' which instantiates (i.e., don't
33839    # use $as_me), people would be surprised to read:
33840    #    /* config.h.  Generated by config.status.  */
33841    configure_input='Generated from '`
33842	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33843	`' by configure.'
33844    if test x"$ac_file" != x-; then
33845      configure_input="$ac_file.  $configure_input"
33846      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33847$as_echo "$as_me: creating $ac_file" >&6;}
33848    fi
33849    # Neutralize special characters interpreted by sed in replacement strings.
33850    case $configure_input in #(
33851    *\&* | *\|* | *\\* )
33852       ac_sed_conf_input=`$as_echo "$configure_input" |
33853       sed 's/[\\\\&|]/\\\\&/g'`;; #(
33854    *) ac_sed_conf_input=$configure_input;;
33855    esac
33856
33857    case $ac_tag in
33858    *:-:* | *:-) cat >"$ac_tmp/stdin" \
33859      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33860    esac
33861    ;;
33862  esac
33863
33864  ac_dir=`$as_dirname -- "$ac_file" ||
33865$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33866	 X"$ac_file" : 'X\(//\)[^/]' \| \
33867	 X"$ac_file" : 'X\(//\)$' \| \
33868	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33869$as_echo X"$ac_file" |
33870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33871	    s//\1/
33872	    q
33873	  }
33874	  /^X\(\/\/\)[^/].*/{
33875	    s//\1/
33876	    q
33877	  }
33878	  /^X\(\/\/\)$/{
33879	    s//\1/
33880	    q
33881	  }
33882	  /^X\(\/\).*/{
33883	    s//\1/
33884	    q
33885	  }
33886	  s/.*/./; q'`
33887  as_dir="$ac_dir"; as_fn_mkdir_p
33888  ac_builddir=.
33889
33890case "$ac_dir" in
33891.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33892*)
33893  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33894  # A ".." for each directory in $ac_dir_suffix.
33895  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33896  case $ac_top_builddir_sub in
33897  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33898  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33899  esac ;;
33900esac
33901ac_abs_top_builddir=$ac_pwd
33902ac_abs_builddir=$ac_pwd$ac_dir_suffix
33903# for backward compatibility:
33904ac_top_builddir=$ac_top_build_prefix
33905
33906case $srcdir in
33907  .)  # We are building in place.
33908    ac_srcdir=.
33909    ac_top_srcdir=$ac_top_builddir_sub
33910    ac_abs_top_srcdir=$ac_pwd ;;
33911  [\\/]* | ?:[\\/]* )  # Absolute name.
33912    ac_srcdir=$srcdir$ac_dir_suffix;
33913    ac_top_srcdir=$srcdir
33914    ac_abs_top_srcdir=$srcdir ;;
33915  *) # Relative name.
33916    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33917    ac_top_srcdir=$ac_top_build_prefix$srcdir
33918    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33919esac
33920ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33921
33922
33923  case $ac_mode in
33924  :F)
33925  #
33926  # CONFIG_FILE
33927  #
33928
33929_ACEOF
33930
33931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33932# If the template does not know about datarootdir, expand it.
33933# FIXME: This hack should be removed a few years after 2.60.
33934ac_datarootdir_hack=; ac_datarootdir_seen=
33935ac_sed_dataroot='
33936/datarootdir/ {
33937  p
33938  q
33939}
33940/@datadir@/p
33941/@docdir@/p
33942/@infodir@/p
33943/@localedir@/p
33944/@mandir@/p'
33945case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33946*datarootdir*) ac_datarootdir_seen=yes;;
33947*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33948  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33949$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33950_ACEOF
33951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33952  ac_datarootdir_hack='
33953  s&@datadir@&$datadir&g
33954  s&@docdir@&$docdir&g
33955  s&@infodir@&$infodir&g
33956  s&@localedir@&$localedir&g
33957  s&@mandir@&$mandir&g
33958  s&\\\${datarootdir}&$datarootdir&g' ;;
33959esac
33960_ACEOF
33961
33962# Neutralize VPATH when `$srcdir' = `.'.
33963# Shell code in configure.ac might set extrasub.
33964# FIXME: do we really want to maintain this feature?
33965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33966ac_sed_extra="$ac_vpsub
33967$extrasub
33968_ACEOF
33969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33970:t
33971/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33972s|@configure_input@|$ac_sed_conf_input|;t t
33973s&@top_builddir@&$ac_top_builddir_sub&;t t
33974s&@top_build_prefix@&$ac_top_build_prefix&;t t
33975s&@srcdir@&$ac_srcdir&;t t
33976s&@abs_srcdir@&$ac_abs_srcdir&;t t
33977s&@top_srcdir@&$ac_top_srcdir&;t t
33978s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33979s&@builddir@&$ac_builddir&;t t
33980s&@abs_builddir@&$ac_abs_builddir&;t t
33981s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33982$ac_datarootdir_hack
33983"
33984eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33985  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33986
33987test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33988  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33989  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
33990      "$ac_tmp/out"`; test -z "$ac_out"; } &&
33991  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33992which seems to be undefined.  Please make sure it is defined" >&5
33993$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33994which seems to be undefined.  Please make sure it is defined" >&2;}
33995
33996  rm -f "$ac_tmp/stdin"
33997  case $ac_file in
33998  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33999  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34000  esac \
34001  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34002 ;;
34003  :H)
34004  #
34005  # CONFIG_HEADER
34006  #
34007  if test x"$ac_file" != x-; then
34008    {
34009      $as_echo "/* $configure_input  */" \
34010      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34011    } >"$ac_tmp/config.h" \
34012      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34013    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34014      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34015$as_echo "$as_me: $ac_file is unchanged" >&6;}
34016    else
34017      rm -f "$ac_file"
34018      mv "$ac_tmp/config.h" "$ac_file" \
34019	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
34020    fi
34021  else
34022    $as_echo "/* $configure_input  */" \
34023      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34024      || as_fn_error $? "could not create -" "$LINENO" 5
34025  fi
34026 ;;
34027
34028  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34029$as_echo "$as_me: executing $ac_file commands" >&6;}
34030 ;;
34031  esac
34032
34033
34034  case $ac_file$ac_mode in
34035    "default":C) true ;;
34036
34037  esac
34038done # for ac_tag
34039
34040
34041as_fn_exit 0
34042_ACEOF
34043ac_clean_files=$ac_clean_files_save
34044
34045test $ac_write_fail = 0 ||
34046  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34047
34048
34049# configure is writing to config.log, and then calls config.status.
34050# config.status does its own redirection, appending to config.log.
34051# Unfortunately, on DOS this fails, as config.log is still kept open
34052# by configure, so config.status won't be able to write to it; its
34053# output is simply discarded.  So we exec the FD to /dev/null,
34054# effectively closing config.log, so it can be properly (re)opened and
34055# appended to by config.status.  When coming back to configure, we
34056# need to make the FD available again.
34057if test "$no_create" != yes; then
34058  ac_cs_success=:
34059  ac_config_status_args=
34060  test "$silent" = yes &&
34061    ac_config_status_args="$ac_config_status_args --quiet"
34062  exec 5>/dev/null
34063  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34064  exec 5>>config.log
34065  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34066  # would make configure fail if this is the last instruction.
34067  $ac_cs_success || as_fn_exit 1
34068fi
34069if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34070  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34071$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34072fi
34073
34074