#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.50.
#
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

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

exec 6>&1

#
# Initializations.
#
ac_default_prefix=/usr/local
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

# Avoid depending upon Character Ranges.
ac_cr_az='abcdefghijklmnopqrstuvwxyz'
ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ac_cr_09='0123456789'
ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09

# Sed expression to map a string onto a valid sh and CPP variable names.
ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"

ac_unique_file="cgiwrap.h"

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

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
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'

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

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

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

  # 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_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

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

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

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

  -disable-* | --disable-*)
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;

  -enable-* | --enable-*)
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) 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 | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

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

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

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

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

  -with-* | --with-*)
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "with_$ac_package='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    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 "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

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

  esac
done

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

# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir \
              exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    NONE ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

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

# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

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

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

# 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 "$as_me: error: cannot find sources in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
  else
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
   { (exit 1); exit 1; }; }
  fi
fi
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP

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

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

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

Defaults for the options are specified in brackets.

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

EOF

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

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

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
EOF

  cat <<\EOF

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

if test -n "$ac_init_help"; then

  cat <<\EOF

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-perl=PATH
	  path to perl executable to use
  --with-chroot=PATH
          define prefix to chroot to before execution
          DO NOT USE THIS unless you have read the cgiwrap chroot
	  documentation and have set up the requisite structure
  --with-local-contact-name=NAME
	  define name of local contact
  --with-local-contact-email=ADDRESS
	  define email address of local contact
  --with-local-contact-phone=PHONE
	  define phone number of local contact
  --with-local-contact-url=URL
	  define url of local contact
  --with-local-site-url=URL
	  define url of local site
  --with-local-doc-url=URL
	  define url of local cgiwrap documentation
  --with-wall
	  enable -Wall option on compile
  --with-install-group=GROUP  (root)
	  group to install cgiwrap as
  --with-install-dir=PATH
	  path to installation directory
  --with-cgi-dir=PATH  (public_html/cgi-bin)
	  path relative to home dir for cgi scripts
  --with-httpd-user=USER  (http)
	  define what userid the web server is running as
  --with-multiuser-cgi-dir=PATH  (disabled)
	  define a central shared cgi directory that acts as a fallback
	  directory to search if the cgi script is not found in the user's
	  own cgi directory. This can be dangerous if not used properly.
  --without-check-httpd-user
	  don't check to make sure cgiwrap is being run by server userid
  --with-report-rusage
	  report rusage and return status of cgi script after execution
  --without-strict-names
	  disable check for !isprint() and isspace() in script path
  --without-check-owner
	  disable check for matching owner
  --without-check-group
	  disable check for matching group
  --without-check-setuid
	  disable check for setuid script
  --without-check-setgid
	  disable check for setgid script
  --without-check-group-writable
	  disable check for group writable script
  --without-check-world-writable
	  disable check for world writable script
  --without-check-symlink
	  disable check for symlinked script
  --with-minimum-uid=UID  (10)
	  minimum uid to allow script execution
  --with-minimum-gid=GID  (not checked)
	  minimum gid to allow script execution
  --with-logging-syslog=LABEL
	  enable logging script execution to syslog
  --with-logging-file=FILE  (/usr/adm/cgiwrap.log)
	  enable logging script execution to file
  --without-script-subdirs
	  prevent users from storing scripts in subdirs
  --without-redirect-stderr
	  don't redirect stderr to stdout in scripts
  --without-initgroups
	  disable use of initgroups() to clear non-userid auxilliary groups
  --without-setgroups
	  disable use of setgroups() to add userid's auxilliary groups
  --with-rewrite=FILE
	  use a file to rewrite user directories
  --with-setenv-path=STRING
          set PATH environment variable to STRING
  --with-setenv-tz=STRING
          set TZ environment variable to STRING
  --with-rlimit-cpu=SECONDS  (10)
          limit cpu time with setrlimit
  --with-rlimit-vmem=BYTES  (2500000)
          limit total virtual memory with setrlimit
  --with-rlimit-as=BYTES  (2500000)
          limit total available memory with setrlimit
  --with-rlimit-fsize=BYTES  (2500000)
          limit writable file size with setrlimit
  --with-rlimit-data=BYTES  (2500000)
          limit data segment size with setrlimit
  --with-rlimit-stack=BYTES  (2500000)
          limit stack segment size with setrlimit
  --with-rlimit-core=BYTES  (2500000)
          limit core file size with setrlimit
  --with-rlimit-rss=BYTES  (2500000)
          limit resident set size with setrlimit
  --with-rlimit-nproc=COUNT  (32)
          limit number of processes with setrlimit
  --with-rlimit-nofile=COUNT  (32)
          limit number of open files with setrlimit
  --with-rlimit-memlock=BYTES  (2500000)
          limit lockable memory with setrlimit
  --with-allow-file=FILE  (/usr/adm/cgiwrap.allow)
	  limit cgiwrap usage
  --with-deny-file=FILE  (/usr/adm/cgiwrap.deny)
	  limit cgiwrap usage
  --with-host-checking
	  allow specifying hosts in allow/deny files
  --with-check-shell
	  user shell must be in system shells list
  --with-afs=DIR  (/usr/afsws)
	  enable afs setpag() support

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

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

EOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    cd $ac_subdir
    # A "../" for each directory in /$ac_subdir.
    ac_dots=`echo $ac_subdir |
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`

    case $srcdir in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    [\\/]* | ?:[\\/]* ) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    esac

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure.gnu; then
      echo
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_sub_srcdir/configure; then
      echo
      $SHELL $ac_sub_srcdir/configure  --help=recursive
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    fi
    cd $ac_popdir
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\EOF

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
exec 5>config.log
cat >&5 <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

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

  $ $0 $@

EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

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

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

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

PATH = $PATH

_ASUNAME
} >&5

cat >&5 <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##

EOF

# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
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_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
  test "$ac_signal" != 0 &&
    echo "$as_me: caught signal $ac_signal" >&5
  echo "$as_me: exit $exit_status" >&5
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
done
ac_signal=0

# 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

