#! /bin/sh

# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_default_prefix=/usr/local/apache2
ac_help="$ac_help
  --with-optim="FLAG"       obsolete (use OPTIM environment variable)"
ac_help="$ac_help
  --with-port=PORT        Port on which to listen (default is 80)"
ac_help="$ac_help
  --enable-debug            Turn on debugging and compile time warnings"
ac_help="$ac_help
  --enable-maintainer-mode  Turn on debugging and compile time warnings"
ac_help="$ac_help
  --enable-layout=LAYOUT"
ac_help="$ac_help
  --enable-modules=MODULE-LIST"
ac_help="$ac_help
  --enable-mods-shared=MODULE-LIST"
ac_help="$ac_help
  --disable-access        host-based access control"
ac_help="$ac_help
  --disable-auth          user-based access control"
ac_help="$ac_help
  --enable-auth-anon      anonymous user access"
ac_help="$ac_help
  --enable-auth-dbm       DBM-based access databases"
ac_help="$ac_help
  --enable-auth-db        DB-based access databases"
ac_help="$ac_help
  --enable-auth-digest    RFC2617 Digest authentication"
ac_help="$ac_help
  --enable-file-cache     File cache"
ac_help="$ac_help
  --enable-dav-fs         DAV provider for the filesystem"
ac_help="$ac_help
  --enable-dav            WebDAV protocol handling"
ac_help="$ac_help
  --enable-echo           ECHO server"
ac_help="$ac_help
  --enable-charset-lite   character set translation"
ac_help="$ac_help
  --enable-cache          dynamic file caching"
ac_help="$ac_help
  --enable-disk-cache     disk caching module"
ac_help="$ac_help
  --enable-ext-filter     external filter module"
ac_help="$ac_help
  --enable-case-filter    example uppercase conversion filter"
ac_help="$ac_help
  --enable-generic-hook-export example hook exporter"
ac_help="$ac_help
  --enable-generic-hook-import example hook importer"
ac_help="$ac_help
  --enable-optional-fn-import example optional function importer"
ac_help="$ac_help
  --enable-optional-fn-export example optional function exporter"
ac_help="$ac_help
  --disable-include       Server Side Includes"
ac_help="$ac_help
  --disable-http          HTTP protocol handling"
ac_help="$ac_help
  --disable-mime          mapping of file-extension to MIME"
ac_help="$ac_help
  --disable-log-config    logging configuration"
ac_help="$ac_help
  --enable-vhost-alias    mass hosting module"
ac_help="$ac_help
  --disable-negotiation   content negoatiation"
ac_help="$ac_help
  --disable-dir           directory request handling"
ac_help="$ac_help
  --disable-imap          internal imagemaps"
ac_help="$ac_help
  --disable-actions       Action triggering on requests"
ac_help="$ac_help
  --enable-speling        correct common URL misspellings"
ac_help="$ac_help
  --disable-userdir       mapping of user requests"
ac_help="$ac_help
  --disable-alias         translation of requests"
ac_help="$ac_help
  --enable-rewrite        regex URL translation"
ac_help="$ac_help
  --disable-so            DSO capability"
ac_help="$ac_help
  --enable-so             DSO capability"
ac_help="$ac_help
  --disable-env           clearing/setting of ENV vars"
ac_help="$ac_help
  --enable-mime-magic     automagically determining MIME type"
ac_help="$ac_help
  --enable-cern-meta      CERN-type meta files"
ac_help="$ac_help
  --enable-expires        Expires header control"
ac_help="$ac_help
  --enable-headers        HTTP header control"
ac_help="$ac_help
  --enable-usertrack      user-session tracking"
ac_help="$ac_help
  --enable-unique-id      per-request unique ids"
ac_help="$ac_help
  --disable-setenvif      basing ENV vars on headers"
ac_help="$ac_help
  --enable-tls            TLS/SSL support"
ac_help="$ac_help
 --with-ssl      use a specific SSL library installation "
ac_help="$ac_help
  --with-mpm=MPM          Choose the process model for Apache to use.
               MPM={beos,threaded,prefork,spmt_os2,perchild}"
ac_help="$ac_help
  --disable-status        process/thread monitoring"
ac_help="$ac_help
  --disable-autoindex     directory listing"
ac_help="$ac_help
  --disable-asis          as-is filetypes"
ac_help="$ac_help
  --enable-info           server information"
ac_help="$ac_help
  --enable-suexec         set uid and gid for spawned processes"
ac_help="$ac_help
  --disable-cgid          CGI scripts"
ac_help="$ac_help
  --enable-cgi            CGI scripts"
ac_help="$ac_help
  --disable-cgi           CGI scripts"
ac_help="$ac_help
  --enable-cgid           CGI scripts"
ac_help="$ac_help
  --enable-shared[=PKGS]  build shared libraries [default=no]"
ac_help="$ac_help
  --enable-static[=PKGS]  build static libraries [default=yes]"
ac_help="$ac_help
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
ac_help="$ac_help
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
ac_help="$ac_help
  --disable-libtool-lock  avoid locking (might break parallel builds)"
ac_help="$ac_help
  --with-program-name     alternate executable name"
ac_help="$ac_help
  --with-suexec-caller    User allowed to call SuExec"
ac_help="$ac_help
  --with-suexec-userdir   User subdirectory"
ac_help="$ac_help
  --with-suexec-docroot   SuExec root directory"
ac_help="$ac_help
  --with-suexec-uidmin    Minimal allowed UID"
ac_help="$ac_help
  --with-suexec-gidmin    Minimal allowed GID"
ac_help="$ac_help
  --with-suexec-logfile   Set the logfile"
ac_help="$ac_help
  --with-suexec-safepath  Set the safepath"
ac_help="$ac_help
  --with-suexec-umask     umask for suexec'd process"

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

ac_prev=
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=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case "$ac_option" in

  -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 ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build="$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" ;;

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

  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;

  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_${ac_feature}='$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)
    # 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 << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;

  -host | --host | --hos | --ho)
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host="$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" ;;

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

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    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" ;;

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

  -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 ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;

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

  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=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" ;;

  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    ;;

  *)
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
    ;;

  esac
done

if test -n "$ac_prev"; then
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  esac
done

# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=ABOUT_APACHE

# 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 its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  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
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi




ac_aux_dir=
for ac_dir in srclib/apr/build $srcdir/srclib/apr/build; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in srclib/apr/build $srcdir/srclib/apr/build" 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.












































































































                                                                              




## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
## Copyright (C) 1996-1999 Free Software Foundation, Inc.
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
## As a special exception to the GNU General Public License, if you
## distribute this file as part of a program that contains a
## configuration script generated by Autoconf, you may include it under
## the same distribution terms that you use for the rest of that program.

# serial 40 AC_PROG_LIBTOOL




# AC_LIBTOOL_DLOPEN - enable checks for dlopen support


# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's


# AC_ENABLE_SHARED - implement the --enable-shared flag
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   `yes'.


# AC_DISABLE_SHARED - set the default shared flag to --disable-shared


# AC_ENABLE_STATIC - implement the --enable-static flag
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   `yes'.


# AC_DISABLE_STATIC - set the default static flag to --disable-static



# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   `yes'.


# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install


# AC_PROG_LD - find the path to the GNU or non-GNU linker




# AC_PROG_NM - find the path to a BSD-compatible name lister


# AC_CHECK_LIBM - check for math library


# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library, adds --enable-ltdl-convenience to
# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.


# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library, and adds --enable-ltdl-install to
# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.






 














    



















  # save our work to this point; this allows the sub-package to use it
  cat > confcache <<\EOF
