#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
# Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else $as_nop
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi



# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl='
'
export as_nl
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi

# The user is always right.
if ${PATH_SEPARATOR+false} :; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi


# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="as_nop=:
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
else \$as_nop
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
then :

else \$as_nop
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1
blah=\$(echo \$(echo blah))
test x\"\$blah\" = xblah || exit 1
test -x / || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null
then :
  as_have_required=yes
else $as_nop
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
then :

else $as_nop
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else $as_nop
  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi
fi


      if test "x$CONFIG_SHELL" != x
then :
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
fi

    if test x$as_have_required = xno
then :
  printf "%s\n" "$0: This script requires a shell more modern than all"
  printf "%s\n" "$0: the shells that I found on your system."
  if test ${ZSH_VERSION+y} ; then
    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  else
    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else $as_nop
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else $as_nop
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith

# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop

# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  printf "%s\n" "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'


rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PACKAGE_STRING=''
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

ac_unique_file="ABOUT_APACHE"
enable_option_checking=no
ac_default_prefix=/usr/local/apache2
# Factoring default headers for most tests.
ac_includes_default="\
#include <stddef.h>
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_header_c_list=
ac_subst_vars='LTLIBOBJS
LIBOBJS
ap_make_delimiter
ap_make_include
perlbin
APU_CONFIG
APU_VERSION
APU_INCLUDEDIR
APU_BINDIR
APR_CONFIG
APR_VERSION
APR_INCLUDEDIR
APR_BINDIR
LOAD_ALL_MODULES
ENABLED_DSO_MODULES
DSO_MODULES
ENABLED_MPM_MODULE
MPM_MODULES
INSTALL_PROG_FLAGS
MK_IMPLIB
SH_LIBTOOL
SH_LIBS
CORE_IMPLIB
CORE_IMPLIB_FILE
SSLPORT
PORT
MODULE_CLEANDIRS
MODULE_DIRS
LIBTOOL
INTERNAL_CPPFLAGS
NOTEST_LIBS
NOTEST_LDFLAGS
NOTEST_CXXFLAGS
NOTEST_CFLAGS
NOTEST_CPPFLAGS
INCLUDES
UTIL_LDFLAGS
HTTPD_LDFLAGS
SH_LDFLAGS
LT_LDFLAGS
LTFLAGS
CXXFLAGS
CXX
other_targets
proxycachedir
runtimedir
installbuilddir
iconsdir
errordir
manualdir
htdocsdir
logfiledir
cgidir
abs_srcdir
HTTPD_MMN
HTTPD_VERSION
EXTRA_INCLUDES
EXTRA_LIBS
EXTRA_LDFLAGS
EXTRA_CXXFLAGS
EXTRA_CFLAGS
EXTRA_CPPFLAGS
AP_CLEAN_SRCLIB_DIRS
AP_BUILD_SRCLIB_DIRS
AP_LIBS
INSTALL_SUEXEC
shared_build
POST_SHARED_CMDS
PRE_SHARED_CMDS
MOD_SO_ENABLED
OS_SPECIFIC_VARS
SHLIBPATH_VAR
BUILTIN_LIBS
OS_DIR
OS
progname
MOD_REWRITE_LDADD
MOD_ALIAS_LDADD
MOD_USERDIR_LDADD
MOD_SPELING_LDADD
MOD_ACTIONS_LDADD
MOD_IMAGEMAP_LDADD
MOD_DIR_LDADD
MOD_NEGOTIATION_LDADD
MOD_VHOST_ALIAS_LDADD
MOD_DAV_LOCK_LDADD
MOD_DAV_FS_LDADD
MOD_CGI_LDADD
MOD_CGID_LDADD
MOD_SUEXEC_LDADD
MOD_INFO_LDADD
MOD_ASIS_LDADD
MOD_AUTOINDEX_LDADD
MOD_STATUS_LDADD
MOD_DAV_LDADD
MOD_HEARTMONITOR_LDADD
MOD_HEARTBEAT_LDADD
MOD_SYSTEMD_LDADD
MOD_PRIVILEGES_LDADD
MOD_UNIXD_LDADD
MOD_MPM_EVENT_LDADD
MPM_LIB
MPM_SUBDIRS
MOD_TLS_LDADD
MOD_LBMETHOD_HEARTBEAT_LDADD
MOD_LBMETHOD_BYBUSYNESS_LDADD
MOD_LBMETHOD_BYTRAFFIC_LDADD
MOD_LBMETHOD_BYREQUESTS_LDADD
MOD_MD_LDADD
MOD_PROXY_HTTP2_LDADD
MOD_HTTP2_LDADD
APACHECTL_ULIMIT
NONPORTABLE_SUPPORT
fcgistarter_LTFLAGS
httxt2dbm_LTFLAGS
htcacheclean_LTFLAGS
checkgid_LTFLAGS
ab_LTFLAGS
htdbm_LTFLAGS
logresolve_LTFLAGS
rotatelogs_LTFLAGS
htdigest_LTFLAGS
htpasswd_LTFLAGS
MOD_DIALUP_LDADD
MOD_OPTIONAL_FN_EXPORT_LDADD
MOD_OPTIONAL_FN_IMPORT_LDADD
MOD_OPTIONAL_HOOK_IMPORT_LDADD
MOD_OPTIONAL_HOOK_EXPORT_LDADD
MOD_SSL_LDADD
ab_LIBS
ab_CFLAGS
MOD_SLOTMEM_PLAIN_LDADD
MOD_SLOTMEM_SHM_LDADD
MOD_SESSION_DBD_LDADD
MOD_SESSION_CRYPTO_LDADD
MOD_SESSION_COOKIE_LDADD
MOD_SESSION_LDADD
MOD_PROXY_HCHECK_LDADD
MOD_PROXY_EXPRESS_LDADD
MOD_PROXY_BALANCER_LDADD
MOD_PROXY_AJP_LDADD
MOD_PROXY_WSTUNNEL_LDADD
MOD_PROXY_FDPASS_LDADD
MOD_PROXY_UWSGI_LDADD
MOD_PROXY_SCGI_LDADD
MOD_PROXY_FCGI_LDADD
MOD_PROXY_HTTP_LDADD
MOD_PROXY_FTP_LDADD
MOD_PROXY_CONNECT_LDADD
MOD_PROXY_LDADD
MOD_REMOTEIP_LDADD
MOD_VERSION_LDADD
MOD_SETENVIF_LDADD
MOD_UNIQUE_ID_LDADD
MOD_USERTRACK_LDADD
MOD_IDENT_LDADD
MOD_HEADERS_LDADD
MOD_EXPIRES_LDADD
MOD_CERN_META_LDADD
MOD_MIME_MAGIC_LDADD
MOD_ENV_LDADD
MOD_LUA_LDADD
LUA_CFLAGS
LUA_LIBS
MOD_LOGIO_LDADD
MOD_LOG_FORENSIC_LDADD
MOD_LOG_DEBUG_LDADD
MOD_LOG_CONFIG_LDADD
MOD_LDAP_LDADD
MOD_MIME_LDADD
MOD_HTTP_LDADD
MOD_BROTLI_LDADD
MOD_PROXY_HTML_LDADD
MOD_XML2ENC_LDADD
MOD_DEFLATE_LDADD
MOD_CHARSET_LITE_LDADD
MOD_SED_LDADD
MOD_SUBSTITUTE_LDADD
MOD_REFLECTOR_LDADD
MOD_FILTER_LDADD
MOD_INCLUDE_LDADD
MOD_REQUEST_LDADD
MOD_EXT_FILTER_LDADD
MOD_REQTIMEOUT_LDADD
MOD_RATELIMIT_LDADD
MOD_DATA_LDADD
MOD_BUFFER_LDADD
MOD_EXAMPLE_IPC_LDADD
MOD_CASE_FILTER_IN_LDADD
MOD_CASE_FILTER_LDADD
MOD_EXAMPLE_HOOKS_LDADD
MOD_ECHO_LDADD
MOD_DUMPIO_LDADD
MOD_BUCKETEER_LDADD
MOD_DBD_LDADD
MOD_MACRO_LDADD
MOD_WATCHDOG_LDADD
MOD_SO_LDADD
INSTALL_DSO
MOD_SOCACHE_DC_LDADD
MOD_SOCACHE_REDIS_LDADD
MOD_SOCACHE_MEMCACHE_LDADD
MOD_SOCACHE_DBM_LDADD
MOD_SOCACHE_SHMCB_LDADD
MOD_CACHE_SOCACHE_LDADD
MOD_CACHE_DISK_LDADD
MOD_CACHE_LDADD
MOD_FILE_CACHE_LDADD
MOD_ISAPI_LDADD
MOD_ALLOWMETHODS_LDADD
MOD_AUTH_DIGEST_LDADD
MOD_AUTH_FORM_LDADD
MOD_AUTH_BASIC_LDADD
MOD_ACCESS_COMPAT_LDADD
MOD_AUTHNZ_FCGI_LDADD
MOD_AUTHNZ_LDAP_LDADD
MOD_AUTHZ_CORE_LDADD
MOD_AUTHZ_DBD_LDADD
MOD_AUTHZ_OWNER_LDADD
MOD_AUTHZ_DBM_LDADD
MOD_AUTHZ_USER_LDADD
MOD_AUTHZ_GROUPFILE_LDADD
MOD_AUTHZ_HOST_LDADD
MOD_AUTHN_CORE_LDADD
MOD_AUTHN_SOCACHE_LDADD
MOD_AUTHN_DBD_LDADD
MOD_AUTHN_ANON_LDADD
MOD_AUTHN_DBM_LDADD
MOD_AUTHN_FILE_LDADD
PILDFLAGS
PICFLAGS
DTRACE
CRYPT_LIBS
MATH_LIBS
MKDEP
INSTALL
MKINSTALLDIRS
LYNX_PATH
RANLIB
LN_S
AWK
SVN
RSYNC
PKGCONFIG
RM
LTCFLAGS
SHLTCFLAGS
PCRE_LIBS
PCRE_CONFIG
CPP
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
target_os
target_vendor
target_cpu
target
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
EGREP
GREP
rel_proxycachedir
exp_proxycachedir
rel_logfiledir
exp_logfiledir
rel_runtimedir
exp_runtimedir
rel_localstatedir
exp_localstatedir
rel_includedir
exp_includedir
rel_cgidir
exp_cgidir
rel_manualdir
exp_manualdir
rel_htdocsdir
exp_htdocsdir
rel_iconsdir
exp_iconsdir
rel_errordir
exp_errordir
rel_installbuilddir
exp_installbuilddir
rel_datadir
exp_datadir
rel_sysconfdir
exp_sysconfdir
rel_mandir
exp_mandir
rel_libexecdir
exp_libexecdir
rel_libdir
exp_libdir
rel_sbindir
exp_sbindir
rel_bindir
exp_bindir
rel_exec_prefix
exp_exec_prefix
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
runstatedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_layout
with_included_apr
with_apr
with_apr_util
with_pcre
with_port
with_sslport
enable_dtrace
enable_hook_probes
enable_exception_hook
enable_load_all_modules
enable_maintainer_mode
enable_debugger_mode
enable_pie
enable_modules
enable_mods_shared
enable_mods_static
enable_authn_file
enable_authn_dbm
enable_authn_anon
enable_authn_dbd
enable_authn_socache
enable_authn_core
enable_authz_host
enable_authz_groupfile
enable_authz_user
enable_authz_dbm
enable_authz_owner
enable_authz_dbd
enable_authz_core
enable_authnz_ldap
enable_authnz_fcgi
enable_access_compat
enable_auth_basic
enable_auth_form
enable_auth_digest
enable_allowmethods
enable_isapi
enable_file_cache
enable_cache
enable_cache_disk
enable_cache_socache
enable_socache_shmcb
enable_socache_dbm
enable_socache_memcache
enable_socache_redis
enable_socache_dc
with_distcache
enable_so
enable_watchdog
enable_macro
enable_dbd
enable_bucketeer
enable_dumpio
enable_echo
enable_example_hooks
enable_case_filter
enable_case_filter_in
enable_example_ipc
enable_buffer
enable_data
enable_ratelimit
enable_reqtimeout
enable_ext_filter
enable_request
enable_include
enable_filter
enable_reflector
enable_substitute
enable_sed
enable_charset_lite
enable_deflate
with_z
enable_xml2enc
with_libxml2
enable_proxy_html
enable_brotli
with_brotli
enable_http
enable_mime
enable_ldap
enable_log_config
enable_log_debug
enable_log_forensic
enable_logio
enable_lua
with_lua
enable_luajit
enable_env
enable_mime_magic
enable_cern_meta
enable_expires
enable_headers
enable_ident
enable_usertrack
enable_unique_id
enable_setenvif
enable_version
enable_remoteip
enable_proxy
enable_proxy_connect
enable_proxy_ftp
enable_proxy_http
enable_proxy_fcgi
enable_proxy_scgi
enable_proxy_uwsgi
enable_proxy_fdpass
enable_proxy_wstunnel
enable_proxy_ajp
enable_proxy_balancer
enable_proxy_express
enable_proxy_hcheck
enable_session
enable_session_cookie
enable_session_crypto
enable_session_dbd
enable_slotmem_shm
enable_slotmem_plain
enable_ssl
with_ssl
enable_ssl_staticlib_deps
enable_optional_hook_export
enable_optional_hook_import
enable_optional_fn_import
enable_optional_fn_export
enable_dialup
enable_static_support
enable_static_htpasswd
enable_static_htdigest
enable_static_rotatelogs
enable_static_logresolve
enable_static_htdbm
enable_static_ab
enable_static_checkgid
enable_static_htcacheclean
enable_static_httxt2dbm
enable_static_fcgistarter
enable_http2
with_nghttp2
enable_nghttp2_staticlib_deps
enable_proxy_http2
enable_md
with_jansson
enable_jansson_staticlib_deps
with_curl
enable_curl_staticlib_deps
enable_lbmethod_byrequests
enable_lbmethod_bytraffic
enable_lbmethod_bybusyness
enable_lbmethod_heartbeat
enable_tls
with_rustls
with_mpm
enable_mpms_shared
enable_unixd
enable_privileges
enable_systemd
enable_heartbeat
enable_heartmonitor
enable_dav
enable_status
enable_autoindex
enable_asis
enable_info
enable_suexec
enable_cgid
enable_cgi
enable_dav_fs
enable_dav_lock
with_module
enable_vhost_alias
enable_negotiation
enable_dir
enable_imagemap
enable_actions
enable_speling
enable_userdir
enable_alias
enable_rewrite
with_program_name
with_suexec_bin
with_suexec_caller
with_suexec_userdir
with_suexec_docroot
with_suexec_uidmin
with_suexec_gidmin
with_suexec_logfile
with_suexec_syslog
with_suexec_safepath
with_suexec_umask
enable_suexec_capabilities
enable_v4_mapped
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
  esac

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: \`$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: \`$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -runstatedir | --runstatedir | --runstatedi | --runstated \
  | --runstate | --runstat | --runsta | --runst | --runs \
  | --run | --ru | --r)
    ac_prev=runstatedir ;;
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  | --run=* | --ru=* | --r=*)
    runstatedir=$ac_optarg ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: \`$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: \`$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error $? "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir runstatedir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures this package to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]
_ACEOF
fi

if test -n "$ac_init_help"; then

  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-layout=LAYOUT
  --enable-dtrace         Enable DTrace probes
  --enable-hook-probes    Enable APR hook probes
  --enable-exception-hook Enable fatal exception hook
  --enable-load-all-modules
                          Load all modules
  --enable-maintainer-mode
                          Turn on debugging and compile time warnings and load
                          all compiled modules
  --enable-debugger-mode  Turn on debugging and compile time warnings and turn
                          off optimization
  --enable-pie            Build httpd as a Position Independent Executable
  --enable-modules=MODULE-LIST
                          Space-separated list of modules to enable | "all" |
                          "most" | "few" | "none" | "reallyall"
  --enable-mods-shared=MODULE-LIST
                          Space-separated list of shared modules to enable |
                          "all" | "most" | "few" | "reallyall"
  --enable-mods-static=MODULE-LIST
                          Space-separated list of static modules to enable |
                          "all" | "most" | "few" | "reallyall"
  --disable-authn-file    file-based authentication control
  --enable-authn-dbm      DBM-based authentication control
  --enable-authn-anon     anonymous user authentication control
  --enable-authn-dbd      SQL-based authentication control
  --enable-authn-socache  Cached authentication control
  --disable-authn-core    core authentication module
  --disable-authz-host    host-based authorization control
  --disable-authz-groupfile
                          'require group' authorization control
  --disable-authz-user    'require user' authorization control
  --enable-authz-dbm      DBM-based authorization control
  --enable-authz-owner    'require file-owner' authorization control
  --enable-authz-dbd      SQL based authorization and Login/Session support
  --disable-authz-core    core authorization provider vector module
  --enable-authnz-ldap    LDAP based authentication
  --enable-authnz-fcgi    FastCGI authorizer-based authentication and
                          authorization
  --disable-access-compat mod_access compatibility
  --disable-auth-basic    basic authentication
  --enable-auth-form      form authentication
  --enable-auth-digest    RFC2617 Digest authentication
  --enable-allowmethods   restrict allowed HTTP methods
  --enable-isapi          isapi extension support
  --enable-file-cache     File cache
  --enable-cache          dynamic file caching. At least one storage
                          management module (e.g. mod_cache_disk) is also
                          necessary.
  --enable-cache-disk     disk caching module
  --enable-cache-socache  shared object caching module
  --enable-socache-shmcb  shmcb small object cache provider
  --enable-socache-dbm    dbm small object cache provider
  --enable-socache-memcache
                          memcache small object cache provider
  --enable-socache-redis  redis small object cache provider
  --enable-socache-dc     distcache small object cache provider
  --enable-so             DSO capability. This module will be automatically
                          enabled unless you build all modules statically.
  --enable-watchdog       Watchdog module
  --enable-macro          Define and use macros in configuration files
  --enable-dbd            Apache DBD Framework
  --enable-bucketeer      buckets manipulation filter. Useful only for
                          developers and testing purposes.
  --enable-dumpio         I/O dump filter
  --enable-echo           ECHO server
  --enable-example-hooks  Example hook callback handler module
  --enable-case-filter    Example uppercase conversion filter
  --enable-case-filter-in Example uppercase conversion input filter
  --enable-example-ipc    Example of shared memory and mutex usage
  --enable-buffer         Filter Buffering
  --enable-data           RFC2397 data encoder
  --enable-ratelimit      Output Bandwidth Limiting
  --disable-reqtimeout    Limit time waiting for request from client
  --enable-ext-filter     external filter module
  --enable-request        Request Body Filtering
  --enable-include        Server Side Includes
  --disable-filter        Smart Filtering
  --enable-reflector      Reflect request through the output filter stack
  --enable-substitute     response content rewrite-like filtering
  --enable-sed            filter request and/or response bodies through sed
  --disable-charset-lite  character set translation. Enabled by default only
                          on EBCDIC systems.
  --enable-charset-lite   character set translation. Enabled by default only
                          on EBCDIC systems.
  --enable-deflate        Deflate transfer encoding support
  --enable-xml2enc        i18n support for markup filters
  --enable-proxy-html     Fix HTML Links in a Reverse Proxy
  --enable-brotli         Brotli compression support
  --enable-http           HTTP protocol handling. The http module is a basic
                          one that enables the server to function as an HTTP
                          server. It is only useful to disable it if you want
                          to use another protocol module instead. Don't
                          disable this module unless you are really sure what
                          you are doing. Note: This module will always be
                          linked statically.
  --disable-mime          mapping of file-extension to MIME. Disabling this
                          module is normally not recommended.
  --enable-ldap           LDAP caching and connection pooling services
  --disable-log-config    logging configuration. You won't be able to log
                          requests to the server without this module.
  --enable-log-debug      configurable debug logging
  --enable-log-forensic   forensic logging
  --enable-logio          input and output logging
  --enable-lua            Apache Lua Framework
  --enable-luajit         Enable LuaJit Support
  --disable-env           clearing/setting of ENV vars
  --enable-mime-magic     automagically determining MIME type
  --enable-cern-meta      CERN-type meta files
  --enable-expires        Expires header control
  --disable-headers       HTTP header control
  --enable-ident          RFC 1413 identity check
  --enable-usertrack      user-session tracking
  --enable-unique-id      per-request unique ids
  --disable-setenvif      basing ENV vars on headers
  --disable-version       determining httpd version in config files
  --enable-remoteip       translate header contents to an apparent client
                          remote_ip
  --enable-proxy          Apache proxy module
  --enable-proxy-connect  Apache proxy CONNECT module. Requires
                          --enable-proxy.
  --enable-proxy-ftp      Apache proxy FTP module. Requires --enable-proxy.
  --enable-proxy-http     Apache proxy HTTP module. Requires --enable-proxy.
  --enable-proxy-fcgi     Apache proxy FastCGI module. Requires
                          --enable-proxy.
  --enable-proxy-scgi     Apache proxy SCGI module. Requires --enable-proxy.
  --enable-proxy-uwsgi    Apache proxy UWSGI module. Requires --enable-proxy.
  --enable-proxy-fdpass   Apache proxy to Unix Daemon Socket module. Requires
                          --enable-proxy.
  --enable-proxy-wstunnel Apache proxy Websocket Tunnel module. Requires
                          --enable-proxy.
  --enable-proxy-ajp      Apache proxy AJP module. Requires --enable-proxy.
  --enable-proxy-balancer Apache proxy BALANCER module. Requires
                          --enable-proxy.
  --enable-proxy-express  mass reverse-proxy module. Requires --enable-proxy.
  --enable-proxy-hcheck   reverse-proxy health-check module. Requires
                          --enable-proxy and --enable-watchdog.
  --enable-session        session module
  --enable-session-cookie session cookie module
  --enable-session-crypto session crypto module
  --enable-session-dbd    session dbd module
  --enable-slotmem-shm    slotmem provider that uses shared memory
  --enable-slotmem-plain  slotmem provider that uses plain memory
  --enable-ssl            SSL/TLS support (mod_ssl)
  --enable-ssl-staticlib-deps
                          link mod_ssl with dependencies of OpenSSL's static
                          libraries (as indicated by "pkg-config --static").
                          Must be specified in addition to --enable-ssl.
  --enable-optional-hook-export
                          example optional hook exporter
  --enable-optional-hook-import
                          example optional hook importer
  --enable-optional-fn-import
                          example optional function importer
  --enable-optional-fn-export
                          example optional function exporter
  --enable-dialup         rate limits static files to dialup modem speeds
  --enable-static-support Build a statically linked version of the support
                          binaries
  --enable-static-htpasswd
                          Build a statically linked version of htpasswd
  --enable-static-htdigest
                          Build a statically linked version of htdigest
  --enable-static-rotatelogs
                          Build a statically linked version of rotatelogs
  --enable-static-logresolve
                          Build a statically linked version of logresolve
  --enable-static-htdbm   Build a statically linked version of htdbm
  --enable-static-ab      Build a statically linked version of ab
  --enable-static-checkgid
                          Build a statically linked version of checkgid
  --enable-static-htcacheclean
                          Build a statically linked version of htcacheclean
  --enable-static-httxt2dbm
                          Build a statically linked version of httxt2dbm
  --enable-static-fcgistarter
                          Build a statically linked version of fcgistarter
  --enable-http2          HTTP/2 protocol handling in addition to HTTP
                          protocol handling. Implemented by mod_http2. This
                          module requires a libnghttp2 installation. See
                          --with-nghttp2 on how to manage non-standard
                          locations. This module is usually linked shared and
                          requires loading.
  --enable-nghttp2-staticlib-deps
                          link mod_http2 with dependencies of libnghttp2's
                          static libraries (as indicated by "pkg-config
                          --static"). Must be specified in addition to
                          --enable-http2.
  --enable-proxy-http2    HTTP/2 proxy module. This module requires a
                          libnghttp2 installation. See --with-nghttp2 on how
                          to manage non-standard locations. Also requires
                          --enable-proxy.
  --enable-md             Managed Domain handling
  --enable-jansson-staticlib-deps
                          link mod_md with dependencies of libjansson's static
                          libraries (as indicated by "pkg-config --static").
                          Must be specified in addition to --enable-md.
  --enable-curl-staticlib-deps
                          link mod_md with dependencies of libcurl's static
                          libraries (as indicated by "pkg-config --static").
                          Must be specified in addition to --enable-md.
  --enable-lbmethod-byrequests
                          Apache proxy Load balancing by request counting
  --enable-lbmethod-bytraffic
                          Apache proxy Load balancing by traffic counting
  --enable-lbmethod-bybusyness
                          Apache proxy Load balancing by busyness
  --enable-lbmethod-heartbeat
                          Apache proxy Load balancing from Heartbeats
  --enable-tls            TLS protocol handling using rustls. Implemented by
                          mod_tls. This module requires a librustls
                          installation. See --with-rustls on how to manage
                          non-standard locations. This module is usually
                          linked shared and requires loading.
  --enable-mpms-shared=MPM-LIST
                          Space-separated list of MPM modules to enable for
                          dynamic loading. MPM-LIST=list | "all"
  --enable-unixd          unix specific support
  --enable-privileges     Per-virtualhost Unix UserIDs and enhanced security
                          for Solaris
  --enable-systemd        Systemd support
  --enable-heartbeat      Generates Heartbeats
  --enable-heartmonitor   Collects Heartbeats
  --enable-dav            WebDAV protocol handling. --enable-dav also enables
                          mod_dav_fs
  --disable-status        process/thread monitoring
  --disable-autoindex     directory listing
  --enable-asis           as-is filetypes
  --enable-info           server information
  --enable-suexec         set uid and gid for spawned processes
  --enable-cgid           CGI scripts. Enabled by default with threaded MPMs
  --enable-cgi            CGI scripts. Enabled by default with non-threaded
                          MPMs
  --enable-dav-fs         DAV provider for the filesystem. --enable-dav also
                          enables mod_dav_fs.
  --enable-dav-lock       DAV provider for generic locking
  --enable-vhost-alias    mass virtual hosting module
  --enable-negotiation    content negotiation
  --disable-dir           directory request handling
  --enable-imagemap       server-side imagemaps
  --enable-actions        Action triggering on requests
  --enable-speling        correct common URL misspellings
  --enable-userdir        mapping of requests to user-specific directories
  --disable-alias         mapping of requests to different filesystem parts
  --enable-rewrite        rule based URL manipulation
  --enable-suexec-capabilities
                          Use Linux capability bits not setuid root suexec
  --enable-v4-mapped      Allow IPv6 sockets to handle IPv4 connections

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-included-apr     Use bundled copies of APR/APR-Util
  --with-apr=PATH         prefix for installed APR or the full path to
                             apr-config
  --with-apr-util=PATH    prefix for installed APU or the full path to
                             apu-config
  --with-pcre=PATH        Use external PCRE library
  --with-port=PORT        Port on which to listen (default is 80)
  --with-sslport=SSLPORT  Port on which to securelisten (default is 443)
  --with-distcache=PATH   Distcache installation directory
  --with-z=PATH           use a specific zlib library
  --with-libxml2=PATH     location for libxml2
  --with-brotli=PATH      Brotli installation directory
  --with-lua=PATH         Path to the Lua installation prefix
  --with-ssl=PATH         OpenSSL installation directory
  --with-nghttp2=PATH     nghttp2 installation directory
  --with-jansson=PATH     jansson installation directory
  --with-curl=PATH        curl installation directory
  --with-rustls=PATH      rustls installation directory
  --with-mpm=MPM          Choose the process model for Apache to use by
                          default. MPM={event|worker|prefork|winnt} This will
                          be statically linked as the only available MPM
                          unless --enable-mpms-shared is also specified.
  --with-module=module-type:module-file
                          Enable module-file in the modules/<module-type>
                          directory.
  --with-program-name     alternate executable name
  --with-suexec-bin       Path to suexec binary
  --with-suexec-caller    User allowed to call SuExec
  --with-suexec-userdir   User subdirectory
  --with-suexec-docroot   SuExec root directory
  --with-suexec-uidmin    Minimal allowed UID
  --with-suexec-gidmin    Minimal allowed GID
  --with-suexec-logfile   Set the logfile
  --with-suexec-syslog    Use syslog for suexec logging
  --with-suexec-safepath  Set the safepath
  --with-suexec-umask     umask for suexec'd process

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for configure.gnu first; this name is used for a wrapper for
    # Metaconfig's "Configure" on case-insensitive file systems.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
configure
generated by GNU Autoconf 2.71

Copyright (C) 2021 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.beam
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext
then :
  ac_retval=0
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }
then :
  ac_retval=0
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$3=yes"
else $as_nop
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 test -x conftest$ac_exeext
       }
then :
  ac_retval=0
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
   which can conflict with char $2 (); below.  */

#include <limits.h>
#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main (void)
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "$3=yes"
else $as_nop
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func

# ac_fn_c_try_run LINENO
# ----------------------
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
# executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
then :
  ac_retval=0
else $as_nop
  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
       printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
# ------------------------------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
ac_fn_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
printf %s "checking whether $as_decl_name is declared... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  eval ac_save_FLAGS=\$$6
  as_fn_append $6 " $5"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
#ifndef $as_decl_name
#ifdef __cplusplus
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
#endif
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$3=yes"
else $as_nop
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  eval $6=\$ac_save_FLAGS

fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_check_decl
ac_configure_args_raw=
for ac_arg
do
  case $ac_arg in
  *\'*)
    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  as_fn_append ac_configure_args_raw " '$ac_arg'"
done

case $ac_configure_args_raw in
  *$as_nl*)
    ac_safe_unquote= ;;
  *)
    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
    ac_unsafe_a="$ac_unsafe_z#~"
    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
esac

cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ $0$ac_configure_args_raw

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    printf "%s\n" "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Sanitize IFS.
  IFS=" ""	$as_nl"
  # Save into config.log some information that might help in debugging.
  {
    echo

    printf "%s\n" "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    printf "%s\n" "## ----------------- ##
## Output variables. ##
## ----------------- ##"
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      printf "%s\n" "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      printf "%s\n" "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	printf "%s\n" "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      printf "%s\n" "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      printf "%s\n" "$as_me: caught signal $ac_signal"
    printf "%s\n" "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

printf "%s\n" "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
if test -n "$CONFIG_SITE"; then
  ac_site_files="$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
else
  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi

for ac_site_file in $ac_site_files
do
  case $ac_site_file in #(
  */*) :
     ;; #(
  *) :
    ac_site_file=./$ac_site_file ;;
esac
  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Test code for whether the C compiler supports C89 (global declarations)
ac_c_conftest_c89_globals='
/* Does the compiler advertise C89 conformance?
   Do not test the value of __STDC__, because some compilers set it to 0
   while being otherwise adequately conformant. */
#if !defined __STDC__
# error "Compiler does not advertise C89 conformance"
#endif

#include <stddef.h>
#include <stdarg.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
struct buf { int x; };
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not \xHH hex character constants.
   These do not provoke an error unfortunately, instead are silently treated
   as an "x".  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   array size at least.  It is necessary to write \x00 == 0 to get something
   that is true only with -std.  */
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) '\''x'\''
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
               int, int);'

# Test code for whether the C compiler supports C89 (body of main).
ac_c_conftest_c89_main='
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
'

# Test code for whether the C compiler supports C99 (global declarations)
ac_c_conftest_c99_globals='
// Does the compiler advertise C99 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
# error "Compiler does not advertise C99 conformance"
#endif

#include <stdbool.h>
extern int puts (const char *);
extern int printf (const char *, ...);
extern int dprintf (int, const char *, ...);
extern void *malloc (size_t);

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
// dprintf is used instead of fprintf to avoid needing to declare
// FILE and stderr.
#define debug(...) dprintf (2, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  #error "your preprocessor is broken"
#endif
#if BIG_OK
#else
  #error "your preprocessor is broken"
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static bool
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str = "";
  int number = 0;
  float fnumber = 0;

  while (*format)
    {
      switch (*format++)
	{
	case '\''s'\'': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case '\''d'\'': // int
	  number = va_arg (args_copy, int);
	  break;
	case '\''f'\'': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);

  return *str && number && fnumber;
}
'

# Test code for whether the C compiler supports C99 (body of main).
ac_c_conftest_c99_main='
  // Check bool.
  _Bool success = false;
  success |= (argc != 0);

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[0] = argv[0][0];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
	 || dynamic_array[ni.number - 1] != 543);
'

# Test code for whether the C compiler supports C11 (global declarations)
ac_c_conftest_c11_globals='
// Does the compiler advertise C11 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
# error "Compiler does not advertise C11 conformance"
#endif

// Check _Alignas.
char _Alignas (double) aligned_as_double;
char _Alignas (0) no_special_alignment;
extern char aligned_as_int;
char _Alignas (0) _Alignas (int) aligned_as_int;

// Check _Alignof.
enum
{
  int_alignment = _Alignof (int),
  int_array_alignment = _Alignof (int[100]),
  char_alignment = _Alignof (char)
};
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");

// Check _Noreturn.
int _Noreturn does_not_return (void) { for (;;) continue; }

// Check _Static_assert.
struct test_static_assert
{
  int x;
  _Static_assert (sizeof (int) <= sizeof (long int),
                  "_Static_assert does not work in struct");
  long int y;
};

// Check UTF-8 literals.
#define u8 syntax error!
char const utf8_literal[] = u8"happens to be ASCII" "another string";

// Check duplicate typedefs.
typedef long *long_ptr;
typedef long int *long_ptr;
typedef long_ptr long_ptr;

// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
struct anonymous
{
  union {
    struct { int i; int j; };
    struct { int k; long int l; } w;
  };
  int m;
} v1;
'

# Test code for whether the C compiler supports C11 (body of main).
ac_c_conftest_c11_main='
  _Static_assert ((offsetof (struct anonymous, i)
		   == offsetof (struct anonymous, w.k)),
		  "Anonymous union alignment botch");
  v1.i = 2;
  v1.w.k = 5;
  ok |= v1.i != 5;
'

# Test code for whether the C compiler supports C11 (complete).
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}
${ac_c_conftest_c11_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  ${ac_c_conftest_c11_main}
  return ok;
}
"

# Test code for whether the C compiler supports C99 (complete).
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  return ok;
}
"

# Test code for whether the C compiler supports C89 (complete).
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  return ok;
}
"

as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"

# Auxiliary files required by this configure script.
ac_aux_files="config.guess config.sub"

# Locations in which to look for auxiliary files.
ac_aux_dir_candidates="${srcdir}/build"

# Search for a directory containing all of the required auxiliary files,
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
# If we don't find one directory that contains all the files we need,
# we report the set of missing files from the *first* directory in
# $ac_aux_dir_candidates and give up.
ac_missing_aux_files=""
ac_first_candidate=:
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in $ac_aux_dir_candidates
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  as_found=:

  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
  ac_aux_dir_found=yes
  ac_install_sh=
  for ac_aux in $ac_aux_files
  do
    # As a special case, if "install-sh" is required, that requirement
    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
    # and $ac_install_sh is set appropriately for whichever one is found.
    if test x"$ac_aux" = x"install-sh"
    then
      if test -f "${as_dir}install-sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
        ac_install_sh="${as_dir}install-sh -c"
      elif test -f "${as_dir}install.sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
        ac_install_sh="${as_dir}install.sh -c"
      elif test -f "${as_dir}shtool"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
        ac_install_sh="${as_dir}shtool install -c"
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
        else
          break
        fi
      fi
    else
      if test -f "${as_dir}${ac_aux}"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
        else
          break
        fi
      fi
    fi
  done
  if test "$ac_aux_dir_found" = yes; then
    ac_aux_dir="$as_dir"
    break
  fi
  ac_first_candidate=false

  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else $as_nop
  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
fi


# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
if test -f "${ac_aux_dir}config.guess"; then
  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
fi
if test -f "${ac_aux_dir}config.sub"; then
  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
fi
if test -f "$ac_aux_dir/configure"; then
  ac_configure="$SHELL ${ac_aux_dir}configure"
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
	    and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_config_headers="$ac_config_headers include/ap_config_auto.h"



abs_srcdir=`(cd $srcdir && pwd)`
abs_builddir=`pwd`

HTTPD_VERSION=`$abs_srcdir/build/get-version.sh all $abs_srcdir/include/ap_release.h AP_SERVER`
HTTPD_MMN=`$abs_srcdir/build/get-version.sh mmn $abs_srcdir/include/ap_mmn.h MODULE_MAGIC_NUMBER`



































































































































# Check whether --enable-layout was given.
if test ${enable_layout+y}
then :
  enableval=$enable_layout;
  LAYOUT=$enableval

fi


if test -z "$LAYOUT"; then
  LAYOUT="Apache"
fi

  if test ! -f $srcdir/config.layout; then
    echo "** Error: Layout file $srcdir/config.layout not found"
    echo "** Error: Cannot use undefined layout '$LAYOUT'"
    exit 1
  fi
  # Catch layout names including a slash which will otherwise
  # confuse the heck out of the sed script.
  case $LAYOUT in
  */*)
    echo "** Error: $LAYOUT is not a valid layout name"
    exit 1 ;;
  esac
  pldconf=./config.pld

  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
      -e "s/^[ 	]*//g" \
      -e "s/:[ 	]*/=\'/g" \
      -e "s/[ 	]*$/'/g" \
      $srcdir/config.layout > $pldconf
  layout_name=$LAYOUT
  if test ! -s $pldconf; then
    echo "** Error: unable to find layout $layout_name"
    exit 1
  fi
  . $pldconf
  rm $pldconf
  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
             sysconfdir datadir includedir localstatedir runtimedir \
             logfiledir libdir installbuilddir libsuffix errordir iconsdir htdocsdir cgidir; do
    eval "val=\"\$$var\""
    case $val in
      *+)
        val=`echo $val | sed -e 's;\+$;;'`
        eval "$var=\"\$val\""
        autosuffix=yes
        ;;
      *)
        autosuffix=no
        ;;
    esac
    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
    if test "$autosuffix" = "yes"; then
      if echo $val | grep apache >/dev/null; then
        addtarget=no
      else
        addtarget=yes
      fi
      if test "$addtarget" = "yes"; then
        val="$val/apache2"
      fi
    fi
    eval "$var='$val'"
  done



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
printf %s "checking for chosen layout... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
printf "%s\n" "$layout_name" >&6; }



ac_prev=
# Retrieve the command-line arguments.  The eval is needed because
# the arguments are quoted to preserve accuracy.
eval "set x $ac_configure_args"
shift
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`

  case $ac_option in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir="$ac_optarg" ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir="$ac_optarg" ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir="$ac_optarg" ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir="$ac_optarg" ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir="$ac_optarg" ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir="$ac_optarg" ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir="$ac_optarg" ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir="$ac_optarg" ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir="$ac_optarg" ;;

  esac
done

# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
  esac
done






ap_last=
ap_cur="$exec_prefix"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_exec_prefix="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_exec_prefix"



ap_stripped=`echo $exp_exec_prefix | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_exec_prefix" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_exec_prefix="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_exec_prefix="$exp_exec_prefix"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_exec_prefix"





ap_last=
ap_cur="$bindir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_bindir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_bindir"



ap_stripped=`echo $exp_bindir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_bindir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_bindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_bindir="$exp_bindir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_bindir"





ap_last=
ap_cur="$sbindir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_sbindir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sbindir"



ap_stripped=`echo $exp_sbindir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_sbindir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_sbindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_sbindir="$exp_sbindir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sbindir"





ap_last=
ap_cur="$libdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_libdir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libdir"



ap_stripped=`echo $exp_libdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_libdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_libdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_libdir="$exp_libdir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libdir"





ap_last=
ap_cur="$libexecdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_libexecdir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libexecdir"



ap_stripped=`echo $exp_libexecdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_libexecdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_libexecdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_libexecdir="$exp_libexecdir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libexecdir"





ap_last=
ap_cur="$mandir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_mandir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_mandir"



ap_stripped=`echo $exp_mandir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_mandir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_mandir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_mandir="$exp_mandir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_mandir"





ap_last=
ap_cur="$sysconfdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_sysconfdir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sysconfdir"



ap_stripped=`echo $exp_sysconfdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_sysconfdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_sysconfdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_sysconfdir="$exp_sysconfdir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sysconfdir"





ap_last=
ap_cur="$datadir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_datadir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_datadir"



ap_stripped=`echo $exp_datadir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_datadir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_datadir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_datadir="$exp_datadir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_datadir"





ap_last=
ap_cur="$installbuilddir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_installbuilddir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_installbuilddir"



ap_stripped=`echo $exp_installbuilddir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_installbuilddir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_installbuilddir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_installbuilddir="$exp_installbuilddir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_installbuilddir"





ap_last=
ap_cur="$errordir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_errordir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_errordir"



ap_stripped=`echo $exp_errordir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_errordir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_errordir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_errordir="$exp_errordir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_errordir"





ap_last=
ap_cur="$iconsdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_iconsdir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_iconsdir"



ap_stripped=`echo $exp_iconsdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_iconsdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_iconsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_iconsdir="$exp_iconsdir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_iconsdir"





ap_last=
ap_cur="$htdocsdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_htdocsdir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_htdocsdir"



ap_stripped=`echo $exp_htdocsdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_htdocsdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_htdocsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_htdocsdir="$exp_htdocsdir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_htdocsdir"





ap_last=
ap_cur="$manualdir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_manualdir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_manualdir"



ap_stripped=`echo $exp_manualdir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_manualdir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_manualdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_manualdir="$exp_manualdir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_manualdir"





ap_last=
ap_cur="$cgidir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_cgidir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_cgidir"



ap_stripped=`echo $exp_cgidir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_cgidir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_cgidir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_cgidir="$exp_cgidir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_cgidir"





ap_last=
ap_cur="$includedir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_includedir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_includedir"



ap_stripped=`echo $exp_includedir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_includedir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_includedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_includedir="$exp_includedir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_includedir"





ap_last=
ap_cur="$localstatedir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_localstatedir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_localstatedir"



ap_stripped=`echo $exp_localstatedir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_localstatedir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_localstatedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_localstatedir="$exp_localstatedir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_localstatedir"





ap_last=
ap_cur="$runtimedir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_runtimedir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_runtimedir"



ap_stripped=`echo $exp_runtimedir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_runtimedir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_runtimedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_runtimedir="$exp_runtimedir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_runtimedir"





ap_last=
ap_cur="$logfiledir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_logfiledir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_logfiledir"



ap_stripped=`echo $exp_logfiledir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_logfiledir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_logfiledir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_logfiledir="$exp_logfiledir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_logfiledir"





ap_last=
ap_cur="$proxycachedir"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
exp_proxycachedir="${ap_cur}"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_proxycachedir"



ap_stripped=`echo $exp_proxycachedir | sed -e "s#^${prefix}##"`
# check if the stripping was successful
if test "x$exp_proxycachedir" != "x${ap_stripped}"; then
    # it was, so strip of any leading slashes
    rel_proxycachedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
else
    # it wasn't so return the original
    rel_proxycachedir="$exp_proxycachedir"
fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_proxycachedir"






  apr_ste_save_CPPFLAGS="$CPPFLAGS"


  apr_ste_save_CFLAGS="$CFLAGS"


  apr_ste_save_CXXFLAGS="$CXXFLAGS"


  apr_ste_save_LDFLAGS="$LDFLAGS"


  apr_ste_save_LIBS="$LIBS"


  apr_ste_save_INCLUDES="$INCLUDES"



  rm -f config.nice
  cat >config.nice<<EOF
#! /bin/sh
#
# Created by configure

EOF
  if test -n "$CC"; then
    echo "CC=\"$CC\"; export CC" >> config.nice
  fi
  if test -n "$CFLAGS"; then
    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
  fi
  if test -n "$CPPFLAGS"; then
    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
  fi
  if test -n "$LDFLAGS"; then
    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
  fi
  if test -n "$LTFLAGS"; then
    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
  fi
  if test -n "$LIBS"; then
    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
  fi
  if test -n "$INCLUDES"; then
    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
  fi
  if test -n "$NOTEST_CFLAGS"; then
    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
  fi
  if test -n "$NOTEST_CPPFLAGS"; then
    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
  fi
  if test -n "$NOTEST_LDFLAGS"; then
    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
  fi
  if test -n "$NOTEST_LIBS"; then
    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
  fi

  # Retrieve command-line arguments.
  eval "set x $0 $ac_configure_args"
  shift

  for arg
  do

ap_last=
ap_cur="$arg"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
arg="${ap_cur}"

    echo "\"$arg\" \\" >> config.nice
  done
  echo '"$@"' >> config.nice
  chmod +x config.nice


nl='
'

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
printf %s "checking for working mkdir -p... " >&6; }
if test ${ac_cv_mkdir_p+y}
then :
  printf %s "(cached) " >&6
else $as_nop

    test -d conftestdir && rm -rf conftestdir
    mkdir -p conftestdir/somedir >/dev/null 2>&1
    if test -d conftestdir/somedir; then
      ac_cv_mkdir_p=yes
    else
      ac_cv_mkdir_p=no
    fi
    rm -rf conftestdir

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
printf "%s\n" "$ac_cv_mkdir_p" >&6; }
  if test "$ac_cv_mkdir_p" = "yes"; then
      mkdir_p="mkdir -p"
  else
      mkdir_p="$top_srcdir/build/mkdir.sh"
  fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; }
if test ${ac_cv_path_GREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in grep ggrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_GREP" || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EGREP"








  # Make sure we can run config.sub.
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
printf %s "checking build system type... " >&6; }
if test ${ac_cv_build+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
printf "%s\n" "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
printf %s "checking host system type... " >&6; }
if test ${ac_cv_host+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
printf "%s\n" "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
printf %s "checking target system type... " >&6; }
if test ${ac_cv_target+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "x$target_alias" = x; then
  ac_cv_target=$ac_cv_host
else
  ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
printf "%s\n" "$ac_cv_target" >&6; }
case $ac_cv_target in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
esac
target=$ac_cv_target
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_target
shift
target_cpu=$1
target_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
target_os=$*
IFS=$ac_save_IFS
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac


# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-


orig_prefix="$prefix"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring Apache Portable Runtime library..." >&5
printf "%s\n" "$as_me: Configuring Apache Portable Runtime library..." >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}


# Check whether --with-included-apr was given.
if test ${with_included_apr+y}
then :
  withval=$with_included_apr;
fi


if test "x$with_included_apr" = "xyes"; then
  apr_found=reconfig
  if test ! -d srclib/apr && test ! -d $srcdir/srclib/apr; then
    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
  fi
else

  apr_found="no"

  if test "$target_os" = "os2-emx"; then
    # Scripts don't pass test -x on OS/2
    TEST_X="test -f"
  else
    TEST_X="test -x"
  fi

  acceptable_majors="1 2"

  apr_temp_acceptable_apr_config=""
  for apr_temp_major in $acceptable_majors
  do
    case $apr_temp_major in
      0)
      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
      ;;
      *)
      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
      ;;
    esac
  done

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
printf %s "checking for APR... " >&6; }

# Check whether --with-apr was given.
if test ${with_apr+y}
then :
  withval=$with_apr;
    if test "$withval" = "no" || test "$withval" = "yes"; then
      as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
    fi

    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
    do
      for lookdir in "$withval/bin" "$withval"
      do
        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
          apr_config="$lookdir/$apr_temp_apr_config_file"

          apr_acceptable="yes"

    version=`$apr_config --version`
    case x${version} in
    x1.[0-3].*)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
printf "%s\n" "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
      apr_acceptable=no
      ;;
    esac
    unset version

          if test "$apr_acceptable" != "yes"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found APR in $apr_config, but we think it is considered unacceptable" >&5
printf "%s\n" "$as_me: WARNING: Found APR in $apr_config, but we think it is considered unacceptable" >&2;}
            continue
          fi
          apr_found="yes"
          break 2
        fi
      done
    done

    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
      apr_config="$withval"

          apr_acceptable="yes"

    version=`$apr_config --version`
    case x${version} in
    x1.[0-3].*)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
printf "%s\n" "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
      apr_acceptable=no
      ;;
    esac
    unset version

          if test "$apr_acceptable" = "yes"; then
                apr_found="yes"
          fi
    fi

            if test "$apr_found" != "yes"; then
      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
    fi

else $as_nop

        if test -n "1" && test "1" = "1"; then
      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
      do
        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
          apr_config="$apr_temp_apr_config_file"

          apr_acceptable="yes"

    version=`$apr_config --version`
    case x${version} in
    x1.[0-3].*)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
printf "%s\n" "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
      apr_acceptable=no
      ;;
    esac
    unset version

          if test "$apr_acceptable" != "yes"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped APR at $apr_config, version not acceptable" >&5
printf "%s\n" "$as_me: WARNING: skipped APR at $apr_config, version not acceptable" >&2;}
            continue
          fi
          apr_found="yes"
          break
        else
                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
              apr_config="$lookdir/bin/$apr_temp_apr_config_file"

              apr_acceptable="yes"

    version=`$apr_config --version`
    case x${version} in
    x1.[0-3].*)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: APR version 1.4.0 or later is required, found $version" >&5
printf "%s\n" "$as_me: WARNING: APR version 1.4.0 or later is required, found $version" >&2;}
      apr_acceptable=no
      ;;
    esac
    unset version

              if test "$apr_acceptable" != "yes"; then
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped APR at $apr_config, version not acceptable" >&5
printf "%s\n" "$as_me: WARNING: skipped APR at $apr_config, version not acceptable" >&2;}
                continue
              fi
              apr_found="yes"
              break 2
            fi
          done
        fi
      done
    fi
        if test "$apr_found" = "no" && test -d ""$srcdir/srclib/apr""; then
      apr_temp_abs_srcdir="`cd \""$srcdir/srclib/apr"\" && pwd`"
      apr_found="reconfig"
      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/srclib/apr"/include/apr_version.h\"`"
      case $apr_bundled_major in
        "")
          as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
        ;;
        0)
          apr_temp_apr_config_file="apr-config"
        ;;
        *)
          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
        ;;
      esac
      if test -n ""./srclib/apr""; then
        apr_config=""./srclib/apr"/$apr_temp_apr_config_file"
      else
        apr_config=""$srcdir/srclib/apr"/$apr_temp_apr_config_file"
      fi
    fi

fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
printf "%s\n" "$apr_found" >&6; }

fi

if test "$apr_found" = "no"; then
  as_fn_error $? "APR not found.  Please read the documentation." "$LINENO" 5
fi

if test "$apr_found" = "reconfig"; then

  # save our work to this point; this allows the sub-package to use it
  cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

  echo "configuring package in srclib/apr now"
  ac_popdir=`pwd`
  apr_config_subdirs="srclib/apr"
  test -d srclib/apr || $mkdir_p srclib/apr
  ac_abs_srcdir=`(cd $srcdir/srclib/apr && pwd)`
  cd srclib/apr

      # A "../" for each directory in /$config_subdirs.
      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`

  # Make the cache file pathname absolute for the subdirs
  # required to correctly handle subdirs that might actually
  # be symlinks
  case "$cache_file" in
  /*) # already absolute
    ac_sub_cache_file=$cache_file ;;
  *)  # Was relative path.
    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
  esac


  apr_configure_args=
  apr_sep=
  for apr_configure_arg in $ac_configure_args
  do
    case "$apr_configure_arg" in
      --enable-layout=*|\'--enable-layout=*)
        continue ;;
    esac
    apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
    apr_sep=" "
  done


    test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"

    apr_configure_args="--disable-option-checking $apr_configure_args"

              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
  then :
    echo "srclib/apr configured properly"
  else
    echo "configure failed for srclib/apr"
    exit 1
  fi

  cd $ac_popdir

  # grab any updates from the sub-package
  if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi


    AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS"
  AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr"

    for majorver in 1 2; do
    test_apr_config="./srclib/apr/apr-${majorver}-config"
    if test -f "$test_apr_config"; then
      apr_config="$test_apr_config"
    fi
  done
fi


  if test -z "$CC"; then
    test "x$silent" != "xyes" && echo "  setting CC to \"`$apr_config --cc`\""
    CC="`$apr_config --cc`"
  fi


  if test -z "$CPP"; then
    test "x$silent" != "xyes" && echo "  setting CPP to \"`$apr_config --cpp`\""
    CPP="`$apr_config --cpp`"
  fi


  if test "x$CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"`$apr_config --cflags`\""
    CFLAGS="`$apr_config --cflags`"
  else
    apr_addto_bugger="`$apr_config --cflags`"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
        CFLAGS="$CFLAGS $i"
      fi
    done
  fi


  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"`$apr_config --cppflags`\""
    CPPFLAGS="`$apr_config --cppflags`"
  else
    apr_addto_bugger="`$apr_config --cppflags`"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi

INTERNAL_CPPFLAGS=""

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apr_config --ldflags`\""
    LDFLAGS="`$apr_config --ldflags`"
  else
    apr_addto_bugger="`$apr_config --ldflags`"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi

SHLIBPATH_VAR=`$apr_config --shlib-path-var`
APR_BINDIR=`$apr_config --bindir`
APR_INCLUDEDIR=`$apr_config --includedir`
APR_INCLUDES=`$apr_config --includes`
APR_VERSION=`$apr_config --version`
apr_major_version=`echo ${APR_VERSION} | sed 's,\..*,,'`
APR_CONFIG="$APR_BINDIR/apr-${apr_major_version}-config"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring Apache Portable Runtime Utility library..." >&5
printf "%s\n" "$as_me: Configuring Apache Portable Runtime Utility library..." >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}

if test "x${apr_major_version}" = "x2"; then
  apu_found=obsolete
elif test "x$with_included_apr" = "xyes"; then
  apu_found=reconfig
  if test ! -d srclib/apr-util && test ! -d $srcdir/srclib/apr-util; then
    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
  fi
else


  apu_found="no"

  if test "$target_os" = "os2-emx"; then
    # Scripts don't pass test -x on OS/2
    TEST_X="test -f"
  else
    TEST_X="test -x"
  fi

  acceptable_majors="${apr_major_version}"

  apu_temp_acceptable_apu_config=""
  for apu_temp_major in $acceptable_majors
  do
    case $apu_temp_major in
      0)
      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
      ;;
      *)
      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
      ;;
    esac
  done

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
printf %s "checking for APR-util... " >&6; }

# Check whether --with-apr-util was given.
if test ${with_apr_util+y}
then :
  withval=$with_apr_util;
    if test "$withval" = "no" || test "$withval" = "yes"; then
      as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
    fi

    for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
    do
      for lookdir in "$withval/bin" "$withval"
      do
        if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
          apu_config="$lookdir/$apu_temp_apu_config_file"

          apu_found="yes"
          break 2
        fi
      done
    done

    if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
      apu_config="$withval"
      apu_found="yes"
    fi

            if test "$apu_found" != "yes"; then
      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
    fi

else $as_nop

    if test -n "1" && test "1" = "1"; then
      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
      do
        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
          apu_config="$apu_temp_apu_config_file"

          apu_found="yes"
          break
        else
                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
              apu_config="$lookdir/bin/$apu_temp_apu_config_file"

              apu_found="yes"
              break 2
            fi
          done
        fi
      done
    fi
        if test "$apu_found" = "no" && test -d ""$srcdir/srclib/apr-util""; then
      apu_temp_abs_srcdir="`cd \""$srcdir/srclib/apr-util"\" && pwd`"
      apu_found="reconfig"
      apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/srclib/apr-util"/include/apu_version.h\"`"
      case $apu_bundled_major in
        "")
          as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
        ;;
        0)
          apu_temp_apu_config_file="apu-config"
        ;;
        *)
          apu_temp_apu_config_file="apu-$apu_bundled_major-config"
        ;;
      esac
      if test -n ""./srclib/apr-util""; then
        apu_config=""./srclib/apr-util"/$apu_temp_apu_config_file"
      else
        apu_config=""$srcdir/srclib/apr-util"/$apu_temp_apu_config_file"
      fi
    fi

fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
printf "%s\n" "$apu_found" >&6; }


fi

if test "$apu_found" = "no"; then
  as_fn_error $? "APR-util not found.  Please read the documentation." "$LINENO" 5
fi

# Catch some misconfigurations:
case ${apr_found}.${apu_found} in
reconfig.yes)
  as_fn_error $? "Cannot use an external APR-util with the bundled APR" "$LINENO" 5
  ;;
yes.reconfig)
  as_fn_error $? "Cannot use an external APR with the bundled APR-util" "$LINENO" 5
  ;;
esac

if test "$apu_found" = "reconfig"; then

  # save our work to this point; this allows the sub-package to use it
  cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

  echo "configuring package in srclib/apr-util now"
  ac_popdir=`pwd`
  apr_config_subdirs="srclib/apr-util"
  test -d srclib/apr-util || $mkdir_p srclib/apr-util
  ac_abs_srcdir=`(cd $srcdir/srclib/apr-util && pwd)`
  cd srclib/apr-util

      # A "../" for each directory in /$config_subdirs.
      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`

  # Make the cache file pathname absolute for the subdirs
  # required to correctly handle subdirs that might actually
  # be symlinks
  case "$cache_file" in
  /*) # already absolute
    ac_sub_cache_file=$cache_file ;;
  *)  # Was relative path.
    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
  esac


  apr_configure_args=
  apr_sep=
  for apr_configure_arg in $ac_configure_args
  do
    case "$apr_configure_arg" in
      --enable-layout=*|\'--enable-layout=*)
        continue ;;
    esac
    apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
    apr_sep=" "
  done


    test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"

    apr_configure_args="--disable-option-checking $apr_configure_args"

              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
  then :
    echo "srclib/apr-util configured properly"
  else
    echo "configure failed for srclib/apr-util"
    exit 1
  fi

  cd $ac_popdir

  # grab any updates from the sub-package
  if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi


    AP_BUILD_SRCLIB_DIRS="$AP_BUILD_SRCLIB_DIRS apr-util"
  AP_CLEAN_SRCLIB_DIRS="apr-util $AP_CLEAN_SRCLIB_DIRS"
    apu_config="./srclib/apr-util/apu-${apr_major_version}-config"
fi

if test "$apu_found" = "obsolete"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: APR-util obsoleted, woohoo" >&5
printf "%s\n" "$as_me: APR-util obsoleted, woohoo" >&6;}
else

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apu_config --ldflags`\""
    LDFLAGS="`$apu_config --ldflags`"
  else
    apr_addto_bugger="`$apu_config --ldflags`"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi

  APU_BINDIR=`$apu_config --bindir`
  APU_INCLUDEDIR=`$apu_config --includedir`
  APU_INCLUDES=`$apu_config --includes`
  APU_VERSION=`$apu_config --version`
  APU_CONFIG="$APU_BINDIR/apu-`echo ${APU_VERSION} | sed 's,\..*,,'`-config"
fi










ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
set dummy ${ac_tool_prefix}clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "clang", so it can be a program name with args.
set dummy clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

fi


test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion -version; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
printf %s "checking whether the C compiler works... " >&6; }
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else $as_nop
  ac_file=''
fi
if test -z "$ac_file"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
printf %s "checking for C compiler default output file name... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
printf "%s\n" "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
printf %s "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else $as_nop
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
printf "%s\n" "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main (void)
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
printf %s "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
printf "%s\n" "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
printf %s "checking for suffix of object files... " >&6; }
if test ${ac_cv_objext+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
printf "%s\n" "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
printf %s "checking whether the compiler supports GNU C... " >&6; }
if test ${ac_cv_c_compiler_gnu+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_compiler_gnu=yes
else $as_nop
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+y}
ac_save_CFLAGS=$CFLAGS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
printf %s "checking whether $CC accepts -g... " >&6; }
if test ${ac_cv_prog_cc_g+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_g=yes
else $as_nop
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else $as_nop
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
if test $ac_test_CFLAGS; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
ac_prog_cc_stdc=no
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
printf %s "checking for $CC option to enable C11 features... " >&6; }
if test ${ac_cv_prog_cc_c11+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c11=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c11_program
_ACEOF
for ac_arg in '' -std=gnu11
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c11=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c11" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi

if test "x$ac_cv_prog_cc_c11" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c11" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
     CC="$CC $ac_cv_prog_cc_c11"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  ac_prog_cc_stdc=c11
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
printf %s "checking for $CC option to enable C99 features... " >&6; }
if test ${ac_cv_prog_cc_c99+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c99_program
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi

if test "x$ac_cv_prog_cc_c99" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c99" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
     CC="$CC $ac_cv_prog_cc_c99"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  ac_prog_cc_stdc=c99
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
printf %s "checking for $CC option to enable C89 features... " >&6; }
if test ${ac_cv_prog_cc_c89+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c89_program
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi

if test "x$ac_cv_prog_cc_c89" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c89" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
     CC="$CC $ac_cv_prog_cc_c89"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  ac_prog_cc_stdc=c89
fi
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
printf %s "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test ${ac_cv_prog_CPP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
      # Double quotes because $CC needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else $as_nop
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else $as_nop
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else $as_nop
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else $as_nop
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :

else $as_nop
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




if test "x${cache_file}" = "x/dev/null"; then
  # Likewise, ensure that CC and CPP are passed through to the pcre
  # configure script iff caching is disabled (the autoconf 2.5x default).
  export CC; export CPP
fi


# Check whether --with-pcre was given.
if test ${with_pcre+y}
then :
  withval=$with_pcre;
fi


# Extract the first word of "pcre-config", so it can be a program name with args.
set dummy pcre-config; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PCRE_CONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $PCRE_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PCRE_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="false"
  ;;
esac
fi
PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
if test -n "$PCRE_CONFIG"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
printf "%s\n" "$PCRE_CONFIG" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


if test -d "$with_pcre" && test -x "$with_pcre/bin/pcre-config"; then
   PCRE_CONFIG=$with_pcre/bin/pcre-config
elif test -x "$with_pcre"; then
   PCRE_CONFIG=$with_pcre
fi

if test "$PCRE_CONFIG" != "false"; then
  if $PCRE_CONFIG --version >/dev/null 2>&1; then :; else
    as_fn_error $? "Did not find pcre-config script at $PCRE_CONFIG" "$LINENO" 5
  fi
  case `$PCRE_CONFIG --version` in
  [1-5].*)
    as_fn_error $? "Need at least pcre version 6.0" "$LINENO" 5
    ;;
  esac
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using external PCRE library from $PCRE_CONFIG" >&5
printf "%s\n" "$as_me: Using external PCRE library from $PCRE_CONFIG" >&6;}

  if test "x$PCRE_INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting PCRE_INCLUDES to \"`$PCRE_CONFIG --cflags`\""
    PCRE_INCLUDES="`$PCRE_CONFIG --cflags`"
  else
    apr_addto_bugger="`$PCRE_CONFIG --cflags`"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $PCRE_INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to PCRE_INCLUDES"
        PCRE_INCLUDES="$PCRE_INCLUDES $i"
      fi
    done
  fi


  if test "x$PCRE_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting PCRE_LIBS to \"`$PCRE_CONFIG --libs`\""
    PCRE_LIBS="`$PCRE_CONFIG --libs`"
  else
    apr_addto_bugger="`$PCRE_CONFIG --libs`"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $PCRE_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to PCRE_LIBS"
        PCRE_LIBS="$PCRE_LIBS $i"
      fi
    done
  fi

else
  as_fn_error $? "pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/" "$LINENO" 5
fi

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PCRE_LIBS"



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring Apache httpd..." >&5
printf "%s\n" "$as_me: Configuring Apache httpd..." >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I.\""
    INCLUDES="-I."
  else
    apr_addto_bugger="-I."
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi


if test "$abs_builddir" != "$abs_srcdir"; then

  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_builddir)/include\""
    INCLUDES="-I\$(top_builddir)/include"
  else
    apr_addto_bugger="-I\$(top_builddir)/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi

fi


  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/include\""
    INCLUDES="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/include"
  else
    apr_addto_bugger="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi


# apr/apr-util --includes may pick up system paths for dependent
# libraries, so ensure these are later in INCLUDES than local source
# directories.

  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$APR_INCLUDES\""
    INCLUDES="$APR_INCLUDES"
  else
    apr_addto_bugger="$APR_INCLUDES"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi


  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$APU_INCLUDES\""
    INCLUDES="$APU_INCLUDES"
  else
    apr_addto_bugger="$APU_INCLUDES"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$PCRE_INCLUDES\""
    INCLUDES="$PCRE_INCLUDES"
  else
    apr_addto_bugger="$PCRE_INCLUDES"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Applying OS-specific hints for httpd..." >&5
printf "%s\n" "$as_me: Applying OS-specific hints for httpd..." >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}

case $host in
  *os2*)
      # Use a custom made libtool replacement
      echo "using aplibtool"
      LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
      SH_LIBTOOL="$LIBTOOL --shared --export-all"
      SH_LIBS="\$(ALL_LIBS)"
      CORE_IMPLIB_FILE="ApacheCoreOS2.la"
      CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
      MK_IMPLIB="emximp"
      other_targets="$other_targets os2core"
      INSTALL_PROG_FLAGS="-e .exe"
      SHLTCFLAGS=""
      LTCFLAGS=""
      ;;
  *)
      if test "x$LTFLAGS" = "x"; then
          LTFLAGS='--silent'
      fi
      my_libtool=`$apr_config --apr-libtool`
      LIBTOOL="$my_libtool \$(LTFLAGS)"
      libtoolversion=`$my_libtool --version`
      case $libtoolversion in
          *1.[45]* | *[2-9].[0-9]*)
              SH_LIBTOOL='$(LIBTOOL)'
              SHLTCFLAGS="-prefer-pic"
              LTCFLAGS="-prefer-non-pic -static"
              ;;
          *)
              SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
              SHLTCFLAGS=""
              LTCFLAGS=""
              ;;
      esac
      ;;
esac

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLTCFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTCFLAGS"



case $host in
  *-apple-aux3*)

  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
  *os2-emx*)

  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
  *-linux-*)
      case `uname -r` in
        # Unserialized accept() was not recommended until Linux 2.2.
        [01].* | 2.[01]* )
            ;;
        * )

  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

            ;;
      esac
      ;;
  *486-*-bsdi* | *-netbsd* | *-freebsd* | *-apple-darwin* | *-dec-osf* | *-qnx)

  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
  *-solaris2*)
            ap_platform_runtime_link_flag="-R"
                  case `uname -r` in
        5.[567]*)
            ;;
        * )

  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

            ;;
      esac
      ;;
  *cygwin*)

  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
  *mingw32*)

  if test "x$INTERNAL_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DAP_DECLARE_EXPORT\""
    INTERNAL_CPPFLAGS="-DAP_DECLARE_EXPORT"
  else
    apr_addto_bugger="-DAP_DECLARE_EXPORT"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INTERNAL_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
      fi
    done
  fi


  if test -z "$ac_cv_func_times"; then
    test "x$silent" != "xyes" && echo "  setting ac_cv_func_times to \"no\""
    ac_cv_func_times="no"
  fi


  if test -z "$ac_cv_func_getpwnam"; then
    test "x$silent" != "xyes" && echo "  setting ac_cv_func_getpwnam to \"no\""
    ac_cv_func_getpwnam="no"
  fi


  if test -z "$ac_cv_func_getgrnam"; then
    test "x$silent" != "xyes" && echo "  setting ac_cv_func_getgrnam to \"no\""
    ac_cv_func_getgrnam="no"
  fi

      ;;
  *aix*)
      aixver=`echo $host | sed 's/^[^0-9]*//' | sed 's/\.//g'`
      if test $aixver -ge 4320; then

  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      fi
      ;;
  *os390*)

  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"

      ;;
esac


  test "x$silent" != "xyes" && echo "  forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to \"1\""
  AP_NONBLOCK_WHEN_MULTI_LISTEN="1"




# Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_RM+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $RM in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_RM="$RM" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
RM=$ac_cv_path_RM
if test -n "$RM"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
printf "%s\n" "$RM" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PKGCONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $PKGCONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKGCONFIG=$ac_cv_path_PKGCONFIG
if test -n "$PKGCONFIG"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
printf "%s\n" "$PKGCONFIG" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


# Extract the first word of "rsync", so it can be a program name with args.
set dummy rsync; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_RSYNC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $RSYNC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_RSYNC="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
RSYNC=$ac_cv_path_RSYNC
if test -n "$RSYNC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RSYNC" >&5
printf "%s\n" "$RSYNC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


# Extract the first word of "svn", so it can be a program name with args.
set dummy svn; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_SVN+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $SVN in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_SVN="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SVN=$ac_cv_path_SVN
if test -n "$SVN"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
printf "%s\n" "$SVN" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AWK+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_AWK="$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
printf "%s\n" "$AWK" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$AWK" && break
done

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
printf %s "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
printf "%s\n" "no, using $LN_S" >&6; }
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_RANLIB+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
printf "%s\n" "$RANLIB" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_RANLIB+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
printf "%s\n" "$ac_ct_RANLIB" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB="true"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

for ac_prog in lynx links elinks
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_LYNX_PATH+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$LYNX_PATH"; then
  ac_cv_prog_LYNX_PATH="$LYNX_PATH" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_LYNX_PATH="$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LYNX_PATH=$ac_cv_prog_LYNX_PATH
if test -n "$LYNX_PATH"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LYNX_PATH" >&5
printf "%s\n" "$LYNX_PATH" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$LYNX_PATH" && break
done
test -n "$LYNX_PATH" || LYNX_PATH="lynx"


# Hard-coded install programs
MKINSTALLDIRS="\$(abs_srcdir)/build/mkdir.sh"
INSTALL="\$(LIBTOOL) --mode=install \$(abs_srcdir)/build/install.sh -c"

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MKINSTALLDIRS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL"





ac_header= ac_cache=
for ac_item in $ac_header_c_list
do
  if test $ac_cache; then
    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
      printf "%s\n" "#define $ac_item 1" >> confdefs.h
    fi
    ac_header= ac_cache=
  elif test $ac_header; then
    ac_cache=$ac_item
  else
    ac_header=$ac_item
  fi
done








if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
then :

printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h

fi






  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test ${ac_cv_safe_to_define___extensions__+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_safe_to_define___extensions__=yes
else $as_nop
  ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
if test ${ac_cv_should_define__xopen_source+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_should_define__xopen_source=no
    if test $ac_cv_header_wchar_h = yes
then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

          #include <wchar.h>
          mbstate_t x;
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

            #define _XOPEN_SOURCE 500
            #include <wchar.h>
            mbstate_t x;
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_should_define__xopen_source=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }

  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h

  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h

  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h

  if test $ac_cv_header_minix_config_h = yes
then :
  MINIX=yes
    printf "%s\n" "#define _MINIX 1" >>confdefs.h

    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h

    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h

else $as_nop
  MINIX=
fi
  if test $ac_cv_safe_to_define___extensions__ = yes
then :
  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h

fi
  if test $ac_cv_should_define__xopen_source = yes
then :
  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h

fi



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
printf %s "checking for library containing strerror... " >&6; }
if test ${ac_cv_search_strerror+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char strerror ();
int
main (void)
{
return strerror ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' cposix
do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_strerror+y}
then :
  break
fi
done
if test ${ac_cv_search_strerror+y}
then :

else $as_nop
  ac_cv_search_strerror=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
printf "%s\n" "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no
then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi


# Ensure that satisfactory versions of apr and apr-util are
# found if external copies are configured.
if test "${apr_found}" = "yes"; then
  # Require at least APR 1.3.x otherwise fail







ap_ckver_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS `$apr_config --includes`"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APR version 1.3.0 or later" >&5
printf %s "checking for APR version 1.3.0 or later... " >&6; }
if test ${ap_cv_aprver13+y}
then :
  printf %s "(cached) " >&6
else $as_nop

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr_version.h>
#if APR_MAJOR_VERSION > 1 || (APR_MAJOR_VERSION == 1 && APR_MINOR_VERSION >= 3)
good
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "good" >/dev/null 2>&1
then :
  ap_cv_aprver13=yes
else $as_nop
  ap_cv_aprver13=no
fi
rm -rf conftest*

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_cv_aprver13" >&5
printf "%s\n" "$ap_cv_aprver13" >&6; }

if test "$ap_cv_aprver13" = "yes"; then
  :
else
  as_fn_error $? "APR version 1.3.0 or later is required" "$LINENO" 5
fi

CPPFLAGS="$ap_ckver_CPPFLAGS"






fi

if test "${apu_found}" = "yes"; then
  # Require at least APR-util 1.3.x otherwise fail
  if test "${apr_found}" = "yes"; then
    # we need to add the APR includes to CPPFLAGS
    apu_ckver_CPPFLAGS="$CPPFLAGS"
    CPPFLAGS="$CPPFLAGS `$apr_config --includes`"






ap_ckver_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS `$apu_config --includes`"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APR-util version 1.3.0 or later" >&5
printf %s "checking for APR-util version 1.3.0 or later... " >&6; }
if test ${ap_cv_apuver13+y}
then :
  printf %s "(cached) " >&6
else $as_nop

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apu_version.h>
#if APU_MAJOR_VERSION > 1 || (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 3)
good
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "good" >/dev/null 2>&1
then :
  ap_cv_apuver13=yes
else $as_nop
  ap_cv_apuver13=no
fi
rm -rf conftest*

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_cv_apuver13" >&5
printf "%s\n" "$ap_cv_apuver13" >&6; }

if test "$ap_cv_apuver13" = "yes"; then
  :
else
  as_fn_error $? "APR-util version 1.3.0 or later is required" "$LINENO" 5
fi

CPPFLAGS="$ap_ckver_CPPFLAGS"






    CPPFLAGS="$apu_ckver_CPPFLAGS"
  else






ap_ckver_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS `$apu_config --includes`"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APR-util version 1.3.0 or later" >&5
printf %s "checking for APR-util version 1.3.0 or later... " >&6; }
if test ${ap_cv_apuver13+y}
then :
  printf %s "(cached) " >&6
else $as_nop

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apu_version.h>
#if APU_MAJOR_VERSION > 1 || (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 3)
good
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "good" >/dev/null 2>&1
then :
  ap_cv_apuver13=yes
else $as_nop
  ap_cv_apuver13=no
fi
rm -rf conftest*

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_cv_apuver13" >&5
printf "%s\n" "$ap_cv_apuver13" >&6; }

if test "$ap_cv_apuver13" = "yes"; then
  :
else
  as_fn_error $? "APR-util version 1.3.0 or later is required" "$LINENO" 5
fi

CPPFLAGS="$ap_ckver_CPPFLAGS"






  fi
fi


if test "$GCC" = "yes"; then
  MKDEP='$(CC) -MM'
else
  rm -f conftest.c
  cat > conftest.c <<EOF
#include <sys/types.h>
  int main() { return 0; }
EOF
  MKDEP="true"
  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
printf %s "checking if $i can create proper make dependencies... " >&6; }
    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
      MKDEP=$i
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      break;
    fi
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  done
  rm -f conftest.c
fi








# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change.  They are probably safe to remove.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
if test "x$ac_cv_header_string_h" = xyes
then :
  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
if test "x$ac_cv_header_limits_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
if test "x$ac_cv_header_pwd_h" = xyes
then :
  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
if test "x$ac_cv_header_grp_h" = xyes
then :
  printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
if test "x$ac_cv_header_strings_h" = xyes
then :
  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_prctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/processor.h" "ac_cv_header_sys_processor_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_processor_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PROCESSOR_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/sem.h" "ac_cv_header_sys_sem_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sem_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SEM_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sdt_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SDT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_loadavg_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
if test ${ac_cv_header_sys_wait_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/wait.h>
#ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
#endif
#ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif

int
main (void)
{
  int s;
  wait (&s);
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_header_sys_wait_h=yes
else $as_nop
  ac_cv_header_sys_wait_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
if test $ac_cv_header_sys_wait_h = yes; then

printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h

fi



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
printf %s "checking for an ANSI C-conforming const... " >&6; }
if test ${ac_cv_c_const+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

#ifndef __cplusplus
  /* Ultrix mips cc rejects this sort of thing.  */
  typedef int charset[2];
  const charset cs = { 0, 0 };
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* IBM XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_const=yes
else $as_nop
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
printf "%s\n" "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

printf "%s\n" "#define const /**/" >>confdefs.h

fi


saved_LIBS="$LIBS"
LIBS=""
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
printf %s "checking for library containing sqrt... " >&6; }
if test ${ac_cv_search_sqrt+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char sqrt ();
int
main (void)
{
return sqrt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m
do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_sqrt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_sqrt+y}
then :
  break
fi
done
if test ${ac_cv_search_sqrt+y}
then :

else $as_nop
  ac_cv_search_sqrt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
printf "%s\n" "$ac_cv_search_sqrt" >&6; }
ac_res=$ac_cv_search_sqrt
if test "$ac_res" != no
then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

MATH_LIBS="$LIBS"

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MATH_LIBS"


LIBS="$saved_LIBS"

saved_LIBS="$LIBS"
LIBS=""
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
printf %s "checking for library containing crypt... " >&6; }
if test ${ac_cv_search_crypt+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char crypt ();
int
main (void)
{
return crypt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' crypt
do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_crypt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_crypt+y}
then :
  break
fi
done
if test ${ac_cv_search_crypt+y}
then :

else $as_nop
  ac_cv_search_crypt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
printf "%s\n" "$ac_cv_search_crypt" >&6; }
ac_res=$ac_cv_search_crypt
if test "$ac_res" != no
then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

CRYPT_LIBS="$LIBS"

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CRYPT_LIBS"


LIBS="$saved_LIBS"


ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
if test "x$ac_cv_func_getpwnam" = xyes
then :
  printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getgrnam" "ac_cv_func_getgrnam"
if test "x$ac_cv_func_getgrnam" = xyes
then :
  printf "%s\n" "#define HAVE_GETGRNAM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
if test "x$ac_cv_func_initgroups" = xyes
then :
  printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "bindprocessor" "ac_cv_func_bindprocessor"
if test "x$ac_cv_func_bindprocessor" = xyes
then :
  printf "%s\n" "#define HAVE_BINDPROCESSOR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
if test "x$ac_cv_func_prctl" = xyes
then :
  printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
if test "x$ac_cv_func_timegm" = xyes
then :
  printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid"
if test "x$ac_cv_func_getpgid" = xyes
then :
  printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
if test "x$ac_cv_func_fopen64" = xyes
then :
  printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
if test "x$ac_cv_func_getloadavg" = xyes
then :
  printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h

fi




{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for void pointer length" >&5
printf %s "checking for void pointer length... " >&6; }
if test ${ap_cv_void_ptr_lt_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  ap_cv_void_ptr_lt_long=yes
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int main(void)
{
    return sizeof(void *) < sizeof(long);
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ap_cv_void_ptr_lt_long=no
else $as_nop
  ap_cv_void_ptr_lt_long=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_cv_void_ptr_lt_long" >&5
printf "%s\n" "$ap_cv_void_ptr_lt_long" >&6; }

if test "$ap_cv_void_ptr_lt_long" = "yes"; then
    as_fn_error $? "Size of \"void *\" is less than size of \"long\"" "$LINENO" 5
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettid()" >&5
printf %s "checking for gettid()... " >&6; }
if test ${ac_cv_gettid+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  ac_cv_gettid=no
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/types.h>
int main(int argc, char **argv) {
pid_t t = syscall(SYS_gettid); return t == -1 ? 1 : 0; }
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ac_cv_gettid=yes
else $as_nop
  ac_cv_gettid=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gettid" >&5
printf "%s\n" "$ac_cv_gettid" >&6; }
if test "$ac_cv_gettid" = "yes"; then

printf "%s\n" "#define HAVE_GETTID 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
printf %s "checking for tm_gmtoff in struct tm... " >&6; }
if test ${ac_cv_struct_tm_gmtoff+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>
int
main (void)
{
struct tm tm; tm.tm_gmtoff;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_struct_tm_gmtoff=yes
else $as_nop
  ac_cv_struct_tm_gmtoff=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
printf "%s\n" "$ac_cv_struct_tm_gmtoff" >&6; }
if test "$ac_cv_struct_tm_gmtoff" = "yes"; then

printf "%s\n" "#define HAVE_GMTOFF 1" >>confdefs.h

fi


case $host in
*-linux-*)
   if test -n "$PKGCONFIG" && $PKGCONFIG --exists libsystemd; then
      SYSTEMD_LIBS=`$PKGCONFIG --libs libsystemd`
   elif test -n "$PKGCONFIG" && $PKGCONFIG --exists libsystemd-daemon; then
      SYSTEMD_LIBS=`$PKGCONFIG --libs libsystemd-daemon`
   else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd-daemon" >&5
printf %s "checking for sd_notify in -lsystemd-daemon... " >&6; }
if test ${ac_cv_lib_systemd_daemon_sd_notify+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsystemd-daemon  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char sd_notify ();
int
main (void)
{
return sd_notify ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_systemd_daemon_sd_notify=yes
else $as_nop
  ac_cv_lib_systemd_daemon_sd_notify=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_daemon_sd_notify" >&5
printf "%s\n" "$ac_cv_lib_systemd_daemon_sd_notify" >&6; }
if test "x$ac_cv_lib_systemd_daemon_sd_notify" = xyes
then :
  SYSTEMD_LIBS="-lsystemd-daemon"
fi

   fi
   if test -n "$SYSTEMD_LIBS"; then
      ac_fn_c_check_header_compile "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYSTEMD_SD_DAEMON_H 1" >>confdefs.h

fi

      if test "${ac_cv_header_systemd_sd_daemon_h}" = "no" || test -z "${SYSTEMD_LIBS}"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your system does not support systemd." >&5
printf "%s\n" "$as_me: WARNING: Your system does not support systemd." >&2;}
      else

printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h

      fi
   fi
   ;;
esac



case $host in
    *aix*)
        # for 32-bit builds, increase MAXDATA to allow lots of threads
        if test x$OBJECT_MODE != x64; then
            OS_SPECIFIC_VARS="LDR_CNTRL=\"MAXDATA=0x80000000\" ; export LDR_CNTRL ;"
        fi
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS AIXTHREAD_SCOPE=S ; export AIXTHREAD_SCOPE"
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_MUTEX_DEBUG=OFF ; export AIXTHREAD_MUTEX_DEBUG"
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_RWLOCK_DEBUG=OFF ; export AIXTHREAD_RWLOCK_DEBUG"
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_COND_DEBUG=OFF ; export AIXTHREAD_COND_DEBUG"
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; SPINLOOPTIME=1000 ; export SPINLOOPTIME"
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; YIELDLOOPTIME=8 ; export YIELDLOOPTIME"
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; MALLOCMULTIHEAP=considersize,heaps:8 ; export MALLOCMULTIHEAP"
        ;;
    *os390*)
        OS_SPECIFIC_VARS="export _CEE_RUNOPTS=\"STACK(,,ANY)\" ; export _EDC_ADD_ERRNO2=1"
        ;;
    *)
        OS_SPECIFIC_VARS=""
esac


# Check whether --with-port was given.
if test ${with_port+y}
then :
  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
else $as_nop
  PORT=80
fi



# Check whether --with-sslport was given.
if test ${with_sslport+y}
then :
  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
else $as_nop
  SSLPORT=443
fi


DTRACE=true
# Check whether --enable-dtrace was given.
if test ${enable_dtrace+y}
then :
  enableval=$enable_dtrace;
  enable_dtrace=$enableval
  if test "$enableval" = "yes"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_DTRACE_PROVIDER\""
    CPPFLAGS="-DAPR_DTRACE_PROVIDER"
  else
    apr_addto_bugger="-DAPR_DTRACE_PROVIDER"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi

    as_fn_error $? "'DTrace Support in the build system is not complete. Patches Welcome!'" "$LINENO" 5
  fi

else $as_nop

  enable_dtrace=no

fi


enable_dtrace=no

case $host in
  *-solaris2*)
    if test $enable_dtrace = "yes" -a "$ac_cv_header_sys_sdt_h" = "yes"; then

printf "%s\n" "#define AP_ENABLE_DTRACE 1" >>confdefs.h

        DTRACE="/usr/sbin/dtrace $DTRACEFLAGS"
        test -f include/apache_probes.h || $DTRACE -h -s apache_probes.d -o include/apache_probes.h
    fi
    ;;
esac


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DTRACE"



# Check whether --enable-hook-probes was given.
if test ${enable_hook_probes+y}
then :
  enableval=$enable_hook_probes;
    if test "$enableval" = "yes"; then

printf "%s\n" "#define AP_HOOK_PROBES_ENABLED 1" >>confdefs.h


  if test "x$INTERNAL_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DAP_HOOK_PROBES_ENABLED\""
    INTERNAL_CPPFLAGS="-DAP_HOOK_PROBES_ENABLED"
  else
    apr_addto_bugger="-DAP_HOOK_PROBES_ENABLED"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INTERNAL_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
      fi
    done
  fi

    fi

fi

# Check whether --enable-exception-hook was given.
if test ${enable_exception_hook+y}
then :
  enableval=$enable_exception_hook;
    if test "$enableval" = "yes"; then

printf "%s\n" "#define AP_ENABLE_EXCEPTION_HOOK 1" >>confdefs.h

    fi

fi

# Check whether --enable-load-all-modules was given.
if test ${enable_load_all_modules+y}
then :
  enableval=$enable_load_all_modules;
  LOAD_ALL_MODULES=$enableval
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&5
printf "%s\n" "$as_me: Setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&6;}

else $as_nop

  LOAD_ALL_MODULES="no"

fi


# Check whether --enable-maintainer-mode was given.
if test ${enable_maintainer_mode+y}
then :
  enableval=$enable_maintainer_mode;
  if test "$enableval" = "yes"; then

  if test "x$NOTEST_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CPPFLAGS to \"-DAP_DEBUG\""
    NOTEST_CPPFLAGS="-DAP_DEBUG"
  else
    apr_addto_bugger="-DAP_DEBUG"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CPPFLAGS"
        NOTEST_CPPFLAGS="$NOTEST_CPPFLAGS $i"
      fi
    done
  fi

    if test "$GCC" = "yes"; then


  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -std=c89" >&5
printf %s "checking whether gcc accepts -std=c89... " >&6; }
if test ${ac_cv_gcc__std_c89+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -std=c89 -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__std_c89=yes
else $as_nop
  ac_cv_gcc__std_c89=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__std_c89" >&5
printf "%s\n" "$ac_cv_gcc__std_c89" >&6; }
    if test "$ac_cv_gcc__std_c89" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-std=c89\""
    NOTEST_CFLAGS="-std=c89"
  else
    apr_addto_bugger="-std=c89"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror" >&5
printf %s "checking whether gcc accepts -Werror... " >&6; }
if test ${ac_cv_gcc__Werror+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Werror -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Werror=yes
else $as_nop
  ac_cv_gcc__Werror=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror" >&5
printf "%s\n" "$ac_cv_gcc__Werror" >&6; }
    if test "$ac_cv_gcc__Werror" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Werror\""
    NOTEST_CFLAGS="-Werror"
  else
    apr_addto_bugger="-Werror"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wall" >&5
printf %s "checking whether gcc accepts -Wall... " >&6; }
if test ${ac_cv_gcc__Wall+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wall -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wall=yes
else $as_nop
  ac_cv_gcc__Wall=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wall" >&5
printf "%s\n" "$ac_cv_gcc__Wall" >&6; }
    if test "$ac_cv_gcc__Wall" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wall\""
    NOTEST_CFLAGS="-Wall"
  else
    apr_addto_bugger="-Wall"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wstrict-prototypes" >&5
printf %s "checking whether gcc accepts -Wstrict-prototypes... " >&6; }
if test ${ac_cv_gcc__Wstrict_prototypes+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wstrict-prototypes -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wstrict_prototypes=yes
else $as_nop
  ac_cv_gcc__Wstrict_prototypes=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wstrict_prototypes" >&5
printf "%s\n" "$ac_cv_gcc__Wstrict_prototypes" >&6; }
    if test "$ac_cv_gcc__Wstrict_prototypes" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wstrict-prototypes\""
    NOTEST_CFLAGS="-Wstrict-prototypes"
  else
    apr_addto_bugger="-Wstrict-prototypes"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wmissing-prototypes" >&5
printf %s "checking whether gcc accepts -Wmissing-prototypes... " >&6; }
if test ${ac_cv_gcc__Wmissing_prototypes+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wmissing-prototypes -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wmissing_prototypes=yes
else $as_nop
  ac_cv_gcc__Wmissing_prototypes=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wmissing_prototypes" >&5
printf "%s\n" "$ac_cv_gcc__Wmissing_prototypes" >&6; }
    if test "$ac_cv_gcc__Wmissing_prototypes" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wmissing-prototypes\""
    NOTEST_CFLAGS="-Wmissing-prototypes"
  else
    apr_addto_bugger="-Wmissing-prototypes"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wmissing-declarations" >&5
printf %s "checking whether gcc accepts -Wmissing-declarations... " >&6; }
if test ${ac_cv_gcc__Wmissing_declarations+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wmissing-declarations -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wmissing_declarations=yes
else $as_nop
  ac_cv_gcc__Wmissing_declarations=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wmissing_declarations" >&5
printf "%s\n" "$ac_cv_gcc__Wmissing_declarations" >&6; }
    if test "$ac_cv_gcc__Wmissing_declarations" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wmissing-declarations\""
    NOTEST_CFLAGS="-Wmissing-declarations"
  else
    apr_addto_bugger="-Wmissing-declarations"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
printf %s "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
if test ${ac_cv_gcc__Wdeclaration_after_statement+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wdeclaration-after-statement -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wdeclaration_after_statement=yes
else $as_nop
  ac_cv_gcc__Wdeclaration_after_statement=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wdeclaration_after_statement" >&5
printf "%s\n" "$ac_cv_gcc__Wdeclaration_after_statement" >&6; }
    if test "$ac_cv_gcc__Wdeclaration_after_statement" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wdeclaration-after-statement\""
    NOTEST_CFLAGS="-Wdeclaration-after-statement"
  else
    apr_addto_bugger="-Wdeclaration-after-statement"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wpointer-arith" >&5
printf %s "checking whether gcc accepts -Wpointer-arith... " >&6; }
if test ${ac_cv_gcc__Wpointer_arith+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wpointer-arith -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wpointer_arith=yes
else $as_nop
  ac_cv_gcc__Wpointer_arith=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wpointer_arith" >&5
printf "%s\n" "$ac_cv_gcc__Wpointer_arith" >&6; }
    if test "$ac_cv_gcc__Wpointer_arith" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wpointer-arith\""
    NOTEST_CFLAGS="-Wpointer-arith"
  else
    apr_addto_bugger="-Wpointer-arith"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat" >&5
printf %s "checking whether gcc accepts -Wformat... " >&6; }
if test ${ac_cv_gcc__Wformat+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wformat -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wformat=yes
else $as_nop
  ac_cv_gcc__Wformat=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat" >&5
printf "%s\n" "$ac_cv_gcc__Wformat" >&6; }
    if test "$ac_cv_gcc__Wformat" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wformat\""
    NOTEST_CFLAGS="-Wformat"
  else
    apr_addto_bugger="-Wformat"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat-security" >&5
printf %s "checking whether gcc accepts -Wformat-security... " >&6; }
if test ${ac_cv_gcc__Wformat_security+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wformat-security -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wformat_security=yes
else $as_nop
  ac_cv_gcc__Wformat_security=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat_security" >&5
printf "%s\n" "$ac_cv_gcc__Wformat_security" >&6; }
    if test "$ac_cv_gcc__Wformat_security" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wformat-security\""
    NOTEST_CFLAGS="-Wformat-security"
  else
    apr_addto_bugger="-Wformat-security"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wunused" >&5
printf %s "checking whether gcc accepts -Wunused... " >&6; }
if test ${ac_cv_gcc__Wunused+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wunused -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wunused=yes
else $as_nop
  ac_cv_gcc__Wunused=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wunused" >&5
printf "%s\n" "$ac_cv_gcc__Wunused" >&6; }
    if test "$ac_cv_gcc__Wunused" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wunused\""
    NOTEST_CFLAGS="-Wunused"
  else
    apr_addto_bugger="-Wunused"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi


    elif test "$AIX_XLC" = "yes"; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
    NOTEST_CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
  else
    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
    if test "x$enable_load_all_modules" = "x"; then
      LOAD_ALL_MODULES=yes
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Maintainer mode setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&5
printf "%s\n" "$as_me: Maintainer mode setting \"LOAD_ALL_MODULES\" to $LOAD_ALL_MODULES" >&6;}
    fi
    if test "x$enable_bucketeer" = "x"; then
      enable_bucketeer=yes
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Maintainer mode setting \"enable_bucketeer\" to yes" >&5
printf "%s\n" "$as_me: Maintainer mode setting \"enable_bucketeer\" to yes" >&6;}
    fi
  fi

fi

# Check whether --enable-debugger-mode was given.
if test ${enable_debugger_mode+y}
then :
  enableval=$enable_debugger_mode;
  if test "$enableval" = "yes"; then

  if test "x$NOTEST_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CPPFLAGS to \"-DAP_DEBUG\""
    NOTEST_CPPFLAGS="-DAP_DEBUG"
  else
    apr_addto_bugger="-DAP_DEBUG"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CPPFLAGS"
        NOTEST_CPPFLAGS="$NOTEST_CPPFLAGS $i"
      fi
    done
  fi

    if test "$GCC" = "yes"; then


  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -O0" >&5
printf %s "checking whether gcc accepts -O0... " >&6; }
if test ${ac_cv_gcc__O0+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -O0 -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__O0=yes
else $as_nop
  ac_cv_gcc__O0=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__O0" >&5
printf "%s\n" "$ac_cv_gcc__O0" >&6; }
    if test "$ac_cv_gcc__O0" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-O0\""
    NOTEST_CFLAGS="-O0"
  else
    apr_addto_bugger="-O0"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wall" >&5
printf %s "checking whether gcc accepts -Wall... " >&6; }
if test ${ac_cv_gcc__Wall+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wall -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wall=yes
else $as_nop
  ac_cv_gcc__Wall=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wall" >&5
printf "%s\n" "$ac_cv_gcc__Wall" >&6; }
    if test "$ac_cv_gcc__Wall" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wall\""
    NOTEST_CFLAGS="-Wall"
  else
    apr_addto_bugger="-Wall"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wstrict-prototypes" >&5
printf %s "checking whether gcc accepts -Wstrict-prototypes... " >&6; }
if test ${ac_cv_gcc__Wstrict_prototypes+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wstrict-prototypes -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wstrict_prototypes=yes
else $as_nop
  ac_cv_gcc__Wstrict_prototypes=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wstrict_prototypes" >&5
printf "%s\n" "$ac_cv_gcc__Wstrict_prototypes" >&6; }
    if test "$ac_cv_gcc__Wstrict_prototypes" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wstrict-prototypes\""
    NOTEST_CFLAGS="-Wstrict-prototypes"
  else
    apr_addto_bugger="-Wstrict-prototypes"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wmissing-prototypes" >&5
printf %s "checking whether gcc accepts -Wmissing-prototypes... " >&6; }
if test ${ac_cv_gcc__Wmissing_prototypes+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wmissing-prototypes -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wmissing_prototypes=yes
else $as_nop
  ac_cv_gcc__Wmissing_prototypes=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wmissing_prototypes" >&5
printf "%s\n" "$ac_cv_gcc__Wmissing_prototypes" >&6; }
    if test "$ac_cv_gcc__Wmissing_prototypes" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wmissing-prototypes\""
    NOTEST_CFLAGS="-Wmissing-prototypes"
  else
    apr_addto_bugger="-Wmissing-prototypes"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wmissing-declarations" >&5
printf %s "checking whether gcc accepts -Wmissing-declarations... " >&6; }
if test ${ac_cv_gcc__Wmissing_declarations+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wmissing-declarations -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wmissing_declarations=yes
else $as_nop
  ac_cv_gcc__Wmissing_declarations=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wmissing_declarations" >&5
printf "%s\n" "$ac_cv_gcc__Wmissing_declarations" >&6; }
    if test "$ac_cv_gcc__Wmissing_declarations" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wmissing-declarations\""
    NOTEST_CFLAGS="-Wmissing-declarations"
  else
    apr_addto_bugger="-Wmissing-declarations"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
printf %s "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
if test ${ac_cv_gcc__Wdeclaration_after_statement+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wdeclaration-after-statement -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wdeclaration_after_statement=yes
else $as_nop
  ac_cv_gcc__Wdeclaration_after_statement=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wdeclaration_after_statement" >&5
printf "%s\n" "$ac_cv_gcc__Wdeclaration_after_statement" >&6; }
    if test "$ac_cv_gcc__Wdeclaration_after_statement" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wdeclaration-after-statement\""
    NOTEST_CFLAGS="-Wdeclaration-after-statement"
  else
    apr_addto_bugger="-Wdeclaration-after-statement"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=declaration-after-statement" >&5
printf %s "checking whether gcc accepts -Werror=declaration-after-statement... " >&6; }
if test ${ac_cv_gcc__Werror_declaration_after_statement+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Werror=declaration-after-statement -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Werror_declaration_after_statement=yes
else $as_nop
  ac_cv_gcc__Werror_declaration_after_statement=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_declaration_after_statement" >&5
printf "%s\n" "$ac_cv_gcc__Werror_declaration_after_statement" >&6; }
    if test "$ac_cv_gcc__Werror_declaration_after_statement" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Werror=declaration-after-statement\""
    NOTEST_CFLAGS="-Werror=declaration-after-statement"
  else
    apr_addto_bugger="-Werror=declaration-after-statement"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wpointer-arith" >&5
printf %s "checking whether gcc accepts -Wpointer-arith... " >&6; }
if test ${ac_cv_gcc__Wpointer_arith+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wpointer-arith -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wpointer_arith=yes
else $as_nop
  ac_cv_gcc__Wpointer_arith=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wpointer_arith" >&5
printf "%s\n" "$ac_cv_gcc__Wpointer_arith" >&6; }
    if test "$ac_cv_gcc__Wpointer_arith" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wpointer-arith\""
    NOTEST_CFLAGS="-Wpointer-arith"
  else
    apr_addto_bugger="-Wpointer-arith"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat" >&5
printf %s "checking whether gcc accepts -Wformat... " >&6; }
if test ${ac_cv_gcc__Wformat+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wformat -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wformat=yes
else $as_nop
  ac_cv_gcc__Wformat=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat" >&5
printf "%s\n" "$ac_cv_gcc__Wformat" >&6; }
    if test "$ac_cv_gcc__Wformat" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wformat\""
    NOTEST_CFLAGS="-Wformat"
  else
    apr_addto_bugger="-Wformat"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wformat-security" >&5
printf %s "checking whether gcc accepts -Wformat-security... " >&6; }
if test ${ac_cv_gcc__Wformat_security+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wformat-security -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Wformat_security=yes
else $as_nop
  ac_cv_gcc__Wformat_security=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Wformat_security" >&5
printf "%s\n" "$ac_cv_gcc__Wformat_security" >&6; }
    if test "$ac_cv_gcc__Wformat_security" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Wformat-security\""
    NOTEST_CFLAGS="-Wformat-security"
  else
    apr_addto_bugger="-Wformat-security"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi




  if test "$GCC" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Werror=format-security" >&5
printf %s "checking whether gcc accepts -Werror=format-security... " >&6; }
if test ${ac_cv_gcc__Werror_format_security+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Werror=format-security -Wno-strict-prototypes"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_gcc__Werror_format_security=yes
else $as_nop
  ac_cv_gcc__Werror_format_security=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      CFLAGS="$save_CFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc__Werror_format_security" >&5
printf "%s\n" "$ac_cv_gcc__Werror_format_security" >&6; }
    if test "$ac_cv_gcc__Werror_format_security" = "yes" ; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-Werror=format-security\""
    NOTEST_CFLAGS="-Werror=format-security"
  else
    apr_addto_bugger="-Werror=format-security"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi


    elif test "$AIX_XLC" = "yes"; then

  if test "x$NOTEST_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting NOTEST_CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
    NOTEST_CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
  else
    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $NOTEST_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to NOTEST_CFLAGS"
        NOTEST_CFLAGS="$NOTEST_CFLAGS $i"
      fi
    done
  fi

    fi
  fi

fi

# Check whether --enable-pie was given.
if test ${enable_pie+y}
then :
  enableval=$enable_pie;
fi

if test "$enable_pie" = "yes"; then
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts PIE flags" >&5
printf %s "checking whether $CC accepts PIE flags... " >&6; }
if test ${ap_cv_cc_pie+y}
then :
  printf %s "(cached) " >&6
else $as_nop

     save_CFLAGS=$CFLAGS
     save_LDFLAGS=$LDFLAGS
     CFLAGS="$CFLAGS -fPIE"
     LDFLAGS="$LDFLAGS -pie"
     if test "$cross_compiling" = yes
then :
  ap_cv_cc_pie=yes
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
static int foo[30000]; int main () { return 0; }
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ap_cv_cc_pie=yes
else $as_nop
  ap_cv_cc_pie=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

     CFLAGS=$save_CFLAGS
     LDFLAGS=$save_LDFLAGS

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_cv_cc_pie" >&5
printf "%s\n" "$ap_cv_cc_pie" >&6; }
   if test "$ap_cv_cc_pie" = "yes"; then
     PICFLAGS="-fPIE"
     PILDFLAGS="-pie"
   else
     as_fn_error $? "--enable-pie requested but $CC failed using PIE flags" "$LINENO" 5
   fi
fi

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PICFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PILDFLAGS"



prefix="$orig_prefix"

  module_selection=most
  module_default=shared


apr_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $INCLUDES"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr.h>
#if APR_HAS_DSO
YES_IS_DEFINED
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
then :
  ac_cv_define_APR_HAS_DSO=yes
else $as_nop
  ac_cv_define_APR_HAS_DSO=no
fi
rm -rf conftest*

CPPFLAGS=$apr_old_cppflags


  if test $ac_cv_define_APR_HAS_DSO = "no"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Missing DSO support - building static modules by default." >&5
printf "%s\n" "$as_me: WARNING: Missing DSO support - building static modules by default." >&2;}
    module_default=static
  fi


  # Check whether --enable-modules was given.
if test ${enable_modules+y}
then :
  enableval=$enable_modules;
    if test "$enableval" = "none"; then
       module_default=no
       module_selection=none
    else
      for i in $enableval; do
        if test "$i" = "all" -o "$i" = "most" -o "$i" = "few" -o "$i" = "reallyall"
        then
          module_selection=$i
        else
          i=`echo $i | sed 's/-/_/g'`
          eval "enable_$i=shared"
        fi
      done
    fi

fi


  # Check whether --enable-mods-shared was given.
if test ${enable_mods_shared+y}
then :
  enableval=$enable_mods_shared;
    for i in $enableval; do
      if test "$i" = "all" -o "$i" = "most" -o "$i" = "few" -o "$i" = "reallyall"
      then
        module_selection=$i
        module_default=shared
      else
        i=`echo $i | sed 's/-/_/g'`
    	eval "enable_$i=shared"
      fi
    done

fi


  # Check whether --enable-mods-static was given.
if test ${enable_mods_static+y}
then :
  enableval=$enable_mods_static;
    for i in $enableval; do
      if test "$i" = "all" -o "$i" = "most" -o "$i" = "few" -o "$i" = "reallyall"; then
        module_selection=$i
        module_default=static
      else
        i=`echo $i | sed 's/-/_/g'`
    	eval "enable_$i=static"
      fi
    done

fi







  current_dir=aaa
  modpath_current=modules/aaa
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d aaa || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_file" >&5
printf %s "checking whether to enable mod_authn_file... " >&6; }
    # Check whether --enable-authn-file was given.
if test ${enable_authn_file+y}
then :
  enableval=$enable_authn_file; force_authn_file=$enableval
else $as_nop
  enable_authn_file=yes
fi

    _apmod_extra_msg=""
      case "$enable_authn_file" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authn_file" = "static" -o "$enable_authn_file" = "shared"; then
    :
  elif test "$enable_authn_file" = "yes"; then
    enable_authn_file=$module_default
  elif test "$enable_authn_file" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_file=$module_default
    else
      enable_authn_file=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_file" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authn_file=$module_default
    else
      enable_authn_file=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_file" = "all" -o "$enable_authn_file" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_file=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_file=no
    fi
  elif test "$enable_authn_file" = "reallyall" -o "$enable_authn_file" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authn_file" != "no" ; then
      enable_authn_file=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_file=no
    fi
  else
    enable_authn_file=no
  fi
  if test "$enable_authn_file" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authn_file$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authn_file$_apmod_extra_msg" >&6; }
  if test "$enable_authn_file" != "no"; then
    case "$enable_authn_file" in
    static*)
      MODLIST="$MODLIST authn_file"
      if test "authn_file" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authn_file"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_file"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authn_file.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authn_file.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHN_FILE_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHN_FILE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_FILE_LDADD)\""
    AP_LIBS="\$(MOD_AUTHN_FILE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHN_FILE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authn_file.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_FILE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_FILE_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_dbm" >&5
printf %s "checking whether to enable mod_authn_dbm... " >&6; }
    # Check whether --enable-authn-dbm was given.
if test ${enable_authn_dbm+y}
then :
  enableval=$enable_authn_dbm; force_authn_dbm=$enableval
else $as_nop
  enable_authn_dbm=most
fi

    _apmod_extra_msg=""
      case "$enable_authn_dbm" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authn_dbm" = "static" -o "$enable_authn_dbm" = "shared"; then
    :
  elif test "$enable_authn_dbm" = "yes"; then
    enable_authn_dbm=$module_default
  elif test "$enable_authn_dbm" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_dbm=$module_default
    else
      enable_authn_dbm=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_dbm" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authn_dbm=$module_default
    else
      enable_authn_dbm=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_dbm" = "all" -o "$enable_authn_dbm" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_dbm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_dbm=no
    fi
  elif test "$enable_authn_dbm" = "reallyall" -o "$enable_authn_dbm" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authn_dbm" != "no" ; then
      enable_authn_dbm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_dbm=no
    fi
  else
    enable_authn_dbm=no
  fi
  if test "$enable_authn_dbm" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authn_dbm$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authn_dbm$_apmod_extra_msg" >&6; }
  if test "$enable_authn_dbm" != "no"; then
    case "$enable_authn_dbm" in
    static*)
      MODLIST="$MODLIST authn_dbm"
      if test "authn_dbm" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authn_dbm"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_dbm"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authn_dbm.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authn_dbm.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHN_DBM_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHN_DBM_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_DBM_LDADD)\""
    AP_LIBS="\$(MOD_AUTHN_DBM_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHN_DBM_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authn_dbm.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_DBM_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_DBM_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_anon" >&5
printf %s "checking whether to enable mod_authn_anon... " >&6; }
    # Check whether --enable-authn-anon was given.
if test ${enable_authn_anon+y}
then :
  enableval=$enable_authn_anon; force_authn_anon=$enableval
else $as_nop
  enable_authn_anon=most
fi

    _apmod_extra_msg=""
      case "$enable_authn_anon" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authn_anon" = "static" -o "$enable_authn_anon" = "shared"; then
    :
  elif test "$enable_authn_anon" = "yes"; then
    enable_authn_anon=$module_default
  elif test "$enable_authn_anon" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_anon=$module_default
    else
      enable_authn_anon=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_anon" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authn_anon=$module_default
    else
      enable_authn_anon=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_anon" = "all" -o "$enable_authn_anon" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_anon=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_anon=no
    fi
  elif test "$enable_authn_anon" = "reallyall" -o "$enable_authn_anon" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authn_anon" != "no" ; then
      enable_authn_anon=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_anon=no
    fi
  else
    enable_authn_anon=no
  fi
  if test "$enable_authn_anon" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authn_anon$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authn_anon$_apmod_extra_msg" >&6; }
  if test "$enable_authn_anon" != "no"; then
    case "$enable_authn_anon" in
    static*)
      MODLIST="$MODLIST authn_anon"
      if test "authn_anon" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authn_anon"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_anon"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authn_anon.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authn_anon.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHN_ANON_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHN_ANON_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_ANON_LDADD)\""
    AP_LIBS="\$(MOD_AUTHN_ANON_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHN_ANON_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authn_anon.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_ANON_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_ANON_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_dbd" >&5
printf %s "checking whether to enable mod_authn_dbd... " >&6; }
    # Check whether --enable-authn-dbd was given.
if test ${enable_authn_dbd+y}
then :
  enableval=$enable_authn_dbd; force_authn_dbd=$enableval
else $as_nop
  enable_authn_dbd=most
fi

    _apmod_extra_msg=""
      case "$enable_authn_dbd" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authn_dbd" = "static" -o "$enable_authn_dbd" = "shared"; then
    :
  elif test "$enable_authn_dbd" = "yes"; then
    enable_authn_dbd=$module_default
  elif test "$enable_authn_dbd" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_dbd=$module_default
    else
      enable_authn_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_dbd" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authn_dbd=$module_default
    else
      enable_authn_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_dbd" = "all" -o "$enable_authn_dbd" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_dbd=no
    fi
  elif test "$enable_authn_dbd" = "reallyall" -o "$enable_authn_dbd" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authn_dbd" != "no" ; then
      enable_authn_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_dbd=no
    fi
  else
    enable_authn_dbd=no
  fi
  if test "$enable_authn_dbd" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authn_dbd$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authn_dbd$_apmod_extra_msg" >&6; }
  if test "$enable_authn_dbd" != "no"; then
    case "$enable_authn_dbd" in
    static*)
      MODLIST="$MODLIST authn_dbd"
      if test "authn_dbd" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authn_dbd"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_dbd"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authn_dbd.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authn_dbd.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHN_DBD_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHN_DBD_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_DBD_LDADD)\""
    AP_LIBS="\$(MOD_AUTHN_DBD_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHN_DBD_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authn_dbd.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_DBD_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_DBD_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_socache" >&5
printf %s "checking whether to enable mod_authn_socache... " >&6; }
    # Check whether --enable-authn-socache was given.
if test ${enable_authn_socache+y}
then :
  enableval=$enable_authn_socache; force_authn_socache=$enableval
else $as_nop
  enable_authn_socache=most
fi

    _apmod_extra_msg=""
      case "$enable_authn_socache" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authn_socache" = "static" -o "$enable_authn_socache" = "shared"; then
    :
  elif test "$enable_authn_socache" = "yes"; then
    enable_authn_socache=$module_default
  elif test "$enable_authn_socache" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_socache=$module_default
    else
      enable_authn_socache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_socache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authn_socache=$module_default
    else
      enable_authn_socache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_socache" = "all" -o "$enable_authn_socache" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_socache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_socache=no
    fi
  elif test "$enable_authn_socache" = "reallyall" -o "$enable_authn_socache" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authn_socache" != "no" ; then
      enable_authn_socache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_socache=no
    fi
  else
    enable_authn_socache=no
  fi
  if test "$enable_authn_socache" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authn_socache$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authn_socache$_apmod_extra_msg" >&6; }
  if test "$enable_authn_socache" != "no"; then
    case "$enable_authn_socache" in
    static*)
      MODLIST="$MODLIST authn_socache"
      if test "authn_socache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authn_socache"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_socache"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authn_socache.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authn_socache.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHN_SOCACHE_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHN_SOCACHE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_SOCACHE_LDADD)\""
    AP_LIBS="\$(MOD_AUTHN_SOCACHE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHN_SOCACHE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authn_socache.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_SOCACHE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_SOCACHE_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authn_core" >&5
printf %s "checking whether to enable mod_authn_core... " >&6; }
    # Check whether --enable-authn-core was given.
if test ${enable_authn_core+y}
then :
  enableval=$enable_authn_core; force_authn_core=$enableval
else $as_nop
  enable_authn_core=yes
fi

    _apmod_extra_msg=""
      case "$enable_authn_core" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authn_core" = "static" -o "$enable_authn_core" = "shared"; then
    :
  elif test "$enable_authn_core" = "yes"; then
    enable_authn_core=$module_default
  elif test "$enable_authn_core" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_core=$module_default
    else
      enable_authn_core=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_core" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authn_core=$module_default
    else
      enable_authn_core=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authn_core" = "all" -o "$enable_authn_core" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authn_core=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_core=no
    fi
  elif test "$enable_authn_core" = "reallyall" -o "$enable_authn_core" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authn_core" != "no" ; then
      enable_authn_core=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authn_core=no
    fi
  else
    enable_authn_core=no
  fi
  if test "$enable_authn_core" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authn_core$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authn_core$_apmod_extra_msg" >&6; }
  if test "$enable_authn_core" != "no"; then
    case "$enable_authn_core" in
    static*)
      MODLIST="$MODLIST authn_core"
      if test "authn_core" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authn_core"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authn_core"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authn_core.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authn_core.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHN_CORE_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHN_CORE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHN_CORE_LDADD)\""
    AP_LIBS="\$(MOD_AUTHN_CORE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHN_CORE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authn_core.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_CORE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_CORE_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_host" >&5
printf %s "checking whether to enable mod_authz_host... " >&6; }
    # Check whether --enable-authz-host was given.
if test ${enable_authz_host+y}
then :
  enableval=$enable_authz_host; force_authz_host=$enableval
else $as_nop
  enable_authz_host=yes
fi

    _apmod_extra_msg=""
      case "$enable_authz_host" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authz_host" = "static" -o "$enable_authz_host" = "shared"; then
    :
  elif test "$enable_authz_host" = "yes"; then
    enable_authz_host=$module_default
  elif test "$enable_authz_host" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_host=$module_default
    else
      enable_authz_host=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_host" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authz_host=$module_default
    else
      enable_authz_host=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_host" = "all" -o "$enable_authz_host" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_host=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_host=no
    fi
  elif test "$enable_authz_host" = "reallyall" -o "$enable_authz_host" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authz_host" != "no" ; then
      enable_authz_host=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_host=no
    fi
  else
    enable_authz_host=no
  fi
  if test "$enable_authz_host" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authz_host$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authz_host$_apmod_extra_msg" >&6; }
  if test "$enable_authz_host" != "no"; then
    case "$enable_authz_host" in
    static*)
      MODLIST="$MODLIST authz_host"
      if test "authz_host" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authz_host"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_host"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authz_host.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authz_host.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHZ_HOST_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHZ_HOST_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_HOST_LDADD)\""
    AP_LIBS="\$(MOD_AUTHZ_HOST_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHZ_HOST_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authz_host.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_HOST_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_HOST_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_groupfile" >&5
printf %s "checking whether to enable mod_authz_groupfile... " >&6; }
    # Check whether --enable-authz-groupfile was given.
if test ${enable_authz_groupfile+y}
then :
  enableval=$enable_authz_groupfile; force_authz_groupfile=$enableval
else $as_nop
  enable_authz_groupfile=yes
fi

    _apmod_extra_msg=""
      case "$enable_authz_groupfile" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authz_groupfile" = "static" -o "$enable_authz_groupfile" = "shared"; then
    :
  elif test "$enable_authz_groupfile" = "yes"; then
    enable_authz_groupfile=$module_default
  elif test "$enable_authz_groupfile" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_groupfile=$module_default
    else
      enable_authz_groupfile=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_groupfile" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authz_groupfile=$module_default
    else
      enable_authz_groupfile=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_groupfile" = "all" -o "$enable_authz_groupfile" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_groupfile=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_groupfile=no
    fi
  elif test "$enable_authz_groupfile" = "reallyall" -o "$enable_authz_groupfile" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authz_groupfile" != "no" ; then
      enable_authz_groupfile=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_groupfile=no
    fi
  else
    enable_authz_groupfile=no
  fi
  if test "$enable_authz_groupfile" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authz_groupfile$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authz_groupfile$_apmod_extra_msg" >&6; }
  if test "$enable_authz_groupfile" != "no"; then
    case "$enable_authz_groupfile" in
    static*)
      MODLIST="$MODLIST authz_groupfile"
      if test "authz_groupfile" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authz_groupfile"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_groupfile"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authz_groupfile.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authz_groupfile.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHZ_GROUPFILE_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHZ_GROUPFILE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_GROUPFILE_LDADD)\""
    AP_LIBS="\$(MOD_AUTHZ_GROUPFILE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHZ_GROUPFILE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authz_groupfile.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_GROUPFILE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_GROUPFILE_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_user" >&5
printf %s "checking whether to enable mod_authz_user... " >&6; }
    # Check whether --enable-authz-user was given.
if test ${enable_authz_user+y}
then :
  enableval=$enable_authz_user; force_authz_user=$enableval
else $as_nop
  enable_authz_user=yes
fi

    _apmod_extra_msg=""
      case "$enable_authz_user" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authz_user" = "static" -o "$enable_authz_user" = "shared"; then
    :
  elif test "$enable_authz_user" = "yes"; then
    enable_authz_user=$module_default
  elif test "$enable_authz_user" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_user=$module_default
    else
      enable_authz_user=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_user" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authz_user=$module_default
    else
      enable_authz_user=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_user" = "all" -o "$enable_authz_user" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_user=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_user=no
    fi
  elif test "$enable_authz_user" = "reallyall" -o "$enable_authz_user" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authz_user" != "no" ; then
      enable_authz_user=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_user=no
    fi
  else
    enable_authz_user=no
  fi
  if test "$enable_authz_user" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authz_user$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authz_user$_apmod_extra_msg" >&6; }
  if test "$enable_authz_user" != "no"; then
    case "$enable_authz_user" in
    static*)
      MODLIST="$MODLIST authz_user"
      if test "authz_user" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authz_user"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_user"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authz_user.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authz_user.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHZ_USER_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHZ_USER_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_USER_LDADD)\""
    AP_LIBS="\$(MOD_AUTHZ_USER_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHZ_USER_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authz_user.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_USER_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_USER_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_dbm" >&5
printf %s "checking whether to enable mod_authz_dbm... " >&6; }
    # Check whether --enable-authz-dbm was given.
if test ${enable_authz_dbm+y}
then :
  enableval=$enable_authz_dbm; force_authz_dbm=$enableval
else $as_nop
  enable_authz_dbm=most
fi

    _apmod_extra_msg=""
      case "$enable_authz_dbm" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authz_dbm" = "static" -o "$enable_authz_dbm" = "shared"; then
    :
  elif test "$enable_authz_dbm" = "yes"; then
    enable_authz_dbm=$module_default
  elif test "$enable_authz_dbm" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_dbm=$module_default
    else
      enable_authz_dbm=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_dbm" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authz_dbm=$module_default
    else
      enable_authz_dbm=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_dbm" = "all" -o "$enable_authz_dbm" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_dbm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_dbm=no
    fi
  elif test "$enable_authz_dbm" = "reallyall" -o "$enable_authz_dbm" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authz_dbm" != "no" ; then
      enable_authz_dbm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_dbm=no
    fi
  else
    enable_authz_dbm=no
  fi
  if test "$enable_authz_dbm" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authz_dbm$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authz_dbm$_apmod_extra_msg" >&6; }
  if test "$enable_authz_dbm" != "no"; then
    case "$enable_authz_dbm" in
    static*)
      MODLIST="$MODLIST authz_dbm"
      if test "authz_dbm" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authz_dbm"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_dbm"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authz_dbm.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authz_dbm.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHZ_DBM_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHZ_DBM_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_DBM_LDADD)\""
    AP_LIBS="\$(MOD_AUTHZ_DBM_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHZ_DBM_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authz_dbm.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_DBM_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_DBM_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_owner" >&5
printf %s "checking whether to enable mod_authz_owner... " >&6; }
    # Check whether --enable-authz-owner was given.
if test ${enable_authz_owner+y}
then :
  enableval=$enable_authz_owner; force_authz_owner=$enableval
else $as_nop
  enable_authz_owner=most
fi

    _apmod_extra_msg=""
      case "$enable_authz_owner" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authz_owner" = "static" -o "$enable_authz_owner" = "shared"; then
    :
  elif test "$enable_authz_owner" = "yes"; then
    enable_authz_owner=$module_default
  elif test "$enable_authz_owner" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_owner=$module_default
    else
      enable_authz_owner=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_owner" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authz_owner=$module_default
    else
      enable_authz_owner=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_owner" = "all" -o "$enable_authz_owner" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_owner=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_owner=no
    fi
  elif test "$enable_authz_owner" = "reallyall" -o "$enable_authz_owner" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authz_owner" != "no" ; then
      enable_authz_owner=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_owner=no
    fi
  else
    enable_authz_owner=no
  fi
  if test "$enable_authz_owner" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authz_owner$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authz_owner$_apmod_extra_msg" >&6; }
  if test "$enable_authz_owner" != "no"; then
    case "$enable_authz_owner" in
    static*)
      MODLIST="$MODLIST authz_owner"
      if test "authz_owner" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authz_owner"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_owner"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authz_owner.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authz_owner.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHZ_OWNER_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHZ_OWNER_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_OWNER_LDADD)\""
    AP_LIBS="\$(MOD_AUTHZ_OWNER_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHZ_OWNER_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authz_owner.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_OWNER_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_OWNER_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_dbd" >&5
printf %s "checking whether to enable mod_authz_dbd... " >&6; }
    # Check whether --enable-authz-dbd was given.
if test ${enable_authz_dbd+y}
then :
  enableval=$enable_authz_dbd; force_authz_dbd=$enableval
else $as_nop
  enable_authz_dbd=most
fi

    _apmod_extra_msg=""
      case "$enable_authz_dbd" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authz_dbd" = "static" -o "$enable_authz_dbd" = "shared"; then
    :
  elif test "$enable_authz_dbd" = "yes"; then
    enable_authz_dbd=$module_default
  elif test "$enable_authz_dbd" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_dbd=$module_default
    else
      enable_authz_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_dbd" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authz_dbd=$module_default
    else
      enable_authz_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_dbd" = "all" -o "$enable_authz_dbd" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_dbd=no
    fi
  elif test "$enable_authz_dbd" = "reallyall" -o "$enable_authz_dbd" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authz_dbd" != "no" ; then
      enable_authz_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_dbd=no
    fi
  else
    enable_authz_dbd=no
  fi
  if test "$enable_authz_dbd" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authz_dbd$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authz_dbd$_apmod_extra_msg" >&6; }
  if test "$enable_authz_dbd" != "no"; then
    case "$enable_authz_dbd" in
    static*)
      MODLIST="$MODLIST authz_dbd"
      if test "authz_dbd" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authz_dbd"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_dbd"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authz_dbd.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authz_dbd.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHZ_DBD_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHZ_DBD_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_DBD_LDADD)\""
    AP_LIBS="\$(MOD_AUTHZ_DBD_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHZ_DBD_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authz_dbd.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_DBD_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_DBD_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authz_core" >&5
printf %s "checking whether to enable mod_authz_core... " >&6; }
    # Check whether --enable-authz-core was given.
if test ${enable_authz_core+y}
then :
  enableval=$enable_authz_core; force_authz_core=$enableval
else $as_nop
  enable_authz_core=yes
fi

    _apmod_extra_msg=""
      case "$enable_authz_core" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authz_core" = "static" -o "$enable_authz_core" = "shared"; then
    :
  elif test "$enable_authz_core" = "yes"; then
    enable_authz_core=$module_default
  elif test "$enable_authz_core" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_core=$module_default
    else
      enable_authz_core=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_core" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authz_core=$module_default
    else
      enable_authz_core=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authz_core" = "all" -o "$enable_authz_core" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authz_core=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_core=no
    fi
  elif test "$enable_authz_core" = "reallyall" -o "$enable_authz_core" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authz_core" != "no" ; then
      enable_authz_core=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authz_core=no
    fi
  else
    enable_authz_core=no
  fi
  if test "$enable_authz_core" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authz_core$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authz_core$_apmod_extra_msg" >&6; }
  if test "$enable_authz_core" != "no"; then
    case "$enable_authz_core" in
    static*)
      MODLIST="$MODLIST authz_core"
      if test "authz_core" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authz_core"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authz_core"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authz_core.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authz_core.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHZ_CORE_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHZ_CORE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHZ_CORE_LDADD)\""
    AP_LIBS="\$(MOD_AUTHZ_CORE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHZ_CORE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authz_core.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_CORE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_CORE_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authnz_ldap" >&5
printf %s "checking whether to enable mod_authnz_ldap... " >&6; }
    # Check whether --enable-authnz-ldap was given.
if test ${enable_authnz_ldap+y}
then :
  enableval=$enable_authnz_ldap; force_authnz_ldap=$enableval
else $as_nop
  enable_authnz_ldap=most
fi

    _apmod_extra_msg=""
      case "$enable_authnz_ldap" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authnz_ldap" = "static" -o "$enable_authnz_ldap" = "shared"; then
    :
  elif test "$enable_authnz_ldap" = "yes"; then
    enable_authnz_ldap=$module_default
  elif test "$enable_authnz_ldap" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authnz_ldap=$module_default
    else
      enable_authnz_ldap=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authnz_ldap" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authnz_ldap=$module_default
    else
      enable_authnz_ldap=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authnz_ldap" = "all" -o "$enable_authnz_ldap" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authnz_ldap=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authnz_ldap=no
    fi
  elif test "$enable_authnz_ldap" = "reallyall" -o "$enable_authnz_ldap" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authnz_ldap" != "no" ; then
      enable_authnz_ldap=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authnz_ldap=no
    fi
  else
    enable_authnz_ldap=no
  fi
  if test "$enable_authnz_ldap" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap support in apr/apr-util" >&5
printf %s "checking for ldap support in apr/apr-util... " >&6; }
if test ${ac_cv_APR_HAS_LDAP+y}
then :
  printf %s "(cached) " >&6
else $as_nop

    apache_old_cppflags="$CPPFLAGS"
    CPPFLAGS="$CPPFLAGS $INCLUDES"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr_ldap.h>
#if APR_HAS_LDAP
YES_IS_DEFINED
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
then :
  ac_cv_APR_HAS_LDAP=yes
else $as_nop
  ac_cv_APR_HAS_LDAP=no
fi
rm -rf conftest*

    CPPFLAGS="$apache_old_cppflags"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_APR_HAS_LDAP" >&5
printf "%s\n" "$ac_cv_APR_HAS_LDAP" >&6; }

  if test "$ac_cv_APR_HAS_LDAP" = "yes" ; then
    if test -z "$apu_config" ; then
      LDAP_LIBS="`$apr_config --ldap-libs`"
    else
      LDAP_LIBS="`$apu_config --ldap-libs`"
    fi

  if test "x$MOD_AUTHNZ_LDAP_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_AUTHNZ_LDAP_LDADD to \"$LDAP_LIBS\""
    MOD_AUTHNZ_LDAP_LDADD="$LDAP_LIBS"
  else
    apr_addto_bugger="$LDAP_LIBS"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_AUTHNZ_LDAP_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_AUTHNZ_LDAP_LDADD"
        MOD_AUTHNZ_LDAP_LDADD="$MOD_AUTHNZ_LDAP_LDADD $i"
      fi
    done
  fi


  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: apr/apr-util is compiled without ldap support" >&5
printf "%s\n" "$as_me: WARNING: apr/apr-util is compiled without ldap support" >&2;}
    enable_authnz_ldap=no
  fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authnz_ldap" >&5
printf %s "checking whether to enable mod_authnz_ldap... " >&6; }
            if test "$enable_authnz_ldap" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_authnz_ldap has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authnz_ldap$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authnz_ldap$_apmod_extra_msg" >&6; }
  if test "$enable_authnz_ldap" != "no"; then
    case "$enable_authnz_ldap" in
    static*)
      MODLIST="$MODLIST authnz_ldap"
      if test "authnz_ldap" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authnz_ldap"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authnz_ldap"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authnz_ldap.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authnz_ldap.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHNZ_LDAP_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHNZ_LDAP_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHNZ_LDAP_LDADD)\""
    AP_LIBS="\$(MOD_AUTHNZ_LDAP_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHNZ_LDAP_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authnz_ldap.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHNZ_LDAP_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHNZ_LDAP_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_authnz_fcgi" >&5
printf %s "checking whether to enable mod_authnz_fcgi... " >&6; }
    # Check whether --enable-authnz-fcgi was given.
if test ${enable_authnz_fcgi+y}
then :
  enableval=$enable_authnz_fcgi; force_authnz_fcgi=$enableval
else $as_nop
  enable_authnz_fcgi=no
fi

    _apmod_extra_msg=""
      case "$enable_authnz_fcgi" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_authnz_fcgi" = "static" -o "$enable_authnz_fcgi" = "shared"; then
    :
  elif test "$enable_authnz_fcgi" = "yes"; then
    enable_authnz_fcgi=$module_default
  elif test "$enable_authnz_fcgi" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authnz_fcgi=$module_default
    else
      enable_authnz_fcgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authnz_fcgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_authnz_fcgi=$module_default
    else
      enable_authnz_fcgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_authnz_fcgi" = "all" -o "$enable_authnz_fcgi" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_authnz_fcgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authnz_fcgi=no
    fi
  elif test "$enable_authnz_fcgi" = "reallyall" -o "$enable_authnz_fcgi" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_authnz_fcgi" != "no" ; then
      enable_authnz_fcgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_authnz_fcgi=no
    fi
  else
    enable_authnz_fcgi=no
  fi
  if test "$enable_authnz_fcgi" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_authnz_fcgi$_apmod_extra_msg" >&5
printf "%s\n" "$enable_authnz_fcgi$_apmod_extra_msg" >&6; }
  if test "$enable_authnz_fcgi" != "no"; then
    case "$enable_authnz_fcgi" in
    static*)
      MODLIST="$MODLIST authnz_fcgi"
      if test "authnz_fcgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES authnz_fcgi"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},authnz_fcgi"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_authnz_fcgi.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_authnz_fcgi.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTHNZ_FCGI_LDADD)
EOF
      if test ! -z "\$(MOD_AUTHNZ_FCGI_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTHNZ_FCGI_LDADD)\""
    AP_LIBS="\$(MOD_AUTHNZ_FCGI_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTHNZ_FCGI_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_authnz_fcgi.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHNZ_FCGI_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHNZ_FCGI_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_access_compat" >&5
printf %s "checking whether to enable mod_access_compat... " >&6; }
    # Check whether --enable-access-compat was given.
if test ${enable_access_compat+y}
then :
  enableval=$enable_access_compat; force_access_compat=$enableval
else $as_nop
  enable_access_compat=yes
fi

    _apmod_extra_msg=""
      case "$enable_access_compat" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_access_compat" = "static" -o "$enable_access_compat" = "shared"; then
    :
  elif test "$enable_access_compat" = "yes"; then
    enable_access_compat=$module_default
  elif test "$enable_access_compat" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_access_compat=$module_default
    else
      enable_access_compat=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_access_compat" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_access_compat=$module_default
    else
      enable_access_compat=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_access_compat" = "all" -o "$enable_access_compat" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_access_compat=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_access_compat=no
    fi
  elif test "$enable_access_compat" = "reallyall" -o "$enable_access_compat" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_access_compat" != "no" ; then
      enable_access_compat=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_access_compat=no
    fi
  else
    enable_access_compat=no
  fi
  if test "$enable_access_compat" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_access_compat$_apmod_extra_msg" >&5
printf "%s\n" "$enable_access_compat$_apmod_extra_msg" >&6; }
  if test "$enable_access_compat" != "no"; then
    case "$enable_access_compat" in
    static*)
      MODLIST="$MODLIST access_compat"
      if test "access_compat" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES access_compat"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},access_compat"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_access_compat.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_access_compat.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_ACCESS_COMPAT_LDADD)
EOF
      if test ! -z "\$(MOD_ACCESS_COMPAT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ACCESS_COMPAT_LDADD)\""
    AP_LIBS="\$(MOD_ACCESS_COMPAT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_ACCESS_COMPAT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_access_compat.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ACCESS_COMPAT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACCESS_COMPAT_LDADD"



  fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_basic" >&5
printf %s "checking whether to enable mod_auth_basic... " >&6; }
    # Check whether --enable-auth-basic was given.
if test ${enable_auth_basic+y}
then :
  enableval=$enable_auth_basic; force_auth_basic=$enableval
else $as_nop
  enable_auth_basic=yes
fi

    _apmod_extra_msg=""
      case "$enable_auth_basic" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_auth_basic" = "static" -o "$enable_auth_basic" = "shared"; then
    :
  elif test "$enable_auth_basic" = "yes"; then
    enable_auth_basic=$module_default
  elif test "$enable_auth_basic" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_auth_basic=$module_default
    else
      enable_auth_basic=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth_basic" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_auth_basic=$module_default
    else
      enable_auth_basic=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth_basic" = "all" -o "$enable_auth_basic" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_auth_basic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_basic=no
    fi
  elif test "$enable_auth_basic" = "reallyall" -o "$enable_auth_basic" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_auth_basic" != "no" ; then
      enable_auth_basic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_basic=no
    fi
  else
    enable_auth_basic=no
  fi
  if test "$enable_auth_basic" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_auth_basic$_apmod_extra_msg" >&5
printf "%s\n" "$enable_auth_basic$_apmod_extra_msg" >&6; }
  if test "$enable_auth_basic" != "no"; then
    case "$enable_auth_basic" in
    static*)
      MODLIST="$MODLIST auth_basic"
      if test "auth_basic" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES auth_basic"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},auth_basic"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_auth_basic.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_auth_basic.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTH_BASIC_LDADD)
EOF
      if test ! -z "\$(MOD_AUTH_BASIC_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTH_BASIC_LDADD)\""
    AP_LIBS="\$(MOD_AUTH_BASIC_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTH_BASIC_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_auth_basic.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_BASIC_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_BASIC_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_form" >&5
printf %s "checking whether to enable mod_auth_form... " >&6; }
    # Check whether --enable-auth-form was given.
if test ${enable_auth_form+y}
then :
  enableval=$enable_auth_form; force_auth_form=$enableval
else $as_nop
  enable_auth_form=most
fi

    _apmod_extra_msg=""
      case "$enable_auth_form" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_auth_form" = "static" -o "$enable_auth_form" = "shared"; then
    :
  elif test "$enable_auth_form" = "yes"; then
    enable_auth_form=$module_default
  elif test "$enable_auth_form" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_auth_form=$module_default
    else
      enable_auth_form=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth_form" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_auth_form=$module_default
    else
      enable_auth_form=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth_form" = "all" -o "$enable_auth_form" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_auth_form=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_form=no
    fi
  elif test "$enable_auth_form" = "reallyall" -o "$enable_auth_form" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_auth_form" != "no" ; then
      enable_auth_form=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_form=no
    fi
  else
    enable_auth_form=no
  fi
  if test "$enable_auth_form" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_auth_form$_apmod_extra_msg" >&5
printf "%s\n" "$enable_auth_form$_apmod_extra_msg" >&6; }
  if test "$enable_auth_form" != "no"; then
    case "$enable_auth_form" in
    static*)
      MODLIST="$MODLIST auth_form"
      if test "auth_form" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES auth_form"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},auth_form"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_auth_form.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_auth_form.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTH_FORM_LDADD)
EOF
      if test ! -z "\$(MOD_AUTH_FORM_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTH_FORM_LDADD)\""
    AP_LIBS="\$(MOD_AUTH_FORM_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTH_FORM_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_auth_form.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_FORM_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_FORM_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_digest" >&5
printf %s "checking whether to enable mod_auth_digest... " >&6; }
    # Check whether --enable-auth-digest was given.
if test ${enable_auth_digest+y}
then :
  enableval=$enable_auth_digest; force_auth_digest=$enableval
else $as_nop
  enable_auth_digest=most
fi

    _apmod_extra_msg=""
      case "$enable_auth_digest" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_auth_digest" = "static" -o "$enable_auth_digest" = "shared"; then
    :
  elif test "$enable_auth_digest" = "yes"; then
    enable_auth_digest=$module_default
  elif test "$enable_auth_digest" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_auth_digest=$module_default
    else
      enable_auth_digest=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth_digest" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_auth_digest=$module_default
    else
      enable_auth_digest=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_auth_digest" = "all" -o "$enable_auth_digest" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_auth_digest=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_digest=no
    fi
  elif test "$enable_auth_digest" = "reallyall" -o "$enable_auth_digest" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_auth_digest" != "no" ; then
      enable_auth_digest=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_digest=no
    fi
  else
    enable_auth_digest=no
  fi
  if test "$enable_auth_digest" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


apr_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $INCLUDES"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr.h>
#if APR_HAS_RANDOM
YES_IS_DEFINED
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
then :
  ac_cv_define_APR_HAS_RANDOM=yes
else $as_nop
  ac_cv_define_APR_HAS_RANDOM=no
fi
rm -rf conftest*

CPPFLAGS=$apr_old_cppflags

  if test $ac_cv_define_APR_HAS_RANDOM = "no"; then
    echo "You need APR random support to use mod_auth_digest."
    echo "Look at APR configure options --with-egd and --with-devrandom."
    enable_auth_digest="no"
  fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_auth_digest" >&5
printf %s "checking whether to enable mod_auth_digest... " >&6; }
            if test "$enable_auth_digest" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_auth_digest has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_auth_digest$_apmod_extra_msg" >&5
printf "%s\n" "$enable_auth_digest$_apmod_extra_msg" >&6; }
  if test "$enable_auth_digest" != "no"; then
    case "$enable_auth_digest" in
    static*)
      MODLIST="$MODLIST auth_digest"
      if test "auth_digest" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES auth_digest"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},auth_digest"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_auth_digest.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_auth_digest.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTH_DIGEST_LDADD)
EOF
      if test ! -z "\$(MOD_AUTH_DIGEST_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTH_DIGEST_LDADD)\""
    AP_LIBS="\$(MOD_AUTH_DIGEST_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTH_DIGEST_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_auth_digest.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_DIGEST_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_DIGEST_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_allowmethods" >&5
printf %s "checking whether to enable mod_allowmethods... " >&6; }
    # Check whether --enable-allowmethods was given.
if test ${enable_allowmethods+y}
then :
  enableval=$enable_allowmethods; force_allowmethods=$enableval
else $as_nop
  enable_allowmethods=most
fi

    _apmod_extra_msg=""
      case "$enable_allowmethods" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_allowmethods" = "static" -o "$enable_allowmethods" = "shared"; then
    :
  elif test "$enable_allowmethods" = "yes"; then
    enable_allowmethods=$module_default
  elif test "$enable_allowmethods" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_allowmethods=$module_default
    else
      enable_allowmethods=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_allowmethods" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_allowmethods=$module_default
    else
      enable_allowmethods=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_allowmethods" = "all" -o "$enable_allowmethods" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_allowmethods=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_allowmethods=no
    fi
  elif test "$enable_allowmethods" = "reallyall" -o "$enable_allowmethods" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_allowmethods" != "no" ; then
      enable_allowmethods=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_allowmethods=no
    fi
  else
    enable_allowmethods=no
  fi
  if test "$enable_allowmethods" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_allowmethods$_apmod_extra_msg" >&5
printf "%s\n" "$enable_allowmethods$_apmod_extra_msg" >&6; }
  if test "$enable_allowmethods" != "no"; then
    case "$enable_allowmethods" in
    static*)
      MODLIST="$MODLIST allowmethods"
      if test "allowmethods" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES allowmethods"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},allowmethods"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_allowmethods.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_allowmethods.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_ALLOWMETHODS_LDADD)
EOF
      if test ! -z "\$(MOD_ALLOWMETHODS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ALLOWMETHODS_LDADD)\""
    AP_LIBS="\$(MOD_ALLOWMETHODS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_ALLOWMETHODS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_allowmethods.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ALLOWMETHODS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ALLOWMETHODS_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=arch/win32
  modpath_current=modules/arch/win32
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d arch/win32 || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_isapi" >&5
printf %s "checking whether to enable mod_isapi... " >&6; }
    # Check whether --enable-isapi was given.
if test ${enable_isapi+y}
then :
  enableval=$enable_isapi; force_isapi=$enableval
else $as_nop
  enable_isapi=no
fi

    _apmod_extra_msg=""
      case "$enable_isapi" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_isapi" = "static" -o "$enable_isapi" = "shared"; then
    :
  elif test "$enable_isapi" = "yes"; then
    enable_isapi=$module_default
  elif test "$enable_isapi" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_isapi=$module_default
    else
      enable_isapi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_isapi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_isapi=$module_default
    else
      enable_isapi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_isapi" = "all" -o "$enable_isapi" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_isapi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_isapi=no
    fi
  elif test "$enable_isapi" = "reallyall" -o "$enable_isapi" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_isapi" != "no" ; then
      enable_isapi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_isapi=no
    fi
  else
    enable_isapi=no
  fi
  if test "$enable_isapi" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_isapi$_apmod_extra_msg" >&5
printf "%s\n" "$enable_isapi$_apmod_extra_msg" >&6; }
  if test "$enable_isapi" != "no"; then
    case "$enable_isapi" in
    static*)
      MODLIST="$MODLIST isapi"
      if test "isapi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES isapi"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},isapi"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_isapi.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_isapi.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_ISAPI_LDADD)
EOF
      if test ! -z "\$(MOD_ISAPI_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ISAPI_LDADD)\""
    AP_LIBS="\$(MOD_ISAPI_LDADD)"
  else
    apr_addto_bugger="\$(MOD_ISAPI_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_isapi.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ISAPI_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ISAPI_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=cache
  modpath_current=modules/cache
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d cache || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_file_cache" >&5
printf %s "checking whether to enable mod_file_cache... " >&6; }
    # Check whether --enable-file-cache was given.
if test ${enable_file_cache+y}
then :
  enableval=$enable_file_cache; force_file_cache=$enableval
else $as_nop
  enable_file_cache=most
fi

    _apmod_extra_msg=""
      case "$enable_file_cache" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_file_cache" = "static" -o "$enable_file_cache" = "shared"; then
    :
  elif test "$enable_file_cache" = "yes"; then
    enable_file_cache=$module_default
  elif test "$enable_file_cache" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_file_cache=$module_default
    else
      enable_file_cache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_file_cache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_file_cache=$module_default
    else
      enable_file_cache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_file_cache" = "all" -o "$enable_file_cache" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_file_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_file_cache=no
    fi
  elif test "$enable_file_cache" = "reallyall" -o "$enable_file_cache" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_file_cache" != "no" ; then
      enable_file_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_file_cache=no
    fi
  else
    enable_file_cache=no
  fi
  if test "$enable_file_cache" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_file_cache$_apmod_extra_msg" >&5
printf "%s\n" "$enable_file_cache$_apmod_extra_msg" >&6; }
  if test "$enable_file_cache" != "no"; then
    case "$enable_file_cache" in
    static*)
      MODLIST="$MODLIST file_cache"
      if test "file_cache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES file_cache"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},file_cache"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_file_cache.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_file_cache.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_FILE_CACHE_LDADD)
EOF
      if test ! -z "\$(MOD_FILE_CACHE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_FILE_CACHE_LDADD)\""
    AP_LIBS="\$(MOD_FILE_CACHE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_FILE_CACHE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_file_cache.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_FILE_CACHE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILE_CACHE_LDADD"



  fi


cache_objs="mod_cache.lo cache_storage.lo cache_util.lo "
cache_disk_objs="mod_cache_disk.lo"
cache_socache_objs="mod_cache_socache.lo"

case "$host" in
  *os2*)
    # OS/2 DLLs must resolve all symbols at build time
    # and we need some from main cache module
    cache_disk_objs="$cache_disk_objs mod_cache.la"
    cache_socache_objs="$cache_socache_objs mod_cache.la"
    ;;
esac


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache" >&5
printf %s "checking whether to enable mod_cache... " >&6; }
    # Check whether --enable-cache was given.
if test ${enable_cache+y}
then :
  enableval=$enable_cache; force_cache=$enableval
else $as_nop
  enable_cache=most
fi

    _apmod_extra_msg=""
      case "$enable_cache" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_cache" = "static" -o "$enable_cache" = "shared"; then
    :
  elif test "$enable_cache" = "yes"; then
    enable_cache=$module_default
  elif test "$enable_cache" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cache=$module_default
    else
      enable_cache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_cache=$module_default
    else
      enable_cache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cache" = "all" -o "$enable_cache" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cache=no
    fi
  elif test "$enable_cache" = "reallyall" -o "$enable_cache" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_cache" != "no" ; then
      enable_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cache=no
    fi
  else
    enable_cache=no
  fi
  if test "$enable_cache" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cache$_apmod_extra_msg" >&5
printf "%s\n" "$enable_cache$_apmod_extra_msg" >&6; }
  if test "$enable_cache" != "no"; then
    case "$enable_cache" in
    static*)
      MODLIST="$MODLIST cache"
      if test "cache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cache"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cache"
      fi
      ;;
    esac


  if test -z "$cache_objs"; then
    objects="mod_cache.lo"
  else
    objects="$cache_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_cache.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CACHE_LDADD)
EOF
      if test ! -z "\$(MOD_CACHE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CACHE_LDADD)\""
    AP_LIBS="\$(MOD_CACHE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CACHE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_cache.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache_disk" >&5
printf %s "checking whether to enable mod_cache_disk... " >&6; }
    # Check whether --enable-cache-disk was given.
if test ${enable_cache_disk+y}
then :
  enableval=$enable_cache_disk; force_cache_disk=$enableval
else $as_nop
  enable_cache_disk=most
fi

    _apmod_extra_msg=""
      case "$enable_cache_disk" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_cache_disk" = "static" -o "$enable_cache_disk" = "shared"; then
    :
  elif test "$enable_cache_disk" = "yes"; then
    enable_cache_disk=$module_default
  elif test "$enable_cache_disk" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cache_disk=$module_default
    else
      enable_cache_disk=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cache_disk" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_cache_disk=$module_default
    else
      enable_cache_disk=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cache_disk" = "all" -o "$enable_cache_disk" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cache_disk=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cache_disk=no
    fi
  elif test "$enable_cache_disk" = "reallyall" -o "$enable_cache_disk" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_cache_disk" != "no" ; then
      enable_cache_disk=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cache_disk=no
    fi
  else
    enable_cache_disk=no
  fi
  if test "$enable_cache_disk" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_cache" = "no" ; then
                              enable_cache_disk=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_cache is disabled but required for mod_cache_disk\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_cache is disabled but required for mod_cache_disk\"" >&2;}
                            elif test "$enable_cache_disk" = "static" && test "$enable_cache" != "static" ; then
                              enable_cache_disk=$enable_cache
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_cache_disk shared because mod_cache is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_cache_disk shared because mod_cache is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache_disk" >&5
printf %s "checking whether to enable mod_cache_disk... " >&6; }
            if test "$enable_cache_disk" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_cache_disk has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cache_disk$_apmod_extra_msg" >&5
printf "%s\n" "$enable_cache_disk$_apmod_extra_msg" >&6; }
  if test "$enable_cache_disk" != "no"; then
    case "$enable_cache_disk" in
    static*)
      MODLIST="$MODLIST cache_disk"
      if test "cache_disk" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cache_disk"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cache_disk"
      fi
      ;;
    esac


  if test -z "$cache_disk_objs"; then
    objects="mod_cache_disk.lo"
  else
    objects="$cache_disk_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_cache_disk.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CACHE_DISK_LDADD)
EOF
      if test ! -z "\$(MOD_CACHE_DISK_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CACHE_DISK_LDADD)\""
    AP_LIBS="\$(MOD_CACHE_DISK_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CACHE_DISK_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_cache_disk.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_DISK_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_DISK_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cache_socache" >&5
printf %s "checking whether to enable mod_cache_socache... " >&6; }
    # Check whether --enable-cache-socache was given.
if test ${enable_cache_socache+y}
then :
  enableval=$enable_cache_socache; force_cache_socache=$enableval
else $as_nop
  enable_cache_socache=most
fi

    _apmod_extra_msg=""
      case "$enable_cache_socache" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_cache_socache" = "static" -o "$enable_cache_socache" = "shared"; then
    :
  elif test "$enable_cache_socache" = "yes"; then
    enable_cache_socache=$module_default
  elif test "$enable_cache_socache" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cache_socache=$module_default
    else
      enable_cache_socache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cache_socache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_cache_socache=$module_default
    else
      enable_cache_socache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cache_socache" = "all" -o "$enable_cache_socache" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cache_socache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cache_socache=no
    fi
  elif test "$enable_cache_socache" = "reallyall" -o "$enable_cache_socache" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_cache_socache" != "no" ; then
      enable_cache_socache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cache_socache=no
    fi
  else
    enable_cache_socache=no
  fi
  if test "$enable_cache_socache" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cache_socache$_apmod_extra_msg" >&5
printf "%s\n" "$enable_cache_socache$_apmod_extra_msg" >&6; }
  if test "$enable_cache_socache" != "no"; then
    case "$enable_cache_socache" in
    static*)
      MODLIST="$MODLIST cache_socache"
      if test "cache_socache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cache_socache"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cache_socache"
      fi
      ;;
    esac


  if test -z "$cache_socache_objs"; then
    objects="mod_cache_socache.lo"
  else
    objects="$cache_socache_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_cache_socache.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CACHE_SOCACHE_LDADD)
EOF
      if test ! -z "\$(MOD_CACHE_SOCACHE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CACHE_SOCACHE_LDADD)\""
    AP_LIBS="\$(MOD_CACHE_SOCACHE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CACHE_SOCACHE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_cache_socache.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_SOCACHE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_SOCACHE_LDADD"



  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_shmcb" >&5
printf %s "checking whether to enable mod_socache_shmcb... " >&6; }
    # Check whether --enable-socache-shmcb was given.
if test ${enable_socache_shmcb+y}
then :
  enableval=$enable_socache_shmcb; force_socache_shmcb=$enableval
else $as_nop
  enable_socache_shmcb=most
fi

    _apmod_extra_msg=""
      case "$enable_socache_shmcb" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_socache_shmcb" = "static" -o "$enable_socache_shmcb" = "shared"; then
    :
  elif test "$enable_socache_shmcb" = "yes"; then
    enable_socache_shmcb=$module_default
  elif test "$enable_socache_shmcb" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_shmcb=$module_default
    else
      enable_socache_shmcb=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_shmcb" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_socache_shmcb=$module_default
    else
      enable_socache_shmcb=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_shmcb" = "all" -o "$enable_socache_shmcb" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_shmcb=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_shmcb=no
    fi
  elif test "$enable_socache_shmcb" = "reallyall" -o "$enable_socache_shmcb" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_socache_shmcb" != "no" ; then
      enable_socache_shmcb=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_shmcb=no
    fi
  else
    enable_socache_shmcb=no
  fi
  if test "$enable_socache_shmcb" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_socache_shmcb$_apmod_extra_msg" >&5
printf "%s\n" "$enable_socache_shmcb$_apmod_extra_msg" >&6; }
  if test "$enable_socache_shmcb" != "no"; then
    case "$enable_socache_shmcb" in
    static*)
      MODLIST="$MODLIST socache_shmcb"
      if test "socache_shmcb" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES socache_shmcb"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_shmcb"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_socache_shmcb.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_socache_shmcb.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SOCACHE_SHMCB_LDADD)
EOF
      if test ! -z "\$(MOD_SOCACHE_SHMCB_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_SHMCB_LDADD)\""
    AP_LIBS="\$(MOD_SOCACHE_SHMCB_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SOCACHE_SHMCB_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_socache_shmcb.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_SHMCB_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_SHMCB_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_dbm" >&5
printf %s "checking whether to enable mod_socache_dbm... " >&6; }
    # Check whether --enable-socache-dbm was given.
if test ${enable_socache_dbm+y}
then :
  enableval=$enable_socache_dbm; force_socache_dbm=$enableval
else $as_nop
  enable_socache_dbm=most
fi

    _apmod_extra_msg=""
      case "$enable_socache_dbm" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_socache_dbm" = "static" -o "$enable_socache_dbm" = "shared"; then
    :
  elif test "$enable_socache_dbm" = "yes"; then
    enable_socache_dbm=$module_default
  elif test "$enable_socache_dbm" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_dbm=$module_default
    else
      enable_socache_dbm=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_dbm" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_socache_dbm=$module_default
    else
      enable_socache_dbm=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_dbm" = "all" -o "$enable_socache_dbm" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_dbm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_dbm=no
    fi
  elif test "$enable_socache_dbm" = "reallyall" -o "$enable_socache_dbm" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_socache_dbm" != "no" ; then
      enable_socache_dbm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_dbm=no
    fi
  else
    enable_socache_dbm=no
  fi
  if test "$enable_socache_dbm" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_socache_dbm$_apmod_extra_msg" >&5
printf "%s\n" "$enable_socache_dbm$_apmod_extra_msg" >&6; }
  if test "$enable_socache_dbm" != "no"; then
    case "$enable_socache_dbm" in
    static*)
      MODLIST="$MODLIST socache_dbm"
      if test "socache_dbm" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES socache_dbm"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_dbm"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_socache_dbm.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_socache_dbm.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SOCACHE_DBM_LDADD)
EOF
      if test ! -z "\$(MOD_SOCACHE_DBM_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_DBM_LDADD)\""
    AP_LIBS="\$(MOD_SOCACHE_DBM_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SOCACHE_DBM_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_socache_dbm.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_DBM_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_DBM_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_memcache" >&5
printf %s "checking whether to enable mod_socache_memcache... " >&6; }
    # Check whether --enable-socache-memcache was given.
if test ${enable_socache_memcache+y}
then :
  enableval=$enable_socache_memcache; force_socache_memcache=$enableval
else $as_nop
  enable_socache_memcache=most
fi

    _apmod_extra_msg=""
      case "$enable_socache_memcache" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_socache_memcache" = "static" -o "$enable_socache_memcache" = "shared"; then
    :
  elif test "$enable_socache_memcache" = "yes"; then
    enable_socache_memcache=$module_default
  elif test "$enable_socache_memcache" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_memcache=$module_default
    else
      enable_socache_memcache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_memcache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_socache_memcache=$module_default
    else
      enable_socache_memcache=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_memcache" = "all" -o "$enable_socache_memcache" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_memcache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_memcache=no
    fi
  elif test "$enable_socache_memcache" = "reallyall" -o "$enable_socache_memcache" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_socache_memcache" != "no" ; then
      enable_socache_memcache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_memcache=no
    fi
  else
    enable_socache_memcache=no
  fi
  if test "$enable_socache_memcache" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_socache_memcache$_apmod_extra_msg" >&5
printf "%s\n" "$enable_socache_memcache$_apmod_extra_msg" >&6; }
  if test "$enable_socache_memcache" != "no"; then
    case "$enable_socache_memcache" in
    static*)
      MODLIST="$MODLIST socache_memcache"
      if test "socache_memcache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES socache_memcache"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_memcache"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_socache_memcache.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_socache_memcache.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SOCACHE_MEMCACHE_LDADD)
EOF
      if test ! -z "\$(MOD_SOCACHE_MEMCACHE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_MEMCACHE_LDADD)\""
    AP_LIBS="\$(MOD_SOCACHE_MEMCACHE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SOCACHE_MEMCACHE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_socache_memcache.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_MEMCACHE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_MEMCACHE_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_redis" >&5
printf %s "checking whether to enable mod_socache_redis... " >&6; }
    # Check whether --enable-socache-redis was given.
if test ${enable_socache_redis+y}
then :
  enableval=$enable_socache_redis; force_socache_redis=$enableval
else $as_nop
  enable_socache_redis=most
fi

    _apmod_extra_msg=""
      case "$enable_socache_redis" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_socache_redis" = "static" -o "$enable_socache_redis" = "shared"; then
    :
  elif test "$enable_socache_redis" = "yes"; then
    enable_socache_redis=$module_default
  elif test "$enable_socache_redis" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_redis=$module_default
    else
      enable_socache_redis=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_redis" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_socache_redis=$module_default
    else
      enable_socache_redis=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_redis" = "all" -o "$enable_socache_redis" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_redis=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_redis=no
    fi
  elif test "$enable_socache_redis" = "reallyall" -o "$enable_socache_redis" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_socache_redis" != "no" ; then
      enable_socache_redis=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_redis=no
    fi
  else
    enable_socache_redis=no
  fi
  if test "$enable_socache_redis" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_socache_redis$_apmod_extra_msg" >&5
printf "%s\n" "$enable_socache_redis$_apmod_extra_msg" >&6; }
  if test "$enable_socache_redis" != "no"; then
    case "$enable_socache_redis" in
    static*)
      MODLIST="$MODLIST socache_redis"
      if test "socache_redis" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES socache_redis"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_redis"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_socache_redis.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_socache_redis.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SOCACHE_REDIS_LDADD)
EOF
      if test ! -z "\$(MOD_SOCACHE_REDIS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_REDIS_LDADD)\""
    AP_LIBS="\$(MOD_SOCACHE_REDIS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SOCACHE_REDIS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_socache_redis.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_REDIS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_REDIS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_dc" >&5
printf %s "checking whether to enable mod_socache_dc... " >&6; }
    # Check whether --enable-socache-dc was given.
if test ${enable_socache_dc+y}
then :
  enableval=$enable_socache_dc; force_socache_dc=$enableval
else $as_nop
  enable_socache_dc=no
fi

    _apmod_extra_msg=""
      case "$enable_socache_dc" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_socache_dc" = "static" -o "$enable_socache_dc" = "shared"; then
    :
  elif test "$enable_socache_dc" = "yes"; then
    enable_socache_dc=$module_default
  elif test "$enable_socache_dc" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_dc=$module_default
    else
      enable_socache_dc=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_dc" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_socache_dc=$module_default
    else
      enable_socache_dc=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_socache_dc" = "all" -o "$enable_socache_dc" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_socache_dc=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_dc=no
    fi
  elif test "$enable_socache_dc" = "reallyall" -o "$enable_socache_dc" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_socache_dc" != "no" ; then
      enable_socache_dc=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_socache_dc=no
    fi
  else
    enable_socache_dc=no
  fi
  if test "$enable_socache_dc" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


if test "x$ap_distcache_configured" = "x"; then
    ap_distcache_found=""
  ap_distcache_base=""
  ap_distcache_libs=""
  ap_distcache_ldflags=""
  ap_distcache_with=""

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-provided distcache base" >&5
printf %s "checking for user-provided distcache base... " >&6; }

# Check whether --with-distcache was given.
if test ${with_distcache+y}
then :
  withval=$with_distcache;
        if test "x$withval" != "xyes" -a "x$withval" != "x"; then
            ap_distcache_with="yes"
      ap_distcache_base="`cd $withval ; pwd`"
    fi

fi

  if test "x$ap_distcache_base" = "x"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_distcache_base" >&5
printf "%s\n" "$ap_distcache_base" >&6; }
  fi

    saved_CPPFLAGS="$CPPFLAGS"
  saved_LIBS="$LIBS"
  saved_LDFLAGS="$LDFLAGS"

  if test "x$ap_distcache_base" != "x"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_distcache_base/include\""
    CPPFLAGS="-I$ap_distcache_base/include"
  else
    apr_addto_bugger="-I$ap_distcache_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"-I$ap_distcache_base/include\""
    MOD_INCLUDES="-I$ap_distcache_base/include"
  else
    apr_addto_bugger="-I$ap_distcache_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_INCLUDES"
        MOD_INCLUDES="$MOD_INCLUDES $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_distcache_base/lib\""
    LDFLAGS="-L$ap_distcache_base/lib"
  else
    apr_addto_bugger="-L$ap_distcache_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$ap_distcache_ldflags" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ap_distcache_ldflags to \"-L$ap_distcache_base/lib\""
    ap_distcache_ldflags="-L$ap_distcache_base/lib"
  else
    apr_addto_bugger="-L$ap_distcache_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ap_distcache_ldflags; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_distcache_ldflags"
        ap_distcache_ldflags="$ap_distcache_ldflags $i"
      fi
    done
  fi

    if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_distcache_base/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$ap_distcache_ldflags" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ap_distcache_ldflags to \"$ap_platform_runtime_link_flag$ap_distcache_base/lib\""
    ap_distcache_ldflags="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_distcache_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ap_distcache_ldflags; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_distcache_ldflags"
        ap_distcache_ldflags="$ap_distcache_ldflags $i"
      fi
    done
  fi

    fi
  fi
           for ac_header in distcache/dc_client.h
do :
  ac_fn_c_check_header_compile "$LINENO" "distcache/dc_client.h" "ac_cv_header_distcache_dc_client_h" "$ac_includes_default"
if test "x$ac_cv_header_distcache_dc_client_h" = xyes
then :
  printf "%s\n" "#define HAVE_DISTCACHE_DC_CLIENT_H 1" >>confdefs.h
 ap_distcache_found="yes"
fi

done
  if test "$ap_distcache_found" = "yes"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for distcache version" >&5
printf %s "checking for distcache version... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <distcache/dc_client.h>
int
main (void)
{

#if DISTCACHE_CLIENT_API != 0x0001
#error "distcache API version is unrecognised"
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else $as_nop
  ap_distcache_found="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_distcache_found" >&5
printf "%s\n" "$ap_distcache_found" >&6; }
  fi
  if test "$ap_distcache_found" != "yes"; then
    if test "x$ap_distcache_with" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ...No distcache detected" >&5
printf "%s\n" "$as_me: WARNING: ...No distcache detected" >&2;}
    else
      as_fn_error $? "...No distcache detected" "$LINENO" 5
    fi
  else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for distcache libraries" >&5
printf %s "checking for distcache libraries... " >&6; }
    ap_distcache_libs="-ldistcache -lnal"

  if test "x$LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_distcache_libs\""
    LIBS="$ap_distcache_libs"
  else
    apr_addto_bugger="$ap_distcache_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi


    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <distcache/dc_client.h>
int
main (void)
{
DC_CTX *foo = DC_CTX_new((const char *)0,0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

else $as_nop
  ap_distcache_found="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_distcache_found" >&5
printf "%s\n" "$ap_distcache_found" >&6; }
    if test "$ap_distcache_found" != "yes"; then
      if test "x$ap_distcache_base" = "x"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ... Error, distcache libraries were missing or unusable" >&5
printf "%s\n" "$as_me: WARNING: ... Error, distcache libraries were missing or unusable" >&2;}
      else
        as_fn_error $? "... Error, distcache libraries were missing or unusable" "$LINENO" 5
      fi
    fi
  fi

    CPPFLAGS="$saved_CPPFLAGS"
  LIBS="$saved_LIBS"
  LDFLAGS="$saved_LDFLAGS"

    if test "$ap_distcache_found" = "yes"; then

  if test "x$MOD_SOCACHE_DC_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_SOCACHE_DC_LDADD to \"$ap_distcache_ldflags $ap_distcache_libs\""
    MOD_SOCACHE_DC_LDADD="$ap_distcache_ldflags $ap_distcache_libs"
  else
    apr_addto_bugger="$ap_distcache_ldflags $ap_distcache_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_SOCACHE_DC_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SOCACHE_DC_LDADD"
        MOD_SOCACHE_DC_LDADD="$MOD_SOCACHE_DC_LDADD $i"
      fi
    done
  fi


printf "%s\n" "#define HAVE_DISTCACHE 1" >>confdefs.h

  else
    enable_socache_dc=no
  fi
  ap_distcache_configured="yes"
fi


            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_socache_dc" >&5
printf %s "checking whether to enable mod_socache_dc... " >&6; }
            if test "$enable_socache_dc" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_socache_dc has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_socache_dc$_apmod_extra_msg" >&5
printf "%s\n" "$enable_socache_dc$_apmod_extra_msg" >&6; }
  if test "$enable_socache_dc" != "no"; then
    case "$enable_socache_dc" in
    static*)
      MODLIST="$MODLIST socache_dc"
      if test "socache_dc" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES socache_dc"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},socache_dc"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_socache_dc.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_socache_dc.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SOCACHE_DC_LDADD)
EOF
      if test ! -z "\$(MOD_SOCACHE_DC_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SOCACHE_DC_LDADD)\""
    AP_LIBS="\$(MOD_SOCACHE_DC_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SOCACHE_DC_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_socache_dc.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SOCACHE_DC_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SOCACHE_DC_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=core
  modpath_current=modules/core
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d core || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



apr_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $INCLUDES"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr.h>
#if APR_HAS_DSO
YES_IS_DEFINED
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
then :
  ac_cv_define_APR_HAS_DSO=yes
else $as_nop
  ac_cv_define_APR_HAS_DSO=no
fi
rm -rf conftest*

CPPFLAGS=$apr_old_cppflags


case "x$enable_so" in
    "xyes")
        if test $ac_cv_define_APR_HAS_DSO = "no"; then
            as_fn_error $? "mod_so has been requested but cannot be built on your system" "$LINENO" 5
        fi
        ;;
    "xshared")
        as_fn_error $? "mod_so can not be built as a shared DSO" "$LINENO" 5
        ;;
    "xno")
        ;;
    "x")
        enable_so=$ac_cv_define_APR_HAS_DSO
        ;;
esac

if test "x$enable_so" = "xyes"; then
    enable_so="static"
fi

if test "x$enable_so" = "xstatic"; then

  if test "x$HTTPD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"-export-dynamic\""
    HTTPD_LDFLAGS="-export-dynamic"
  else
    apr_addto_bugger="-export-dynamic"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $HTTPD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
      fi
    done
  fi

    INSTALL_DSO=yes
else
    INSTALL_DSO=no
fi

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_DSO"



if test "$sharedobjs" = "yes"; then
    if test $ac_cv_define_APR_HAS_DSO = "no"; then
        as_fn_error $? "shared objects have been requested but cannot be built since mod_so cannot be built" "$LINENO" 5
    elif test $enable_so = "no"; then
        as_fn_error $? "shared objects have been requested but cannot be built since mod_so was disabled" "$LINENO" 5
    fi
fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_so" >&5
printf %s "checking whether to enable mod_so... " >&6; }
    # Check whether --enable-so was given.
if test ${enable_so+y}
then :
  enableval=$enable_so; force_so=$enableval
else $as_nop
  enable_so=$enable_so
fi

    _apmod_extra_msg=""
      case "$enable_so" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_so" = "static" -o "$enable_so" = "shared"; then
    :
  elif test "$enable_so" = "yes"; then
    enable_so=$module_default
  elif test "$enable_so" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_so=$module_default
    else
      enable_so=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_so" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_so=$module_default
    else
      enable_so=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_so" = "all" -o "$enable_so" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_so=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_so=no
    fi
  elif test "$enable_so" = "reallyall" -o "$enable_so" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_so" != "no" ; then
      enable_so=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_so=no
    fi
  else
    enable_so=no
  fi
  if test "$enable_so" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_so$_apmod_extra_msg" >&5
printf "%s\n" "$enable_so$_apmod_extra_msg" >&6; }
  if test "$enable_so" != "no"; then
    case "$enable_so" in
    static*)
      MODLIST="$MODLIST so"
      if test "so" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES so"
      if test "$enable_so" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},so"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_so.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_so.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SO_LDADD)
EOF
      if test ! -z "\$(MOD_SO_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SO_LDADD)\""
    AP_LIBS="\$(MOD_SO_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SO_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_so.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SO_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SO_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_watchdog" >&5
printf %s "checking whether to enable mod_watchdog... " >&6; }
    # Check whether --enable-watchdog was given.
if test ${enable_watchdog+y}
then :
  enableval=$enable_watchdog; force_watchdog=$enableval
else $as_nop
  enable_watchdog=most
fi

    _apmod_extra_msg=""
      case "$enable_watchdog" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_watchdog" = "static" -o "$enable_watchdog" = "shared"; then
    :
  elif test "$enable_watchdog" = "yes"; then
    enable_watchdog=$module_default
  elif test "$enable_watchdog" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_watchdog=$module_default
    else
      enable_watchdog=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_watchdog" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_watchdog=$module_default
    else
      enable_watchdog=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_watchdog" = "all" -o "$enable_watchdog" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_watchdog=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_watchdog=no
    fi
  elif test "$enable_watchdog" = "reallyall" -o "$enable_watchdog" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_watchdog" != "no" ; then
      enable_watchdog=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_watchdog=no
    fi
  else
    enable_watchdog=no
  fi
  if test "$enable_watchdog" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


apr_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $INCLUDES"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr.h>
#if APR_HAS_THREADS
YES_IS_DEFINED
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
then :
  ac_cv_define_APR_HAS_THREADS=yes
else $as_nop
  ac_cv_define_APR_HAS_THREADS=no
fi
rm -rf conftest*

CPPFLAGS=$apr_old_cppflags

    if test $ac_cv_define_APR_HAS_THREADS = "no"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mod_watchdog requires apr to be built with --enable-threads" >&5
printf "%s\n" "$as_me: WARNING: mod_watchdog requires apr to be built with --enable-threads" >&2;}
        enable_watchdog=no
    fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_watchdog" >&5
printf %s "checking whether to enable mod_watchdog... " >&6; }
            if test "$enable_watchdog" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_watchdog has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_watchdog$_apmod_extra_msg" >&5
printf "%s\n" "$enable_watchdog$_apmod_extra_msg" >&6; }
  if test "$enable_watchdog" != "no"; then
    case "$enable_watchdog" in
    static*)
      MODLIST="$MODLIST watchdog"
      if test "watchdog" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES watchdog"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},watchdog"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_watchdog.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_watchdog.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_WATCHDOG_LDADD)
EOF
      if test ! -z "\$(MOD_WATCHDOG_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_WATCHDOG_LDADD)\""
    AP_LIBS="\$(MOD_WATCHDOG_LDADD)"
  else
    apr_addto_bugger="\$(MOD_WATCHDOG_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_watchdog.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_WATCHDOG_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_WATCHDOG_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_macro" >&5
printf %s "checking whether to enable mod_macro... " >&6; }
    # Check whether --enable-macro was given.
if test ${enable_macro+y}
then :
  enableval=$enable_macro; force_macro=$enableval
else $as_nop
  enable_macro=most
fi

    _apmod_extra_msg=""
      case "$enable_macro" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_macro" = "static" -o "$enable_macro" = "shared"; then
    :
  elif test "$enable_macro" = "yes"; then
    enable_macro=$module_default
  elif test "$enable_macro" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_macro=$module_default
    else
      enable_macro=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_macro" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_macro=$module_default
    else
      enable_macro=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_macro" = "all" -o "$enable_macro" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_macro=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_macro=no
    fi
  elif test "$enable_macro" = "reallyall" -o "$enable_macro" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_macro" != "no" ; then
      enable_macro=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_macro=no
    fi
  else
    enable_macro=no
  fi
  if test "$enable_macro" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_macro$_apmod_extra_msg" >&5
printf "%s\n" "$enable_macro$_apmod_extra_msg" >&6; }
  if test "$enable_macro" != "no"; then
    case "$enable_macro" in
    static*)
      MODLIST="$MODLIST macro"
      if test "macro" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES macro"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},macro"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_macro.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_macro.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_MACRO_LDADD)
EOF
      if test ! -z "\$(MOD_MACRO_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MACRO_LDADD)\""
    AP_LIBS="\$(MOD_MACRO_LDADD)"
  else
    apr_addto_bugger="\$(MOD_MACRO_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_macro.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MACRO_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MACRO_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=database
  modpath_current=modules/database
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d database || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dbd" >&5
printf %s "checking whether to enable mod_dbd... " >&6; }
    # Check whether --enable-dbd was given.
if test ${enable_dbd+y}
then :
  enableval=$enable_dbd; force_dbd=$enableval
else $as_nop
  enable_dbd=most
fi

    _apmod_extra_msg=""
      case "$enable_dbd" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_dbd" = "static" -o "$enable_dbd" = "shared"; then
    :
  elif test "$enable_dbd" = "yes"; then
    enable_dbd=$module_default
  elif test "$enable_dbd" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dbd=$module_default
    else
      enable_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dbd" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_dbd=$module_default
    else
      enable_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dbd" = "all" -o "$enable_dbd" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dbd=no
    fi
  elif test "$enable_dbd" = "reallyall" -o "$enable_dbd" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_dbd" != "no" ; then
      enable_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dbd=no
    fi
  else
    enable_dbd=no
  fi
  if test "$enable_dbd" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dbd$_apmod_extra_msg" >&5
printf "%s\n" "$enable_dbd$_apmod_extra_msg" >&6; }
  if test "$enable_dbd" != "no"; then
    case "$enable_dbd" in
    static*)
      MODLIST="$MODLIST dbd"
      if test "dbd" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dbd"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dbd"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_dbd.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_dbd.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_DBD_LDADD)
EOF
      if test ! -z "\$(MOD_DBD_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DBD_LDADD)\""
    AP_LIBS="\$(MOD_DBD_LDADD)"
  else
    apr_addto_bugger="\$(MOD_DBD_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_dbd.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DBD_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DBD_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=debugging
  modpath_current=modules/debugging
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d debugging || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_bucketeer" >&5
printf %s "checking whether to enable mod_bucketeer... " >&6; }
    # Check whether --enable-bucketeer was given.
if test ${enable_bucketeer+y}
then :
  enableval=$enable_bucketeer; force_bucketeer=$enableval
else $as_nop
  enable_bucketeer=no
fi

    _apmod_extra_msg=""
      case "$enable_bucketeer" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_bucketeer" = "static" -o "$enable_bucketeer" = "shared"; then
    :
  elif test "$enable_bucketeer" = "yes"; then
    enable_bucketeer=$module_default
  elif test "$enable_bucketeer" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_bucketeer=$module_default
    else
      enable_bucketeer=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_bucketeer" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_bucketeer=$module_default
    else
      enable_bucketeer=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_bucketeer" = "all" -o "$enable_bucketeer" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_bucketeer=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_bucketeer=no
    fi
  elif test "$enable_bucketeer" = "reallyall" -o "$enable_bucketeer" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_bucketeer" != "no" ; then
      enable_bucketeer=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_bucketeer=no
    fi
  else
    enable_bucketeer=no
  fi
  if test "$enable_bucketeer" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bucketeer$_apmod_extra_msg" >&5
printf "%s\n" "$enable_bucketeer$_apmod_extra_msg" >&6; }
  if test "$enable_bucketeer" != "no"; then
    case "$enable_bucketeer" in
    static*)
      MODLIST="$MODLIST bucketeer"
      if test "bucketeer" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES bucketeer"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},bucketeer"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_bucketeer.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_bucketeer.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_BUCKETEER_LDADD)
EOF
      if test ! -z "\$(MOD_BUCKETEER_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_BUCKETEER_LDADD)\""
    AP_LIBS="\$(MOD_BUCKETEER_LDADD)"
  else
    apr_addto_bugger="\$(MOD_BUCKETEER_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_bucketeer.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_BUCKETEER_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BUCKETEER_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dumpio" >&5
printf %s "checking whether to enable mod_dumpio... " >&6; }
    # Check whether --enable-dumpio was given.
if test ${enable_dumpio+y}
then :
  enableval=$enable_dumpio; force_dumpio=$enableval
else $as_nop
  enable_dumpio=most
fi

    _apmod_extra_msg=""
      case "$enable_dumpio" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_dumpio" = "static" -o "$enable_dumpio" = "shared"; then
    :
  elif test "$enable_dumpio" = "yes"; then
    enable_dumpio=$module_default
  elif test "$enable_dumpio" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dumpio=$module_default
    else
      enable_dumpio=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dumpio" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_dumpio=$module_default
    else
      enable_dumpio=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dumpio" = "all" -o "$enable_dumpio" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dumpio=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dumpio=no
    fi
  elif test "$enable_dumpio" = "reallyall" -o "$enable_dumpio" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_dumpio" != "no" ; then
      enable_dumpio=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dumpio=no
    fi
  else
    enable_dumpio=no
  fi
  if test "$enable_dumpio" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dumpio$_apmod_extra_msg" >&5
printf "%s\n" "$enable_dumpio$_apmod_extra_msg" >&6; }
  if test "$enable_dumpio" != "no"; then
    case "$enable_dumpio" in
    static*)
      MODLIST="$MODLIST dumpio"
      if test "dumpio" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dumpio"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dumpio"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_dumpio.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_dumpio.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_DUMPIO_LDADD)
EOF
      if test ! -z "\$(MOD_DUMPIO_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DUMPIO_LDADD)\""
    AP_LIBS="\$(MOD_DUMPIO_LDADD)"
  else
    apr_addto_bugger="\$(MOD_DUMPIO_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_dumpio.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DUMPIO_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DUMPIO_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=echo
  modpath_current=modules/echo
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d echo || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_echo" >&5
printf %s "checking whether to enable mod_echo... " >&6; }
    # Check whether --enable-echo was given.
if test ${enable_echo+y}
then :
  enableval=$enable_echo; force_echo=$enableval
else $as_nop
  enable_echo=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_echo" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_echo" = "static" -o "$enable_echo" = "shared"; then
    :
  elif test "$enable_echo" = "yes"; then
    enable_echo=$module_default
  elif test "$enable_echo" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_echo=$module_default
    else
      enable_echo=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_echo" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_echo=$module_default
    else
      enable_echo=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_echo" = "all" -o "$enable_echo" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_echo=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_echo=no
    fi
  elif test "$enable_echo" = "reallyall" -o "$enable_echo" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_echo" != "no" ; then
      enable_echo=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_echo=no
    fi
  else
    enable_echo=no
  fi
  if test "$enable_echo" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_echo$_apmod_extra_msg" >&5
printf "%s\n" "$enable_echo$_apmod_extra_msg" >&6; }
  if test "$enable_echo" != "no"; then
    case "$enable_echo" in
    static*)
      MODLIST="$MODLIST echo"
      if test "echo" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES echo"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},echo"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_echo.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_echo.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_ECHO_LDADD)
EOF
      if test ! -z "\$(MOD_ECHO_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ECHO_LDADD)\""
    AP_LIBS="\$(MOD_ECHO_LDADD)"
  else
    apr_addto_bugger="\$(MOD_ECHO_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_echo.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ECHO_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ECHO_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=examples
  modpath_current=modules/examples
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d examples || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_example_hooks" >&5
printf %s "checking whether to enable mod_example_hooks... " >&6; }
    # Check whether --enable-example-hooks was given.
if test ${enable_example_hooks+y}
then :
  enableval=$enable_example_hooks; force_example_hooks=$enableval
else $as_nop
  enable_example_hooks=no
fi

    _apmod_extra_msg=""
      case "$enable_example_hooks" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_example_hooks" = "static" -o "$enable_example_hooks" = "shared"; then
    :
  elif test "$enable_example_hooks" = "yes"; then
    enable_example_hooks=$module_default
  elif test "$enable_example_hooks" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_example_hooks=$module_default
    else
      enable_example_hooks=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_example_hooks" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_example_hooks=$module_default
    else
      enable_example_hooks=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_example_hooks" = "all" -o "$enable_example_hooks" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_example_hooks=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_example_hooks=no
    fi
  elif test "$enable_example_hooks" = "reallyall" -o "$enable_example_hooks" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_example_hooks" != "no" ; then
      enable_example_hooks=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_example_hooks=no
    fi
  else
    enable_example_hooks=no
  fi
  if test "$enable_example_hooks" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_example_hooks$_apmod_extra_msg" >&5
printf "%s\n" "$enable_example_hooks$_apmod_extra_msg" >&6; }
  if test "$enable_example_hooks" != "no"; then
    case "$enable_example_hooks" in
    static*)
      MODLIST="$MODLIST example_hooks"
      if test "example_hooks" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES example_hooks"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},example_hooks"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_example_hooks.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_example_hooks.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_EXAMPLE_HOOKS_LDADD)
EOF
      if test ! -z "\$(MOD_EXAMPLE_HOOKS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXAMPLE_HOOKS_LDADD)\""
    AP_LIBS="\$(MOD_EXAMPLE_HOOKS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_EXAMPLE_HOOKS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_example_hooks.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXAMPLE_HOOKS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXAMPLE_HOOKS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_case_filter" >&5
printf %s "checking whether to enable mod_case_filter... " >&6; }
    # Check whether --enable-case-filter was given.
if test ${enable_case_filter+y}
then :
  enableval=$enable_case_filter; force_case_filter=$enableval
else $as_nop
  enable_case_filter=no
fi

    _apmod_extra_msg=""
      case "$enable_case_filter" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_case_filter" = "static" -o "$enable_case_filter" = "shared"; then
    :
  elif test "$enable_case_filter" = "yes"; then
    enable_case_filter=$module_default
  elif test "$enable_case_filter" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_case_filter=$module_default
    else
      enable_case_filter=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_case_filter" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_case_filter=$module_default
    else
      enable_case_filter=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_case_filter" = "all" -o "$enable_case_filter" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_case_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_case_filter=no
    fi
  elif test "$enable_case_filter" = "reallyall" -o "$enable_case_filter" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_case_filter" != "no" ; then
      enable_case_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_case_filter=no
    fi
  else
    enable_case_filter=no
  fi
  if test "$enable_case_filter" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_case_filter$_apmod_extra_msg" >&5
printf "%s\n" "$enable_case_filter$_apmod_extra_msg" >&6; }
  if test "$enable_case_filter" != "no"; then
    case "$enable_case_filter" in
    static*)
      MODLIST="$MODLIST case_filter"
      if test "case_filter" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES case_filter"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},case_filter"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_case_filter.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_case_filter.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CASE_FILTER_LDADD)
EOF
      if test ! -z "\$(MOD_CASE_FILTER_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CASE_FILTER_LDADD)\""
    AP_LIBS="\$(MOD_CASE_FILTER_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CASE_FILTER_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_case_filter.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_case_filter_in" >&5
printf %s "checking whether to enable mod_case_filter_in... " >&6; }
    # Check whether --enable-case-filter-in was given.
if test ${enable_case_filter_in+y}
then :
  enableval=$enable_case_filter_in; force_case_filter_in=$enableval
else $as_nop
  enable_case_filter_in=no
fi

    _apmod_extra_msg=""
      case "$enable_case_filter_in" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_case_filter_in" = "static" -o "$enable_case_filter_in" = "shared"; then
    :
  elif test "$enable_case_filter_in" = "yes"; then
    enable_case_filter_in=$module_default
  elif test "$enable_case_filter_in" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_case_filter_in=$module_default
    else
      enable_case_filter_in=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_case_filter_in" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_case_filter_in=$module_default
    else
      enable_case_filter_in=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_case_filter_in" = "all" -o "$enable_case_filter_in" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_case_filter_in=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_case_filter_in=no
    fi
  elif test "$enable_case_filter_in" = "reallyall" -o "$enable_case_filter_in" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_case_filter_in" != "no" ; then
      enable_case_filter_in=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_case_filter_in=no
    fi
  else
    enable_case_filter_in=no
  fi
  if test "$enable_case_filter_in" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_case_filter_in$_apmod_extra_msg" >&5
printf "%s\n" "$enable_case_filter_in$_apmod_extra_msg" >&6; }
  if test "$enable_case_filter_in" != "no"; then
    case "$enable_case_filter_in" in
    static*)
      MODLIST="$MODLIST case_filter_in"
      if test "case_filter_in" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES case_filter_in"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},case_filter_in"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_case_filter_in.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_case_filter_in.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CASE_FILTER_IN_LDADD)
EOF
      if test ! -z "\$(MOD_CASE_FILTER_IN_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CASE_FILTER_IN_LDADD)\""
    AP_LIBS="\$(MOD_CASE_FILTER_IN_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CASE_FILTER_IN_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_case_filter_in.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_IN_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_IN_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_example_ipc" >&5
printf %s "checking whether to enable mod_example_ipc... " >&6; }
    # Check whether --enable-example-ipc was given.
if test ${enable_example_ipc+y}
then :
  enableval=$enable_example_ipc; force_example_ipc=$enableval
else $as_nop
  enable_example_ipc=no
fi

    _apmod_extra_msg=""
      case "$enable_example_ipc" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_example_ipc" = "static" -o "$enable_example_ipc" = "shared"; then
    :
  elif test "$enable_example_ipc" = "yes"; then
    enable_example_ipc=$module_default
  elif test "$enable_example_ipc" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_example_ipc=$module_default
    else
      enable_example_ipc=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_example_ipc" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_example_ipc=$module_default
    else
      enable_example_ipc=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_example_ipc" = "all" -o "$enable_example_ipc" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_example_ipc=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_example_ipc=no
    fi
  elif test "$enable_example_ipc" = "reallyall" -o "$enable_example_ipc" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_example_ipc" != "no" ; then
      enable_example_ipc=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_example_ipc=no
    fi
  else
    enable_example_ipc=no
  fi
  if test "$enable_example_ipc" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_example_ipc$_apmod_extra_msg" >&5
printf "%s\n" "$enable_example_ipc$_apmod_extra_msg" >&6; }
  if test "$enable_example_ipc" != "no"; then
    case "$enable_example_ipc" in
    static*)
      MODLIST="$MODLIST example_ipc"
      if test "example_ipc" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES example_ipc"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},example_ipc"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_example_ipc.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_example_ipc.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_EXAMPLE_IPC_LDADD)
EOF
      if test ! -z "\$(MOD_EXAMPLE_IPC_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXAMPLE_IPC_LDADD)\""
    AP_LIBS="\$(MOD_EXAMPLE_IPC_LDADD)"
  else
    apr_addto_bugger="\$(MOD_EXAMPLE_IPC_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_example_ipc.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXAMPLE_IPC_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXAMPLE_IPC_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=experimental
  modpath_current=modules/experimental
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d experimental || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=filters
  modpath_current=modules/filters
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d filters || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_buffer" >&5
printf %s "checking whether to enable mod_buffer... " >&6; }
    # Check whether --enable-buffer was given.
if test ${enable_buffer+y}
then :
  enableval=$enable_buffer; force_buffer=$enableval
else $as_nop
  enable_buffer=most
fi

    _apmod_extra_msg=""
      case "$enable_buffer" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_buffer" = "static" -o "$enable_buffer" = "shared"; then
    :
  elif test "$enable_buffer" = "yes"; then
    enable_buffer=$module_default
  elif test "$enable_buffer" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_buffer=$module_default
    else
      enable_buffer=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_buffer" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_buffer=$module_default
    else
      enable_buffer=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_buffer" = "all" -o "$enable_buffer" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_buffer=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_buffer=no
    fi
  elif test "$enable_buffer" = "reallyall" -o "$enable_buffer" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_buffer" != "no" ; then
      enable_buffer=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_buffer=no
    fi
  else
    enable_buffer=no
  fi
  if test "$enable_buffer" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_buffer$_apmod_extra_msg" >&5
printf "%s\n" "$enable_buffer$_apmod_extra_msg" >&6; }
  if test "$enable_buffer" != "no"; then
    case "$enable_buffer" in
    static*)
      MODLIST="$MODLIST buffer"
      if test "buffer" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES buffer"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},buffer"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_buffer.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_buffer.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_BUFFER_LDADD)
EOF
      if test ! -z "\$(MOD_BUFFER_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_BUFFER_LDADD)\""
    AP_LIBS="\$(MOD_BUFFER_LDADD)"
  else
    apr_addto_bugger="\$(MOD_BUFFER_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_buffer.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_BUFFER_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BUFFER_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_data" >&5
printf %s "checking whether to enable mod_data... " >&6; }
    # Check whether --enable-data was given.
if test ${enable_data+y}
then :
  enableval=$enable_data; force_data=$enableval
else $as_nop
  enable_data=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_data" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_data" = "static" -o "$enable_data" = "shared"; then
    :
  elif test "$enable_data" = "yes"; then
    enable_data=$module_default
  elif test "$enable_data" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_data=$module_default
    else
      enable_data=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_data" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_data=$module_default
    else
      enable_data=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_data" = "all" -o "$enable_data" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_data=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_data=no
    fi
  elif test "$enable_data" = "reallyall" -o "$enable_data" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_data" != "no" ; then
      enable_data=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_data=no
    fi
  else
    enable_data=no
  fi
  if test "$enable_data" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_data$_apmod_extra_msg" >&5
printf "%s\n" "$enable_data$_apmod_extra_msg" >&6; }
  if test "$enable_data" != "no"; then
    case "$enable_data" in
    static*)
      MODLIST="$MODLIST data"
      if test "data" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES data"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},data"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_data.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_data.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_DATA_LDADD)
EOF
      if test ! -z "\$(MOD_DATA_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DATA_LDADD)\""
    AP_LIBS="\$(MOD_DATA_LDADD)"
  else
    apr_addto_bugger="\$(MOD_DATA_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_data.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DATA_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DATA_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ratelimit" >&5
printf %s "checking whether to enable mod_ratelimit... " >&6; }
    # Check whether --enable-ratelimit was given.
if test ${enable_ratelimit+y}
then :
  enableval=$enable_ratelimit; force_ratelimit=$enableval
else $as_nop
  enable_ratelimit=most
fi

    _apmod_extra_msg=""
      case "$enable_ratelimit" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_ratelimit" = "static" -o "$enable_ratelimit" = "shared"; then
    :
  elif test "$enable_ratelimit" = "yes"; then
    enable_ratelimit=$module_default
  elif test "$enable_ratelimit" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ratelimit=$module_default
    else
      enable_ratelimit=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ratelimit" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_ratelimit=$module_default
    else
      enable_ratelimit=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ratelimit" = "all" -o "$enable_ratelimit" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ratelimit=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ratelimit=no
    fi
  elif test "$enable_ratelimit" = "reallyall" -o "$enable_ratelimit" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_ratelimit" != "no" ; then
      enable_ratelimit=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ratelimit=no
    fi
  else
    enable_ratelimit=no
  fi
  if test "$enable_ratelimit" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ratelimit$_apmod_extra_msg" >&5
printf "%s\n" "$enable_ratelimit$_apmod_extra_msg" >&6; }
  if test "$enable_ratelimit" != "no"; then
    case "$enable_ratelimit" in
    static*)
      MODLIST="$MODLIST ratelimit"
      if test "ratelimit" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES ratelimit"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ratelimit"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_ratelimit.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_ratelimit.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_RATELIMIT_LDADD)
EOF
      if test ! -z "\$(MOD_RATELIMIT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_RATELIMIT_LDADD)\""
    AP_LIBS="\$(MOD_RATELIMIT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_RATELIMIT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_ratelimit.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_RATELIMIT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_RATELIMIT_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_reqtimeout" >&5
printf %s "checking whether to enable mod_reqtimeout... " >&6; }
    # Check whether --enable-reqtimeout was given.
if test ${enable_reqtimeout+y}
then :
  enableval=$enable_reqtimeout; force_reqtimeout=$enableval
else $as_nop
  enable_reqtimeout=yes
fi

    _apmod_extra_msg=""
      case "$enable_reqtimeout" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_reqtimeout" = "static" -o "$enable_reqtimeout" = "shared"; then
    :
  elif test "$enable_reqtimeout" = "yes"; then
    enable_reqtimeout=$module_default
  elif test "$enable_reqtimeout" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_reqtimeout=$module_default
    else
      enable_reqtimeout=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_reqtimeout" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_reqtimeout=$module_default
    else
      enable_reqtimeout=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_reqtimeout" = "all" -o "$enable_reqtimeout" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_reqtimeout=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_reqtimeout=no
    fi
  elif test "$enable_reqtimeout" = "reallyall" -o "$enable_reqtimeout" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_reqtimeout" != "no" ; then
      enable_reqtimeout=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_reqtimeout=no
    fi
  else
    enable_reqtimeout=no
  fi
  if test "$enable_reqtimeout" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_reqtimeout$_apmod_extra_msg" >&5
printf "%s\n" "$enable_reqtimeout$_apmod_extra_msg" >&6; }
  if test "$enable_reqtimeout" != "no"; then
    case "$enable_reqtimeout" in
    static*)
      MODLIST="$MODLIST reqtimeout"
      if test "reqtimeout" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES reqtimeout"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},reqtimeout"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_reqtimeout.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_reqtimeout.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_REQTIMEOUT_LDADD)
EOF
      if test ! -z "\$(MOD_REQTIMEOUT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REQTIMEOUT_LDADD)\""
    AP_LIBS="\$(MOD_REQTIMEOUT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_REQTIMEOUT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_reqtimeout.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REQTIMEOUT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REQTIMEOUT_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ext_filter" >&5
printf %s "checking whether to enable mod_ext_filter... " >&6; }
    # Check whether --enable-ext-filter was given.
if test ${enable_ext_filter+y}
then :
  enableval=$enable_ext_filter; force_ext_filter=$enableval
else $as_nop
  enable_ext_filter=most
fi

    _apmod_extra_msg=""
      case "$enable_ext_filter" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_ext_filter" = "static" -o "$enable_ext_filter" = "shared"; then
    :
  elif test "$enable_ext_filter" = "yes"; then
    enable_ext_filter=$module_default
  elif test "$enable_ext_filter" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ext_filter=$module_default
    else
      enable_ext_filter=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ext_filter" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_ext_filter=$module_default
    else
      enable_ext_filter=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ext_filter" = "all" -o "$enable_ext_filter" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ext_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ext_filter=no
    fi
  elif test "$enable_ext_filter" = "reallyall" -o "$enable_ext_filter" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_ext_filter" != "no" ; then
      enable_ext_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ext_filter=no
    fi
  else
    enable_ext_filter=no
  fi
  if test "$enable_ext_filter" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ext_filter$_apmod_extra_msg" >&5
printf "%s\n" "$enable_ext_filter$_apmod_extra_msg" >&6; }
  if test "$enable_ext_filter" != "no"; then
    case "$enable_ext_filter" in
    static*)
      MODLIST="$MODLIST ext_filter"
      if test "ext_filter" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES ext_filter"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ext_filter"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_ext_filter.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_ext_filter.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_EXT_FILTER_LDADD)
EOF
      if test ! -z "\$(MOD_EXT_FILTER_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXT_FILTER_LDADD)\""
    AP_LIBS="\$(MOD_EXT_FILTER_LDADD)"
  else
    apr_addto_bugger="\$(MOD_EXT_FILTER_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_ext_filter.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXT_FILTER_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXT_FILTER_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_request" >&5
printf %s "checking whether to enable mod_request... " >&6; }
    # Check whether --enable-request was given.
if test ${enable_request+y}
then :
  enableval=$enable_request; force_request=$enableval
else $as_nop
  enable_request=most
fi

    _apmod_extra_msg=""
      case "$enable_request" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_request" = "static" -o "$enable_request" = "shared"; then
    :
  elif test "$enable_request" = "yes"; then
    enable_request=$module_default
  elif test "$enable_request" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_request=$module_default
    else
      enable_request=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_request" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_request=$module_default
    else
      enable_request=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_request" = "all" -o "$enable_request" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_request=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_request=no
    fi
  elif test "$enable_request" = "reallyall" -o "$enable_request" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_request" != "no" ; then
      enable_request=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_request=no
    fi
  else
    enable_request=no
  fi
  if test "$enable_request" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_request$_apmod_extra_msg" >&5
printf "%s\n" "$enable_request$_apmod_extra_msg" >&6; }
  if test "$enable_request" != "no"; then
    case "$enable_request" in
    static*)
      MODLIST="$MODLIST request"
      if test "request" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES request"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},request"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_request.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_request.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_REQUEST_LDADD)
EOF
      if test ! -z "\$(MOD_REQUEST_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REQUEST_LDADD)\""
    AP_LIBS="\$(MOD_REQUEST_LDADD)"
  else
    apr_addto_bugger="\$(MOD_REQUEST_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_request.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REQUEST_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REQUEST_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_include" >&5
printf %s "checking whether to enable mod_include... " >&6; }
    # Check whether --enable-include was given.
if test ${enable_include+y}
then :
  enableval=$enable_include; force_include=$enableval
else $as_nop
  enable_include=most
fi

    _apmod_extra_msg=""
      case "$enable_include" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_include" = "static" -o "$enable_include" = "shared"; then
    :
  elif test "$enable_include" = "yes"; then
    enable_include=$module_default
  elif test "$enable_include" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_include=$module_default
    else
      enable_include=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_include" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_include=$module_default
    else
      enable_include=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_include" = "all" -o "$enable_include" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_include=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_include=no
    fi
  elif test "$enable_include" = "reallyall" -o "$enable_include" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_include" != "no" ; then
      enable_include=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_include=no
    fi
  else
    enable_include=no
  fi
  if test "$enable_include" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_include$_apmod_extra_msg" >&5
printf "%s\n" "$enable_include$_apmod_extra_msg" >&6; }
  if test "$enable_include" != "no"; then
    case "$enable_include" in
    static*)
      MODLIST="$MODLIST include"
      if test "include" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES include"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},include"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_include.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_include.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_INCLUDE_LDADD)
EOF
      if test ! -z "\$(MOD_INCLUDE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_INCLUDE_LDADD)\""
    AP_LIBS="\$(MOD_INCLUDE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_INCLUDE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_include.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INCLUDE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INCLUDE_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_filter" >&5
printf %s "checking whether to enable mod_filter... " >&6; }
    # Check whether --enable-filter was given.
if test ${enable_filter+y}
then :
  enableval=$enable_filter; force_filter=$enableval
else $as_nop
  enable_filter=yes
fi

    _apmod_extra_msg=""
      case "$enable_filter" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_filter" = "static" -o "$enable_filter" = "shared"; then
    :
  elif test "$enable_filter" = "yes"; then
    enable_filter=$module_default
  elif test "$enable_filter" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_filter=$module_default
    else
      enable_filter=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_filter" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_filter=$module_default
    else
      enable_filter=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_filter" = "all" -o "$enable_filter" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_filter=no
    fi
  elif test "$enable_filter" = "reallyall" -o "$enable_filter" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_filter" != "no" ; then
      enable_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_filter=no
    fi
  else
    enable_filter=no
  fi
  if test "$enable_filter" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_filter$_apmod_extra_msg" >&5
printf "%s\n" "$enable_filter$_apmod_extra_msg" >&6; }
  if test "$enable_filter" != "no"; then
    case "$enable_filter" in
    static*)
      MODLIST="$MODLIST filter"
      if test "filter" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES filter"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},filter"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_filter.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_filter.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_FILTER_LDADD)
EOF
      if test ! -z "\$(MOD_FILTER_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_FILTER_LDADD)\""
    AP_LIBS="\$(MOD_FILTER_LDADD)"
  else
    apr_addto_bugger="\$(MOD_FILTER_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_filter.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_FILTER_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILTER_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_reflector" >&5
printf %s "checking whether to enable mod_reflector... " >&6; }
    # Check whether --enable-reflector was given.
if test ${enable_reflector+y}
then :
  enableval=$enable_reflector; force_reflector=$enableval
else $as_nop
  enable_reflector=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_reflector" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_reflector" = "static" -o "$enable_reflector" = "shared"; then
    :
  elif test "$enable_reflector" = "yes"; then
    enable_reflector=$module_default
  elif test "$enable_reflector" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_reflector=$module_default
    else
      enable_reflector=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_reflector" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_reflector=$module_default
    else
      enable_reflector=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_reflector" = "all" -o "$enable_reflector" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_reflector=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_reflector=no
    fi
  elif test "$enable_reflector" = "reallyall" -o "$enable_reflector" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_reflector" != "no" ; then
      enable_reflector=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_reflector=no
    fi
  else
    enable_reflector=no
  fi
  if test "$enable_reflector" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_reflector$_apmod_extra_msg" >&5
printf "%s\n" "$enable_reflector$_apmod_extra_msg" >&6; }
  if test "$enable_reflector" != "no"; then
    case "$enable_reflector" in
    static*)
      MODLIST="$MODLIST reflector"
      if test "reflector" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES reflector"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},reflector"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_reflector.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_reflector.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_REFLECTOR_LDADD)
EOF
      if test ! -z "\$(MOD_REFLECTOR_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REFLECTOR_LDADD)\""
    AP_LIBS="\$(MOD_REFLECTOR_LDADD)"
  else
    apr_addto_bugger="\$(MOD_REFLECTOR_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_reflector.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REFLECTOR_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REFLECTOR_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_substitute" >&5
printf %s "checking whether to enable mod_substitute... " >&6; }
    # Check whether --enable-substitute was given.
if test ${enable_substitute+y}
then :
  enableval=$enable_substitute; force_substitute=$enableval
else $as_nop
  enable_substitute=most
fi

    _apmod_extra_msg=""
      case "$enable_substitute" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_substitute" = "static" -o "$enable_substitute" = "shared"; then
    :
  elif test "$enable_substitute" = "yes"; then
    enable_substitute=$module_default
  elif test "$enable_substitute" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_substitute=$module_default
    else
      enable_substitute=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_substitute" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_substitute=$module_default
    else
      enable_substitute=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_substitute" = "all" -o "$enable_substitute" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_substitute=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_substitute=no
    fi
  elif test "$enable_substitute" = "reallyall" -o "$enable_substitute" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_substitute" != "no" ; then
      enable_substitute=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_substitute=no
    fi
  else
    enable_substitute=no
  fi
  if test "$enable_substitute" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_substitute$_apmod_extra_msg" >&5
printf "%s\n" "$enable_substitute$_apmod_extra_msg" >&6; }
  if test "$enable_substitute" != "no"; then
    case "$enable_substitute" in
    static*)
      MODLIST="$MODLIST substitute"
      if test "substitute" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES substitute"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},substitute"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_substitute.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_substitute.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SUBSTITUTE_LDADD)
EOF
      if test ! -z "\$(MOD_SUBSTITUTE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SUBSTITUTE_LDADD)\""
    AP_LIBS="\$(MOD_SUBSTITUTE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SUBSTITUTE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_substitute.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SUBSTITUTE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SUBSTITUTE_LDADD"



  fi


sed_obj="mod_sed.lo sed0.lo sed1.lo regexp.lo"

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_sed" >&5
printf %s "checking whether to enable mod_sed... " >&6; }
    # Check whether --enable-sed was given.
if test ${enable_sed+y}
then :
  enableval=$enable_sed; force_sed=$enableval
else $as_nop
  enable_sed=most
fi

    _apmod_extra_msg=""
      case "$enable_sed" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_sed" = "static" -o "$enable_sed" = "shared"; then
    :
  elif test "$enable_sed" = "yes"; then
    enable_sed=$module_default
  elif test "$enable_sed" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_sed=$module_default
    else
      enable_sed=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_sed" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_sed=$module_default
    else
      enable_sed=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_sed" = "all" -o "$enable_sed" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_sed=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_sed=no
    fi
  elif test "$enable_sed" = "reallyall" -o "$enable_sed" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_sed" != "no" ; then
      enable_sed=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_sed=no
    fi
  else
    enable_sed=no
  fi
  if test "$enable_sed" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :

    if test "x$enable_sed" = "xshared"; then
        # The only symbol which needs to be exported is the module
        # structure, so ask libtool to hide libsed internals:

  if test "x$MOD_SED_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_SED_LDADD to \"-export-symbols-regex sed_module\""
    MOD_SED_LDADD="-export-symbols-regex sed_module"
  else
    apr_addto_bugger="-export-symbols-regex sed_module"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_SED_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SED_LDADD"
        MOD_SED_LDADD="$MOD_SED_LDADD $i"
      fi
    done
  fi

    fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_sed" >&5
printf %s "checking whether to enable mod_sed... " >&6; }
            if test "$enable_sed" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_sed has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_sed$_apmod_extra_msg" >&5
printf "%s\n" "$enable_sed$_apmod_extra_msg" >&6; }
  if test "$enable_sed" != "no"; then
    case "$enable_sed" in
    static*)
      MODLIST="$MODLIST sed"
      if test "sed" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES sed"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},sed"
      fi
      ;;
    esac


  if test -z "$sed_obj"; then
    objects="mod_sed.lo"
  else
    objects="$sed_obj"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_sed.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SED_LDADD)
EOF
      if test ! -z "\$(MOD_SED_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SED_LDADD)\""
    AP_LIBS="\$(MOD_SED_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SED_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_sed.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SED_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SED_LDADD"



  fi


if test "$ac_cv_ebcdic" = "yes"; then
# mod_charset_lite can be very useful on an ebcdic system,
#   so include it by default

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_charset_lite" >&5
printf %s "checking whether to enable mod_charset_lite... " >&6; }
    # Check whether --enable-charset-lite was given.
if test ${enable_charset_lite+y}
then :
  enableval=$enable_charset_lite; force_charset_lite=$enableval
else $as_nop
  enable_charset_lite=yes
fi

    _apmod_extra_msg=""
      case "$enable_charset_lite" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_charset_lite" = "static" -o "$enable_charset_lite" = "shared"; then
    :
  elif test "$enable_charset_lite" = "yes"; then
    enable_charset_lite=$module_default
  elif test "$enable_charset_lite" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_charset_lite=$module_default
    else
      enable_charset_lite=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_charset_lite" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_charset_lite=$module_default
    else
      enable_charset_lite=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_charset_lite" = "all" -o "$enable_charset_lite" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_charset_lite=no
    fi
  elif test "$enable_charset_lite" = "reallyall" -o "$enable_charset_lite" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_charset_lite" != "no" ; then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_charset_lite=no
    fi
  else
    enable_charset_lite=no
  fi
  if test "$enable_charset_lite" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_charset_lite$_apmod_extra_msg" >&5
printf "%s\n" "$enable_charset_lite$_apmod_extra_msg" >&6; }
  if test "$enable_charset_lite" != "no"; then
    case "$enable_charset_lite" in
    static*)
      MODLIST="$MODLIST charset_lite"
      if test "charset_lite" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES charset_lite"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},charset_lite"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_charset_lite.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_charset_lite.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
EOF
      if test ! -z "\$(MOD_CHARSET_LITE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CHARSET_LITE_LDADD)\""
    AP_LIBS="\$(MOD_CHARSET_LITE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CHARSET_LITE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_charset_lite.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"



  fi

else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_charset_lite" >&5
printf %s "checking whether to enable mod_charset_lite... " >&6; }
    # Check whether --enable-charset-lite was given.
if test ${enable_charset_lite+y}
then :
  enableval=$enable_charset_lite; force_charset_lite=$enableval
else $as_nop
  enable_charset_lite=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_charset_lite" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_charset_lite" = "static" -o "$enable_charset_lite" = "shared"; then
    :
  elif test "$enable_charset_lite" = "yes"; then
    enable_charset_lite=$module_default
  elif test "$enable_charset_lite" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_charset_lite=$module_default
    else
      enable_charset_lite=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_charset_lite" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_charset_lite=$module_default
    else
      enable_charset_lite=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_charset_lite" = "all" -o "$enable_charset_lite" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_charset_lite=no
    fi
  elif test "$enable_charset_lite" = "reallyall" -o "$enable_charset_lite" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_charset_lite" != "no" ; then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_charset_lite=no
    fi
  else
    enable_charset_lite=no
  fi
  if test "$enable_charset_lite" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_charset_lite$_apmod_extra_msg" >&5
printf "%s\n" "$enable_charset_lite$_apmod_extra_msg" >&6; }
  if test "$enable_charset_lite" != "no"; then
    case "$enable_charset_lite" in
    static*)
      MODLIST="$MODLIST charset_lite"
      if test "charset_lite" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES charset_lite"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},charset_lite"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_charset_lite.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_charset_lite.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
EOF
      if test ! -z "\$(MOD_CHARSET_LITE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CHARSET_LITE_LDADD)\""
    AP_LIBS="\$(MOD_CHARSET_LITE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CHARSET_LITE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_charset_lite.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"



  fi

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_deflate" >&5
printf %s "checking whether to enable mod_deflate... " >&6; }
    # Check whether --enable-deflate was given.
if test ${enable_deflate+y}
then :
  enableval=$enable_deflate; force_deflate=$enableval
else $as_nop
  enable_deflate=most
fi

    _apmod_extra_msg=""
      case "$enable_deflate" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_deflate" = "static" -o "$enable_deflate" = "shared"; then
    :
  elif test "$enable_deflate" = "yes"; then
    enable_deflate=$module_default
  elif test "$enable_deflate" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_deflate=$module_default
    else
      enable_deflate=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_deflate" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_deflate=$module_default
    else
      enable_deflate=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_deflate" = "all" -o "$enable_deflate" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_deflate=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_deflate=no
    fi
  elif test "$enable_deflate" = "reallyall" -o "$enable_deflate" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_deflate" != "no" ; then
      enable_deflate=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_deflate=no
    fi
  else
    enable_deflate=no
  fi
  if test "$enable_deflate" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


# Check whether --with-z was given.
if test ${with_z+y}
then :
  withval=$with_z;
    if test "x$withval" != "xyes" && test "x$withval" != "x"; then
      ap_zlib_base="$withval"
      ap_zlib_with="yes"
    fi

fi

  if test "x$ap_zlib_base" = "x"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib location" >&5
printf %s "checking for zlib location... " >&6; }
    if test ${ap_cv_zlib+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      for dir in /usr/local /usr ; do
        if test -d $dir && test -f $dir/include/zlib.h; then
          ap_cv_zlib=$dir
          break
        fi
      done

fi

    ap_zlib_base=$ap_cv_zlib
    if test "x$ap_zlib_base" = "x"; then
      enable_deflate=no
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
printf "%s\n" "not found" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_zlib_base" >&5
printf "%s\n" "$ap_zlib_base" >&6; }
    fi
  fi
  if test "$enable_deflate" != "no"; then
    ap_save_includes=$INCLUDES
    ap_save_ldflags=$LDFLAGS
    ap_save_cppflags=$CPPFLAGS
    ap_zlib_ldflags=""
    if test "$ap_zlib_base" != "/usr"; then

  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I${ap_zlib_base}/include\""
    INCLUDES="-I${ap_zlib_base}/include"
  else
    apr_addto_bugger="-I${ap_zlib_base}/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi


  if test "x$MOD_INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"-I${ap_zlib_base}/include\""
    MOD_INCLUDES="-I${ap_zlib_base}/include"
  else
    apr_addto_bugger="-I${ap_zlib_base}/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_INCLUDES"
        MOD_INCLUDES="$MOD_INCLUDES $i"
      fi
    done
  fi

            CPPFLAGS="$CPPFLAGS $INCLUDES"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L${ap_zlib_base}/lib\""
    LDFLAGS="-L${ap_zlib_base}/lib"
  else
    apr_addto_bugger="-L${ap_zlib_base}/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$ap_zlib_ldflags" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ap_zlib_ldflags to \"-L${ap_zlib_base}/lib\""
    ap_zlib_ldflags="-L${ap_zlib_base}/lib"
  else
    apr_addto_bugger="-L${ap_zlib_base}/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ap_zlib_ldflags; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_zlib_ldflags"
        ap_zlib_ldflags="$ap_zlib_ldflags $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag${ap_zlib_base}/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$ap_zlib_ldflags" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ap_zlib_ldflags to \"$ap_platform_runtime_link_flag${ap_zlib_base}/lib\""
    ap_zlib_ldflags="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ap_zlib_ldflags; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ap_zlib_ldflags"
        ap_zlib_ldflags="$ap_zlib_ldflags $i"
      fi
    done
  fi

      fi
    fi

  if test "x$LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lz\""
    LIBS="-lz"
  else
    apr_addto_bugger="-lz"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
printf %s "checking for zlib library... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <zlib.h>
int
main (void)
{
int i = Z_OK;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
printf "%s\n" "found" >&6; }

  if test "x$MOD_DEFLATE_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_DEFLATE_LDADD to \"$ap_zlib_ldflags -lz\""
    MOD_DEFLATE_LDADD="$ap_zlib_ldflags -lz"
  else
    apr_addto_bugger="$ap_zlib_ldflags -lz"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_DEFLATE_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_DEFLATE_LDADD"
        MOD_DEFLATE_LDADD="$MOD_DEFLATE_LDADD $i"
      fi
    done
  fi

else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
printf "%s\n" "not found" >&6; }
       enable_deflate=no
       if test "x$ap_zlib_with" = "x"; then
         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ... Error, zlib was missing or unusable" >&5
printf "%s\n" "$as_me: WARNING: ... Error, zlib was missing or unusable" >&2;}
       else
         as_fn_error $? "... Error, zlib was missing or unusable" "$LINENO" 5
       fi

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
    INCLUDES=$ap_save_includes
    LDFLAGS=$ap_save_ldflags
    CPPFLAGS=$ap_save_cppflags

  if test "x$LIBS" = "x-lz"; then
    test "x$silent" != "xyes" && echo "  nulling LIBS"
    LIBS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $LIBS; do
      if test "x$i" != "x-lz"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-lz\" from LIBS"
      LIBS=$apr_new_bugger
    fi
  fi

  fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_deflate" >&5
printf %s "checking whether to enable mod_deflate... " >&6; }
            if test "$enable_deflate" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_deflate has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_deflate$_apmod_extra_msg" >&5
printf "%s\n" "$enable_deflate$_apmod_extra_msg" >&6; }
  if test "$enable_deflate" != "no"; then
    case "$enable_deflate" in
    static*)
      MODLIST="$MODLIST deflate"
      if test "deflate" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES deflate"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},deflate"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_deflate.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_deflate.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_DEFLATE_LDADD)
EOF
      if test ! -z "\$(MOD_DEFLATE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DEFLATE_LDADD)\""
    AP_LIBS="\$(MOD_DEFLATE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_DEFLATE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_deflate.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DEFLATE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DEFLATE_LDADD"



  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_xml2enc" >&5
printf %s "checking whether to enable mod_xml2enc... " >&6; }
    # Check whether --enable-xml2enc was given.
if test ${enable_xml2enc+y}
then :
  enableval=$enable_xml2enc; force_xml2enc=$enableval
else $as_nop
  enable_xml2enc=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_xml2enc" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_xml2enc" = "static" -o "$enable_xml2enc" = "shared"; then
    :
  elif test "$enable_xml2enc" = "yes"; then
    enable_xml2enc=$module_default
  elif test "$enable_xml2enc" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_xml2enc=$module_default
    else
      enable_xml2enc=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_xml2enc" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_xml2enc=$module_default
    else
      enable_xml2enc=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_xml2enc" = "all" -o "$enable_xml2enc" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_xml2enc=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_xml2enc=no
    fi
  elif test "$enable_xml2enc" = "reallyall" -o "$enable_xml2enc" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_xml2enc" != "no" ; then
      enable_xml2enc=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_xml2enc=no
    fi
  else
    enable_xml2enc=no
  fi
  if test "$enable_xml2enc" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
printf %s "checking for libxml2... " >&6; }
if test ${ac_cv_libxml2+y}
then :
  printf %s "(cached) " >&6
else $as_nop


# Check whether --with-libxml2 was given.
if test ${with_libxml2+y}
then :
  withval=$with_libxml2; test_paths="${with_libxml2}/include/libxml2 ${with_libxml2}/include ${with_libxml2}"
else $as_nop
  test_paths="/usr/include/libxml2 /usr/local/include/libxml2 /usr/include /usr/local/include"

fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
printf %s "checking for libxml2... " >&6; }
    xml2_path=""
    for x in ${test_paths}; do
        if test -f "${x}/libxml/parser.h"; then
          xml2_path="${x}"
          break
        fi
    done
    if test -n "${xml2_path}" ; then
      ac_cv_libxml2=yes
      XML2_INCLUDES="${xml2_path}"
    else
      ac_cv_libxml2=no
    fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxml2" >&5
printf "%s\n" "$ac_cv_libxml2" >&6; }

  if test "$ac_cv_libxml2" = "yes" ; then

  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I${XML2_INCLUDES}\""
    MOD_CFLAGS="-I${XML2_INCLUDES}"
  else
    apr_addto_bugger="-I${XML2_INCLUDES}"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_XML2ENC_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_XML2ENC_LDADD to \"-lxml2\""
    MOD_XML2ENC_LDADD="-lxml2"
  else
    apr_addto_bugger="-lxml2"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_XML2ENC_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_XML2ENC_LDADD"
        MOD_XML2ENC_LDADD="$MOD_XML2ENC_LDADD $i"
      fi
    done
  fi

  else
    enable_xml2enc=no
  fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_xml2enc" >&5
printf %s "checking whether to enable mod_xml2enc... " >&6; }
            if test "$enable_xml2enc" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_xml2enc has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xml2enc$_apmod_extra_msg" >&5
printf "%s\n" "$enable_xml2enc$_apmod_extra_msg" >&6; }
  if test "$enable_xml2enc" != "no"; then
    case "$enable_xml2enc" in
    static*)
      MODLIST="$MODLIST xml2enc"
      if test "xml2enc" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES xml2enc"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},xml2enc"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_xml2enc.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_xml2enc.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_XML2ENC_LDADD)
EOF
      if test ! -z "\$(MOD_XML2ENC_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_XML2ENC_LDADD)\""
    AP_LIBS="\$(MOD_XML2ENC_LDADD)"
  else
    apr_addto_bugger="\$(MOD_XML2ENC_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_xml2enc.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_XML2ENC_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_XML2ENC_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_html" >&5
printf %s "checking whether to enable mod_proxy_html... " >&6; }
    # Check whether --enable-proxy-html was given.
if test ${enable_proxy_html+y}
then :
  enableval=$enable_proxy_html; force_proxy_html=$enableval
else $as_nop
  enable_proxy_html=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_proxy_html" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_html" = "static" -o "$enable_proxy_html" = "shared"; then
    :
  elif test "$enable_proxy_html" = "yes"; then
    enable_proxy_html=$module_default
  elif test "$enable_proxy_html" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_html=$module_default
    else
      enable_proxy_html=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_html" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_html=$module_default
    else
      enable_proxy_html=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_html" = "all" -o "$enable_proxy_html" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_html=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_html=no
    fi
  elif test "$enable_proxy_html" = "reallyall" -o "$enable_proxy_html" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_html" != "no" ; then
      enable_proxy_html=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_html=no
    fi
  else
    enable_proxy_html=no
  fi
  if test "$enable_proxy_html" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
printf %s "checking for libxml2... " >&6; }
if test ${ac_cv_libxml2+y}
then :
  printf %s "(cached) " >&6
else $as_nop


# Check whether --with-libxml2 was given.
if test ${with_libxml2+y}
then :
  withval=$with_libxml2; test_paths="${with_libxml2}/include/libxml2 ${with_libxml2}/include ${with_libxml2}"
else $as_nop
  test_paths="/usr/include/libxml2 /usr/local/include/libxml2 /usr/include /usr/local/include"

fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
printf %s "checking for libxml2... " >&6; }
    xml2_path=""
    for x in ${test_paths}; do
        if test -f "${x}/libxml/parser.h"; then
          xml2_path="${x}"
          break
        fi
    done
    if test -n "${xml2_path}" ; then
      ac_cv_libxml2=yes
      XML2_INCLUDES="${xml2_path}"
    else
      ac_cv_libxml2=no
    fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxml2" >&5
printf "%s\n" "$ac_cv_libxml2" >&6; }

  if test "$ac_cv_libxml2" = "yes" ; then

  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I${XML2_INCLUDES}\""
    MOD_CFLAGS="-I${XML2_INCLUDES}"
  else
    apr_addto_bugger="-I${XML2_INCLUDES}"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_PROXY_HTML_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_PROXY_HTML_LDADD to \"-lxml2\""
    MOD_PROXY_HTML_LDADD="-lxml2"
  else
    apr_addto_bugger="-lxml2"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_PROXY_HTML_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_PROXY_HTML_LDADD"
        MOD_PROXY_HTML_LDADD="$MOD_PROXY_HTML_LDADD $i"
      fi
    done
  fi

  else
    enable_proxy_html=no
  fi


            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_html" >&5
printf %s "checking whether to enable mod_proxy_html... " >&6; }
            if test "$enable_proxy_html" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_html has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_html$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_html$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_html" != "no"; then
    case "$enable_proxy_html" in
    static*)
      MODLIST="$MODLIST proxy_html"
      if test "proxy_html" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_html"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_html"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_proxy_html.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_html.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_HTML_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_HTML_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_HTML_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_HTML_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_HTML_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_html.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HTML_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTML_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_brotli" >&5
printf %s "checking whether to enable mod_brotli... " >&6; }
    # Check whether --enable-brotli was given.
if test ${enable_brotli+y}
then :
  enableval=$enable_brotli; force_brotli=$enableval
else $as_nop
  enable_brotli=most
fi

    _apmod_extra_msg=""
      case "$enable_brotli" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_brotli" = "static" -o "$enable_brotli" = "shared"; then
    :
  elif test "$enable_brotli" = "yes"; then
    enable_brotli=$module_default
  elif test "$enable_brotli" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_brotli=$module_default
    else
      enable_brotli=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_brotli" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_brotli=$module_default
    else
      enable_brotli=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_brotli" = "all" -o "$enable_brotli" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_brotli=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_brotli=no
    fi
  elif test "$enable_brotli" = "reallyall" -o "$enable_brotli" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_brotli" != "no" ; then
      enable_brotli=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_brotli=no
    fi
  else
    enable_brotli=no
  fi
  if test "$enable_brotli" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


# Check whether --with-brotli was given.
if test ${with_brotli+y}
then :
  withval=$with_brotli;
    if test "$withval" != "yes" -a "x$withval" != "x"; then
      ap_brotli_base="$withval"
      ap_brotli_with=yes
    fi

fi

  ap_brotli_found=no
  if test -n "$ap_brotli_base"; then
    ap_save_cppflags=$CPPFLAGS

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I${ap_brotli_base}/include\""
    CPPFLAGS="-I${ap_brotli_base}/include"
  else
    apr_addto_bugger="-I${ap_brotli_base}/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Brotli library >= 0.6.0 via prefix" >&5
printf %s "checking for Brotli library >= 0.6.0 via prefix... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <brotli/encode.h>
int
main (void)
{

const uint8_t *o = BrotliEncoderTakeOutput((BrotliEncoderState*)0, (size_t*)0);
if (o) return *o;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
       ap_brotli_found=yes
       ap_brotli_cflags="-I${ap_brotli_base}/include"
       ap_brotli_libs="-L${ap_brotli_base}/lib -lbrotlienc -lbrotlicommon"
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    CPPFLAGS=$ap_save_cppflags
  else
    if test -n "$PKGCONFIG"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Brotli library >= 0.6.0 via pkg-config" >&5
printf %s "checking for Brotli library >= 0.6.0 via pkg-config... " >&6; }
      if $PKGCONFIG --exists "libbrotlienc >= 0.6.0"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        ap_brotli_found=yes
        ap_brotli_cflags=`$PKGCONFIG libbrotlienc --cflags`
        ap_brotli_libs=`$PKGCONFIG libbrotlienc --libs`
      else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      fi
    fi
  fi
  if test "$ap_brotli_found" = "yes"; then

  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$ap_brotli_cflags\""
    MOD_CFLAGS="$ap_brotli_cflags"
  else
    apr_addto_bugger="$ap_brotli_cflags"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_BROTLI_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_BROTLI_LDADD to \"$ap_brotli_libs\""
    MOD_BROTLI_LDADD="$ap_brotli_libs"
  else
    apr_addto_bugger="$ap_brotli_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_BROTLI_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_BROTLI_LDADD"
        MOD_BROTLI_LDADD="$MOD_BROTLI_LDADD $i"
      fi
    done
  fi

    if test "$enable_brotli" = "shared"; then

  if test "x$MOD_BROTLI_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_BROTLI_LDADD to \"-export-symbols-regex brotli_module\""
    MOD_BROTLI_LDADD="-export-symbols-regex brotli_module"
  else
    apr_addto_bugger="-export-symbols-regex brotli_module"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_BROTLI_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_BROTLI_LDADD"
        MOD_BROTLI_LDADD="$MOD_BROTLI_LDADD $i"
      fi
    done
  fi

    fi
  else
    enable_brotli=no
    if test "$ap_brotli_with" = "yes"; then
      as_fn_error $? "Brotli library was missing or unusable" "$LINENO" 5
    fi
  fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_brotli" >&5
printf %s "checking whether to enable mod_brotli... " >&6; }
            if test "$enable_brotli" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_brotli has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_brotli$_apmod_extra_msg" >&5
printf "%s\n" "$enable_brotli$_apmod_extra_msg" >&6; }
  if test "$enable_brotli" != "no"; then
    case "$enable_brotli" in
    static*)
      MODLIST="$MODLIST brotli"
      if test "brotli" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES brotli"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},brotli"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_brotli.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_brotli.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_BROTLI_LDADD)
EOF
      if test ! -z "\$(MOD_BROTLI_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_BROTLI_LDADD)\""
    AP_LIBS="\$(MOD_BROTLI_LDADD)"
  else
    apr_addto_bugger="\$(MOD_BROTLI_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_brotli.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_BROTLI_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BROTLI_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=http
  modpath_current=modules/http
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d http || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


http_objects="http_core.lo http_protocol.lo http_request.lo http_filters.lo chunk_filter.lo byterange_filter.lo http_etag.lo"

if test "$enable_http" = "yes"; then
    enable_http="static"
elif test "$enable_http" = "shared"; then
    as_fn_error $? "mod_http can not be built as a shared DSO" "$LINENO" 5
fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_http" >&5
printf %s "checking whether to enable mod_http... " >&6; }
    # Check whether --enable-http was given.
if test ${enable_http+y}
then :
  enableval=$enable_http; force_http=$enableval
else $as_nop
  enable_http=static
fi

    _apmod_extra_msg=""
      case "$enable_http" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_http" = "static" -o "$enable_http" = "shared"; then
    :
  elif test "$enable_http" = "yes"; then
    enable_http=$module_default
  elif test "$enable_http" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_http=$module_default
    else
      enable_http=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_http" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_http=$module_default
    else
      enable_http=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_http" = "all" -o "$enable_http" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_http=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_http=no
    fi
  elif test "$enable_http" = "reallyall" -o "$enable_http" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_http" != "no" ; then
      enable_http=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_http=no
    fi
  else
    enable_http=no
  fi
  if test "$enable_http" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_http$_apmod_extra_msg" >&5
printf "%s\n" "$enable_http$_apmod_extra_msg" >&6; }
  if test "$enable_http" != "no"; then
    case "$enable_http" in
    static*)
      MODLIST="$MODLIST http"
      if test "http" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES http"
      if test "static" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},http"
      fi
      ;;
    esac


  if test -z "$http_objects"; then
    objects="mod_http.lo"
  else
    objects="$http_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_http.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_HTTP_LDADD)
EOF
      if test ! -z "\$(MOD_HTTP_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HTTP_LDADD)\""
    AP_LIBS="\$(MOD_HTTP_LDADD)"
  else
    apr_addto_bugger="\$(MOD_HTTP_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_http.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HTTP_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HTTP_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_mime" >&5
printf %s "checking whether to enable mod_mime... " >&6; }
    # Check whether --enable-mime was given.
if test ${enable_mime+y}
then :
  enableval=$enable_mime; force_mime=$enableval
else $as_nop
  enable_mime=yes
fi

    _apmod_extra_msg=""
      case "$enable_mime" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_mime" = "static" -o "$enable_mime" = "shared"; then
    :
  elif test "$enable_mime" = "yes"; then
    enable_mime=$module_default
  elif test "$enable_mime" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_mime=$module_default
    else
      enable_mime=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_mime" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_mime=$module_default
    else
      enable_mime=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_mime" = "all" -o "$enable_mime" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_mime=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_mime=no
    fi
  elif test "$enable_mime" = "reallyall" -o "$enable_mime" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_mime" != "no" ; then
      enable_mime=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_mime=no
    fi
  else
    enable_mime=no
  fi
  if test "$enable_mime" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_mime$_apmod_extra_msg" >&5
printf "%s\n" "$enable_mime$_apmod_extra_msg" >&6; }
  if test "$enable_mime" != "no"; then
    case "$enable_mime" in
    static*)
      MODLIST="$MODLIST mime"
      if test "mime" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES mime"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mime"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_mime.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_mime.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_MIME_LDADD)
EOF
      if test ! -z "\$(MOD_MIME_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MIME_LDADD)\""
    AP_LIBS="\$(MOD_MIME_LDADD)"
  else
    apr_addto_bugger="\$(MOD_MIME_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_mime.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=ldap
  modpath_current=modules/ldap
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d ldap || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


ldap_objects="util_ldap.lo util_ldap_cache.lo util_ldap_cache_mgr.lo"

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ldap" >&5
printf %s "checking whether to enable mod_ldap... " >&6; }
    # Check whether --enable-ldap was given.
if test ${enable_ldap+y}
then :
  enableval=$enable_ldap; force_ldap=$enableval
else $as_nop
  enable_ldap=most
fi

    _apmod_extra_msg=""
      case "$enable_ldap" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_ldap" = "static" -o "$enable_ldap" = "shared"; then
    :
  elif test "$enable_ldap" = "yes"; then
    enable_ldap=$module_default
  elif test "$enable_ldap" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ldap=$module_default
    else
      enable_ldap=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ldap" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_ldap=$module_default
    else
      enable_ldap=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ldap" = "all" -o "$enable_ldap" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ldap=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ldap=no
    fi
  elif test "$enable_ldap" = "reallyall" -o "$enable_ldap" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_ldap" != "no" ; then
      enable_ldap=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ldap=no
    fi
  else
    enable_ldap=no
  fi
  if test "$enable_ldap" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap support in apr/apr-util" >&5
printf %s "checking for ldap support in apr/apr-util... " >&6; }
if test ${ac_cv_APR_HAS_LDAP+y}
then :
  printf %s "(cached) " >&6
else $as_nop

    apache_old_cppflags="$CPPFLAGS"
    CPPFLAGS="$CPPFLAGS $INCLUDES"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr_ldap.h>
#if APR_HAS_LDAP
YES_IS_DEFINED
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
then :
  ac_cv_APR_HAS_LDAP=yes
else $as_nop
  ac_cv_APR_HAS_LDAP=no
fi
rm -rf conftest*

    CPPFLAGS="$apache_old_cppflags"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_APR_HAS_LDAP" >&5
printf "%s\n" "$ac_cv_APR_HAS_LDAP" >&6; }

  if test "$ac_cv_APR_HAS_LDAP" = "yes" ; then
    if test -z "$apu_config" ; then
      LDAP_LIBS="`$apr_config --ldap-libs`"
    else
      LDAP_LIBS="`$apu_config --ldap-libs`"
    fi

  if test "x$MOD_LDAP_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDAP_LDADD to \"$LDAP_LIBS\""
    MOD_LDAP_LDADD="$LDAP_LIBS"
  else
    apr_addto_bugger="$LDAP_LIBS"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDAP_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDAP_LDADD"
        MOD_LDAP_LDADD="$MOD_LDAP_LDADD $i"
      fi
    done
  fi


  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: apr/apr-util is compiled without ldap support" >&5
printf "%s\n" "$as_me: WARNING: apr/apr-util is compiled without ldap support" >&2;}
    enable_ldap=no
  fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ldap" >&5
printf %s "checking whether to enable mod_ldap... " >&6; }
            if test "$enable_ldap" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_ldap has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ldap$_apmod_extra_msg" >&5
printf "%s\n" "$enable_ldap$_apmod_extra_msg" >&6; }
  if test "$enable_ldap" != "no"; then
    case "$enable_ldap" in
    static*)
      MODLIST="$MODLIST ldap"
      if test "ldap" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES ldap"
      if test "most " = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ldap"
      fi
      ;;
    esac


  if test -z "$ldap_objects"; then
    objects="mod_ldap.lo"
  else
    objects="$ldap_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_ldap.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LDAP_LDADD)
EOF
      if test ! -z "\$(MOD_LDAP_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LDAP_LDADD)\""
    AP_LIBS="\$(MOD_LDAP_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LDAP_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_ldap.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LDAP_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LDAP_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=loggers
  modpath_current=modules/loggers
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d loggers || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_log_config" >&5
printf %s "checking whether to enable mod_log_config... " >&6; }
    # Check whether --enable-log-config was given.
if test ${enable_log_config+y}
then :
  enableval=$enable_log_config; force_log_config=$enableval
else $as_nop
  enable_log_config=yes
fi

    _apmod_extra_msg=""
      case "$enable_log_config" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_log_config" = "static" -o "$enable_log_config" = "shared"; then
    :
  elif test "$enable_log_config" = "yes"; then
    enable_log_config=$module_default
  elif test "$enable_log_config" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_log_config=$module_default
    else
      enable_log_config=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_log_config" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_log_config=$module_default
    else
      enable_log_config=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_log_config" = "all" -o "$enable_log_config" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_log_config=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_log_config=no
    fi
  elif test "$enable_log_config" = "reallyall" -o "$enable_log_config" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_log_config" != "no" ; then
      enable_log_config=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_log_config=no
    fi
  else
    enable_log_config=no
  fi
  if test "$enable_log_config" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_log_config$_apmod_extra_msg" >&5
printf "%s\n" "$enable_log_config$_apmod_extra_msg" >&6; }
  if test "$enable_log_config" != "no"; then
    case "$enable_log_config" in
    static*)
      MODLIST="$MODLIST log_config"
      if test "log_config" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES log_config"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},log_config"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_log_config.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_log_config.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LOG_CONFIG_LDADD)
EOF
      if test ! -z "\$(MOD_LOG_CONFIG_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOG_CONFIG_LDADD)\""
    AP_LIBS="\$(MOD_LOG_CONFIG_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LOG_CONFIG_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_log_config.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_CONFIG_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_CONFIG_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_log_debug" >&5
printf %s "checking whether to enable mod_log_debug... " >&6; }
    # Check whether --enable-log-debug was given.
if test ${enable_log_debug+y}
then :
  enableval=$enable_log_debug; force_log_debug=$enableval
else $as_nop
  enable_log_debug=most
fi

    _apmod_extra_msg=""
      case "$enable_log_debug" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_log_debug" = "static" -o "$enable_log_debug" = "shared"; then
    :
  elif test "$enable_log_debug" = "yes"; then
    enable_log_debug=$module_default
  elif test "$enable_log_debug" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_log_debug=$module_default
    else
      enable_log_debug=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_log_debug" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_log_debug=$module_default
    else
      enable_log_debug=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_log_debug" = "all" -o "$enable_log_debug" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_log_debug=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_log_debug=no
    fi
  elif test "$enable_log_debug" = "reallyall" -o "$enable_log_debug" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_log_debug" != "no" ; then
      enable_log_debug=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_log_debug=no
    fi
  else
    enable_log_debug=no
  fi
  if test "$enable_log_debug" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_log_debug$_apmod_extra_msg" >&5
printf "%s\n" "$enable_log_debug$_apmod_extra_msg" >&6; }
  if test "$enable_log_debug" != "no"; then
    case "$enable_log_debug" in
    static*)
      MODLIST="$MODLIST log_debug"
      if test "log_debug" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES log_debug"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},log_debug"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_log_debug.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_log_debug.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LOG_DEBUG_LDADD)
EOF
      if test ! -z "\$(MOD_LOG_DEBUG_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOG_DEBUG_LDADD)\""
    AP_LIBS="\$(MOD_LOG_DEBUG_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LOG_DEBUG_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_log_debug.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_DEBUG_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_DEBUG_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_log_forensic" >&5
printf %s "checking whether to enable mod_log_forensic... " >&6; }
    # Check whether --enable-log-forensic was given.
if test ${enable_log_forensic+y}
then :
  enableval=$enable_log_forensic; force_log_forensic=$enableval
else $as_nop
  enable_log_forensic=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_log_forensic" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_log_forensic" = "static" -o "$enable_log_forensic" = "shared"; then
    :
  elif test "$enable_log_forensic" = "yes"; then
    enable_log_forensic=$module_default
  elif test "$enable_log_forensic" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_log_forensic=$module_default
    else
      enable_log_forensic=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_log_forensic" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_log_forensic=$module_default
    else
      enable_log_forensic=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_log_forensic" = "all" -o "$enable_log_forensic" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_log_forensic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_log_forensic=no
    fi
  elif test "$enable_log_forensic" = "reallyall" -o "$enable_log_forensic" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_log_forensic" != "no" ; then
      enable_log_forensic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_log_forensic=no
    fi
  else
    enable_log_forensic=no
  fi
  if test "$enable_log_forensic" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_log_forensic$_apmod_extra_msg" >&5
printf "%s\n" "$enable_log_forensic$_apmod_extra_msg" >&6; }
  if test "$enable_log_forensic" != "no"; then
    case "$enable_log_forensic" in
    static*)
      MODLIST="$MODLIST log_forensic"
      if test "log_forensic" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES log_forensic"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},log_forensic"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_log_forensic.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_log_forensic.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LOG_FORENSIC_LDADD)
EOF
      if test ! -z "\$(MOD_LOG_FORENSIC_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOG_FORENSIC_LDADD)\""
    AP_LIBS="\$(MOD_LOG_FORENSIC_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LOG_FORENSIC_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_log_forensic.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_FORENSIC_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_FORENSIC_LDADD"



  fi


if test "x$enable_log_forensic" != "xno"; then
    # mod_log_forensic needs test_char.h

  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_builddir)/server\""
    INCLUDES="-I\$(top_builddir)/server"
  else
    apr_addto_bugger="-I\$(top_builddir)/server"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi

fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_logio" >&5
printf %s "checking whether to enable mod_logio... " >&6; }
    # Check whether --enable-logio was given.
if test ${enable_logio+y}
then :
  enableval=$enable_logio; force_logio=$enableval
else $as_nop
  enable_logio=most
fi

    _apmod_extra_msg=""
      case "$enable_logio" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_logio" = "static" -o "$enable_logio" = "shared"; then
    :
  elif test "$enable_logio" = "yes"; then
    enable_logio=$module_default
  elif test "$enable_logio" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_logio=$module_default
    else
      enable_logio=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_logio" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_logio=$module_default
    else
      enable_logio=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_logio" = "all" -o "$enable_logio" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_logio=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_logio=no
    fi
  elif test "$enable_logio" = "reallyall" -o "$enable_logio" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_logio" != "no" ; then
      enable_logio=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_logio=no
    fi
  else
    enable_logio=no
  fi
  if test "$enable_logio" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_logio$_apmod_extra_msg" >&5
printf "%s\n" "$enable_logio$_apmod_extra_msg" >&6; }
  if test "$enable_logio" != "no"; then
    case "$enable_logio" in
    static*)
      MODLIST="$MODLIST logio"
      if test "logio" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES logio"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},logio"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_logio.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_logio.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LOGIO_LDADD)
EOF
      if test ! -z "\$(MOD_LOGIO_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LOGIO_LDADD)\""
    AP_LIBS="\$(MOD_LOGIO_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LOGIO_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_logio.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOGIO_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOGIO_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=lua
  modpath_current=modules/lua
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d lua || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk






lua_objects="lua_apr.lo lua_config.lo mod_lua.lo lua_request.lo lua_vmprep.lo lua_dbd.lo lua_passwd.lo"


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lua" >&5
printf %s "checking whether to enable mod_lua... " >&6; }
    # Check whether --enable-lua was given.
if test ${enable_lua+y}
then :
  enableval=$enable_lua; force_lua=$enableval
else $as_nop
  enable_lua=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_lua" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_lua" = "static" -o "$enable_lua" = "shared"; then
    :
  elif test "$enable_lua" = "yes"; then
    enable_lua=$module_default
  elif test "$enable_lua" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lua=$module_default
    else
      enable_lua=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lua" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_lua=$module_default
    else
      enable_lua=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lua" = "all" -o "$enable_lua" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lua=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lua=no
    fi
  elif test "$enable_lua" = "reallyall" -o "$enable_lua" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_lua" != "no" ; then
      enable_lua=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lua=no
    fi
  else
    enable_lua=no
  fi
  if test "$enable_lua" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :



# Check whether --with-lua was given.
if test ${with_lua+y}
then :
  withval=$with_lua; lua_path="$withval"
else $as_nop
  :
fi


if test -z "$lua_path"; then
    test_paths=". /usr/local /usr"
else
    test_paths="${lua_path}"
fi

for pklua in lua lua5.4 lua5.3 lua5.2 lua5.1; do
  if test -n "$PKGCONFIG" -a -z "$lua_path" \
     && $PKGCONFIG --atleast-version=5.1 $pklua; then
    LUA_LIBS="`$PKGCONFIG --libs $pklua`"
    LUA_CFLAGS="`$PKGCONFIG --cflags $pklua`"
    LUA_VERSION="`$PKGCONFIG --modversion $pklua`"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using Lua $LUA_VERSION configuration from pkg-config" >&5
printf "%s\n" "$as_me: using Lua $LUA_VERSION configuration from pkg-config" >&6;}
    break
  fi
done

if test -z "$LUA_VERSION"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
printf %s "checking for pow in -lm... " >&6; }
if test ${ac_cv_lib_m_pow+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char pow ();
int
main (void)
{
return pow ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_m_pow=yes
else $as_nop
  ac_cv_lib_m_pow=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
if test "x$ac_cv_lib_m_pow" = xyes
then :
  lib_m="-lm"
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
printf %s "checking for sqrt in -lm... " >&6; }
if test ${ac_cv_lib_m_sqrt+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char sqrt ();
int
main (void)
{
return sqrt ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_m_sqrt=yes
else $as_nop
  ac_cv_lib_m_sqrt=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
if test "x$ac_cv_lib_m_sqrt" = xyes
then :
  lib_m="-lm"
fi

  for x in $test_paths ; do
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua-5.4" >&5
printf %s "checking for lua.h in ${x}/include/lua-5.4... " >&6; }
    if test -f ${x}/include/lua-5.4/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib/lua-5.4 $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua-5.4" >&5
printf %s "checking for luaL_newstate in -llua-5.4... " >&6; }
if test ${ac_cv_lib_lua_5_4_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua-5.4  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua_5_4_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua_5_4_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_5_4_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua_5_4_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua_5_4_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib/lua-5.4 -llua-5.4 $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib/lua-5.4\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib/lua-5.4"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib/lua-5.4"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua-5.4"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua5.4" >&5
printf %s "checking for lua.h in ${x}/include/lua5.4... " >&6; }
    if test -f ${x}/include/lua5.4/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.4" >&5
printf %s "checking for luaL_newstate in -llua5.4... " >&6; }
if test ${ac_cv_lib_lua5_4_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua5.4  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua5_4_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua5_4_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_4_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua5_4_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua5_4_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib -llua5.4 $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua5.4"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua54" >&5
printf %s "checking for lua.h in ${x}/include/lua54... " >&6; }
    if test -f ${x}/include/lua54/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib/lua54 $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
printf %s "checking for luaL_newstate in -llua... " >&6; }
if test ${ac_cv_lib_lua_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib/lua54 -llua $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib/lua54\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib/lua54"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib/lua54"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua54"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi


        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua-5.3" >&5
printf %s "checking for lua.h in ${x}/include/lua-5.3... " >&6; }
    if test -f ${x}/include/lua-5.3/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib/lua-5.3 $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua-5.3" >&5
printf %s "checking for luaL_newstate in -llua-5.3... " >&6; }
if test ${ac_cv_lib_lua_5_3_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua-5.3  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua_5_3_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua_5_3_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_5_3_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua_5_3_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua_5_3_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib/lua-5.3 -llua-5.3 $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib/lua-5.3\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib/lua-5.3"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib/lua-5.3"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua-5.3"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua5.3" >&5
printf %s "checking for lua.h in ${x}/include/lua5.3... " >&6; }
    if test -f ${x}/include/lua5.3/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.3" >&5
printf %s "checking for luaL_newstate in -llua5.3... " >&6; }
if test ${ac_cv_lib_lua5_3_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua5.3  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua5_3_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua5_3_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_3_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua5_3_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua5_3_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib -llua5.3 $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua5.3"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua53" >&5
printf %s "checking for lua.h in ${x}/include/lua53... " >&6; }
    if test -f ${x}/include/lua53/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib/lua53 $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
printf %s "checking for luaL_newstate in -llua... " >&6; }
if test ${ac_cv_lib_lua_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib/lua53 -llua $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib/lua53\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib/lua53"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib/lua53"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua53"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi


        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include" >&5
printf %s "checking for lua.h in ${x}/include... " >&6; }
    if test -f ${x}/include/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
printf %s "checking for luaL_newstate in -llua... " >&6; }
if test ${ac_cv_lib_lua_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib -llua $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi


        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua-5.2" >&5
printf %s "checking for lua.h in ${x}/include/lua-5.2... " >&6; }
    if test -f ${x}/include/lua-5.2/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib/lua-5.2 $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua-5.2" >&5
printf %s "checking for luaL_newstate in -llua-5.2... " >&6; }
if test ${ac_cv_lib_lua_5_2_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua-5.2  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua_5_2_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua_5_2_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_5_2_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua_5_2_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua_5_2_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib/lua-5.2 -llua-5.2 $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib/lua-5.2\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib/lua-5.2"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib/lua-5.2"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua-5.2"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua5.2" >&5
printf %s "checking for lua.h in ${x}/include/lua5.2... " >&6; }
    if test -f ${x}/include/lua5.2/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.2" >&5
printf %s "checking for luaL_newstate in -llua5.2... " >&6; }
if test ${ac_cv_lib_lua5_2_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua5.2  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua5_2_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua5_2_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_2_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua5_2_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua5_2_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib -llua5.2 $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua5.2"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua52" >&5
printf %s "checking for lua.h in ${x}/include/lua52... " >&6; }
    if test -f ${x}/include/lua52/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib/lua52 $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
printf %s "checking for luaL_newstate in -llua... " >&6; }
if test ${ac_cv_lib_lua_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib/lua52 -llua $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib/lua52\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib/lua52"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib/lua52"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua52"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi


        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua-5.1" >&5
printf %s "checking for lua.h in ${x}/include/lua-5.1... " >&6; }
    if test -f ${x}/include/lua-5.1/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib/lua-5.1 $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua-5.1" >&5
printf %s "checking for luaL_newstate in -llua-5.1... " >&6; }
if test ${ac_cv_lib_lua_5_1_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua-5.1  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua_5_1_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua_5_1_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_5_1_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua_5_1_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua_5_1_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib/lua-5.1 -llua-5.1 $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib/lua-5.1\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib/lua-5.1"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib/lua-5.1"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua-5.1"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua5.1" >&5
printf %s "checking for lua.h in ${x}/include/lua5.1... " >&6; }
    if test -f ${x}/include/lua5.1/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1" >&5
printf %s "checking for luaL_newstate in -llua5.1... " >&6; }
if test ${ac_cv_lib_lua5_1_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua5.1  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua5_1_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua5_1_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua5_1_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua5_1_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib -llua5.1 $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua5.1"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lua.h in ${x}/include/lua51" >&5
printf %s "checking for lua.h in ${x}/include/lua51... " >&6; }
    if test -f ${x}/include/lua51/lua.h; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L${x}/lib/lua51 $LDFLAGS $lib_m"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
printf %s "checking for luaL_newstate in -llua... " >&6; }
if test ${ac_cv_lib_lua_luaL_newstate+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llua  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char luaL_newstate ();
int
main (void)
{
return luaL_newstate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_lua_luaL_newstate=yes
else $as_nop
  ac_cv_lib_lua_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
printf "%s\n" "$ac_cv_lib_lua_luaL_newstate" >&6; }
if test "x$ac_cv_lib_lua_luaL_newstate" = xyes
then :

            LUA_LIBS="-L${x}/lib/lua51 -llua $lib_m"
            if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LUA_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LUA_LIBS to \"$ap_platform_runtime_link_flag${x}/lib/lua51\""
    LUA_LIBS="$ap_platform_runtime_link_flag${x}/lib/lua51"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag${x}/lib/lua51"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LUA_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LUA_LIBS"
        LUA_LIBS="$LUA_LIBS $i"
      fi
    done
  fi

            fi
            LUA_CFLAGS="-I${x}/include/lua51"

fi

        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS

        if test -n "${LUA_LIBS}"; then
            break
        fi
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

  done
fi




if test -z "${LUA_LIBS}"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Lua 5.4 5.3 5.2 or 5.1 library not found." >&5
printf "%s\n" "$as_me: WARNING: *** Lua 5.4 5.3 5.2 or 5.1 library not found." >&2;}
  enable_lua="no"
    if test -z "${lua_path}"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Lua 5.4 5.3 5.2 or 5.1 library is required" >&5
printf "%s\n" "$as_me: WARNING: Lua 5.4 5.3 5.2 or 5.1 library is required" >&2;}
    else
        as_fn_error $? "Lua 5.4 5.3 5.2 or 5.1 library is required" "$LINENO" 5
    fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using '${LUA_LIBS}' for Lua Library" >&5
printf "%s\n" "$as_me: using '${LUA_LIBS}' for Lua Library" >&6;}
  # Check whether --enable-luajit was given.
if test ${enable_luajit+y}
then :
  enableval=$enable_luajit;
    if test "$enableval" = "yes"; then

  if test "x$MOD_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DAP_ENABLE_LUAJIT"\""
    MOD_CPPFLAGS=""-DAP_ENABLE_LUAJIT""
  else
    apr_addto_bugger=""-DAP_ENABLE_LUAJIT""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
      fi
    done
  fi

    fi

fi


fi

  if test "x$enable_lua" != "xno" ; then

  if test "x$MOD_INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_INCLUDES to \"$LUA_CFLAGS\""
    MOD_INCLUDES="$LUA_CFLAGS"
  else
    apr_addto_bugger="$LUA_CFLAGS"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_INCLUDES"
        MOD_INCLUDES="$MOD_INCLUDES $i"
      fi
    done
  fi


  if test "x$MOD_LUA_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LUA_LDADD to \"$LUA_LIBS $CRYPT_LIBS\""
    MOD_LUA_LDADD="$LUA_LIBS $CRYPT_LIBS"
  else
    apr_addto_bugger="$LUA_LIBS $CRYPT_LIBS"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LUA_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LUA_LDADD"
        MOD_LUA_LDADD="$MOD_LUA_LDADD $i"
      fi
    done
  fi

  fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lua" >&5
printf %s "checking whether to enable mod_lua... " >&6; }
            if test "$enable_lua" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_lua has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lua$_apmod_extra_msg" >&5
printf "%s\n" "$enable_lua$_apmod_extra_msg" >&6; }
  if test "$enable_lua" != "no"; then
    case "$enable_lua" in
    static*)
      MODLIST="$MODLIST lua"
      if test "lua" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES lua"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lua"
      fi
      ;;
    esac


  if test -z "$lua_objects"; then
    objects="mod_lua.lo"
  else
    objects="$lua_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_lua.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LUA_LDADD)
EOF
      if test ! -z "\$(MOD_LUA_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LUA_LDADD)\""
    AP_LIBS="\$(MOD_LUA_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LUA_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_lua.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LUA_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LUA_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=metadata
  modpath_current=modules/metadata
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d metadata || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_env" >&5
printf %s "checking whether to enable mod_env... " >&6; }
    # Check whether --enable-env was given.
if test ${enable_env+y}
then :
  enableval=$enable_env; force_env=$enableval
else $as_nop
  enable_env=yes
fi

    _apmod_extra_msg=""
      case "$enable_env" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_env" = "static" -o "$enable_env" = "shared"; then
    :
  elif test "$enable_env" = "yes"; then
    enable_env=$module_default
  elif test "$enable_env" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_env=$module_default
    else
      enable_env=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_env" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_env=$module_default
    else
      enable_env=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_env" = "all" -o "$enable_env" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_env=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_env=no
    fi
  elif test "$enable_env" = "reallyall" -o "$enable_env" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_env" != "no" ; then
      enable_env=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_env=no
    fi
  else
    enable_env=no
  fi
  if test "$enable_env" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_env$_apmod_extra_msg" >&5
printf "%s\n" "$enable_env$_apmod_extra_msg" >&6; }
  if test "$enable_env" != "no"; then
    case "$enable_env" in
    static*)
      MODLIST="$MODLIST env"
      if test "env" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES env"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},env"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_env.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_env.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_ENV_LDADD)
EOF
      if test ! -z "\$(MOD_ENV_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ENV_LDADD)\""
    AP_LIBS="\$(MOD_ENV_LDADD)"
  else
    apr_addto_bugger="\$(MOD_ENV_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_env.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ENV_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ENV_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_mime_magic" >&5
printf %s "checking whether to enable mod_mime_magic... " >&6; }
    # Check whether --enable-mime-magic was given.
if test ${enable_mime_magic+y}
then :
  enableval=$enable_mime_magic; force_mime_magic=$enableval
else $as_nop
  enable_mime_magic=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_mime_magic" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_mime_magic" = "static" -o "$enable_mime_magic" = "shared"; then
    :
  elif test "$enable_mime_magic" = "yes"; then
    enable_mime_magic=$module_default
  elif test "$enable_mime_magic" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_mime_magic=$module_default
    else
      enable_mime_magic=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_mime_magic" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_mime_magic=$module_default
    else
      enable_mime_magic=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_mime_magic" = "all" -o "$enable_mime_magic" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_mime_magic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_mime_magic=no
    fi
  elif test "$enable_mime_magic" = "reallyall" -o "$enable_mime_magic" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_mime_magic" != "no" ; then
      enable_mime_magic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_mime_magic=no
    fi
  else
    enable_mime_magic=no
  fi
  if test "$enable_mime_magic" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_mime_magic$_apmod_extra_msg" >&5
printf "%s\n" "$enable_mime_magic$_apmod_extra_msg" >&6; }
  if test "$enable_mime_magic" != "no"; then
    case "$enable_mime_magic" in
    static*)
      MODLIST="$MODLIST mime_magic"
      if test "mime_magic" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES mime_magic"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},mime_magic"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_mime_magic.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_mime_magic.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_MIME_MAGIC_LDADD)
EOF
      if test ! -z "\$(MOD_MIME_MAGIC_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MIME_MAGIC_LDADD)\""
    AP_LIBS="\$(MOD_MIME_MAGIC_LDADD)"
  else
    apr_addto_bugger="\$(MOD_MIME_MAGIC_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_mime_magic.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_MAGIC_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_MAGIC_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cern_meta" >&5
printf %s "checking whether to enable mod_cern_meta... " >&6; }
    # Check whether --enable-cern-meta was given.
if test ${enable_cern_meta+y}
then :
  enableval=$enable_cern_meta; force_cern_meta=$enableval
else $as_nop
  enable_cern_meta=no
fi

    _apmod_extra_msg=""
      case "$enable_cern_meta" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_cern_meta" = "static" -o "$enable_cern_meta" = "shared"; then
    :
  elif test "$enable_cern_meta" = "yes"; then
    enable_cern_meta=$module_default
  elif test "$enable_cern_meta" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cern_meta=$module_default
    else
      enable_cern_meta=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cern_meta" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_cern_meta=$module_default
    else
      enable_cern_meta=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cern_meta" = "all" -o "$enable_cern_meta" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cern_meta=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cern_meta=no
    fi
  elif test "$enable_cern_meta" = "reallyall" -o "$enable_cern_meta" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_cern_meta" != "no" ; then
      enable_cern_meta=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cern_meta=no
    fi
  else
    enable_cern_meta=no
  fi
  if test "$enable_cern_meta" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cern_meta$_apmod_extra_msg" >&5
printf "%s\n" "$enable_cern_meta$_apmod_extra_msg" >&6; }
  if test "$enable_cern_meta" != "no"; then
    case "$enable_cern_meta" in
    static*)
      MODLIST="$MODLIST cern_meta"
      if test "cern_meta" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cern_meta"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cern_meta"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_cern_meta.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_cern_meta.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CERN_META_LDADD)
EOF
      if test ! -z "\$(MOD_CERN_META_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CERN_META_LDADD)\""
    AP_LIBS="\$(MOD_CERN_META_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CERN_META_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_cern_meta.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CERN_META_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CERN_META_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_expires" >&5
printf %s "checking whether to enable mod_expires... " >&6; }
    # Check whether --enable-expires was given.
if test ${enable_expires+y}
then :
  enableval=$enable_expires; force_expires=$enableval
else $as_nop
  enable_expires=most
fi

    _apmod_extra_msg=""
      case "$enable_expires" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_expires" = "static" -o "$enable_expires" = "shared"; then
    :
  elif test "$enable_expires" = "yes"; then
    enable_expires=$module_default
  elif test "$enable_expires" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_expires=$module_default
    else
      enable_expires=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_expires" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_expires=$module_default
    else
      enable_expires=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_expires" = "all" -o "$enable_expires" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_expires=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_expires=no
    fi
  elif test "$enable_expires" = "reallyall" -o "$enable_expires" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_expires" != "no" ; then
      enable_expires=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_expires=no
    fi
  else
    enable_expires=no
  fi
  if test "$enable_expires" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_expires$_apmod_extra_msg" >&5
printf "%s\n" "$enable_expires$_apmod_extra_msg" >&6; }
  if test "$enable_expires" != "no"; then
    case "$enable_expires" in
    static*)
      MODLIST="$MODLIST expires"
      if test "expires" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES expires"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},expires"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_expires.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_expires.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_EXPIRES_LDADD)
EOF
      if test ! -z "\$(MOD_EXPIRES_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_EXPIRES_LDADD)\""
    AP_LIBS="\$(MOD_EXPIRES_LDADD)"
  else
    apr_addto_bugger="\$(MOD_EXPIRES_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_expires.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXPIRES_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXPIRES_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_headers" >&5
printf %s "checking whether to enable mod_headers... " >&6; }
    # Check whether --enable-headers was given.
if test ${enable_headers+y}
then :
  enableval=$enable_headers; force_headers=$enableval
else $as_nop
  enable_headers=yes
fi

    _apmod_extra_msg=""
      case "$enable_headers" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_headers" = "static" -o "$enable_headers" = "shared"; then
    :
  elif test "$enable_headers" = "yes"; then
    enable_headers=$module_default
  elif test "$enable_headers" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_headers=$module_default
    else
      enable_headers=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_headers" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_headers=$module_default
    else
      enable_headers=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_headers" = "all" -o "$enable_headers" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_headers=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_headers=no
    fi
  elif test "$enable_headers" = "reallyall" -o "$enable_headers" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_headers" != "no" ; then
      enable_headers=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_headers=no
    fi
  else
    enable_headers=no
  fi
  if test "$enable_headers" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_headers$_apmod_extra_msg" >&5
printf "%s\n" "$enable_headers$_apmod_extra_msg" >&6; }
  if test "$enable_headers" != "no"; then
    case "$enable_headers" in
    static*)
      MODLIST="$MODLIST headers"
      if test "headers" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES headers"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},headers"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_headers.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_headers.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_HEADERS_LDADD)
EOF
      if test ! -z "\$(MOD_HEADERS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HEADERS_LDADD)\""
    AP_LIBS="\$(MOD_HEADERS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_HEADERS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_headers.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEADERS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEADERS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ident" >&5
printf %s "checking whether to enable mod_ident... " >&6; }
    # Check whether --enable-ident was given.
if test ${enable_ident+y}
then :
  enableval=$enable_ident; force_ident=$enableval
else $as_nop
  enable_ident=no
fi

    _apmod_extra_msg=""
      case "$enable_ident" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_ident" = "static" -o "$enable_ident" = "shared"; then
    :
  elif test "$enable_ident" = "yes"; then
    enable_ident=$module_default
  elif test "$enable_ident" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ident=$module_default
    else
      enable_ident=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ident" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_ident=$module_default
    else
      enable_ident=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ident" = "all" -o "$enable_ident" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ident=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ident=no
    fi
  elif test "$enable_ident" = "reallyall" -o "$enable_ident" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_ident" != "no" ; then
      enable_ident=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ident=no
    fi
  else
    enable_ident=no
  fi
  if test "$enable_ident" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ident$_apmod_extra_msg" >&5
printf "%s\n" "$enable_ident$_apmod_extra_msg" >&6; }
  if test "$enable_ident" != "no"; then
    case "$enable_ident" in
    static*)
      MODLIST="$MODLIST ident"
      if test "ident" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES ident"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ident"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_ident.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_ident.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_IDENT_LDADD)
EOF
      if test ! -z "\$(MOD_IDENT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_IDENT_LDADD)\""
    AP_LIBS="\$(MOD_IDENT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_IDENT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_ident.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_IDENT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IDENT_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_usertrack" >&5
printf %s "checking whether to enable mod_usertrack... " >&6; }
    # Check whether --enable-usertrack was given.
if test ${enable_usertrack+y}
then :
  enableval=$enable_usertrack; force_usertrack=$enableval
else $as_nop
  enable_usertrack=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_usertrack" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_usertrack" = "static" -o "$enable_usertrack" = "shared"; then
    :
  elif test "$enable_usertrack" = "yes"; then
    enable_usertrack=$module_default
  elif test "$enable_usertrack" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_usertrack=$module_default
    else
      enable_usertrack=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_usertrack" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_usertrack=$module_default
    else
      enable_usertrack=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_usertrack" = "all" -o "$enable_usertrack" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_usertrack=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_usertrack=no
    fi
  elif test "$enable_usertrack" = "reallyall" -o "$enable_usertrack" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_usertrack" != "no" ; then
      enable_usertrack=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_usertrack=no
    fi
  else
    enable_usertrack=no
  fi
  if test "$enable_usertrack" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :

  ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_times_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h

fi

  ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
if test "x$ac_cv_func_times" = xyes
then :
  printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h

fi


            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_usertrack" >&5
printf %s "checking whether to enable mod_usertrack... " >&6; }
            if test "$enable_usertrack" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_usertrack has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_usertrack$_apmod_extra_msg" >&5
printf "%s\n" "$enable_usertrack$_apmod_extra_msg" >&6; }
  if test "$enable_usertrack" != "no"; then
    case "$enable_usertrack" in
    static*)
      MODLIST="$MODLIST usertrack"
      if test "usertrack" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES usertrack"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},usertrack"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_usertrack.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_usertrack.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_USERTRACK_LDADD)
EOF
      if test ! -z "\$(MOD_USERTRACK_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_USERTRACK_LDADD)\""
    AP_LIBS="\$(MOD_USERTRACK_LDADD)"
  else
    apr_addto_bugger="\$(MOD_USERTRACK_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_usertrack.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERTRACK_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERTRACK_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_unique_id" >&5
printf %s "checking whether to enable mod_unique_id... " >&6; }
    # Check whether --enable-unique-id was given.
if test ${enable_unique_id+y}
then :
  enableval=$enable_unique_id; force_unique_id=$enableval
else $as_nop
  enable_unique_id=most
fi

    _apmod_extra_msg=""
      case "$enable_unique_id" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_unique_id" = "static" -o "$enable_unique_id" = "shared"; then
    :
  elif test "$enable_unique_id" = "yes"; then
    enable_unique_id=$module_default
  elif test "$enable_unique_id" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_unique_id=$module_default
    else
      enable_unique_id=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_unique_id" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_unique_id=$module_default
    else
      enable_unique_id=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_unique_id" = "all" -o "$enable_unique_id" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_unique_id=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_unique_id=no
    fi
  elif test "$enable_unique_id" = "reallyall" -o "$enable_unique_id" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_unique_id" != "no" ; then
      enable_unique_id=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_unique_id=no
    fi
  else
    enable_unique_id=no
  fi
  if test "$enable_unique_id" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unique_id$_apmod_extra_msg" >&5
printf "%s\n" "$enable_unique_id$_apmod_extra_msg" >&6; }
  if test "$enable_unique_id" != "no"; then
    case "$enable_unique_id" in
    static*)
      MODLIST="$MODLIST unique_id"
      if test "unique_id" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES unique_id"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},unique_id"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_unique_id.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_unique_id.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_UNIQUE_ID_LDADD)
EOF
      if test ! -z "\$(MOD_UNIQUE_ID_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_UNIQUE_ID_LDADD)\""
    AP_LIBS="\$(MOD_UNIQUE_ID_LDADD)"
  else
    apr_addto_bugger="\$(MOD_UNIQUE_ID_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_unique_id.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_UNIQUE_ID_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIQUE_ID_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_setenvif" >&5
printf %s "checking whether to enable mod_setenvif... " >&6; }
    # Check whether --enable-setenvif was given.
if test ${enable_setenvif+y}
then :
  enableval=$enable_setenvif; force_setenvif=$enableval
else $as_nop
  enable_setenvif=yes
fi

    _apmod_extra_msg=""
      case "$enable_setenvif" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_setenvif" = "static" -o "$enable_setenvif" = "shared"; then
    :
  elif test "$enable_setenvif" = "yes"; then
    enable_setenvif=$module_default
  elif test "$enable_setenvif" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_setenvif=$module_default
    else
      enable_setenvif=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_setenvif" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_setenvif=$module_default
    else
      enable_setenvif=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_setenvif" = "all" -o "$enable_setenvif" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_setenvif=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_setenvif=no
    fi
  elif test "$enable_setenvif" = "reallyall" -o "$enable_setenvif" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_setenvif" != "no" ; then
      enable_setenvif=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_setenvif=no
    fi
  else
    enable_setenvif=no
  fi
  if test "$enable_setenvif" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_setenvif$_apmod_extra_msg" >&5
printf "%s\n" "$enable_setenvif$_apmod_extra_msg" >&6; }
  if test "$enable_setenvif" != "no"; then
    case "$enable_setenvif" in
    static*)
      MODLIST="$MODLIST setenvif"
      if test "setenvif" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES setenvif"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},setenvif"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_setenvif.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_setenvif.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SETENVIF_LDADD)
EOF
      if test ! -z "\$(MOD_SETENVIF_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SETENVIF_LDADD)\""
    AP_LIBS="\$(MOD_SETENVIF_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SETENVIF_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_setenvif.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SETENVIF_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SETENVIF_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_version" >&5
printf %s "checking whether to enable mod_version... " >&6; }
    # Check whether --enable-version was given.
if test ${enable_version+y}
then :
  enableval=$enable_version; force_version=$enableval
else $as_nop
  enable_version=yes
fi

    _apmod_extra_msg=""
      case "$enable_version" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_version" = "static" -o "$enable_version" = "shared"; then
    :
  elif test "$enable_version" = "yes"; then
    enable_version=$module_default
  elif test "$enable_version" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_version=$module_default
    else
      enable_version=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_version" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_version=$module_default
    else
      enable_version=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_version" = "all" -o "$enable_version" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_version=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_version=no
    fi
  elif test "$enable_version" = "reallyall" -o "$enable_version" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_version" != "no" ; then
      enable_version=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_version=no
    fi
  else
    enable_version=no
  fi
  if test "$enable_version" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_version$_apmod_extra_msg" >&5
printf "%s\n" "$enable_version$_apmod_extra_msg" >&6; }
  if test "$enable_version" != "no"; then
    case "$enable_version" in
    static*)
      MODLIST="$MODLIST version"
      if test "version" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES version"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},version"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_version.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_version.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_VERSION_LDADD)
EOF
      if test ! -z "\$(MOD_VERSION_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_VERSION_LDADD)\""
    AP_LIBS="\$(MOD_VERSION_LDADD)"
  else
    apr_addto_bugger="\$(MOD_VERSION_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_version.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VERSION_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VERSION_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_remoteip" >&5
printf %s "checking whether to enable mod_remoteip... " >&6; }
    # Check whether --enable-remoteip was given.
if test ${enable_remoteip+y}
then :
  enableval=$enable_remoteip; force_remoteip=$enableval
else $as_nop
  enable_remoteip=most
fi

    _apmod_extra_msg=""
      case "$enable_remoteip" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_remoteip" = "static" -o "$enable_remoteip" = "shared"; then
    :
  elif test "$enable_remoteip" = "yes"; then
    enable_remoteip=$module_default
  elif test "$enable_remoteip" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_remoteip=$module_default
    else
      enable_remoteip=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_remoteip" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_remoteip=$module_default
    else
      enable_remoteip=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_remoteip" = "all" -o "$enable_remoteip" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_remoteip=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_remoteip=no
    fi
  elif test "$enable_remoteip" = "reallyall" -o "$enable_remoteip" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_remoteip" != "no" ; then
      enable_remoteip=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_remoteip=no
    fi
  else
    enable_remoteip=no
  fi
  if test "$enable_remoteip" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_remoteip$_apmod_extra_msg" >&5
printf "%s\n" "$enable_remoteip$_apmod_extra_msg" >&6; }
  if test "$enable_remoteip" != "no"; then
    case "$enable_remoteip" in
    static*)
      MODLIST="$MODLIST remoteip"
      if test "remoteip" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES remoteip"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},remoteip"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_remoteip.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_remoteip.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_REMOTEIP_LDADD)
EOF
      if test ! -z "\$(MOD_REMOTEIP_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REMOTEIP_LDADD)\""
    AP_LIBS="\$(MOD_REMOTEIP_LDADD)"
  else
    apr_addto_bugger="\$(MOD_REMOTEIP_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_remoteip.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REMOTEIP_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REMOTEIP_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=proxy
  modpath_current=modules/proxy
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d proxy || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


proxy_objs="mod_proxy.lo proxy_util.lo"

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy" >&5
printf %s "checking whether to enable mod_proxy... " >&6; }
    # Check whether --enable-proxy was given.
if test ${enable_proxy+y}
then :
  enableval=$enable_proxy; force_proxy=$enableval
else $as_nop
  enable_proxy=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy" = "static" -o "$enable_proxy" = "shared"; then
    :
  elif test "$enable_proxy" = "yes"; then
    enable_proxy=$module_default
  elif test "$enable_proxy" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy=$module_default
    else
      enable_proxy=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy=$module_default
    else
      enable_proxy=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy" = "all" -o "$enable_proxy" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy=no
    fi
  elif test "$enable_proxy" = "reallyall" -o "$enable_proxy" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy" != "no" ; then
      enable_proxy=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy=no
    fi
  else
    enable_proxy=no
  fi
  if test "$enable_proxy" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy$_apmod_extra_msg" >&6; }
  if test "$enable_proxy" != "no"; then
    case "$enable_proxy" in
    static*)
      MODLIST="$MODLIST proxy"
      if test "proxy" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy"
      fi
      ;;
    esac


  if test -z "$proxy_objs"; then
    objects="mod_proxy.lo"
  else
    objects="$proxy_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_LDADD"



  fi


save_module_selection=$module_selection
save_module_default=$module_default
if test "$enable_proxy" != "no"; then
    module_selection=most
    if test "$enable_proxy" = "shared" -o "$enable_proxy" = "static"; then
        module_default=$enable_proxy
    fi
fi

proxy_connect_objs="mod_proxy_connect.lo"
proxy_ftp_objs="mod_proxy_ftp.lo"
proxy_http_objs="mod_proxy_http.lo"
proxy_fcgi_objs="mod_proxy_fcgi.lo"
proxy_scgi_objs="mod_proxy_scgi.lo"
proxy_uwsgi_objs="mod_proxy_uwsgi.lo"
proxy_fdpass_objs="mod_proxy_fdpass.lo"
proxy_ajp_objs="mod_proxy_ajp.lo ajp_header.lo ajp_link.lo ajp_msg.lo ajp_utils.lo"
proxy_wstunnel_objs="mod_proxy_wstunnel.lo"
proxy_balancer_objs="mod_proxy_balancer.lo"

case "$host" in
  *os2*)
    # OS/2 DLLs must resolve all symbols at build time and
    # these sub-modules need some from the main proxy module
    proxy_connect_objs="$proxy_connect_objs mod_proxy.la"
    proxy_ftp_objs="$proxy_ftp_objs mod_proxy.la"
    proxy_http_objs="$proxy_http_objs mod_proxy.la"
    proxy_fcgi_objs="$proxy_fcgi_objs mod_proxy.la"
    proxy_scgi_objs="$proxy_scgi_objs mod_proxy.la"
    proxy_uwsgi_objs="$proxy_uwsgi_objs mod_proxy.la"
    proxy_fdpass_objs="$proxy_fdpass_objs mod_proxy.la"
    proxy_ajp_objs="$proxy_ajp_objs mod_proxy.la"
    proxy_wstunnel_objs="$proxy_wstunnel_objs mod_proxy.la"
    proxy_balancer_objs="$proxy_balancer_objs mod_proxy.la"
    ;;
esac


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_connect" >&5
printf %s "checking whether to enable mod_proxy_connect... " >&6; }
    # Check whether --enable-proxy-connect was given.
if test ${enable_proxy_connect+y}
then :
  enableval=$enable_proxy_connect; force_proxy_connect=$enableval
else $as_nop
  enable_proxy_connect=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_connect" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_connect" = "static" -o "$enable_proxy_connect" = "shared"; then
    :
  elif test "$enable_proxy_connect" = "yes"; then
    enable_proxy_connect=$module_default
  elif test "$enable_proxy_connect" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_connect=$module_default
    else
      enable_proxy_connect=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_connect" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_connect=$module_default
    else
      enable_proxy_connect=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_connect" = "all" -o "$enable_proxy_connect" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_connect=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_connect=no
    fi
  elif test "$enable_proxy_connect" = "reallyall" -o "$enable_proxy_connect" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_connect" != "no" ; then
      enable_proxy_connect=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_connect=no
    fi
  else
    enable_proxy_connect=no
  fi
  if test "$enable_proxy_connect" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_connect=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_connect\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_connect\"" >&2;}
                            elif test "$enable_proxy_connect" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_connect=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_connect shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_connect shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_connect" >&5
printf %s "checking whether to enable mod_proxy_connect... " >&6; }
            if test "$enable_proxy_connect" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_connect has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_connect$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_connect$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_connect" != "no"; then
    case "$enable_proxy_connect" in
    static*)
      MODLIST="$MODLIST proxy_connect"
      if test "proxy_connect" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_connect"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_connect"
      fi
      ;;
    esac


  if test -z "$proxy_connect_objs"; then
    objects="mod_proxy_connect.lo"
  else
    objects="$proxy_connect_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_connect.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_CONNECT_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_CONNECT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_CONNECT_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_CONNECT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_CONNECT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_connect.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_CONNECT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_CONNECT_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ftp" >&5
printf %s "checking whether to enable mod_proxy_ftp... " >&6; }
    # Check whether --enable-proxy-ftp was given.
if test ${enable_proxy_ftp+y}
then :
  enableval=$enable_proxy_ftp; force_proxy_ftp=$enableval
else $as_nop
  enable_proxy_ftp=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_ftp" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_ftp" = "static" -o "$enable_proxy_ftp" = "shared"; then
    :
  elif test "$enable_proxy_ftp" = "yes"; then
    enable_proxy_ftp=$module_default
  elif test "$enable_proxy_ftp" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_ftp=$module_default
    else
      enable_proxy_ftp=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_ftp" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_ftp=$module_default
    else
      enable_proxy_ftp=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_ftp" = "all" -o "$enable_proxy_ftp" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_ftp=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_ftp=no
    fi
  elif test "$enable_proxy_ftp" = "reallyall" -o "$enable_proxy_ftp" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_ftp" != "no" ; then
      enable_proxy_ftp=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_ftp=no
    fi
  else
    enable_proxy_ftp=no
  fi
  if test "$enable_proxy_ftp" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_ftp=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_ftp\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_ftp\"" >&2;}
                            elif test "$enable_proxy_ftp" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_ftp=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_ftp shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_ftp shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ftp" >&5
printf %s "checking whether to enable mod_proxy_ftp... " >&6; }
            if test "$enable_proxy_ftp" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_ftp has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_ftp$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_ftp$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_ftp" != "no"; then
    case "$enable_proxy_ftp" in
    static*)
      MODLIST="$MODLIST proxy_ftp"
      if test "proxy_ftp" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_ftp"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_ftp"
      fi
      ;;
    esac


  if test -z "$proxy_ftp_objs"; then
    objects="mod_proxy_ftp.lo"
  else
    objects="$proxy_ftp_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_ftp.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_FTP_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_FTP_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_FTP_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_FTP_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_FTP_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_ftp.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FTP_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FTP_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_http" >&5
printf %s "checking whether to enable mod_proxy_http... " >&6; }
    # Check whether --enable-proxy-http was given.
if test ${enable_proxy_http+y}
then :
  enableval=$enable_proxy_http; force_proxy_http=$enableval
else $as_nop
  enable_proxy_http=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_http" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_http" = "static" -o "$enable_proxy_http" = "shared"; then
    :
  elif test "$enable_proxy_http" = "yes"; then
    enable_proxy_http=$module_default
  elif test "$enable_proxy_http" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_http=$module_default
    else
      enable_proxy_http=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_http" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_http=$module_default
    else
      enable_proxy_http=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_http" = "all" -o "$enable_proxy_http" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_http=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_http=no
    fi
  elif test "$enable_proxy_http" = "reallyall" -o "$enable_proxy_http" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_http" != "no" ; then
      enable_proxy_http=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_http=no
    fi
  else
    enable_proxy_http=no
  fi
  if test "$enable_proxy_http" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_http=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_http\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_http\"" >&2;}
                            elif test "$enable_proxy_http" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_http=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_http shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_http shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_http" >&5
printf %s "checking whether to enable mod_proxy_http... " >&6; }
            if test "$enable_proxy_http" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_http has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_http$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_http$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_http" != "no"; then
    case "$enable_proxy_http" in
    static*)
      MODLIST="$MODLIST proxy_http"
      if test "proxy_http" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_http"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_http"
      fi
      ;;
    esac


  if test -z "$proxy_http_objs"; then
    objects="mod_proxy_http.lo"
  else
    objects="$proxy_http_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_http.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_HTTP_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_HTTP_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_HTTP_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_HTTP_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_HTTP_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_http.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HTTP_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTTP_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fcgi" >&5
printf %s "checking whether to enable mod_proxy_fcgi... " >&6; }
    # Check whether --enable-proxy-fcgi was given.
if test ${enable_proxy_fcgi+y}
then :
  enableval=$enable_proxy_fcgi; force_proxy_fcgi=$enableval
else $as_nop
  enable_proxy_fcgi=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_fcgi" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_fcgi" = "static" -o "$enable_proxy_fcgi" = "shared"; then
    :
  elif test "$enable_proxy_fcgi" = "yes"; then
    enable_proxy_fcgi=$module_default
  elif test "$enable_proxy_fcgi" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_fcgi=$module_default
    else
      enable_proxy_fcgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_fcgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_fcgi=$module_default
    else
      enable_proxy_fcgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_fcgi" = "all" -o "$enable_proxy_fcgi" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_fcgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_fcgi=no
    fi
  elif test "$enable_proxy_fcgi" = "reallyall" -o "$enable_proxy_fcgi" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_fcgi" != "no" ; then
      enable_proxy_fcgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_fcgi=no
    fi
  else
    enable_proxy_fcgi=no
  fi
  if test "$enable_proxy_fcgi" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_fcgi=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_fcgi\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_fcgi\"" >&2;}
                            elif test "$enable_proxy_fcgi" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_fcgi=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_fcgi shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_fcgi shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fcgi" >&5
printf %s "checking whether to enable mod_proxy_fcgi... " >&6; }
            if test "$enable_proxy_fcgi" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_fcgi has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_fcgi$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_fcgi$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_fcgi" != "no"; then
    case "$enable_proxy_fcgi" in
    static*)
      MODLIST="$MODLIST proxy_fcgi"
      if test "proxy_fcgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_fcgi"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_fcgi"
      fi
      ;;
    esac


  if test -z "$proxy_fcgi_objs"; then
    objects="mod_proxy_fcgi.lo"
  else
    objects="$proxy_fcgi_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_fcgi.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_FCGI_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_FCGI_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_FCGI_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_FCGI_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_FCGI_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_fcgi.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FCGI_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FCGI_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_scgi" >&5
printf %s "checking whether to enable mod_proxy_scgi... " >&6; }
    # Check whether --enable-proxy-scgi was given.
if test ${enable_proxy_scgi+y}
then :
  enableval=$enable_proxy_scgi; force_proxy_scgi=$enableval
else $as_nop
  enable_proxy_scgi=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_scgi" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_scgi" = "static" -o "$enable_proxy_scgi" = "shared"; then
    :
  elif test "$enable_proxy_scgi" = "yes"; then
    enable_proxy_scgi=$module_default
  elif test "$enable_proxy_scgi" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_scgi=$module_default
    else
      enable_proxy_scgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_scgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_scgi=$module_default
    else
      enable_proxy_scgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_scgi" = "all" -o "$enable_proxy_scgi" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_scgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_scgi=no
    fi
  elif test "$enable_proxy_scgi" = "reallyall" -o "$enable_proxy_scgi" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_scgi" != "no" ; then
      enable_proxy_scgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_scgi=no
    fi
  else
    enable_proxy_scgi=no
  fi
  if test "$enable_proxy_scgi" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_scgi=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_scgi\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_scgi\"" >&2;}
                            elif test "$enable_proxy_scgi" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_scgi=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_scgi shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_scgi shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_scgi" >&5
printf %s "checking whether to enable mod_proxy_scgi... " >&6; }
            if test "$enable_proxy_scgi" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_scgi has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_scgi$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_scgi$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_scgi" != "no"; then
    case "$enable_proxy_scgi" in
    static*)
      MODLIST="$MODLIST proxy_scgi"
      if test "proxy_scgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_scgi"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_scgi"
      fi
      ;;
    esac


  if test -z "$proxy_scgi_objs"; then
    objects="mod_proxy_scgi.lo"
  else
    objects="$proxy_scgi_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_scgi.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_SCGI_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_SCGI_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_SCGI_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_SCGI_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_SCGI_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_scgi.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_SCGI_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_SCGI_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_uwsgi" >&5
printf %s "checking whether to enable mod_proxy_uwsgi... " >&6; }
    # Check whether --enable-proxy-uwsgi was given.
if test ${enable_proxy_uwsgi+y}
then :
  enableval=$enable_proxy_uwsgi; force_proxy_uwsgi=$enableval
else $as_nop
  enable_proxy_uwsgi=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_uwsgi" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_uwsgi" = "static" -o "$enable_proxy_uwsgi" = "shared"; then
    :
  elif test "$enable_proxy_uwsgi" = "yes"; then
    enable_proxy_uwsgi=$module_default
  elif test "$enable_proxy_uwsgi" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_uwsgi=$module_default
    else
      enable_proxy_uwsgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_uwsgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_uwsgi=$module_default
    else
      enable_proxy_uwsgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_uwsgi" = "all" -o "$enable_proxy_uwsgi" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_uwsgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_uwsgi=no
    fi
  elif test "$enable_proxy_uwsgi" = "reallyall" -o "$enable_proxy_uwsgi" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_uwsgi" != "no" ; then
      enable_proxy_uwsgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_uwsgi=no
    fi
  else
    enable_proxy_uwsgi=no
  fi
  if test "$enable_proxy_uwsgi" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_uwsgi=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_uwsgi\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_uwsgi\"" >&2;}
                            elif test "$enable_proxy_uwsgi" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_uwsgi=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_uwsgi shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_uwsgi shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_uwsgi" >&5
printf %s "checking whether to enable mod_proxy_uwsgi... " >&6; }
            if test "$enable_proxy_uwsgi" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_uwsgi has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_uwsgi$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_uwsgi$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_uwsgi" != "no"; then
    case "$enable_proxy_uwsgi" in
    static*)
      MODLIST="$MODLIST proxy_uwsgi"
      if test "proxy_uwsgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_uwsgi"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_uwsgi"
      fi
      ;;
    esac


  if test -z "$proxy_uwsgi_objs"; then
    objects="mod_proxy_uwsgi.lo"
  else
    objects="$proxy_uwsgi_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_uwsgi.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_UWSGI_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_UWSGI_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_UWSGI_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_UWSGI_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_UWSGI_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_uwsgi.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_UWSGI_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_UWSGI_LDADD"



  fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
if test ${ac_cv_c_undeclared_builtin_options+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_save_CFLAGS=$CFLAGS
   ac_cv_c_undeclared_builtin_options='cannot detect'
   for ac_arg in '' -fno-builtin; do
     CFLAGS="$ac_save_CFLAGS $ac_arg"
     # This test program should *not* compile successfully.
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
(void) strchr;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else $as_nop
  # This test program should compile successfully.
        # No library function is consistently available on
        # freestanding implementations, so test against a dummy
        # declaration.  Include always-available headers on the
        # off chance that they somehow elicit warnings.
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <float.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
extern void ac_decl (int, char *);

int
main (void)
{
(void) ac_decl (0, (char *) 0);
  (void) ac_decl;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  if test x"$ac_arg" = x
then :
  ac_cv_c_undeclared_builtin_options='none needed'
else $as_nop
  ac_cv_c_undeclared_builtin_options=$ac_arg
fi
          break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done
    CFLAGS=$ac_save_CFLAGS

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  case $ac_cv_c_undeclared_builtin_options in #(
  'cannot detect') :
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot make $CC report undeclared builtins
See \`config.log' for more details" "$LINENO" 5; } ;; #(
  'none needed') :
    ac_c_undeclared_builtin_options='' ;; #(
  *) :
    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
esac


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fdpass" >&5
printf %s "checking whether to enable mod_proxy_fdpass... " >&6; }
    # Check whether --enable-proxy-fdpass was given.
if test ${enable_proxy_fdpass+y}
then :
  enableval=$enable_proxy_fdpass; force_proxy_fdpass=$enableval
else $as_nop
  enable_proxy_fdpass=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_fdpass" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_fdpass" = "static" -o "$enable_proxy_fdpass" = "shared"; then
    :
  elif test "$enable_proxy_fdpass" = "yes"; then
    enable_proxy_fdpass=$module_default
  elif test "$enable_proxy_fdpass" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_fdpass=$module_default
    else
      enable_proxy_fdpass=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_fdpass" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_fdpass=$module_default
    else
      enable_proxy_fdpass=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_fdpass" = "all" -o "$enable_proxy_fdpass" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_fdpass=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_fdpass=no
    fi
  elif test "$enable_proxy_fdpass" = "reallyall" -o "$enable_proxy_fdpass" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_fdpass" != "no" ; then
      enable_proxy_fdpass=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_fdpass=no
    fi
  else
    enable_proxy_fdpass=no
  fi
  if test "$enable_proxy_fdpass" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_fdpass=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_fdpass\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_fdpass\"" >&2;}
                            elif test "$enable_proxy_fdpass" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_fdpass=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_fdpass shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_fdpass shared because mod_proxy is built shared\"" >&2;}
                            else

  ac_fn_check_decl "$LINENO" "CMSG_DATA" "ac_cv_have_decl_CMSG_DATA" "
    #include <sys/types.h>
    #include <sys/socket.h>

" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_CMSG_DATA" = xyes
then :

fi
  if test $ac_cv_have_decl_CMSG_DATA = "no"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your system does not support CMSG_DATA." >&5
printf "%s\n" "$as_me: WARNING: Your system does not support CMSG_DATA." >&2;}
    enable_proxy_fdpass=no
  fi

            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_fdpass" >&5
printf %s "checking whether to enable mod_proxy_fdpass... " >&6; }
            if test "$enable_proxy_fdpass" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_fdpass has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_fdpass$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_fdpass$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_fdpass" != "no"; then
    case "$enable_proxy_fdpass" in
    static*)
      MODLIST="$MODLIST proxy_fdpass"
      if test "proxy_fdpass" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_fdpass"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_fdpass"
      fi
      ;;
    esac


  if test -z "$proxy_fdpass_objs"; then
    objects="mod_proxy_fdpass.lo"
  else
    objects="$proxy_fdpass_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_fdpass.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_FDPASS_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_FDPASS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_FDPASS_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_FDPASS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_FDPASS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_fdpass.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FDPASS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FDPASS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_wstunnel" >&5
printf %s "checking whether to enable mod_proxy_wstunnel... " >&6; }
    # Check whether --enable-proxy-wstunnel was given.
if test ${enable_proxy_wstunnel+y}
then :
  enableval=$enable_proxy_wstunnel; force_proxy_wstunnel=$enableval
else $as_nop
  enable_proxy_wstunnel=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_wstunnel" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_wstunnel" = "static" -o "$enable_proxy_wstunnel" = "shared"; then
    :
  elif test "$enable_proxy_wstunnel" = "yes"; then
    enable_proxy_wstunnel=$module_default
  elif test "$enable_proxy_wstunnel" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_wstunnel=$module_default
    else
      enable_proxy_wstunnel=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_wstunnel" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_wstunnel=$module_default
    else
      enable_proxy_wstunnel=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_wstunnel" = "all" -o "$enable_proxy_wstunnel" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_wstunnel=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_wstunnel=no
    fi
  elif test "$enable_proxy_wstunnel" = "reallyall" -o "$enable_proxy_wstunnel" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_wstunnel" != "no" ; then
      enable_proxy_wstunnel=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_wstunnel=no
    fi
  else
    enable_proxy_wstunnel=no
  fi
  if test "$enable_proxy_wstunnel" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_wstunnel=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_wstunnel\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_wstunnel\"" >&2;}
                            elif test "$enable_proxy_wstunnel" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_wstunnel=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_wstunnel shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_wstunnel shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_wstunnel" >&5
printf %s "checking whether to enable mod_proxy_wstunnel... " >&6; }
            if test "$enable_proxy_wstunnel" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_wstunnel has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_wstunnel$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_wstunnel$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_wstunnel" != "no"; then
    case "$enable_proxy_wstunnel" in
    static*)
      MODLIST="$MODLIST proxy_wstunnel"
      if test "proxy_wstunnel" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_wstunnel"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_wstunnel"
      fi
      ;;
    esac


  if test -z "$proxy_wstunnel_objs"; then
    objects="mod_proxy_wstunnel.lo"
  else
    objects="$proxy_wstunnel_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_wstunnel.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_WSTUNNEL_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_WSTUNNEL_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_WSTUNNEL_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_WSTUNNEL_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_WSTUNNEL_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_wstunnel.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_WSTUNNEL_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_WSTUNNEL_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ajp" >&5
printf %s "checking whether to enable mod_proxy_ajp... " >&6; }
    # Check whether --enable-proxy-ajp was given.
if test ${enable_proxy_ajp+y}
then :
  enableval=$enable_proxy_ajp; force_proxy_ajp=$enableval
else $as_nop
  enable_proxy_ajp=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_ajp" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_ajp" = "static" -o "$enable_proxy_ajp" = "shared"; then
    :
  elif test "$enable_proxy_ajp" = "yes"; then
    enable_proxy_ajp=$module_default
  elif test "$enable_proxy_ajp" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_ajp=$module_default
    else
      enable_proxy_ajp=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_ajp" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_ajp=$module_default
    else
      enable_proxy_ajp=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_ajp" = "all" -o "$enable_proxy_ajp" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_ajp=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_ajp=no
    fi
  elif test "$enable_proxy_ajp" = "reallyall" -o "$enable_proxy_ajp" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_ajp" != "no" ; then
      enable_proxy_ajp=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_ajp=no
    fi
  else
    enable_proxy_ajp=no
  fi
  if test "$enable_proxy_ajp" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_ajp=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_ajp\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_ajp\"" >&2;}
                            elif test "$enable_proxy_ajp" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_ajp=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_ajp shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_ajp shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_ajp" >&5
printf %s "checking whether to enable mod_proxy_ajp... " >&6; }
            if test "$enable_proxy_ajp" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_ajp has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_ajp$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_ajp$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_ajp" != "no"; then
    case "$enable_proxy_ajp" in
    static*)
      MODLIST="$MODLIST proxy_ajp"
      if test "proxy_ajp" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_ajp"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_ajp"
      fi
      ;;
    esac


  if test -z "$proxy_ajp_objs"; then
    objects="mod_proxy_ajp.lo"
  else
    objects="$proxy_ajp_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_ajp.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_AJP_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_AJP_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_AJP_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_AJP_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_AJP_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_ajp.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_AJP_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_AJP_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_balancer" >&5
printf %s "checking whether to enable mod_proxy_balancer... " >&6; }
    # Check whether --enable-proxy-balancer was given.
if test ${enable_proxy_balancer+y}
then :
  enableval=$enable_proxy_balancer; force_proxy_balancer=$enableval
else $as_nop
  enable_proxy_balancer=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_balancer" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_balancer" = "static" -o "$enable_proxy_balancer" = "shared"; then
    :
  elif test "$enable_proxy_balancer" = "yes"; then
    enable_proxy_balancer=$module_default
  elif test "$enable_proxy_balancer" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_balancer=$module_default
    else
      enable_proxy_balancer=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_balancer" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_balancer=$module_default
    else
      enable_proxy_balancer=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_balancer" = "all" -o "$enable_proxy_balancer" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_balancer=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_balancer=no
    fi
  elif test "$enable_proxy_balancer" = "reallyall" -o "$enable_proxy_balancer" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_balancer" != "no" ; then
      enable_proxy_balancer=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_balancer=no
    fi
  else
    enable_proxy_balancer=no
  fi
  if test "$enable_proxy_balancer" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_balancer=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_balancer\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_balancer\"" >&2;}
                            elif test "$enable_proxy_balancer" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_balancer=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_balancer shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_balancer shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_balancer" >&5
printf %s "checking whether to enable mod_proxy_balancer... " >&6; }
            if test "$enable_proxy_balancer" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_balancer has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_balancer$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_balancer$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_balancer" != "no"; then
    case "$enable_proxy_balancer" in
    static*)
      MODLIST="$MODLIST proxy_balancer"
      if test "proxy_balancer" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_balancer"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_balancer"
      fi
      ;;
    esac


  if test -z "$proxy_balancer_objs"; then
    objects="mod_proxy_balancer.lo"
  else
    objects="$proxy_balancer_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_balancer.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_BALANCER_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_BALANCER_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_BALANCER_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_BALANCER_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_BALANCER_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_balancer.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_BALANCER_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_BALANCER_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_express" >&5
printf %s "checking whether to enable mod_proxy_express... " >&6; }
    # Check whether --enable-proxy-express was given.
if test ${enable_proxy_express+y}
then :
  enableval=$enable_proxy_express; force_proxy_express=$enableval
else $as_nop
  enable_proxy_express=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_express" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_express" = "static" -o "$enable_proxy_express" = "shared"; then
    :
  elif test "$enable_proxy_express" = "yes"; then
    enable_proxy_express=$module_default
  elif test "$enable_proxy_express" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_express=$module_default
    else
      enable_proxy_express=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_express" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_express=$module_default
    else
      enable_proxy_express=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_express" = "all" -o "$enable_proxy_express" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_express=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_express=no
    fi
  elif test "$enable_proxy_express" = "reallyall" -o "$enable_proxy_express" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_express" != "no" ; then
      enable_proxy_express=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_express=no
    fi
  else
    enable_proxy_express=no
  fi
  if test "$enable_proxy_express" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_express=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_express\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_express\"" >&2;}
                            elif test "$enable_proxy_express" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_express=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_express shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_express shared because mod_proxy is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_express" >&5
printf %s "checking whether to enable mod_proxy_express... " >&6; }
            if test "$enable_proxy_express" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_express has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_express$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_express$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_express" != "no"; then
    case "$enable_proxy_express" in
    static*)
      MODLIST="$MODLIST proxy_express"
      if test "proxy_express" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_express"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_express"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_proxy_express.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_express.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_EXPRESS_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_EXPRESS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_EXPRESS_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_EXPRESS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_EXPRESS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_express.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_EXPRESS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_EXPRESS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_hcheck" >&5
printf %s "checking whether to enable mod_proxy_hcheck... " >&6; }
    # Check whether --enable-proxy-hcheck was given.
if test ${enable_proxy_hcheck+y}
then :
  enableval=$enable_proxy_hcheck; force_proxy_hcheck=$enableval
else $as_nop
  enable_proxy_hcheck=most
fi

    _apmod_extra_msg=""
      case "$enable_proxy_hcheck" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_hcheck" = "static" -o "$enable_proxy_hcheck" = "shared"; then
    :
  elif test "$enable_proxy_hcheck" = "yes"; then
    enable_proxy_hcheck=$module_default
  elif test "$enable_proxy_hcheck" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_hcheck=$module_default
    else
      enable_proxy_hcheck=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_hcheck" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_hcheck=$module_default
    else
      enable_proxy_hcheck=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_hcheck" = "all" -o "$enable_proxy_hcheck" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_hcheck=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_hcheck=no
    fi
  elif test "$enable_proxy_hcheck" = "reallyall" -o "$enable_proxy_hcheck" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_hcheck" != "no" ; then
      enable_proxy_hcheck=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_hcheck=no
    fi
  else
    enable_proxy_hcheck=no
  fi
  if test "$enable_proxy_hcheck" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_hcheck=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_hcheck\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_hcheck\"" >&2;}
                            elif test "$enable_proxy_hcheck" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_hcheck=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_hcheck shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_hcheck shared because mod_proxy is built shared\"" >&2;}
                            elif test "$enable_watchdog" = "no" ; then
                              enable_proxy_hcheck=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_watchdog is disabled but required for mod_proxy_hcheck\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_watchdog is disabled but required for mod_proxy_hcheck\"" >&2;}
                            elif test "$enable_proxy_hcheck" = "static" && test "$enable_watchdog" != "static" ; then
                              enable_proxy_hcheck=$enable_watchdog
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_hcheck shared because mod_watchdog is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_hcheck shared because mod_watchdog is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_hcheck" >&5
printf %s "checking whether to enable mod_proxy_hcheck... " >&6; }
            if test "$enable_proxy_hcheck" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_hcheck has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_hcheck$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_hcheck$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_hcheck" != "no"; then
    case "$enable_proxy_hcheck" in
    static*)
      MODLIST="$MODLIST proxy_hcheck"
      if test "proxy_hcheck" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_hcheck"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_hcheck"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_proxy_hcheck.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_hcheck.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_HCHECK_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_HCHECK_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_HCHECK_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_HCHECK_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_HCHECK_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_hcheck.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HCHECK_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HCHECK_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current -I\$(top_srcdir)/modules/http2\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current -I\$(top_srcdir)/modules/http2"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current -I\$(top_srcdir)/modules/http2"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi


module_selection=$save_module_selection
module_default=$save_module_default


  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





if test -z "$enable_session" ; then
  session_mods_enable=most
else
  session_mods_enable=$enable_session
fi




  current_dir=session
  modpath_current=modules/session
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d session || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


session_cookie_objects='mod_session_cookie.lo'
session_crypto_objects='mod_session_crypto.lo'
session_dbd_objects='mod_session_dbd.lo'

case "$host" in
  *os2*)
    # OS/2 DLLs must resolve all symbols at build time
    # and we need some from main session module
    session_cookie_objects="$session_cookie_objects mod_session.la"
    session_crypto_objects="$session_crypto_objects mod_session.la"
    session_dbd_objects="$session_dbd_objects mod_session.la"
    ;;
esac


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session" >&5
printf %s "checking whether to enable mod_session... " >&6; }
    # Check whether --enable-session was given.
if test ${enable_session+y}
then :
  enableval=$enable_session; force_session=$enableval
else $as_nop
  enable_session=most
fi

    _apmod_extra_msg=""
      case "$enable_session" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_session" = "static" -o "$enable_session" = "shared"; then
    :
  elif test "$enable_session" = "yes"; then
    enable_session=$module_default
  elif test "$enable_session" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session=$module_default
    else
      enable_session=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_session=$module_default
    else
      enable_session=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session" = "all" -o "$enable_session" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session=no
    fi
  elif test "$enable_session" = "reallyall" -o "$enable_session" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_session" != "no" ; then
      enable_session=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session=no
    fi
  else
    enable_session=no
  fi
  if test "$enable_session" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_session$_apmod_extra_msg" >&5
printf "%s\n" "$enable_session$_apmod_extra_msg" >&6; }
  if test "$enable_session" != "no"; then
    case "$enable_session" in
    static*)
      MODLIST="$MODLIST session"
      if test "session" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES session"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_session.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_session.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SESSION_LDADD)
EOF
      if test ! -z "\$(MOD_SESSION_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_LDADD)\""
    AP_LIBS="\$(MOD_SESSION_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SESSION_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_session.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_cookie" >&5
printf %s "checking whether to enable mod_session_cookie... " >&6; }
    # Check whether --enable-session-cookie was given.
if test ${enable_session_cookie+y}
then :
  enableval=$enable_session_cookie; force_session_cookie=$enableval
else $as_nop
  enable_session_cookie=$session_mods_enable
fi

    _apmod_extra_msg=""
      case "$enable_session_cookie" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_session_cookie" = "static" -o "$enable_session_cookie" = "shared"; then
    :
  elif test "$enable_session_cookie" = "yes"; then
    enable_session_cookie=$module_default
  elif test "$enable_session_cookie" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_cookie=$module_default
    else
      enable_session_cookie=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_cookie" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_session_cookie=$module_default
    else
      enable_session_cookie=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_cookie" = "all" -o "$enable_session_cookie" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_cookie=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_cookie=no
    fi
  elif test "$enable_session_cookie" = "reallyall" -o "$enable_session_cookie" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_session_cookie" != "no" ; then
      enable_session_cookie=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_cookie=no
    fi
  else
    enable_session_cookie=no
  fi
  if test "$enable_session_cookie" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_session" = "no" ; then
                              enable_session_cookie=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_cookie\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_session is disabled but required for mod_session_cookie\"" >&2;}
                            elif test "$enable_session_cookie" = "static" && test "$enable_session" != "static" ; then
                              enable_session_cookie=$enable_session
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_session_cookie shared because mod_session is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_session_cookie shared because mod_session is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_cookie" >&5
printf %s "checking whether to enable mod_session_cookie... " >&6; }
            if test "$enable_session_cookie" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_session_cookie has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_session_cookie$_apmod_extra_msg" >&5
printf "%s\n" "$enable_session_cookie$_apmod_extra_msg" >&6; }
  if test "$enable_session_cookie" != "no"; then
    case "$enable_session_cookie" in
    static*)
      MODLIST="$MODLIST session_cookie"
      if test "session_cookie" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES session_cookie"
      if test "$session_mods_enable" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_cookie"
      fi
      ;;
    esac


  if test -z "$session_cookie_objects"; then
    objects="mod_session_cookie.lo"
  else
    objects="$session_cookie_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_session_cookie.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SESSION_COOKIE_LDADD)
EOF
      if test ! -z "\$(MOD_SESSION_COOKIE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_COOKIE_LDADD)\""
    AP_LIBS="\$(MOD_SESSION_COOKIE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SESSION_COOKIE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_session_cookie.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_COOKIE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_COOKIE_LDADD"



  fi


if test "$enable_session_crypto" != ""; then
  session_mods_enable_crypto=$enable_session_crypto
else
  session_mods_enable_crypto=$session_mods_enable
fi
if test "$session_mods_enable_crypto" != "no"; then
  saved_CPPFLAGS="$CPPFLAGS"
  CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <apr_crypto.h>
int
main (void)
{

#if APU_HAVE_CRYPTO == 0
#error no crypto support
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ap_HAVE_APR_CRYPTO="yes"
else $as_nop
  ap_HAVE_APR_CRYPTO="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  CPPFLAGS="$saved_CPPFLAGS"
  if test $ap_HAVE_APR_CRYPTO = "no"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your APR does not include SSL/EVP support. To enable it: configure --with-crypto" >&5
printf "%s\n" "$as_me: WARNING: Your APR does not include SSL/EVP support. To enable it: configure --with-crypto" >&2;}
    if test "$enable_session_crypto" != "" -a "$enable_session_crypto" != "no"; then
        as_fn_error $? "mod_session_crypto cannot be enabled" "$LINENO" 5
    fi
    session_mods_enable_crypto="no"
  fi
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_crypto" >&5
printf %s "checking whether to enable mod_session_crypto... " >&6; }
    # Check whether --enable-session-crypto was given.
if test ${enable_session_crypto+y}
then :
  enableval=$enable_session_crypto; force_session_crypto=$enableval
else $as_nop
  enable_session_crypto=$session_mods_enable_crypto
fi

    _apmod_extra_msg=""
      case "$enable_session_crypto" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_session_crypto" = "static" -o "$enable_session_crypto" = "shared"; then
    :
  elif test "$enable_session_crypto" = "yes"; then
    enable_session_crypto=$module_default
  elif test "$enable_session_crypto" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_crypto=$module_default
    else
      enable_session_crypto=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_crypto" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_session_crypto=$module_default
    else
      enable_session_crypto=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_crypto" = "all" -o "$enable_session_crypto" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_crypto=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_crypto=no
    fi
  elif test "$enable_session_crypto" = "reallyall" -o "$enable_session_crypto" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_session_crypto" != "no" ; then
      enable_session_crypto=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_crypto=no
    fi
  else
    enable_session_crypto=no
  fi
  if test "$enable_session_crypto" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_session" = "no" ; then
                              enable_session_crypto=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_crypto\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_session is disabled but required for mod_session_crypto\"" >&2;}
                            elif test "$enable_session_crypto" = "static" && test "$enable_session" != "static" ; then
                              enable_session_crypto=$enable_session
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_session_crypto shared because mod_session is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_session_crypto shared because mod_session is built shared\"" >&2;}
                            else

if test "$session_mods_enable_crypto" = "no" ; then
  enable_session_crypto=no
fi

            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_crypto" >&5
printf %s "checking whether to enable mod_session_crypto... " >&6; }
            if test "$enable_session_crypto" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_session_crypto has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_session_crypto$_apmod_extra_msg" >&5
printf "%s\n" "$enable_session_crypto$_apmod_extra_msg" >&6; }
  if test "$enable_session_crypto" != "no"; then
    case "$enable_session_crypto" in
    static*)
      MODLIST="$MODLIST session_crypto"
      if test "session_crypto" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES session_crypto"
      if test "$session_mods_enable_crypto" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_crypto"
      fi
      ;;
    esac


  if test -z "$session_crypto_objects"; then
    objects="mod_session_crypto.lo"
  else
    objects="$session_crypto_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_session_crypto.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SESSION_CRYPTO_LDADD)
EOF
      if test ! -z "\$(MOD_SESSION_CRYPTO_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_CRYPTO_LDADD)\""
    AP_LIBS="\$(MOD_SESSION_CRYPTO_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SESSION_CRYPTO_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_session_crypto.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_CRYPTO_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_CRYPTO_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_dbd" >&5
printf %s "checking whether to enable mod_session_dbd... " >&6; }
    # Check whether --enable-session-dbd was given.
if test ${enable_session_dbd+y}
then :
  enableval=$enable_session_dbd; force_session_dbd=$enableval
else $as_nop
  enable_session_dbd=$session_mods_enable
fi

    _apmod_extra_msg=""
      case "$enable_session_dbd" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_session_dbd" = "static" -o "$enable_session_dbd" = "shared"; then
    :
  elif test "$enable_session_dbd" = "yes"; then
    enable_session_dbd=$module_default
  elif test "$enable_session_dbd" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_dbd=$module_default
    else
      enable_session_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_dbd" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_session_dbd=$module_default
    else
      enable_session_dbd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_session_dbd" = "all" -o "$enable_session_dbd" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_session_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_dbd=no
    fi
  elif test "$enable_session_dbd" = "reallyall" -o "$enable_session_dbd" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_session_dbd" != "no" ; then
      enable_session_dbd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_session_dbd=no
    fi
  else
    enable_session_dbd=no
  fi
  if test "$enable_session_dbd" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_session" = "no" ; then
                              enable_session_dbd=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_session is disabled but required for mod_session_dbd\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_session is disabled but required for mod_session_dbd\"" >&2;}
                            elif test "$enable_session_dbd" = "static" && test "$enable_session" != "static" ; then
                              enable_session_dbd=$enable_session
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_session_dbd shared because mod_session is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_session_dbd shared because mod_session is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_session_dbd" >&5
printf %s "checking whether to enable mod_session_dbd... " >&6; }
            if test "$enable_session_dbd" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_session_dbd has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_session_dbd$_apmod_extra_msg" >&5
printf "%s\n" "$enable_session_dbd$_apmod_extra_msg" >&6; }
  if test "$enable_session_dbd" != "no"; then
    case "$enable_session_dbd" in
    static*)
      MODLIST="$MODLIST session_dbd"
      if test "session_dbd" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES session_dbd"
      if test "$session_mods_enable" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},session_dbd"
      fi
      ;;
    esac


  if test -z "$session_dbd_objects"; then
    objects="mod_session_dbd.lo"
  else
    objects="$session_dbd_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_session_dbd.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SESSION_DBD_LDADD)
EOF
      if test ! -z "\$(MOD_SESSION_DBD_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SESSION_DBD_LDADD)\""
    AP_LIBS="\$(MOD_SESSION_DBD_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SESSION_DBD_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_session_dbd.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SESSION_DBD_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SESSION_DBD_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"







  current_dir=slotmem
  modpath_current=modules/slotmem
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d slotmem || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_slotmem_shm" >&5
printf %s "checking whether to enable mod_slotmem_shm... " >&6; }
    # Check whether --enable-slotmem-shm was given.
if test ${enable_slotmem_shm+y}
then :
  enableval=$enable_slotmem_shm; force_slotmem_shm=$enableval
else $as_nop
  enable_slotmem_shm=most
fi

    _apmod_extra_msg=""
      case "$enable_slotmem_shm" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_slotmem_shm" = "static" -o "$enable_slotmem_shm" = "shared"; then
    :
  elif test "$enable_slotmem_shm" = "yes"; then
    enable_slotmem_shm=$module_default
  elif test "$enable_slotmem_shm" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_slotmem_shm=$module_default
    else
      enable_slotmem_shm=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_slotmem_shm" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_slotmem_shm=$module_default
    else
      enable_slotmem_shm=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_slotmem_shm" = "all" -o "$enable_slotmem_shm" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_slotmem_shm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_slotmem_shm=no
    fi
  elif test "$enable_slotmem_shm" = "reallyall" -o "$enable_slotmem_shm" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_slotmem_shm" != "no" ; then
      enable_slotmem_shm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_slotmem_shm=no
    fi
  else
    enable_slotmem_shm=no
  fi
  if test "$enable_slotmem_shm" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_slotmem_shm$_apmod_extra_msg" >&5
printf "%s\n" "$enable_slotmem_shm$_apmod_extra_msg" >&6; }
  if test "$enable_slotmem_shm" != "no"; then
    case "$enable_slotmem_shm" in
    static*)
      MODLIST="$MODLIST slotmem_shm"
      if test "slotmem_shm" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES slotmem_shm"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},slotmem_shm"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_slotmem_shm.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_slotmem_shm.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SLOTMEM_SHM_LDADD)
EOF
      if test ! -z "\$(MOD_SLOTMEM_SHM_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SLOTMEM_SHM_LDADD)\""
    AP_LIBS="\$(MOD_SLOTMEM_SHM_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SLOTMEM_SHM_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_slotmem_shm.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SLOTMEM_SHM_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SLOTMEM_SHM_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_slotmem_plain" >&5
printf %s "checking whether to enable mod_slotmem_plain... " >&6; }
    # Check whether --enable-slotmem-plain was given.
if test ${enable_slotmem_plain+y}
then :
  enableval=$enable_slotmem_plain; force_slotmem_plain=$enableval
else $as_nop
  enable_slotmem_plain=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_slotmem_plain" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_slotmem_plain" = "static" -o "$enable_slotmem_plain" = "shared"; then
    :
  elif test "$enable_slotmem_plain" = "yes"; then
    enable_slotmem_plain=$module_default
  elif test "$enable_slotmem_plain" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_slotmem_plain=$module_default
    else
      enable_slotmem_plain=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_slotmem_plain" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_slotmem_plain=$module_default
    else
      enable_slotmem_plain=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_slotmem_plain" = "all" -o "$enable_slotmem_plain" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_slotmem_plain=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_slotmem_plain=no
    fi
  elif test "$enable_slotmem_plain" = "reallyall" -o "$enable_slotmem_plain" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_slotmem_plain" != "no" ; then
      enable_slotmem_plain=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_slotmem_plain=no
    fi
  else
    enable_slotmem_plain=no
  fi
  if test "$enable_slotmem_plain" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_slotmem_plain$_apmod_extra_msg" >&5
printf "%s\n" "$enable_slotmem_plain$_apmod_extra_msg" >&6; }
  if test "$enable_slotmem_plain" != "no"; then
    case "$enable_slotmem_plain" in
    static*)
      MODLIST="$MODLIST slotmem_plain"
      if test "slotmem_plain" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES slotmem_plain"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},slotmem_plain"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_slotmem_plain.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_slotmem_plain.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SLOTMEM_PLAIN_LDADD)
EOF
      if test ! -z "\$(MOD_SLOTMEM_PLAIN_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SLOTMEM_PLAIN_LDADD)\""
    AP_LIBS="\$(MOD_SLOTMEM_PLAIN_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SLOTMEM_PLAIN_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_slotmem_plain.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SLOTMEM_PLAIN_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SLOTMEM_PLAIN_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=ssl
  modpath_current=modules/ssl
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d ssl || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


ssl_objs="mod_ssl.lo ssl_engine_config.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 "

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ssl" >&5
printf %s "checking whether to enable mod_ssl... " >&6; }
    # Check whether --enable-ssl was given.
if test ${enable_ssl+y}
then :
  enableval=$enable_ssl; force_ssl=$enableval
else $as_nop
  enable_ssl=most
fi

    _apmod_extra_msg=""
      case "$enable_ssl" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_ssl" = "static" -o "$enable_ssl" = "shared"; then
    :
  elif test "$enable_ssl" = "yes"; then
    enable_ssl=$module_default
  elif test "$enable_ssl" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ssl=$module_default
    else
      enable_ssl=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ssl" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_ssl=$module_default
    else
      enable_ssl=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_ssl" = "all" -o "$enable_ssl" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_ssl=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ssl=no
    fi
  elif test "$enable_ssl" = "reallyall" -o "$enable_ssl" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_ssl" != "no" ; then
      enable_ssl=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ssl=no
    fi
  else
    enable_ssl=no
  fi
  if test "$enable_ssl" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
printf %s "checking for OpenSSL... " >&6; }
if test ${ac_cv_openssl+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        ac_cv_openssl=no
    ap_openssl_found=""
    ap_openssl_base=""
    ap_openssl_libs=""
    ap_openssl_mod_cflags=""
    ap_openssl_mod_ldflags=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-provided OpenSSL base directory" >&5
printf %s "checking for user-provided OpenSSL base directory... " >&6; }

# Check whether --with-ssl was given.
if test ${with_ssl+y}
then :
  withval=$with_ssl;
            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
                ap_openssl_base="`cd $withval ; pwd`"
      fi

fi

    if test "x$ap_openssl_base" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_openssl_base" >&5
printf "%s\n" "$ap_openssl_base" >&6; }
    fi

        saved_CPPFLAGS="$CPPFLAGS"
    saved_LIBS="$LIBS"
    saved_LDFLAGS="$LDFLAGS"

        if test -n "$PKGCONFIG"; then
      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      if test "x$ap_openssl_base" != "x"; then
        if test -f "${ap_openssl_base}/lib/pkgconfig/openssl.pc"; then
                              PKG_CONFIG_PATH="${ap_openssl_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        elif test -f "${ap_openssl_base}/lib64/pkgconfig/openssl.pc"; then
                              PKG_CONFIG_PATH="${ap_openssl_base}/lib64/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        fi
      fi
      # Check whether --enable-ssl-staticlib-deps was given.
if test ${enable_ssl_staticlib_deps+y}
then :
  enableval=$enable_ssl_staticlib_deps;
        if test "$enableval" = "yes"; then
          PKGCONFIG_LIBOPTS="--static"
        fi

fi

      ap_openssl_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors openssl`"
      if test $? -eq 0; then
        ap_openssl_found="yes"
        pkglookup="`$PKGCONFIG --cflags-only-I openssl`"

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
    CPPFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
    MOD_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$ab_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"$pkglookup\""
    ab_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
        ab_CFLAGS="$ab_CFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L openssl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other openssl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
    fi

        if test "x$ap_openssl_base" != "x" -a "x$ap_openssl_found" = "x"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_openssl_base/include\""
    CPPFLAGS="-I$ap_openssl_base/include"
  else
    apr_addto_bugger="-I$ap_openssl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_openssl_base/include\""
    MOD_CFLAGS="-I$ap_openssl_base/include"
  else
    apr_addto_bugger="-I$ap_openssl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$ab_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"-I$ap_openssl_base/include\""
    ab_CFLAGS="-I$ap_openssl_base/include"
  else
    apr_addto_bugger="-I$ap_openssl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
        ab_CFLAGS="$ab_CFLAGS $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_openssl_base/lib\""
    LDFLAGS="-L$ap_openssl_base/lib"
  else
    apr_addto_bugger="-L$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_openssl_base/lib\""
    MOD_LDFLAGS="-L$ap_openssl_base/lib"
  else
    apr_addto_bugger="-L$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
    fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.8a" >&5
printf %s "checking for OpenSSL version >= 0.9.8a... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <openssl/opensslv.h>
int
main (void)
{

#if !defined(OPENSSL_VERSION_NUMBER)
#error "Missing OpenSSL version"
#endif
#if OPENSSL_VERSION_NUMBER < 0x0090801f
#error "Unsupported OpenSSL version " OPENSSL_VERSION_TEXT
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
printf "%s\n" "OK" >&6; }
       ac_cv_openssl=yes
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
printf "%s\n" "FAILED" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

    if test "x$ac_cv_openssl" = "xyes"; then
      ap_openssl_libs="${ap_openssl_libs:--lssl -lcrypto} `$apr_config --libs`"

  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_openssl_libs\""
    MOD_LDFLAGS="$ap_openssl_libs"
  else
    apr_addto_bugger="$ap_openssl_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_openssl_libs\""
    LIBS="$ap_openssl_libs"
  else
    apr_addto_bugger="$ap_openssl_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi


  test "x$silent" != "xyes" && echo "  forcing ab_LIBS to \"$MOD_LDFLAGS\""
  ab_LIBS="$MOD_LDFLAGS"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_CFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LIBS"



            liberrors=""
      ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_engine_h" = xyes
then :
  printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h

fi


  for ac_func in SSL_CTX_new
do :
  ac_fn_c_check_func "$LINENO" "SSL_CTX_new" "ac_cv_func_SSL_CTX_new"
if test "x$ac_cv_func_SSL_CTX_new" = xyes
then :
  printf "%s\n" "#define HAVE_SSL_CTX_NEW 1" >>confdefs.h

else $as_nop
  liberrors="yes"
fi

done
      ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
then :
  printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h

fi

      ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
if test "x$ac_cv_func_ENGINE_init" = xyes
then :
  printf "%s\n" "#define HAVE_ENGINE_INIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "ENGINE_load_builtin_engines" "ac_cv_func_ENGINE_load_builtin_engines"
if test "x$ac_cv_func_ENGINE_load_builtin_engines" = xyes
then :
  printf "%s\n" "#define HAVE_ENGINE_LOAD_BUILTIN_ENGINES 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
if test "x$ac_cv_func_RAND_egd" = xyes
then :
  printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h

fi

      if test "x$liberrors" != "x"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL libraries are unusable" >&5
printf "%s\n" "$as_me: WARNING: OpenSSL libraries are unusable" >&2;}
      fi
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL version is too old" >&5
printf "%s\n" "$as_me: WARNING: OpenSSL version is too old" >&2;}
    fi

        CPPFLAGS="$saved_CPPFLAGS"
    LIBS="$saved_LIBS"
    LDFLAGS="$saved_LDFLAGS"

        ap_openssl_mod_cflags=$MOD_CFLAGS
    ap_openssl_mod_ldflags=$MOD_LDFLAGS

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_openssl" >&5
printf "%s\n" "$ac_cv_openssl" >&6; }
  if test "x$ac_cv_openssl" = "xyes"; then

printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_openssl_mod_ldflags\""
    MOD_LDFLAGS="$ap_openssl_mod_ldflags"
  else
    apr_addto_bugger="$ap_openssl_mod_ldflags"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$ap_openssl_mod_cflags\""
    MOD_CFLAGS="$ap_openssl_mod_cflags"
  else
    apr_addto_bugger="$ap_openssl_mod_cflags"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi

  fi

    if test "$ac_cv_openssl" = "yes" ; then
        if test "x$enable_ssl" = "xshared"; then
           # The only symbol which needs to be exported is the module
           # structure, so ask libtool to hide everything else:

  if test "x$MOD_SSL_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_SSL_LDADD to \"-export-symbols-regex ssl_module\""
    MOD_SSL_LDADD="-export-symbols-regex ssl_module"
  else
    apr_addto_bugger="-export-symbols-regex ssl_module"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_SSL_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SSL_LDADD"
        MOD_SSL_LDADD="$MOD_SSL_LDADD $i"
      fi
    done
  fi

        fi
    else
        enable_ssl=no
    fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_ssl" >&5
printf %s "checking whether to enable mod_ssl... " >&6; }
            if test "$enable_ssl" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_ssl has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ssl$_apmod_extra_msg" >&5
printf "%s\n" "$enable_ssl$_apmod_extra_msg" >&6; }
  if test "$enable_ssl" != "no"; then
    case "$enable_ssl" in
    static*)
      MODLIST="$MODLIST ssl"
      if test "ssl" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES ssl"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},ssl"
      fi
      ;;
    esac


  if test -z "$ssl_objs"; then
    objects="mod_ssl.lo"
  else
    objects="$ssl_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_ssl.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SSL_LDADD)
EOF
      if test ! -z "\$(MOD_SSL_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SSL_LDADD)\""
    AP_LIBS="\$(MOD_SSL_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SSL_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_ssl.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SSL_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SSL_LDADD"



  fi


# Ensure that other modules can pick up mod_ssl.h

  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=test
  modpath_current=modules/test
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d test || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_hook_export" >&5
printf %s "checking whether to enable mod_optional_hook_export... " >&6; }
    # Check whether --enable-optional-hook-export was given.
if test ${enable_optional_hook_export+y}
then :
  enableval=$enable_optional_hook_export; force_optional_hook_export=$enableval
else $as_nop
  enable_optional_hook_export=no
fi

    _apmod_extra_msg=""
      case "$enable_optional_hook_export" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_optional_hook_export" = "static" -o "$enable_optional_hook_export" = "shared"; then
    :
  elif test "$enable_optional_hook_export" = "yes"; then
    enable_optional_hook_export=$module_default
  elif test "$enable_optional_hook_export" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_optional_hook_export=$module_default
    else
      enable_optional_hook_export=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_hook_export" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_optional_hook_export=$module_default
    else
      enable_optional_hook_export=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_hook_export" = "all" -o "$enable_optional_hook_export" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_optional_hook_export=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_optional_hook_export=no
    fi
  elif test "$enable_optional_hook_export" = "reallyall" -o "$enable_optional_hook_export" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_optional_hook_export" != "no" ; then
      enable_optional_hook_export=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_optional_hook_export=no
    fi
  else
    enable_optional_hook_export=no
  fi
  if test "$enable_optional_hook_export" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_optional_hook_export$_apmod_extra_msg" >&5
printf "%s\n" "$enable_optional_hook_export$_apmod_extra_msg" >&6; }
  if test "$enable_optional_hook_export" != "no"; then
    case "$enable_optional_hook_export" in
    static*)
      MODLIST="$MODLIST optional_hook_export"
      if test "optional_hook_export" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES optional_hook_export"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_hook_export"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_optional_hook_export.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_optional_hook_export.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
EOF
      if test ! -z "\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)\""
    AP_LIBS="\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_optional_hook_export.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_EXPORT_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_hook_import" >&5
printf %s "checking whether to enable mod_optional_hook_import... " >&6; }
    # Check whether --enable-optional-hook-import was given.
if test ${enable_optional_hook_import+y}
then :
  enableval=$enable_optional_hook_import; force_optional_hook_import=$enableval
else $as_nop
  enable_optional_hook_import=no
fi

    _apmod_extra_msg=""
      case "$enable_optional_hook_import" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_optional_hook_import" = "static" -o "$enable_optional_hook_import" = "shared"; then
    :
  elif test "$enable_optional_hook_import" = "yes"; then
    enable_optional_hook_import=$module_default
  elif test "$enable_optional_hook_import" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_optional_hook_import=$module_default
    else
      enable_optional_hook_import=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_hook_import" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_optional_hook_import=$module_default
    else
      enable_optional_hook_import=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_hook_import" = "all" -o "$enable_optional_hook_import" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_optional_hook_import=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_optional_hook_import=no
    fi
  elif test "$enable_optional_hook_import" = "reallyall" -o "$enable_optional_hook_import" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_optional_hook_import" != "no" ; then
      enable_optional_hook_import=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_optional_hook_import=no
    fi
  else
    enable_optional_hook_import=no
  fi
  if test "$enable_optional_hook_import" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_optional_hook_import$_apmod_extra_msg" >&5
printf "%s\n" "$enable_optional_hook_import$_apmod_extra_msg" >&6; }
  if test "$enable_optional_hook_import" != "no"; then
    case "$enable_optional_hook_import" in
    static*)
      MODLIST="$MODLIST optional_hook_import"
      if test "optional_hook_import" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES optional_hook_import"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_hook_import"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_optional_hook_import.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_optional_hook_import.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
EOF
      if test ! -z "\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)\""
    AP_LIBS="\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_optional_hook_import.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_IMPORT_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_fn_import" >&5
printf %s "checking whether to enable mod_optional_fn_import... " >&6; }
    # Check whether --enable-optional-fn-import was given.
if test ${enable_optional_fn_import+y}
then :
  enableval=$enable_optional_fn_import; force_optional_fn_import=$enableval
else $as_nop
  enable_optional_fn_import=no
fi

    _apmod_extra_msg=""
      case "$enable_optional_fn_import" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_optional_fn_import" = "static" -o "$enable_optional_fn_import" = "shared"; then
    :
  elif test "$enable_optional_fn_import" = "yes"; then
    enable_optional_fn_import=$module_default
  elif test "$enable_optional_fn_import" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_optional_fn_import=$module_default
    else
      enable_optional_fn_import=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_fn_import" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_optional_fn_import=$module_default
    else
      enable_optional_fn_import=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_fn_import" = "all" -o "$enable_optional_fn_import" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_optional_fn_import=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_optional_fn_import=no
    fi
  elif test "$enable_optional_fn_import" = "reallyall" -o "$enable_optional_fn_import" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_optional_fn_import" != "no" ; then
      enable_optional_fn_import=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_optional_fn_import=no
    fi
  else
    enable_optional_fn_import=no
  fi
  if test "$enable_optional_fn_import" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_optional_fn_import$_apmod_extra_msg" >&5
printf "%s\n" "$enable_optional_fn_import$_apmod_extra_msg" >&6; }
  if test "$enable_optional_fn_import" != "no"; then
    case "$enable_optional_fn_import" in
    static*)
      MODLIST="$MODLIST optional_fn_import"
      if test "optional_fn_import" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES optional_fn_import"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_fn_import"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_optional_fn_import.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_optional_fn_import.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
EOF
      if test ! -z "\$(MOD_OPTIONAL_FN_IMPORT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_FN_IMPORT_LDADD)\""
    AP_LIBS="\$(MOD_OPTIONAL_FN_IMPORT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_OPTIONAL_FN_IMPORT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_optional_fn_import.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_IMPORT_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_optional_fn_export" >&5
printf %s "checking whether to enable mod_optional_fn_export... " >&6; }
    # Check whether --enable-optional-fn-export was given.
if test ${enable_optional_fn_export+y}
then :
  enableval=$enable_optional_fn_export; force_optional_fn_export=$enableval
else $as_nop
  enable_optional_fn_export=no
fi

    _apmod_extra_msg=""
      case "$enable_optional_fn_export" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_optional_fn_export" = "static" -o "$enable_optional_fn_export" = "shared"; then
    :
  elif test "$enable_optional_fn_export" = "yes"; then
    enable_optional_fn_export=$module_default
  elif test "$enable_optional_fn_export" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_optional_fn_export=$module_default
    else
      enable_optional_fn_export=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_fn_export" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_optional_fn_export=$module_default
    else
      enable_optional_fn_export=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_optional_fn_export" = "all" -o "$enable_optional_fn_export" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_optional_fn_export=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_optional_fn_export=no
    fi
  elif test "$enable_optional_fn_export" = "reallyall" -o "$enable_optional_fn_export" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_optional_fn_export" != "no" ; then
      enable_optional_fn_export=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_optional_fn_export=no
    fi
  else
    enable_optional_fn_export=no
  fi
  if test "$enable_optional_fn_export" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_optional_fn_export$_apmod_extra_msg" >&5
printf "%s\n" "$enable_optional_fn_export$_apmod_extra_msg" >&6; }
  if test "$enable_optional_fn_export" != "no"; then
    case "$enable_optional_fn_export" in
    static*)
      MODLIST="$MODLIST optional_fn_export"
      if test "optional_fn_export" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES optional_fn_export"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},optional_fn_export"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_optional_fn_export.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_optional_fn_export.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
EOF
      if test ! -z "\$(MOD_OPTIONAL_FN_EXPORT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_OPTIONAL_FN_EXPORT_LDADD)\""
    AP_LIBS="\$(MOD_OPTIONAL_FN_EXPORT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_OPTIONAL_FN_EXPORT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_optional_fn_export.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_EXPORT_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dialup" >&5
printf %s "checking whether to enable mod_dialup... " >&6; }
    # Check whether --enable-dialup was given.
if test ${enable_dialup+y}
then :
  enableval=$enable_dialup; force_dialup=$enableval
else $as_nop
  enable_dialup=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_dialup" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_dialup" = "static" -o "$enable_dialup" = "shared"; then
    :
  elif test "$enable_dialup" = "yes"; then
    enable_dialup=$module_default
  elif test "$enable_dialup" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dialup=$module_default
    else
      enable_dialup=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dialup" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_dialup=$module_default
    else
      enable_dialup=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dialup" = "all" -o "$enable_dialup" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dialup=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dialup=no
    fi
  elif test "$enable_dialup" = "reallyall" -o "$enable_dialup" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_dialup" != "no" ; then
      enable_dialup=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dialup=no
    fi
  else
    enable_dialup=no
  fi
  if test "$enable_dialup" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dialup$_apmod_extra_msg" >&5
printf "%s\n" "$enable_dialup$_apmod_extra_msg" >&6; }
  if test "$enable_dialup" != "no"; then
    case "$enable_dialup" in
    static*)
      MODLIST="$MODLIST dialup"
      if test "dialup" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dialup"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dialup"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_dialup.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_dialup.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_DIALUP_LDADD)
EOF
      if test ! -z "\$(MOD_DIALUP_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DIALUP_LDADD)\""
    AP_LIBS="\$(MOD_DIALUP_LDADD)"
  else
    apr_addto_bugger="\$(MOD_DIALUP_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_dialup.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DIALUP_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DIALUP_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for target platform" >&5
printf %s "checking for target platform... " >&6; }

case $host in
*pc-os2-emx*)
  OS="os2"
  OS_DIR=$OS
  ;;
bs2000*)
  OS="unix"
  OS_DIR=$OS
  ;;
*cygwin*)
  OS="cygwin"
  OS_DIR="unix"
  ;;
*mingw32*)
  OS="win32"
  OS_DIR=$OS
  ;;
*)
  OS="unix"
  OS_DIR=$OS;;
esac

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
printf "%s\n" "$OS" >&6; }

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/${OS_DIR}/Makefile"


if test "$OS" = "os2" ; then

  if test "x$CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-DOS2 -O2\""
    CFLAGS="-DOS2 -O2"
  else
    apr_addto_bugger="-DOS2 -O2"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
        CFLAGS="$CFLAGS $i"
      fi
    done
  fi

fi

if test "$OS" = "unix" ; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
printf %s "checking for rlim_t... " >&6; }
if test ${ac_cv_type_rlim_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>

int
main (void)
{
rlim_t spoon;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      ac_cv_type_rlim_t=yes

else $as_nop
  ac_cv_type_rlim_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
printf "%s\n" "$ac_cv_type_rlim_t" >&6; }
  if test "$ac_cv_type_rlim_t" = "no" ; then

printf "%s\n" "#define rlim_t int" >>confdefs.h

  fi


    ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_resource_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/sem.h" "ac_cv_header_sys_sem_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sem_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SEM_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ipc_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h

fi


    ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
if test "x$ac_cv_func_setsid" = xyes
then :
  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
if test "x$ac_cv_func_killpg" = xyes
then :
  printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h

fi

fi



ac_fn_c_check_header_compile "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes
then :
  printf "%s\n" "#define HAVE_BSTRING_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h

fi




ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
if test "x$ac_cv_func_syslog" = xyes
then :
  printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h

fi


    ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_times_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h

fi

    ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
if test "x$ac_cv_func_times" = xyes
then :
  printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h

fi


# util_expr needs header files in server source dir

  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/server\""
    INCLUDES="-I\$(top_srcdir)/server"
  else
    apr_addto_bugger="-I\$(top_srcdir)/server"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi




apr_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $INCLUDES"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr.h>
#if APR_HAS_THREADS
YES_IS_DEFINED
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
then :
  ac_cv_define_APR_HAS_THREADS=yes
else $as_nop
  ac_cv_define_APR_HAS_THREADS=no
fi
rm -rf conftest*

CPPFLAGS=$apr_old_cppflags


have_threaded_sig_graceful=yes
case $host in
    *-linux-*)
        case `uname -r` in
          2.0* )
                                                have_threaded_sig_graceful=no
          ;;
        esac
    ;;
esac


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether APR supports thread-safe pollsets" >&5
printf %s "checking whether APR supports thread-safe pollsets... " >&6; }
if test ${ac_cv_have_threadsafe_pollset+y}
then :
  printf %s "(cached) " >&6
else $as_nop

    case $host in
        *-apple-darwin[1-9].*)

  if test -z "$ac_cv_func_kqueue"; then
    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
    ac_cv_func_kqueue="no"
  fi

            ;;
    esac
    ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
if test "x$ac_cv_func_kqueue" = xyes
then :
  printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
if test "x$ac_cv_func_port_create" = xyes
then :
  printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
if test "x$ac_cv_func_epoll_create" = xyes
then :
  printf "%s\n" "#define HAVE_EPOLL_CREATE 1" >>confdefs.h

fi

    if test "$ac_cv_func_kqueue$ac_cv_func_port_create$ac_cv_func_epoll_create" != "nonono"; then
        ac_cv_have_threadsafe_pollset=yes
    else
        ac_cv_have_threadsafe_pollset=no
    fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_threadsafe_pollset" >&5
printf "%s\n" "$ac_cv_have_threadsafe_pollset" >&6; }

case $APR_VERSION in
    1.4*)
        apr_has_skiplist=no
        ;;
    *)
        apr_has_skiplist=yes
esac

case $host in
    *mingw32* | *os2-emx*)
        forking_mpms_supported=no
        ;;
    *)
        forking_mpms_supported=yes
        ;;
esac



ap_mpm_is_supported ()
{
    eval "tmp=\$ap_supported_mpm_$1"
    if test -z "$tmp"; then
        return 1
    else
        return 0
    fi
}

ap_mpm_supports_shared ()
{
    eval "tmp=\$ap_supported_mpm_$1"
    if test "$tmp" = "shared"; then
        return 0
    else
        return 1
    fi
}

ap_mpm_is_threaded ()
{
    if test "$mpm_build" = "shared" -a ac_cv_define_APR_HAS_THREADS = "yes"; then
        return 0
    fi

    for mpm in $ap_enabled_mpms; do
        eval "tmp=\$ap_threaded_mpm_$mpm"
        if test "$tmp" = "yes"; then
            return 0
        fi
    done
    return 1
}

ap_mpm_is_enabled ()
{
    eval "tmp=\$ap_enabled_mpm_$1"
    if test "$tmp" = "yes"; then
        return 0
    else
        return 1
    fi
}

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if event MPM supports this platform" >&5
printf %s "checking if event MPM supports this platform... " >&6; }
if test $forking_mpms_supported != yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - This is not a forking platform" >&5
printf "%s\n" "no - This is not a forking platform" >&6; }
elif test $ac_cv_define_APR_HAS_THREADS != yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - APR does not support threads" >&5
printf "%s\n" "no - APR does not support threads" >&6; }
elif test $have_threaded_sig_graceful != yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - SIG_GRACEFUL cannot be used with a threaded MPM" >&5
printf "%s\n" "no - SIG_GRACEFUL cannot be used with a threaded MPM" >&6; }
elif test $ac_cv_have_threadsafe_pollset != yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - APR_POLLSET_THREADSAFE is not supported" >&5
printf "%s\n" "no - APR_POLLSET_THREADSAFE is not supported" >&6; }
elif test $apr_has_skiplist != yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - APR skiplist is not available" >&5
printf "%s\n" "no - APR skiplist is not available" >&6; }
else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    if test "yes" = "yes"; then
        eval "ap_supported_mpm_event=shared"
        ap_supported_shared_mpms="$ap_supported_shared_mpms event "
    else
        eval "ap_supported_mpm_event=static"
    fi
    if test "yes" = "yes"; then
        eval "ap_threaded_mpm_event=yes"
    fi

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mpmt_os2 MPM supports this platform" >&5
printf %s "checking if mpmt_os2 MPM supports this platform... " >&6; }
case $host in
    *os2-emx*)
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    if test "no" = "yes"; then
        eval "ap_supported_mpm_mpmt_os2=shared"
        ap_supported_shared_mpms="$ap_supported_shared_mpms mpmt_os2 "
    else
        eval "ap_supported_mpm_mpmt_os2=static"
    fi
    if test "yes" = "yes"; then
        eval "ap_threaded_mpm_mpmt_os2=yes"
    fi

        ;;
    *)
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
        ;;
esac

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if prefork MPM supports this platform" >&5
printf %s "checking if prefork MPM supports this platform... " >&6; }
if test $forking_mpms_supported != yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - This is not a forking platform" >&5
printf "%s\n" "no - This is not a forking platform" >&6; }
else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    if test "yes" = "yes"; then
        eval "ap_supported_mpm_prefork=shared"
        ap_supported_shared_mpms="$ap_supported_shared_mpms prefork "
    else
        eval "ap_supported_mpm_prefork=static"
    fi
    if test "no" = "yes"; then
        eval "ap_threaded_mpm_prefork=yes"
    fi

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if WinNT MPM supports this platform" >&5
printf %s "checking if WinNT MPM supports this platform... " >&6; }
case $host in
    *mingw32*)
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    if test "no" = "yes"; then
        eval "ap_supported_mpm_winnt=shared"
        ap_supported_shared_mpms="$ap_supported_shared_mpms winnt "
    else
        eval "ap_supported_mpm_winnt=static"
    fi
    if test "yes" = "yes"; then
        eval "ap_threaded_mpm_winnt=yes"
    fi

        ;;
    *)
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
        ;;
esac

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if worker MPM supports this platform" >&5
printf %s "checking if worker MPM supports this platform... " >&6; }
if test $forking_mpms_supported != yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - This is not a forking platform" >&5
printf "%s\n" "no - This is not a forking platform" >&6; }
elif test $ac_cv_define_APR_HAS_THREADS != yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - APR does not support threads" >&5
printf "%s\n" "no - APR does not support threads" >&6; }
elif test $have_threaded_sig_graceful != yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - SIG_GRACEFUL cannot be used with a threaded MPM" >&5
printf "%s\n" "no - SIG_GRACEFUL cannot be used with a threaded MPM" >&6; }
else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    if test "yes" = "yes"; then
        eval "ap_supported_mpm_worker=shared"
        ap_supported_shared_mpms="$ap_supported_shared_mpms worker "
    else
        eval "ap_supported_mpm_worker=static"
    fi
    if test "yes" = "yes"; then
        eval "ap_threaded_mpm_worker=yes"
    fi

fi

htpasswd_LTFLAGS=""
htdigest_LTFLAGS=""
rotatelogs_LTFLAGS=""
logresolve_LTFLAGS=""
htdbm_LTFLAGS=""
ab_LTFLAGS=""
checkgid_LTFLAGS=""
htcacheclean_LTFLAGS=""
httxt2dbm_LTFLAGS=""
fcgistarter_LTFLAGS=""

# Check whether --enable-static-support was given.
if test ${enable_static_support+y}
then :
  enableval=$enable_static_support;
if test "$enableval" = "yes" ; then

  if test "x$htpasswd_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting htpasswd_LTFLAGS to \"-static\""
    htpasswd_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htpasswd_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htpasswd_LTFLAGS"
        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
      fi
    done
  fi


  if test "x$htdigest_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting htdigest_LTFLAGS to \"-static\""
    htdigest_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htdigest_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdigest_LTFLAGS"
        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
      fi
    done
  fi


  if test "x$rotatelogs_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting rotatelogs_LTFLAGS to \"-static\""
    rotatelogs_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $rotatelogs_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to rotatelogs_LTFLAGS"
        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
      fi
    done
  fi


  if test "x$logresolve_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting logresolve_LTFLAGS to \"-static\""
    logresolve_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $logresolve_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to logresolve_LTFLAGS"
        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
      fi
    done
  fi


  if test "x$htdbm_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting htdbm_LTFLAGS to \"-static\""
    htdbm_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htdbm_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdbm_LTFLAGS"
        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
      fi
    done
  fi


  if test "x$ab_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ab_LTFLAGS to \"-static\""
    ab_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_LTFLAGS"
        ab_LTFLAGS="$ab_LTFLAGS $i"
      fi
    done
  fi


  if test "x$checkgid_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting checkgid_LTFLAGS to \"-static\""
    checkgid_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $checkgid_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to checkgid_LTFLAGS"
        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
      fi
    done
  fi


  if test "x$htcacheclean_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting htcacheclean_LTFLAGS to \"-static\""
    htcacheclean_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htcacheclean_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htcacheclean_LTFLAGS"
        htcacheclean_LTFLAGS="$htcacheclean_LTFLAGS $i"
      fi
    done
  fi


  if test "x$httxt2dbm_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting httxt2dbm_LTFLAGS to \"-static\""
    httxt2dbm_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $httxt2dbm_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to httxt2dbm_LTFLAGS"
        httxt2dbm_LTFLAGS="$httxt2dbm_LTFLAGS $i"
      fi
    done
  fi


  if test "x$fcgistarter_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting fcgistarter_LTFLAGS to \"-static\""
    fcgistarter_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $fcgistarter_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to fcgistarter_LTFLAGS"
        fcgistarter_LTFLAGS="$fcgistarter_LTFLAGS $i"
      fi
    done
  fi

fi

fi


# Check whether --enable-static-htpasswd was given.
if test ${enable_static_htpasswd+y}
then :
  enableval=$enable_static_htpasswd;
if test "$enableval" = "yes" ; then

  if test "x$htpasswd_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting htpasswd_LTFLAGS to \"-static\""
    htpasswd_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htpasswd_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htpasswd_LTFLAGS"
        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$htpasswd_LTFLAGS" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling htpasswd_LTFLAGS"
    htpasswd_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $htpasswd_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from htpasswd_LTFLAGS"
      htpasswd_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htpasswd_LTFLAGS"



# Check whether --enable-static-htdigest was given.
if test ${enable_static_htdigest+y}
then :
  enableval=$enable_static_htdigest;
if test "$enableval" = "yes" ; then

  if test "x$htdigest_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting htdigest_LTFLAGS to \"-static\""
    htdigest_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htdigest_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdigest_LTFLAGS"
        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$htdigest_LTFLAGS" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling htdigest_LTFLAGS"
    htdigest_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $htdigest_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from htdigest_LTFLAGS"
      htdigest_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdigest_LTFLAGS"



# Check whether --enable-static-rotatelogs was given.
if test ${enable_static_rotatelogs+y}
then :
  enableval=$enable_static_rotatelogs;
if test "$enableval" = "yes" ; then

  if test "x$rotatelogs_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting rotatelogs_LTFLAGS to \"-static\""
    rotatelogs_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $rotatelogs_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to rotatelogs_LTFLAGS"
        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$rotatelogs_LTFLAGS" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling rotatelogs_LTFLAGS"
    rotatelogs_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $rotatelogs_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from rotatelogs_LTFLAGS"
      rotatelogs_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rotatelogs_LTFLAGS"



# Check whether --enable-static-logresolve was given.
if test ${enable_static_logresolve+y}
then :
  enableval=$enable_static_logresolve;
if test "$enableval" = "yes" ; then

  if test "x$logresolve_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting logresolve_LTFLAGS to \"-static\""
    logresolve_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $logresolve_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to logresolve_LTFLAGS"
        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$logresolve_LTFLAGS" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling logresolve_LTFLAGS"
    logresolve_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $logresolve_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from logresolve_LTFLAGS"
      logresolve_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logresolve_LTFLAGS"



# Check whether --enable-static-htdbm was given.
if test ${enable_static_htdbm+y}
then :
  enableval=$enable_static_htdbm;
if test "$enableval" = "yes" ; then

  if test "x$htdbm_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting htdbm_LTFLAGS to \"-static\""
    htdbm_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htdbm_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdbm_LTFLAGS"
        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$htdbm_LTFLAGS" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling htdbm_LTFLAGS"
    htdbm_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $htdbm_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from htdbm_LTFLAGS"
      htdbm_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdbm_LTFLAGS"



# Check whether --enable-static-ab was given.
if test ${enable_static_ab+y}
then :
  enableval=$enable_static_ab;
if test "$enableval" = "yes" ; then

  if test "x$ab_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ab_LTFLAGS to \"-static\""
    ab_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_LTFLAGS"
        ab_LTFLAGS="$ab_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$ab_LTFLAGS" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling ab_LTFLAGS"
    ab_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $ab_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from ab_LTFLAGS"
      ab_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LTFLAGS"



# Check whether --enable-static-checkgid was given.
if test ${enable_static_checkgid+y}
then :
  enableval=$enable_static_checkgid;
if test "$enableval" = "yes" ; then

  if test "x$checkgid_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting checkgid_LTFLAGS to \"-static\""
    checkgid_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $checkgid_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to checkgid_LTFLAGS"
        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$checkgid_LTFLAGS" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling checkgid_LTFLAGS"
    checkgid_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $checkgid_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from checkgid_LTFLAGS"
      checkgid_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST checkgid_LTFLAGS"



# Check whether --enable-static-htcacheclean was given.
if test ${enable_static_htcacheclean+y}
then :
  enableval=$enable_static_htcacheclean;
if test "$enableval" = "yes" ; then

  if test "x$htcacheclean_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting htcacheclean_LTFLAGS to \"-static\""
    htcacheclean_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $htcacheclean_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htcacheclean_LTFLAGS"
        htcacheclean_LTFLAGS="$htcacheclean_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$htcacheclean_LTFLAGS" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling htcacheclean_LTFLAGS"
    htcacheclean_LTFLAGS=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $htcacheclean_LTFLAGS; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from htcacheclean_LTFLAGS"
      htcacheclean_LTFLAGS=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htcacheclean_LTFLAGS"



# Check whether --enable-static-httxt2dbm was given.
if test ${enable_static_httxt2dbm+y}
then :
  enableval=$enable_static_httxt2dbm;
if test "$enableval" = "yes" ; then

  if test "x$httxt2dbm_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting httxt2dbm_LTFLAGS to \"-static\""
    httxt2dbm_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $httxt2dbm_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to httxt2dbm_LTFLAGS"
        httxt2dbm_LTFLAGS="$httxt2dbm_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$httxt2dbm" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling httxt2dbm"
    httxt2dbm=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $httxt2dbm; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from httxt2dbm"
      httxt2dbm=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST httxt2dbm_LTFLAGS"



# Check whether --enable-static-fcgistarter was given.
if test ${enable_static_fcgistarter+y}
then :
  enableval=$enable_static_fcgistarter;
if test "$enableval" = "yes" ; then

  if test "x$fcgistarter_LTFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting fcgistarter_LTFLAGS to \"-static\""
    fcgistarter_LTFLAGS="-static"
  else
    apr_addto_bugger="-static"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $fcgistarter_LTFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to fcgistarter_LTFLAGS"
        fcgistarter_LTFLAGS="$fcgistarter_LTFLAGS $i"
      fi
    done
  fi

else

  if test "x$fcgistarter" = "x-static"; then
    test "x$silent" != "xyes" && echo "  nulling fcgistarter"
    fcgistarter=""
  else
    apr_new_bugger=""
    apr_removed=0
    for i in $fcgistarter; do
      if test "x$i" != "x-static"; then
        apr_new_bugger="$apr_new_bugger $i"
      else
        apr_removed=1
      fi
    done
    if test $apr_removed = "1"; then
      test "x$silent" != "xyes" && echo "  removed \"-static\" from fcgistarter"
      fcgistarter=$apr_new_bugger
    fi
  fi

fi

fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST fcgistarter_LTFLAGS"



# Configure or check which of the non-portable support programs can be enabled.

NONPORTABLE_SUPPORT=""
case $host in
    *mingw*)
        ;;
    *)
        NONPORTABLE_SUPPORT="checkgid fcgistarter"
        ;;
esac

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NONPORTABLE_SUPPORT"



# Configure the ulimit -n command used by apachectl.

case $host in
    *aix*)
        # this works in any locale, unlike the default command below, which
        # fails in a non-English locale if the hard limit is unlimited
        # since the display of the limit will translate "unlimited", but
        # ulimit only accepts English "unlimited" on input
        APACHECTL_ULIMIT="ulimit -S -n unlimited"
        ;;
    *alpha*-dec-osf*)
        # Tru64: -H is for setting, not retrieving
        APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
        ;;
    *)
        if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT >/dev/null 2>&1; then
            APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
        else
            APACHECTL_ULIMIT=""
        fi
        ;;
esac

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APACHECTL_ULIMIT"





  current_dir=http2
  modpath_current=modules/http2
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d http2 || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


http2_objs="mod_http2.lo h2_alt_svc.lo h2_bucket_beam.lo h2_bucket_eos.lo h2_config.lo h2_conn.lo h2_conn_io.lo h2_ctx.lo h2_filter.lo h2_from_h1.lo h2_h2.lo h2_headers.lo h2_mplx.lo h2_push.lo h2_request.lo h2_session.lo h2_stream.lo h2_switch.lo h2_task.lo h2_util.lo h2_workers.lo "





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_http2" >&5
printf %s "checking whether to enable mod_http2... " >&6; }
    # Check whether --enable-http2 was given.
if test ${enable_http2+y}
then :
  enableval=$enable_http2; force_http2=$enableval
else $as_nop
  enable_http2=most
fi

    _apmod_extra_msg=""
      case "$enable_http2" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_http2" = "static" -o "$enable_http2" = "shared"; then
    :
  elif test "$enable_http2" = "yes"; then
    enable_http2=$module_default
  elif test "$enable_http2" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_http2=$module_default
    else
      enable_http2=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_http2" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_http2=$module_default
    else
      enable_http2=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_http2" = "all" -o "$enable_http2" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_http2=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_http2=no
    fi
  elif test "$enable_http2" = "reallyall" -o "$enable_http2" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_http2" != "no" ; then
      enable_http2=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_http2=no
    fi
  else
    enable_http2=no
  fi
  if test "$enable_http2" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
printf %s "checking for OpenSSL... " >&6; }
if test ${ac_cv_openssl+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        ac_cv_openssl=no
    ap_openssl_found=""
    ap_openssl_base=""
    ap_openssl_libs=""
    ap_openssl_mod_cflags=""
    ap_openssl_mod_ldflags=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-provided OpenSSL base directory" >&5
printf %s "checking for user-provided OpenSSL base directory... " >&6; }

# Check whether --with-ssl was given.
if test ${with_ssl+y}
then :
  withval=$with_ssl;
            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
                ap_openssl_base="`cd $withval ; pwd`"
      fi

fi

    if test "x$ap_openssl_base" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_openssl_base" >&5
printf "%s\n" "$ap_openssl_base" >&6; }
    fi

        saved_CPPFLAGS="$CPPFLAGS"
    saved_LIBS="$LIBS"
    saved_LDFLAGS="$LDFLAGS"

        if test -n "$PKGCONFIG"; then
      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      if test "x$ap_openssl_base" != "x"; then
        if test -f "${ap_openssl_base}/lib/pkgconfig/openssl.pc"; then
                              PKG_CONFIG_PATH="${ap_openssl_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        elif test -f "${ap_openssl_base}/lib64/pkgconfig/openssl.pc"; then
                              PKG_CONFIG_PATH="${ap_openssl_base}/lib64/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        fi
      fi
      # Check whether --enable-ssl-staticlib-deps was given.
if test ${enable_ssl_staticlib_deps+y}
then :
  enableval=$enable_ssl_staticlib_deps;
        if test "$enableval" = "yes"; then
          PKGCONFIG_LIBOPTS="--static"
        fi

fi

      ap_openssl_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors openssl`"
      if test $? -eq 0; then
        ap_openssl_found="yes"
        pkglookup="`$PKGCONFIG --cflags-only-I openssl`"

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
    CPPFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
    MOD_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$ab_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"$pkglookup\""
    ab_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
        ab_CFLAGS="$ab_CFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L openssl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other openssl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
    fi

        if test "x$ap_openssl_base" != "x" -a "x$ap_openssl_found" = "x"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_openssl_base/include\""
    CPPFLAGS="-I$ap_openssl_base/include"
  else
    apr_addto_bugger="-I$ap_openssl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_openssl_base/include\""
    MOD_CFLAGS="-I$ap_openssl_base/include"
  else
    apr_addto_bugger="-I$ap_openssl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$ab_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"-I$ap_openssl_base/include\""
    ab_CFLAGS="-I$ap_openssl_base/include"
  else
    apr_addto_bugger="-I$ap_openssl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
        ab_CFLAGS="$ab_CFLAGS $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_openssl_base/lib\""
    LDFLAGS="-L$ap_openssl_base/lib"
  else
    apr_addto_bugger="-L$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_openssl_base/lib\""
    MOD_LDFLAGS="-L$ap_openssl_base/lib"
  else
    apr_addto_bugger="-L$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
    fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.8a" >&5
printf %s "checking for OpenSSL version >= 0.9.8a... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <openssl/opensslv.h>
int
main (void)
{

#if !defined(OPENSSL_VERSION_NUMBER)
#error "Missing OpenSSL version"
#endif
#if OPENSSL_VERSION_NUMBER < 0x0090801f
#error "Unsupported OpenSSL version " OPENSSL_VERSION_TEXT
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
printf "%s\n" "OK" >&6; }
       ac_cv_openssl=yes
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
printf "%s\n" "FAILED" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

    if test "x$ac_cv_openssl" = "xyes"; then
      ap_openssl_libs="${ap_openssl_libs:--lssl -lcrypto} `$apr_config --libs`"

  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_openssl_libs\""
    MOD_LDFLAGS="$ap_openssl_libs"
  else
    apr_addto_bugger="$ap_openssl_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_openssl_libs\""
    LIBS="$ap_openssl_libs"
  else
    apr_addto_bugger="$ap_openssl_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi


  test "x$silent" != "xyes" && echo "  forcing ab_LIBS to \"$MOD_LDFLAGS\""
  ab_LIBS="$MOD_LDFLAGS"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_CFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LIBS"



            liberrors=""
      ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_engine_h" = xyes
then :
  printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h

fi


  for ac_func in SSL_CTX_new
do :
  ac_fn_c_check_func "$LINENO" "SSL_CTX_new" "ac_cv_func_SSL_CTX_new"
if test "x$ac_cv_func_SSL_CTX_new" = xyes
then :
  printf "%s\n" "#define HAVE_SSL_CTX_NEW 1" >>confdefs.h

else $as_nop
  liberrors="yes"
fi

done
      ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
then :
  printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h

fi

      ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
if test "x$ac_cv_func_ENGINE_init" = xyes
then :
  printf "%s\n" "#define HAVE_ENGINE_INIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "ENGINE_load_builtin_engines" "ac_cv_func_ENGINE_load_builtin_engines"
if test "x$ac_cv_func_ENGINE_load_builtin_engines" = xyes
then :
  printf "%s\n" "#define HAVE_ENGINE_LOAD_BUILTIN_ENGINES 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
if test "x$ac_cv_func_RAND_egd" = xyes
then :
  printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h

fi

      if test "x$liberrors" != "x"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL libraries are unusable" >&5
printf "%s\n" "$as_me: WARNING: OpenSSL libraries are unusable" >&2;}
      fi
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL version is too old" >&5
printf "%s\n" "$as_me: WARNING: OpenSSL version is too old" >&2;}
    fi

        CPPFLAGS="$saved_CPPFLAGS"
    LIBS="$saved_LIBS"
    LDFLAGS="$saved_LDFLAGS"

        ap_openssl_mod_cflags=$MOD_CFLAGS
    ap_openssl_mod_ldflags=$MOD_LDFLAGS

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_openssl" >&5
printf "%s\n" "$ac_cv_openssl" >&6; }
  if test "x$ac_cv_openssl" = "xyes"; then

printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_openssl_mod_ldflags\""
    MOD_LDFLAGS="$ap_openssl_mod_ldflags"
  else
    apr_addto_bugger="$ap_openssl_mod_ldflags"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$ap_openssl_mod_cflags\""
    MOD_CFLAGS="$ap_openssl_mod_cflags"
  else
    apr_addto_bugger="$ap_openssl_mod_cflags"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi

  fi

    if test "$ac_cv_openssl" = "yes" ; then

  if test "x$MOD_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DH2_OPENSSL"\""
    MOD_CPPFLAGS=""-DH2_OPENSSL""
  else
    apr_addto_bugger=""-DH2_OPENSSL""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
      fi
    done
  fi

    fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2" >&5
printf %s "checking for nghttp2... " >&6; }
if test ${ac_cv_nghttp2+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        ac_cv_nghttp2=no
    ap_nghttp2_found=""
    ap_nghttp2_base=""
    ap_nghttp2_libs=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-provided nghttp2 base directory" >&5
printf %s "checking for user-provided nghttp2 base directory... " >&6; }

# Check whether --with-nghttp2 was given.
if test ${with_nghttp2+y}
then :
  withval=$with_nghttp2;
            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
                ap_nghttp2_base="`cd $withval ; pwd`"
      fi

fi

    if test "x$ap_nghttp2_base" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_nghttp2_base" >&5
printf "%s\n" "$ap_nghttp2_base" >&6; }
    fi

        saved_CPPFLAGS="$CPPFLAGS"
    saved_LIBS="$LIBS"
    saved_LDFLAGS="$LDFLAGS"

        if test -n "$PKGCONFIG"; then
      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config along $PKG_CONFIG_PATH" >&5
printf %s "checking for pkg-config along $PKG_CONFIG_PATH... " >&6; }
      if test "x$ap_nghttp2_base" != "x" ; then
        if test -f "${ap_nghttp2_base}/lib/pkgconfig/libnghttp2.pc"; then
                              PKG_CONFIG_PATH="${ap_nghttp2_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        elif test -f "${ap_nghttp2_base}/lib64/pkgconfig/libnghttp2.pc"; then
                              PKG_CONFIG_PATH="${ap_nghttp2_base}/lib64/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        fi
      fi
      # Check whether --enable-nghttp2-staticlib-deps was given.
if test ${enable_nghttp2_staticlib_deps+y}
then :
  enableval=$enable_nghttp2_staticlib_deps;
        if test "$enableval" = "yes"; then
          PKGCONFIG_LIBOPTS="--static"
        fi

fi

      ap_nghttp2_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors libnghttp2`"
      if test $? -eq 0; then
        ap_nghttp2_found="yes"
        pkglookup="`$PKGCONFIG --cflags-only-I libnghttp2`"

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
    CPPFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
    MOD_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L libnghttp2`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other libnghttp2`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
    fi

        if test "x$ap_nghttp2_base" != "x" -a "x$ap_nghttp2_found" = "x"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_nghttp2_base/include\""
    CPPFLAGS="-I$ap_nghttp2_base/include"
  else
    apr_addto_bugger="-I$ap_nghttp2_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_nghttp2_base/include\""
    MOD_CFLAGS="-I$ap_nghttp2_base/include"
  else
    apr_addto_bugger="-I$ap_nghttp2_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_nghttp2_base/lib\""
    LDFLAGS="-L$ap_nghttp2_base/lib"
  else
    apr_addto_bugger="-L$ap_nghttp2_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_nghttp2_base/lib\""
    MOD_LDFLAGS="-L$ap_nghttp2_base/lib"
  else
    apr_addto_bugger="-L$ap_nghttp2_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_nghttp2_base/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_nghttp2_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_nghttp2_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_nghttp2_base/lib\""
    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_nghttp2_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_nghttp2_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
    fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2 version >= 1.2.1" >&5
printf %s "checking for nghttp2 version >= 1.2.1... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <nghttp2/nghttp2ver.h>
int
main (void)
{

#if !defined(NGHTTP2_VERSION_NUM)
#error "Missing nghttp2 version"
#endif
#if NGHTTP2_VERSION_NUM < 0x010201
#error "Unsupported nghttp2 version " NGHTTP2_VERSION_TEXT
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
printf "%s\n" "OK" >&6; }
       ac_cv_nghttp2=yes
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
printf "%s\n" "FAILED" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

    if test "x$ac_cv_nghttp2" = "xyes"; then
      ap_nghttp2_libs="${ap_nghttp2_libs:--lnghttp2} `$apr_config --libs`"

  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_nghttp2_libs\""
    MOD_LDFLAGS="$ap_nghttp2_libs"
  else
    apr_addto_bugger="$ap_nghttp2_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_nghttp2_libs\""
    LIBS="$ap_nghttp2_libs"
  else
    apr_addto_bugger="$ap_nghttp2_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi


            liberrors=""
      ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h

fi


  for ac_func in nghttp2_session_server_new2
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_session_server_new2" "ac_cv_func_nghttp2_session_server_new2"
if test "x$ac_cv_func_nghttp2_session_server_new2" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_SESSION_SERVER_NEW2 1" >>confdefs.h

else $as_nop
  liberrors="yes"
fi

done
      if test "x$liberrors" != "x"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nghttp2 library is unusable" >&5
printf "%s\n" "$as_me: WARNING: nghttp2 library is unusable" >&2;}
      fi

  for ac_func in nghttp2_stream_get_weight
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_stream_get_weight" "ac_cv_func_nghttp2_stream_get_weight"
if test "x$ac_cv_func_nghttp2_stream_get_weight" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_STREAM_GET_WEIGHT 1" >>confdefs.h

else $as_nop
  liberrors="yes"
fi

done
      if test "x$liberrors" != "x"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nghttp2 version >= 1.3.0 is required" >&5
printf "%s\n" "$as_me: WARNING: nghttp2 version >= 1.3.0 is required" >&2;}
      fi

  for ac_func in nghttp2_session_change_stream_priority
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_session_change_stream_priority" "ac_cv_func_nghttp2_session_change_stream_priority"
if test "x$ac_cv_func_nghttp2_session_change_stream_priority" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_SESSION_CHANGE_STREAM_PRIORITY 1" >>confdefs.h

  if test "x$MOD_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DH2_NG2_CHANGE_PRIO"\""
    MOD_CPPFLAGS=""-DH2_NG2_CHANGE_PRIO""
  else
    apr_addto_bugger=""-DH2_NG2_CHANGE_PRIO""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
      fi
    done
  fi

fi

done

  for ac_func in nghttp2_session_callbacks_set_on_invalid_header_callback
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_session_callbacks_set_on_invalid_header_callback" "ac_cv_func_nghttp2_session_callbacks_set_on_invalid_header_callback"
if test "x$ac_cv_func_nghttp2_session_callbacks_set_on_invalid_header_callback" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_SESSION_CALLBACKS_SET_ON_INVALID_HEADER_CALLBACK 1" >>confdefs.h

  if test "x$MOD_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DH2_NG2_INVALID_HEADER_CB"\""
    MOD_CPPFLAGS=""-DH2_NG2_INVALID_HEADER_CB""
  else
    apr_addto_bugger=""-DH2_NG2_INVALID_HEADER_CB""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
      fi
    done
  fi

fi

done

  for ac_func in nghttp2_session_get_stream_local_window_size
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_session_get_stream_local_window_size" "ac_cv_func_nghttp2_session_get_stream_local_window_size"
if test "x$ac_cv_func_nghttp2_session_get_stream_local_window_size" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_SESSION_GET_STREAM_LOCAL_WINDOW_SIZE 1" >>confdefs.h

  if test "x$MOD_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DH2_NG2_LOCAL_WIN_SIZE"\""
    MOD_CPPFLAGS=""-DH2_NG2_LOCAL_WIN_SIZE""
  else
    apr_addto_bugger=""-DH2_NG2_LOCAL_WIN_SIZE""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
      fi
    done
  fi

fi

done
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nghttp2 version is too old" >&5
printf "%s\n" "$as_me: WARNING: nghttp2 version is too old" >&2;}
    fi

        CPPFLAGS="$saved_CPPFLAGS"
    LIBS="$saved_LIBS"
    LDFLAGS="$saved_LDFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nghttp2" >&5
printf "%s\n" "$ac_cv_nghttp2" >&6; }
  if test "x$ac_cv_nghttp2" = "xyes"; then

printf "%s\n" "#define HAVE_NGHTTP2 1" >>confdefs.h

  fi

    if test "$ac_cv_nghttp2" = "yes" ; then
        if test "x$enable_http2" = "xshared"; then
           # The only symbol which needs to be exported is the module
           # structure, so ask libtool to hide everything else:

  if test "x$MOD_HTTP2_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_HTTP2_LDADD to \"-export-symbols-regex http2_module\""
    MOD_HTTP2_LDADD="-export-symbols-regex http2_module"
  else
    apr_addto_bugger="-export-symbols-regex http2_module"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_HTTP2_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_HTTP2_LDADD"
        MOD_HTTP2_LDADD="$MOD_HTTP2_LDADD $i"
      fi
    done
  fi

        fi
    else
        enable_http2=no
    fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_http2" >&5
printf %s "checking whether to enable mod_http2... " >&6; }
            if test "$enable_http2" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_http2 has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_http2$_apmod_extra_msg" >&5
printf "%s\n" "$enable_http2$_apmod_extra_msg" >&6; }
  if test "$enable_http2" != "no"; then
    case "$enable_http2" in
    static*)
      MODLIST="$MODLIST http2"
      if test "http2" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES http2"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},http2"
      fi
      ;;
    esac


  if test -z "$http2_objs"; then
    objects="mod_http2.lo"
  else
    objects="$http2_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_http2.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_HTTP2_LDADD)
EOF
      if test ! -z "\$(MOD_HTTP2_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HTTP2_LDADD)\""
    AP_LIBS="\$(MOD_HTTP2_LDADD)"
  else
    apr_addto_bugger="\$(MOD_HTTP2_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_http2.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HTTP2_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HTTP2_LDADD"



  fi


# Ensure that other modules can pick up mod_http2.h
# icing: hold back for now until it is more stable
#APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])



proxy_http2_objs="mod_proxy_http2.lo h2_proxy_session.lo h2_proxy_util.lo "


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_http2" >&5
printf %s "checking whether to enable mod_proxy_http2... " >&6; }
    # Check whether --enable-proxy-http2 was given.
if test ${enable_proxy_http2+y}
then :
  enableval=$enable_proxy_http2; force_proxy_http2=$enableval
else $as_nop
  enable_proxy_http2=no
fi

    _apmod_extra_msg=""
      case "$enable_proxy_http2" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_proxy_http2" = "static" -o "$enable_proxy_http2" = "shared"; then
    :
  elif test "$enable_proxy_http2" = "yes"; then
    enable_proxy_http2=$module_default
  elif test "$enable_proxy_http2" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_http2=$module_default
    else
      enable_proxy_http2=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_http2" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_proxy_http2=$module_default
    else
      enable_proxy_http2=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_proxy_http2" = "all" -o "$enable_proxy_http2" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_proxy_http2=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_http2=no
    fi
  elif test "$enable_proxy_http2" = "reallyall" -o "$enable_proxy_http2" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_proxy_http2" != "no" ; then
      enable_proxy_http2=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_proxy_http2=no
    fi
  else
    enable_proxy_http2=no
  fi
  if test "$enable_proxy_http2" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy" = "no" ; then
                              enable_proxy_http2=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy is disabled but required for mod_proxy_http2\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy is disabled but required for mod_proxy_http2\"" >&2;}
                            elif test "$enable_proxy_http2" = "static" && test "$enable_proxy" != "static" ; then
                              enable_proxy_http2=$enable_proxy
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_proxy_http2 shared because mod_proxy is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_proxy_http2 shared because mod_proxy is built shared\"" >&2;}
                            else


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2" >&5
printf %s "checking for nghttp2... " >&6; }
if test ${ac_cv_nghttp2+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        ac_cv_nghttp2=no
    ap_nghttp2_found=""
    ap_nghttp2_base=""
    ap_nghttp2_libs=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-provided nghttp2 base directory" >&5
printf %s "checking for user-provided nghttp2 base directory... " >&6; }

# Check whether --with-nghttp2 was given.
if test ${with_nghttp2+y}
then :
  withval=$with_nghttp2;
            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
                ap_nghttp2_base="`cd $withval ; pwd`"
      fi

fi

    if test "x$ap_nghttp2_base" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_nghttp2_base" >&5
printf "%s\n" "$ap_nghttp2_base" >&6; }
    fi

        saved_CPPFLAGS="$CPPFLAGS"
    saved_LIBS="$LIBS"
    saved_LDFLAGS="$LDFLAGS"

        if test -n "$PKGCONFIG"; then
      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config along $PKG_CONFIG_PATH" >&5
printf %s "checking for pkg-config along $PKG_CONFIG_PATH... " >&6; }
      if test "x$ap_nghttp2_base" != "x" ; then
        if test -f "${ap_nghttp2_base}/lib/pkgconfig/libnghttp2.pc"; then
                              PKG_CONFIG_PATH="${ap_nghttp2_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        elif test -f "${ap_nghttp2_base}/lib64/pkgconfig/libnghttp2.pc"; then
                              PKG_CONFIG_PATH="${ap_nghttp2_base}/lib64/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        fi
      fi
      # Check whether --enable-nghttp2-staticlib-deps was given.
if test ${enable_nghttp2_staticlib_deps+y}
then :
  enableval=$enable_nghttp2_staticlib_deps;
        if test "$enableval" = "yes"; then
          PKGCONFIG_LIBOPTS="--static"
        fi

fi

      ap_nghttp2_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors libnghttp2`"
      if test $? -eq 0; then
        ap_nghttp2_found="yes"
        pkglookup="`$PKGCONFIG --cflags-only-I libnghttp2`"

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
    CPPFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
    MOD_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L libnghttp2`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other libnghttp2`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
    fi

        if test "x$ap_nghttp2_base" != "x" -a "x$ap_nghttp2_found" = "x"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_nghttp2_base/include\""
    CPPFLAGS="-I$ap_nghttp2_base/include"
  else
    apr_addto_bugger="-I$ap_nghttp2_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_nghttp2_base/include\""
    MOD_CFLAGS="-I$ap_nghttp2_base/include"
  else
    apr_addto_bugger="-I$ap_nghttp2_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_nghttp2_base/lib\""
    LDFLAGS="-L$ap_nghttp2_base/lib"
  else
    apr_addto_bugger="-L$ap_nghttp2_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_nghttp2_base/lib\""
    MOD_LDFLAGS="-L$ap_nghttp2_base/lib"
  else
    apr_addto_bugger="-L$ap_nghttp2_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_nghttp2_base/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_nghttp2_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_nghttp2_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_nghttp2_base/lib\""
    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_nghttp2_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_nghttp2_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
    fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2 version >= 1.2.1" >&5
printf %s "checking for nghttp2 version >= 1.2.1... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <nghttp2/nghttp2ver.h>
int
main (void)
{

#if !defined(NGHTTP2_VERSION_NUM)
#error "Missing nghttp2 version"
#endif
#if NGHTTP2_VERSION_NUM < 0x010201
#error "Unsupported nghttp2 version " NGHTTP2_VERSION_TEXT
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
printf "%s\n" "OK" >&6; }
       ac_cv_nghttp2=yes
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
printf "%s\n" "FAILED" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

    if test "x$ac_cv_nghttp2" = "xyes"; then
      ap_nghttp2_libs="${ap_nghttp2_libs:--lnghttp2} `$apr_config --libs`"

  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_nghttp2_libs\""
    MOD_LDFLAGS="$ap_nghttp2_libs"
  else
    apr_addto_bugger="$ap_nghttp2_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_nghttp2_libs\""
    LIBS="$ap_nghttp2_libs"
  else
    apr_addto_bugger="$ap_nghttp2_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi


            liberrors=""
      ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h

fi


  for ac_func in nghttp2_session_server_new2
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_session_server_new2" "ac_cv_func_nghttp2_session_server_new2"
if test "x$ac_cv_func_nghttp2_session_server_new2" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_SESSION_SERVER_NEW2 1" >>confdefs.h

else $as_nop
  liberrors="yes"
fi

done
      if test "x$liberrors" != "x"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nghttp2 library is unusable" >&5
printf "%s\n" "$as_me: WARNING: nghttp2 library is unusable" >&2;}
      fi

  for ac_func in nghttp2_stream_get_weight
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_stream_get_weight" "ac_cv_func_nghttp2_stream_get_weight"
if test "x$ac_cv_func_nghttp2_stream_get_weight" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_STREAM_GET_WEIGHT 1" >>confdefs.h

else $as_nop
  liberrors="yes"
fi

done
      if test "x$liberrors" != "x"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nghttp2 version >= 1.3.0 is required" >&5
printf "%s\n" "$as_me: WARNING: nghttp2 version >= 1.3.0 is required" >&2;}
      fi

  for ac_func in nghttp2_session_change_stream_priority
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_session_change_stream_priority" "ac_cv_func_nghttp2_session_change_stream_priority"
if test "x$ac_cv_func_nghttp2_session_change_stream_priority" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_SESSION_CHANGE_STREAM_PRIORITY 1" >>confdefs.h

  if test "x$MOD_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DH2_NG2_CHANGE_PRIO"\""
    MOD_CPPFLAGS=""-DH2_NG2_CHANGE_PRIO""
  else
    apr_addto_bugger=""-DH2_NG2_CHANGE_PRIO""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
      fi
    done
  fi

fi

done

  for ac_func in nghttp2_session_callbacks_set_on_invalid_header_callback
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_session_callbacks_set_on_invalid_header_callback" "ac_cv_func_nghttp2_session_callbacks_set_on_invalid_header_callback"
if test "x$ac_cv_func_nghttp2_session_callbacks_set_on_invalid_header_callback" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_SESSION_CALLBACKS_SET_ON_INVALID_HEADER_CALLBACK 1" >>confdefs.h

  if test "x$MOD_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DH2_NG2_INVALID_HEADER_CB"\""
    MOD_CPPFLAGS=""-DH2_NG2_INVALID_HEADER_CB""
  else
    apr_addto_bugger=""-DH2_NG2_INVALID_HEADER_CB""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
      fi
    done
  fi

fi

done

  for ac_func in nghttp2_session_get_stream_local_window_size
do :
  ac_fn_c_check_func "$LINENO" "nghttp2_session_get_stream_local_window_size" "ac_cv_func_nghttp2_session_get_stream_local_window_size"
if test "x$ac_cv_func_nghttp2_session_get_stream_local_window_size" = xyes
then :
  printf "%s\n" "#define HAVE_NGHTTP2_SESSION_GET_STREAM_LOCAL_WINDOW_SIZE 1" >>confdefs.h

  if test "x$MOD_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DH2_NG2_LOCAL_WIN_SIZE"\""
    MOD_CPPFLAGS=""-DH2_NG2_LOCAL_WIN_SIZE""
  else
    apr_addto_bugger=""-DH2_NG2_LOCAL_WIN_SIZE""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
      fi
    done
  fi

fi

done
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nghttp2 version is too old" >&5
printf "%s\n" "$as_me: WARNING: nghttp2 version is too old" >&2;}
    fi

        CPPFLAGS="$saved_CPPFLAGS"
    LIBS="$saved_LIBS"
    LDFLAGS="$saved_LDFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nghttp2" >&5
printf "%s\n" "$ac_cv_nghttp2" >&6; }
  if test "x$ac_cv_nghttp2" = "xyes"; then

printf "%s\n" "#define HAVE_NGHTTP2 1" >>confdefs.h

  fi

    if test "$ac_cv_nghttp2" = "yes" ; then
        if test "x$enable_http2" = "xshared"; then
           # The only symbol which needs to be exported is the module
           # structure, so ask libtool to hide everything else:

  if test "x$MOD_PROXY_HTTP2_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_PROXY_HTTP2_LDADD to \"-export-symbols-regex proxy_http2_module\""
    MOD_PROXY_HTTP2_LDADD="-export-symbols-regex proxy_http2_module"
  else
    apr_addto_bugger="-export-symbols-regex proxy_http2_module"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_PROXY_HTTP2_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_PROXY_HTTP2_LDADD"
        MOD_PROXY_HTTP2_LDADD="$MOD_PROXY_HTTP2_LDADD $i"
      fi
    done
  fi

        fi
    else
        enable_proxy_http2=no
    fi

            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_proxy_http2" >&5
printf %s "checking whether to enable mod_proxy_http2... " >&6; }
            if test "$enable_proxy_http2" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_proxy_http2 has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_proxy_http2$_apmod_extra_msg" >&5
printf "%s\n" "$enable_proxy_http2$_apmod_extra_msg" >&6; }
  if test "$enable_proxy_http2" != "no"; then
    case "$enable_proxy_http2" in
    static*)
      MODLIST="$MODLIST proxy_http2"
      if test "proxy_http2" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES proxy_http2"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},proxy_http2"
      fi
      ;;
    esac


  if test -z "$proxy_http2_objs"; then
    objects="mod_proxy_http2.lo"
  else
    objects="$proxy_http2_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_proxy_http2.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PROXY_HTTP2_LDADD)
EOF
      if test ! -z "\$(MOD_PROXY_HTTP2_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PROXY_HTTP2_LDADD)\""
    AP_LIBS="\$(MOD_PROXY_HTTP2_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PROXY_HTTP2_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_proxy_http2.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HTTP2_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTTP2_LDADD"



  fi




  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"












  current_dir=md
  modpath_current=modules/md
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d md || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


md_objs="md_acme.lo md_acme_acct.lo md_acme_authz.lo md_acme_drive.lo md_acmev2_drive.lo md_acme_order.lo md_core.lo md_curl.lo md_crypt.lo md_event.lo md_http.lo md_json.lo md_jws.lo md_log.lo md_ocsp.lo md_result.lo md_reg.lo md_status.lo md_store.lo md_store_fs.lo md_time.lo md_util.lo mod_md.lo mod_md_config.lo mod_md_drive.lo mod_md_ocsp.lo mod_md_os.lo mod_md_status.lo "

# Ensure that other modules can pick up mod_md.h

  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_md" >&5
printf %s "checking whether to enable mod_md... " >&6; }
    # Check whether --enable-md was given.
if test ${enable_md+y}
then :
  enableval=$enable_md; force_md=$enableval
else $as_nop
  enable_md=most
fi

    _apmod_extra_msg=""
      case "$enable_md" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_md" = "static" -o "$enable_md" = "shared"; then
    :
  elif test "$enable_md" = "yes"; then
    enable_md=$module_default
  elif test "$enable_md" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_md=$module_default
    else
      enable_md=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_md" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_md=$module_default
    else
      enable_md=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_md" = "all" -o "$enable_md" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_md=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_md=no
    fi
  elif test "$enable_md" = "reallyall" -o "$enable_md" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_md" != "no" ; then
      enable_md=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_md=no
    fi
  else
    enable_md=no
  fi
  if test "$enable_md" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
printf %s "checking for OpenSSL... " >&6; }
if test ${ac_cv_openssl+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        ac_cv_openssl=no
    ap_openssl_found=""
    ap_openssl_base=""
    ap_openssl_libs=""
    ap_openssl_mod_cflags=""
    ap_openssl_mod_ldflags=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-provided OpenSSL base directory" >&5
printf %s "checking for user-provided OpenSSL base directory... " >&6; }

# Check whether --with-ssl was given.
if test ${with_ssl+y}
then :
  withval=$with_ssl;
            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
                ap_openssl_base="`cd $withval ; pwd`"
      fi

fi

    if test "x$ap_openssl_base" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_openssl_base" >&5
printf "%s\n" "$ap_openssl_base" >&6; }
    fi

        saved_CPPFLAGS="$CPPFLAGS"
    saved_LIBS="$LIBS"
    saved_LDFLAGS="$LDFLAGS"

        if test -n "$PKGCONFIG"; then
      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      if test "x$ap_openssl_base" != "x"; then
        if test -f "${ap_openssl_base}/lib/pkgconfig/openssl.pc"; then
                              PKG_CONFIG_PATH="${ap_openssl_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        elif test -f "${ap_openssl_base}/lib64/pkgconfig/openssl.pc"; then
                              PKG_CONFIG_PATH="${ap_openssl_base}/lib64/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        fi
      fi
      # Check whether --enable-ssl-staticlib-deps was given.
if test ${enable_ssl_staticlib_deps+y}
then :
  enableval=$enable_ssl_staticlib_deps;
        if test "$enableval" = "yes"; then
          PKGCONFIG_LIBOPTS="--static"
        fi

fi

      ap_openssl_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors openssl`"
      if test $? -eq 0; then
        ap_openssl_found="yes"
        pkglookup="`$PKGCONFIG --cflags-only-I openssl`"

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
    CPPFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
    MOD_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$ab_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"$pkglookup\""
    ab_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
        ab_CFLAGS="$ab_CFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L openssl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other openssl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
    fi

        if test "x$ap_openssl_base" != "x" -a "x$ap_openssl_found" = "x"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_openssl_base/include\""
    CPPFLAGS="-I$ap_openssl_base/include"
  else
    apr_addto_bugger="-I$ap_openssl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_openssl_base/include\""
    MOD_CFLAGS="-I$ap_openssl_base/include"
  else
    apr_addto_bugger="-I$ap_openssl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$ab_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting ab_CFLAGS to \"-I$ap_openssl_base/include\""
    ab_CFLAGS="-I$ap_openssl_base/include"
  else
    apr_addto_bugger="-I$ap_openssl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $ab_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_CFLAGS"
        ab_CFLAGS="$ab_CFLAGS $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_openssl_base/lib\""
    LDFLAGS="-L$ap_openssl_base/lib"
  else
    apr_addto_bugger="-L$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_openssl_base/lib\""
    MOD_LDFLAGS="-L$ap_openssl_base/lib"
  else
    apr_addto_bugger="-L$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_openssl_base/lib\""
    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_openssl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
    fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.8a" >&5
printf %s "checking for OpenSSL version >= 0.9.8a... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <openssl/opensslv.h>
int
main (void)
{

#if !defined(OPENSSL_VERSION_NUMBER)
#error "Missing OpenSSL version"
#endif
#if OPENSSL_VERSION_NUMBER < 0x0090801f
#error "Unsupported OpenSSL version " OPENSSL_VERSION_TEXT
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
printf "%s\n" "OK" >&6; }
       ac_cv_openssl=yes
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
printf "%s\n" "FAILED" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

    if test "x$ac_cv_openssl" = "xyes"; then
      ap_openssl_libs="${ap_openssl_libs:--lssl -lcrypto} `$apr_config --libs`"

  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_openssl_libs\""
    MOD_LDFLAGS="$ap_openssl_libs"
  else
    apr_addto_bugger="$ap_openssl_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_openssl_libs\""
    LIBS="$ap_openssl_libs"
  else
    apr_addto_bugger="$ap_openssl_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi


  test "x$silent" != "xyes" && echo "  forcing ab_LIBS to \"$MOD_LDFLAGS\""
  ab_LIBS="$MOD_LDFLAGS"


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_CFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LIBS"



            liberrors=""
      ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_engine_h" = xyes
then :
  printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h

fi


  for ac_func in SSL_CTX_new
do :
  ac_fn_c_check_func "$LINENO" "SSL_CTX_new" "ac_cv_func_SSL_CTX_new"
if test "x$ac_cv_func_SSL_CTX_new" = xyes
then :
  printf "%s\n" "#define HAVE_SSL_CTX_NEW 1" >>confdefs.h

else $as_nop
  liberrors="yes"
fi

done
      ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
then :
  printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h

fi

      ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
if test "x$ac_cv_func_ENGINE_init" = xyes
then :
  printf "%s\n" "#define HAVE_ENGINE_INIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "ENGINE_load_builtin_engines" "ac_cv_func_ENGINE_load_builtin_engines"
if test "x$ac_cv_func_ENGINE_load_builtin_engines" = xyes
then :
  printf "%s\n" "#define HAVE_ENGINE_LOAD_BUILTIN_ENGINES 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
if test "x$ac_cv_func_RAND_egd" = xyes
then :
  printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h

fi

      if test "x$liberrors" != "x"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL libraries are unusable" >&5
printf "%s\n" "$as_me: WARNING: OpenSSL libraries are unusable" >&2;}
      fi
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL version is too old" >&5
printf "%s\n" "$as_me: WARNING: OpenSSL version is too old" >&2;}
    fi

        CPPFLAGS="$saved_CPPFLAGS"
    LIBS="$saved_LIBS"
    LDFLAGS="$saved_LDFLAGS"

        ap_openssl_mod_cflags=$MOD_CFLAGS
    ap_openssl_mod_ldflags=$MOD_LDFLAGS

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_openssl" >&5
printf "%s\n" "$ac_cv_openssl" >&6; }
  if test "x$ac_cv_openssl" = "xyes"; then

printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_openssl_mod_ldflags\""
    MOD_LDFLAGS="$ap_openssl_mod_ldflags"
  else
    apr_addto_bugger="$ap_openssl_mod_ldflags"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$ap_openssl_mod_cflags\""
    MOD_CFLAGS="$ap_openssl_mod_cflags"
  else
    apr_addto_bugger="$ap_openssl_mod_cflags"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi

  fi

    if test "x$ac_cv_openssl" = "xno" ; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libssl (or compatible) not found" >&5
printf "%s\n" "$as_me: WARNING: libssl (or compatible) not found" >&2;}
        enable_md=no
    fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
printf %s "checking for jansson... " >&6; }
if test ${ac_cv_jansson+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        ac_cv_jansson=no
    ap_jansson_found=""
    ap_jansson_base=""
    ap_jansson_libs=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-provided jansson base directory" >&5
printf %s "checking for user-provided jansson base directory... " >&6; }

# Check whether --with-jansson was given.
if test ${with_jansson+y}
then :
  withval=$with_jansson;
            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
                ap_jansson_base="`cd $withval ; pwd`"
      fi

fi

    if test "x$ap_jansson_base" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_jansson_base" >&5
printf "%s\n" "$ap_jansson_base" >&6; }
    fi

        saved_CPPFLAGS="$CPPFLAGS"
    saved_LIBS="$LIBS"
    saved_LDFLAGS="$LDFLAGS"

        if test -n "$PKGCONFIG"; then
      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config along $PKG_CONFIG_PATH" >&5
printf %s "checking for pkg-config along $PKG_CONFIG_PATH... " >&6; }
      if test "x$ap_jansson_base" != "x" ; then
        if test -f "${ap_jansson_base}/lib/pkgconfig/libjansson.pc"; then
                              PKG_CONFIG_PATH="${ap_jansson_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        elif test -f "${ap_jansson_base}/lib64/pkgconfig/libjansson.pc"; then
                              PKG_CONFIG_PATH="${ap_jansson_base}/lib64/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        fi
      fi
      # Check whether --enable-jansson-staticlib-deps was given.
if test ${enable_jansson_staticlib_deps+y}
then :
  enableval=$enable_jansson_staticlib_deps;
        if test "$enableval" = "yes"; then
          PKGCONFIG_LIBOPTS="--static"
        fi

fi

      ap_jansson_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors libjansson`"
      if test $? -eq 0; then
        ap_jansson_found="yes"
        pkglookup="`$PKGCONFIG --cflags-only-I libjansson`"

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
    CPPFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
    MOD_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L libjansson`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other libjansson`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
    fi

        if test "x$ap_jansson_base" != "x" -a "x$ap_jansson_found" = "x"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_jansson_base/include\""
    CPPFLAGS="-I$ap_jansson_base/include"
  else
    apr_addto_bugger="-I$ap_jansson_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_jansson_base/include\""
    MOD_CFLAGS="-I$ap_jansson_base/include"
  else
    apr_addto_bugger="-I$ap_jansson_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_jansson_base/lib\""
    LDFLAGS="-L$ap_jansson_base/lib"
  else
    apr_addto_bugger="-L$ap_jansson_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_jansson_base/lib\""
    MOD_LDFLAGS="-L$ap_jansson_base/lib"
  else
    apr_addto_bugger="-L$ap_jansson_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_jansson_base/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_jansson_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_jansson_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_jansson_base/lib\""
    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_jansson_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_jansson_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
    fi

    # attempts to include jansson.h fail me. So lets make sure we can at least
    # include its other header file
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <jansson_config.h>
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
printf "%s\n" "OK" >&6; }
       ac_cv_jansson=yes
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
printf "%s\n" "FAILED" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

    if test "x$ac_cv_jansson" = "xyes"; then
      ap_jansson_libs="${ap_jansson_libs:--ljansson} `$apr_config --libs`"

  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_jansson_libs\""
    MOD_LDFLAGS="$ap_jansson_libs"
  else
    apr_addto_bugger="$ap_jansson_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_jansson_libs\""
    LIBS="$ap_jansson_libs"
  else
    apr_addto_bugger="$ap_jansson_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi

    fi

        CPPFLAGS="$saved_CPPFLAGS"
    LIBS="$saved_LIBS"
    LDFLAGS="$saved_LDFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jansson" >&5
printf "%s\n" "$ac_cv_jansson" >&6; }
  if test "x$ac_cv_jansson" = "xyes"; then

printf "%s\n" "#define HAVE_JANSSON 1" >>confdefs.h

  fi

    if test "x$ac_cv_jansson" != "xyes" ; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libjansson not found" >&5
printf "%s\n" "$as_me: WARNING: libjansson not found" >&2;}
        enable_md=no
    fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl" >&5
printf %s "checking for curl... " >&6; }
if test ${ac_cv_curl+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        ac_cv_curl=no
    ap_curl_found=""
    ap_curl_base=""
    ap_curl_libs=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-provided curl base directory" >&5
printf %s "checking for user-provided curl base directory... " >&6; }

# Check whether --with-curl was given.
if test ${with_curl+y}
then :
  withval=$with_curl;
            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
                ap_curl_base="`cd $withval ; pwd`"
      fi

fi

    if test "x$ap_curl_base" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_curl_base" >&5
printf "%s\n" "$ap_curl_base" >&6; }
    fi

        saved_CPPFLAGS="$CPPFLAGS"
    saved_LIBS="$LIBS"
    saved_LDFLAGS="$LDFLAGS"

        if test -n "$PKGCONFIG"; then
      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config along $PKG_CONFIG_PATH" >&5
printf %s "checking for pkg-config along $PKG_CONFIG_PATH... " >&6; }
      if test "x$ap_curl_base" != "x" ; then
        if test -f "${ap_curl_base}/lib/pkgconfig/libcurl.pc"; then
                              PKG_CONFIG_PATH="${ap_curl_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        elif test -f "${ap_curl_base}/lib64/pkgconfig/libcurl.pc"; then
                              PKG_CONFIG_PATH="${ap_curl_base}/lib64/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        fi
      fi
      # Check whether --enable-curl-staticlib-deps was given.
if test ${enable_curl_staticlib_deps+y}
then :
  enableval=$enable_curl_staticlib_deps;
        if test "$enableval" = "yes"; then
          PKGCONFIG_LIBOPTS="--static"
        fi

fi

      ap_curl_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors libcurl`"
      if test $? -eq 0; then
        ap_curl_found="yes"
        pkglookup="`$PKGCONFIG --cflags-only-I libcurl`"

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
    CPPFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
    MOD_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L libcurl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other libcurl`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
    fi

        if test "x$ap_curl_base" != "x" -a "x$ap_curl_found" = "x"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_curl_base/include\""
    CPPFLAGS="-I$ap_curl_base/include"
  else
    apr_addto_bugger="-I$ap_curl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_curl_base/include\""
    MOD_CFLAGS="-I$ap_curl_base/include"
  else
    apr_addto_bugger="-I$ap_curl_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_curl_base/lib\""
    LDFLAGS="-L$ap_curl_base/lib"
  else
    apr_addto_bugger="-L$ap_curl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_curl_base/lib\""
    MOD_LDFLAGS="-L$ap_curl_base/lib"
  else
    apr_addto_bugger="-L$ap_curl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_curl_base/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_curl_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_curl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_curl_base/lib\""
    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_curl_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_curl_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
    fi

    ac_fn_c_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
if test "x$ac_cv_header_curl_curl_h" = xyes
then :
  printf "%s\n" "#define HAVE_CURL_CURL_H 1" >>confdefs.h

fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl version >= 7.29" >&5
printf %s "checking for curl version >= 7.29... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <curl/curlver.h>
int
main (void)
{

#if !defined(LIBCURL_VERSION_MAJOR)
#error "Missing libcurl version"
#endif
#if LIBCURL_VERSION_MAJOR < 7
#error "Unsupported libcurl version " LIBCURL_VERSION
#endif
#if LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR < 29
#error "Unsupported libcurl version " LIBCURL_VERSION
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
printf "%s\n" "OK" >&6; }
       ac_cv_curl=yes
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
printf "%s\n" "FAILED" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

    if test "x$ac_cv_curl" = "xyes"; then
      ap_curl_libs="${ap_curl_libs:--lcurl} `$apr_config --libs`"

  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_curl_libs\""
    MOD_LDFLAGS="$ap_curl_libs"
  else
    apr_addto_bugger="$ap_curl_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$ap_curl_libs\""
    LIBS="$ap_curl_libs"
  else
    apr_addto_bugger="$ap_curl_libs"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
        LIBS="$LIBS $i"
      fi
    done
  fi

    fi

        CPPFLAGS="$saved_CPPFLAGS"
    LIBS="$saved_LIBS"
    LDFLAGS="$saved_LDFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_curl" >&5
printf "%s\n" "$ac_cv_curl" >&6; }
  if test "x$ac_cv_curl" = "xyes"; then

printf "%s\n" "#define HAVE_CURL 1" >>confdefs.h

  fi

    if test "x$ac_cv_curl" != "xyes" ; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libcurl not found" >&5
printf "%s\n" "$as_me: WARNING: libcurl not found" >&2;}
        enable_md=no
    fi


  for ac_func in arc4random_buf
do :
  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
if test "x$ac_cv_func_arc4random_buf" = xyes
then :
  printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h

  if test "x$MOD_CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CPPFLAGS to \""-DMD_HAVE_ARC4RANDOM"\""
    MOD_CPPFLAGS=""-DMD_HAVE_ARC4RANDOM""
  else
    apr_addto_bugger=""-DMD_HAVE_ARC4RANDOM""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CPPFLAGS"
        MOD_CPPFLAGS="$MOD_CPPFLAGS $i"
      fi
    done
  fi

fi

done

    if test "x$enable_md" = "xshared"; then

  if test "x$MOD_MD_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_MD_LDADD to \"-export-symbols-regex md_module\""
    MOD_MD_LDADD="-export-symbols-regex md_module"
  else
    apr_addto_bugger="-export-symbols-regex md_module"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_MD_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_MD_LDADD"
        MOD_MD_LDADD="$MOD_MD_LDADD $i"
      fi
    done
  fi

    fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_md" >&5
printf %s "checking whether to enable mod_md... " >&6; }
            if test "$enable_md" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_md has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_md$_apmod_extra_msg" >&5
printf "%s\n" "$enable_md$_apmod_extra_msg" >&6; }
  if test "$enable_md" != "no"; then
    case "$enable_md" in
    static*)
      MODLIST="$MODLIST md"
      if test "md" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES md"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},md"
      fi
      ;;
    esac


  if test -z "$md_objs"; then
    objects="mod_md.lo"
  else
    objects="$md_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_md.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_MD_LDADD)
EOF
      if test ! -z "\$(MOD_MD_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MD_LDADD)\""
    AP_LIBS="\$(MOD_MD_LDADD)"
  else
    apr_addto_bugger="\$(MOD_MD_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_md.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MD_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MD_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=proxy/balancers
  modpath_current=modules/proxy/balancers
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d proxy/balancers || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_byrequests" >&5
printf %s "checking whether to enable mod_lbmethod_byrequests... " >&6; }
    # Check whether --enable-lbmethod-byrequests was given.
if test ${enable_lbmethod_byrequests+y}
then :
  enableval=$enable_lbmethod_byrequests; force_lbmethod_byrequests=$enableval
else $as_nop
  enable_lbmethod_byrequests=$enable_proxy_balancer
fi

    _apmod_extra_msg=""
      case "$enable_lbmethod_byrequests" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_lbmethod_byrequests" = "static" -o "$enable_lbmethod_byrequests" = "shared"; then
    :
  elif test "$enable_lbmethod_byrequests" = "yes"; then
    enable_lbmethod_byrequests=$module_default
  elif test "$enable_lbmethod_byrequests" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_byrequests=$module_default
    else
      enable_lbmethod_byrequests=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_byrequests" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_lbmethod_byrequests=$module_default
    else
      enable_lbmethod_byrequests=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_byrequests" = "all" -o "$enable_lbmethod_byrequests" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_byrequests=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_byrequests=no
    fi
  elif test "$enable_lbmethod_byrequests" = "reallyall" -o "$enable_lbmethod_byrequests" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_lbmethod_byrequests" != "no" ; then
      enable_lbmethod_byrequests=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_byrequests=no
    fi
  else
    enable_lbmethod_byrequests=no
  fi
  if test "$enable_lbmethod_byrequests" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy_balancer" = "no" ; then
                              enable_lbmethod_byrequests=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_byrequests\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_byrequests\"" >&2;}
                            elif test "$enable_lbmethod_byrequests" = "static" && test "$enable_proxy_balancer" != "static" ; then
                              enable_lbmethod_byrequests=$enable_proxy_balancer
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_lbmethod_byrequests shared because mod_proxy_balancer is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_lbmethod_byrequests shared because mod_proxy_balancer is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_byrequests" >&5
printf %s "checking whether to enable mod_lbmethod_byrequests... " >&6; }
            if test "$enable_lbmethod_byrequests" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_lbmethod_byrequests has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_byrequests$_apmod_extra_msg" >&5
printf "%s\n" "$enable_lbmethod_byrequests$_apmod_extra_msg" >&6; }
  if test "$enable_lbmethod_byrequests" != "no"; then
    case "$enable_lbmethod_byrequests" in
    static*)
      MODLIST="$MODLIST lbmethod_byrequests"
      if test "lbmethod_byrequests" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES lbmethod_byrequests"
      if test "$enable_proxy_balancer" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_byrequests"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_lbmethod_byrequests.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_lbmethod_byrequests.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYREQUESTS_LDADD)
EOF
      if test ! -z "\$(MOD_LBMETHOD_BYREQUESTS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYREQUESTS_LDADD)\""
    AP_LIBS="\$(MOD_LBMETHOD_BYREQUESTS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LBMETHOD_BYREQUESTS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_lbmethod_byrequests.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYREQUESTS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYREQUESTS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bytraffic" >&5
printf %s "checking whether to enable mod_lbmethod_bytraffic... " >&6; }
    # Check whether --enable-lbmethod-bytraffic was given.
if test ${enable_lbmethod_bytraffic+y}
then :
  enableval=$enable_lbmethod_bytraffic; force_lbmethod_bytraffic=$enableval
else $as_nop
  enable_lbmethod_bytraffic=$enable_proxy_balancer
fi

    _apmod_extra_msg=""
      case "$enable_lbmethod_bytraffic" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_lbmethod_bytraffic" = "static" -o "$enable_lbmethod_bytraffic" = "shared"; then
    :
  elif test "$enable_lbmethod_bytraffic" = "yes"; then
    enable_lbmethod_bytraffic=$module_default
  elif test "$enable_lbmethod_bytraffic" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_bytraffic=$module_default
    else
      enable_lbmethod_bytraffic=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_bytraffic" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_lbmethod_bytraffic=$module_default
    else
      enable_lbmethod_bytraffic=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_bytraffic" = "all" -o "$enable_lbmethod_bytraffic" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_bytraffic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_bytraffic=no
    fi
  elif test "$enable_lbmethod_bytraffic" = "reallyall" -o "$enable_lbmethod_bytraffic" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_lbmethod_bytraffic" != "no" ; then
      enable_lbmethod_bytraffic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_bytraffic=no
    fi
  else
    enable_lbmethod_bytraffic=no
  fi
  if test "$enable_lbmethod_bytraffic" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy_balancer" = "no" ; then
                              enable_lbmethod_bytraffic=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_bytraffic\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_bytraffic\"" >&2;}
                            elif test "$enable_lbmethod_bytraffic" = "static" && test "$enable_proxy_balancer" != "static" ; then
                              enable_lbmethod_bytraffic=$enable_proxy_balancer
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_lbmethod_bytraffic shared because mod_proxy_balancer is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_lbmethod_bytraffic shared because mod_proxy_balancer is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bytraffic" >&5
printf %s "checking whether to enable mod_lbmethod_bytraffic... " >&6; }
            if test "$enable_lbmethod_bytraffic" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_lbmethod_bytraffic has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_bytraffic$_apmod_extra_msg" >&5
printf "%s\n" "$enable_lbmethod_bytraffic$_apmod_extra_msg" >&6; }
  if test "$enable_lbmethod_bytraffic" != "no"; then
    case "$enable_lbmethod_bytraffic" in
    static*)
      MODLIST="$MODLIST lbmethod_bytraffic"
      if test "lbmethod_bytraffic" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES lbmethod_bytraffic"
      if test "$enable_proxy_balancer" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_bytraffic"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_lbmethod_bytraffic.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_lbmethod_bytraffic.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYTRAFFIC_LDADD)
EOF
      if test ! -z "\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)\""
    AP_LIBS="\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LBMETHOD_BYTRAFFIC_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_lbmethod_bytraffic.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYTRAFFIC_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYTRAFFIC_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bybusyness" >&5
printf %s "checking whether to enable mod_lbmethod_bybusyness... " >&6; }
    # Check whether --enable-lbmethod-bybusyness was given.
if test ${enable_lbmethod_bybusyness+y}
then :
  enableval=$enable_lbmethod_bybusyness; force_lbmethod_bybusyness=$enableval
else $as_nop
  enable_lbmethod_bybusyness=$enable_proxy_balancer
fi

    _apmod_extra_msg=""
      case "$enable_lbmethod_bybusyness" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_lbmethod_bybusyness" = "static" -o "$enable_lbmethod_bybusyness" = "shared"; then
    :
  elif test "$enable_lbmethod_bybusyness" = "yes"; then
    enable_lbmethod_bybusyness=$module_default
  elif test "$enable_lbmethod_bybusyness" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_bybusyness=$module_default
    else
      enable_lbmethod_bybusyness=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_bybusyness" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_lbmethod_bybusyness=$module_default
    else
      enable_lbmethod_bybusyness=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_bybusyness" = "all" -o "$enable_lbmethod_bybusyness" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_bybusyness=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_bybusyness=no
    fi
  elif test "$enable_lbmethod_bybusyness" = "reallyall" -o "$enable_lbmethod_bybusyness" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_lbmethod_bybusyness" != "no" ; then
      enable_lbmethod_bybusyness=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_bybusyness=no
    fi
  else
    enable_lbmethod_bybusyness=no
  fi
  if test "$enable_lbmethod_bybusyness" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy_balancer" = "no" ; then
                              enable_lbmethod_bybusyness=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_bybusyness\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_bybusyness\"" >&2;}
                            elif test "$enable_lbmethod_bybusyness" = "static" && test "$enable_proxy_balancer" != "static" ; then
                              enable_lbmethod_bybusyness=$enable_proxy_balancer
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_lbmethod_bybusyness shared because mod_proxy_balancer is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_lbmethod_bybusyness shared because mod_proxy_balancer is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_bybusyness" >&5
printf %s "checking whether to enable mod_lbmethod_bybusyness... " >&6; }
            if test "$enable_lbmethod_bybusyness" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_lbmethod_bybusyness has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_bybusyness$_apmod_extra_msg" >&5
printf "%s\n" "$enable_lbmethod_bybusyness$_apmod_extra_msg" >&6; }
  if test "$enable_lbmethod_bybusyness" != "no"; then
    case "$enable_lbmethod_bybusyness" in
    static*)
      MODLIST="$MODLIST lbmethod_bybusyness"
      if test "lbmethod_bybusyness" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES lbmethod_bybusyness"
      if test "$enable_proxy_balancer" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_bybusyness"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_lbmethod_bybusyness.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_lbmethod_bybusyness.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_BYBUSYNESS_LDADD)
EOF
      if test ! -z "\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)\""
    AP_LIBS="\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LBMETHOD_BYBUSYNESS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_lbmethod_bybusyness.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_BYBUSYNESS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_BYBUSYNESS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_heartbeat" >&5
printf %s "checking whether to enable mod_lbmethod_heartbeat... " >&6; }
    # Check whether --enable-lbmethod-heartbeat was given.
if test ${enable_lbmethod_heartbeat+y}
then :
  enableval=$enable_lbmethod_heartbeat; force_lbmethod_heartbeat=$enableval
else $as_nop
  enable_lbmethod_heartbeat=$enable_proxy_balancer
fi

    _apmod_extra_msg=""
      case "$enable_lbmethod_heartbeat" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_lbmethod_heartbeat" = "static" -o "$enable_lbmethod_heartbeat" = "shared"; then
    :
  elif test "$enable_lbmethod_heartbeat" = "yes"; then
    enable_lbmethod_heartbeat=$module_default
  elif test "$enable_lbmethod_heartbeat" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_heartbeat=$module_default
    else
      enable_lbmethod_heartbeat=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_heartbeat" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_lbmethod_heartbeat=$module_default
    else
      enable_lbmethod_heartbeat=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_lbmethod_heartbeat" = "all" -o "$enable_lbmethod_heartbeat" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_lbmethod_heartbeat=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_heartbeat=no
    fi
  elif test "$enable_lbmethod_heartbeat" = "reallyall" -o "$enable_lbmethod_heartbeat" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_lbmethod_heartbeat" != "no" ; then
      enable_lbmethod_heartbeat=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_lbmethod_heartbeat=no
    fi
  else
    enable_lbmethod_heartbeat=no
  fi
  if test "$enable_lbmethod_heartbeat" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_proxy_balancer" = "no" ; then
                              enable_lbmethod_heartbeat=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_heartbeat\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_proxy_balancer is disabled but required for mod_lbmethod_heartbeat\"" >&2;}
                            elif test "$enable_lbmethod_heartbeat" = "static" && test "$enable_proxy_balancer" != "static" ; then
                              enable_lbmethod_heartbeat=$enable_proxy_balancer
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_lbmethod_heartbeat shared because mod_proxy_balancer is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_lbmethod_heartbeat shared because mod_proxy_balancer is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_lbmethod_heartbeat" >&5
printf %s "checking whether to enable mod_lbmethod_heartbeat... " >&6; }
            if test "$enable_lbmethod_heartbeat" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_lbmethod_heartbeat has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lbmethod_heartbeat$_apmod_extra_msg" >&5
printf "%s\n" "$enable_lbmethod_heartbeat$_apmod_extra_msg" >&6; }
  if test "$enable_lbmethod_heartbeat" != "no"; then
    case "$enable_lbmethod_heartbeat" in
    static*)
      MODLIST="$MODLIST lbmethod_heartbeat"
      if test "lbmethod_heartbeat" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES lbmethod_heartbeat"
      if test "$enable_proxy_balancer" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},lbmethod_heartbeat"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_lbmethod_heartbeat.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_lbmethod_heartbeat.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_LBMETHOD_HEARTBEAT_LDADD)
EOF
      if test ! -z "\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_LBMETHOD_HEARTBEAT_LDADD)\""
    AP_LIBS="\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_LBMETHOD_HEARTBEAT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_lbmethod_heartbeat.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LBMETHOD_HEARTBEAT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LBMETHOD_HEARTBEAT_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=tls
  modpath_current=modules/tls
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d tls || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


tls_objs="mod_tls.lo tls_cache.lo tls_cert.lo tls_conf.lo tls_core.lo tls_filter.lo tls_ocsp.lo tls_proto.lo tls_util.lo tls_var.lo "





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_tls" >&5
printf %s "checking whether to enable mod_tls... " >&6; }
    # Check whether --enable-tls was given.
if test ${enable_tls+y}
then :
  enableval=$enable_tls; force_tls=$enableval
else $as_nop
  enable_tls=most
fi

    _apmod_extra_msg=""
      case "$enable_tls" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_tls" = "static" -o "$enable_tls" = "shared"; then
    :
  elif test "$enable_tls" = "yes"; then
    enable_tls=$module_default
  elif test "$enable_tls" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_tls=$module_default
    else
      enable_tls=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_tls" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_tls=$module_default
    else
      enable_tls=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_tls" = "all" -o "$enable_tls" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_tls=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_tls=no
    fi
  elif test "$enable_tls" = "reallyall" -o "$enable_tls" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_tls" != "no" ; then
      enable_tls=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_tls=no
    fi
  else
    enable_tls=no
  fi
  if test "$enable_tls" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls" >&5
printf %s "checking for rustls... " >&6; }
if test ${ac_cv_rustls+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        ac_cv_rustls=no
    ap_rustls_found=""
    ap_rustls_base=""
    ap_rustls_libs=""

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-provided rustls base directory" >&5
printf %s "checking for user-provided rustls base directory... " >&6; }

# Check whether --with-rustls was given.
if test ${with_rustls+y}
then :
  withval=$with_rustls;
            if test "x$withval" != "xyes" -a "x$withval" != "x"; then
                ap_rustls_base="`cd $withval ; pwd`"
      fi

fi

    if test "x$ap_rustls_base" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ap_rustls_base" >&5
printf "%s\n" "$ap_rustls_base" >&6; }
    fi

        saved_CPPFLAGS="$CPPFLAGS"
    saved_LIBS="$LIBS"
    saved_LDFLAGS="$LDFLAGS"

        if test -n "$PKGCONFIG"; then
      saved_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config along $PKG_CONFIG_PATH" >&5
printf %s "checking for pkg-config along $PKG_CONFIG_PATH... " >&6; }
      if test "x$ap_rustls_base" != "x" ; then
        if test -f "${ap_rustls_base}/lib/pkgconfig/librustls.pc"; then
                              PKG_CONFIG_PATH="${ap_rustls_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        elif test -f "${ap_rustls_base}/lib64/pkgconfig/librustls.pc"; then
                              PKG_CONFIG_PATH="${ap_rustls_base}/lib64/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
          export PKG_CONFIG_PATH
        fi
      fi
      ap_rustls_libs="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-l --silence-errors librustls`"
      if test $? -eq 0; then
        ap_rustls_found="yes"
        pkglookup="`$PKGCONFIG --cflags-only-I librustls`"

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$pkglookup\""
    CPPFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"$pkglookup\""
    MOD_CFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-L librustls`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

        pkglookup="`$PKGCONFIG $PKGCONFIG_LIBOPTS --libs-only-other librustls`"

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$pkglookup\""
    LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$pkglookup\""
    MOD_LDFLAGS="$pkglookup"
  else
    apr_addto_bugger="$pkglookup"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
      PKG_CONFIG_PATH="$saved_PKG_CONFIG_PATH"
    fi

        if test "x$ap_rustls_base" != "x" -a "x$ap_rustls_found" = "x"; then

  if test "x$CPPFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-I$ap_rustls_base/include\""
    CPPFLAGS="-I$ap_rustls_base/include"
  else
    apr_addto_bugger="-I$ap_rustls_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CPPFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_CFLAGS to \"-I$ap_rustls_base/include\""
    MOD_CFLAGS="-I$ap_rustls_base/include"
  else
    apr_addto_bugger="-I$ap_rustls_base/include"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_CFLAGS"
        MOD_CFLAGS="$MOD_CFLAGS $i"
      fi
    done
  fi


  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$ap_rustls_base/lib\""
    LDFLAGS="-L$ap_rustls_base/lib"
  else
    apr_addto_bugger="-L$ap_rustls_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"-L$ap_rustls_base/lib\""
    MOD_LDFLAGS="-L$ap_rustls_base/lib"
  else
    apr_addto_bugger="-L$ap_rustls_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      if test "x$ap_platform_runtime_link_flag" != "x"; then

  if test "x$LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag$ap_rustls_base/lib\""
    LDFLAGS="$ap_platform_runtime_link_flag$ap_rustls_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_rustls_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
        LDFLAGS="$LDFLAGS $i"
      fi
    done
  fi


  if test "x$MOD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_LDFLAGS to \"$ap_platform_runtime_link_flag$ap_rustls_base/lib\""
    MOD_LDFLAGS="$ap_platform_runtime_link_flag$ap_rustls_base/lib"
  else
    apr_addto_bugger="$ap_platform_runtime_link_flag$ap_rustls_base/lib"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_LDFLAGS"
        MOD_LDFLAGS="$MOD_LDFLAGS $i"
      fi
    done
  fi

      fi
    fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls version >= 0.8.2" >&5
printf %s "checking for rustls version >= 0.8.2... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <rustls.h>
int
main (void)
{

rustls_version();

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
printf "%s\n" "OK" >&6; }
       ac_cv_rustls=yes
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED" >&5
printf "%s\n" "FAILED" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

        CPPFLAGS="$saved_CPPFLAGS"
    LIBS="$saved_LIBS"
    LDFLAGS="$saved_LDFLAGS"

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rustls" >&5
printf "%s\n" "$ac_cv_rustls" >&6; }
  if test "x$ac_cv_rustls" = "xyes"; then

printf "%s\n" "#define HAVE_RUSTLS 1" >>confdefs.h

  fi

    if test "$ac_cv_rustls" = "yes" ; then
        if test "x$enable_tls" = "xshared"; then
           case `uname` in
             "Darwin")
                MOD_TLS_LINK_LIBS="-lrustls -framework Security -framework Foundation"
                ;;
             *)
                MOD_TLS_LINK_LIBS="-lrustls"
                ;;
           esac
           # The only symbol which needs to be exported is the module
           # structure, so ask libtool to hide everything else:

  if test "x$MOD_TLS_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_TLS_LDADD to \"$MOD_TLS_LINK_LIBS -export-symbols-regex tls_module\""
    MOD_TLS_LDADD="$MOD_TLS_LINK_LIBS -export-symbols-regex tls_module"
  else
    apr_addto_bugger="$MOD_TLS_LINK_LIBS -export-symbols-regex tls_module"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_TLS_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_TLS_LDADD"
        MOD_TLS_LDADD="$MOD_TLS_LDADD $i"
      fi
    done
  fi

        fi
    else
        enable_tls=no
    fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_tls" >&5
printf %s "checking whether to enable mod_tls... " >&6; }
            if test "$enable_tls" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_tls has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_tls$_apmod_extra_msg" >&5
printf "%s\n" "$enable_tls$_apmod_extra_msg" >&6; }
  if test "$enable_tls" != "no"; then
    case "$enable_tls" in
    static*)
      MODLIST="$MODLIST tls"
      if test "tls" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES tls"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},tls"
      fi
      ;;
    esac


  if test -z "$tls_objs"; then
    objects="mod_tls.lo"
  else
    objects="$tls_objs"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_tls.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_TLS_LDADD)
EOF
      if test ! -z "\$(MOD_TLS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_TLS_LDADD)\""
    AP_LIBS="\$(MOD_TLS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_TLS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_tls.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_TLS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_TLS_LDADD"



  fi




  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"




{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MPM to use by default" >&5
printf %s "checking which MPM to use by default... " >&6; }

# Check whether --with-mpm was given.
if test ${with_mpm+y}
then :
  withval=$with_mpm;
    default_mpm=$withval
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
printf "%s\n" "$withval" >&6; };

else $as_nop

                if ap_mpm_is_supported "winnt"; then
        default_mpm=winnt
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: winnt" >&5
printf "%s\n" "winnt" >&6; }
    elif ap_mpm_is_supported "mpmt_os2"; then
        default_mpm=mpmt_os2
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: mpmt_os2" >&5
printf "%s\n" "mpmt_os2" >&6; }
    elif ap_mpm_is_supported "event"; then
        default_mpm=event
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: event" >&5
printf "%s\n" "event" >&6; }
    elif ap_mpm_is_supported "worker"; then
        default_mpm=worker
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: worker - event is not supported" >&5
printf "%s\n" "worker - event is not supported" >&6; }
    else
        default_mpm=prefork
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: prefork - event and worker are not supported" >&5
printf "%s\n" "prefork - event and worker are not supported" >&6; }
    fi

fi



    if ap_mpm_is_enabled $default_mpm; then
        :
    else
        eval "ap_enabled_mpm_$default_mpm=yes"
        ap_enabled_mpms="$ap_enabled_mpms $default_mpm "
    fi


# Check whether --enable-mpms-shared was given.
if test ${enable_mpms_shared+y}
then :
  enableval=$enable_mpms_shared;
    if test "$enableval" = "no"; then
        mpm_build=static
    else
        mpm_build=shared
        if test "$enableval" = "yes"; then
            enableval=$default_mpm
        fi
        for i in $enableval; do
            if test "$i" = "all"; then
                for j in $ap_supported_shared_mpms; do
                    eval "enable_mpm_$j=shared"

    if ap_mpm_is_enabled $j; then
        :
    else
        eval "ap_enabled_mpm_$j=yes"
        ap_enabled_mpms="$ap_enabled_mpms $j "
    fi

                done
            else
                i=`echo $i | sed 's/-/_/g'`
                if ap_mpm_supports_shared $i; then
                    eval "enable_mpm_$i=shared"

    if ap_mpm_is_enabled $i; then
        :
    else
        eval "ap_enabled_mpm_$i=yes"
        ap_enabled_mpms="$ap_enabled_mpms $i "
    fi

                else
                    as_fn_error $? "MPM $i does not support dynamic loading." "$LINENO" 5
                fi
            fi
        done
    fi

else $as_nop
  mpm_build=static
fi


for i in $ap_enabled_mpms; do
    if ap_mpm_is_supported $i; then
        :
    else
        as_fn_error $? "MPM $i is not supported on this platform." "$LINENO" 5
    fi
done

if test $mpm_build = "shared"; then
    eval "tmp=\$enable_mpm_$default_mpm"
    if test "$tmp" != "shared"; then
        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
    fi
fi


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/Makefile"


if test $mpm_build = "shared"; then
    MPM_LIB=""
else
    MPM_LIB=server/mpm/$default_mpm/lib${default_mpm}.la
    MODLIST="$MODLIST mpm_${default_mpm}"
fi

MPM_SUBDIRS=$ap_enabled_mpms

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_SUBDIRS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_LIB"





  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MPM_EVENT_LDADD"




    if ap_mpm_is_enabled event; then
        if test -z "event.lo"; then
            objects="event.lo"
        else
            objects="event.lo"
        fi

        if test -z ""; then
            mpmpath="server/mpm/event"
        else
            mpmpath=
        fi

                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"


        if test -z "$enable_mpm_event"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_MPM_EVENT_LDADD)\""
    AP_LIBS="\$(MOD_MPM_EVENT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_MPM_EVENT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

            libname="libevent.la"
            cat >$mpmpath/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
        else
            apache_need_shared=yes
            libname="mod_mpm_event.la"
            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
            cat >$mpmpath/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects \$(MOD_MPM_EVENT_LDADD)
DISTCLEAN_TARGETS = modules.mk
static =
shared = $libname
EOF
            MPM_MODULES="$MPM_MODULES mpm_event"
            # add default MPM to LoadModule list
            if test event = $default_mpm; then
                ENABLED_MPM_MODULE="mpm_event"
            fi
        fi

    ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h

fi


    fi



    if ap_mpm_is_enabled prefork; then
        if test -z ""; then
            objects="prefork.lo"
        else
            objects=""
        fi

        if test -z ""; then
            mpmpath="server/mpm/prefork"
        else
            mpmpath=
        fi

                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"


        if test -z "$enable_mpm_prefork"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
    AP_LIBS=""
  else
    apr_addto_bugger=""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

            libname="libprefork.la"
            cat >$mpmpath/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
        else
            apache_need_shared=yes
            libname="mod_mpm_prefork.la"
            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
            cat >$mpmpath/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
DISTCLEAN_TARGETS = modules.mk
static =
shared = $libname
EOF
            MPM_MODULES="$MPM_MODULES mpm_prefork"
            # add default MPM to LoadModule list
            if test prefork = $default_mpm; then
                ENABLED_MPM_MODULE="mpm_prefork"
            fi
        fi

    fi


winnt_objects="child.lo mpm_winnt.lo nt_eventlog.lo service.lo"

    if ap_mpm_is_enabled winnt; then
        if test -z "$winnt_objects"; then
            objects="winnt.lo"
        else
            objects="$winnt_objects"
        fi

        if test -z ""; then
            mpmpath="server/mpm/winnt"
        else
            mpmpath=
        fi

                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"


        if test -z "$enable_mpm_winnt"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
    AP_LIBS=""
  else
    apr_addto_bugger=""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

            libname="libwinnt.la"
            cat >$mpmpath/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
        else
            apache_need_shared=yes
            libname="mod_mpm_winnt.la"
            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
            cat >$mpmpath/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
DISTCLEAN_TARGETS = modules.mk
static =
shared = $libname
EOF
            MPM_MODULES="$MPM_MODULES mpm_winnt"
            # add default MPM to LoadModule list
            if test winnt = $default_mpm; then
                ENABLED_MPM_MODULE="mpm_winnt"
            fi
        fi

    fi




    if ap_mpm_is_enabled worker; then
        if test -z "worker.lo"; then
            objects="worker.lo"
        else
            objects="worker.lo"
        fi

        if test -z ""; then
            mpmpath="server/mpm/worker"
        else
            mpmpath=
        fi

                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"


        if test -z "$enable_mpm_worker"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
    AP_LIBS=""
  else
    apr_addto_bugger=""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

            libname="libworker.la"
            cat >$mpmpath/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
        else
            apache_need_shared=yes
            libname="mod_mpm_worker.la"
            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
            cat >$mpmpath/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
DISTCLEAN_TARGETS = modules.mk
static =
shared = $libname
EOF
            MPM_MODULES="$MPM_MODULES mpm_worker"
            # add default MPM to LoadModule list
            if test worker = $default_mpm; then
                ENABLED_MPM_MODULE="mpm_worker"
            fi
        fi

    ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h

fi


    fi




  current_dir=arch/unix
  modpath_current=modules/arch/unix
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d arch/unix || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


if ap_mpm_is_enabled "worker" \
   || ap_mpm_is_enabled "event" \
   || ap_mpm_is_enabled "prefork"; then
    unixd_mods_enable=yes
else
    unixd_mods_enable=no
fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_unixd" >&5
printf %s "checking whether to enable mod_unixd... " >&6; }
    # Check whether --enable-unixd was given.
if test ${enable_unixd+y}
then :
  enableval=$enable_unixd; force_unixd=$enableval
else $as_nop
  enable_unixd=$unixd_mods_enable
fi

    _apmod_extra_msg=""
      case "$enable_unixd" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_unixd" = "static" -o "$enable_unixd" = "shared"; then
    :
  elif test "$enable_unixd" = "yes"; then
    enable_unixd=$module_default
  elif test "$enable_unixd" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_unixd=$module_default
    else
      enable_unixd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_unixd" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_unixd=$module_default
    else
      enable_unixd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_unixd" = "all" -o "$enable_unixd" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_unixd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_unixd=no
    fi
  elif test "$enable_unixd" = "reallyall" -o "$enable_unixd" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_unixd" != "no" ; then
      enable_unixd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_unixd=no
    fi
  else
    enable_unixd=no
  fi
  if test "$enable_unixd" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unixd$_apmod_extra_msg" >&5
printf "%s\n" "$enable_unixd$_apmod_extra_msg" >&6; }
  if test "$enable_unixd" != "no"; then
    case "$enable_unixd" in
    static*)
      MODLIST="$MODLIST unixd"
      if test "unixd" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES unixd"
      if test "$unixd_mods_enable" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},unixd"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_unixd.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_unixd.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_UNIXD_LDADD)
EOF
      if test ! -z "\$(MOD_UNIXD_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_UNIXD_LDADD)\""
    AP_LIBS="\$(MOD_UNIXD_LDADD)"
  else
    apr_addto_bugger="\$(MOD_UNIXD_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_unixd.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_UNIXD_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIXD_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_privileges" >&5
printf %s "checking whether to enable mod_privileges... " >&6; }
    # Check whether --enable-privileges was given.
if test ${enable_privileges+y}
then :
  enableval=$enable_privileges; force_privileges=$enableval
else $as_nop
  enable_privileges=no
fi

    _apmod_extra_msg=""
      case "$enable_privileges" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_privileges" = "static" -o "$enable_privileges" = "shared"; then
    :
  elif test "$enable_privileges" = "yes"; then
    enable_privileges=$module_default
  elif test "$enable_privileges" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_privileges=$module_default
    else
      enable_privileges=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_privileges" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_privileges=$module_default
    else
      enable_privileges=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_privileges" = "all" -o "$enable_privileges" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_privileges=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_privileges=no
    fi
  elif test "$enable_privileges" = "reallyall" -o "$enable_privileges" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_privileges" != "no" ; then
      enable_privileges=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_privileges=no
    fi
  else
    enable_privileges=no
  fi
  if test "$enable_privileges" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :

         for ac_header in priv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes
then :
  printf "%s\n" "#define HAVE_PRIV_H 1" >>confdefs.h
 ap_HAVE_PRIV_H="yes"
else $as_nop
  ap_HAVE_PRIV_H="no"
fi

done
  if test $ap_HAVE_PRIV_H = "no"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your system does not support privileges." >&5
printf "%s\n" "$as_me: WARNING: Your system does not support privileges." >&2;}
    enable_privileges="no"
  fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_privileges" >&5
printf %s "checking whether to enable mod_privileges... " >&6; }
            if test "$enable_privileges" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_privileges has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_privileges$_apmod_extra_msg" >&5
printf "%s\n" "$enable_privileges$_apmod_extra_msg" >&6; }
  if test "$enable_privileges" != "no"; then
    case "$enable_privileges" in
    static*)
      MODLIST="$MODLIST privileges"
      if test "privileges" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES privileges"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},privileges"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_privileges.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_privileges.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_PRIVILEGES_LDADD)
EOF
      if test ! -z "\$(MOD_PRIVILEGES_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_PRIVILEGES_LDADD)\""
    AP_LIBS="\$(MOD_PRIVILEGES_LDADD)"
  else
    apr_addto_bugger="\$(MOD_PRIVILEGES_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_privileges.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PRIVILEGES_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PRIVILEGES_LDADD"



  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_systemd" >&5
printf %s "checking whether to enable mod_systemd... " >&6; }
    # Check whether --enable-systemd was given.
if test ${enable_systemd+y}
then :
  enableval=$enable_systemd; force_systemd=$enableval
else $as_nop
  enable_systemd=no
fi

    _apmod_extra_msg=""
      case "$enable_systemd" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_systemd" = "static" -o "$enable_systemd" = "shared"; then
    :
  elif test "$enable_systemd" = "yes"; then
    enable_systemd=$module_default
  elif test "$enable_systemd" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_systemd=$module_default
    else
      enable_systemd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_systemd" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_systemd=$module_default
    else
      enable_systemd=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_systemd" = "all" -o "$enable_systemd" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_systemd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_systemd=no
    fi
  elif test "$enable_systemd" = "reallyall" -o "$enable_systemd" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_systemd" != "no" ; then
      enable_systemd=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_systemd=no
    fi
  else
    enable_systemd=no
  fi
  if test "$enable_systemd" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :

  if test "${ac_cv_header_systemd_sd_daemon_h}" = "no" || test -z "${SYSTEMD_LIBS}"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your system does not support systemd." >&5
printf "%s\n" "$as_me: WARNING: Your system does not support systemd." >&2;}
    enable_systemd="no"
  else

  if test "x$MOD_SYSTEMD_LDADD" = "x"; then
    test "x$silent" != "xyes" && echo "  setting MOD_SYSTEMD_LDADD to \"$SYSTEMD_LIBS\""
    MOD_SYSTEMD_LDADD="$SYSTEMD_LIBS"
  else
    apr_addto_bugger="$SYSTEMD_LIBS"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $MOD_SYSTEMD_LDADD; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SYSTEMD_LDADD"
        MOD_SYSTEMD_LDADD="$MOD_SYSTEMD_LDADD $i"
      fi
    done
  fi

  fi

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_systemd" >&5
printf %s "checking whether to enable mod_systemd... " >&6; }
            if test "$enable_systemd" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_systemd has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_systemd$_apmod_extra_msg" >&5
printf "%s\n" "$enable_systemd$_apmod_extra_msg" >&6; }
  if test "$enable_systemd" != "no"; then
    case "$enable_systemd" in
    static*)
      MODLIST="$MODLIST systemd"
      if test "systemd" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES systemd"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},systemd"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_systemd.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_systemd.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SYSTEMD_LDADD)
EOF
      if test ! -z "\$(MOD_SYSTEMD_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SYSTEMD_LDADD)\""
    AP_LIBS="\$(MOD_SYSTEMD_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SYSTEMD_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_systemd.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SYSTEMD_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SYSTEMD_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=cluster
  modpath_current=modules/cluster
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d cluster || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


heartbeat_objects='mod_heartbeat.lo'

case "$host" in
  *os2*)
    # OS/2 DLLs must resolve all symbols at build time
    # and we need some from the watchdog module
    heartbeat_objects="$heartbeat_objects ../core/mod_watchdog.la"
    ;;
esac


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_heartbeat" >&5
printf %s "checking whether to enable mod_heartbeat... " >&6; }
    # Check whether --enable-heartbeat was given.
if test ${enable_heartbeat+y}
then :
  enableval=$enable_heartbeat; force_heartbeat=$enableval
else $as_nop
  enable_heartbeat=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_heartbeat" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_heartbeat" = "static" -o "$enable_heartbeat" = "shared"; then
    :
  elif test "$enable_heartbeat" = "yes"; then
    enable_heartbeat=$module_default
  elif test "$enable_heartbeat" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_heartbeat=$module_default
    else
      enable_heartbeat=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_heartbeat" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_heartbeat=$module_default
    else
      enable_heartbeat=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_heartbeat" = "all" -o "$enable_heartbeat" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_heartbeat=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_heartbeat=no
    fi
  elif test "$enable_heartbeat" = "reallyall" -o "$enable_heartbeat" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_heartbeat" != "no" ; then
      enable_heartbeat=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_heartbeat=no
    fi
  else
    enable_heartbeat=no
  fi
  if test "$enable_heartbeat" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_watchdog" = "no" ; then
                              enable_heartbeat=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_watchdog is disabled but required for mod_heartbeat\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_watchdog is disabled but required for mod_heartbeat\"" >&2;}
                            elif test "$enable_heartbeat" = "static" && test "$enable_watchdog" != "static" ; then
                              enable_heartbeat=$enable_watchdog
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_heartbeat shared because mod_watchdog is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_heartbeat shared because mod_watchdog is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_heartbeat" >&5
printf %s "checking whether to enable mod_heartbeat... " >&6; }
            if test "$enable_heartbeat" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_heartbeat has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_heartbeat$_apmod_extra_msg" >&5
printf "%s\n" "$enable_heartbeat$_apmod_extra_msg" >&6; }
  if test "$enable_heartbeat" != "no"; then
    case "$enable_heartbeat" in
    static*)
      MODLIST="$MODLIST heartbeat"
      if test "heartbeat" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES heartbeat"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},heartbeat"
      fi
      ;;
    esac


  if test -z "$heartbeat_objects"; then
    objects="mod_heartbeat.lo"
  else
    objects="$heartbeat_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_heartbeat.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_HEARTBEAT_LDADD)
EOF
      if test ! -z "\$(MOD_HEARTBEAT_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HEARTBEAT_LDADD)\""
    AP_LIBS="\$(MOD_HEARTBEAT_LDADD)"
  else
    apr_addto_bugger="\$(MOD_HEARTBEAT_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_heartbeat.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEARTBEAT_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEARTBEAT_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_heartmonitor" >&5
printf %s "checking whether to enable mod_heartmonitor... " >&6; }
    # Check whether --enable-heartmonitor was given.
if test ${enable_heartmonitor+y}
then :
  enableval=$enable_heartmonitor; force_heartmonitor=$enableval
else $as_nop
  enable_heartmonitor=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_heartmonitor" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_heartmonitor" = "static" -o "$enable_heartmonitor" = "shared"; then
    :
  elif test "$enable_heartmonitor" = "yes"; then
    enable_heartmonitor=$module_default
  elif test "$enable_heartmonitor" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_heartmonitor=$module_default
    else
      enable_heartmonitor=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_heartmonitor" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_heartmonitor=$module_default
    else
      enable_heartmonitor=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_heartmonitor" = "all" -o "$enable_heartmonitor" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_heartmonitor=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_heartmonitor=no
    fi
  elif test "$enable_heartmonitor" = "reallyall" -o "$enable_heartmonitor" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_heartmonitor" != "no" ; then
      enable_heartmonitor=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_heartmonitor=no
    fi
  else
    enable_heartmonitor=no
  fi
  if test "$enable_heartmonitor" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_heartmonitor$_apmod_extra_msg" >&5
printf "%s\n" "$enable_heartmonitor$_apmod_extra_msg" >&6; }
  if test "$enable_heartmonitor" != "no"; then
    case "$enable_heartmonitor" in
    static*)
      MODLIST="$MODLIST heartmonitor"
      if test "heartmonitor" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES heartmonitor"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},heartmonitor"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_heartmonitor.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_heartmonitor.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_HEARTMONITOR_LDADD)
EOF
      if test ! -z "\$(MOD_HEARTMONITOR_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_HEARTMONITOR_LDADD)\""
    AP_LIBS="\$(MOD_HEARTMONITOR_LDADD)"
  else
    apr_addto_bugger="\$(MOD_HEARTMONITOR_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_heartmonitor.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEARTMONITOR_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEARTMONITOR_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=dav/main
  modpath_current=modules/dav/main
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d dav/main || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


dav_objects="mod_dav.lo props.lo util.lo util_lock.lo liveprop.lo providers.lo std_liveprop.lo"

if test "$enable_http" = "no"; then
  dav_enable=no
else
  dav_enable=most
fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav" >&5
printf %s "checking whether to enable mod_dav... " >&6; }
    # Check whether --enable-dav was given.
if test ${enable_dav+y}
then :
  enableval=$enable_dav; force_dav=$enableval
else $as_nop
  enable_dav=$dav_enable
fi

    _apmod_extra_msg=""
      case "$enable_dav" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_dav" = "static" -o "$enable_dav" = "shared"; then
    :
  elif test "$enable_dav" = "yes"; then
    enable_dav=$module_default
  elif test "$enable_dav" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dav=$module_default
    else
      enable_dav=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dav" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_dav=$module_default
    else
      enable_dav=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dav" = "all" -o "$enable_dav" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dav=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dav=no
    fi
  elif test "$enable_dav" = "reallyall" -o "$enable_dav" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_dav" != "no" ; then
      enable_dav=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dav=no
    fi
  else
    enable_dav=no
  fi
  if test "$enable_dav" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dav$_apmod_extra_msg" >&5
printf "%s\n" "$enable_dav$_apmod_extra_msg" >&6; }
  if test "$enable_dav" != "no"; then
    case "$enable_dav" in
    static*)
      MODLIST="$MODLIST dav"
      if test "dav" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dav"
      if test "$dav_enable" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dav"
      fi
      ;;
    esac


  if test -z "$dav_objects"; then
    objects="mod_dav.lo"
  else
    objects="$dav_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_dav.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_DAV_LDADD)
EOF
      if test ! -z "\$(MOD_DAV_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DAV_LDADD)\""
    AP_LIBS="\$(MOD_DAV_LDADD)"
  else
    apr_addto_bugger="\$(MOD_DAV_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_dav.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LDADD"



  fi


if test "$dav_enable" != "no" -o "$enable_dav" != "no"; then
  apache_need_expat=yes
fi


  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=generators
  modpath_current=modules/generators
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d generators || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_status" >&5
printf %s "checking whether to enable mod_status... " >&6; }
    # Check whether --enable-status was given.
if test ${enable_status+y}
then :
  enableval=$enable_status; force_status=$enableval
else $as_nop
  enable_status=yes
fi

    _apmod_extra_msg=""
      case "$enable_status" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_status" = "static" -o "$enable_status" = "shared"; then
    :
  elif test "$enable_status" = "yes"; then
    enable_status=$module_default
  elif test "$enable_status" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_status=$module_default
    else
      enable_status=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_status" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_status=$module_default
    else
      enable_status=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_status" = "all" -o "$enable_status" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_status=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_status=no
    fi
  elif test "$enable_status" = "reallyall" -o "$enable_status" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_status" != "no" ; then
      enable_status=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_status=no
    fi
  else
    enable_status=no
  fi
  if test "$enable_status" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_status$_apmod_extra_msg" >&5
printf "%s\n" "$enable_status$_apmod_extra_msg" >&6; }
  if test "$enable_status" != "no"; then
    case "$enable_status" in
    static*)
      MODLIST="$MODLIST status"
      if test "status" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES status"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},status"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_status.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_status.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_STATUS_LDADD)
EOF
      if test ! -z "\$(MOD_STATUS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_STATUS_LDADD)\""
    AP_LIBS="\$(MOD_STATUS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_STATUS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_status.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_STATUS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_STATUS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_autoindex" >&5
printf %s "checking whether to enable mod_autoindex... " >&6; }
    # Check whether --enable-autoindex was given.
if test ${enable_autoindex+y}
then :
  enableval=$enable_autoindex; force_autoindex=$enableval
else $as_nop
  enable_autoindex=yes
fi

    _apmod_extra_msg=""
      case "$enable_autoindex" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_autoindex" = "static" -o "$enable_autoindex" = "shared"; then
    :
  elif test "$enable_autoindex" = "yes"; then
    enable_autoindex=$module_default
  elif test "$enable_autoindex" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_autoindex=$module_default
    else
      enable_autoindex=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_autoindex" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_autoindex=$module_default
    else
      enable_autoindex=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_autoindex" = "all" -o "$enable_autoindex" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_autoindex=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_autoindex=no
    fi
  elif test "$enable_autoindex" = "reallyall" -o "$enable_autoindex" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_autoindex" != "no" ; then
      enable_autoindex=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_autoindex=no
    fi
  else
    enable_autoindex=no
  fi
  if test "$enable_autoindex" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_autoindex$_apmod_extra_msg" >&5
printf "%s\n" "$enable_autoindex$_apmod_extra_msg" >&6; }
  if test "$enable_autoindex" != "no"; then
    case "$enable_autoindex" in
    static*)
      MODLIST="$MODLIST autoindex"
      if test "autoindex" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES autoindex"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},autoindex"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_autoindex.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_autoindex.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_AUTOINDEX_LDADD)
EOF
      if test ! -z "\$(MOD_AUTOINDEX_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_AUTOINDEX_LDADD)\""
    AP_LIBS="\$(MOD_AUTOINDEX_LDADD)"
  else
    apr_addto_bugger="\$(MOD_AUTOINDEX_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_autoindex.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTOINDEX_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTOINDEX_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_asis" >&5
printf %s "checking whether to enable mod_asis... " >&6; }
    # Check whether --enable-asis was given.
if test ${enable_asis+y}
then :
  enableval=$enable_asis; force_asis=$enableval
else $as_nop
  enable_asis=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_asis" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_asis" = "static" -o "$enable_asis" = "shared"; then
    :
  elif test "$enable_asis" = "yes"; then
    enable_asis=$module_default
  elif test "$enable_asis" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_asis=$module_default
    else
      enable_asis=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_asis" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_asis=$module_default
    else
      enable_asis=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_asis" = "all" -o "$enable_asis" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_asis=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_asis=no
    fi
  elif test "$enable_asis" = "reallyall" -o "$enable_asis" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_asis" != "no" ; then
      enable_asis=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_asis=no
    fi
  else
    enable_asis=no
  fi
  if test "$enable_asis" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_asis$_apmod_extra_msg" >&5
printf "%s\n" "$enable_asis$_apmod_extra_msg" >&6; }
  if test "$enable_asis" != "no"; then
    case "$enable_asis" in
    static*)
      MODLIST="$MODLIST asis"
      if test "asis" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES asis"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},asis"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_asis.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_asis.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_ASIS_LDADD)
EOF
      if test ! -z "\$(MOD_ASIS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ASIS_LDADD)\""
    AP_LIBS="\$(MOD_ASIS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_ASIS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_asis.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ASIS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ASIS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_info" >&5
printf %s "checking whether to enable mod_info... " >&6; }
    # Check whether --enable-info was given.
if test ${enable_info+y}
then :
  enableval=$enable_info; force_info=$enableval
else $as_nop
  enable_info=most
fi

    _apmod_extra_msg=""
      case "$enable_info" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_info" = "static" -o "$enable_info" = "shared"; then
    :
  elif test "$enable_info" = "yes"; then
    enable_info=$module_default
  elif test "$enable_info" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_info=$module_default
    else
      enable_info=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_info" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_info=$module_default
    else
      enable_info=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_info" = "all" -o "$enable_info" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_info=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_info=no
    fi
  elif test "$enable_info" = "reallyall" -o "$enable_info" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_info" != "no" ; then
      enable_info=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_info=no
    fi
  else
    enable_info=no
  fi
  if test "$enable_info" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_info$_apmod_extra_msg" >&5
printf "%s\n" "$enable_info$_apmod_extra_msg" >&6; }
  if test "$enable_info" != "no"; then
    case "$enable_info" in
    static*)
      MODLIST="$MODLIST info"
      if test "info" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES info"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},info"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_info.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_info.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_INFO_LDADD)
EOF
      if test ! -z "\$(MOD_INFO_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_INFO_LDADD)\""
    AP_LIBS="\$(MOD_INFO_LDADD)"
  else
    apr_addto_bugger="\$(MOD_INFO_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_info.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INFO_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INFO_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_suexec" >&5
printf %s "checking whether to enable mod_suexec... " >&6; }
    # Check whether --enable-suexec was given.
if test ${enable_suexec+y}
then :
  enableval=$enable_suexec; force_suexec=$enableval
else $as_nop
  enable_suexec=no
fi

    _apmod_extra_msg=""
      case "$enable_suexec" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_suexec" = "static" -o "$enable_suexec" = "shared"; then
    :
  elif test "$enable_suexec" = "yes"; then
    enable_suexec=$module_default
  elif test "$enable_suexec" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_suexec=$module_default
    else
      enable_suexec=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_suexec" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_suexec=$module_default
    else
      enable_suexec=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_suexec" = "all" -o "$enable_suexec" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_suexec=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_suexec=no
    fi
  elif test "$enable_suexec" = "reallyall" -o "$enable_suexec" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_suexec" != "no" ; then
      enable_suexec=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_suexec=no
    fi
  else
    enable_suexec=no
  fi
  if test "$enable_suexec" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :

              other_targets=suexec
            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_suexec" >&5
printf %s "checking whether to enable mod_suexec... " >&6; }
            if test "$enable_suexec" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_suexec has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_suexec$_apmod_extra_msg" >&5
printf "%s\n" "$enable_suexec$_apmod_extra_msg" >&6; }
  if test "$enable_suexec" != "no"; then
    case "$enable_suexec" in
    static*)
      MODLIST="$MODLIST suexec"
      if test "suexec" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES suexec"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},suexec"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_suexec.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_suexec.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SUEXEC_LDADD)
EOF
      if test ! -z "\$(MOD_SUEXEC_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SUEXEC_LDADD)\""
    AP_LIBS="\$(MOD_SUEXEC_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SUEXEC_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_suexec.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SUEXEC_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SUEXEC_LDADD"



  fi


# Is mod_cgid needed?
case $host in
    *mingw*)
                cgid_needed="no"
        ;;
    *)
        if ap_mpm_is_threaded; then
                                                cgid_needed="yes"
        else
                                    cgid_needed="no"
        fi
        ;;
esac

if test $cgid_needed = "yes"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgid" >&5
printf %s "checking whether to enable mod_cgid... " >&6; }
    # Check whether --enable-cgid was given.
if test ${enable_cgid+y}
then :
  enableval=$enable_cgid; force_cgid=$enableval
else $as_nop
  enable_cgid=most
fi

    _apmod_extra_msg=""
      case "$enable_cgid" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_cgid" = "static" -o "$enable_cgid" = "shared"; then
    :
  elif test "$enable_cgid" = "yes"; then
    enable_cgid=$module_default
  elif test "$enable_cgid" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cgid=$module_default
    else
      enable_cgid=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgid" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_cgid=$module_default
    else
      enable_cgid=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgid" = "all" -o "$enable_cgid" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cgid=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgid=no
    fi
  elif test "$enable_cgid" = "reallyall" -o "$enable_cgid" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_cgid" != "no" ; then
      enable_cgid=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgid=no
    fi
  else
    enable_cgid=no
  fi
  if test "$enable_cgid" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            :

    case $host in
      *-solaris2*)
        case `uname -r` in
          5.10)
                    case `uname -p` in
            i386)
              patch_id="120665"
              ;;
            sparc)
              patch_id="120664"
              ;;
            *)
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown platform" >&5
printf "%s\n" "$as_me: WARNING: Unknown platform" >&2;}
              patch_id="120664"
              ;;
          esac
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris patch $patch_id" >&5
printf %s "checking for Solaris patch $patch_id... " >&6; }
          showrev -p | grep "$patch_id" >/dev/null 2>&1
          if test $? -eq 1; then
                              as_fn_error $? "Please apply either patch # 120664 (Sparc) or # 120665 (x86).
Without these patches, mod_cgid is non-functional on Solaris 10 due to an OS
bug with AF_UNIX sockets.
If you can not apply these patches, you can do one of the following:
 - run configure with --disable-cgid
 - switch to the prefork MPM
For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>" "$LINENO" 5
          else
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
          fi
          ;;
        esac
        ;;
    esac

            :
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgid" >&5
printf %s "checking whether to enable mod_cgid... " >&6; }
            if test "$enable_cgid" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_cgid has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cgid$_apmod_extra_msg" >&5
printf "%s\n" "$enable_cgid$_apmod_extra_msg" >&6; }
  if test "$enable_cgid" != "no"; then
    case "$enable_cgid" in
    static*)
      MODLIST="$MODLIST cgid"
      if test "cgid" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cgid"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgid"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_cgid.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_cgid.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
EOF
      if test ! -z "\$(MOD_CGID_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGID_LDADD)\""
    AP_LIBS="\$(MOD_CGID_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CGID_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_cgid.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgi" >&5
printf %s "checking whether to enable mod_cgi... " >&6; }
    # Check whether --enable-cgi was given.
if test ${enable_cgi+y}
then :
  enableval=$enable_cgi; force_cgi=$enableval
else $as_nop
  enable_cgi=no
fi

    _apmod_extra_msg=""
      case "$enable_cgi" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_cgi" = "static" -o "$enable_cgi" = "shared"; then
    :
  elif test "$enable_cgi" = "yes"; then
    enable_cgi=$module_default
  elif test "$enable_cgi" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cgi=$module_default
    else
      enable_cgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_cgi=$module_default
    else
      enable_cgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgi" = "all" -o "$enable_cgi" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgi=no
    fi
  elif test "$enable_cgi" = "reallyall" -o "$enable_cgi" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_cgi" != "no" ; then
      enable_cgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgi=no
    fi
  else
    enable_cgi=no
  fi
  if test "$enable_cgi" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cgi$_apmod_extra_msg" >&5
printf "%s\n" "$enable_cgi$_apmod_extra_msg" >&6; }
  if test "$enable_cgi" != "no"; then
    case "$enable_cgi" in
    static*)
      MODLIST="$MODLIST cgi"
      if test "cgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cgi"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgi"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_cgi.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_cgi.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
EOF
      if test ! -z "\$(MOD_CGI_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGI_LDADD)\""
    AP_LIBS="\$(MOD_CGI_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CGI_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_cgi.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"



  fi

else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgi" >&5
printf %s "checking whether to enable mod_cgi... " >&6; }
    # Check whether --enable-cgi was given.
if test ${enable_cgi+y}
then :
  enableval=$enable_cgi; force_cgi=$enableval
else $as_nop
  enable_cgi=most
fi

    _apmod_extra_msg=""
      case "$enable_cgi" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_cgi" = "static" -o "$enable_cgi" = "shared"; then
    :
  elif test "$enable_cgi" = "yes"; then
    enable_cgi=$module_default
  elif test "$enable_cgi" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cgi=$module_default
    else
      enable_cgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_cgi=$module_default
    else
      enable_cgi=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgi" = "all" -o "$enable_cgi" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgi=no
    fi
  elif test "$enable_cgi" = "reallyall" -o "$enable_cgi" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_cgi" != "no" ; then
      enable_cgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgi=no
    fi
  else
    enable_cgi=no
  fi
  if test "$enable_cgi" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cgi$_apmod_extra_msg" >&5
printf "%s\n" "$enable_cgi$_apmod_extra_msg" >&6; }
  if test "$enable_cgi" != "no"; then
    case "$enable_cgi" in
    static*)
      MODLIST="$MODLIST cgi"
      if test "cgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cgi"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgi"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_cgi.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_cgi.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
EOF
      if test ! -z "\$(MOD_CGI_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGI_LDADD)\""
    AP_LIBS="\$(MOD_CGI_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CGI_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_cgi.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cgid" >&5
printf %s "checking whether to enable mod_cgid... " >&6; }
    # Check whether --enable-cgid was given.
if test ${enable_cgid+y}
then :
  enableval=$enable_cgid; force_cgid=$enableval
else $as_nop
  enable_cgid=no
fi

    _apmod_extra_msg=""
      case "$enable_cgid" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_cgid" = "static" -o "$enable_cgid" = "shared"; then
    :
  elif test "$enable_cgid" = "yes"; then
    enable_cgid=$module_default
  elif test "$enable_cgid" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cgid=$module_default
    else
      enable_cgid=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgid" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_cgid=$module_default
    else
      enable_cgid=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_cgid" = "all" -o "$enable_cgid" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_cgid=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgid=no
    fi
  elif test "$enable_cgid" = "reallyall" -o "$enable_cgid" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_cgid" != "no" ; then
      enable_cgid=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgid=no
    fi
  else
    enable_cgid=no
  fi
  if test "$enable_cgid" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cgid$_apmod_extra_msg" >&5
printf "%s\n" "$enable_cgid$_apmod_extra_msg" >&6; }
  if test "$enable_cgid" != "no"; then
    case "$enable_cgid" in
    static*)
      MODLIST="$MODLIST cgid"
      if test "cgid" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES cgid"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},cgid"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_cgid.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_cgid.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
EOF
      if test ! -z "\$(MOD_CGID_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_CGID_LDADD)\""
    AP_LIBS="\$(MOD_CGID_LDADD)"
  else
    apr_addto_bugger="\$(MOD_CGID_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_cgid.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"



  fi

fi


  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"




    if ap_mpm_is_enabled mpmt_os2; then
        if test -z "mpmt_os2.lo mpmt_os2_child.lo"; then
            objects="mpmt_os2.lo"
        else
            objects="mpmt_os2.lo mpmt_os2_child.lo"
        fi

        if test -z ""; then
            mpmpath="server/mpm/mpmt_os2"
        else
            mpmpath=
        fi

                test -d $mpmpath || $srcdir/build/mkdir.sh $mpmpath


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $mpmpath/Makefile"


        if test -z "$enable_mpm_mpmt_os2"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\""
    AP_LIBS=""
  else
    apr_addto_bugger=""
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

            libname="libmpmt_os2.la"
            cat >$mpmpath/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
        else
            apache_need_shared=yes
            libname="mod_mpm_mpmt_os2.la"
            shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
            cat >$mpmpath/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version $objects
DISTCLEAN_TARGETS = modules.mk
static =
shared = $libname
EOF
            MPM_MODULES="$MPM_MODULES mpm_mpmt_os2"
            # add default MPM to LoadModule list
            if test mpmt_os2 = $default_mpm; then
                ENABLED_MPM_MODULE="mpm_mpmt_os2"
            fi
        fi


  if test "x$CFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
    CFLAGS="-Zmt"
  else
    apr_addto_bugger="-Zmt"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
        CFLAGS="$CFLAGS $i"
      fi
    done
  fi


    fi




  current_dir=dav/fs
  modpath_current=modules/dav/fs
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d dav/fs || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


dav_fs_objects="mod_dav_fs.lo dbm.lo lock.lo repos.lo"

if test "x$enable_dav" != "x"; then
  dav_fs_enable=$enable_dav
else
  dav_fs_enable=$dav_enable
fi

case "$host" in
  *os2*)
    # OS/2 DLLs must resolve all symbols at build time
    # and we need some from main DAV module
    dav_fs_objects="$dav_fs_objects ../main/mod_dav.la"
    ;;
esac


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_fs" >&5
printf %s "checking whether to enable mod_dav_fs... " >&6; }
    # Check whether --enable-dav-fs was given.
if test ${enable_dav_fs+y}
then :
  enableval=$enable_dav_fs; force_dav_fs=$enableval
else $as_nop
  enable_dav_fs=$dav_fs_enable
fi

    _apmod_extra_msg=""
      case "$enable_dav_fs" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_dav_fs" = "static" -o "$enable_dav_fs" = "shared"; then
    :
  elif test "$enable_dav_fs" = "yes"; then
    enable_dav_fs=$module_default
  elif test "$enable_dav_fs" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dav_fs=$module_default
    else
      enable_dav_fs=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dav_fs" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_dav_fs=$module_default
    else
      enable_dav_fs=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dav_fs" = "all" -o "$enable_dav_fs" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dav_fs=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dav_fs=no
    fi
  elif test "$enable_dav_fs" = "reallyall" -o "$enable_dav_fs" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_dav_fs" != "no" ; then
      enable_dav_fs=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dav_fs=no
    fi
  else
    enable_dav_fs=no
  fi
  if test "$enable_dav_fs" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_dav" = "no" ; then
                              enable_dav_fs=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_dav is disabled but required for mod_dav_fs\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_dav is disabled but required for mod_dav_fs\"" >&2;}
                            elif test "$enable_dav_fs" = "static" && test "$enable_dav" != "static" ; then
                              enable_dav_fs=$enable_dav
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_dav_fs shared because mod_dav is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_dav_fs shared because mod_dav is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_fs" >&5
printf %s "checking whether to enable mod_dav_fs... " >&6; }
            if test "$enable_dav_fs" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_dav_fs has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dav_fs$_apmod_extra_msg" >&5
printf "%s\n" "$enable_dav_fs$_apmod_extra_msg" >&6; }
  if test "$enable_dav_fs" != "no"; then
    case "$enable_dav_fs" in
    static*)
      MODLIST="$MODLIST dav_fs"
      if test "dav_fs" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dav_fs"
      if test "$dav_fs_enable" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dav_fs"
      fi
      ;;
    esac


  if test -z "$dav_fs_objects"; then
    objects="mod_dav_fs.lo"
  else
    objects="$dav_fs_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_dav_fs.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_DAV_FS_LDADD)
EOF
      if test ! -z "\$(MOD_DAV_FS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DAV_FS_LDADD)\""
    AP_LIBS="\$(MOD_DAV_FS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_DAV_FS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_dav_fs.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_FS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_FS_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=dav/lock
  modpath_current=modules/dav/lock
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d dav/lock || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


dav_lock_objects="mod_dav_lock.lo locks.lo"

case "$host" in
  *os2*)
    # OS/2 DLLs must resolve all symbols at build time
    # and we need some from main DAV module
    dav_lock_objects="$dav_lock_objects ../main/mod_dav.la"
    ;;
esac


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_lock" >&5
printf %s "checking whether to enable mod_dav_lock... " >&6; }
    # Check whether --enable-dav-lock was given.
if test ${enable_dav_lock+y}
then :
  enableval=$enable_dav_lock; force_dav_lock=$enableval
else $as_nop
  enable_dav_lock=maybe-all
fi

    _apmod_extra_msg=""
      case "$enable_dav_lock" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_dav_lock" = "static" -o "$enable_dav_lock" = "shared"; then
    :
  elif test "$enable_dav_lock" = "yes"; then
    enable_dav_lock=$module_default
  elif test "$enable_dav_lock" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dav_lock=$module_default
    else
      enable_dav_lock=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dav_lock" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_dav_lock=$module_default
    else
      enable_dav_lock=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dav_lock" = "all" -o "$enable_dav_lock" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dav_lock=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dav_lock=no
    fi
  elif test "$enable_dav_lock" = "reallyall" -o "$enable_dav_lock" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_dav_lock" != "no" ; then
      enable_dav_lock=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dav_lock=no
    fi
  else
    enable_dav_lock=no
  fi
  if test "$enable_dav_lock" != "no"; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking dependencies" >&5
printf "%s\n" "checking dependencies" >&6; }
            if test "$enable_dav" = "no" ; then
                              enable_dav_lock=no
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"mod_dav is disabled but required for mod_dav_lock\"" >&5
printf "%s\n" "$as_me: WARNING: \"mod_dav is disabled but required for mod_dav_lock\"" >&2;}
                            elif test "$enable_dav_lock" = "static" && test "$enable_dav" != "static" ; then
                              enable_dav_lock=$enable_dav
                              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"building mod_dav_lock shared because mod_dav is built shared\"" >&5
printf "%s\n" "$as_me: WARNING: \"building mod_dav_lock shared because mod_dav is built shared\"" >&2;}
                            else
            :
            fi
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dav_lock" >&5
printf %s "checking whether to enable mod_dav_lock... " >&6; }
            if test "$enable_dav_lock" = "no"; then
              if test "$_apmod_required" = "no"; then
                _apmod_extra_msg=" (disabled)"
              else
                as_fn_error $? "mod_dav_lock has been requested but can not be built due to prerequisite failures" "$LINENO" 5
              fi
            fi
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dav_lock$_apmod_extra_msg" >&5
printf "%s\n" "$enable_dav_lock$_apmod_extra_msg" >&6; }
  if test "$enable_dav_lock" != "no"; then
    case "$enable_dav_lock" in
    static*)
      MODLIST="$MODLIST dav_lock"
      if test "dav_lock" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dav_lock"
      if test "" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dav_lock"
      fi
      ;;
    esac


  if test -z "$dav_lock_objects"; then
    objects="mod_dav_lock.lo"
  else
    objects="$dav_lock_objects"
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_dav_lock.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_DAV_LOCK_LDADD)
EOF
      if test ! -z "\$(MOD_DAV_LOCK_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DAV_LOCK_LDADD)\""
    AP_LIBS="\$(MOD_DAV_LOCK_LDADD)"
  else
    apr_addto_bugger="\$(MOD_DAV_LOCK_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_dav_lock.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_LOCK_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LOCK_LDADD"



  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra modules" >&5
printf %s "checking for extra modules... " >&6; }

# Check whether --with-module was given.
if test ${with_module+y}
then :
  withval=$with_module;
    withval=`echo $withval | sed -e 's/,/ /g'`
    for mod in $withval
    do
      modtype=`echo $mod | sed -e's/\(.*\):.*/\1/'`
      pkg=`echo $mod | sed -e's/.*:\(.*\)/\1/'`
      modfilec=`echo $pkg | sed -e 's;^.*/;;'`
      modfileo=`echo $pkg | sed -e 's;^.*/;;' -e 's;\.c$;.o;'`
      modpath_current="modules/$modtype"
      if test "x$mod" != "x$modpath_current/$modfilec"; then
        if test ! -d "$modpath_current"; then
          mkdir $modpath_current
          echo 'include $(top_srcdir)/build/special.mk' > $modpath_current/Makefile.in
        fi
        cp $pkg $modpath_current/$modfilec
      fi
      module=`echo $pkg | sed -e 's;\(.*/\).*mod_\(.*\).c;\2;'`
      objects="mod_$module.lo"
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_$module.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      if test ! -s "$modpath_current/modules.mk"; then
        cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
DISTCLEAN_TARGETS = modules.mk
static = $libname
shared =
EOF
      else
        cat >>$modpath_current/modules.mk.tmp<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
        cat $modpath_current/modules.mk >> $modpath_current/modules.mk.tmp
        rm $modpath_current/modules.mk
        mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
        sed -e "s/\(static =.*\)/\1 $libname/" $modpath_current/modules.mk > $modpath_current/modules.mk.tmp
        rm $modpath_current/modules.mk
        mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
      fi
      MODLIST="$MODLIST $module"
      EXTRA_MODLIST="$EXTRA_MODLIST $modtype:$modfilec"
      MODULE_DIRS="$MODULE_DIRS $modtype"

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"

    done
    if test ! -z "$EXTRA_MODLIST"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: added:$EXTRA_MODLIST" >&5
printf "%s\n" "added:$EXTRA_MODLIST" >&6; }
    fi

else $as_nop
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }

fi





  current_dir=mappers
  modpath_current=modules/mappers
  modpath_static=
  modpath_shared=
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    eval MOD_$var=
  done
  test -d mappers || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_vhost_alias" >&5
printf %s "checking whether to enable mod_vhost_alias... " >&6; }
    # Check whether --enable-vhost-alias was given.
if test ${enable_vhost_alias+y}
then :
  enableval=$enable_vhost_alias; force_vhost_alias=$enableval
else $as_nop
  enable_vhost_alias=most
fi

    _apmod_extra_msg=""
      case "$enable_vhost_alias" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_vhost_alias" = "static" -o "$enable_vhost_alias" = "shared"; then
    :
  elif test "$enable_vhost_alias" = "yes"; then
    enable_vhost_alias=$module_default
  elif test "$enable_vhost_alias" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_vhost_alias=$module_default
    else
      enable_vhost_alias=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_vhost_alias" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_vhost_alias=$module_default
    else
      enable_vhost_alias=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_vhost_alias" = "all" -o "$enable_vhost_alias" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_vhost_alias=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_vhost_alias=no
    fi
  elif test "$enable_vhost_alias" = "reallyall" -o "$enable_vhost_alias" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_vhost_alias" != "no" ; then
      enable_vhost_alias=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_vhost_alias=no
    fi
  else
    enable_vhost_alias=no
  fi
  if test "$enable_vhost_alias" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_vhost_alias$_apmod_extra_msg" >&5
printf "%s\n" "$enable_vhost_alias$_apmod_extra_msg" >&6; }
  if test "$enable_vhost_alias" != "no"; then
    case "$enable_vhost_alias" in
    static*)
      MODLIST="$MODLIST vhost_alias"
      if test "vhost_alias" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES vhost_alias"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},vhost_alias"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_vhost_alias.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_vhost_alias.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_VHOST_ALIAS_LDADD)
EOF
      if test ! -z "\$(MOD_VHOST_ALIAS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_VHOST_ALIAS_LDADD)\""
    AP_LIBS="\$(MOD_VHOST_ALIAS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_VHOST_ALIAS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_vhost_alias.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VHOST_ALIAS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VHOST_ALIAS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_negotiation" >&5
printf %s "checking whether to enable mod_negotiation... " >&6; }
    # Check whether --enable-negotiation was given.
if test ${enable_negotiation+y}
then :
  enableval=$enable_negotiation; force_negotiation=$enableval
else $as_nop
  enable_negotiation=most
fi

    _apmod_extra_msg=""
      case "$enable_negotiation" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_negotiation" = "static" -o "$enable_negotiation" = "shared"; then
    :
  elif test "$enable_negotiation" = "yes"; then
    enable_negotiation=$module_default
  elif test "$enable_negotiation" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_negotiation=$module_default
    else
      enable_negotiation=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_negotiation" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_negotiation=$module_default
    else
      enable_negotiation=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_negotiation" = "all" -o "$enable_negotiation" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_negotiation=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_negotiation=no
    fi
  elif test "$enable_negotiation" = "reallyall" -o "$enable_negotiation" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_negotiation" != "no" ; then
      enable_negotiation=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_negotiation=no
    fi
  else
    enable_negotiation=no
  fi
  if test "$enable_negotiation" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_negotiation$_apmod_extra_msg" >&5
printf "%s\n" "$enable_negotiation$_apmod_extra_msg" >&6; }
  if test "$enable_negotiation" != "no"; then
    case "$enable_negotiation" in
    static*)
      MODLIST="$MODLIST negotiation"
      if test "negotiation" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES negotiation"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},negotiation"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_negotiation.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_negotiation.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_NEGOTIATION_LDADD)
EOF
      if test ! -z "\$(MOD_NEGOTIATION_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_NEGOTIATION_LDADD)\""
    AP_LIBS="\$(MOD_NEGOTIATION_LDADD)"
  else
    apr_addto_bugger="\$(MOD_NEGOTIATION_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_negotiation.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_NEGOTIATION_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_NEGOTIATION_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_dir" >&5
printf %s "checking whether to enable mod_dir... " >&6; }
    # Check whether --enable-dir was given.
if test ${enable_dir+y}
then :
  enableval=$enable_dir; force_dir=$enableval
else $as_nop
  enable_dir=yes
fi

    _apmod_extra_msg=""
      case "$enable_dir" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_dir" = "static" -o "$enable_dir" = "shared"; then
    :
  elif test "$enable_dir" = "yes"; then
    enable_dir=$module_default
  elif test "$enable_dir" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dir=$module_default
    else
      enable_dir=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dir" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_dir=$module_default
    else
      enable_dir=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_dir" = "all" -o "$enable_dir" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_dir=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dir=no
    fi
  elif test "$enable_dir" = "reallyall" -o "$enable_dir" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_dir" != "no" ; then
      enable_dir=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dir=no
    fi
  else
    enable_dir=no
  fi
  if test "$enable_dir" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dir$_apmod_extra_msg" >&5
printf "%s\n" "$enable_dir$_apmod_extra_msg" >&6; }
  if test "$enable_dir" != "no"; then
    case "$enable_dir" in
    static*)
      MODLIST="$MODLIST dir"
      if test "dir" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES dir"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},dir"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_dir.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_dir.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_DIR_LDADD)
EOF
      if test ! -z "\$(MOD_DIR_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_DIR_LDADD)\""
    AP_LIBS="\$(MOD_DIR_LDADD)"
  else
    apr_addto_bugger="\$(MOD_DIR_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_dir.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DIR_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DIR_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_imagemap" >&5
printf %s "checking whether to enable mod_imagemap... " >&6; }
    # Check whether --enable-imagemap was given.
if test ${enable_imagemap+y}
then :
  enableval=$enable_imagemap; force_imagemap=$enableval
else $as_nop
  enable_imagemap=no
fi

    _apmod_extra_msg=""
      case "$enable_imagemap" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_imagemap" = "static" -o "$enable_imagemap" = "shared"; then
    :
  elif test "$enable_imagemap" = "yes"; then
    enable_imagemap=$module_default
  elif test "$enable_imagemap" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_imagemap=$module_default
    else
      enable_imagemap=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_imagemap" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_imagemap=$module_default
    else
      enable_imagemap=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_imagemap" = "all" -o "$enable_imagemap" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_imagemap=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_imagemap=no
    fi
  elif test "$enable_imagemap" = "reallyall" -o "$enable_imagemap" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_imagemap" != "no" ; then
      enable_imagemap=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_imagemap=no
    fi
  else
    enable_imagemap=no
  fi
  if test "$enable_imagemap" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_imagemap$_apmod_extra_msg" >&5
printf "%s\n" "$enable_imagemap$_apmod_extra_msg" >&6; }
  if test "$enable_imagemap" != "no"; then
    case "$enable_imagemap" in
    static*)
      MODLIST="$MODLIST imagemap"
      if test "imagemap" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES imagemap"
      if test "no" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},imagemap"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_imagemap.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_imagemap.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_IMAGEMAP_LDADD)
EOF
      if test ! -z "\$(MOD_IMAGEMAP_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_IMAGEMAP_LDADD)\""
    AP_LIBS="\$(MOD_IMAGEMAP_LDADD)"
  else
    apr_addto_bugger="\$(MOD_IMAGEMAP_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_imagemap.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_IMAGEMAP_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IMAGEMAP_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_actions" >&5
printf %s "checking whether to enable mod_actions... " >&6; }
    # Check whether --enable-actions was given.
if test ${enable_actions+y}
then :
  enableval=$enable_actions; force_actions=$enableval
else $as_nop
  enable_actions=most
fi

    _apmod_extra_msg=""
      case "$enable_actions" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_actions" = "static" -o "$enable_actions" = "shared"; then
    :
  elif test "$enable_actions" = "yes"; then
    enable_actions=$module_default
  elif test "$enable_actions" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_actions=$module_default
    else
      enable_actions=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_actions" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_actions=$module_default
    else
      enable_actions=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_actions" = "all" -o "$enable_actions" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_actions=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_actions=no
    fi
  elif test "$enable_actions" = "reallyall" -o "$enable_actions" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_actions" != "no" ; then
      enable_actions=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_actions=no
    fi
  else
    enable_actions=no
  fi
  if test "$enable_actions" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_actions$_apmod_extra_msg" >&5
printf "%s\n" "$enable_actions$_apmod_extra_msg" >&6; }
  if test "$enable_actions" != "no"; then
    case "$enable_actions" in
    static*)
      MODLIST="$MODLIST actions"
      if test "actions" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES actions"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},actions"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_actions.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_actions.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_ACTIONS_LDADD)
EOF
      if test ! -z "\$(MOD_ACTIONS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ACTIONS_LDADD)\""
    AP_LIBS="\$(MOD_ACTIONS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_ACTIONS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_actions.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ACTIONS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACTIONS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_speling" >&5
printf %s "checking whether to enable mod_speling... " >&6; }
    # Check whether --enable-speling was given.
if test ${enable_speling+y}
then :
  enableval=$enable_speling; force_speling=$enableval
else $as_nop
  enable_speling=most
fi

    _apmod_extra_msg=""
      case "$enable_speling" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_speling" = "static" -o "$enable_speling" = "shared"; then
    :
  elif test "$enable_speling" = "yes"; then
    enable_speling=$module_default
  elif test "$enable_speling" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_speling=$module_default
    else
      enable_speling=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_speling" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_speling=$module_default
    else
      enable_speling=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_speling" = "all" -o "$enable_speling" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_speling=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_speling=no
    fi
  elif test "$enable_speling" = "reallyall" -o "$enable_speling" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_speling" != "no" ; then
      enable_speling=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_speling=no
    fi
  else
    enable_speling=no
  fi
  if test "$enable_speling" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_speling$_apmod_extra_msg" >&5
printf "%s\n" "$enable_speling$_apmod_extra_msg" >&6; }
  if test "$enable_speling" != "no"; then
    case "$enable_speling" in
    static*)
      MODLIST="$MODLIST speling"
      if test "speling" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES speling"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},speling"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_speling.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_speling.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_SPELING_LDADD)
EOF
      if test ! -z "\$(MOD_SPELING_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_SPELING_LDADD)\""
    AP_LIBS="\$(MOD_SPELING_LDADD)"
  else
    apr_addto_bugger="\$(MOD_SPELING_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_speling.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SPELING_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SPELING_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_userdir" >&5
printf %s "checking whether to enable mod_userdir... " >&6; }
    # Check whether --enable-userdir was given.
if test ${enable_userdir+y}
then :
  enableval=$enable_userdir; force_userdir=$enableval
else $as_nop
  enable_userdir=most
fi

    _apmod_extra_msg=""
      case "$enable_userdir" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_userdir" = "static" -o "$enable_userdir" = "shared"; then
    :
  elif test "$enable_userdir" = "yes"; then
    enable_userdir=$module_default
  elif test "$enable_userdir" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_userdir=$module_default
    else
      enable_userdir=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_userdir" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_userdir=$module_default
    else
      enable_userdir=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_userdir" = "all" -o "$enable_userdir" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_userdir=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_userdir=no
    fi
  elif test "$enable_userdir" = "reallyall" -o "$enable_userdir" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_userdir" != "no" ; then
      enable_userdir=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_userdir=no
    fi
  else
    enable_userdir=no
  fi
  if test "$enable_userdir" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_userdir$_apmod_extra_msg" >&5
printf "%s\n" "$enable_userdir$_apmod_extra_msg" >&6; }
  if test "$enable_userdir" != "no"; then
    case "$enable_userdir" in
    static*)
      MODLIST="$MODLIST userdir"
      if test "userdir" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES userdir"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},userdir"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_userdir.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_userdir.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_USERDIR_LDADD)
EOF
      if test ! -z "\$(MOD_USERDIR_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_USERDIR_LDADD)\""
    AP_LIBS="\$(MOD_USERDIR_LDADD)"
  else
    apr_addto_bugger="\$(MOD_USERDIR_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_userdir.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERDIR_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERDIR_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_alias" >&5
printf %s "checking whether to enable mod_alias... " >&6; }
    # Check whether --enable-alias was given.
if test ${enable_alias+y}
then :
  enableval=$enable_alias; force_alias=$enableval
else $as_nop
  enable_alias=yes
fi

    _apmod_extra_msg=""
      case "$enable_alias" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_alias" = "static" -o "$enable_alias" = "shared"; then
    :
  elif test "$enable_alias" = "yes"; then
    enable_alias=$module_default
  elif test "$enable_alias" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_alias=$module_default
    else
      enable_alias=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_alias" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_alias=$module_default
    else
      enable_alias=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_alias" = "all" -o "$enable_alias" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_alias=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_alias=no
    fi
  elif test "$enable_alias" = "reallyall" -o "$enable_alias" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_alias" != "no" ; then
      enable_alias=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_alias=no
    fi
  else
    enable_alias=no
  fi
  if test "$enable_alias" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_alias$_apmod_extra_msg" >&5
printf "%s\n" "$enable_alias$_apmod_extra_msg" >&6; }
  if test "$enable_alias" != "no"; then
    case "$enable_alias" in
    static*)
      MODLIST="$MODLIST alias"
      if test "alias" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES alias"
      if test "yes" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},alias"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_alias.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_alias.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_ALIAS_LDADD)
EOF
      if test ! -z "\$(MOD_ALIAS_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_ALIAS_LDADD)\""
    AP_LIBS="\$(MOD_ALIAS_LDADD)"
  else
    apr_addto_bugger="\$(MOD_ALIAS_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_alias.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ALIAS_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ALIAS_LDADD"



  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_rewrite" >&5
printf %s "checking whether to enable mod_rewrite... " >&6; }
    # Check whether --enable-rewrite was given.
if test ${enable_rewrite+y}
then :
  enableval=$enable_rewrite; force_rewrite=$enableval
else $as_nop
  enable_rewrite=most
fi

    _apmod_extra_msg=""
      case "$enable_rewrite" in
    yes|static|shared)
      _apmod_required="yes"
      ;;
    *)
      _apmod_required="no"
      ;;
  esac
  if test "$enable_rewrite" = "static" -o "$enable_rewrite" = "shared"; then
    :
  elif test "$enable_rewrite" = "yes"; then
    enable_rewrite=$module_default
  elif test "$enable_rewrite" = "few"; then
    if test "$module_selection" = "few" -o "$module_selection" = "most" -o \
            "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_rewrite=$module_default
    else
      enable_rewrite=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_rewrite" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all" -o \
            "$module_selection" = "reallyall"
    then
      enable_rewrite=$module_default
    else
      enable_rewrite=no
    fi
    _apmod_extra_msg=" ($module_selection)"
  elif test "$enable_rewrite" = "all" -o "$enable_rewrite" = "maybe-all"; then
    if test "$module_selection" = "all" -o "$module_selection" = "reallyall"
    then
      enable_rewrite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_rewrite=no
    fi
  elif test "$enable_rewrite" = "reallyall" -o "$enable_rewrite" = "no" ; then
    if test "$module_selection" = "reallyall" -a "$force_rewrite" != "no" ; then
      enable_rewrite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_rewrite=no
    fi
  else
    enable_rewrite=no
  fi
  if test "$enable_rewrite" != "no"; then
            :
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_rewrite$_apmod_extra_msg" >&5
printf "%s\n" "$enable_rewrite$_apmod_extra_msg" >&6; }
  if test "$enable_rewrite" != "no"; then
    case "$enable_rewrite" in
    static*)
      MODLIST="$MODLIST rewrite"
      if test "rewrite" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    *)
      sharedobjs=yes
      shared=yes
      DSO_MODULES="$DSO_MODULES rewrite"
      if test "most" = "yes" ; then
        ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},rewrite"
      fi
      ;;
    esac


  if test -z ""; then
    objects="mod_rewrite.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      # The filename of a convenience library must have a "lib" prefix:
      libname="libmod_rewrite.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects \$(MOD_REWRITE_LDADD)
EOF
      if test ! -z "\$(MOD_REWRITE_LDADD)"; then

  if test "x$AP_LIBS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"\$(MOD_REWRITE_LDADD)\""
    AP_LIBS="\$(MOD_REWRITE_LDADD)"
  else
    apr_addto_bugger="\$(MOD_REWRITE_LDADD)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $AP_LIBS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
        AP_LIBS="$AP_LIBS $i"
      fi
    done
  fi

      fi
    else
      apache_need_shared=yes
      libname="mod_rewrite.la"
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REWRITE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REWRITE_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_DIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST BUILTIN_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLIBPATH_VAR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_SPECIFIC_VARS"



PRE_SHARED_CMDS='echo ""'
POST_SHARED_CMDS='echo ""'


if test "$apache_need_shared" = "yes"; then
  if test -f $ac_aux_dir/ltconfig; then
    $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
  fi
  shared_build="shared-build"
fi


if test "$enable_so" = "yes" -o "$enable_so" = "static"; then
  case $host in
    *-ibm-aix*)

  if test "x$HTTPD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp\""
    HTTPD_LDFLAGS="-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
  else
    apr_addto_bugger="-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $HTTPD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$SH_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting SH_LDFLAGS to \"\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)\""
    SH_LDFLAGS="\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
  else
    apr_addto_bugger="\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $SH_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to SH_LDFLAGS"
        SH_LDFLAGS="$SH_LDFLAGS $i"
      fi
    done
  fi


  if test "x$UTIL_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting UTIL_LDFLAGS to \"-Wl,-uXML_Parse\""
    UTIL_LDFLAGS="-Wl,-uXML_Parse"
  else
    apr_addto_bugger="-Wl,-uXML_Parse"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $UTIL_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to UTIL_LDFLAGS"
        UTIL_LDFLAGS="$UTIL_LDFLAGS $i"
      fi
    done
  fi

      ;;
    *os390)

  if test "x$HTTPD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll\""
    HTTPD_LDFLAGS="--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
  else
    apr_addto_bugger="--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $HTTPD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$SH_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting SH_LDFLAGS to \"--core-dll=$abs_srcdir/apachecore.dll\""
    SH_LDFLAGS="--core-dll=$abs_srcdir/apachecore.dll"
  else
    apr_addto_bugger="--core-dll=$abs_srcdir/apachecore.dll"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $SH_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to SH_LDFLAGS"
        SH_LDFLAGS="$SH_LDFLAGS $i"
      fi
    done
  fi

  esac
  MOD_SO_ENABLED=yes
fi



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PRE_SHARED_CMDS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST POST_SHARED_CMDS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST shared_build"




# Check whether --with-program-name was given.
if test ${with_program_name+y}
then :
  withval=$with_program_name;
  progname="$withval"
else $as_nop

  progname="httpd"
fi


# SuExec parameters

# Check whether --with-suexec-bin was given.
if test ${with_suexec_bin+y}
then :
  withval=$with_suexec_bin;

printf "%s\n" "#define SUEXEC_BIN \"$withval\"" >>confdefs.h


fi



# Check whether --with-suexec-caller was given.
if test ${with_suexec_caller+y}
then :
  withval=$with_suexec_caller;

printf "%s\n" "#define AP_HTTPD_USER \"$withval\"" >>confdefs.h

fi



# Check whether --with-suexec-userdir was given.
if test ${with_suexec_userdir+y}
then :
  withval=$with_suexec_userdir;

printf "%s\n" "#define AP_USERDIR_SUFFIX \"$withval\"" >>confdefs.h

fi



# Check whether --with-suexec-docroot was given.
if test ${with_suexec_docroot+y}
then :
  withval=$with_suexec_docroot;

printf "%s\n" "#define AP_DOC_ROOT \"$withval\"" >>confdefs.h

fi



# Check whether --with-suexec-uidmin was given.
if test ${with_suexec_uidmin+y}
then :
  withval=$with_suexec_uidmin;

printf "%s\n" "#define AP_UID_MIN $withval" >>confdefs.h

fi



# Check whether --with-suexec-gidmin was given.
if test ${with_suexec_gidmin+y}
then :
  withval=$with_suexec_gidmin;

printf "%s\n" "#define AP_GID_MIN $withval" >>confdefs.h

fi



# Check whether --with-suexec-logfile was given.
if test ${with_suexec_logfile+y}
then :
  withval=$with_suexec_logfile;
  if test "x$withval" = "xyes"; then
    as_fn_error $? "log filename required for --with-suexec-logfile option" "$LINENO" 5
  elif test "x$withval" != "xno"; then

printf "%s\n" "#define AP_LOG_EXEC \"$withval\"" >>confdefs.h

  fi

fi



# Check whether --with-suexec-syslog was given.
if test ${with_suexec_syslog+y}
then :
  withval=$with_suexec_syslog;
  if test $withval = "yes"; then
    if test "x${with_suexec_logfile}" != "xno"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: hint: use \"--without-suexec-logfile --with-suexec-syslog\"" >&5
printf "%s\n" "$as_me: hint: use \"--without-suexec-logfile --with-suexec-syslog\"" >&6;}
      as_fn_error $? "suexec does not support both logging to file and syslog" "$LINENO" 5
    fi

  for ac_func in vsyslog
do :
  ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
if test "x$ac_cv_func_vsyslog" = xyes
then :
  printf "%s\n" "#define HAVE_VSYSLOG 1" >>confdefs.h

else $as_nop

       as_fn_error $? "cannot support syslog from suexec without vsyslog()" "$LINENO" 5
fi

done

printf "%s\n" "#define AP_LOG_SYSLOG 1" >>confdefs.h

  fi

fi




# Check whether --with-suexec-safepath was given.
if test ${with_suexec_safepath+y}
then :
  withval=$with_suexec_safepath;

printf "%s\n" "#define AP_SAFE_PATH \"$withval\"" >>confdefs.h

fi



# Check whether --with-suexec-umask was given.
if test ${with_suexec_umask+y}
then :
  withval=$with_suexec_umask;

printf "%s\n" "#define AP_SUEXEC_UMASK 0$withval" >>confdefs.h

fi


INSTALL_SUEXEC=setuid
# Check whether --enable-suexec-capabilities was given.
if test ${enable_suexec_capabilities+y}
then :
  enableval=$enable_suexec_capabilities;
INSTALL_SUEXEC=caps

printf "%s\n" "#define AP_SUEXEC_CAPABILITIES 1" >>confdefs.h


fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_SUEXEC"



if test x${apu_found} != xobsolete; then
  AP_LIBS="$AP_LIBS `$apu_config --avoid-ldap --link-libtool --libs`"
fi
AP_LIBS="$AP_LIBS `$apr_config --link-libtool --libs`"

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_BUILD_SRCLIB_DIRS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_CLEAN_SRCLIB_DIRS"




printf "%s\n" "#define AP_USING_AUTOCONF 1" >>confdefs.h


if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then

printf "%s\n" "#define SINGLE_LISTEN_UNSERIALIZED_ACCEPT 1" >>confdefs.h

fi

if test "$AP_NONBLOCK_WHEN_MULTI_LISTEN" = "1"; then

printf "%s\n" "#define AP_NONBLOCK_WHEN_MULTI_LISTEN 1" >>confdefs.h

fi


apr_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $INCLUDES"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr.h>
#if APR_HAVE_IPV6
YES_IS_DEFINED
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
then :
  ac_cv_define_APR_HAVE_IPV6=yes
else $as_nop
  ac_cv_define_APR_HAVE_IPV6=no
fi
rm -rf conftest*

CPPFLAGS=$apr_old_cppflags


# Check whether --enable-v4-mapped was given.
if test ${enable_v4_mapped+y}
then :
  enableval=$enable_v4_mapped;
  v4mapped=$enableval

else $as_nop

    case $host in
    *freebsd[1234].*)
        v4mapped=yes
        ;;
    *freebsd*|*netbsd*|*openbsd*)
        v4mapped=no
        ;;
    *)
        v4mapped=yes
        ;;
    esac
    if ap_mpm_is_enabled winnt; then
                v4mapped=no
    fi

fi


if test $v4mapped = "yes" -a $ac_cv_define_APR_HAVE_IPV6 = "yes"; then

printf "%s\n" "#define AP_ENABLE_V4_MAPPED 1" >>confdefs.h

fi


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES Makefile modules/Makefile srclib/Makefile"


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/Makefile server/Makefile"


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES support/Makefile"


if test -d ./test; then

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"

fi
if test -d ./test/modules/http2; then

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"

    ac_config_files="$ac_config_files test/pyhttpd/config.ini"

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Restore user-defined environment settings..." >&5
printf "%s\n" "$as_me: Restore user-defined environment settings..." >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}

APACHE_CONF_SEL_CC=${CC}
APACHE_CONF_SEL_CFLAGS="${CFLAGS} ${EXTRA_CFLAGS} ${NOTEST_CFLAGS}"
APACHE_CONF_SEL_CPPFLAGS="${CPPFLAGS} ${EXTRA_CPPFLAGS} ${NOTEST_CPPFLAGS}"
APACHE_CONF_SEL_LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS} ${NOTEST_LDFLAGS}"
APACHE_CONF_SEL_LIBS="${LIBS} ${EXTRA_LIBS} ${NOTEST_LIBS}"
APACHE_CONF_SEL_CPP=${CPP}


set X $apr_ste_save_CPPFLAGS
if test ${#} -eq 1; then
  EXTRA_CPPFLAGS="$CPPFLAGS"
  CPPFLAGS=
else
  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
    EXTRA_CPPFLAGS=
  else
    EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
    CPPFLAGS="$apr_ste_save_CPPFLAGS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
fi



set X $apr_ste_save_CFLAGS
if test ${#} -eq 1; then
  EXTRA_CFLAGS="$CFLAGS"
  CFLAGS=
else
  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
    EXTRA_CFLAGS=
  else
    EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
    CFLAGS="$apr_ste_save_CFLAGS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring CFLAGS to \"$CFLAGS\""
  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
fi



set X $apr_ste_save_CXXFLAGS
if test ${#} -eq 1; then
  EXTRA_CXXFLAGS="$CXXFLAGS"
  CXXFLAGS=
else
  if test "x$apr_ste_save_CXXFLAGS" = "x$CXXFLAGS"; then
    EXTRA_CXXFLAGS=
  else
    EXTRA_CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s%${apr_ste_save_CXXFLAGS}%%"`
    CXXFLAGS="$apr_ste_save_CXXFLAGS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring CXXFLAGS to \"$CXXFLAGS\""
  echo "  setting EXTRA_CXXFLAGS to \"$EXTRA_CXXFLAGS\""
fi



set X $apr_ste_save_LDFLAGS
if test ${#} -eq 1; then
  EXTRA_LDFLAGS="$LDFLAGS"
  LDFLAGS=
else
  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
    EXTRA_LDFLAGS=
  else
    EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
    LDFLAGS="$apr_ste_save_LDFLAGS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring LDFLAGS to \"$LDFLAGS\""
  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
fi



set X $apr_ste_save_LIBS
if test ${#} -eq 1; then
  EXTRA_LIBS="$LIBS"
  LIBS=
else
  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
    EXTRA_LIBS=
  else
    EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
    LIBS="$apr_ste_save_LIBS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring LIBS to \"$LIBS\""
  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
fi



set X $apr_ste_save_INCLUDES
if test ${#} -eq 1; then
  EXTRA_INCLUDES="$INCLUDES"
  INCLUDES=
else
  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
    EXTRA_INCLUDES=
  else
    EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
    INCLUDES="$apr_ste_save_INCLUDES"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring INCLUDES to \"$INCLUDES\""
  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
fi



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Construct makefiles and header files..." >&5
printf "%s\n" "$as_me: Construct makefiles and header files..." >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_VERSION"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_MMN"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST abs_srcdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST bindir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sbindir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST cgidir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logfiledir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exec_prefix"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST datadir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST localstatedir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST mandir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libexecdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdocsdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST manualdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST includedir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST errordir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST iconsdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sysconfdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST installbuilddir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST runtimedir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST proxycachedir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST other_targets"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST prefix"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AWK"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CC"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPP"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXX"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPPFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXXFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LT_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST UTIL_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DEFS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INCLUDES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CPPFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CXXFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CPPFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CXXFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_INCLUDES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INTERNAL_CPPFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBTOOL"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHELL"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST RSYNC"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SVN"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_DIRS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_CLEANDIRS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PORT"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SSLPORT"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB_FILE"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBTOOL"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MK_IMPLIB"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MKDEP"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_PROG_FLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_MODULES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ENABLED_MPM_MODULE"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DSO_MODULES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ENABLED_DSO_MODULES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LOAD_ALL_MODULES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_BINDIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_INCLUDEDIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_VERSION"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_CONFIG"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_BINDIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_INCLUDEDIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_VERSION"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_CONFIG"



  abs_srcdir="`(cd $srcdir && pwd)`"

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating config_vars.mk" >&5
printf "%s\n" "$as_me: creating config_vars.mk" >&6;}
  test -d build || $mkdir_p build
  > build/config_vars.mk
  for i in $APACHE_VAR_SUBST; do
    eval echo "$i = \$$i" >> build/config_vars.mk
  done


rm -f modules.c
echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c


ap_last=
ap_cur="$prefix"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
ap_prefix="${ap_cur}"


printf "%s\n" "#define HTTPD_ROOT \"${ap_prefix}\"" >>confdefs.h


printf "%s\n" "#define SERVER_CONFIG_FILE \"${rel_sysconfdir}/${progname}.conf\"" >>confdefs.h


printf "%s\n" "#define AP_TYPES_CONFIG_FILE \"${rel_sysconfdir}/mime.types\"" >>confdefs.h


perlbin=`$ac_aux_dir/PrintPath perl`
if test "x$perlbin" = "x"; then
    perlbin="/replace/with/path/to/perl/interpreter"
fi



BSD_MAKEFILE=no
ap_make_include=include
ap_make_delimiter=' '
case $host in
*bsdi*)
    # Check whether they've installed GNU make
    if make --version > /dev/null 2>&1; then
        true
    else
        BSD_MAKEFILE=yes
        ap_make_include=.include
        ap_make_delimiter='"'
    fi
    ;;
esac



test -d docs/conf||$mkdir_p docs/conf

ac_config_files="$ac_config_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"

ac_config_commands="$ac_config_commands default"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs



: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else $as_nop
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi



# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl='
'
export as_nl
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi

# The user is always right.
if ${PATH_SEPARATOR+false} :; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi



# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  printf "%s\n" "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error



# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else $as_nop
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else $as_nop
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi


# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by $as_me, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.71,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2021 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    printf "%s\n" "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    printf "%s\n" "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    printf "%s\n" "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  printf "%s\n" "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#

  $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES


_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "include/ap_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ap_config_auto.h" ;;
    "test/pyhttpd/config.ini") CONFIG_FILES="$CONFIG_FILES test/pyhttpd/config.ini" ;;
    "docs/conf/httpd.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/httpd.conf" ;;
    "docs/conf/extra/httpd-autoindex.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-autoindex.conf" ;;
    "docs/conf/extra/httpd-dav.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-dav.conf" ;;
    "docs/conf/extra/httpd-default.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-default.conf" ;;
    "docs/conf/extra/httpd-info.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-info.conf" ;;
    "docs/conf/extra/httpd-languages.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-languages.conf" ;;
    "docs/conf/extra/httpd-manual.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-manual.conf" ;;
    "docs/conf/extra/httpd-mpm.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-mpm.conf" ;;
    "docs/conf/extra/httpd-multilang-errordoc.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-multilang-errordoc.conf" ;;
    "docs/conf/extra/httpd-ssl.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-ssl.conf" ;;
    "docs/conf/extra/httpd-userdir.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-userdir.conf" ;;
    "docs/conf/extra/httpd-vhosts.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-vhosts.conf" ;;
    "docs/conf/extra/proxy-html.conf") CONFIG_FILES="$CONFIG_FILES docs/conf/extra/proxy-html.conf" ;;
    "include/ap_config_layout.h") CONFIG_FILES="$CONFIG_FILES include/ap_config_layout.h" ;;
    "support/apxs") CONFIG_FILES="$CONFIG_FILES support/apxs" ;;
    "support/apachectl") CONFIG_FILES="$CONFIG_FILES support/apachectl" ;;
    "support/dbmmanage") CONFIG_FILES="$CONFIG_FILES support/dbmmanage" ;;
    "support/envvars-std") CONFIG_FILES="$CONFIG_FILES support/envvars-std" ;;
    "support/log_server_status") CONFIG_FILES="$CONFIG_FILES support/log_server_status" ;;
    "support/logresolve.pl") CONFIG_FILES="$CONFIG_FILES support/logresolve.pl" ;;
    "support/phf_abuse_log.cgi") CONFIG_FILES="$CONFIG_FILES support/phf_abuse_log.cgi" ;;
    "support/split-logfile") CONFIG_FILES="$CONFIG_FILES support/split-logfile" ;;
    "build/rules.mk") CONFIG_FILES="$CONFIG_FILES build/rules.mk" ;;
    "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
    "build/config_vars.sh") CONFIG_FILES="$CONFIG_FILES build/config_vars.sh" ;;
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@srcdir@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
printf "%s\n" "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      printf "%s\n" "/* $configure_input  */" >&1 \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    printf "%s\n" "/* $configure_input  */" >&1 \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
 ;;

  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "default":C) true ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit 1
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: summary of build options:

    Server Version: ${HTTPD_VERSION}
    Install prefix: ${prefix}
    C compiler:     ${APACHE_CONF_SEL_CC}
    CFLAGS:         ${APACHE_CONF_SEL_CFLAGS}
    CPPFLAGS:       ${APACHE_CONF_SEL_CPPFLAGS}
    LDFLAGS:        ${APACHE_CONF_SEL_LDFLAGS}
    LIBS:           ${APACHE_CONF_SEL_LIBS}
    C preprocessor: ${APACHE_CONF_SEL_CPP}
" >&5
printf "%s\n" "$as_me: summary of build options:

    Server Version: ${HTTPD_VERSION}
    Install prefix: ${prefix}
    C compiler:     ${APACHE_CONF_SEL_CC}
    CFLAGS:         ${APACHE_CONF_SEL_CFLAGS}
    CPPFLAGS:       ${APACHE_CONF_SEL_CPPFLAGS}
    LDFLAGS:        ${APACHE_CONF_SEL_LDFLAGS}
    LIBS:           ${APACHE_CONF_SEL_LIBS}
    C preprocessor: ${APACHE_CONF_SEL_CPP}
" >&6;}