# Let the site file select an alternate cache file if it wants to.
# 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 "$as_me:922: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    cat "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:933: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
else
  { echo "$as_me:941: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_suggest_removing_cache=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:957: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,set)
      { echo "$as_me:961: WARNING: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:967: WARNING: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:969: WARNING:   former value:  $ac_old_val" >&5
echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:971: WARNING:   current value: $ac_new_val" >&5
echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
        ac_suggest_removing_cache=:
      fi;;
  esac
done
if $ac_suggest_removing_cache; then
  { echo "$as_me:978: WARNING: changes in the environment can compromise the build" >&5
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
  { echo "$as_me:980: WARNING: consider removing $cache_file and starting over" >&5
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
fi

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

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
echo "#! $SHELL" >conftest.sh
echo  "exit 0"   >>conftest.sh
chmod +x conftest.sh
if { (echo "$as_me:999: PATH=\".;.\"; conftest.sh") >&5
  (PATH=".;."; conftest.sh) 2>&5
  ac_status=$?
  echo "$as_me:1002: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_path_separator=';'
else
  ac_path_separator=:
fi
PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh

ac_aux_dir=
for ac_dir in . $srcdir/.; 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
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:1028: error: cannot find install-sh or install.sh in . $srcdir/." >&5
echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.

# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:1038: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:1042: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:1051: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:1055: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1060: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:1067: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:1076: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1081: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:1088: checking target system type" >&5
echo $ECHO_N "checking target system type... $ECHO_C" >&6
if test "${ac_cv_target+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_target_alias=$target_alias
test "x$ac_cv_target_alias" = "x" &&
  ac_cv_target_alias=$ac_cv_host_alias
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  { { echo "$as_me:1097: error: $ac_config_sub $ac_cv_target_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1102: result: $ac_cv_target" >&5
echo "${ECHO_T}$ac_cv_target" >&6
target=$ac_cv_target
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

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

VERSION="3.7.1"

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:1127: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:1142: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1150: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1153: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:1162: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:1177: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1185: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1188: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:1201: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:1216: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1224: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1227: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1236: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:1251: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1259: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1262: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1275: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  ac_prog_rejected=yes
  continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:1295: found $ac_dir/$ac_word" >&5
break
done

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

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:1331: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:1346: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1354: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1357: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
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 "$as_me:1370: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:1385: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1393: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1396: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CC" && break
done

  CC=$ac_ct_CC
fi

fi

test -z "$CC" && { { echo "$as_me:1408: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

cat >conftest.$ac_ext <<_ACEOF
#line 1413 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compiler, and finding out an intuition
# of exeext.
echo "$as_me:1429: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:1432: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:1435: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    a.out ) # We found the default executable, but exeext='' is most
            # certainly right.
            break;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1452: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:1458: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1463: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:1469: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1472: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:1479: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
echo "$as_me:1487: result: yes" >&5
echo "${ECHO_T}yes" >&6

rm -f a.out a.exe conftest$ac_cv_exeext
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1494: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:1496: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:1499: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:1501: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1504: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:1520: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
echo "$as_me:1526: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:1532: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1538 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1550: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1553: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1565: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:1572: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:1576: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1582 "configure"
#include "confdefs.h"

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

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1597: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1600: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1603: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1606: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:1618: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:1624: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1630 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1642: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1645: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1648: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1651: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:1661: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&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
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1691: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1694: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1697: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 1709 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1722: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1725: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1728: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1731: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 1741 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1753: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1756: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1759: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1762: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration      >>confdefs.h
echo '#endif'             >>confdefs.h

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

echo "$as_me:1786: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\EOF
all:
	@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:1806: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:1810: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

# Check whether --with-perl or --without-perl was given.
if test "${with_perl+set}" = set; then
  withval="$with_perl"

		echo "$as_me:1819: checking for perl" >&5
echo $ECHO_N "checking for perl... $ECHO_C" >&6
		if test "x$withval" != x; then
			PATH_PROG_PERL="$withval"
			echo "$as_me:1823: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
		else
			echo "$as_me:1826: result: not found" >&5
echo "${ECHO_T}not found" >&6
		fi

else

		# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo "$as_me:1834: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PATH_PROG_PERL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PATH_PROG_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PROG_PERL="$PATH_PROG_PERL" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_PATH_PROG_PERL="$ac_dir/$ac_word"
   echo "$as_me:1851: found $ac_dir/$ac_word" >&5
   break
fi
done

  test -z "$ac_cv_path_PATH_PROG_PERL" && ac_cv_path_PATH_PROG_PERL="no"
  ;;
esac
fi
PATH_PROG_PERL=$ac_cv_path_PATH_PROG_PERL

if test -n "$PATH_PROG_PERL"; then
  echo "$as_me:1863: result: $PATH_PROG_PERL" >&5
echo "${ECHO_T}$PATH_PROG_PERL" >&6
else
  echo "$as_me:1866: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi;

echo "$as_me:1872: checking for sigset" >&5
echo $ECHO_N "checking for sigset... $ECHO_C" >&6
if test "${ac_cv_func_sigset+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1878 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sigset (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sigset ();
char (*f) ();

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_sigset) || defined (__stub___sigset)
choke me
#else
f = sigset;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:1909: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1912: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:1915: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1918: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_sigset=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_sigset=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:1928: result: $ac_cv_func_sigset" >&5
echo "${ECHO_T}$ac_cv_func_sigset" >&6
if test $ac_cv_func_sigset = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SIGSET 1
EOF

fi

echo "$as_me:1937: checking for initgroups" >&5
echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
if test "${ac_cv_func_initgroups+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1943 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char initgroups (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char initgroups ();
char (*f) ();

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_initgroups) || defined (__stub___initgroups)
choke me
#else
f = initgroups;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:1974: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1977: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:1980: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1983: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_initgroups=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_initgroups=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:1993: result: $ac_cv_func_initgroups" >&5
echo "${ECHO_T}$ac_cv_func_initgroups" >&6
if test $ac_cv_func_initgroups = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_INITGROUPS 1
EOF

fi

echo "$as_me:2002: checking for setgroups" >&5
echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
if test "${ac_cv_func_setgroups+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2008 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setgroups (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setgroups ();
char (*f) ();

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_setgroups) || defined (__stub___setgroups)
choke me
#else
f = setgroups;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2039: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2042: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2045: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2048: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setgroups=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setgroups=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2058: result: $ac_cv_func_setgroups" >&5
echo "${ECHO_T}$ac_cv_func_setgroups" >&6
if test $ac_cv_func_setgroups = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETGROUPS 1
EOF

fi

echo "$as_me:2067: checking for getgroups" >&5
echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
if test "${ac_cv_func_getgroups+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2073 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getgroups (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getgroups ();
char (*f) ();

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_getgroups) || defined (__stub___getgroups)
choke me
#else
f = getgroups;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2104: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2107: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2110: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2113: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getgroups=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getgroups=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2123: result: $ac_cv_func_getgroups" >&5
echo "${ECHO_T}$ac_cv_func_getgroups" >&6
if test $ac_cv_func_getgroups = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_GETGROUPS 1
EOF

fi

echo "$as_me:2132: checking for setgid" >&5
echo $ECHO_N "checking for setgid... $ECHO_C" >&6
if test "${ac_cv_func_setgid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2138 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setgid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setgid ();
char (*f) ();

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_setgid) || defined (__stub___setgid)
choke me
#else
f = setgid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2169: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2172: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2175: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2178: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setgid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setgid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2188: result: $ac_cv_func_setgid" >&5
echo "${ECHO_T}$ac_cv_func_setgid" >&6
if test $ac_cv_func_setgid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETGID 1
EOF

fi

echo "$as_me:2197: checking for setuid" >&5
echo $ECHO_N "checking for setuid... $ECHO_C" >&6
if test "${ac_cv_func_setuid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2203 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setuid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setuid ();
char (*f) ();

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_setuid) || defined (__stub___setuid)
choke me
#else
f = setuid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2234: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2237: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2240: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2243: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setuid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setuid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2253: result: $ac_cv_func_setuid" >&5
echo "${ECHO_T}$ac_cv_func_setuid" >&6
if test $ac_cv_func_setuid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETUID 1
EOF

fi

echo "$as_me:2262: checking for setegid" >&5
echo $ECHO_N "checking for setegid... $ECHO_C" >&6
if test "${ac_cv_func_setegid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2268 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setegid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setegid ();
char (*f) ();

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_setegid) || defined (__stub___setegid)
choke me
#else
f = setegid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2299: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2302: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2305: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2308: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setegid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setegid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2318: result: $ac_cv_func_setegid" >&5
echo "${ECHO_T}$ac_cv_func_setegid" >&6
if test $ac_cv_func_setegid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETEGID 1
EOF

fi

echo "$as_me:2327: checking for seteuid" >&5
echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
if test "${ac_cv_func_seteuid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2333 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char seteuid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char seteuid ();
char (*f) ();

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_seteuid) || defined (__stub___seteuid)
choke me
#else
f = seteuid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2364: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2367: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2370: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2373: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_seteuid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_seteuid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2383: result: $ac_cv_func_seteuid" >&5
echo "${ECHO_T}$ac_cv_func_seteuid" >&6
if test $ac_cv_func_seteuid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETEUID 1
EOF

fi

echo "$as_me:2392: checking for setrgid" >&5
echo $ECHO_N "checking for setrgid... $ECHO_C" >&6
if test "${ac_cv_func_setrgid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2398 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setrgid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setrgid ();
char (*f) ();

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_setrgid) || defined (__stub___setrgid)
choke me
#else
f = setrgid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2429: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2432: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2435: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2438: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setrgid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setrgid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2448: result: $ac_cv_func_setrgid" >&5
echo "${ECHO_T}$ac_cv_func_setrgid" >&6
if test $ac_cv_func_setrgid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETRGID 1
EOF

fi

echo "$as_me:2457: checking for setruid" >&5
echo $ECHO_N "checking for setruid... $ECHO_C" >&6
if test "${ac_cv_func_setruid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2463 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setruid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setruid ();
char (*f) ();

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_setruid) || defined (__stub___setruid)
choke me
#else
f = setruid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2494: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2497: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2500: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2503: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setruid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setruid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2513: result: $ac_cv_func_setruid" >&5
echo "${ECHO_T}$ac_cv_func_setruid" >&6
if test $ac_cv_func_setruid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETRUID 1
EOF

fi

echo "$as_me:2522: checking for setregid" >&5
echo $ECHO_N "checking for setregid... $ECHO_C" >&6
if test "${ac_cv_func_setregid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2528 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setregid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setregid ();
char (*f) ();

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_setregid) || defined (__stub___setregid)
choke me
#else
f = setregid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2559: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2562: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2565: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2568: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setregid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setregid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2578: result: $ac_cv_func_setregid" >&5
echo "${ECHO_T}$ac_cv_func_setregid" >&6
if test $ac_cv_func_setregid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETREGID 1
EOF