# 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.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# 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.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


  echo "configuring package in srclib/apr now"
  ac_popdir=`pwd`
  ac_abs_srcdir=`(cd $srcdir/srclib/apr && pwd)`
  apr_config_subdirs="srclib/apr"
  test -d srclib/apr || $MKDIR srclib/apr
  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 name correct relative to the subdirectory.
  case "$cache_file" in
  /*) ac_sub_cache_file=$cache_file ;;
  *) # Relative path.
    ac_sub_cache_file="$ac_dots$cache_file" ;;
  esac

  # The eval makes quoting arguments work.
  if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir "$apache_apr_flags --disable-shared"
  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
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi



  # save our work to this point; this allows the sub-package to use it
  cat > confcache <<\EOF
# 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.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# 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.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


  echo "configuring package in srclib/apr-util now"
  ac_popdir=`pwd`
  ac_abs_srcdir=`(cd $srcdir/srclib/apr-util && pwd)`
  apr_config_subdirs="srclib/apr-util"
  test -d srclib/apr-util || $MKDIR srclib/apr-util
  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 name correct relative to the subdirectory.
  case "$cache_file" in
  /*) ac_sub_cache_file=$cache_file ;;
  *) # Relative path.
    ac_sub_cache_file="$ac_dots$cache_file" ;;
  esac

  # The eval makes quoting arguments work.
  if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir "--with-apr=../apr --disable-shared"
  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
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi



  # save our work to this point; this allows the sub-package to use it
  cat > confcache <<\EOF
# 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.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# 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.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


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

      # 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 name correct relative to the subdirectory.
  case "$cache_file" in
  /*) ac_sub_cache_file=$cache_file ;;
  *) # Relative path.
    ac_sub_cache_file="$ac_dots$cache_file" ;;
  esac

  # The eval makes quoting arguments work.
  if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir 
  then :
    echo "srclib/pcre configured properly"
  else
    echo "configure failed for srclib/pcre"
    exit 1
  fi

  cd $ac_popdir

  # grab any updates from the sub-package
  if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi


. ./srclib/apr/APRVARS


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

EOF
  if test -n "$OPTIM"; then
    echo "OPTIM=\"$OPTIM\"; export OPTIM" >> config.nice
  fi

  for arg in $0 "$@"; do
    echo "\"$arg\" \\" >> config.nice
  done
  echo '"$@"' >> config.nice
  chmod +x config.nice



test "$prefix" = "NONE" && prefix='/usr/local/apache2'
test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'

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


if test "$abs_builddir" != "$abs_srcdir"; then
  USE_VPATH=1
fi


# Do some error checking and defaulting for the host and target type.
# The inputs are:
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
#    same time.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
#    as determined by config.guess.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
case $host---$target---$nonopt in
NONE---*---* | *---NONE---* | *---*---NONE) ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac


# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:1267: checking host system type" >&5

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

echo $ac_n "checking target system type""... $ac_c" 1>&6
echo "configure:1288: checking target system type" >&5

target_alias=$target
case "$target_alias" in
NONE)
  case $nonopt in
  NONE) target_alias=$host_alias ;;
  *) target_alias=$nonopt ;;
  esac ;;
esac

target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6

echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:1306: checking build system type" >&5

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac

build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6

test "$host_alias" != "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-


case "$host_alias" in
  *os2*)
      # Use a custom made libtool replacement
      echo "using aplibtool"
      LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
      SH_LIBTOOL="$LIBTOOL --shared --export-all"
      CORE_IMPLIB_FILE="ApacheCoreOS2.la"
      CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
      MK_IMPLIB="emximp"
      SHMOD_EXPORT_EXT="def"
      other_targets="$other_targets os2core"
      ;;
  *)
      SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool --silent'
      ;;
esac


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

  echo "APR hints file rules for $host already applied"

else

  DID_APR_PRELOAD="yes"; export DID_APR_PRELOAD

  echo "Applying APR hints file rules for $host"

  case "$host" in
    *mint)
	
  echo "  Adding \"-DMINT\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DMINT"; export CPPFLAGS

	
  echo "  Adding \"-lportlib -lsocket\" to LIBS"
  LIBS="$LIBS -lportlib -lsocket"; export LIBS

	;;
    *MPE/iX*)
	
  echo "  Adding \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lsvipc -lcurses\" to LIBS"
  LIBS="$LIBS -lsocket -lsvipc -lcurses"; export LIBS

	
  echo "  Adding \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\" to LDFLAGS"
  LDFLAGS="$LDFLAGS -Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""; export LDFLAGS

	
  echo "  Forcing CAT to \"/bin/cat\""
  CAT="/bin/cat"; export CAT

	;;
    *-apple-aux3*)
        
  echo "  Forcing CC to \"gcc\""
  CC="gcc"; export CC

	
  echo "  Adding \"-DAUX3 -D_POSIX_SOURCE\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DAUX3 -D_POSIX_SOURCE"; export CPPFLAGS

	
  echo "  Adding \"-lposix -lbsd\" to LIBS"
  LIBS="$LIBS -lposix -lbsd"; export LIBS

	
  echo "  Adding \"-s\" to LDFLAGS"
  LDFLAGS="$LDFLAGS -s"; export LDFLAGS

	
  echo "  Forcing SHELL to \"/bin/ksh\""
  SHELL="/bin/ksh"; export SHELL

	;;
    *-ibm-aix*)
        case $host in
        i386-ibm-aix*)
	    
  echo "  Adding \"-U__STR__ -DUSEBCOPY\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -U__STR__ -DUSEBCOPY"; export CPPFLAGS

	    ;;
        *-ibm-aix1-2.*)
	    
  echo "  Adding \"-DNEED_RLIM_T -U__STR__\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DNEED_RLIM_T -U__STR__"; export CPPFLAGS

	    ;;
        *-ibm-aix3.*)
	    
  echo "  Adding \"-DNEED_RLIM_T -U__STR__\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DNEED_RLIM_T -U__STR__"; export CPPFLAGS

	    ;;
        *-ibm-aix4.1)
	    
  echo "  Adding \"-DNEED_RLIM_T -U__STR__\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DNEED_RLIM_T -U__STR__"; export CPPFLAGS

	    ;;
        *-ibm-aix4.1.*)
            
  echo "  Adding \"-DNEED_RLIM_T -U__STR__\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DNEED_RLIM_T -U__STR__"; export CPPFLAGS

            ;;
        *-ibm-aix4.2)
	    
  echo "  Adding \"-U__STR__\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -U__STR__"; export CPPFLAGS

	    ;;
        *-ibm-aix4.2.*)
            
  echo "  Adding \"-U__STR__\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -U__STR__"; export CPPFLAGS

            ;;
        *-ibm-aix4.3)
	    
  echo "  Adding \"-D_USE_IRS -U__STR__\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -D_USE_IRS -U__STR__"; export CPPFLAGS

	    ;;
        *-ibm-aix4.3.*)
            
  echo "  Adding \"-D_USE_IRS -U__STR__\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -D_USE_IRS -U__STR__"; export CPPFLAGS

            ;;
        *-ibm-aix*)
	    
  echo "  Adding \"-U__STR__\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -U__STR__"; export CPPFLAGS

	    ;;
        esac
                	# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1474: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
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
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1504: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_prog_rejected=no
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_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 $# -gt 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
    set dummy "$ac_dir/$ac_word" "$@"
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1555: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi

echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1587: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext << EOF

#line 1598 "configure"
#include "confdefs.h"

main(){return(0);}
EOF
if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1629: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:1634: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi

echo "$ac_t""$ac_cv_prog_gcc" 1>&6

if test $ac_cv_prog_gcc = yes; then
  GCC=yes
else
  GCC=
fi

ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:1662: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_cc_g=yes
else
  ac_cv_prog_cc_g=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; 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

        if test "$GCC" != "yes"; then
          
  echo "  Adding \"-qHALT=E -qLANGLVL=extended\" to CFLAGS"
  CFLAGS="$CFLAGS -qHALT=E -qLANGLVL=extended"; export CFLAGS

        fi
	
  if test -z "$apr_iconv_inbuf_const"; then
    echo "  Setting apr_iconv_inbuf_const to \"1\""
    apr_iconv_inbuf_const="1"; export apr_iconv_inbuf_const
  fi

	
  echo "  Adding \"-D_THREAD_SAFE\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_THREAD_SAFE"; export THREAD_CPPFLAGS

        ;;
    *-apollo-*)
	
  echo "  Adding \"-DAPOLLO\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DAPOLLO"; export CPPFLAGS

	;;
    *-dg-dgux*)
	
  echo "  Adding \"-DDGUX\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DDGUX"; export CPPFLAGS

	;;
    *os2_emx*)
	
  echo "  Forcing SHELL to \"sh\""
  SHELL="sh"; export SHELL

	;;
    *-hi-hiux)
	
  echo "  Adding \"-DHIUX\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DHIUX"; export CPPFLAGS

	;;
    *-hp-hpux11.*)
	
  echo "  Adding \"-DHPUX11\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DHPUX11"; export CPPFLAGS

	
  echo "  Adding \"-D_REENTRANT\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"; export THREAD_CPPFLAGS

	;;
    *-hp-hpux10.*)
 	case $host in
 	  *-hp-hpux10.01)
	       
  echo "  Adding \"-DSELECT_NEEDS_CAST\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSELECT_NEEDS_CAST"; export CPPFLAGS

	       ;;	     
 	esac
	
  echo "  Adding \"-D_REENTRANT\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"; export THREAD_CPPFLAGS

	;;
    *-hp-hpux*)
	
  echo "  Adding \"-DHPUX\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DHPUX"; export CPPFLAGS

	
  echo "  Adding \"-D_REENTRANT\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"; export THREAD_CPPFLAGS

	;;
    *-linux-*)
        case `uname -r` in
	    2.2* ) 
  echo "  Adding \"-DLINUX=2\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DLINUX=2"; export CPPFLAGS

	           ;;
	    2.0* ) 
  echo "  Adding \"-DLINUX=2\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DLINUX=2"; export CPPFLAGS

	           ;;
	    1.* )  
  echo "  Adding \"-DLINUX=1\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DLINUX=1"; export CPPFLAGS

	           ;;
	    * )
	           ;;
        esac
	
  echo "  Adding \"-D_REENTRANT\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"; export THREAD_CPPFLAGS

	;;
    *-GNU*)
	
  echo "  Adding \"-DHURD\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DHURD"; export CPPFLAGS

	
  echo "  Adding \"-lcrypt\" to LIBS"
  LIBS="$LIBS -lcrypt"; export LIBS

	;;
    *-lynx-lynxos)
	
  echo "  Adding \"-D__NO_INCLUDE_WARN__ -DLYNXOS\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -D__NO_INCLUDE_WARN__ -DLYNXOS"; export CPPFLAGS

	
  echo "  Adding \"-lbsd -lcrypt\" to LIBS"
  LIBS="$LIBS -lbsd -lcrypt"; export LIBS

	;;
    *486-*-bsdi*)
	
  echo "  Adding \"-m486\" to CFLAGS"
  CFLAGS="$CFLAGS -m486"; export CFLAGS

	;;
    *-openbsd*)
	
  echo "  Adding \"-D_POSIX_THREADS\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_POSIX_THREADS"; export THREAD_CPPFLAGS

	;;
    *-netbsd*)
	
  echo "  Adding \"-DNETBSD\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DNETBSD"; export CPPFLAGS

	
  echo "  Adding \"-lcrypt\" to LIBS"
  LIBS="$LIBS -lcrypt"; export LIBS

	;;
    *-freebsd*)
	case $host in
	    *freebsd2345*)
		
  echo "  Adding \"-funsigned-char\" to CFLAGS"
  CFLAGS="$CFLAGS -funsigned-char"; export CFLAGS

		;;
	esac
	
  echo "  Adding \"-lcrypt\" to LIBS"
  LIBS="$LIBS -lcrypt"; export LIBS

	
  if test -z "$enable_threads"; then
    echo "  Setting enable_threads to \"no\""
    enable_threads="no"; export enable_threads
  fi

	
  echo "  Adding \"-D_REENTRANT -D_THREAD_SAFE\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT -D_THREAD_SAFE"; export THREAD_CPPFLAGS

	;;
    *-next-nextstep*)
	
  if test -z "$OPTIM"; then
    echo "  Setting OPTIM to \"-O\""
    OPTIM="-O"; export OPTIM
  fi

	
  echo "  Adding \"-DNEXT\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DNEXT"; export CPPFLAGS

	;;
    *-next-openstep*)
	
  echo "  Forcing CC to \"cc\""
  CC="cc"; export CC

	
  if test -z "$OPTIM"; then
    echo "  Setting OPTIM to \"-O\""
    OPTIM="-O"; export OPTIM
  fi

	
  echo "  Adding \"-DNEXT\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DNEXT"; export CPPFLAGS

	;;
    *-apple-darwin*)
	
  echo "  Adding \"-DDARWIN\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DDARWIN"; export CPPFLAGS

	;;
    *-dec-osf*)
	
  echo "  Adding \"-DOSF1\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DOSF1"; export CPPFLAGS

	;;
    *-qnx)
	
  echo "  Adding \"-DQNX\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DQNX"; export CPPFLAGS

	
  echo "  Adding \"-N128k -lsocket -lunix\" to LIBS"
  LIBS="$LIBS -N128k -lsocket -lunix"; export LIBS

	;;
    *-qnx32)
        
  echo "  Forcing CC to \"cc -F\""
  CC="cc -F"; export CC

	
  echo "  Adding \"-DQNX\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DQNX"; export CPPFLAGS

	
  echo "  Adding \"-mf -3\" to CFLAGS"
  CFLAGS="$CFLAGS -mf -3"; export CFLAGS

	
  echo "  Adding \"-N128k -lsocket -lunix\" to LIBS"
  LIBS="$LIBS -N128k -lsocket -lunix"; export LIBS

	;;
    *-isc4*)
	
  echo "  Forcing CC to \"gcc\""
  CC="gcc"; export CC

	
  echo "  Adding \"-posix -DISC\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -posix -DISC"; export CPPFLAGS

	
  echo "  Adding \"-posix\" to LDFLAGS"
  LDFLAGS="$LDFLAGS -posix"; export LDFLAGS

	
  echo "  Adding \"-linet\" to LIBS"
  LIBS="$LIBS -linet"; export LIBS

	;;
    *-sco3*)
	
  echo "  Adding \"-DSCO\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSCO"; export CPPFLAGS

	
  echo "  Adding \"-Oacgiltz\" to CFLAGS"
  CFLAGS="$CFLAGS -Oacgiltz"; export CFLAGS

	
  echo "  Adding \"-lPW -lsocket -lmalloc -lcrypt_i\" to LIBS"
  LIBS="$LIBS -lPW -lsocket -lmalloc -lcrypt_i"; export LIBS

	
  echo "  Adding \"-D_REENTRANT\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"; export THREAD_CPPFLAGS

	;;
    *-sco5*)
	
  echo "  Adding \"-DSCO5\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSCO5"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lmalloc -lprot -ltinfo -lx\" to LIBS"
  LIBS="$LIBS -lsocket -lmalloc -lprot -ltinfo -lx"; export LIBS

	
  echo "  Adding \"-D_REENTRANT\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"; export THREAD_CPPFLAGS

	;;
    *-sco_sv*|*-SCO_SV*)
	
  echo "  Adding \"-DSCO\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSCO"; export CPPFLAGS

	
  echo "  Adding \"-lPW -lsocket -lmalloc -lcrypt_i\" to LIBS"
  LIBS="$LIBS -lPW -lsocket -lmalloc -lcrypt_i"; export LIBS

	
  echo "  Adding \"-D_REENTRANT\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"; export THREAD_CPPFLAGS

	;;
    *-solaris2*)
    	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
	
  echo "  Adding \"-DSOLARIS2=$PLATOSVERS\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSOLARIS2=$PLATOSVERS"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl"; export LIBS

	
  if test -z "$apr_iconv_inbuf_const"; then
    echo "  Setting apr_iconv_inbuf_const to \"1\""
    apr_iconv_inbuf_const="1"; export apr_iconv_inbuf_const
  fi

	
  echo "  Adding \"-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"; export THREAD_CPPFLAGS

	;;
    *-sunos4*)
	
  echo "  Adding \"-DSUNOS4 -DUSEBCOPY\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSUNOS4 -DUSEBCOPY"; export CPPFLAGS

	;;
    *-unixware1)
	
  echo "  Adding \"-DUW=100\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DUW=100"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lcrypt\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lcrypt"; export LIBS

	;;
    *-unixware2)
	
  echo "  Adding \"-DUW=200\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DUW=200"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lcrypt -lgen\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lcrypt -lgen"; export LIBS

	;;
    *-unixware211)
	
  echo "  Adding \"-DUW=211\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DUW=211"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lcrypt -lgen\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lcrypt -lgen"; export LIBS

	;;
    *-unixware212)
	
  echo "  Adding \"-DUW=212\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DUW=212"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lcrypt -lgen\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lcrypt -lgen"; export LIBS

	;;
    *-unixware7)
	
  echo "  Adding \"-DUW=700\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DUW=700"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lcrypt -lgen\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lcrypt -lgen"; export LIBS

	;;
    maxion-*-sysv4*)
	
  echo "  Adding \"-DSVR4\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc -lgen\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc -lgen"; export LIBS

	;;
    *-*-powermax*)
	
  echo "  Adding \"-DSVR4\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lgen\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lgen"; export LIBS

	;;
    TPF)
       
  echo "  Forcing CC to \"c89\""
  CC="c89"; export CC

       
  echo "  Adding \"-DTPF -D_POSIX_SOURCE\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DTPF -D_POSIX_SOURCE"; export CPPFLAGS

       ;;
    BS2000*-siemens-sysv4*)
	
  echo "  Forcing CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
  CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"; export CC

	
  echo "  Adding \"-DSVR4 -D_XPG_IV\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4 -D_XPG_IV"; export CPPFLAGS

	;;
    *-siemens-sysv4*)
	
  echo "  Adding \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT -DNEED_UNION_SEMUN\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT -DNEED_UNION_SEMUN"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc"; export LIBS

	;;
    pyramid-pyramid-svr4)
	
  echo "  Adding \"-DSVR4 -DNO_LONG_DOUBLE\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4 -DNO_LONG_DOUBLE"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc"; export LIBS

	;;
    DS/90\ 7000-*-sysv4*)
	
  echo "  Adding \"-DUXPDS\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DUXPDS"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl"; export LIBS

	;;
    *-tandem-sysv4*)
	
  echo "  Adding \"-DSVR4\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl"; export LIBS

	;;
    *-ncr-sysv4)
	
  echo "  Adding \"-DSVR4 -DMPRAS\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4 -DMPRAS"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc -L/usr/ucblib -lucb\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc -L/usr/ucblib -lucb"; export LIBS

	;;
    *-sysv4*)
	
  echo "  Adding \"-DSVR4\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc"; export LIBS

	;;
    88k-encore-sysv4)
	
  echo "  Adding \"-DSVR4 -DENCORE\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4 -DENCORE"; export CPPFLAGS

	
  echo "  Adding \"-lPW\" to LIBS"
  LIBS="$LIBS -lPW"; export LIBS

	;;
    *-uts*)
	PLATOSVERS=`echo $host | sed 's/^.*,//'`
	case $PLATOSVERS in
	    2*) 
  echo "  Adding \"-DUTS21 -DUSEBCOPY\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DUTS21 -DUSEBCOPY"; export CPPFLAGS

	        
  echo "  Adding \"-Xa -eft\" to CFLAGS"
  CFLAGS="$CFLAGS -Xa -eft"; export CFLAGS

	        
  echo "  Adding \"-lsocket -lbsd -la\" to LIBS"
  LIBS="$LIBS -lsocket -lbsd -la"; export LIBS

	        ;;
	    *)  
  echo "  Adding \"-DSVR4\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4"; export CPPFLAGS

	        
  echo "  Adding \"-Xa\" to CFLAGS"
  CFLAGS="$CFLAGS -Xa"; export CFLAGS

	        
  echo "  Adding \"-lsocket -lnsl\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl"; export LIBS

	        ;;
	esac
	;;
    *-ultrix)
	
  echo "  Adding \"-DULTRIX\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DULTRIX"; export CPPFLAGS

	
  echo "  Forcing SHELL to \"/bin/sh5\""
  SHELL="/bin/sh5"; export SHELL

	;;
    *powerpc-tenon-machten*)
	
  echo "  Adding \"-Xlstack=0x14000 -Xldelcsect\" to LDFLAGS"
  LDFLAGS="$LDFLAGS -Xlstack=0x14000 -Xldelcsect"; export LDFLAGS

	;;
    *-machten*)
	
  echo "  Adding \"-stack 0x14000\" to LDFLAGS"
  LDFLAGS="$LDFLAGS -stack 0x14000"; export LDFLAGS

	;;
    *convex-v11*)
	
  echo "  Adding \"-DCONVEXOS11\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DCONVEXOS11"; export CPPFLAGS

	
  echo "  Adding \"-ext\" to CFLAGS"
  CFLAGS="$CFLAGS -ext"; export CFLAGS

	
  if test -z "$OPTIM"; then
    echo "  Setting OPTIM to \"-O1\""
    OPTIM="-O1"; export OPTIM
  fi

	
  echo "  Forcing CC to \"cc\""
  CC="cc"; export CC

	;;
    i860-intel-osf1)
	
  echo "  Adding \"-DPARAGON\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DPARAGON"; export CPPFLAGS

	;;
    *-sequent-ptx2.*.*)
	
  echo "  Adding \"-DSEQUENT=20\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSEQUENT=20"; export CPPFLAGS

	
  echo "  Adding \"-Wc,-pw\" to CFLAGS"
  CFLAGS="$CFLAGS -Wc,-pw"; export CFLAGS

	
  echo "  Adding \"-lsocket -linet -lnsl -lc -lseq\" to LIBS"
  LIBS="$LIBS -lsocket -linet -lnsl -lc -lseq"; export LIBS

	;;
    *-sequent-ptx4.0.*)
	
  echo "  Adding \"-DSEQUENT=40\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSEQUENT=40"; export CPPFLAGS

	
  echo "  Adding \"-Wc,-pw\" to CFLAGS"
  CFLAGS="$CFLAGS -Wc,-pw"; export CFLAGS

	
  echo "  Adding \"-lsocket -linet -lnsl -lc\" to LIBS"
  LIBS="$LIBS -lsocket -linet -lnsl -lc"; export LIBS

	;;
    *-sequent-ptx4.123.*)
	
  echo "  Adding \"-DSEQUENT=41\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSEQUENT=41"; export CPPFLAGS

	
  echo "  Adding \"-Wc,-pw\" to CFLAGS"
  CFLAGS="$CFLAGS -Wc,-pw"; export CFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc"; export LIBS

	;;
    *-sequent-ptx4.4.*)
	
  echo "  Adding \"-DSEQUENT=44\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSEQUENT=44"; export CPPFLAGS

	
  echo "  Adding \"-Wc,-pw\" to CFLAGS"
  CFLAGS="$CFLAGS -Wc,-pw"; export CFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc"; export LIBS

	;;
    *-sequent-ptx4.5.*)
	
  echo "  Adding \"-DSEQUENT=45\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSEQUENT=45"; export CPPFLAGS

	
  echo "  Adding \"-Wc,-pw\" to CFLAGS"
  CFLAGS="$CFLAGS -Wc,-pw"; export CFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc"; export LIBS

	;;
    *-sequent-ptx5.0.*)
	
  echo "  Adding \"-DSEQUENT=50\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSEQUENT=50"; export CPPFLAGS

	
  echo "  Adding \"-Wc,-pw\" to CFLAGS"
  CFLAGS="$CFLAGS -Wc,-pw"; export CFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc"; export LIBS

	;;
    *NEWS-OS*)
	
  echo "  Adding \"-DNEWSOS\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DNEWSOS"; export CPPFLAGS

	;;
    *-riscix)
	
  echo "  Adding \"-DRISCIX\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DRISCIX"; export CPPFLAGS

	
  if test -z "$OPTIM"; then
    echo "  Setting OPTIM to \"-O\""
    OPTIM="-O"; export OPTIM
  fi

	
  if test -z "$MAKE"; then
    echo "  Setting MAKE to \"make\""
    MAKE="make"; export MAKE
  fi

	;;
    *-irix*)
	
  echo "  Adding \"-D_POSIX_THREAD_SAFE_FUNCTIONS\" to THREAD_CPPFLAGS"
  THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_POSIX_THREAD_SAFE_FUNCTIONS"; export THREAD_CPPFLAGS

	;;
    *beos*)
        
  echo "  Adding \"-DBEOS\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DBEOS"; export CPPFLAGS

        PLATOSVERS=`uname -r`
        case $PLATOSVERS in
            5.1)
                
  echo "  Adding \"-I/boot/develop/headers/bone\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -I/boot/develop/headers/bone"; export CPPFLAGS

                
  echo "  Adding \"-nodefaultlibs -L/boot/develop/lib/x86 -L/boot/beos/system/lib\" to LDFLAGS"
  LDFLAGS="$LDFLAGS -nodefaultlibs -L/boot/develop/lib/x86 -L/boot/beos/system/lib"; export LDFLAGS

                
  echo "  Adding \"-lbind -lsocket -lbe -lroot\" to EXTRA_LIBS"
  EXTRA_LIBS="$EXTRA_LIBS -lbind -lsocket -lbe -lroot"; export EXTRA_LIBS

                ;;
	esac
	;;
    4850-*.*)
	
  echo "  Adding \"-DSVR4 -DMPRAS\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4 -DMPRAS"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc -L/usr/ucblib -lucb\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc -L/usr/ucblib -lucb"; export LIBS

	;;
    drs6000*)
	
  echo "  Adding \"-DSVR4\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -DSVR4"; export CPPFLAGS

	
  echo "  Adding \"-lsocket -lnsl -lc -L/usr/ucblib -lucb\" to LIBS"
  LIBS="$LIBS -lsocket -lnsl -lc -L/usr/ucblib -lucb"; export LIBS

	;;
    m88k-*-CX/SX|CYBER)
	
  echo "  Adding \"-D_CX_SX\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -D_CX_SX"; export CPPFLAGS

	
  echo "  Adding \"-Xa\" to CFLAGS"
  CFLAGS="$CFLAGS -Xa"; export CFLAGS

	
  echo "  Forcing CC to \"cc\""
  CC="cc"; export CC

	;;
    *-tandem-oss)
	
  echo "  Adding \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"; export CPPFLAGS

	
  echo "  Forcing CC to \"c89\""
  CC="c89"; export CC

	;;
    *-ibm-os390)
       
  if test -z "$apr_lock_method"; then
    echo "  Setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
    apr_lock_method="USE_SYSVSEM_SERIALIZE"; export apr_lock_method
  fi

       
  if test -z "$apr_process_lock_is_global"; then
    echo "  Setting apr_process_lock_is_global to \"yes\""
    apr_process_lock_is_global="yes"; export apr_process_lock_is_global
  fi

       
  if test -z "$CC"; then
    echo "  Setting CC to \"cc\""
    CC="cc"; export CC
  fi

       
  echo "  Adding \"-U_NO_PROTO -DPTHREAD_ATTR_SETDETACHSTATE_ARG2_ADDR -DPTHREAD_SETS_ERRNO -DPTHREAD_DETACH_ARG1_ADDR -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\" to CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -U_NO_PROTO -DPTHREAD_ATTR_SETDETACHSTATE_ARG2_ADDR -DPTHREAD_SETS_ERRNO -DPTHREAD_DETACH_ARG1_ADDR -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"; export CPPFLAGS

       ;;
  esac
  
  for i in CFLAGS CPPFLAGS LDFLAGS LIBS
  do
    eval APR_TMP=\$EXTRA_$i
    if test -n "$APR_TMP"; then
      eval $i=\"\$$i $APR_TMP\"
      eval export $i
      eval unset EXTRA_${i}
      eval export EXTRA_${i}
    fi
  done

fi


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

  echo "Apache hints file rules for $host already applied"

else

  DID_APACHE_PRELOAD="yes"; export DID_APACHE_PRELOAD

  echo "Applying Apache hints file rules for $host"

  case "$host" in
    *-apple-aux3*)
	
  echo "  Forcing APACHE_MPM to \"prefork\""
  APACHE_MPM="prefork"; export APACHE_MPM

        
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

	;;
    *os2_emx*)
        
  echo "  Forcing APACHE_MPM to \"spmt_os2\""
  APACHE_MPM="spmt_os2"; export APACHE_MPM

        
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

	;;
    *-linux-*)
        case `uname -r` in
	    2.2* ) 
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

	           ;;
	    * )
	           ;;
        esac
	;;
    *486-*-bsdi*)
        
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

	;;
    *-netbsd*)
        
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

	;;
    *-freebsd*)
        
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

	;;
    *-apple-darwin*)
        
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

	;;
    *-dec-osf*)
        
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

	;;
    *-qnx)
        
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

	;;
    *-beos*)
        
  echo "  Forcing APACHE_MPM to \"beos\""
  APACHE_MPM="beos"; export APACHE_MPM

        
  echo "  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"; export SINGLE_LISTEN_UNSERIALIZED_ACCEPT

        ;;
  esac
  
  for i in CFLAGS CPPFLAGS LDFLAGS LIBS
  do
    eval APR_TMP=\$EXTRA_$i
    if test -n "$APR_TMP"; then
      eval $i=\"\$$i $APR_TMP\"
      eval export $i
      eval unset EXTRA_${i}
      eval export EXTRA_${i}
    fi
  done

fi




# Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2587: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$RM" in
  /*)
  ac_cv_path_RM="$RM" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_RM="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
RM="$ac_cv_path_RM"
if test -n "$RM"; then
  echo "$ac_t""$RM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

for ac_prog in mawk gawk 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
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2624: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AWK="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
AWK="$ac_cv_prog_AWK"
if test -n "$AWK"; then
  echo "$ac_t""$AWK" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$AWK" && break
done

# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2656: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
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
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2686: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_prog_rejected=no
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_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 $# -gt 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
    set dummy "$ac_dir/$ac_word" "$@"
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2737: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi

echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:2769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext << EOF

#line 2780 "configure"
#include "confdefs.h"

main(){return(0);}
EOF
if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:2811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:2816: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi

echo "$ac_t""$ac_cv_prog_gcc" 1>&6

if test $ac_cv_prog_gcc = yes; then
  GCC=yes
else
  GCC=
fi

ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:2844: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_cc_g=yes
else
  ac_cv_prog_cc_g=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; 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

echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:2876: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 2891 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 2908 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
#line 2925 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:2967: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if test -f $ac_dir/$ac_prog; then
	  if test $ac_prog = install &&
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS="$ac_save_IFS"

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL="$ac_cv_path_install"
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL="$ac_install_sh"
  fi
fi
echo "$ac_t""$INSTALL" 1>&6

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:3020: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test $host != $build; then
  ac_tool_prefix=${host_alias}-
else
  ac_tool_prefix=
fi

# 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
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3049: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test -z "$ac_cv_prog_RANLIB"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3081: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

else
  RANLIB="true"
fi
fi


#
# Play with CPPFLAGS given what was learned from APR_PRELOAD.
#
# XXX: APR only sets this if threads are enabled.  Either APR should be
# fixed to always set it (most likely), or we should test for threads.
#
if test -n "$THREAD_CPPFLAGS"; then
    CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
fi

echo $ac_n "checking for AIX""... $ac_c" 1>&6
echo "configure:3125: checking for AIX" >&5
cat > conftest.$ac_ext <<EOF
#line 3127 "configure"
#include "confdefs.h"
#ifdef _AIX
  yes
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
#define _ALL_SOURCE 1
EOF

else
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
fi
rm -f conftest*


echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
echo "configure:3149: checking for POSIXized ISC" >&5
if test -d /etc/conf/kconfig.d &&
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
  echo "$ac_t""yes" 1>&6
  ISC=yes # If later tests want to check for ISC.
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF

  if test "$GCC" = yes; then
    CC="$CC -posix"
  else
    CC="$CC -Xp"
  fi
else
  echo "$ac_t""no" 1>&6
  ISC=
fi

ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
echo "configure:3171: checking for minix/config.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3176 "configure"
#include "confdefs.h"
#include <minix/config.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  MINIX=yes
else
  echo "$ac_t""no" 1>&6
MINIX=
fi

if test "$MINIX" = yes; then
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF

  cat >> confdefs.h <<\EOF
#define _POSIX_1_SOURCE 2
EOF

  cat >> confdefs.h <<\EOF
#define _MINIX 1
EOF

fi






echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:3224: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3229 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3254 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3272 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 3293 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
fi
rm -fr conftest*
fi

fi
fi

echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

for ac_hdr in \
string.h \
limits.h \
unistd.h \
sys/socket.h \
pwd.h \
grp.h \
strings.h

do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3339: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3344 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
echo "configure:3376: checking for sys/wait.h that is POSIX.1 compatible" >&5
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3381 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
#ifndef WEXITSTATUS
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif
#ifndef WIFEXITED
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
int main() {
int s;
wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
if { (eval echo configure:3397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_sys_wait_h=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_sys_wait_h=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
if test $ac_cv_header_sys_wait_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SYS_WAIT_H 1
EOF

fi



echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:3420: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3425 "configure"
#include "confdefs.h"

int main() {

/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX 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";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 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;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_const=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

fi




for ac_func in \
initgroups \

do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3502: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3507 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
echo "configure:3556: checking for gethostbyname in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3564 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
gethostbyname()
; return 0; }
EOF
if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lnsl $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
echo "configure:3603: checking for gethostname in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3611 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostname();

int main() {
gethostname()
; return 0; }
EOF
if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lnsl $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:3650: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lsocket  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3658 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char socket();

int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lsocket $LIBS"

else
  echo "$ac_t""no" 1>&6
fi


# Check whether --with-optim or --without-optim was given.
if test "${with_optim+set}" = set; then
  withval="$with_optim"
  { echo "configure: error: 'option --with-optim is obsolete; use OPTIM environment variable instead'" 1>&2; exit 1; }
fi


# Check whether --with-port or --without-port was given.
if test "${with_port+set}" = set; then
  withval="$with_port"
  if test "$withval" = "yes"; then { echo "configure: error: 'option --with-port requires a value (the TCP port number)'" 1>&2; exit 1; }; else PORT="$withval"; fi
else
  PORT=80
fi


# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
  enableval="$enable_debug"
  CFLAGS="$CFLAGS -g"; if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
fi


# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
  enableval="$enable_maintainer_mode"
  CFLAGS="$CFLAGS -g"; if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DAP_DEBUG"; fi
fi



# Check whether --enable-layout or --disable-layout was given.
if test "${enable_layout+set}" = set; then
  enableval="$enable_layout"
  
  LAYOUT=$enableval

fi


if test -z "$LAYOUT"; then
  # XXX FIXME: this isn't a complete list of things that have to be set to 
  # create the Apache layout in config.layout, and it really should just
  # use what is specified in config.layout instead of duping it.
  htdocsdir='$(prefix)/htdocs'
  iconsdir='$(prefix)/icons'
  cgidir='$(prefix)/cgi-bin'
  logfiledir='$(prefix)/logs'
  sysconfdir='${prefix}/conf'
  libexecdir='${prefix}/modules'
  layout_name=Apache
else 
  
  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
  pldconf=./config.pld
  
  sed -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
  . $pldconf
  rm $pldconf
  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
             sysconfdir datadir iconsdir htdocsdir cgidir includedir \
             localstatedir runtimedir logfiledir proxycachedir; 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/apache"
      fi
    fi
    eval "$var='$val'"
  done
  

fi

echo $ac_n "checking for chosen layout""... $ac_c" 1>&6
echo "configure:3799: checking for chosen layout" >&5
echo "$ac_t""$layout_name" 1>&6


  module_selection=default
  module_default=yes

  # Check whether --enable-modules or --disable-modules was given.
if test "${enable_modules+set}" = set; then
  enableval="$enable_modules"
  
    for i in $enableval; do
      if test "$i" = "all" -o "$i" = "most"; then
        module_selection=$i
      else
        eval "enable_$i=yes"
      fi
    done
  
fi

  
  # Check whether --enable-mods-shared or --disable-mods-shared was given.
if test "${enable_mods_shared+set}" = set; then
  enableval="$enable_mods_shared"
  
    for i in $enableval; do
      if test "$i" = "all" -o "$i" = "most"; then
        module_selection=$i
        module_default=shared
      else
    	eval "enable_$i=shared"
      fi
    done
  
fi



INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/srclib/apr/include -I\$(top_srcdir)/srclib/apr-util/include"
if test -n "$USE_VPATH"; then
  INCLUDES="$INCLUDES -I\$(top_builddir)/include -I\$(top_builddir)/srclib/apr/include"
fi




  current_dir=aaa
  modpath_current=modules/aaa
  modpath_static=
  modpath_shared=
  test -d aaa || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_access""... $ac_c" 1>&6
echo "configure:3856: checking whether to enable mod_access" >&5
    # Check whether --enable-access or --disable-access was given.
if test "${enable_access+set}" = set; then
  enableval="$enable_access"
  :
else
  enable_access=yes
fi

    _apmod_extra_msg=""
  if test "$enable_access" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_access=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_access=no
    fi
  elif test "$enable_access" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_access=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_access=no
    fi
  fi
  echo "$ac_t""$enable_access$_apmod_extra_msg" 1>&6
  if test "$enable_access" != "no"; then
    case "$enable_access" in
    shared*)
      enable_access=`echo $ac_n $enable_access$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST access"
      if test "access" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_access.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_access.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_access.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_auth""... $ac_c" 1>&6
echo "configure:3928: checking whether to enable mod_auth" >&5
    # Check whether --enable-auth or --disable-auth was given.
if test "${enable_auth+set}" = set; then
  enableval="$enable_auth"
  :
else
  enable_auth=yes
fi

    _apmod_extra_msg=""
  if test "$enable_auth" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_auth=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth=no
    fi
  elif test "$enable_auth" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_auth=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_auth=no
    fi
  fi
  echo "$ac_t""$enable_auth$_apmod_extra_msg" 1>&6
  if test "$enable_auth" != "no"; then
    case "$enable_auth" in
    shared*)
      enable_auth=`echo $ac_n $enable_auth$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST auth"
      if test "auth" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_auth.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_auth.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_auth.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_auth_anon""... $ac_c" 1>&6
echo "configure:4000: checking whether to enable mod_auth_anon" >&5
    # Check whether --enable-auth-anon or --disable-auth-anon was given.
if test "${enable_auth_anon+set}" = set; then
  enableval="$enable_auth_anon"
  :
else
  enable_auth_anon=maybe-all
fi

    _apmod_extra_msg=""
  if test "$enable_auth_anon" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_auth_anon=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_anon=no
    fi
  elif test "$enable_auth_anon" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_auth_anon=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_auth_anon=no
    fi
  fi
  echo "$ac_t""$enable_auth_anon$_apmod_extra_msg" 1>&6
  if test "$enable_auth_anon" != "no"; then
    case "$enable_auth_anon" in
    shared*)
      enable_auth_anon=`echo $ac_n $enable_auth_anon$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST auth_anon"
      if test "auth_anon" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_auth_anon.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_auth_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
EOF
    else
      apache_need_shared=yes
      libname="mod_auth_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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_auth_dbm""... $ac_c" 1>&6
echo "configure:4072: checking whether to enable mod_auth_dbm" >&5
    # Check whether --enable-auth-dbm or --disable-auth-dbm was given.
if test "${enable_auth_dbm+set}" = set; then
  enableval="$enable_auth_dbm"
  :
else
  enable_auth_dbm=maybe-all
fi

    _apmod_extra_msg=""
  if test "$enable_auth_dbm" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_auth_dbm=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_dbm=no
    fi
  elif test "$enable_auth_dbm" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_auth_dbm=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_auth_dbm=no
    fi
  fi
  echo "$ac_t""$enable_auth_dbm$_apmod_extra_msg" 1>&6
  if test "$enable_auth_dbm" != "no"; then
    case "$enable_auth_dbm" in
    shared*)
      enable_auth_dbm=`echo $ac_n $enable_auth_dbm$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST auth_dbm"
      if test "auth_dbm" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_auth_dbm.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_auth_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
EOF
    else
      apache_need_shared=yes
      libname="mod_auth_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 
EOF
    fi
  fi

  fi



  echo $ac_n "checking whether to enable mod_auth_db""... $ac_c" 1>&6
echo "configure:4145: checking whether to enable mod_auth_db" >&5
    # Check whether --enable-auth-db or --disable-auth-db was given.
if test "${enable_auth_db+set}" = set; then
  enableval="$enable_auth_db"
  :
else
  enable_auth_db=maybe-all
fi

    _apmod_extra_msg=""
  if test "$enable_auth_db" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_auth_db=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_db=no
    fi
  elif test "$enable_auth_db" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_auth_db=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_auth_db=no
    fi
  fi
  echo "$ac_t""$enable_auth_db$_apmod_extra_msg" 1>&6
  if test "$enable_auth_db" != "no"; then
    case "$enable_auth_db" in
    shared*)
      enable_auth_db=`echo $ac_n $enable_auth_db$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST auth_db"
      if test "auth_db" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  for ac_hdr in db.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4189: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4194 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

  echo $ac_n "checking for main in -ldb""... $ac_c" 1>&6
echo "configure:4226: checking for main in -ldb" >&5
ac_lib_var=`echo db'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldb  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4234 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
EOF
if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo db | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-ldb $LIBS"

else
  echo "$ac_t""no" 1>&6
fi


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

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_auth_db.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_auth_db.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 
EOF
    fi
  fi

  fi
 


  echo $ac_n "checking whether to enable mod_auth_digest""... $ac_c" 1>&6
echo "configure:4302: checking whether to enable mod_auth_digest" >&5
    # Check whether --enable-auth-digest or --disable-auth-digest was given.
if test "${enable_auth_digest+set}" = set; then
  enableval="$enable_auth_digest"
  :
else
  enable_auth_digest=most
fi

    _apmod_extra_msg=""
  if test "$enable_auth_digest" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_auth_digest=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_auth_digest=no
    fi
  elif test "$enable_auth_digest" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_auth_digest=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_auth_digest=no
    fi
  fi
  echo "$ac_t""$enable_auth_digest$_apmod_extra_msg" 1>&6
  if test "$enable_auth_digest" != "no"; then
    case "$enable_auth_digest" in
    shared*)
      enable_auth_digest=`echo $ac_n $enable_auth_digest$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST auth_digest"
      if test "auth_digest" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_auth_digest.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


LTFLAGS="$LTFLAGS -export-dynamic"


  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $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=
  test -d cache || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_file_cache""... $ac_c" 1>&6
echo "configure:4400: checking whether to enable mod_file_cache" >&5
    # Check whether --enable-file-cache or --disable-file-cache was given.
if test "${enable_file_cache+set}" = set; then
  enableval="$enable_file_cache"
  :
else
  enable_file_cache=no
fi

    _apmod_extra_msg=""
  if test "$enable_file_cache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_file_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_file_cache=no
    fi
  elif test "$enable_file_cache" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_file_cache=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_file_cache=no
    fi
  fi
  echo "$ac_t""$enable_file_cache$_apmod_extra_msg" 1>&6
  if test "$enable_file_cache" != "no"; then
    case "$enable_file_cache" in
    shared*)
      enable_file_cache=`echo $ac_n $enable_file_cache$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST file_cache"
      if test "file_cache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_file_cache.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


LTFLAGS="$LTFLAGS -export-dynamic"


  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  fi
  
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"





  current_dir=dav/fs
  modpath_current=modules/dav/fs
  modpath_static=
  modpath_shared=
  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"


  echo $ac_n "checking whether to enable mod_dav_fs""... $ac_c" 1>&6
echo "configure:4499: checking whether to enable mod_dav_fs" >&5
    # Check whether --enable-dav-fs or --disable-dav-fs was given.
if test "${enable_dav_fs+set}" = set; then
  enableval="$enable_dav_fs"
  :
else
  enable_dav_fs=most
fi

    _apmod_extra_msg=""
  if test "$enable_dav_fs" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_dav_fs=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dav_fs=no
    fi
  elif test "$enable_dav_fs" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_dav_fs=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_dav_fs=no
    fi
  fi
  echo "$ac_t""$enable_dav_fs$_apmod_extra_msg" 1>&6
  if test "$enable_dav_fs" != "no"; then
    case "$enable_dav_fs" in
    shared*)
      enable_dav_fs=`echo $ac_n $enable_dav_fs$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST dav_fs"
      if test "dav_fs" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    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
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $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=
  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"


  echo $ac_n "checking whether to enable mod_dav""... $ac_c" 1>&6
echo "configure:4596: checking whether to enable mod_dav" >&5
    # Check whether --enable-dav or --disable-dav was given.
if test "${enable_dav+set}" = set; then
  enableval="$enable_dav"
  :
else
  enable_dav=most
fi

    _apmod_extra_msg=""
  if test "$enable_dav" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_dav=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dav=no
    fi
  elif test "$enable_dav" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_dav=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_dav=no
    fi
  fi
  echo "$ac_t""$enable_dav$_apmod_extra_msg" 1>&6
  if test "$enable_dav" != "no"; then
    case "$enable_dav" in
    shared*)
      enable_dav=`echo $ac_n $enable_dav$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST dav"
      if test "dav" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    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
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


if test "$enable_dav" != "no"; then
  apache_need_expat=yes

  INCLUDES="$INCLUDES -I\$(top_srcdir)/$modpath_current"
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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $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=
  test -d echo || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_echo""... $ac_c" 1>&6
echo "configure:4699: checking whether to enable mod_echo" >&5
    # Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
  enableval="$enable_echo"
  :
else
  enable_echo=no
fi

    _apmod_extra_msg=""
  if test "$enable_echo" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_echo=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_echo=no
    fi
  elif test "$enable_echo" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_echo=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_echo=no
    fi
  fi
  echo "$ac_t""$enable_echo$_apmod_extra_msg" 1>&6
  if test "$enable_echo" != "no"; then
    case "$enable_echo" in
    shared*)
      enable_echo=`echo $ac_n $enable_echo$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST echo"
      if test "echo" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_echo.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


LTFLAGS="$LTFLAGS -export-dynamic"


  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $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=
  test -d experimental || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_charset_lite""... $ac_c" 1>&6
echo "configure:4796: checking whether to enable mod_charset_lite" >&5
    # Check whether --enable-charset-lite or --disable-charset-lite was given.
if test "${enable_charset_lite+set}" = set; then
  enableval="$enable_charset_lite"
  :
else
  enable_charset_lite=no
fi

    _apmod_extra_msg=""
  if test "$enable_charset_lite" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_charset_lite=no
    fi
  elif test "$enable_charset_lite" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_charset_lite=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_charset_lite=no
    fi
  fi
  echo "$ac_t""$enable_charset_lite$_apmod_extra_msg" 1>&6
  if test "$enable_charset_lite" != "no"; then
    case "$enable_charset_lite" in
    shared*)
      enable_charset_lite=`echo $ac_n $enable_charset_lite$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST charset_lite"
      if test "charset_lite" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_charset_lite.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_cache""... $ac_c" 1>&6
echo "configure:4868: checking whether to enable mod_cache" >&5
    # Check whether --enable-cache or --disable-cache was given.
if test "${enable_cache+set}" = set; then
  enableval="$enable_cache"
  :
else
  enable_cache=no
fi

    _apmod_extra_msg=""
  if test "$enable_cache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cache=no
    fi
  elif test "$enable_cache" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cache=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cache=no
    fi
  fi
  echo "$ac_t""$enable_cache$_apmod_extra_msg" 1>&6
  if test "$enable_cache" != "no"; then
    case "$enable_cache" in
    shared*)
      enable_cache=`echo $ac_n $enable_cache$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST cache"
      if test "cache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_cache.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_disk_cache""... $ac_c" 1>&6
echo "configure:4940: checking whether to enable mod_disk_cache" >&5
    # Check whether --enable-disk-cache or --disable-disk-cache was given.
if test "${enable_disk_cache+set}" = set; then
  enableval="$enable_disk_cache"
  :
else
  enable_disk_cache=no
fi

    _apmod_extra_msg=""
  if test "$enable_disk_cache" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_disk_cache=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_disk_cache=no
    fi
  elif test "$enable_disk_cache" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_disk_cache=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_disk_cache=no
    fi
  fi
  echo "$ac_t""$enable_disk_cache$_apmod_extra_msg" 1>&6
  if test "$enable_disk_cache" != "no"; then
    case "$enable_disk_cache" in
    shared*)
      enable_disk_cache=`echo $ac_n $enable_disk_cache$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST disk_cache"
      if test "disk_cache" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_disk_cache.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_disk_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
EOF
    else
      apache_need_shared=yes
      libname="mod_disk_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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_ext_filter""... $ac_c" 1>&6
echo "configure:5012: checking whether to enable mod_ext_filter" >&5
    # Check whether --enable-ext-filter or --disable-ext-filter was given.
if test "${enable_ext_filter+set}" = set; then
  enableval="$enable_ext_filter"
  :
else
  enable_ext_filter=no
fi

    _apmod_extra_msg=""
  if test "$enable_ext_filter" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_ext_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_ext_filter=no
    fi
  elif test "$enable_ext_filter" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_ext_filter=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_ext_filter=no
    fi
  fi
  echo "$ac_t""$enable_ext_filter$_apmod_extra_msg" 1>&6
  if test "$enable_ext_filter" != "no"; then
    case "$enable_ext_filter" in
    shared*)
      enable_ext_filter=`echo $ac_n $enable_ext_filter$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST ext_filter"
      if test "ext_filter" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_ext_filter.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_case_filter""... $ac_c" 1>&6
echo "configure:5084: checking whether to enable mod_case_filter" >&5
    # Check whether --enable-case-filter or --disable-case-filter was given.
if test "${enable_case_filter+set}" = set; then
  enableval="$enable_case_filter"
  :
else
  enable_case_filter=no
fi

    _apmod_extra_msg=""
  if test "$enable_case_filter" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_case_filter=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_case_filter=no
    fi
  elif test "$enable_case_filter" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_case_filter=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_case_filter=no
    fi
  fi
  echo "$ac_t""$enable_case_filter$_apmod_extra_msg" 1>&6
  if test "$enable_case_filter" != "no"; then
    case "$enable_case_filter" in
    shared*)
      enable_case_filter=`echo $ac_n $enable_case_filter$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST case_filter"
      if test "case_filter" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_case_filter.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_generic_hook_export""... $ac_c" 1>&6
echo "configure:5156: checking whether to enable mod_generic_hook_export" >&5
    # Check whether --enable-generic-hook-export or --disable-generic-hook-export was given.
if test "${enable_generic_hook_export+set}" = set; then
  enableval="$enable_generic_hook_export"
  :
else
  enable_generic_hook_export=no
fi

    _apmod_extra_msg=""
  if test "$enable_generic_hook_export" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_generic_hook_export=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_generic_hook_export=no
    fi
  elif test "$enable_generic_hook_export" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_generic_hook_export=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_generic_hook_export=no
    fi
  fi
  echo "$ac_t""$enable_generic_hook_export$_apmod_extra_msg" 1>&6
  if test "$enable_generic_hook_export" != "no"; then
    case "$enable_generic_hook_export" in
    shared*)
      enable_generic_hook_export=`echo $ac_n $enable_generic_hook_export$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST generic_hook_export"
      if test "generic_hook_export" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_generic_hook_export.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_generic_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
EOF
    else
      apache_need_shared=yes
      libname="mod_generic_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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_generic_hook_import""... $ac_c" 1>&6
echo "configure:5228: checking whether to enable mod_generic_hook_import" >&5
    # Check whether --enable-generic-hook-import or --disable-generic-hook-import was given.
if test "${enable_generic_hook_import+set}" = set; then
  enableval="$enable_generic_hook_import"
  :
else
  enable_generic_hook_import=no
fi

    _apmod_extra_msg=""
  if test "$enable_generic_hook_import" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_generic_hook_import=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_generic_hook_import=no
    fi
  elif test "$enable_generic_hook_import" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_generic_hook_import=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_generic_hook_import=no
    fi
  fi
  echo "$ac_t""$enable_generic_hook_import$_apmod_extra_msg" 1>&6
  if test "$enable_generic_hook_import" != "no"; then
    case "$enable_generic_hook_import" in
    shared*)
      enable_generic_hook_import=`echo $ac_n $enable_generic_hook_import$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST generic_hook_import"
      if test "generic_hook_import" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_generic_hook_import.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_generic_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
EOF
    else
      apache_need_shared=yes
      libname="mod_generic_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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_optional_fn_import""... $ac_c" 1>&6
echo "configure:5300: checking whether to enable mod_optional_fn_import" >&5
    # Check whether --enable-optional-fn-import or --disable-optional-fn-import was given.
if test "${enable_optional_fn_import+set}" = set; then
  enableval="$enable_optional_fn_import"
  :
else
  enable_optional_fn_import=no
fi

    _apmod_extra_msg=""
  if test "$enable_optional_fn_import" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; 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" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_optional_fn_import=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_optional_fn_import=no
    fi
  fi
  echo "$ac_t""$enable_optional_fn_import$_apmod_extra_msg" 1>&6
  if test "$enable_optional_fn_import" != "no"; then
    case "$enable_optional_fn_import" in
    shared*)
      enable_optional_fn_import=`echo $ac_n $enable_optional_fn_import$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST optional_fn_import"
      if test "optional_fn_import" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    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
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_optional_fn_export""... $ac_c" 1>&6
echo "configure:5372: checking whether to enable mod_optional_fn_export" >&5
    # Check whether --enable-optional-fn-export or --disable-optional-fn-export was given.
if test "${enable_optional_fn_export+set}" = set; then
  enableval="$enable_optional_fn_export"
  :
else
  enable_optional_fn_export=no
fi

    _apmod_extra_msg=""
  if test "$enable_optional_fn_export" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; 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" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_optional_fn_export=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_optional_fn_export=no
    fi
  fi
  echo "$ac_t""$enable_optional_fn_export$_apmod_extra_msg" 1>&6
  if test "$enable_optional_fn_export" != "no"; then
    case "$enable_optional_fn_export" in
    shared*)
      enable_optional_fn_export=`echo $ac_n $enable_optional_fn_export$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST optional_fn_export"
      if test "optional_fn_export" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    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
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $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=
  test -d filters || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_include""... $ac_c" 1>&6
echo "configure:5468: checking whether to enable mod_include" >&5
    # Check whether --enable-include or --disable-include was given.
if test "${enable_include+set}" = set; then
  enableval="$enable_include"
  :
else
  enable_include=yes
fi

    _apmod_extra_msg=""
  if test "$enable_include" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_include=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_include=no
    fi
  elif test "$enable_include" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_include=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_include=no
    fi
  fi
  echo "$ac_t""$enable_include$_apmod_extra_msg" 1>&6
  if test "$enable_include" != "no"; then
    case "$enable_include" in
    shared*)
      enable_include=`echo $ac_n $enable_include$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST include"
      if test "include" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_include.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


LTFLAGS="$LTFLAGS -export-dynamic"


  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $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=
  test -d http || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


http_objects="http_core.lo http_protocol.lo http_request.lo"


  echo $ac_n "checking whether to enable mod_http""... $ac_c" 1>&6
echo "configure:5567: checking whether to enable mod_http" >&5
    # Check whether --enable-http or --disable-http was given.
if test "${enable_http+set}" = set; then
  enableval="$enable_http"
  :
else
  enable_http=yes
fi

    _apmod_extra_msg=""
  if test "$enable_http" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_http=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_http=no
    fi
  elif test "$enable_http" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_http=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_http=no
    fi
  fi
  echo "$ac_t""$enable_http$_apmod_extra_msg" 1>&6
  if test "$enable_http" != "no"; then
    case "$enable_http" in
    shared*)
      enable_http=`echo $ac_n $enable_http$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST http"
      if test "http" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    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
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_mime""... $ac_c" 1>&6
echo "configure:5639: checking whether to enable mod_mime" >&5
    # Check whether --enable-mime or --disable-mime was given.
if test "${enable_mime+set}" = set; then
  enableval="$enable_mime"
  :
else
  enable_mime=yes
fi

    _apmod_extra_msg=""
  if test "$enable_mime" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_mime=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_mime=no
    fi
  elif test "$enable_mime" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_mime=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_mime=no
    fi
  fi
  echo "$ac_t""$enable_mime$_apmod_extra_msg" 1>&6
  if test "$enable_mime" != "no"; then
    case "$enable_mime" in
    shared*)
      enable_mime=`echo $ac_n $enable_mime$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST mime"
      if test "mime" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_mime.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $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=
  test -d loggers || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk

	

  echo $ac_n "checking whether to enable mod_log_config""... $ac_c" 1>&6
echo "configure:5736: checking whether to enable mod_log_config" >&5
    # Check whether --enable-log-config or --disable-log-config was given.
if test "${enable_log_config+set}" = set; then
  enableval="$enable_log_config"
  :
else
  enable_log_config=yes
fi

    _apmod_extra_msg=""
  if test "$enable_log_config" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_log_config=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_log_config=no
    fi
  elif test "$enable_log_config" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_log_config=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_log_config=no
    fi
  fi
  echo "$ac_t""$enable_log_config$_apmod_extra_msg" 1>&6
  if test "$enable_log_config" != "no"; then
    case "$enable_log_config" in
    shared*)
      enable_log_config=`echo $ac_n $enable_log_config$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST log_config"
      if test "log_config" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_log_config.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  fi
  
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  current_dir=mappers
  modpath_current=modules/mappers
  modpath_static=
  modpath_shared=
  test -d mappers || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_vhost_alias""... $ac_c" 1>&6
echo "configure:5832: checking whether to enable mod_vhost_alias" >&5
    # Check whether --enable-vhost-alias or --disable-vhost-alias was given.
if test "${enable_vhost_alias+set}" = set; then
  enableval="$enable_vhost_alias"
  :
else
  enable_vhost_alias=maybe-all
fi

    _apmod_extra_msg=""
  if test "$enable_vhost_alias" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_vhost_alias=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_vhost_alias=no
    fi
  elif test "$enable_vhost_alias" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_vhost_alias=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_vhost_alias=no
    fi
  fi
  echo "$ac_t""$enable_vhost_alias$_apmod_extra_msg" 1>&6
  if test "$enable_vhost_alias" != "no"; then
    case "$enable_vhost_alias" in
    shared*)
      enable_vhost_alias=`echo $ac_n $enable_vhost_alias$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST vhost_alias"
      if test "vhost_alias" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_vhost_alias.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_negotiation""... $ac_c" 1>&6
echo "configure:5904: checking whether to enable mod_negotiation" >&5
    # Check whether --enable-negotiation or --disable-negotiation was given.
if test "${enable_negotiation+set}" = set; then
  enableval="$enable_negotiation"
  :
else
  enable_negotiation=yes
fi

    _apmod_extra_msg=""
  if test "$enable_negotiation" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_negotiation=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_negotiation=no
    fi
  elif test "$enable_negotiation" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_negotiation=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_negotiation=no
    fi
  fi
  echo "$ac_t""$enable_negotiation$_apmod_extra_msg" 1>&6
  if test "$enable_negotiation" != "no"; then
    case "$enable_negotiation" in
    shared*)
      enable_negotiation=`echo $ac_n $enable_negotiation$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST negotiation"
      if test "negotiation" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_negotiation.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_dir""... $ac_c" 1>&6
echo "configure:5976: checking whether to enable mod_dir" >&5
    # Check whether --enable-dir or --disable-dir was given.
if test "${enable_dir+set}" = set; then
  enableval="$enable_dir"
  :
else
  enable_dir=yes
fi

    _apmod_extra_msg=""
  if test "$enable_dir" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_dir=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_dir=no
    fi
  elif test "$enable_dir" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_dir=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_dir=no
    fi
  fi
  echo "$ac_t""$enable_dir$_apmod_extra_msg" 1>&6
  if test "$enable_dir" != "no"; then
    case "$enable_dir" in
    shared*)
      enable_dir=`echo $ac_n $enable_dir$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST dir"
      if test "dir" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_dir.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_imap""... $ac_c" 1>&6
echo "configure:6048: checking whether to enable mod_imap" >&5
    # Check whether --enable-imap or --disable-imap was given.
if test "${enable_imap+set}" = set; then
  enableval="$enable_imap"
  :
else
  enable_imap=yes
fi

    _apmod_extra_msg=""
  if test "$enable_imap" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_imap=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_imap=no
    fi
  elif test "$enable_imap" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_imap=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_imap=no
    fi
  fi
  echo "$ac_t""$enable_imap$_apmod_extra_msg" 1>&6
  if test "$enable_imap" != "no"; then
    case "$enable_imap" in
    shared*)
      enable_imap=`echo $ac_n $enable_imap$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST imap"
      if test "imap" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_imap.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_imap.la"
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
      modpath_static="$modpath_static $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $objects
	\$(MOD_LINK) $objects
EOF
    else
      apache_need_shared=yes
      libname="mod_imap.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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_actions""... $ac_c" 1>&6
echo "configure:6120: checking whether to enable mod_actions" >&5
    # Check whether --enable-actions or --disable-actions was given.
if test "${enable_actions+set}" = set; then
  enableval="$enable_actions"
  :
else
  enable_actions=yes
fi

    _apmod_extra_msg=""
  if test "$enable_actions" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_actions=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_actions=no
    fi
  elif test "$enable_actions" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_actions=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_actions=no
    fi
  fi
  echo "$ac_t""$enable_actions$_apmod_extra_msg" 1>&6
  if test "$enable_actions" != "no"; then
    case "$enable_actions" in
    shared*)
      enable_actions=`echo $ac_n $enable_actions$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST actions"
      if test "actions" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_actions.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_speling""... $ac_c" 1>&6
echo "configure:6192: checking whether to enable mod_speling" >&5
    # Check whether --enable-speling or --disable-speling was given.
if test "${enable_speling+set}" = set; then
  enableval="$enable_speling"
  :
else
  enable_speling=maybe-all
fi

    _apmod_extra_msg=""
  if test "$enable_speling" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_speling=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_speling=no
    fi
  elif test "$enable_speling" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_speling=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_speling=no
    fi
  fi
  echo "$ac_t""$enable_speling$_apmod_extra_msg" 1>&6
  if test "$enable_speling" != "no"; then
    case "$enable_speling" in
    shared*)
      enable_speling=`echo $ac_n $enable_speling$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST speling"
      if test "speling" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_speling.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_userdir""... $ac_c" 1>&6
echo "configure:6264: checking whether to enable mod_userdir" >&5
    # Check whether --enable-userdir or --disable-userdir was given.
if test "${enable_userdir+set}" = set; then
  enableval="$enable_userdir"
  :
else
  enable_userdir=yes
fi

    _apmod_extra_msg=""
  if test "$enable_userdir" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_userdir=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_userdir=no
    fi
  elif test "$enable_userdir" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_userdir=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_userdir=no
    fi
  fi
  echo "$ac_t""$enable_userdir$_apmod_extra_msg" 1>&6
  if test "$enable_userdir" != "no"; then
    case "$enable_userdir" in
    shared*)
      enable_userdir=`echo $ac_n $enable_userdir$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST userdir"
      if test "userdir" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_userdir.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_alias""... $ac_c" 1>&6
echo "configure:6336: checking whether to enable mod_alias" >&5
    # Check whether --enable-alias or --disable-alias was given.
if test "${enable_alias+set}" = set; then
  enableval="$enable_alias"
  :
else
  enable_alias=yes
fi

    _apmod_extra_msg=""
  if test "$enable_alias" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_alias=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_alias=no
    fi
  elif test "$enable_alias" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_alias=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_alias=no
    fi
  fi
  echo "$ac_t""$enable_alias$_apmod_extra_msg" 1>&6
  if test "$enable_alias" != "no"; then
    case "$enable_alias" in
    shared*)
      enable_alias=`echo $ac_n $enable_alias$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST alias"
      if test "alias" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_alias.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi



  echo $ac_n "checking whether to enable mod_rewrite""... $ac_c" 1>&6
echo "configure:6409: checking whether to enable mod_rewrite" >&5
    # Check whether --enable-rewrite or --disable-rewrite was given.
if test "${enable_rewrite+set}" = set; then
  enableval="$enable_rewrite"
  :
else
  enable_rewrite=most
fi

    _apmod_extra_msg=""
  if test "$enable_rewrite" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_rewrite=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_rewrite=no
    fi
  elif test "$enable_rewrite" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_rewrite=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_rewrite=no
    fi
  fi
  echo "$ac_t""$enable_rewrite$_apmod_extra_msg" 1>&6
  if test "$enable_rewrite" != "no"; then
    case "$enable_rewrite" in
    shared*)
      enable_rewrite=`echo $ac_n $enable_rewrite$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST rewrite"
      if test "rewrite" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_DBM_REWRITEMAP"

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

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


if test "$sharedobjs" = "yes"; then
    
  echo $ac_n "checking whether to enable mod_so""... $ac_c" 1>&6
echo "configure:6485: checking whether to enable mod_so" >&5
    # Check whether --enable-so or --disable-so was given.
if test "${enable_so+set}" = set; then
  enableval="$enable_so"
  :
else
  enable_so=yes
fi

    _apmod_extra_msg=""
  if test "$enable_so" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_so=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_so=no
    fi
  elif test "$enable_so" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_so=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_so=no
    fi
  fi
  echo "$ac_t""$enable_so$_apmod_extra_msg" 1>&6
  if test "$enable_so" != "no"; then
    case "$enable_so" in
    shared*)
      enable_so=`echo $ac_n $enable_so$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST so"
      if test "so" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_so.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi

else
    
  echo $ac_n "checking whether to enable mod_so""... $ac_c" 1>&6
echo "configure:6558: checking whether to enable mod_so" >&5
    # Check whether --enable-so or --disable-so was given.
if test "${enable_so+set}" = set; then
  enableval="$enable_so"
  :
else
  enable_so=no
fi

    _apmod_extra_msg=""
  if test "$enable_so" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_so=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_so=no
    fi
  elif test "$enable_so" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_so=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_so=no
    fi
  fi
  echo "$ac_t""$enable_so$_apmod_extra_msg" 1>&6
  if test "$enable_so" != "no"; then
    case "$enable_so" in
    shared*)
      enable_so=`echo $ac_n $enable_so$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST so"
      if test "so" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_so.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi

fi
cat > confcache <<\EOF
# 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.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# 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.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache



  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $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=
  test -d metadata || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_env""... $ac_c" 1>&6
echo "configure:6702: checking whether to enable mod_env" >&5
    # Check whether --enable-env or --disable-env was given.
if test "${enable_env+set}" = set; then
  enableval="$enable_env"
  :
else
  enable_env=yes
fi

    _apmod_extra_msg=""
  if test "$enable_env" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_env=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_env=no
    fi
  elif test "$enable_env" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_env=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_env=no
    fi
  fi
  echo "$ac_t""$enable_env$_apmod_extra_msg" 1>&6
  if test "$enable_env" != "no"; then
    case "$enable_env" in
    shared*)
      enable_env=`echo $ac_n $enable_env$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST env"
      if test "env" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_env.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_mime_magic""... $ac_c" 1>&6
echo "configure:6774: checking whether to enable mod_mime_magic" >&5
    # Check whether --enable-mime-magic or --disable-mime-magic was given.
if test "${enable_mime_magic+set}" = set; then
  enableval="$enable_mime_magic"
  :
else
  enable_mime_magic=maybe-all
fi

    _apmod_extra_msg=""
  if test "$enable_mime_magic" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_mime_magic=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_mime_magic=no
    fi
  elif test "$enable_mime_magic" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_mime_magic=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_mime_magic=no
    fi
  fi
  echo "$ac_t""$enable_mime_magic$_apmod_extra_msg" 1>&6
  if test "$enable_mime_magic" != "no"; then
    case "$enable_mime_magic" in
    shared*)
      enable_mime_magic=`echo $ac_n $enable_mime_magic$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST mime_magic"
      if test "mime_magic" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_mime_magic.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_cern_meta""... $ac_c" 1>&6
echo "configure:6846: checking whether to enable mod_cern_meta" >&5
    # Check whether --enable-cern-meta or --disable-cern-meta was given.
if test "${enable_cern_meta+set}" = set; then
  enableval="$enable_cern_meta"
  :
else
  enable_cern_meta=maybe-all
fi

    _apmod_extra_msg=""
  if test "$enable_cern_meta" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cern_meta=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cern_meta=no
    fi
  elif test "$enable_cern_meta" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cern_meta=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cern_meta=no
    fi
  fi
  echo "$ac_t""$enable_cern_meta$_apmod_extra_msg" 1>&6
  if test "$enable_cern_meta" != "no"; then
    case "$enable_cern_meta" in
    shared*)
      enable_cern_meta=`echo $ac_n $enable_cern_meta$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST cern_meta"
      if test "cern_meta" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_cern_meta.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_expires""... $ac_c" 1>&6
echo "configure:6918: checking whether to enable mod_expires" >&5
    # Check whether --enable-expires or --disable-expires was given.
if test "${enable_expires+set}" = set; then
  enableval="$enable_expires"
  :
else
  enable_expires=most
fi

    _apmod_extra_msg=""
  if test "$enable_expires" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_expires=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_expires=no
    fi
  elif test "$enable_expires" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_expires=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_expires=no
    fi
  fi
  echo "$ac_t""$enable_expires$_apmod_extra_msg" 1>&6
  if test "$enable_expires" != "no"; then
    case "$enable_expires" in
    shared*)
      enable_expires=`echo $ac_n $enable_expires$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST expires"
      if test "expires" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_expires.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_headers""... $ac_c" 1>&6
echo "configure:6990: checking whether to enable mod_headers" >&5
    # Check whether --enable-headers or --disable-headers was given.
if test "${enable_headers+set}" = set; then
  enableval="$enable_headers"
  :
else
  enable_headers=most
fi

    _apmod_extra_msg=""
  if test "$enable_headers" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_headers=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_headers=no
    fi
  elif test "$enable_headers" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_headers=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_headers=no
    fi
  fi
  echo "$ac_t""$enable_headers$_apmod_extra_msg" 1>&6
  if test "$enable_headers" != "no"; then
    case "$enable_headers" in
    shared*)
      enable_headers=`echo $ac_n $enable_headers$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST headers"
      if test "headers" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_headers.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi



  echo $ac_n "checking whether to enable mod_usertrack""... $ac_c" 1>&6
echo "configure:7063: checking whether to enable mod_usertrack" >&5
    # Check whether --enable-usertrack or --disable-usertrack was given.
if test "${enable_usertrack+set}" = set; then
  enableval="$enable_usertrack"
  :
else
  enable_usertrack=maybe-all
fi

    _apmod_extra_msg=""
  if test "$enable_usertrack" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_usertrack=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_usertrack=no
    fi
  elif test "$enable_usertrack" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_usertrack=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_usertrack=no
    fi
  fi
  echo "$ac_t""$enable_usertrack$_apmod_extra_msg" 1>&6
  if test "$enable_usertrack" != "no"; then
    case "$enable_usertrack" in
    shared*)
      enable_usertrack=`echo $ac_n $enable_usertrack$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST usertrack"
      if test "usertrack" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  for ac_hdr in sys/times.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7107: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7112 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

  for ac_func in times
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7146: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7151 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


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

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi



  echo $ac_n "checking whether to enable mod_unique_id""... $ac_c" 1>&6
echo "configure:7232: checking whether to enable mod_unique_id" >&5
    # Check whether --enable-unique-id or --disable-unique-id was given.
if test "${enable_unique_id+set}" = set; then
  enableval="$enable_unique_id"
  :
else
  enable_unique_id=maybe-all
fi

    _apmod_extra_msg=""
  if test "$enable_unique_id" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_unique_id=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_unique_id=no
    fi
  elif test "$enable_unique_id" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_unique_id=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_unique_id=no
    fi
  fi
  echo "$ac_t""$enable_unique_id$_apmod_extra_msg" 1>&6
  if test "$enable_unique_id" != "no"; then
    case "$enable_unique_id" in
    shared*)
      enable_unique_id=`echo $ac_n $enable_unique_id$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST unique_id"
      if test "unique_id" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_unique_id.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_setenvif""... $ac_c" 1>&6
echo "configure:7304: checking whether to enable mod_setenvif" >&5
    # Check whether --enable-setenvif or --disable-setenvif was given.
if test "${enable_setenvif+set}" = set; then
  enableval="$enable_setenvif"
  :
else
  enable_setenvif=yes
fi

    _apmod_extra_msg=""
  if test "$enable_setenvif" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_setenvif=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_setenvif=no
    fi
  elif test "$enable_setenvif" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_setenvif=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_setenvif=no
    fi
  fi
  echo "$ac_t""$enable_setenvif$_apmod_extra_msg" 1>&6
  if test "$enable_setenvif" != "no"; then
    case "$enable_setenvif" in
    shared*)
      enable_setenvif=`echo $ac_n $enable_setenvif$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST setenvif"
      if test "setenvif" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_setenvif.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


LTFLAGS="$LTFLAGS -export-dynamic"


  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  fi
  
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"



echo $ac_n "checking for SSL library""... $ac_c" 1>&6
echo "configure:7390: checking for SSL library" >&5

  current_dir=tls
  modpath_current=modules/tls
  modpath_static=
  modpath_shared=
  test -d tls || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk


tls_objs="mod_tls.lo openssl_state_machine.lo"


  echo $ac_n "checking whether to enable mod_tls""... $ac_c" 1>&6
echo "configure:7404: checking whether to enable mod_tls" >&5
    # Check whether --enable-tls or --disable-tls was given.
if test "${enable_tls+set}" = set; then
  enableval="$enable_tls"
  :
else
  enable_tls=no
fi

    _apmod_extra_msg=""
  if test "$enable_tls" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_tls=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_tls=no
    fi
  elif test "$enable_tls" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_tls=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_tls=no
    fi
  fi
  echo "$ac_t""$enable_tls$_apmod_extra_msg" 1>&6
  if test "$enable_tls" != "no"; then
    case "$enable_tls" in
    shared*)
      enable_tls=`echo $ac_n $enable_tls$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST tls"
      if test "tls" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
  # Check whether --with-ssl or --without-ssl was given.
if test "${with_ssl+set}" = set; then
  withval="$with_ssl"
  
      searchfile="$withval/inc/ssl.h"
      if test -f $searchfile ; then
          INCLUDES="$INCLUDES -I$withval/inc"
          LIBS="$LIBS -L$withval -lsslc"
          ssl_lib="SSLC"
      else
          searchfile="$withval/ssl/ssl.h"
          if test -f $searchfile ; then
              INCLUDES="$INCLUDES -I$withval/include"
              LIBS="$LIBS -L$withval -lssl -lcrypto"
              ssl_lib="OpenSSL"
          else
              searchfile="$withval/openssl/ssl.h"
              if test -f $searchfile ; then
                  INCLUDES="$INCLUDES -I$withval/openssl"
                  LIBS="$LIBS -L$withval -lssl -lcrypto"
                  ssl_lib="OpenSSL"
              else
                  { echo "configure: error: no - Unable to locate $withval/inc/ssl.h" 1>&2; exit 1; }
              fi
          fi
      fi
      echo "$ac_t""found $ssl_lib" 1>&6
  
else
  
      { echo "configure: error: --with-ssl not given" 1>&2; exit 1; }
   
fi
  
    
  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
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  fi
  
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"



if test "$OS" = "beos" ; then
    CFLAGS="$CFLAGS -DBEOS"
fi

echo $ac_n "checking for target platform""... $ac_c" 1>&6
echo "configure:7526: checking for target platform" >&5

#PLATFORM=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`
PLATFORM=$host

case "$PLATFORM" in
*beos*)
  OS="beos"
  OS_DIR=$OS
  ;;
*pc-os2_emx*)
  OS="os2"
  OS_DIR=$OS
  ;;
bs2000*)
  OS="unix"
  OS_DIR=bs2000  # only the OS_DIR is platform specific.
  ;;
*)
  OS="unix"
  OS_DIR=$OS;;
esac

echo "$ac_t""$OS" 1>&6

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/$OS_DIR/Makefile"


if test "$OS" = "os2" ; then
  CFLAGS="$CFLAGS -DOS2 -O2"
fi

if test "$OS" = "unix" ; then
    
  echo $ac_n "checking for rlim_t""... $ac_c" 1>&6
echo "configure:7561: checking for rlim_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
    cat > conftest.$ac_ext <<EOF
#line 7567 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>

int main() {
rlim_t spoon;
; return 0; }
EOF
if { (eval echo configure:7578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  
      ac_cv_type_rlim_t=yes
    
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_rlim_t=no
    
fi
rm -f conftest*
  
fi

echo "$ac_t""$ac_cv_type_rlim_t" 1>&6
  if test "$ac_cv_type_rlim_t" = "no" ; then
      cat >> confdefs.h <<\EOF
#define rlim_t int
EOF

  fi


    for ac_hdr in sys/time.h sys/resource.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7607: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7612 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


    for ac_func in setsid killpg
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7647: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7652 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:7675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

fi


echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
echo "configure:7703: checking for gethostname in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7711 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostname();

int main() {
gethostname()
; return 0; }
EOF
if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
 
  
  unique=`echo $ac_n "nsl$ac_c" | tr -cd a-zA-Z0-9`
  cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
    eval "LIBRARY$unique=set"
    
    EXTRA_LIBS="$EXTRA_LIBS -lnsl"
  
  fi

 
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:7756: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lsocket  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7764 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char socket();

int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
 
  
  unique=`echo $ac_n "socket$ac_c" | tr -cd a-zA-Z0-9`
  cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
    eval "LIBRARY$unique=set"
    
    EXTRA_LIBS="$EXTRA_LIBS -lsocket"
  
  fi

 
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking for gethostbyaddr in -lnsl""... $ac_c" 1>&6
echo "configure:7809: checking for gethostbyaddr in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostbyaddr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7817 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyaddr();

int main() {
gethostbyaddr()
; return 0; }
EOF
if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
 
  
  unique=`echo $ac_n "nsl$ac_c" | tr -cd a-zA-Z0-9`
  cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
    eval "LIBRARY$unique=set"
    
    EXTRA_LIBS="$EXTRA_LIBS -lnsl"
  
  fi

 
else
  echo "$ac_t""no" 1>&6
fi




for ac_hdr in bstring.h unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7867: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7872 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done



echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
echo "configure:7906: checking for tm_gmtoff in struct tm" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm_gmtoff'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7911 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_cv_struct_tm>
int main() {
struct tm tm; tm.tm_gmtoff;
; return 0; }
EOF
if { (eval echo configure:7919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_struct_tm_gmtoff=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_struct_tm_gmtoff=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_struct_tm_gmtoff" 1>&6

if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
    cat >> confdefs.h <<\EOF
#define HAVE_GMTOFF 
EOF

fi


for ac_func in syslog
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7944: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7949 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


    for ac_hdr in sys/times.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:8001: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8006 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

    for ac_func in times
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8040: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8045 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


echo $ac_n "checking which MPM to use""... $ac_c" 1>&6
echo "configure:8094: checking which MPM to use" >&5
# Check whether --with-mpm or --without-mpm was given.
if test "${with_mpm+set}" = set; then
  withval="$with_mpm"
  
  APACHE_MPM=$withval

else
  
  if test "x$APACHE_MPM" = "x"; then
    APACHE_MPM=threaded
  fi

fi

echo "$ac_t""$APACHE_MPM" 1>&6

apache_cv_mpm=$APACHE_MPM
	
if test "$apache_cv_mpm" = "threaded" -o "$apache_cv_mpm" = "perchild"; then
  
    cat > conftest.$ac_ext <<EOF
#line 8116 "configure"
#include "confdefs.h"

    #include "srclib/apr/include/apr.h"
    #if APR_HAS_THREADS
    YES_IS_DEFINED
    #endif
    
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "YES_IS_DEFINED" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_define_APR_HAS_THREADS=yes
else
  rm -rf conftest*
  ac_cv_define_APR_HAS_THREADS=no
fi
rm -f conftest*



  if test "x$ac_cv_define_APR_HAS_THREADS" = "xno"; then
    echo "$ac_t""The currently selected MPM requires threads which your system seems to lack" 1>&6
    echo $ac_n "checking checking for replacement""... $ac_c" 1>&6
echo "configure:8140: checking checking for replacement" >&5
    echo "$ac_t""prefork selected" 1>&6
    apache_cv_mpm=prefork
  fi
fi


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/Makefile"


MPM_NAME=$apache_cv_mpm
MPM_DIR=server/mpm/$MPM_NAME
MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_NAME"
  

MODLIST="$MODLIST mpm_${MPM_NAME}"


if test "$MPM_NAME" = "prefork" ; then
    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"

fi




  current_dir=generators
  modpath_current=modules/generators
  modpath_static=
  modpath_shared=
  test -d generators || $srcdir/build/mkdir.sh $modpath_current
  > $modpath_current/modules.mk



  echo $ac_n "checking whether to enable mod_status""... $ac_c" 1>&6
echo "configure:8180: checking whether to enable mod_status" >&5
    # Check whether --enable-status or --disable-status was given.
if test "${enable_status+set}" = set; then
  enableval="$enable_status"
  :
else
  enable_status=yes
fi

    _apmod_extra_msg=""
  if test "$enable_status" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_status=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_status=no
    fi
  elif test "$enable_status" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_status=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_status=no
    fi
  fi
  echo "$ac_t""$enable_status$_apmod_extra_msg" 1>&6
  if test "$enable_status" != "no"; then
    case "$enable_status" in
    shared*)
      enable_status=`echo $ac_n $enable_status$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST status"
      if test "status" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_status.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_autoindex""... $ac_c" 1>&6
echo "configure:8252: checking whether to enable mod_autoindex" >&5
    # Check whether --enable-autoindex or --disable-autoindex was given.
if test "${enable_autoindex+set}" = set; then
  enableval="$enable_autoindex"
  :
else
  enable_autoindex=yes
fi

    _apmod_extra_msg=""
  if test "$enable_autoindex" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_autoindex=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_autoindex=no
    fi
  elif test "$enable_autoindex" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_autoindex=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_autoindex=no
    fi
  fi
  echo "$ac_t""$enable_autoindex$_apmod_extra_msg" 1>&6
  if test "$enable_autoindex" != "no"; then
    case "$enable_autoindex" in
    shared*)
      enable_autoindex=`echo $ac_n $enable_autoindex$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST autoindex"
      if test "autoindex" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_autoindex.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_asis""... $ac_c" 1>&6
echo "configure:8324: checking whether to enable mod_asis" >&5
    # Check whether --enable-asis or --disable-asis was given.
if test "${enable_asis+set}" = set; then
  enableval="$enable_asis"
  :
else
  enable_asis=yes
fi

    _apmod_extra_msg=""
  if test "$enable_asis" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_asis=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_asis=no
    fi
  elif test "$enable_asis" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_asis=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_asis=no
    fi
  fi
  echo "$ac_t""$enable_asis$_apmod_extra_msg" 1>&6
  if test "$enable_asis" != "no"; then
    case "$enable_asis" in
    shared*)
      enable_asis=`echo $ac_n $enable_asis$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST asis"
      if test "asis" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_asis.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_info""... $ac_c" 1>&6
echo "configure:8396: checking whether to enable mod_info" >&5
    # Check whether --enable-info or --disable-info was given.
if test "${enable_info+set}" = set; then
  enableval="$enable_info"
  :
else
  enable_info=most
fi

    _apmod_extra_msg=""
  if test "$enable_info" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_info=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_info=no
    fi
  elif test "$enable_info" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_info=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_info=no
    fi
  fi
  echo "$ac_t""$enable_info$_apmod_extra_msg" 1>&6
  if test "$enable_info" != "no"; then
    case "$enable_info" in
    shared*)
      enable_info=`echo $ac_n $enable_info$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST info"
      if test "info" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_info.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


  echo $ac_n "checking whether to enable mod_suexec""... $ac_c" 1>&6
echo "configure:8468: checking whether to enable mod_suexec" >&5
    # Check whether --enable-suexec or --disable-suexec was given.
if test "${enable_suexec+set}" = set; then
  enableval="$enable_suexec"
  :
else
  enable_suexec=no
fi

    _apmod_extra_msg=""
  if test "$enable_suexec" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_suexec=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_suexec=no
    fi
  elif test "$enable_suexec" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_suexec=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_suexec=no
    fi
  fi
  echo "$ac_t""$enable_suexec$_apmod_extra_msg" 1>&6
  if test "$enable_suexec" != "no"; then
    case "$enable_suexec" in
    shared*)
      enable_suexec=`echo $ac_n $enable_suexec$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST suexec"
      if test "suexec" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    
              other_targets=suexec  
    
  if test -z ""; then
    objects="mod_suexec.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi


LTFLAGS="$LTFLAGS -export-dynamic"

if test "$apache_cv_mpm" = "threaded" -o "$apache_cv_mpm" = "perchild"; then
# if we are using a threaded MPM, we will get better performance with
# mod_cgid, so make it the default.
    
  echo $ac_n "checking whether to enable mod_cgid""... $ac_c" 1>&6
echo "configure:8547: checking whether to enable mod_cgid" >&5
    # Check whether --enable-cgid or --disable-cgid was given.
if test "${enable_cgid+set}" = set; then
  enableval="$enable_cgid"
  :
else
  enable_cgid=yes
fi

    _apmod_extra_msg=""
  if test "$enable_cgid" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cgid=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgid=no
    fi
  elif test "$enable_cgid" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cgid=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cgid=no
    fi
  fi
  echo "$ac_t""$enable_cgid$_apmod_extra_msg" 1>&6
  if test "$enable_cgid" != "no"; then
    case "$enable_cgid" in
    shared*)
      enable_cgid=`echo $ac_n $enable_cgid$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST cgid"
      if test "cgid" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_cgid.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi

    
  echo $ac_n "checking whether to enable mod_cgi""... $ac_c" 1>&6
echo "configure:8619: checking whether to enable mod_cgi" >&5
    # Check whether --enable-cgi or --disable-cgi was given.
if test "${enable_cgi+set}" = set; then
  enableval="$enable_cgi"
  :
else
  enable_cgi=no
fi

    _apmod_extra_msg=""
  if test "$enable_cgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgi=no
    fi
  elif test "$enable_cgi" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cgi=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cgi=no
    fi
  fi
  echo "$ac_t""$enable_cgi$_apmod_extra_msg" 1>&6
  if test "$enable_cgi" != "no"; then
    case "$enable_cgi" in
    shared*)
      enable_cgi=`echo $ac_n $enable_cgi$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST cgi"
      if test "cgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_cgi.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi

else
# if we are using a non-threaded MPM, it makes little sense to use
# mod_cgid, and it just opens up holes we don't need.  Make mod_cgi the
# default
    
  echo $ac_n "checking whether to enable mod_cgi""... $ac_c" 1>&6
echo "configure:8695: checking whether to enable mod_cgi" >&5
    # Check whether --enable-cgi or --disable-cgi was given.
if test "${enable_cgi+set}" = set; then
  enableval="$enable_cgi"
  :
else
  enable_cgi=yes
fi

    _apmod_extra_msg=""
  if test "$enable_cgi" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cgi=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgi=no
    fi
  elif test "$enable_cgi" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cgi=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cgi=no
    fi
  fi
  echo "$ac_t""$enable_cgi$_apmod_extra_msg" 1>&6
  if test "$enable_cgi" != "no"; then
    case "$enable_cgi" in
    shared*)
      enable_cgi=`echo $ac_n $enable_cgi$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST cgi"
      if test "cgi" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_cgi.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi

    
  echo $ac_n "checking whether to enable mod_cgid""... $ac_c" 1>&6
echo "configure:8767: checking whether to enable mod_cgid" >&5
    # Check whether --enable-cgid or --disable-cgid was given.
if test "${enable_cgid+set}" = set; then
  enableval="$enable_cgid"
  :
else
  enable_cgid=no
fi

    _apmod_extra_msg=""
  if test "$enable_cgid" = "most"; then
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
      enable_cgid=$module_default
      _apmod_extra_msg=" ($module_selection)"
    else
      enable_cgid=no
    fi
  elif test "$enable_cgid" = "maybe-all"; then
    if test "$module_selection" = "all"; then
      enable_cgid=$module_default
      _apmod_extra_msg=" (all)"
    else
      enable_cgid=no
    fi
  fi
  echo "$ac_t""$enable_cgid$_apmod_extra_msg" 1>&6
  if test "$enable_cgid" != "no"; then
    case "$enable_cgid" in
    shared*)
      enable_cgid=`echo $ac_n $enable_cgid$ac_c|sed 's/shared,*//'`
      sharedobjs=yes
      shared=yes;;
    *)
      MODLIST="$MODLIST cgid"
      if test "cgid" = "so"; then
          sharedobjs=yes
      fi
      shared="";;
    esac
    :
    
  if test -z ""; then
    objects="mod_cgid.lo"
  else
    objects=""
  fi

  if test -z "$module_standalone"; then
    if test -z "$shared"; then
      libname="mod_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
EOF
    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 
EOF
    fi
  fi

  fi

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
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  fi
  
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"




if test "$MPM_NAME" = "beos" ; then
    apache_apr_flags="--enable-threads"

    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"

fi


if test "$MPM_NAME" = "perchild" ; then

    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"

fi

if test "$MPM_NAME" = "spmt_os2" ; then
    cat > confcache <<\EOF
# 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.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# 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.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"

    CFLAGS="$CFLAGS -Zmt"
    LDFLAGS="$LDFLAGS -Zmt"
fi


if test "$MPM_NAME" = "threaded" ; then
    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"

fi



INCLUDES="$INCLUDES -I\$(top_srcdir)/os/\$(OS_DIR)"
EXTRA_LIBS="$EXTRA_LIBS $LIBS"
EXTRA_LDFLAGS="$LDFLAGS"
LIBS=""
LDFLAGS=""

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CFLAGS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LDFLAGS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LIBS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INCLUDES"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_LIB"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_DIR"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST BUILTIN_LIBS"
  


# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
  enable_shared=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_shared=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_shared=no
fi

if test -z "$LIBTOOL"; then
  # Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
  enableval="$enable_static"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
  enable_static=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_static=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_static=yes
fi

# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
  enableval="$enable_fast_install"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
  enable_fast_install=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_fast_install=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_fast_install=yes