fi

echo "$as_me:2587: checking for setreuid" >&5
echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
if test "${ac_cv_func_setreuid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2593 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setreuid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setreuid ();
char (*f) ();

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_setreuid) || defined (__stub___setreuid)
choke me
#else
f = setreuid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2624: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2627: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2630: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2633: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setreuid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setreuid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2643: result: $ac_cv_func_setreuid" >&5
echo "${ECHO_T}$ac_cv_func_setreuid" >&6
if test $ac_cv_func_setreuid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETREUID 1
EOF

fi

echo "$as_me:2652: checking for setresgid" >&5
echo $ECHO_N "checking for setresgid... $ECHO_C" >&6
if test "${ac_cv_func_setresgid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2658 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setresgid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setresgid ();
char (*f) ();

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_setresgid) || defined (__stub___setresgid)
choke me
#else
f = setresgid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2689: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2692: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2695: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2698: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setresgid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setresgid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2708: result: $ac_cv_func_setresgid" >&5
echo "${ECHO_T}$ac_cv_func_setresgid" >&6
if test $ac_cv_func_setresgid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETRESGID 1
EOF

fi

echo "$as_me:2717: checking for setresuid" >&5
echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
if test "${ac_cv_func_setresuid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2723 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setresuid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setresuid ();
char (*f) ();

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_setresuid) || defined (__stub___setresuid)
choke me
#else
f = setresuid;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2754: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2757: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2760: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2763: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setresuid=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setresuid=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2773: result: $ac_cv_func_setresuid" >&5
echo "${ECHO_T}$ac_cv_func_setresuid" >&6
if test $ac_cv_func_setresuid = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETRESUID 1
EOF

fi

echo "$as_me:2782: checking for perror" >&5
echo $ECHO_N "checking for perror... $ECHO_C" >&6
if test "${ac_cv_func_perror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2788 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char perror (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char perror ();
char (*f) ();

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_perror) || defined (__stub___perror)
choke me
#else
f = perror;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2819: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2822: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2825: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2828: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_perror=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_perror=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2838: result: $ac_cv_func_perror" >&5
echo "${ECHO_T}$ac_cv_func_perror" >&6
if test $ac_cv_func_perror = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_PERROR 1
EOF

fi

echo "$as_me:2847: checking for strerror" >&5
echo $ECHO_N "checking for strerror... $ECHO_C" >&6
if test "${ac_cv_func_strerror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2853 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strerror (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strerror ();
char (*f) ();

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_strerror) || defined (__stub___strerror)
choke me
#else
f = strerror;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2884: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2887: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2890: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2893: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_strerror=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_strerror=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2903: result: $ac_cv_func_strerror" >&5
echo "${ECHO_T}$ac_cv_func_strerror" >&6
if test $ac_cv_func_strerror = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_STRERROR 1
EOF

fi

echo "$as_me:2912: checking for strdup" >&5
echo $ECHO_N "checking for strdup... $ECHO_C" >&6
if test "${ac_cv_func_strdup+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2918 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strdup (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strdup ();
char (*f) ();

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_strdup) || defined (__stub___strdup)
choke me
#else
f = strdup;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2949: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2952: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2955: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2958: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_strdup=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_strdup=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:2968: result: $ac_cv_func_strdup" >&5
echo "${ECHO_T}$ac_cv_func_strdup" >&6
if test $ac_cv_func_strdup = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_STRDUP 1
EOF

fi

echo "$as_me:2977: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_func_syslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2983 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char syslog (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char syslog ();
char (*f) ();

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_syslog) || defined (__stub___syslog)
choke me
#else
f = syslog;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:3014: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3017: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3020: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3023: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_syslog=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_syslog=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:3033: result: $ac_cv_func_syslog" >&5
echo "${ECHO_T}$ac_cv_func_syslog" >&6
if test $ac_cv_func_syslog = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SYSLOG 1
EOF

fi

echo "$as_me:3042: checking for setrlimit" >&5
echo $ECHO_N "checking for setrlimit... $ECHO_C" >&6
if test "${ac_cv_func_setrlimit+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 3048 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setrlimit (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setrlimit ();
char (*f) ();

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_setrlimit) || defined (__stub___setrlimit)
choke me
#else
f = setrlimit;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:3079: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3082: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3085: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3088: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setrlimit=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setrlimit=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:3098: result: $ac_cv_func_setrlimit" >&5
echo "${ECHO_T}$ac_cv_func_setrlimit" >&6
if test $ac_cv_func_setrlimit = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_SETRLIMIT 1
EOF

fi

echo "$as_me:3107: checking for putenv" >&5
echo $ECHO_N "checking for putenv... $ECHO_C" >&6
if test "${ac_cv_func_putenv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 3113 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char putenv (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char putenv ();
char (*f) ();

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_putenv) || defined (__stub___putenv)
choke me
#else
f = putenv;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:3144: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3147: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3150: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3153: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_putenv=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_putenv=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:3163: result: $ac_cv_func_putenv" >&5
echo "${ECHO_T}$ac_cv_func_putenv" >&6
if test $ac_cv_func_putenv = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_PUTENV 1
EOF

fi

echo "$as_me:3172: checking for wait3" >&5
echo $ECHO_N "checking for wait3... $ECHO_C" >&6
if test "${ac_cv_func_wait3+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 3178 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char wait3 (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char wait3 ();
char (*f) ();

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_wait3) || defined (__stub___wait3)
choke me
#else
f = wait3;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:3209: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3212: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3215: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3218: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_wait3=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_wait3=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:3228: result: $ac_cv_func_wait3" >&5
echo "${ECHO_T}$ac_cv_func_wait3" >&6
if test $ac_cv_func_wait3 = yes; then
  cat >>confdefs.h <<\EOF
#define HAS_WAIT3 1
EOF

fi

echo "$as_me:3237: checking for chroot prefix" >&5
echo $ECHO_N "checking for chroot prefix... $ECHO_C" >&6

# Check whether --with-chroot or --without-chroot was given.
if test "${with_chroot+set}" = set; then
  withval="$with_chroot"

                if test "x$withval" = xyes; then
                        echo "$as_me:3245: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
                elif test "x$withval" = xno; then
                        echo "$as_me:3248: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
                elif test "x$withval" = x; then
                        echo "$as_me:3251: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
                else
                        echo "$as_me:3254: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
                        cat >>confdefs.h <<EOF
#define CONF_CHROOT_PREFIX "$withval"
EOF

                fi

else

                echo "$as_me:3264: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:3269: checking for local contact name" >&5
echo $ECHO_N "checking for local contact name... $ECHO_C" >&6

# Check whether --with-local-contact-name or --without-local-contact-name was given.
if test "${with_local_contact_name+set}" = set; then
  withval="$with_local_contact_name"

		if test "x$withval" = xyes; then
			echo "$as_me:3277: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = xno; then
			echo "$as_me:3280: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = x; then
			echo "$as_me:3283: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		else
			echo "$as_me:3286: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
			cat >>confdefs.h <<EOF
#define CONF_LOCAL_CONTACT_NAME "$withval"
EOF

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

		fi

else

		echo "$as_me:3300: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:3305: checking for local contact email" >&5
echo $ECHO_N "checking for local contact email... $ECHO_C" >&6

# Check whether --with-local-contact-email or --without-local-contact-email was given.
if test "${with_local_contact_email+set}" = set; then
  withval="$with_local_contact_email"

		if test "x$withval" = xyes; then
			echo "$as_me:3313: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = xno; then
			echo "$as_me:3316: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = x; then
			echo "$as_me:3319: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		else
			echo "$as_me:3322: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
			cat >>confdefs.h <<EOF
#define CONF_LOCAL_CONTACT_EMAIL "$withval"
EOF

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

		fi

else

		echo "$as_me:3336: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:3341: checking for local contact phone" >&5
echo $ECHO_N "checking for local contact phone... $ECHO_C" >&6

# Check whether --with-local-contact-phone or --without-local-contact-phone was given.
if test "${with_local_contact_phone+set}" = set; then
  withval="$with_local_contact_phone"

		if test "x$withval" = xyes; then
			echo "$as_me:3349: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = xno; then
			echo "$as_me:3352: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = x; then
			echo "$as_me:3355: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		else
			echo "$as_me:3358: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
			cat >>confdefs.h <<EOF
#define CONF_LOCAL_CONTACT_PHONE "$withval"
EOF

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

		fi

else

		echo "$as_me:3372: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:3377: checking for local contact url" >&5
echo $ECHO_N "checking for local contact url... $ECHO_C" >&6

# Check whether --with-local-contact-url or --without-local-contact-url was given.
if test "${with_local_contact_url+set}" = set; then
  withval="$with_local_contact_url"

		if test "x$withval" = xyes; then
			echo "$as_me:3385: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = xno; then
			echo "$as_me:3388: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = x; then
			echo "$as_me:3391: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		else
			echo "$as_me:3394: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
			cat >>confdefs.h <<EOF
#define CONF_LOCAL_CONTACT_URL "$withval"
EOF

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

		fi

else

		echo "$as_me:3408: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:3413: checking for local site url" >&5
echo $ECHO_N "checking for local site url... $ECHO_C" >&6

# Check whether --with-local-site-url or --without-local-site-url was given.
if test "${with_local_site_url+set}" = set; then
  withval="$with_local_site_url"

		if test "x$withval" = xyes; then
			echo "$as_me:3421: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = xno; then
			echo "$as_me:3424: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = x; then
			echo "$as_me:3427: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		else
			echo "$as_me:3430: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
			cat >>confdefs.h <<EOF
#define CONF_LOCAL_SITE_URL "$withval"
EOF

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

		fi

else

		echo "$as_me:3444: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:3449: checking for local cgiwrap docs" >&5
echo $ECHO_N "checking for local cgiwrap docs... $ECHO_C" >&6

# Check whether --with-local-doc-url or --without-local-doc-url was given.
if test "${with_local_doc_url+set}" = set; then
  withval="$with_local_doc_url"

		if test "x$withval" = xyes; then
			echo "$as_me:3457: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = xno; then
			echo "$as_me:3460: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		elif test "x$withval" = x; then
			echo "$as_me:3463: result: disabled, must specify value" >&5
echo "${ECHO_T}disabled, must specify value" >&6
		else
			echo "$as_me:3466: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
			cat >>confdefs.h <<EOF
#define CONF_LOCAL_DOC_URL "$withval"
EOF

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

		fi

else

		echo "$as_me:3480: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:3485: checking for with-wall" >&5
echo $ECHO_N "checking for with-wall... $ECHO_C" >&6

# Check whether --with-wall or --without-wall was given.
if test "${with_wall+set}" = set; then
  withval="$with_wall"

		if test "x$withval" = xno; then
			echo "$as_me:3493: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
			withval=
		else
			echo "$as_me:3497: result: enabled" >&5
echo "${ECHO_T}enabled" >&6
			withval="-Wall"
		fi

		GCC_WALL_OPT="$withval"

else

		echo "$as_me:3506: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		GCC_WALL_OPT=""

fi;

echo "$as_me:3512: checking for installation group" >&5
echo $ECHO_N "checking for installation group... $ECHO_C" >&6

# Check whether --with-install-group or --without-install-group was given.
if test "${with_install_group+set}" = set; then
  withval="$with_install_group"

		if test "x$withval" = xyes; then
			withval=root
		fi
		if test "x$withval" = xno; then
			withval=root
		fi
		if test "x$withval" = x; then
			withval=root
		fi

		INSTALLGROUP="$withval"

else

		withval=root
		INSTALLGROUP="$withval"

fi;
echo "$as_me:3537: result: $withval" >&5
echo "${ECHO_T}$withval" >&6

echo "$as_me:3540: checking for installation directory" >&5
echo $ECHO_N "checking for installation directory... $ECHO_C" >&6

# Check whether --with-install-dir or --without-install-dir was given.
if test "${with_install_dir+set}" = set; then
  withval="$with_install_dir"

		if test "x$withval" != x; then
			INSTALLDIR="$withval"
			DOINSTALL=""
			echo "$as_me:3550: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
		else
			echo "$as_me:3553: result: not found" >&5
echo "${ECHO_T}not found" >&6
			DOINSTALL="#"
		fi

else

		echo "$as_me:3560: result: not found" >&5
echo "${ECHO_T}not found" >&6
		DOINSTALL="#"

fi;

echo "$as_me:3566: checking for path to cgi scripts" >&5
echo $ECHO_N "checking for path to cgi scripts... $ECHO_C" >&6

# Check whether --with-cgi-dir or --without-cgi-dir was given.
if test "${with_cgi_dir+set}" = set; then
  withval="$with_cgi_dir"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<EOF
#define CONF_CGIDIR "$withval"
EOF

			echo "$as_me:3578: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
		else
			{ { echo "$as_me:3581: error: must be defined" >&5
echo "$as_me: error: must be defined" >&2;}
   { (exit 1); exit 1; }; }
		fi

else

		echo "$as_me:3588: result: public_html/cgi-bin" >&5
echo "${ECHO_T}public_html/cgi-bin" >&6
		cat >>confdefs.h <<EOF
#define CONF_CGIDIR "public_html/cgi-bin"
EOF

fi;

echo "$as_me:3596: checking for httpd-user" >&5
echo $ECHO_N "checking for httpd-user... $ECHO_C" >&6

# Check whether --with-httpd-user or --without-httpd-user was given.
if test "${with_httpd_user+set}" = set; then
  withval="$with_httpd_user"

		if test "x$withval" = xyes; then
			withval=http
		fi
		if test "x$withval" = xno; then
			withval=http
		fi
		if test "x$withval" = x; then
			withval=http
		fi

else

		withval=http

fi;
cat >>confdefs.h <<EOF
#define CONF_HTTPD_USER "$withval"
EOF

echo "$as_me:3622: result: server running as \"$withval\"" >&5
echo "${ECHO_T}server running as \"$withval\"" >&6

echo "$as_me:3625: checking for multiuser-cgi-dir" >&5
echo $ECHO_N "checking for multiuser-cgi-dir... $ECHO_C" >&6

# Check whether --with-multiuser-cgi-dir or --without-multiuser-cgi-dir was given.
if test "${with_multiuser_cgi_dir+set}" = set; then
  withval="$with_multiuser_cgi_dir"

		if test "x$withval" = xyes; then
			echo "$as_me:3633: result: must specify path, disabled." >&5
echo "${ECHO_T}must specify path, disabled." >&6
		elif test "x$withval" = xno; then
			echo "$as_me:3636: result: must specify path, disabled." >&5
echo "${ECHO_T}must specify path, disabled." >&6
		elif test "x$withval" = x; then
			echo "$as_me:3639: result: must specify path, disabled." >&5
echo "${ECHO_T}must specify path, disabled." >&6
		else
			echo "$as_me:3642: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
			cat >>confdefs.h <<EOF
#define CONF_MULTIUSER_CGI_DIR "$withval"
EOF

		fi

else

		echo "$as_me:3652: result: disabled." >&5
echo "${ECHO_T}disabled." >&6

fi;

echo "$as_me:3657: checking for check-httpd-user" >&5
echo $ECHO_N "checking for check-httpd-user... $ECHO_C" >&6

# Check whether --with-check-httpd-user or --without-check-httpd-user was given.
if test "${with_check_httpd_user+set}" = set; then
  withval="$with_check_httpd_user"

		echo "$as_me:3664: result: disabled, server userid will be checked" >&5
echo "${ECHO_T}disabled, server userid will be checked" >&6
		INSTALLMODE=4750

else

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

		echo "$as_me:3674: result: enabled, be sure to restrict permissions" >&5
echo "${ECHO_T}enabled, be sure to restrict permissions" >&6
		INSTALLMODE=4755

fi;

echo "$as_me:3680: checking for report-rusage" >&5
echo $ECHO_N "checking for report-rusage... $ECHO_C" >&6

# Check whether --with-report-rusage or --without-report-rusage was given.
if test "${with_report_rusage+set}" = set; then
  withval="$with_report_rusage"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_REPORT_RUSAGE 1
EOF

			echo "$as_me:3692: result: enabled, rusage and return code will be logged" >&5
echo "${ECHO_T}enabled, rusage and return code will be logged" >&6
		else
			echo "$as_me:3695: result: disabled, rusage and return code will not be logged" >&5
echo "${ECHO_T}disabled, rusage and return code will not be logged" >&6
		fi

else

		echo "$as_me:3701: result: disabled, rusage and return code will not be logged" >&5
echo "${ECHO_T}disabled, rusage and return code will not be logged" >&6

fi;

echo "$as_me:3706: checking for strict-names" >&5
echo $ECHO_N "checking for strict-names... $ECHO_C" >&6