fi

# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:9047: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
echo "configure:9086: checking for ld used by GCC" >&5
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
  case "$ac_prog" in
    # Accept absolute paths.
    [\\/]* | [A-Za-z]:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the path of ld
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
echo "configure:9110: checking for GNU ld" >&5
else
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
echo "configure:9113: checking for non-GNU ld" >&5
fi
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -z "$LD"; then
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      ac_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some GNU ld's only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
	test "$with_gnu_ld" != no && break
      else
	test "$with_gnu_ld" != yes && break
      fi
    fi
  done
  IFS="$ac_save_ifs"
else
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$ac_cv_path_LD"
if test -n "$LD"; then
  echo "$ac_t""$LD" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
echo "configure:9148: checking if the linker ($LD) is GNU ld" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  ac_cv_prog_gnu_ld=yes
else
  ac_cv_prog_gnu_ld=no
fi
fi

echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6


echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
echo "configure:9164: checking for BSD-compatible nm" >&5
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  ac_cv_path_NM="$NM"
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
      # Check to see if the nm accepts a BSD-compat flag.
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      #   nm: unknown option "B" ignored
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$ac_dir/nm -B"
	break
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$ac_dir/nm -p"
	break
      else
	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
	continue # so that we can try to find one that supports BSD flags
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi
fi

NM="$ac_cv_path_NM"
echo "$ac_t""$NM" 1>&6


case "$target" in
NONE) lt_target="$host" ;;
*) lt_target="$target" ;;
esac

# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"


# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"
  :
fi

test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$lt_target" in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 9228 "configure"' > conftest.$ac_ext
  if { (eval echo configure:9229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    case "`/usr/bin/file conftest.o`" in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
echo "configure:9250: checking whether the C compiler needs -belf" >&5
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9255 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  lt_cv_cc_needs_belf=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  lt_cv_cc_needs_belf=no
fi
rm -f conftest*
fi

echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;


esac


# Save cache, so that ltconfig can load it
cat > confcache <<\EOF
# 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.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# 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.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


# Actually configure libtool.  ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }

# Reload cache, that may have been modified by ltconfig
if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi


# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log

  
  LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'

fi

if test "$apache_need_shared" = "yes"; then
  $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
  case $PLATFORM in
    *-ibm-aix*)
      HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-bE:$abs_srcdir/support/httpd.exp"
      SH_LDFLAGS="$SH_LDFLAGS -Wl,-bI:$abs_srcdir/support/httpd.exp"
      ;;
    *os390)
      CFLAGS="$CFLAGS -Wc,DLL,EXPORTALL"
      ;;
  esac