# Check whether --with-strict-names or --without-strict-names was given.
if test "${with_strict_names+set}" = set; then
  withval="$with_strict_names"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_STRICT_NAMES 1
EOF

			echo "$as_me:3718: result: enabled, script must be all alphanumeric" >&5
echo "${ECHO_T}enabled, script must be all alphanumeric" >&6
		else
			echo "$as_me:3721: result: disabled, script name not checked" >&5
echo "${ECHO_T}disabled, script name not checked" >&6
		fi

else

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

		echo "$as_me:3731: result: enabled, script name must be all alphanumeric" >&5
echo "${ECHO_T}enabled, script name must be all alphanumeric" >&6

fi;

echo "$as_me:3736: checking for check-owner" >&5
echo $ECHO_N "checking for check-owner... $ECHO_C" >&6

# Check whether --with-check-owner or --without-check-owner was given.
if test "${with_check_owner+set}" = set; then
  withval="$with_check_owner"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_CHECK_SCRUID 1
EOF

			echo "$as_me:3748: result: enabled, owner of script must match" >&5
echo "${ECHO_T}enabled, owner of script must match" >&6
		else
			echo "$as_me:3751: result: disabled, owner of script can be different" >&5
echo "${ECHO_T}disabled, owner of script can be different" >&6
		fi

else

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

		echo "$as_me:3761: result: enabled, owner of script must match" >&5
echo "${ECHO_T}enabled, owner of script must match" >&6

fi;

echo "$as_me:3766: checking for check-group" >&5
echo $ECHO_N "checking for check-group... $ECHO_C" >&6

# Check whether --with-check-group or --without-check-group was given.
if test "${with_check_group+set}" = set; then
  withval="$with_check_group"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_CHECK_SCRGID 1
EOF

			echo "$as_me:3778: result: enabled, group of script must match" >&5
echo "${ECHO_T}enabled, group of script must match" >&6
		else
			echo "$as_me:3781: result: disabled, group of script can be different" >&5
echo "${ECHO_T}disabled, group of script can be different" >&6
		fi

else

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

		echo "$as_me:3791: result: enabled, group of script must match" >&5
echo "${ECHO_T}enabled, group of script must match" >&6

fi;

echo "$as_me:3796: checking for check-setuid" >&5
echo $ECHO_N "checking for check-setuid... $ECHO_C" >&6

# Check whether --with-check-setuid or --without-check-setuid was given.
if test "${with_check_setuid+set}" = set; then
  withval="$with_check_setuid"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_CHECK_SCRSUID 1
EOF

			echo "$as_me:3808: result: enabled, script cannot be setuid" >&5
echo "${ECHO_T}enabled, script cannot be setuid" >&6
		else
			echo "$as_me:3811: result: disabled, script can be setuid" >&5
echo "${ECHO_T}disabled, script can be setuid" >&6
		fi

else

		echo "$as_me:3817: result: enabled, script cannot be setuid" >&5
echo "${ECHO_T}enabled, script cannot be setuid" >&6
		cat >>confdefs.h <<\EOF
#define CONF_CHECK_SCRSUID 1
EOF

fi;

echo "$as_me:3825: checking for check-setgid" >&5
echo $ECHO_N "checking for check-setgid... $ECHO_C" >&6

# Check whether --with-check-setgid or --without-check-setgid was given.
if test "${with_check_setgid+set}" = set; then
  withval="$with_check_setgid"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_CHECK_SCRSGID 1
EOF

			echo "$as_me:3837: result: enabled, script cannot be setuid" >&5
echo "${ECHO_T}enabled, script cannot be setuid" >&6
		else
			echo "$as_me:3840: result: disabled, script can be setgid" >&5
echo "${ECHO_T}disabled, script can be setgid" >&6
		fi

else

		echo "$as_me:3846: result: enabled, script cannot be setgid" >&5
echo "${ECHO_T}enabled, script cannot be setgid" >&6
		cat >>confdefs.h <<\EOF
#define CONF_CHECK_SCRSGID 1
EOF

fi;

echo "$as_me:3854: checking for check-group-writable" >&5
echo $ECHO_N "checking for check-group-writable... $ECHO_C" >&6

# Check whether --with-check-group-writable or --without-check-group-writable was given.
if test "${with_check_group_writable+set}" = set; then
  withval="$with_check_group_writable"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_CHECK_SCRGWRITE 1
EOF

			echo "$as_me:3866: result: enabled, script cannot be group writable" >&5
echo "${ECHO_T}enabled, script cannot be group writable" >&6
		else
			echo "$as_me:3869: result: disabled, script can be group writable" >&5
echo "${ECHO_T}disabled, script can be group writable" >&6
		fi

else

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

		echo "$as_me:3879: result: enabled, script cannot be group writable" >&5
echo "${ECHO_T}enabled, script cannot be group writable" >&6

fi;

echo "$as_me:3884: checking for check-world-writable" >&5
echo $ECHO_N "checking for check-world-writable... $ECHO_C" >&6

# Check whether --with-check-world-writable or --without-check-world-writable was given.
if test "${with_check_world_writable+set}" = set; then
  withval="$with_check_world_writable"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_CHECK_SCROWRITE 1
EOF

			echo "$as_me:3896: result: enabled, script cannot be world writable" >&5
echo "${ECHO_T}enabled, script cannot be world writable" >&6
		else
			echo "$as_me:3899: result: disabled, script can be world writable" >&5
echo "${ECHO_T}disabled, script can be world writable" >&6
		fi

else

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

		echo "$as_me:3909: result: enabled, script cannot be world writable" >&5
echo "${ECHO_T}enabled, script cannot be world writable" >&6

fi;

echo "$as_me:3914: checking for check-symlink" >&5
echo $ECHO_N "checking for check-symlink... $ECHO_C" >&6

# Check whether --with-check-symlink or --without-check-symlink was given.
if test "${with_check_symlink+set}" = set; then
  withval="$with_check_symlink"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_CHECK_SYMLINK 1
EOF

			echo "$as_me:3926: result: enabled, script cannot be a symlink" >&5
echo "${ECHO_T}enabled, script cannot be a symlink" >&6
		else
			echo "$as_me:3929: result: disabled, script can be a symlink" >&5
echo "${ECHO_T}disabled, script can be a symlink" >&6
		fi

else

		echo "$as_me:3935: result: enabled, script cannot be a symlink" >&5
echo "${ECHO_T}enabled, script cannot be a symlink" >&6
		cat >>confdefs.h <<\EOF
#define CONF_CHECK_SYMLINK 1
EOF

fi;

echo "$as_me:3943: checking for minimum uid" >&5
echo $ECHO_N "checking for minimum uid... $ECHO_C" >&6

# Check whether --with-minimum-uid or --without-minimum-uid was given.
if test "${with_minimum_uid+set}" = set; then
  withval="$with_minimum_uid"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<EOF
#define CONF_MINIMUM_UID $withval
EOF

			echo "$as_me:3955: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
		else
			echo "$as_me:3958: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		fi

else

		echo "$as_me:3964: result: 10" >&5
echo "${ECHO_T}10" >&6
		cat >>confdefs.h <<EOF
#define CONF_MINIMUM_UID 10
EOF

fi;

echo "$as_me:3972: checking for minimum gid (primary and auxilliary)" >&5
echo $ECHO_N "checking for minimum gid (primary and auxilliary)... $ECHO_C" >&6

# Check whether --with-minimum-gid or --without-minimum-gid was given.
if test "${with_minimum_gid+set}" = set; then
  withval="$with_minimum_gid"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<EOF
#define CONF_MINIMUM_GID $withval
EOF

			echo "$as_me:3984: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
		else
			echo "$as_me:3987: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		fi

else

		echo "$as_me:3993: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:3998: checking for logging-syslog" >&5
echo $ECHO_N "checking for logging-syslog... $ECHO_C" >&6

# Check whether --with-logging-syslog or --without-logging-syslog was given.
if test "${with_logging_syslog+set}" = set; then
  withval="$with_logging_syslog"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_LOG_USESYSLOG 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_LOG_LABEL "$withval"
EOF

			echo "$as_me:4014: result: enabled, label is '${withval}'" >&5
echo "${ECHO_T}enabled, label is '${withval}'" >&6
		else
			echo "$as_me:4017: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		fi

else

		echo "$as_me:4023: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:4028: checking for logging-file" >&5
echo $ECHO_N "checking for logging-file... $ECHO_C" >&6