fi

# Check whether --with-program-name or --without-program-name was given.
if test "${with_program_name+set}" = set; then
  withval="$with_program_name"
  
  progname="$withval" 
else
  
  progname="httpd" 
fi


# SuExec parameters
# Check whether --with-suexec-caller or --without-suexec-caller was given.
if test "${with_suexec_caller+set}" = set; then
  withval="$with_suexec_caller"
  
  cat >> confdefs.h <<EOF
#define AP_HTTPD_USER "$withval"
EOF
  
fi


# Check whether --with-suexec-userdir or --without-suexec-userdir was given.
if test "${with_suexec_userdir+set}" = set; then
  withval="$with_suexec_userdir"
  
  cat >> confdefs.h <<EOF
#define AP_USERDIR_SUFFIX "$withval"
EOF
  
fi


# Check whether --with-suexec-docroot or --without-suexec-docroot was given.
if test "${with_suexec_docroot+set}" = set; then
  withval="$with_suexec_docroot"
  
  cat >> confdefs.h <<EOF
#define AP_DOC_ROOT "$withval"
EOF
  
fi


# Check whether --with-suexec-uidmin or --without-suexec-uidmin was given.
if test "${with_suexec_uidmin+set}" = set; then
  withval="$with_suexec_uidmin"
  
  cat >> confdefs.h <<EOF