# Check whether --with-logging-file or --without-logging-file was given.
if test "${with_logging_file+set}" = set; then
  withval="$with_logging_file"

		if test "x$withval" = x; then
			withval="/usr/adm/cgiwrap.log"
		fi

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_LOG_USEFILE 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_LOG_LOGFILE "$withval"
EOF

			echo "$as_me:4048: result: enabled, logging to file '${withval}'" >&5
echo "${ECHO_T}enabled, logging to file '${withval}'" >&6
		else
			echo "$as_me:4051: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		fi

else

		echo "$as_me:4057: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:4062: checking for script-subdirs" >&5
echo $ECHO_N "checking for script-subdirs... $ECHO_C" >&6

# Check whether --with-script-subdirs or --without-script-subdirs was given.
if test "${with_script_subdirs+set}" = set; then
  withval="$with_script_subdirs"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_SUBDIRS 1
EOF

			echo "$as_me:4074: result: enabled, scripts allowed in subdirectories" >&5
echo "${ECHO_T}enabled, scripts allowed in subdirectories" >&6
		else
			echo "$as_me:4077: result: disabled, scripts not allowed in subdirectories" >&5
echo "${ECHO_T}disabled, scripts not allowed in subdirectories" >&6
		fi

else

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

		echo "$as_me:4087: result: enabled, scripts allowed in subdirectories" >&5
echo "${ECHO_T}enabled, scripts allowed in subdirectories" >&6

fi;

echo "$as_me:4092: checking for redirect-stderr" >&5
echo $ECHO_N "checking for redirect-stderr... $ECHO_C" >&6

# Check whether --with-redirect-stderr or --without-redirect-stderr was given.
if test "${with_redirect_stderr+set}" = set; then
  withval="$with_redirect_stderr"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_REDIR_STDERR 1
EOF

			echo "$as_me:4104: result: enabled, stderr output will go to stdout" >&5
echo "${ECHO_T}enabled, stderr output will go to stdout" >&6
		else
			echo "$as_me:4107: result: disabled, server will get stderr output" >&5
echo "${ECHO_T}disabled, server will get stderr output" >&6
		fi

else

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

		echo "$as_me:4117: result: enabled, stderr output will go to stdout" >&5
echo "${ECHO_T}enabled, stderr output will go to stdout" >&6

fi;

echo "$as_me:4122: checking for initgroups" >&5
echo $ECHO_N "checking for initgroups... $ECHO_C" >&6

# Check whether --with-initgroups or --without-initgroups was given.
if test "${with_initgroups+set}" = set; then
  withval="$with_initgroups"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_INITGROUPS 1
EOF

			echo "$as_me:4134: result: enabled, aux groups will be cleared" >&5
echo "${ECHO_T}enabled, aux groups will be cleared" >&6
		else
			echo "$as_me:4137: result: disabled, aux groups will not be cleared" >&5
echo "${ECHO_T}disabled, aux groups will not be cleared" >&6
		fi

else

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

		echo "$as_me:4147: result: enabled, aux groups will be cleared" >&5
echo "${ECHO_T}enabled, aux groups will be cleared" >&6

fi;

echo "$as_me:4152: checking for setgroups" >&5
echo $ECHO_N "checking for setgroups... $ECHO_C" >&6

# Check whether --with-setgroups or --without-setgroups was given.
if test "${with_setgroups+set}" = set; then
  withval="$with_setgroups"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_SETGROUPS 1
EOF

			echo "$as_me:4164: result: enabled, aux groups will be set" >&5
echo "${ECHO_T}enabled, aux groups will be set" >&6
		else
			echo "$as_me:4167: result: disabled, aux groups will not be set" >&5
echo "${ECHO_T}disabled, aux groups will not be set" >&6
		fi

else

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

		echo "$as_me:4177: result: enabled, aux groups will be set" >&5
echo "${ECHO_T}enabled, aux groups will be set" >&6

fi;

echo "$as_me:4182: checking for user directory rewrite" >&5
echo $ECHO_N "checking for user directory rewrite... $ECHO_C" >&6

# Check whether --with-rewrite or --without-rewrite was given.
if test "${with_rewrite+set}" = set; then
  withval="$with_rewrite"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<EOF
#define CONF_USERDIRFILE "$withval"
EOF

			echo "$as_me:4194: result: enabled, rewrite file is \"$withval\"" >&5
echo "${ECHO_T}enabled, rewrite file is \"$withval\"" >&6
		else
			echo "$as_me:4197: result: disabled, no rewrite file will be used" >&5
echo "${ECHO_T}disabled, no rewrite file will be used" >&6
		fi

else

		echo "$as_me:4203: result: disabled, no rewrite file will be used" >&5
echo "${ECHO_T}disabled, no rewrite file will be used" >&6

fi;

	echo "$as_me:4208: checking for setenv-path" >&5
echo $ECHO_N "checking for setenv-path... $ECHO_C" >&6

# Check whether --with-setenv-path or --without-setenv-path was given.
if test "${with_setenv_path+set}" = set; then
  withval="$with_setenv_path"

		if test "x$withval" = xyes; then
			echo "$as_me:4216: result: no value specified" >&5
echo "${ECHO_T}no value specified" >&6
		elif test "x$withval" = x; then
			echo "$as_me:4219: result: no value specified" >&5
echo "${ECHO_T}no value specified" >&6
		elif test "x$withval" = xno; then
			echo "$as_me:4222: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		else
			cat >>confdefs.h <<\EOF
#define CONF_SETENV_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_SETENV_PATH "$withval"
EOF

			echo "$as_me:4233: result: enabled, set to (\"$withval\")" >&5
echo "${ECHO_T}enabled, set to (\"$withval\")" >&6
		fi

else

		echo "$as_me:4239: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

	echo "$as_me:4244: checking for setenv-tz" >&5
echo $ECHO_N "checking for setenv-tz... $ECHO_C" >&6

# Check whether --with-setenv-tz or --without-setenv-tz was given.
if test "${with_setenv_tz+set}" = set; then
  withval="$with_setenv_tz"

		if test "x$withval" = xyes; then
			echo "$as_me:4252: result: no value specified" >&5
echo "${ECHO_T}no value specified" >&6
		elif test "x$withval" = x; then
			echo "$as_me:4255: result: no value specified" >&5
echo "${ECHO_T}no value specified" >&6
		elif test "x$withval" = xno; then
			echo "$as_me:4258: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		else
			cat >>confdefs.h <<\EOF
#define CONF_SETENV_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_SETENV_TZ "$withval"
EOF

			echo "$as_me:4269: result: enabled, set to (\"$withval\")" >&5
echo "${ECHO_T}enabled, set to (\"$withval\")" >&6
		fi

else

		echo "$as_me:4275: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

	echo "$as_me:4280: checking for limit rlimit-cpu" >&5
echo $ECHO_N "checking for limit rlimit-cpu... $ECHO_C" >&6

# Check whether --with-rlimit-cpu or --without-rlimit-cpu was given.
if test "${with_rlimit_cpu+set}" = set; then
  withval="$with_rlimit_cpu"

		if test "x$withval" = xyes; then
			withval=10
		fi
		if test "x$withval" = x; then
			withval=10
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_CPU $withval
EOF

			echo "$as_me:4302: result: \"$withval\" cpu seconds" >&5
echo "${ECHO_T}\"$withval\" cpu seconds" >&6
		else
			echo "$as_me:4305: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4311: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4316: checking for limit rlimit-vmem" >&5
echo $ECHO_N "checking for limit rlimit-vmem... $ECHO_C" >&6

# Check whether --with-rlimit-vmem or --without-rlimit-vmem was given.
if test "${with_rlimit_vmem+set}" = set; then
  withval="$with_rlimit_vmem"

		if test "x$withval" = xyes; then
			withval=2500000
		fi
		if test "x$withval" = x; then
			withval=2500000
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_VMEM $withval
EOF

			echo "$as_me:4338: result: \"$withval\" bytes" >&5
echo "${ECHO_T}\"$withval\" bytes" >&6
		else
			echo "$as_me:4341: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4347: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4352: checking for limit rlimit-as" >&5
echo $ECHO_N "checking for limit rlimit-as... $ECHO_C" >&6

# Check whether --with-rlimit-as or --without-rlimit-as was given.
if test "${with_rlimit_as+set}" = set; then
  withval="$with_rlimit_as"

		if test "x$withval" = xyes; then
			withval=2500000
		fi
		if test "x$withval" = x; then
			withval=2500000
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_AS $withval
EOF

			echo "$as_me:4374: result: \"$withval\" bytes" >&5