#define AP_UID_MIN $withval
EOF
  
fi


# Check whether --with-suexec-gidmin or --without-suexec-gidmin was given.
if test "${with_suexec_gidmin+set}" = set; then
  withval="$with_suexec_gidmin"
  
  cat >> confdefs.h <<EOF
#define AP_GID_MIN $withval
EOF
  
fi


# Check whether --with-suexec-logfile or --without-suexec-logfile was given.
if test "${with_suexec_logfile+set}" = set; then
  withval="$with_suexec_logfile"
  
  cat >> confdefs.h <<EOF
#define AP_LOG_EXEC "$withval"
EOF
  
fi


# Check whether --with-suexec-safepath or --without-suexec-safepath was given.
if test "${with_suexec_safepath+set}" = set; then
  withval="$with_suexec_safepath"
  
  cat >> confdefs.h <<EOF
#define AP_SAFE_PATH "$withval"
EOF
  
fi


# Check whether --with-suexec-umask or --without-suexec-umask was given.
if test "${with_suexec_umask+set}" = set; then
  withval="$with_suexec_umask"
  
  cat >> confdefs.h <<EOF
#define AP_SUEXEC_UMASK 0$withval
EOF
  
fi


AP_LIBS="srclib/pcre/libpcre.la srclib/apr-util/libaprutil.la $AP_LIBS"