echo "${ECHO_T}\"$withval\" bytes" >&6
		else
			echo "$as_me:4377: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4383: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4388: checking for limit rlimit-fsize" >&5
echo $ECHO_N "checking for limit rlimit-fsize... $ECHO_C" >&6

# Check whether --with-rlimit-fsize or --without-rlimit-fsize was given.
if test "${with_rlimit_fsize+set}" = set; then
  withval="$with_rlimit_fsize"

		if test "x$withval" = xyes; then
			withval=2500000
		fi
		if test "x$withval" = x; then
			withval=2500000
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_FSIZE $withval
EOF

			echo "$as_me:4410: result: \"$withval\" bytes" >&5
echo "${ECHO_T}\"$withval\" bytes" >&6
		else
			echo "$as_me:4413: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4419: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4424: checking for limit rlimit-data" >&5
echo $ECHO_N "checking for limit rlimit-data... $ECHO_C" >&6

# Check whether --with-rlimit-data or --without-rlimit-data was given.
if test "${with_rlimit_data+set}" = set; then
  withval="$with_rlimit_data"

		if test "x$withval" = xyes; then
			withval=2500000
		fi
		if test "x$withval" = x; then
			withval=2500000
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_DATA $withval
EOF

			echo "$as_me:4446: result: \"$withval\" bytes" >&5
echo "${ECHO_T}\"$withval\" bytes" >&6
		else
			echo "$as_me:4449: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4455: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4460: checking for limit rlimit-stack" >&5
echo $ECHO_N "checking for limit rlimit-stack... $ECHO_C" >&6

# Check whether --with-rlimit-stack or --without-rlimit-stack was given.
if test "${with_rlimit_stack+set}" = set; then
  withval="$with_rlimit_stack"

		if test "x$withval" = xyes; then
			withval=2500000
		fi
		if test "x$withval" = x; then
			withval=2500000
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_STACK $withval
EOF

			echo "$as_me:4482: result: \"$withval\" bytes" >&5
echo "${ECHO_T}\"$withval\" bytes" >&6
		else
			echo "$as_me:4485: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4491: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4496: checking for limit rlimit-core" >&5
echo $ECHO_N "checking for limit rlimit-core... $ECHO_C" >&6

# Check whether --with-rlimit-core or --without-rlimit-core was given.
if test "${with_rlimit_core+set}" = set; then
  withval="$with_rlimit_core"

		if test "x$withval" = xyes; then
			withval=2500000
		fi
		if test "x$withval" = x; then
			withval=2500000
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_CORE $withval
EOF

			echo "$as_me:4518: result: \"$withval\" bytes" >&5
echo "${ECHO_T}\"$withval\" bytes" >&6
		else
			echo "$as_me:4521: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4527: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4532: checking for limit rlimit-rss" >&5
echo $ECHO_N "checking for limit rlimit-rss... $ECHO_C" >&6

# Check whether --with-rlimit-rss or --without-rlimit-rss was given.
if test "${with_rlimit_rss+set}" = set; then
  withval="$with_rlimit_rss"

		if test "x$withval" = xyes; then
			withval=2500000
		fi
		if test "x$withval" = x; then
			withval=2500000
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_RSS $withval
EOF

			echo "$as_me:4554: result: \"$withval\" bytes" >&5
echo "${ECHO_T}\"$withval\" bytes" >&6
		else
			echo "$as_me:4557: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4563: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4568: checking for limit rlimit-nproc" >&5
echo $ECHO_N "checking for limit rlimit-nproc... $ECHO_C" >&6

# Check whether --with-rlimit-nproc or --without-rlimit-nproc was given.
if test "${with_rlimit_nproc+set}" = set; then
  withval="$with_rlimit_nproc"

		if test "x$withval" = xyes; then
			withval=32
		fi
		if test "x$withval" = x; then
			withval=32
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_NPROC $withval
EOF

			echo "$as_me:4590: result: \"$withval\" processes" >&5
echo "${ECHO_T}\"$withval\" processes" >&6
		else
			echo "$as_me:4593: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4599: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4604: checking for limit rlimit-nofile" >&5
echo $ECHO_N "checking for limit rlimit-nofile... $ECHO_C" >&6

# Check whether --with-rlimit-nofile or --without-rlimit-nofile was given.
if test "${with_rlimit_nofile+set}" = set; then
  withval="$with_rlimit_nofile"

		if test "x$withval" = xyes; then
			withval=32
		fi
		if test "x$withval" = x; then
			withval=32
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_NOFILE $withval
EOF

			echo "$as_me:4626: result: \"$withval\" files" >&5
echo "${ECHO_T}\"$withval\" files" >&6
		else
			echo "$as_me:4629: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4635: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

	echo "$as_me:4640: checking for limit rlimit-memlock" >&5
echo $ECHO_N "checking for limit rlimit-memlock... $ECHO_C" >&6

# Check whether --with-rlimit-memlock or --without-rlimit-memlock was given.
if test "${with_rlimit_memlock+set}" = set; then
  withval="$with_rlimit_memlock"

		if test "x$withval" = xyes; then
			withval=2500000
		fi
		if test "x$withval" = x; then
			withval=2500000
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_USE_RLIMIT_ANY 1
EOF

			cat >>confdefs.h <<EOF
#define CONF_USE_RLIMIT_MEMLOCK $withval
EOF

			echo "$as_me:4662: result: \"$withval\" bytes" >&5
echo "${ECHO_T}\"$withval\" bytes" >&6
		else
			echo "$as_me:4665: result: none" >&5
echo "${ECHO_T}none" >&6
		fi

else

		echo "$as_me:4671: result: none" >&5
echo "${ECHO_T}none" >&6

fi;

echo "$as_me:4676: checking for allow-file" >&5
echo $ECHO_N "checking for allow-file... $ECHO_C" >&6

# Check whether --with-allow-file or --without-allow-file was given.
if test "${with_allow_file+set}" = set; then
  withval="$with_allow_file"

		if test "x$withval" = x; then
			withval="/usr/adm/cgiwrap.allow"
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<EOF
#define CONF_ALLOWFILE "$withval"
EOF

			echo "$as_me:4691: result: enabled, file is \"$withval\"" >&5
echo "${ECHO_T}enabled, file is \"$withval\"" >&6
		else
			echo "$as_me:4694: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		fi

else

		echo "$as_me:4700: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:4705: checking for deny-file" >&5
echo $ECHO_N "checking for deny-file... $ECHO_C" >&6

# Check whether --with-deny-file or --without-deny-file was given.
if test "${with_deny_file+set}" = set; then
  withval="$with_deny_file"

		if test "x$withval" = x; then
			withval="/usr/adm/cgiwrap.deny"
		fi
		if test "x$withval" != xno; then
			cat >>confdefs.h <<EOF
#define CONF_DENYFILE "$withval"
EOF

			echo "$as_me:4720: result: enabled, file is \"$withval\"" >&5
echo "${ECHO_T}enabled, file is \"$withval\"" >&6
		else
			echo "$as_me:4723: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		fi

else

		echo "$as_me:4729: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:4734: checking for host checking" >&5
echo $ECHO_N "checking for host checking... $ECHO_C" >&6

# Check whether --with-host-checking or --without-host-checking was given.
if test "${with_host_checking+set}" = set; then
  withval="$with_host_checking"

		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_CHECKHOST 1
EOF

			echo "$as_me:4746: result: enabled" >&5
echo "${ECHO_T}enabled" >&6
		else
			echo "$as_me:4749: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		fi

else

		echo "$as_me:4755: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:4760: checking for shell checking" >&5
echo $ECHO_N "checking for shell checking... $ECHO_C" >&6

# Check whether --with-check-shell or --without-check-shell was given.
if test "${with_check_shell+set}" = set; then
  withval="$with_check_shell"

		GETUSERSHELL=""
		if test "x$withval" != xno; then
			cat >>confdefs.h <<\EOF
#define CONF_CHECKSHELL 1
EOF

			echo "$as_me:4773: result: enabled" >&5
echo "${ECHO_T}enabled" >&6
			echo "$as_me:4775: checking for getusershell" >&5
echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
if test "${ac_cv_func_getusershell+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4781 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getusershell (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getusershell ();
char (*f) ();

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_getusershell) || defined (__stub___getusershell)
choke me
#else
f = getusershell;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4812: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4815: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4818: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4821: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getusershell=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getusershell=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4831: result: $ac_cv_func_getusershell" >&5
echo "${ECHO_T}$ac_cv_func_getusershell" >&6
if test $ac_cv_func_getusershell = yes; then
  :