AP_LIBS="$AP_LIBS srclib/apr/libapr.la"

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIB_DIRS"
  


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIBS"
  


cat >> confdefs.h <<\EOF
#define AP_USING_AUTOCONF 1
EOF


if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then
    cat >> confdefs.h <<\EOF
#define SINGLE_LISTEN_UNSERIALIZED_ACCEPT 1
EOF

fi

if test "$cross_compiling" = "no"; then
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:9507: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 9514 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
; return 0; }
EOF
if { (eval echo configure:9525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  # It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 9529 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
EOF
if { (eval echo configure:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_bigendian=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_bigendian=no
fi
rm -f conftest*
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 9560 "configure"
#include "confdefs.h"
main () {
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
}
EOF
if { (eval echo configure:9573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_bigendian=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_bigendian=yes
fi
rm -fr conftest*
fi

fi
fi

echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
  cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF

fi

else
  cat >> confdefs.h <<\EOF
#define AP_UNKNOWN_BYTE_ORDER 1
EOF

fi


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES Makefile modules/Makefile srclib/Makefile"
 

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/beos/Makefile os/os2/Makefile os/Makefile"


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/unix/Makefile server/Makefile"


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES support/Makefile srclib/pcre/Makefile"

for i in $AP_LIB_DIRS; do
  
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES srclib/$i/Makefile"

done

if test -d ./test; then
    
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"

fi

. ./srclib/apr-util/export_vars.sh
EXTRA_LIBS="$EXTRA_LIBS $APRUTIL_EXPORT_LIBS"
AP_LIBS="$AP_LIBS $LIBTOOL_LIBS"


  
  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 libexecdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdocsdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST includedir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST iconsdir"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sysconfdir"
  

  
  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 CFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPPFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXX"
  

  
  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 SH_LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DEFS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBTOOL"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHELL"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_DIRS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PORT"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LDFLAGS"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB_FILE"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBTOOL"
  

  
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MK_IMPLIB"
  


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

  
  echo $ac_n "checking for working mkdir -p""... $ac_c" 1>&6
echo "configure:9785: checking for working mkdir -p" >&5
if eval "test \"`echo '$''{'ac_cv_mkdir_p'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
    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

echo "$ac_t""$ac_cv_mkdir_p" 1>&6

  echo creating config_vars.mk
  > config_vars.mk
  for i in $APACHE_VAR_SUBST; do
    eval echo "$i = \$$i" >> config_vars.mk
  done


rm -f modules.c
echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c

cat >> confdefs.h <<EOF
#define HTTPD_ROOT "$prefix"
EOF

cat >> confdefs.h <<EOF
#define SERVER_CONFIG_FILE "conf/$progname.conf"
EOF

cat >> confdefs.h <<EOF
#define APACHE_MPM_DIR "$MPM_DIR"
EOF


perlbin=`$ac_aux_dir/PrintPath perl`
if test "x$perlbin" = "x"; then
    perlbin="/replace/with/path/to/perl/interpreter"
fi



BSD_MAKEFILE=no
case "$host_alias" in
*bsdi*)
    # Check whether they've installed GNU make
    if make --version > /dev/null 2>&1; then
        true
    else
        BSD_MAKEFILE=yes
    fi
    ;;
esac

trap '' 1 2 15
cat > confcache <<\EOF
# 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.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# 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.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi

trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H

# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}

echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"

trap 'rm -fr `echo "$APACHE_OUTPUT_FILES support/apxs support/apachectl support/dbmmanage support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile include/ap_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@target@%$target%g
s%@target_alias@%$target_alias%g
s%@target_cpu@%$target_cpu%g
s%@target_vendor@%$target_vendor%g
s%@target_os@%$target_os%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@CC@%$CC%g
s%@RM@%$RM%g
s%@AWK@%$AWK%g
s%@CPP@%$CPP%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@LN_S@%$LN_S%g
s%@RANLIB@%$RANLIB%g
s%@MPM_NAME@%$MPM_NAME%g
s%@progname@%$progname%g
s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
s%@EXTRA_LDFLAGS@%$EXTRA_LDFLAGS%g
s%@EXTRA_LIBS@%$EXTRA_LIBS%g
s%@INCLUDES@%$INCLUDES%g
s%@MPM_LIB@%$MPM_LIB%g
s%@OS@%$OS%g
s%@OS_DIR@%$OS_DIR%g
s%@BUILTIN_LIBS@%$BUILTIN_LIBS%g
s%@LIBTOOL@%$LIBTOOL%g
s%@AP_LIB_DIRS@%$AP_LIB_DIRS%g
s%@AP_LIBS@%$AP_LIBS%g
s%@abs_srcdir@%$abs_srcdir%g
s%@cgidir@%$cgidir%g
s%@logfiledir@%$logfiledir%g
s%@htdocsdir@%$htdocsdir%g
s%@iconsdir@%$iconsdir%g
s%@other_targets@%$other_targets%g
s%@CXX@%$CXX%g
s%@LTFLAGS@%$LTFLAGS%g
s%@SH_LDFLAGS@%$SH_LDFLAGS%g
s%@HTTPD_LDFLAGS@%$HTTPD_LDFLAGS%g
s%@MODULE_DIRS@%$MODULE_DIRS%g
s%@PORT@%$PORT%g
s%@NOTEST_CFLAGS@%$NOTEST_CFLAGS%g
s%@NOTEST_LDFLAGS@%$NOTEST_LDFLAGS%g
s%@CORE_IMPLIB_FILE@%$CORE_IMPLIB_FILE%g
s%@CORE_IMPLIB@%$CORE_IMPLIB%g
s%@SH_LIBTOOL@%$SH_LIBTOOL%g
s%@MK_IMPLIB@%$MK_IMPLIB%g
s%@perlbin@%$perlbin%g

CEOF
EOF

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"$APACHE_OUTPUT_FILES support/apxs support/apachectl support/dbmmanage support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac

  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="include/ap_config_auto.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in

EOF

# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr

# This sed command replaces #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.
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.

rm -f conftest.tail
while :
do
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  echo 'CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
    fi
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done

EOF
cat >> $CONFIG_STATUS <<EOF

  
  $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES


EOF
cat >> $CONFIG_STATUS <<\EOF

exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1