else
  GETUSERSHELL="getusershell.o"
fi

			echo "$as_me:4839: checking for OS specific getusershell support" >&5
echo $ECHO_N "checking for OS specific getusershell support... $ECHO_C" >&6
			os_specific_msg="none needed"
			case $target_os in
			aix* )
				LIBS="$LIBS -ls"
				os_specific_msg="-ls"
				;;
			esac
			echo "$as_me:4848: result: $os_specific_msg" >&5
echo "${ECHO_T}$os_specific_msg" >&6
		else
			echo "$as_me:4851: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		fi

else

		GETUSERSHELL=""
		echo "$as_me:4858: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

echo "$as_me:4863: checking for afs setpag() support" >&5
echo $ECHO_N "checking for afs setpag() support... $ECHO_C" >&6

# Check whether --with-afs or --without-afs was given.
if test "${with_afs+set}" = set; then
  withval="$with_afs"

		if test "x$withval" = xno; then
			echo "$as_me:4871: result: disabled" >&5
echo "${ECHO_T}disabled" >&6
		else
			if test "x$withval" = x; then
				withval="/usr/afsws"
			fi
			if test "x$withval" = xyes; then
				withval="/usr/afsws"
			fi
			AFSDIR="$withval"
			AFSLDFLAGS="-L${AFSDIR}/lib -L${AFSDIR}/lib/afs"
			AFSLIBS="-lsys -lrx -llwp ${AFSDIR}/lib/afs/util.a"
			cat >>confdefs.h <<\EOF
#define CONF_AFS_SETPAG 1
EOF

			echo "$as_me:4887: result: enabled, afs dir is \"$withval\"" >&5
echo "${ECHO_T}enabled, afs dir is \"$withval\"" >&6
		fi

else

		echo "$as_me:4893: result: disabled" >&5
echo "${ECHO_T}disabled" >&6

fi;

if test "x$AFSDIR" != x; then
	echo "$as_me:4899: checking for extra requirements for AFS support" >&5
echo $ECHO_N "checking for extra requirements for AFS support... $ECHO_C" >&6
	os_specific_msg="none needed"
	case $target_os in
		hpux* )
			EXTRA_AFS_LIBS="-lBSD"
			AFSLIBS="$AFSLIBS $EXTRA_AFS_LIBS"
			os_specific_msg="$EXTRA_AFS_LIBS"
		;;
		*solaris*)
			EXTRA_AFS_LIBS="-lnsl -lsocket -L/usr/ucblib -lucb"
			AFSLIBS="$AFSLIBS $EXTRA_AFS_LIBS"
			os_specific_msg="$EXTRA_AFS_LIBS"
		;;
	esac
	echo "$as_me:4914: result: $os_specific_msg" >&5
echo "${ECHO_T}$os_specific_msg" >&6
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:4923: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      # break 2 since there is a loop in there.
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 4945 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:4950: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4956: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 4979 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:4983: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4989: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

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

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:5026: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 5036 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:5041: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5047: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 5070 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:5074: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5080: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:5108: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
fi

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

echo "$as_me:5119: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5125 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:5133: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5139: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 5161 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  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 <<_ACEOF
#line 5179 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  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 <<_ACEOF
#line 5200 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#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);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5226: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5229: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5231: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5234: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
fi
fi
fi
echo "$as_me:5247: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

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

fi

for ac_header in limits.h stdlib.h pwd.h string.h strings.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5260: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5266 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5270: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5276: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5295: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

for ac_header in sys/resource.h sys/types.h sys/time.h unistd.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5308: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5314 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5318: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5324: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5343: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

for ac_header in syslog.h fcntl.h sys/stat.h signal.h ctype.h grp.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5356: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5362 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5366: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5372: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5391: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

for ac_header in errno.h sys/errno.h sys/wait.h time.h sys/signal.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5404: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5410 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5414: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5420: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5439: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

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

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, 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 \
        "s/'/'\\\\''/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

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

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
fi

DEFS=-DHAVE_CONFIG_H

: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:5529: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
SHELL=\${CONFIG_SHELL-$SHELL}
ac_cs_invocation="\$0 \$@"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

exec 6>&1

_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\EOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Report bugs to <bug-autoconf@gnu.org>."
EOF

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.50,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
EOF

cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    shift
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
    shift
    ;;
  -*);;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_need_defaults=false;;
  esac

  case $1 in
  # Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:5701: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    shift
    CONFIG_FILES="$CONFIG_FILES $1"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
    ac_need_defaults=false;;

  # Handling of arguments.
  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  'unsup/loganalyze.pl' ) CONFIG_FILES="$CONFIG_FILES unsup/loganalyze.pl" ;;
  'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;

  # This is an error.
  -*) { { echo "$as_me:5725: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;
  *) { { echo "$as_me:5730: error: invalid argument: $1" >&5
echo "$as_me: error: invalid argument: $1" >&2;}
   { (exit 1); exit 1; }; };;
  esac
  shift
done

exec 5>>config.log
cat >&5 << _ACEOF

## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##

This file was extended by $as_me 2.50, executed with
  > $ac_cs_invocation
on `(hostname || uname -n) 2>/dev/null | sed 1q`

_ACEOF
EOF

cat >>$CONFIG_STATUS <<\EOF
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fi

# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit $?); exit $?; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   { (exit 1); exit 1; }
}

EOF

cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
s,@DEFS@,$DEFS,;t t
s,@LIBS@,$LIBS,;t t
s,@build@,$build,;t t
s,@build_cpu@,$build_cpu,;t t
s,@build_vendor@,$build_vendor,;t t
s,@build_os@,$build_os,;t t
s,@host@,$host,;t t
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
s,@target@,$target,;t t
s,@target_cpu@,$target_cpu,;t t
s,@target_vendor@,$target_vendor,;t t
s,@target_os@,$target_os,;t t
s,@VERSION@,$VERSION,;t t
s,@CC@,$CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@ac_ct_CC@,$ac_ct_CC,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@SET_MAKE@,$SET_MAKE,;t t
s,@PATH_PROG_PERL@,$PATH_PROG_PERL,;t t
s,@GCC_WALL_OPT@,$GCC_WALL_OPT,;t t
s,@INSTALLGROUP@,$INSTALLGROUP,;t t
s,@INSTALLDIR@,$INSTALLDIR,;t t
s,@DOINSTALL@,$DOINSTALL,;t t
s,@INSTALLMODE@,$INSTALLMODE,;t t
s,@GETUSERSHELL@,$GETUSERSHELL,;t t
s,@AFSDIR@,$AFSDIR,;t t
s,@AFSLDFLAGS@,$AFSLDFLAGS,;t t
s,@AFSLIBS@,$AFSLIBS,;t t
s,@CPP@,$CPP,;t t
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_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # 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" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

EOF
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

    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 $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
  [\\/]* | ?:[\\/]* )
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
  esac

  if test x"$ac_file" != x-; then
    { echo "$as_me:5965: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:5983: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:5996: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
EOF
cat >>$CONFIG_STATUS <<EOF
  sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
EOF
cat >>$CONFIG_STATUS <<\EOF

#
# CONFIG_HEADER section.
#

# 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=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'

for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  test x"$ac_file" != x- && { echo "$as_me:6056: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:6067: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:6080: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in

EOF

# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h.  The first handles `#define'
# templates, and the second `#undef' templates.
# 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.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\EOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
t end
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
EOF
# If some macros were called several times there might be several times
# the same #defines, which is useless.  Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed

# 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.undefs <<\EOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
EOF

# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo '  :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
  # Write a limited-size here document to $tmp/defines.sed.
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#define' lines.
  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines
echo '  fi # egrep' >>$CONFIG_STATUS
echo >>$CONFIG_STATUS

# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.undefs >/dev/null
do
  # Write a limited-size here document to $tmp/undefs.sed.
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#undef'
  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  rm -f conftest.undefs
  mv conftest.tail conftest.undefs
done
rm -f conftest.undefs

cat >>$CONFIG_STATUS <<\EOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
  else
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      { echo "$as_me:6197: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

      fi
      rm -f $ac_file
      mv $tmp/config.h $ac_file
    fi
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
  fi
done
EOF

cat >>$CONFIG_STATUS <<\EOF

{ (exit 0); exit 0; }
EOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save

# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi

