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

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi
DUALCASE=1; export DUALCASE # for MKS sh

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


# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

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


# Name of the executable.
as_me=`$as_basename "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`


# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


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

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

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

as_executable_p="test -f"

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

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


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

# CDPATH.
$as_unset 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
ac_config_libobj_dir=.
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}

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

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK GREP CUT WHICH PERL ac_rpmquery ac_sysctl SW_VERS _cv_arch _cv_opsys _cv_op_sys _cv_opsys_vers _cv_sysname _cv_kernel_rev _cv_libc_full _cv_libc_majmin _cv_libc_is_kind _cv_ext_config_sh has_externals ext_src ext_build TMPDIR pure_cache_dir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CompilerKind CompilerMajor CompilerMinor CompilerPatch gcc_libc lib_std_cpp lib_gcc_eh crt_begin CXX CXXFLAGS ac_ct_CXX gcc_ld_prog LD gcc_static_ld_flag gcc_hash_style_flag DEBUG_FLAGS comp_option_Wall comp_option_W comp_option_Wextra comp_option_Wfloat_equal comp_option_Wshadow comp_option_Wendif_labels comp_option_Wpointer_arith comp_option_Wcast_qual comp_option_Wcast_align comp_option_Wvolatile_register_var comp_option_Wnested_externs comp_option_Wstrict_prototypes comp_option_Wmissing_prototypes comp_option_stack_protector comp_option_no_stack_protector gcc_rdynamic_flag cc_pic_flags cc_shared_flags _cv_gnu_g77 _cv_gnu_gfortran _cv_vendor_cc _cv_vendor_cplus _cv_vendor_cplus_name _cv_vendor_f77 _cv_vendor_f90 has_gnu_g77 has_gnu_gfortran has_vendor_cc has_vendor_cplus has_vendor_f77 has_vendor_f90 _cv_is_clipped _cv_arch_optimize_flag _cv_vendor_c_test_flags _cv_vendor_cpp_test_flags _cv_platform_ld_flags _cv_glibc_flag _cv_platform_flags _cv_test_platform_ld_flags _cv_purify_platform_ld_flags MAKE ac_patch LEX LEXLIB LEX_OUTPUT_ROOT ac_byacc ac_yacc YACC ac_ar STRIP ac_find FindCmd ac_objcopy ObjcopyCmd OBJCOPY_KEEPDEBUG_FLAG OBJCOPY_STRIPUNNEEDED_FLAG OBJCOPY_DEBUGLINK_FLAG TarCmd _cv_cp CpCmd ac_gzip TRUE ac_purify ac_vmware VMWARE ac_javac JAVAC ac_jar JAR ac_md5sum MD5SUM ac_sha1sum ac_rpmcmd RpmCmd CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X11_CFLAGS X11_LDFLAGS X11_LIBS EGREP crypt_lib _cv_has_static ext_linuxlibcheaders_version want_ext_linuxlibcheaders ext_glibc_version want_ext_glibc ext_coredumper_version want_coredumper ext_drmaa_version ext_krb5_version ext_openssl_version ext_globus_version ext_unicoregahp_version ext_zlib_version ext_classads_version ext_srb_version ext_pcre_version ext_blahp_version man_dir ext_man_version ext_gcb_version ORACLE_OCI_VERSION ORACLE_OCI_CFLAGS ORACLE_OCI_LDFLAGS ext_postgresql_version POSTGRESQL_LDFLAGS POSTGRESQL_CFLAGS globus_flavor ext_gsoap_version GSOAP_LDFLAGS GSOAP_CFLAGS LIBC_A LIBOBJS LTLIBOBJS'
ac_subst_files=''

# 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'

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" : ".*[^-_$as_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" : ".*[^-_$as_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 | -n)
    no_create=yes ;;

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

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

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

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

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

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

  -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" : ".*[^-_$as_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" : ".*[^-_$as_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" : ".*[^_$as_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" : ".*[^-._$as_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 exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
	      localstatedir libdir includedir oldincludedir infodir mandir
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    *)  { echo "$as_me: error: expected an absolute directory name 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.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    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_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$0" : 'X\(//\)[^/]' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$0" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
  else
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
  fi
fi
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
   { (exit 1); exit 1; }; }
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_TMPDIR_set=${TMPDIR+set}
ac_env_TMPDIR_value=$TMPDIR
ac_cv_env_TMPDIR_set=${TMPDIR+set}
ac_cv_env_TMPDIR_value=$TMPDIR
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_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CXXCPP_set=${CXXCPP+set}
ac_env_CXXCPP_value=$CXXCPP
ac_cv_env_CXXCPP_set=${CXXCPP+set}
ac_cv_env_CXXCPP_value=$CXXCPP

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

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

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

Defaults for the options are specified in brackets.

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

_ACEOF

  cat <<_ACEOF
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]
_ACEOF

  cat <<\_ACEOF

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR
_ACEOF
fi

if test -n "$ac_init_help"; then

  cat <<\_ACEOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-bgd-support    Enable support for HTC mode on the BlueGene machine.
  --enable-proper         Force this configure script to work in the proper
                          (non-Condor) way (default: disabled)
  --enable-full-port      Perform a full build, i.e. Standard Universe
                          included (default: enabled)
  --disable-gcc-version-check
                          Disable the gcc version check
  --disable-glibc-version-check
                          Disable the glibc version check
  --enable-soft-is-hard   Force all SOFT requirements into HARD requirements
                          (default: disabled)
  --enable-job-hooks      Support for invoking hooks throughout the workflow
                          of a job
  --enable-hibernation    Support for Condor-controlled hibernation
  --enable-rpm            determine if we try to make rpms (default: yes)
  --enable-malloc-debug   enable memory allocation debugging (default: no)
  --enable-netman         enable NETMAN functionality (default: no)
  --enable-nest           enable NeST functionality (default: no)
  --enable-quill          enable Quill functionality (default: yes)
  --enable-kbdd           enable KBDD functionality (default: platform
                          dependent)
  --enable-static         determine if we do static linking (default: yes)
  --enable-stork          enable Stork functionality (default: platform
                          dependent)
  --enable-lease-manager  enable lease manager functionality (default:
                          platform dependent)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-buildid          Add a build identification string to the Condor
                          Version String
  --with-externals=DIR    Directory in which to build and install external
                          programs needed for building Condor (default is to
                          build in ../externals)
  --with-purecachedir=DIR cache directory for objects instrumented with Purify
                          (default is $TMPDIR)
  --with-vmware=DIR       full path to directory where the vmware program is
                          located
  --with-x                use the X Window System
  --with-linuxlibcheaders[=DIR]
                          (soft requirement)
  --with-glibc[=DIR]
                          (soft requirement)
  --with-coredumper[=DIR]
                          (soft requirement)
  --with-drmaa[=DIR]
                          (soft requirement)
  --with-krb5[=DIR] use krb5 (provides Kerberos support) (soft
                          requirement)
  --with-openssl[=DIR]
                          use OpenSSL (provides authentication and encryption
                          support) (soft requirement)
  --with-globus[=DIR]
                          (soft requirement)
  --with-unicoregahp[=DIR]
                          (soft requirement)
  --with-zlib[=DIR] use zlib (provides compression support)
                          ($_cv_zlib_requirement requirement)
  --with-classads[=DIR]
                          use new ClassAds (provides -better-analyze and more)
                          (soft requirement)
  --with-srb[=DIR]  (soft requirement)
  --with-pcre[=DIR] use PCRE (provides regular expression support) (hard
                          requirement)
  --with-blahp[=DIR]
                          (soft requirement)
  --with-man[=DIR]  include the man pages (required for a release) (soft
                          requirement)
  --with-gcb[=DIR]  (soft requirement)
  --with-oci=[ARG]  use Oracle OCI API from given Oracle home
                          (ARG=path); use existing ORACLE_HOME (ARG=yes);
                          disable Oracle OCI support (ARG=no)
  --with-oci-include=[DIR]
                          use Oracle OCI API headers from given path
  --with-oci-lib=[DIR]
                          use Oracle OCI API libraries from given path
  --with-postgresql[=DIR]
                          use PostgreSQL (provides Quill and other support)
                          (soft requirement)
  --with-gsoap[=DIR]
                          use gSOAP (enables Birdbath interface) (soft
                          requirement)

Some influential environment variables:
  TMPDIR      Directory for temp files during Condor build [/tmp]
  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>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      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.

_ACEOF
fi

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

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac

# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
  case "$ac_dir" in
  .) ac_abs_builddir=`pwd`;;
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
  case ${ac_top_builddir}. in
  .) ac_abs_top_builddir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
  case $ac_srcdir in
  .) ac_abs_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
  case $ac_top_srcdir in
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  esac;;
esac

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

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

Copyright (C) 2003 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

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

  $ $0 $@

_ACEOF
{
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`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  echo "PATH: $as_dir"
done

} >&5

cat >&5 <<_ACEOF


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

_ACEOF


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

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # 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/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
}
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=$`echo $ac_var`
      echo "$ac_var='"'"'$ac_val'"'"'"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=$`echo $ac_var`
	echo "$ac_var='"'"'$ac_val'"'"'"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      sed "/^$/d" confdefs.h | sort
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core &&
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $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

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF


# 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:$LINENO: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$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:$LINENO: 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:$LINENO: 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_cache_corrupted=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:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
	ac_cache_corrupted=:
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&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



















          ac_config_headers="$ac_config_headers config.h"


{ echo "$as_me:$LINENO: checking for critical tools used by configure" >&5
echo "$as_me: checking for critical tools used by configure" >&6;}
for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$AWK" && break
done

# Extract the first word of "grep", so it can be a program name with args.
set dummy grep; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GREP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="no"
  ;;
esac
fi
GREP=$ac_cv_path_GREP

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

 if test "$GREP" = "no" ; then
   { { echo "$as_me:$LINENO: error: grep is required" >&5
echo "$as_me: error: grep is required" >&2;}
   { (exit 1); exit 1; }; }
 fi

# Extract the first word of "cut", so it can be a program name with args.
set dummy cut; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_CUT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $CUT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_CUT" && ac_cv_path_CUT="no"
  ;;
esac
fi
CUT=$ac_cv_path_CUT

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

 if test "$CUT" = "no" ; then
   { { echo "$as_me:$LINENO: error: cut is required" >&5
echo "$as_me: error: cut is required" >&2;}
   { (exit 1); exit 1; }; }
 fi

# Extract the first word of "which", so it can be a program name with args.
set dummy which; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_WHICH+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $WHICH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="no"
  ;;
esac
fi
WHICH=$ac_cv_path_WHICH

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


# Condor only requires 5.002, but GPT apparently relies on 5.005_03 or
# greater.  Unfortunately, GPT doesn't have a configure script or
# anything, it just lets perl die with a require statement.  So, we
# test for the right version here and fail in an early and obvious way
# if there's a problem.  Also, we check for this early, so we can use
# perl in the rest of the tests in here, if we want it.
# Make sure we have perl
if test -z "$PERL"; then
  # Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PERL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  ;;
esac
fi
PERL=$ac_cv_path_PERL

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

fi
# Check if version of Perl is sufficient
ac_perl_version="5.005_03"
if test "$PERL" != "no"; then
  echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
echo $ECHO_N "checking for perl version greater than or equal to $ac_perl_version... $ECHO_C" >&6
  # NB: It would be nice to log the error if there is one, but we cannot rely
  # on autoconf internals
  $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
  if test $? -ne 0; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6;
    { { echo "$as_me:$LINENO: error: perl version 5.005_03 or higher is required" >&5
echo "$as_me: error: perl version 5.005_03 or higher is required" >&2;}
   { (exit 1); exit 1; }; }
  else
    echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6;

  fi
else
  { echo "$as_me:$LINENO: WARNING: could not find perl" >&5
echo "$as_me: WARNING: could not find perl" >&2;}
fi


{ echo "$as_me:$LINENO: verifying build environment " >&5
echo "$as_me: verifying build environment " >&6;}

# Find RPM, if we have it; this variable is only used for querying the
# release of an RPM-based system
# Extract the first word of "rpm", so it can be a program name with args.
set dummy rpm; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_rpmquery+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_rpmquery in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_rpmquery="$ac_rpmquery" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_rpmquery="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_rpmquery" && ac_cv_path_ac_rpmquery="no"
  ;;
esac
fi
ac_rpmquery=$ac_cv_path_ac_rpmquery

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


if test "x$ac_rpmquery" == "xno" ; then
   RPMQUERY=/bin/false
else
   RPMQUERY=$ac_rpmquery
fi

# first, if we notice we're being run at UW-Madison CS on a
# CSL-supported machine, and the PATH doesn't include
# /p/condor/workspaces/build/bin before /s/std/bin, print an error
# message and exit, since there's no way we're going to find the first
# versions of everything we need, and it's easier to just tell the
# user right at the start what they need to do to fix it, instead of
# having the rest of the tests in here fail...
my_domain=`echo $ac_hostname | $CUT -f2- -d.`
_bad_path_dirs="/s/std/bin /usr/local/bin /usr/bin /bin /usr/ccs/bin"
_found_bad_dir=no
_which_bad_dir=""
_found_s_std_bin=no
_found_p_build_bin=no
_p_build_bin="/p/condor/workspaces/build/bin"
if test $my_domain = "cs.wisc.edu" && test -d "/s/std/bin" ; then
  echo "$as_me:$LINENO: checking if PATH on CSL-supported machine is ok" >&5
echo $ECHO_N "checking if PATH on CSL-supported machine is ok... $ECHO_C" >&6
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  for as_dir in $PATH
  do
    IFS=$as_save_IFS
    for test_dir in $_bad_path_dirs
    do
      if test $as_dir = $test_dir ; then
        _found_bad_dir=yes
	if test "x$_which_bad_dir" = "x" ; then
          _which_bad_dir="$test_dir"
	else
          _which_bad_dir="$_which_bad_dir, $test_dir"
	fi
      fi
    done
    if test $as_dir = $_p_build_bin ; then
      if test $_found_bad_dir = "yes" ; then
        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
        { { echo "$as_me:$LINENO: error: You are compiling on a UW-Madison CSL-supported machine and $_p_build_bin is *NOT* near the front of your PATH.  This configure script will not be able to find the right versions of the programs it needs to build Condor.  Please fix your PATH by putting $_p_build_bin *BEFORE* any of these directories in your PATH: $_which_bad_dir" >&5
echo "$as_me: error: You are compiling on a UW-Madison CSL-supported machine and $_p_build_bin is *NOT* near the front of your PATH.  This configure script will not be able to find the right versions of the programs it needs to build Condor.  Please fix your PATH by putting $_p_build_bin *BEFORE* any of these directories in your PATH: $_which_bad_dir" >&2;}
   { (exit 1); exit 1; }; }
      fi
      _found_p_build_bin=yes
      break
    fi
  done
  if test $_found_p_build_bin = "no" ; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { { echo "$as_me:$LINENO: error: You are compiling on a UW-Madison CSL-supported machine and $_p_build_bin is *NOT* in your PATH.  This configure script will not be able to find the right versions of programs it needs to build Condor.  Please fix your PATH by adding $_p_build_bin (it must be before any of these directories: $_bad_path_dirs) and re-run configure" >&5
echo "$as_me: error: You are compiling on a UW-Madison CSL-supported machine and $_p_build_bin is *NOT* in your PATH.  This configure script will not be able to find the right versions of programs it needs to build Condor.  Please fix your PATH by adding $_p_build_bin (it must be before any of these directories: $_bad_path_dirs) and re-run configure" >&2;}
   { (exit 1); exit 1; }; }
  fi
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
fi


############################################################
# Figure out what platform we're being run on
############################################################

# on Darwin on intel, uname will *always* report i386 when in reality it may
# be an x86_64 machine. Here we determine if sysctl is available, and then
# later we'll use it to figure out the actual platform.
# Extract the first word of "sysctl", so it can be a program name with args.
set dummy sysctl; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_sysctl+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_sysctl in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_sysctl="$ac_sysctl" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_sysctl="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_sysctl" && ac_cv_path_ac_sysctl="no"
  ;;
esac
fi
ac_sysctl=$ac_cv_path_ac_sysctl

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

if test "x$ac_sysctl" == "xno" ; then
   SYSCTL=/bin/false
else
   STSCTL=$ac_sysctl
fi

{ echo "$as_me:$LINENO: determining host platform" >&5
echo "$as_me: determining host platform" >&6;}
# these three are just used by configure to specify the settings we
# actually care about, described below
arch=`uname -m`
osrelease=`uname -r`
osversion=`uname -v`

# this is what ends up as "Architecture" in the Imakefiles, and is
# used in a number of the IS_* #define's too.  luckily, we can use the
# same thing in both places without confusion...
_cv_arch="UNKNOWN_ARCH"

# this is the opsys-specific string in the IS_* #define's
_cv_opsys=""

# this is what ends up as "OperatingSystem" in the Imakefile, which
# unfortnuately is sometimes different than what we use in _cv_opsys
# this is stupid and evil, but since the naming isn't consistent in
# the Condor code and build system, for now, we'll just define both.
# hopefully, someday relatively soon, we'll be able to go through and
# clean this discrepancy up and remove this evil setting.  sorry.
_cv_op_sys=""

# the version-specific opsys string we use in the IS_* #define's
_cv_opsys_vers=""

# what gets set as the "SYSNAME" make variable, for now, it's only
# used as the argument to "make_final_tarballs" to determine what the
# packaged filenames should be when we try to release this platform
_cv_sysname=""

# Sometimes, I need to know the specific kernel revision. This is mostly
# needed under Linux, but I'll make every OS produce this identification.
_cv_kernel_rev="XXX"

os=`uname -s`

if test "$os" = "HP-UX"; then
  _cv_op_sys="HPUX"
  _cv_opsys="HPUX"
  if test "$osrelease" = "B.10.20" ; then
    _cv_opsys_vers="HPUX10"
    _cv_sysname="hp_ux102"
  elif test "$osrelease" = "B.11.11" ; then
    _cv_opsys_vers="HPUX11"
    _cv_sysname="hp_ux110"
  elif test "$osrelease" = "B.11.31" ; then
    _cv_opsys_vers="HPUX11"
    _cv_sysname="hp_ux113"
  fi

  hpux_arch=`uname -m`
  if test "x$hpux_arch" = "xia64" ; then
    _cv_arch="IA64"
  else
    _cv_arch="HPPA"
  fi

  _cv_kernel_rev=`uname -r | sed -e 's#^B\.##'`;

elif test $os = "Linux" ; then
  # linux is a big mess, since we have different distributions,
  # different versions of glibc, etc, etc...
  _cv_op_sys="LINUX"
  _cv_opsys="LINUX"
  if test $arch = "i686" -o $arch = "i586" -o $arch = "i486" ; then
    _cv_arch="I386"
  elif test $arch = "alpha" ; then
    _cv_arch="ALPHA"
  elif test $arch = "ia64" ; then
    _cv_arch="IA64"
  elif test $arch = "ppc" -o $arch = "ppc64" ; then
    _cv_arch="CONDOR_PPC"
  elif test $arch = "x86_64" ; then
    _cv_arch="X86_64"
  elif test $arch = "mips64" ; then
    _cv_arch="MIPS64"
  fi

  # next, figure out what linux distribution this is
  if test -f "/etc/tao-release" ; then
    _tao_vers=`cat /etc/tao-release|$PERL -ne '/.* (.*) \(.*\)/;print $1;'`
    case "$_tao_vers" in
     "1" )
       _cv_linux_distro="TAO1"
       ;;
     * )
       { echo "$as_me:$LINENO: WARNING: Condor is not yet ported to Tao version $_tao_vers" >&5
echo "$as_me: WARNING: Condor is not yet ported to Tao version $_tao_vers" >&2;}
       { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
       _cv_linux_distro="TAO_UNKNOWN"
       ;;
    esac
  elif test -f "/etc/yellowdog-release" ; then
    _yd_vers=`cat /etc/yellowdog-release|$PERL -ne '/.* (.*) \(.*\)/;print $1;'`
    case "$_yd_vers" in
     "3.0" )
       _cv_linux_distro="YD30"
       ;;
     "5.0" )
       _cv_linux_distro="YD50"
       ;;
     * )
       { echo "$as_me:$LINENO: WARNING: Condor is not yet ported to yellowdog version $_yd_vers" >&5
echo "$as_me: WARNING: Condor is not yet ported to yellowdog version $_yd_vers" >&2;}
       { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
       _cv_linux_distro="YD_UNKNOWN"
       ;;
    esac
  elif test -f "/etc/gentoo-release" ; then
    _gentoo_vers=`cat /etc/gentoo-release|$PERL -ne '/Gentoo Base System release (.*)/;print $1;'`
    case "$_gentoo_vers" in
     "1.12.11.1" )
       _cv_linux_distro="GENTOO1.12.11.1"
       ;;
     * )
       { echo "$as_me:$LINENO: WARNING: Condor is not yet ported to gentoo version $_gentoo_vers" >&5
echo "$as_me: WARNING: Condor is not yet ported to gentoo version $_gentoo_vers" >&2;}
       { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
       _cv_linux_distro="GENTOO_UNKNOWN"
       ;;
    esac
  elif test -f "/etc/fedora-release"  ; then
    # do this BEFORE checking for redhat-release, because
    # redhat-release is a symlink to fedora-release on F systems
    _fedora_rel=`cat /etc/fedora-release|$PERL -ne '/.* (.*) \((.*)\)/;print $2;'`
    case "$_fedora_rel" in
     # Handle FC cases explicitly
     "Yarrow" )
        _cv_linux_distro="FC1"
	;;
     "Tettnang" )
        _cv_linux_distro="FC2"
	;;
     "Heidelberg" )
        _cv_linux_distro="FC3"
	;;
     "Stentz" )
        _cv_linux_distro="FC4"
	;;
     "Bordeaux" )
        _cv_linux_distro="FC5"
	;;
     "Zod" )
        _cv_linux_distro="FC6"
	;;
     # Handle post-FC releases more robustly
     * )
        _cv_linux_distro=`$RPMQUERY -q --queryformat "F%{VERSION}" fedora-release`
	;;
    esac
  elif test -f "/etc/redhat-release" ; then
    # Non-Fedora Red Hat or Red Hat derivative -- either RHEL or CentOS

    if (rpm -q centos-release 2>&1 > /dev/null) ; then
       # CentOS
       _cv_linux_distro=`$RPMQUERY -q --queryformat "CENTOS%{VERSION}%{RELEASE}" centos-release | tr -d .`
    else
       # Red Hat Linux or RHEL; handle RHL first before presuming RHEL

       if (grep -q "Red Hat Linux" /etc/redhat-release) ; then
         _rh_vers=`cat /etc/redhat-release|$PERL -ne '/.* (.*) \(.*\)/;print $1;'`
       	  case "$_rh_vers" in
    	   "7.2" )
	     _cv_linux_distro="RH72"
       	     ;;
	   "2.1AW" )
       	     _cv_linux_distro="RH72"
 	     ;;
           "8.0" )
             _cv_linux_distro="RH80"
             ;;
           "9" )
             _cv_linux_distro="RH9"
             ;;
	   * )
       	     { echo "$as_me:$LINENO: WARNING: Condor is not ported to Red Hat Linux version $_rh_vers" >&5
echo "$as_me: WARNING: Condor is not ported to Red Hat Linux version $_rh_vers" >&2;}
	     { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
 	     _cv_linux_distro="RHL_UNKNOWN"
             ;;
          esac
       elif (grep -q "Red Hat Enterprise Linux" /etc/redhat-release) ; then
         # RHEL
	 _cv_linux_distro=RHEL`$RPMQUERY -q --queryformat "%{VERSION}" redhat-release | tr -d \[A-Za-z] `
       else
          $_rh_release=`cat /etc/redhat-release`
          { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor on $_rh_release" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor on $_rh_release" >&2;}
          _cv_linux_distro=`$RPMQUERY -q --queryformat "RH_UNK_%{VERSION}%{RELEASE}" redhat-release | tr -d .`
       fi
    fi
  elif test -f "/etc/SuSE-release" ; then
    _suse_vers=`cat /etc/SuSE-release | grep VERSION | $AWK '{print $3}'`
    case "$_suse_vers" in
     "8.1" )
       _cv_linux_distro="SLES81"
       ;;
     "9" )
       _cv_linux_distro="SLES9"
       ;;
     * )
       { echo "$as_me:$LINENO: WARNING: Condor is not yet ported to SuSE version $_suse_vers" >&5
echo "$as_me: WARNING: Condor is not yet ported to SuSE version $_suse_vers" >&2;}
       { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
       _cv_linux_distro="SuSE_UNKNOWN"
       ;;
    esac
  elif test -f "/etc/debian_version" ; then
    _deb_vers=`cat /etc/debian_version`;
    case "$_deb_vers" in
     "4.0" )
       _cv_linux_distro="DEBIAN40"
       ;;
     "5.0" )
       _cv_linux_distro="DEBIAN50"
       ;;
     * )
       { echo "$as_me:$LINENO: WARNING: Condor is not yet ported to Debian version $_suse_vers" >&5
echo "$as_me: WARNING: Condor is not yet ported to Debian version $_suse_vers" >&2;}
       { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
       _cv_linux_distro="DEBIAN_UNKNOWN"
       ;;
	 esac
  else
    { echo "$as_me:$LINENO: WARNING: Unrecognised Linux distribution" >&5
echo "$as_me: WARNING: Unrecognised Linux distribution" >&2;}
    { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
    _cv_linux_distro="UNKNOWN"
  fi
  # this perl 1-liner takes all space-delimited input, sticks it
  # together with '_' marks, and lower-cases the whole thing
  _cv_sysname="`echo $_cv_arch $_cv_linux_distro | $PERL -ane 'print lc join('_',@F)'`"
  _cv_opsys_vers="LINUX_$_cv_linux_distro"

  # now figure out the kernel revision. Under linux this will have
  # the form: major.minor.patch
  _cv_kernel_rev=`uname -r | sed -e 's#^\\([0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\\).*#\\1#'`;

elif test $os = "SunOS" ; then
  _cv_op_sys="Solaris"
  _cv_opsys="SOLARIS"
  if test $arch = "sun4m" -o $arch = "sun4u" ; then
    _cv_arch="SUN4X"
  else
    { { echo "$as_me:$LINENO: error: Condor only supports Sparc Solaris (not $arch)" >&5
echo "$as_me: error: Condor only supports Sparc Solaris (not $arch)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "$osrelease" = "5.6" ; then
    _cv_opsys_vers="SOLARIS26"
    _cv_sysname="sun4x_56"
  elif test "$osrelease" = "5.7" ; then
    _cv_opsys_vers="SOLARIS27"
    _cv_sysname="sun4x_57"
  elif test "$osrelease" = "5.8" ; then
    _cv_opsys_vers="SOLARIS28"
    _cv_sysname="sun4x_58"
  elif test "$osrelease" = "5.9" ; then
    _cv_opsys_vers="SOLARIS29"
    _cv_sysname="sun4x_59"
  fi

  # now figure out the kernel revision. Under solaris this will have
  # the form: major.minor
  _cv_kernel_rev=`uname -r | sed -e 's#^\\([0-9]\\+\\.[0-9]\\+\\).*#\\1#'`;

elif test $os = "AIX" ; then
  # add detection to this when ia64 is needed
  _cv_arch="PPC"
  _cv_op_sys="AIX"
  _cv_opsys="AIX"
  if test "$osversion" = "5" ; then
    _cv_opsys_vers="AIX5"
	if test "$osrelease" = "1" ; then
      _cv_sysname="ppc_aix51"
	elif test "$osrelease" = "2" ; then
      _cv_sysname="ppc_aix52"
	else
      _cv_sysname="ppc_aix5unknown"
      { echo "$as_me:$LINENO: WARNING: Unrecognised AIX version" >&5
echo "$as_me: WARNING: Unrecognised AIX version" >&2;}
      { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
	fi
  else
    _cv_opsys_vers="AIXUNKNOWN"
    _cv_sysname="ppc_aixunknown"
    { echo "$as_me:$LINENO: WARNING: Unrecognised AIX version" >&5
echo "$as_me: WARNING: Unrecognised AIX version" >&2;}
    { echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
  fi

  # now figure out the kernel revision. Under aix this will have
  # the form: major.minor
  _cv_kernel_rev_major=`uname -v`
  _cv_kernel_rev_minor=`uname -r`
  _cv_kernel_rev="$_cv_kernel_rev_major.$_cv_kernel_rev_minor"

# --------------------------------------------
# Darwin
# --------------------------------------------
elif test $os = "Darwin" ; then
	##
	## Figure out the architecture
	##
	if test "$arch" = "i386"; then
		# XXX This test is commented out because the externals aren't
		# smart enough to figure out what platform they are on and Condor
		# will fail to compile. So for now we lie and say INTEL. This
		# could cause problems if a submit machine is x86_64 and the execute
		# machines are x86 since both will report as INTEL.
		# ok, test to see if the hw.optional.x86_64 key is present and 1,
		# if so, then this machine is actually an x86_64 machine, not an
		# i386 machine.
		#`$SYSCTL hw.optional.x86_64 2>&1 | $GREP '1\$' > /dev/null 2>&1`
		#if test "x$?" = "x1"; then
		#	_cv_arch="X86_64"
		#	_cv_sysname="x86_64_macosx"
		#else
			_cv_arch="I386"
			_cv_sysname="i386_macosx"
		#fi
	elif test "$arch" = "Power Macintosh"; then
		_cv_arch="PPC"
		_cv_sysname="ppc_macosx"
	else
		{ echo "$as_me:$LINENO: WARNING: Unrecognised Darwin Architecture" >&5
echo "$as_me: WARNING: Unrecognised Darwin Architecture" >&2;}
		{ echo "$as_me:$LINENO: WARNING: You may have trouble building and/or packaging Condor" >&5
echo "$as_me: WARNING: You may have trouble building and/or packaging Condor" >&2;}
		_cv_sysname="unknown_macosx"
	fi
	_cv_op_sys="Darwin"
	_cv_opsys="DARWIN"

	# Extract the first word of "sw_vers", so it can be a program name with args.
set dummy sw_vers; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_SW_VERS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $SW_VERS in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SW_VERS="$SW_VERS" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_SW_VERS="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_SW_VERS" && ac_cv_path_SW_VERS="no"
  ;;
esac
fi
SW_VERS=$ac_cv_path_SW_VERS

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

	if test $SW_VERS = "no" ; then
    	_cv_opsys_vers="OSX_UNKNOWN"
	else
		_cv_osx_vers=`$SW_VERS | $GREP ^ProductVersion | $PERL -pe 's/^ProductVersion\:\s+(\d+)\.(\d+).*$/$1_$2/'`
		_cv_opsys_vers="OSX_$_cv_osx_vers"
	fi

	# append the product version to the sysname, so we can differentiate
	# between different ports
	tmp=`echo $_cv_osx_vers | $PERL -pe 's/_//g'`
	_cv_sysname="${_cv_sysname}${tmp}"

	# now figure out the kernel revision. Under macosx this will have
	# the form: major.minor.patch
	_cv_kernel_rev=`uname -r | sed -e 's#^\\([0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\\).*#\\1#'`;

# --------------------------------------------
# FreeBSD
# --------------------------------------------
elif test $os = "FreeBSD" ; then
   ##
   ## Figure out the architecture
   ##
   if test $arch = "i686" -o $arch = "i586" -o $arch = "i486" -o $arch = "i386" ; then
      _cv_arch="I386"
   elif test $arch = "alpha" ; then
      _cv_arch="ALPHA"
   elif test $arch = "ia64" ; then
      _cv_arch="IA64"
   elif test $arch = "ppc" -o $arch = "ppc64" ; then
      _cv_arch="CONDOR_PPC"
   ##
   ## Globus does not work on 64-bit
   ## We will use the i386 build until this gets fixed (hopefully not by me!)
   ## Andy - 01/25/2008
   ##
   elif test $arch = "amd64" -o $arch = "x86_64" ; then
      _cv_arch="I386"
      #_cv_arch="X86_64"
   fi

   ##
   ## Now figure out the OS Version
   ## Format:  MAJOR.MINOR-TAG
   ## Example: 6.0-RELEASE
   ##
   _cv_opsys_vers=`uname -r | sed -e 's#\([0-9]*\).*#\1#'`
   _cv_kernel_rev=`uname -r | sed -e 's#[0-9]*\.\([0-9]*\).*#\1#'`

   _cv_op_sys=CONDOR_FREEBSD
   _cv_opsys=${_cv_op_sys}
   _cv_sysname=`echo ${_cv_arch}_freebsd${_cv_opsys_vers} | $PERL -ane 'print lc'`

   ##
   ## Need to make _cv_opsys_vers like 'FREEBSD#'
   ##
   _cv_opsys_vers="FREEBSD${_cv_opsys_vers}"

else
  { { echo "$as_me:$LINENO: error: Condor has not been ported to this platform" >&5
echo "$as_me: error: Condor has not been ported to this platform" >&2;}
   { (exit 1); exit 1; }; }
fi

echo "$as_me:$LINENO: checking architecture" >&5
echo $ECHO_N "checking architecture... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $_cv_arch" >&5
echo "${ECHO_T}$_cv_arch" >&6
_cv_arch=$_cv_arch


echo "$as_me:$LINENO: checking generic operating system" >&5
echo $ECHO_N "checking generic operating system... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $_cv_opsys" >&5
echo "${ECHO_T}$_cv_opsys" >&6
_cv_opsys=$_cv_opsys

_cv_op_sys=$_cv_op_sys


echo "$as_me:$LINENO: checking operating system version" >&5
echo $ECHO_N "checking operating system version... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $_cv_opsys_vers" >&5
echo "${ECHO_T}$_cv_opsys_vers" >&6
_cv_opsys_vers=$_cv_opsys_vers


echo "$as_me:$LINENO: checking system identifying string" >&5
echo $ECHO_N "checking system identifying string... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $_cv_sysname" >&5
echo "${ECHO_T}$_cv_sysname" >&6
_cv_sysname=$_cv_sysname


echo "$as_me:$LINENO: checking kernel revision" >&5
echo $ECHO_N "checking kernel revision... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $_cv_kernel_rev" >&5
echo "${ECHO_T}$_cv_kernel_rev" >&6
_cv_kernel_rev=$_cv_kernel_rev


# check out the libc
if test "$_cv_opsys" = "LINUX" ; then
  echo "$as_me:$LINENO: checking exact libc version" >&5
echo $ECHO_N "checking exact libc version... $ECHO_C" >&6
  for _libc in "/lib/libc.so.6" "/lib/libc.so.6.1" "/lib64/libc.so.6" ; do
    if test -f "$_libc" && test -L "$_libc" ; then
      _libc_ver=`echo $_libc|$PERL -nle '$f=readlink;$f=~/libc-(.*)\.so/;print $1;'`
      break;
    elif test -f "$_libc" ; then
      # ugh!  it's not a symlink to a file named with the version, so
      # we try an alternative method.  this is mostly a hack based on
      # crude experimentation.  we run nm on the libc.so, search for
      # "A" symbols with "GLIBC_#.#.#" in them, and grab the *second to*
      # last one we find.  based on testing this method on some
      # versions of glibc where the version was in the filename, this
      # seems to give us the closest match to reality.  it'll
      # certainly work to give us the major + minor number, which is
      # mostly all we care about at this point...
      _libc_ver=`nm $_libc|$PERL -e 'while(<>){if(/.*A GLIBC_(\d)\.(\d)\.(\d)/){$s=$v;$v="$1.$2.$3"}}print "$s\n";'`
      break;
    fi
  done
  if test "x$_libc_ver" = "x" ; then
    echo "$as_me:$LINENO: result: ERROR" >&5
echo "${ECHO_T}ERROR" >&6
    { { echo "$as_me:$LINENO: error: Can not determine libc version on this machine" >&5
echo "$as_me: error: Can not determine libc version on this machine" >&2;}
   { (exit 1); exit 1; }; }
  fi
  echo "$as_me:$LINENO: result: GLIBC $_libc_ver" >&5
echo "${ECHO_T}GLIBC $_libc_ver" >&6
  _cv_libc_kind="GLIBC"
  _cv_libc_major=`echo $_libc_ver | $CUT -f1 -d.`
  _cv_libc_minor=`echo $_libc_ver | $CUT -f2 -d.`
  _cv_libc_patch=`echo $_libc_ver | $CUT -f3 -d.`

  _cv_libc_full=`echo $_cv_libc_kind $_cv_libc_major $_cv_libc_minor $_cv_libc_patch|$PERL -ane 'print "#define IS_".join('_',@F)." YES";'`
  _cv_libc_majmin="#define IS_$_cv_libc_kind$_cv_libc_major$_cv_libc_minor YES"
  _cv_libc_is_kind="#define IS_$_cv_libc_kind YES"
else
  _cv_libc_full=""
  _cv_libc_majmin=""
  _cv_libc_is_kind=""
fi
_cv_libc_full=$_cv_libc_full

_cv_libc_majmin=$_cv_libc_majmin

_cv_libc_is_kind=$_cv_libc_is_kind



#########
# See what directory we're being run in, since we need this info for
# various other things.  however, instead of using "`pwd`/..", we use
# AS_DIRNAME to strip off the "src" part of `/bin/pwd`.  This should
# get things right, even if there are weird symlinks going on.
#########
_src_dir=`/bin/pwd`
_root_dir=`(dirname "$_src_dir") 2>/dev/null ||
$as_expr X"$_src_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_src_dir" : 'X\(//\)[^/]' \| \
	 X"$_src_dir" : 'X\(//\)$' \| \
	 X"$_src_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$_src_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`

echo "$as_me:$LINENO: checking if $_root_dir/config is valid" >&5
echo $ECHO_N "checking if $_root_dir/config is valid... $ECHO_C" >&6
 if test ! -d "$_root_dir/config"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 { echo "$as_me:$LINENO: WARNING: $_root_dir/config is not a directory" >&5
echo "$as_me: WARNING: $_root_dir/config is not a directory" >&2;}
 { { echo "$as_me:$LINENO: error: config directory is not valid" >&5
echo "$as_me: error: config directory is not valid" >&2;}
   { (exit 1); exit 1; }; }

 fi

 if test ! -f "$_root_dir/config/configure.cf.in"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 { echo "$as_me:$LINENO: WARNING: $_root_dir/config/configure.cf.in does not exist" >&5
echo "$as_me: WARNING: $_root_dir/config/configure.cf.in does not exist" >&2;}
 { { echo "$as_me:$LINENO: error: config directory is not valid" >&5
echo "$as_me: error: config directory is not valid" >&2;}
   { (exit 1); exit 1; }; }

 fi

 if test ! -f "$_root_dir/config/externals.cf.in"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 { echo "$as_me:$LINENO: WARNING: $_root_dir/config/externals.cf.in does not exist" >&5
echo "$as_me: WARNING: $_root_dir/config/externals.cf.in does not exist" >&2;}
 { { echo "$as_me:$LINENO: error: config directory is not valid" >&5
echo "$as_me: error: config directory is not valid" >&2;}
   { (exit 1); exit 1; }; }

 fi

 if test ! -f "$_root_dir/config/config.sh.in"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 { echo "$as_me:$LINENO: WARNING: $_root_dir/config/config.sh.in does not exist" >&5
echo "$as_me: WARNING: $_root_dir/config/config.sh.in does not exist" >&2;}
 { { echo "$as_me:$LINENO: error: config directory is not valid" >&5
echo "$as_me: error: config directory is not valid" >&2;}
   { (exit 1); exit 1; }; }

 fi

 echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
 ac_cv_config=$_root_dir/config

_cv_ext_config_sh="$_root_dir/config/config.sh"



############################################################
# Check for command-line arguments and environment variables
############################################################


# Check whether --with-buildid or --without-buildid was given.
if test "${with_buildid+set}" = set; then
  withval="$with_buildid"
  BUILDID=$withval
else
  BUILDID=no
fi;

# Check whether --enable-bgd-support or --disable-bgd-support was given.
if test "${enable_bgd_support+set}" = set; then
  enableval="$enable_bgd_support"

else
  enable_bgd_support=no
fi;

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

else
  enable_proper=no
fi;

# Check whether --enable-full-port or --disable-full-port was given.
if test "${enable_full_port+set}" = set; then
  enableval="$enable_full_port"
  CLIPPED=$(test $enableval == yes && echo no || echo yes)
else
  CLIPPED=default
fi;

# Check whether --enable-gcc-version-check or --disable-gcc-version-check was given.
if test "${enable_gcc_version_check+set}" = set; then
  enableval="$enable_gcc_version_check"

else
  enable_gcc_version_check=yes
fi;

# Check whether --enable-glibc-version-check or --disable-glibc-version-check was given.
if test "${enable_glibc_version_check+set}" = set; then
  enableval="$enable_glibc_version_check"

else
  enable_glibc_version_check=yes
fi;

# Check whether --enable-soft-is-hard or --disable-soft-is-hard was given.
if test "${enable_soft_is_hard+set}" = set; then
  enableval="$enable_soft_is_hard"

else
  enable_soft_is_hard=no
fi;

# if we want a buildid, jam it into CPPFLAGS
echo "$as_me:$LINENO: checking for a build id to use" >&5
echo $ECHO_N "checking for a build id to use... $ECHO_C" >&6
if test "x$BUILDID" != "xno"; then
	CPPFLAGS="$CPPFLAGS -DBUILDID=$BUILDID"
	echo "$as_me:$LINENO: result: $BUILDID" >&5
echo "${ECHO_T}$BUILDID" >&6
else
	echo "$as_me:$LINENO: result: none specified" >&5
echo "${ECHO_T}none specified" >&6
fi

# If we are being proper we don't want to look for "externals"
if test "x$enable_proper" != xyes; then

ac_cv_has_externals=YES
ac_cv_externals_src="$_root_dir/externals"
ac_cv_externals_build="$ac_cv_externals_src"
echo "$as_me:$LINENO: checking if $ac_cv_externals_src is valid" >&5
echo $ECHO_N "checking if $ac_cv_externals_src is valid... $ECHO_C" >&6
 if test ! -d "$ac_cv_externals_src"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 { echo "$as_me:$LINENO: WARNING: $ac_cv_externals_src is not a directory" >&5
echo "$as_me: WARNING: $ac_cv_externals_src is not a directory" >&2;}
 { { echo "$as_me:$LINENO: error: Can't find externals directory, should be in $_root_dir" >&5
echo "$as_me: error: Can't find externals directory, should be in $_root_dir" >&2;}
   { (exit 1); exit 1; }; }

 fi

 if test ! -f "$ac_cv_externals_src/build_external"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 { echo "$as_me:$LINENO: WARNING: $ac_cv_externals_src/build_external does not exist" >&5
echo "$as_me: WARNING: $ac_cv_externals_src/build_external does not exist" >&2;}
 { { echo "$as_me:$LINENO: error: Can't find externals directory, should be in $_root_dir" >&5
echo "$as_me: error: Can't find externals directory, should be in $_root_dir" >&2;}
   { (exit 1); exit 1; }; }

 fi

 if test ! -d "$ac_cv_externals_src/bundles"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 { echo "$as_me:$LINENO: WARNING: $ac_cv_externals_src/bundles is not a directory" >&5
echo "$as_me: WARNING: $ac_cv_externals_src/bundles is not a directory" >&2;}
 { { echo "$as_me:$LINENO: error: Can't find externals directory, should be in $_root_dir" >&5
echo "$as_me: error: Can't find externals directory, should be in $_root_dir" >&2;}
   { (exit 1); exit 1; }; }

 fi

 echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
 ac_cv_externals=$ac_cv_externals_src


# Check whether --with-externals or --without-externals was given.
if test "${with_externals+set}" = set; then
  withval="$with_externals"
  if test "$withval" != no; then
    if test ! -d "$withval" || test ! -w "$withval"; then
      { { echo "$as_me:$LINENO: error: directory specified with --with-externals ($withval) is not valid" >&5
echo "$as_me: error: directory specified with --with-externals ($withval) is not valid" >&2;}
   { (exit 1); exit 1; }; }
    fi
    ac_cv_externals_build="$withval"
  else
    { echo "$as_me:$LINENO: WARNING: By not using --with-externals, most of Condor will not build" >&5
echo "$as_me: WARNING: By not using --with-externals, most of Condor will not build" >&2;}
    ac_cv_has_externals=NO
  fi

else

  # nothing specified, use the UW-Madison CS cache if present, else assume
  # ../externals. This makes it possible to just run "./configure" most
  # of the time.
  _uw_cs_externals="/p/condor/workspaces/externals"
  if test -d "$_uw_cs_externals" ; then
    ac_cv_externals_build="$_uw_cs_externals"
  fi


fi;
has_externals=$ac_cv_has_externals

ext_src=$ac_cv_externals_src

ext_build=$ac_cv_externals_build


else

has_externals=NO


fi



if test "$ac_cv_env_TMPDIR_set" != set; then
    TMPDIR=/tmp
fi
if test ! -d $TMPDIR || test ! -w $TMPDIR; then
    { { echo "$as_me:$LINENO: error: TMPDIR ($TMPDIR) is not a writable directory" >&5
echo "$as_me: error: TMPDIR ($TMPDIR) is not a writable directory" >&2;}
   { (exit 1); exit 1; }; }
fi


# Check whether --with-purecachedir or --without-purecachedir was given.
if test "${with_purecachedir+set}" = set; then
  withval="$with_purecachedir"
  ac_cv_purecachedir=$withval
else
  ac_cv_purecachedir="$TMPDIR/$USER/.pcache"

fi;
pure_cache_dir=$ac_cv_purecachedir


# Check whether --enable-job-hooks or --disable-job-hooks was given.
if test "${enable_job_hooks+set}" = set; then
  enableval="$enable_job_hooks"
  JOB_HOOKS=$enableval
else
  JOB_HOOKS=yes
fi;
if test $JOB_HOOKS != no; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_JOB_HOOKS 1
_ACEOF

fi

# Check whether --enable-hibernation or --disable-hibernation was given.
if test "${enable_hibernation+set}" = set; then
  enableval="$enable_hibernation"
  HIBERNATION=$enableval
else
  HIBERNATION=yes
fi;
if test $HIBERNATION != no; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_HIBERNATION 1
_ACEOF

fi


############################################################
# checks for programs
############################################################

#####################
# compiler detection
#####################

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

# We have to set CFLAGS to something otherwise AC_PROG_CC will add -O2
# to it and that breaks parts of the standard universe. Lucky for us
# -g is always safe to have in CFLAGS. The standard universe breakage
# comes from stdio.h, which includes inline versions of functions when
# -O2 is specified, instead of regular symbols. As a result the symbol
# interposition in the standard universe fails to find all the symbols
# it needs to.
CFLAGS="-g $CFLAGS"
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:$LINENO: 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
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: 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:$LINENO: 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
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:$LINENO: 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:$LINENO: 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
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: 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:$LINENO: 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
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:$LINENO: 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:$LINENO: 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
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
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
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: 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:$LINENO: 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
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: 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:$LINENO: 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
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:$LINENO: 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:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

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

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.

# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
# b.out is created by i960 compilers.
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
	;;
    conftest.$ac_ext )
	# This is the source file.
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	# FIXME: I believe we export ac_cv_exeext for Libtool,
	# but it would be cool to find out if it's true.  Does anybody
	# maintain Libtool? --akim.
	export ac_cv_exeext
	break;;
    * )
	break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:$LINENO: 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:$LINENO: 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:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

rm -f a.out a.exe conftest$ac_cv_exeext b.out
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:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $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 conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  export ac_cv_exeext
	  break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
echo "$as_me:$LINENO: 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:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $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 | *.xSYM | *.bb | *.bbg ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:$LINENO: 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_compiler_gnu=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:$LINENO: 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:$LINENO: 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_cc_g=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: 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
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

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

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

# 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:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   '' \
   '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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
#include <stdlib.h>
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

continue
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err 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

if test $ac_cv_c_compiler_gnu != yes; then
   { { echo "$as_me:$LINENO: error: GNU CC (gcc) is required " >&5
echo "$as_me: error: GNU CC (gcc) is required " >&2;}
   { (exit 1); exit 1; }; }
fi

echo "$as_me:$LINENO: checking for full path to gcc" >&5
echo $ECHO_N "checking for full path to gcc... $ECHO_C" >&6
 if test $WHICH != no; then
   gcc_path=`$WHICH gcc`
   echo "$as_me:$LINENO: result: $gcc_path" >&5
echo "${ECHO_T}$gcc_path" >&6
 else
   echo "$as_me:$LINENO: result: this platform does not support 'which'" >&5
echo "${ECHO_T}this platform does not support 'which'" >&6
 fi



# Figure out the version of gcc.
# This probably seems like a job for a regular expression, not a big
# case statement.  however, in our experience, there's enough variation
# in how these version strings look that explicitly listing the ones
# we recognize seems to work better than trying to figure it all out
# automatically.  moreover, porting Condor to a new version of gcc is
# always a lot of work, so if someone is trying to build on an
# supported gcc version, we might as well catch them here, before they
# get very far.
echo "$as_me:$LINENO: checking for exact version of gcc" >&5
echo $ECHO_N "checking for exact version of gcc... $ECHO_C" >&6
GCC=gcc
# "Sometimes the user knows what he is doing" If a user specifies CC
# we don't want configure to use it and Condor to use a hard-coded
# "gcc"
if test -n "$CC"; then
  GCC=$CC
fi
gcc_vers=`$GCC -v 2>&1 |$PERL -ne '{if(/.*gcc version\s*(\S*).*/){ print "$1\n";}}'`

case "$gcc_vers" in
 "egcs-2.91.66" )
    CompilerKind="EGCS"
    CompilerMajor="2"
    CompilerMinor="91"
    CompilerPatch="66"
    ;;
 "2.95.3" )
    CompilerKind="GCC"
    CompilerMajor="2"
    CompilerMinor="95"
    CompilerPatch="3"
    ;;
 "2.95.4" )
    CompilerKind="GCC"
    CompilerMajor="2"
    CompilerMinor="95"
    CompilerPatch="4"
    ;;
 "2.96" )
    CompilerKind="GCC"
    CompilerMajor="2"
    CompilerMinor="96"
    CompilerPatch="0"
    ;;
 "3.0" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="0"
    CompilerPatch="0"
    ;;
 "3.1" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="1"
    CompilerPatch="0"
    ;;
 "3.2" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="2"
    CompilerPatch="0"
    ;;
 "3.2.1" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="2"
    CompilerPatch="1"
    ;;
 "3.2.2" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="2"
    CompilerPatch="2"
    ;;
 "3.2.3" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="2"
    CompilerPatch="3"
    ;;
 "3.3" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="3"
    CompilerPatch="0"
    ;;
 "3.3.1" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="3"
    CompilerPatch="1"
    ;;
 "3.3.2" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="3"
    CompilerPatch="2"
    ;;
 "3.3.3" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="3"
    CompilerPatch="3"
    ;;
 "3.3.4" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="3"
    CompilerPatch="4"
    ;;
 "3.3.5" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="3"
    CompilerPatch="5"
    ;;
 "3.4.2" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="4"
    CompilerPatch="2"
    ;;
 "3.4.3" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="4"
    CompilerPatch="3"
    ;;
 "3.4.4" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="4"
    CompilerPatch="4"
    ;;
 "3.4.6" )
    CompilerKind="GCC"
    CompilerMajor="3"
    CompilerMinor="4"
    CompilerPatch="6"
    ;;
 "4.0.0" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="0"
    CompilerPatch="0"
    ;;
 "4.0.1" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="0"
    CompilerPatch="1"
    ;;
 "4.0.2" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="0"
    CompilerPatch="2"
    ;;
 "4.0.3" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="0"
    CompilerPatch="3"
    ;;
 "4.1.1" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="1"
    CompilerPatch="1"
    ;;
 "4.1.2" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="1"
    CompilerPatch="2"
    ;;
 "4.2.3" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="2"
    CompilerPatch="3"
    ;;
 "4.2.1" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="2"
    CompilerPatch="1"
    ;;
 "4.3.0" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="3"
    CompilerPatch="0"
    ;;
 "4.3.1" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="3"
    CompilerPatch="1"
    ;;
 "4.3.2" )
    CompilerKind="GCC"
    CompilerMajor="4"
    CompilerMinor="3"
    CompilerPatch="2"
    ;;
 * )
    if test "x$enable_gcc_version_check" = "xyes"; then
      echo "$as_me:$LINENO: result: ERROR" >&5
echo "${ECHO_T}ERROR" >&6
      { { echo "$as_me:$LINENO: error: Condor will not compile with gcc version $gcc_vers" >&5
echo "$as_me: error: Condor will not compile with gcc version $gcc_vers" >&2;}
   { (exit 1); exit 1; }; }
    else
      echo "$as_me:$LINENO: result: $gcc_vers (UNSUPPORTED)" >&5
echo "${ECHO_T}$gcc_vers (UNSUPPORTED)" >&6
      CompilerKind="UNSUPPORTED"
      CompilerMajor="0"
      CompilerMinor="0"
      CompilerPatch="0"
    fi
    ;;
esac
echo "$as_me:$LINENO: result: $gcc_vers" >&5
echo "${ECHO_T}$gcc_vers" >&6

CompilerKind=$CompilerKind

CompilerMajor=$CompilerMajor

CompilerMinor=$CompilerMinor

CompilerPatch=$CompilerPatch


# Find libgcc.a (needed for all platforms)
echo "$as_me:$LINENO: checking for libgcc.a" >&5
echo $ECHO_N "checking for libgcc.a... $ECHO_C" >&6
if test "${_cv_gcc_libc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  _cv_gcc_libc=`gcc -print-libgcc-file-name 2>/dev/null`
  _gcc_status=$?
  if test $_gcc_status -ne 0; then
    _cv_gcc_libc="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_gcc_libc" >&5
echo "${ECHO_T}$_cv_gcc_libc" >&6
 if test $_cv_[gcc_libc] = "no"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 else
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
   gcc_libc=$_cv_gcc_libc

 fi

echo "$as_me:$LINENO: checking for libstdc++.a" >&5
echo $ECHO_N "checking for libstdc++.a... $ECHO_C" >&6
if test "${_cv_lib_std_cpp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  _cv_lib_std_cpp=`gcc --print-file-name=libstdc++.a 2>/dev/null`
  _gcc_status=$?
  if test $_gcc_status -ne 0; then
    _cv_lib_std_cpp="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_lib_std_cpp" >&5
echo "${ECHO_T}$_cv_lib_std_cpp" >&6
 if test $_cv_[lib_std_cpp] = "no"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 else
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
   lib_std_cpp=$_cv_lib_std_cpp

 fi

# this gcc3+ specific library is used for standard universe linking
if test "X$CompilerKind" = "XGCC" && test "X$CompilerMajor" = "X3" -o "X$CompilerMajor" = "X4"; then
  echo "$as_me:$LINENO: checking for libgcc_eh.a" >&5
echo $ECHO_N "checking for libgcc_eh.a... $ECHO_C" >&6
if test "${_cv_lib_gcc_eh+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  _cv_lib_gcc_eh=`gcc --print-file-name=libgcc_eh.a 2>/dev/null`
  _gcc_status=$?
  if test $_gcc_status -ne 0; then
    _cv_lib_gcc_eh="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_lib_gcc_eh" >&5
echo "${ECHO_T}$_cv_lib_gcc_eh" >&6
 if test $_cv_[lib_gcc_eh] = "no"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 else
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
   lib_gcc_eh=$_cv_lib_gcc_eh

 fi

fi

# Find/define crt[01].o for each architecture we support
echo "$as_me:$LINENO: checking for crt0.o" >&5
echo $ECHO_N "checking for crt0.o... $ECHO_C" >&6
case "$os" in
  "SunOS" | "Linux" )
    CRT_BEGIN=`gcc -print-file-name=crt1.o`
    ;;
  "HP-UX" )
    if test $os = "HP-UX" && test "$osrelease" = "B.10.20" ; then
      CRT_BEGIN=/lib/crt0.o
    elif test $os = "HP-UX" && test "$osversion" = "B.11.00" ; then
      # we support only 64-bit compilations of condor on hpux 11.00
      CRT_BEGIN=/usr/ccs/lib/pa20_64/crt0.o
    elif test $os = "HP-UX" && test "$osversion" = "B.11.31" ; then
      CRT_BEGIN=/usr/ccs/lib/hpux32/crt0.o
    fi
    ;;
  "AIX" )
    CRT_BEGIN=/lib/crt0.o
    ;;
esac
echo "$as_me:$LINENO: result: $CRT_BEGIN" >&5
echo "${ECHO_T}$CRT_BEGIN" >&6
crt_begin=$CRT_BEGIN


ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  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:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
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:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"

  CXX=$ac_ct_CXX
fi


# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:$LINENO: 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_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_compiler_gnu=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_cxx_g=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
for ac_declaration in \
   '' \
   '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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
#include <stdlib.h>
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

continue
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

if test $ac_cv_cxx_compiler_gnu != yes; then
   { { echo "$as_me:$LINENO: error: GNU C++ (g++) is required " >&5
echo "$as_me: error: GNU C++ (g++) is required " >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: checking for full path to g++" >&5
echo $ECHO_N "checking for full path to g++... $ECHO_C" >&6
 if test $WHICH != no; then
   gpp_path=`$WHICH g++`
   echo "$as_me:$LINENO: result: $gpp_path" >&5
echo "${ECHO_T}$gpp_path" >&6
 else
   echo "$as_me:$LINENO: result: this platform does not support 'which'" >&5
echo "${ECHO_T}this platform does not support 'which'" >&6
 fi



#########
# figure out if we're using GNU ld (and therefore, can use --wrap)
#########
echo "$as_me:$LINENO: checking for ld used by gcc" >&5
echo $ECHO_N "checking for ld used by gcc... $ECHO_C" >&6
if test "${_cv_gcc_ld_prog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  _cv_gcc_ld_prog=`gcc -print-prog-name=ld 2>/dev/null`
  _gcc_status=$?
  if test $_gcc_status -ne 0; then
    _cv_gcc_ld_prog="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_gcc_ld_prog" >&5
echo "${ECHO_T}$_cv_gcc_ld_prog" >&6
 if test $_cv_[gcc_ld_prog] = "no"; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 else
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
   gcc_ld_prog=$_cv_gcc_ld_prog

 fi

_gcc_ld_dir=`(dirname "$_cv_gcc_ld_prog") 2>/dev/null ||
$as_expr X"$_cv_gcc_ld_prog" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_cv_gcc_ld_prog" : 'X\(//\)[^/]' \| \
	 X"$_cv_gcc_ld_prog" : 'X\(//\)$' \| \
	 X"$_cv_gcc_ld_prog" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$_cv_gcc_ld_prog" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
if test "$_gcc_ld_dir" = "." ; then
  # gcc doesn't have a full path, find out what we're really using
  # Extract the first word of "ld", so it can be a program name with args.
set dummy ld; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $LD in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_LD" && ac_cv_path_LD="no"
  ;;
esac
fi
LD=$ac_cv_path_LD

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

else
  LD=$_cv_gcc_ld_prog
fi

echo "$as_me:$LINENO: checking if $LD is GNU" >&5
echo $ECHO_N "checking if $LD is GNU... $ECHO_C" >&6
if test "${_cv_ld_is_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if ( sh -c "$LD --version" 2> /dev/null | grep GNU > /dev/null 2>&1 ) ;
  then
     _cv_ld_is_gnu=yes
  else
     _cv_ld_is_gnu=no
  fi

fi
echo "$as_me:$LINENO: result: $_cv_ld_is_gnu" >&5
echo "${ECHO_T}$_cv_ld_is_gnu" >&6

if test $_cv_ld_is_gnu = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_GNU_LD 1
_ACEOF

fi


#########
# figure out what linker flags put us in static-link mode
#########
{ echo "$as_me:$LINENO: checking what gcc flag forces $_cv_gcc_ld_prog into static mode" >&5
echo "$as_me: checking what gcc flag forces $_cv_gcc_ld_prog into static mode" >&6;}
gcc_static_ld_flag=""
# determine the flags...
if test $os = "AIX" ; then
  # AIX static linking with respect to Condor is not pretty. In effect,
  # we must perform a dynamic link ALWAYS, except in the case of the
  # C++ compiler support libraries, which must be linked in statically
  # so the executables can be run on machines that they weren't built on.
  { echo "$as_me:$LINENO: using a pre-determined AIX static linking algorithm" >&5
echo "$as_me: using a pre-determined AIX static linking algorithm" >&6;}
else
  # make a trivial test program and compile it to a .o...
  echo "main() { return 0; }" > static_test.c
  gcc -c static_test.c > /dev/null 2>&1
  #####
  # -Bstatic is GNU ld
  # -B,static is Solaris ld
  # -a,archive is HPUX ld
  #####
  for arg in "-Bstatic" "-B,static" "-a,archive" ; do
    # we always want to prepend "-Wl,"
    arg="-Wl,$arg"
    echo "$as_me:$LINENO: checking $arg" >&5
echo $ECHO_N "checking $arg... $ECHO_C" >&6
    _test_output=`gcc -o static_test $arg static_test.o 2>&1`
    _test_status=$?
    if test $_test_status -eq 0 && test "x$_test_output" = "x"; then
      gcc_static_ld_flag=$arg
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      break
    else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
  done
  rm -f static_test.c static_test.o static_test > /dev/null 2>&1
  if test "x$gcc_static_ld_flag" = "x" ; then
    msg="can not find appropriate flags for $gcc_ld_prog!"
    if test $os = "SunOS" ; then
      # on Solaris, this is fatal, since we depend on this info
      { { echo "$as_me:$LINENO: error: $msg" >&5
echo "$as_me: error: $msg" >&2;}
   { (exit 1); exit 1; }; }
    else
      { echo "$as_me:$LINENO: WARNING: $msg" >&5
echo "$as_me: WARNING: $msg" >&2;}
    fi
  else
    gcc_static_ld_flag=$gcc_static_ld_flag

  fi

  # Now test for the -Wl,--hash-type=both flag
  echo "$as_me:$LINENO: checking hash-style flag" >&5
echo $ECHO_N "checking hash-style flag... $ECHO_C" >&6
  echo "main() { return 0; }" > link_test.c
  _test_output=`gcc -Wl,--hash-style=both -o link_test link_test.c > /dev/null 2>&1`
  _test_status=$?
  if test $_test_status -eq 0 && test "x$_test_output" = "x"; then
    gcc_hash_style_flag=-Wl,--hash-style=both
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  else
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  fi
  rm -f link_test link_test.c
  gcc_hash_style_flag=$gcc_hash_style_flag


fi


#########
# determine if gcc has a collection of particular warning flags we desire.
#########

#
# These options are shared between gcc and g++
#

DEBUG_FLAGS=$debug_flags


# The standard warnings
echo "$as_me:$LINENO: checking if gcc supports -Wall" >&5
echo $ECHO_N "checking if gcc supports -Wall... $ECHO_C" >&6
if test "${_cv_comp_option_Wall+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wall=`gcc -Wall  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wall="yes";
  else
    _cv_comp_option_Wall="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wall" >&5
echo "${ECHO_T}$_cv_comp_option_Wall" >&6
 if test $_cv_comp_option_Wall = "yes"; then
   comp_option_Wall=-Wall

 fi
  rm -f conf_flag.c conf_flag.o


# Extra options in later compilers, -W and -Wextra are the same
echo "$as_me:$LINENO: checking if gcc supports -W" >&5
echo $ECHO_N "checking if gcc supports -W... $ECHO_C" >&6
if test "${_cv_comp_option_W+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_W=`gcc -W  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_W="yes";
  else
    _cv_comp_option_W="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_W" >&5
echo "${ECHO_T}$_cv_comp_option_W" >&6
 if test $_cv_comp_option_W = "yes"; then
   comp_option_W=-W

 fi
  rm -f conf_flag.c conf_flag.o

echo "$as_me:$LINENO: checking if gcc supports -Wextra" >&5
echo $ECHO_N "checking if gcc supports -Wextra... $ECHO_C" >&6
if test "${_cv_comp_option_Wextra+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wextra=`gcc -Wextra  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wextra="yes";
  else
    _cv_comp_option_Wextra="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wextra" >&5
echo "${ECHO_T}$_cv_comp_option_Wextra" >&6
 if test $_cv_comp_option_Wextra = "yes"; then
   comp_option_Wextra=-Wextra

 fi
  rm -f conf_flag.c conf_flag.o


# Don't use == to compare floats
echo "$as_me:$LINENO: checking if gcc supports -Wfloat-equal" >&5
echo $ECHO_N "checking if gcc supports -Wfloat-equal... $ECHO_C" >&6
if test "${_cv_comp_option_Wfloat_equal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wfloat_equal=`gcc -Wfloat-equal  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wfloat_equal="yes";
  else
    _cv_comp_option_Wfloat_equal="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wfloat_equal" >&5
echo "${ECHO_T}$_cv_comp_option_Wfloat_equal" >&6
 if test $_cv_comp_option_Wfloat_equal = "yes"; then
   comp_option_Wfloat_equal=-Wfloat-equal

 fi
  rm -f conf_flag.c conf_flag.o


# Warn if there is a shadow declaration, like a local with the same name as
# a global
echo "$as_me:$LINENO: checking if gcc supports -Wshadow" >&5
echo $ECHO_N "checking if gcc supports -Wshadow... $ECHO_C" >&6
if test "${_cv_comp_option_Wshadow+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wshadow=`gcc -Wshadow  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wshadow="yes";
  else
    _cv_comp_option_Wshadow="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wshadow" >&5
echo "${ECHO_T}$_cv_comp_option_Wshadow" >&6
 if test $_cv_comp_option_Wshadow = "yes"; then
   comp_option_Wshadow=-Wshadow

 fi
  rm -f conf_flag.c conf_flag.o


# Warn if code can't be executed.
#
# Note: Code blocks marked by this warning flag should be carefully checked
# since they may be able to be executed in ways the compiler doesn't see, like
# via setjmp, or other methods.
# XXX This warning looks like it gives far too many false positive, so it
# is getting commented out. If you'd like to renable this warning flag, please
# make sure to add @comp_option_Wunreachable_code@ to COMP_DEBUG_FLAGS
#C_CXX_OPTION(gcc, -Wunreachable-code, comp_option_Wunreachable_code, [])

# Warn if non-comment after endif labels
echo "$as_me:$LINENO: checking if gcc supports -Wendif-labels" >&5
echo $ECHO_N "checking if gcc supports -Wendif-labels... $ECHO_C" >&6
if test "${_cv_comp_option_Wendif_labels+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wendif_labels=`gcc -Wendif-labels  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wendif_labels="yes";
  else
    _cv_comp_option_Wendif_labels="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wendif_labels" >&5
echo "${ECHO_T}$_cv_comp_option_Wendif_labels" >&6
 if test $_cv_comp_option_Wendif_labels = "yes"; then
   comp_option_Wendif_labels=-Wendif-labels

 fi
  rm -f conf_flag.c conf_flag.o


# Warn on arithmatic with void*, cause you don't know the size...
echo "$as_me:$LINENO: checking if gcc supports -Wpointer-arith" >&5
echo $ECHO_N "checking if gcc supports -Wpointer-arith... $ECHO_C" >&6
if test "${_cv_comp_option_Wpointer_arith+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wpointer_arith=`gcc -Wpointer-arith  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wpointer_arith="yes";
  else
    _cv_comp_option_Wpointer_arith="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wpointer_arith" >&5
echo "${ECHO_T}$_cv_comp_option_Wpointer_arith" >&6
 if test $_cv_comp_option_Wpointer_arith = "yes"; then
   comp_option_Wpointer_arith=-Wpointer-arith

 fi
  rm -f conf_flag.c conf_flag.o


# Warn whenever a type qualifier (like const) is cast away.
echo "$as_me:$LINENO: checking if gcc supports -Wcast-qual" >&5
echo $ECHO_N "checking if gcc supports -Wcast-qual... $ECHO_C" >&6
if test "${_cv_comp_option_Wcast_qual+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wcast_qual=`gcc -Wcast-qual  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wcast_qual="yes";
  else
    _cv_comp_option_Wcast_qual="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wcast_qual" >&5
echo "${ECHO_T}$_cv_comp_option_Wcast_qual" >&6
 if test $_cv_comp_option_Wcast_qual = "yes"; then
   comp_option_Wcast_qual=-Wcast-qual

 fi
  rm -f conf_flag.c conf_flag.o


# Warn whenever a pointer is cast such that the required alignment of the target
# is increased.
echo "$as_me:$LINENO: checking if gcc supports -Wcast-align" >&5
echo $ECHO_N "checking if gcc supports -Wcast-align... $ECHO_C" >&6
if test "${_cv_comp_option_Wcast_align+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wcast_align=`gcc -Wcast-align  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wcast_align="yes";
  else
    _cv_comp_option_Wcast_align="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wcast_align" >&5
echo "${ECHO_T}$_cv_comp_option_Wcast_align" >&6
 if test $_cv_comp_option_Wcast_align = "yes"; then
   comp_option_Wcast_align=-Wcast-align

 fi
  rm -f conf_flag.c conf_flag.o


# Warn whenever a static object on the heap is larger than 256 bytes.
# This causes ICE when using gcc 2.96 on x6 rh7.2, and various staff are
# in disagreement about the validity of it, so we'll leave it commented out
# for now. Please ensure to add back in the @comp_option_Wvolatile_register_var@
# back into COMP_DEBUG_FLAGS if you want to enable it again.
#C_CXX_OPTION(gcc, -Wlarger-than-92160, comp_option_Wlarger_than_92160, [])

# Warn if a register variable is declared volatile. The optimizer doesn't
# inhibit all transformations of register variables when they are declared
# volatile, so an error could be introduced.
echo "$as_me:$LINENO: checking if gcc supports -Wvolatile-register-var" >&5
echo $ECHO_N "checking if gcc supports -Wvolatile-register-var... $ECHO_C" >&6
if test "${_cv_comp_option_Wvolatile_register_var+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wvolatile_register_var=`gcc -Wvolatile-register-var  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wvolatile_register_var="yes";
  else
    _cv_comp_option_Wvolatile_register_var="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wvolatile_register_var" >&5
echo "${ECHO_T}$_cv_comp_option_Wvolatile_register_var" >&6
 if test $_cv_comp_option_Wvolatile_register_var = "yes"; then
   comp_option_Wvolatile_register_var=-Wvolatile-register-var

 fi
  rm -f conf_flag.c conf_flag.o


# Warn if writing to a const char* string constant (which lives in read-only
# memory space).
#
# Commented out since it is a bit spurious in its errors. It makes an
# assumption that we've been careful about using const everywhere when
# declaring write-only strings. Since I'm not confident we've been doing
# that, I took it out. Make sure to add the @comp_option_Wwrite_strings@
# variable back into COMP_DEBUG_FLAGS if you want to enable it again.
#C_CXX_OPTION(gcc, -Wwrite-strings, comp_option_Wwrite_strings, [])

####
# These are C only and treated differently in configure.cf.in
####
# Warn if an extern declaration is encountered in a C function.
echo "$as_me:$LINENO: checking if gcc supports -Wnested-externs" >&5
echo $ECHO_N "checking if gcc supports -Wnested-externs... $ECHO_C" >&6
if test "${_cv_comp_option_Wnested_externs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wnested_externs=`gcc -Wnested-externs  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wnested_externs="yes";
  else
    _cv_comp_option_Wnested_externs="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wnested_externs" >&5
echo "${ECHO_T}$_cv_comp_option_Wnested_externs" >&6
 if test $_cv_comp_option_Wnested_externs = "yes"; then
   comp_option_Wnested_externs=-Wnested-externs

 fi
  rm -f conf_flag.c conf_flag.o


# Warn if a function is declared or defined without argument types
echo "$as_me:$LINENO: checking if gcc supports -Wstrict-prototypes" >&5
echo $ECHO_N "checking if gcc supports -Wstrict-prototypes... $ECHO_C" >&6
if test "${_cv_comp_option_Wstrict_prototypes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wstrict_prototypes=`gcc -Wstrict-prototypes  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wstrict_prototypes="yes";
  else
    _cv_comp_option_Wstrict_prototypes="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wstrict_prototypes" >&5
echo "${ECHO_T}$_cv_comp_option_Wstrict_prototypes" >&6
 if test $_cv_comp_option_Wstrict_prototypes = "yes"; then
   comp_option_Wstrict_prototypes=-Wstrict-prototypes

 fi
  rm -f conf_flag.c conf_flag.o


# Warn if a global function is defined without a previous protoype declaration
echo "$as_me:$LINENO: checking if gcc supports -Wmissing-prototypes" >&5
echo $ECHO_N "checking if gcc supports -Wmissing-prototypes... $ECHO_C" >&6
if test "${_cv_comp_option_Wmissing_prototypes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_Wmissing_prototypes=`gcc -Wmissing-prototypes  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_Wmissing_prototypes="yes";
  else
    _cv_comp_option_Wmissing_prototypes="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_Wmissing_prototypes" >&5
echo "${ECHO_T}$_cv_comp_option_Wmissing_prototypes" >&6
 if test $_cv_comp_option_Wmissing_prototypes = "yes"; then
   comp_option_Wmissing_prototypes=-Wmissing-prototypes

 fi
  rm -f conf_flag.c conf_flag.o


#########
# See if the wonderful stack protection feature is available
#########
# Put guards around arrays on the stack, and check them on function exit.
echo "$as_me:$LINENO: checking if gcc supports -fstack-protector" >&5
echo $ECHO_N "checking if gcc supports -fstack-protector... $ECHO_C" >&6
if test "${_cv_comp_option_stack_protector+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_stack_protector=`gcc -fstack-protector  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_stack_protector="yes";
  else
    _cv_comp_option_stack_protector="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_stack_protector" >&5
echo "${ECHO_T}$_cv_comp_option_stack_protector" >&6
 if test $_cv_comp_option_stack_protector = "yes"; then
   comp_option_stack_protector=-fstack-protector

 fi
  rm -f conf_flag.c conf_flag.o

# sometimes we need to turn them off too, this overrides the above if both
# appear on the command line.
echo "$as_me:$LINENO: checking if gcc supports -fno-stack-protector" >&5
echo $ECHO_N "checking if gcc supports -fno-stack-protector... $ECHO_C" >&6
if test "${_cv_comp_option_no_stack_protector+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_comp_option_no_stack_protector=`gcc -fno-stack-protector  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_comp_option_no_stack_protector="yes";
  else
    _cv_comp_option_no_stack_protector="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_comp_option_no_stack_protector" >&5
echo "${ECHO_T}$_cv_comp_option_no_stack_protector" >&6
 if test $_cv_comp_option_no_stack_protector = "yes"; then
   comp_option_no_stack_protector=-fno-stack-protector

 fi
  rm -f conf_flag.c conf_flag.o


#########
# determine if gcc has -rdynamic to keep backtrace symbols for debugging
# stripped executables.
#########
echo "$as_me:$LINENO: checking if gcc supports -rdynamic" >&5
echo $ECHO_N "checking if gcc supports -rdynamic... $ECHO_C" >&6
if test "${_cv_gcc_rdynamic_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conf_flag.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	return 0;
}
EOF
 # Stupid compilers sometimes say "Invalid option" or "unrecognized option",
 # but they always seem to say "option" in there.... Also sometimes an
 # executable is produced, other times not. So we'll assume that if the word
 # "option" shows up at all in the stderr of the compiler, it is unrecognized.
 _cv_gcc_rdynamic_flag=`gcc -rdynamic  conf_flag.c -c -o conf_flag.o 2>&1 | grep "option" > /dev/null 2>&1`
  _comp_status=$?
  # the test seems inverted because the failure of grep to find the
  # sentinel value means gcc accepted it
  if test $_comp_status -eq 1; then
    _cv_gcc_rdynamic_flag="yes";
  else
    _cv_gcc_rdynamic_flag="no";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_gcc_rdynamic_flag" >&5
echo "${ECHO_T}$_cv_gcc_rdynamic_flag" >&6
 if test $_cv_gcc_rdynamic_flag = "yes"; then
   gcc_rdynamic_flag=-rdynamic

 fi
  rm -f conf_flag.c conf_flag.o


#########
# determine if gcc has -fPIC
#########
echo "$as_me:$LINENO: checking if gcc supports -fPIC" >&5
echo $ECHO_N "checking if gcc supports -fPIC... $ECHO_C" >&6

echo "int main(void) { return 0; }" > fpic_test.c
_test_output=`gcc -fPIC fpic_test.c -o fpic_test 2>&1`
_test_status=$?
# AIX and HPUX have idiotic problems, so turn them off for now
if test $_test_status -eq 0 -a "x$_test_output" = "x" -a \( "x$os" != "xAIX" -a "x$os" != "xHP-UX" \); then
  cc_pic_flags="-fPIC -DPIC"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_CC_PIC_FLAG 1
_ACEOF

else
  cc_pic_flags=""
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f fpic_test.c fpic_test
cc_pic_flags=$cc_pic_flags


#########
# determine if gcc has -shared
#########
echo "$as_me:$LINENO: checking if gcc supports -shared" >&5
echo $ECHO_N "checking if gcc supports -shared... $ECHO_C" >&6

echo "int bar(void) { return 0; }" > fpic_test.c
_test_output=`gcc -shared -fPIC -DPIC fpic_test.c -o libfpic_test.so 2>&1`
_test_status=$?
# AIX and HPUX have idiotic problems, so turn them off for now
if test $_test_status -eq 0 -a "x$_test_output" = "x" -a \( "x$os" != "xAIX" -a "x$os" != "xHP-UX" \); then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cc_shared_flags="-shared"

cat >>confdefs.h <<\_ACEOF
#define HAVE_CC_SHARED_FLAG 1
_ACEOF

else
  cc_shared_flags=""
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f fpic_test.c libfpic_test.so
cc_shared_flags=$cc_shared_flags


#########################################
# vendor compilers (for the test suites)
#########################################
{ echo "$as_me:$LINENO: checking for vendor compilers (used by Condor test suites)" >&5
echo "$as_me: checking for vendor compilers (used by Condor test suites)" >&6;}

# we always look for g77, since we should have at least this,
# regardless of what platform we are...
# Extract the first word of "g77", so it can be a program name with args.
set dummy g77; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path__cv_gnu_g77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $_cv_gnu_g77 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__cv_gnu_g77="$_cv_gnu_g77" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path__cv_gnu_g77="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path__cv_gnu_g77" && ac_cv_path__cv_gnu_g77="no"
  ;;
esac
fi
_cv_gnu_g77=$ac_cv_path__cv_gnu_g77

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

if test "$_cv_gnu_g77" = "no" ; then
  _cv_has_gnu_g77="NO"
else
  _cv_has_gnu_g77="YES"
fi

# And check for gfortan as well.
# Extract the first word of "gfortran", so it can be a program name with args.
set dummy gfortran; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path__cv_gnu_gfortran+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $_cv_gnu_gfortran in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__cv_gnu_gfortran="$_cv_gnu_gfortran" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path__cv_gnu_gfortran="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path__cv_gnu_gfortran" && ac_cv_path__cv_gnu_gfortran="no"
  ;;
esac
fi
_cv_gnu_gfortran=$ac_cv_path__cv_gnu_gfortran

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

if test "$_cv_gnu_gfortran" = "no" ; then
  _cv_has_gnu_gfortran="NO"
else
  _cv_has_gnu_gfortran="YES"
fi

# now, look for everything else, depending on our platform.  if it's
# Linux or Darwin, we know the "vendor" compilers are really gcc, so
# we can bail without doing any real work.  otherwise, we have to
# search for what we might be able to use...
if test "$os" = "Linux" || test "$os" = "Darwin" ; then
  _cv_vendor_cc=""

  _cv_vendor_cplus=""

  _cv_vendor_cplus_name=""

  _cv_vendor_f77=""

  _cv_vendor_f90=""

  _cv_has_vendor_cc="NO"
  _cv_has_vendor_cplus="NO"
  _cv_has_vendor_f77="NO"
  _cv_has_vendor_f90="NO"
else
  if test "$os" = "HP-UX" ; then
    _vendor_cc_PATH="/opt/ansic/bin:/opt/CC/bin:/usr/bin:/bin:$PATH"
    _vendor_f_PATH="/opt/fortran/bin:/opt/fortran90/bin:/usr/bin:/bin:$PATH"
  else
    _vendor_cc_PATH="/opt/SUNWspro/bin:/usr/ucb:/usr/bin:/bin:$PATH"
    _vendor_f_PATH=$_vendor_cc_PATH
  fi
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path__cv_vendor_cc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $_cv_vendor_cc in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__cv_vendor_cc="$_cv_vendor_cc" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $_vendor_cc_PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path__cv_vendor_cc="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path__cv_vendor_cc" && ac_cv_path__cv_vendor_cc="no"
  ;;
esac
fi
_cv_vendor_cc=$ac_cv_path__cv_vendor_cc

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

  if test "$_cv_vendor_cc" = "no" ; then
    _cv_has_vendor_cc="NO"
  else
    _cv_has_vendor_cc="YES"
  fi

  for ac_prog in CC cxx
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:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path__cv_vendor_cplus+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $_cv_vendor_cplus in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__cv_vendor_cplus="$_cv_vendor_cplus" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $_vendor_cc_PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path__cv_vendor_cplus="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
_cv_vendor_cplus=$ac_cv_path__cv_vendor_cplus

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

  test -n "$_cv_vendor_cplus" && break
done
test -n "$_cv_vendor_cplus" || _cv_vendor_cplus="no"

  if test "$_cv_vendor_cplus" = "no" ; then
    _cv_has_vendor_cplus="NO"
  else
    _cv_has_vendor_cplus="YES"
    _cv_vendor_cplus_name=`basename $_cv_vendor_cplus`
      _cv_vendor_cplus_name=$_cv_vendor_cplus_name

  fi

  # Extract the first word of "f77", so it can be a program name with args.
set dummy f77; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path__cv_vendor_f77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $_cv_vendor_f77 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__cv_vendor_f77="$_cv_vendor_f77" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $_vendor_f_PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path__cv_vendor_f77="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path__cv_vendor_f77" && ac_cv_path__cv_vendor_f77="no"
  ;;
esac
fi
_cv_vendor_f77=$ac_cv_path__cv_vendor_f77

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

  if test "$_cv_vendor_f77" = "no" ; then
    _cv_has_vendor_f77="NO"
  else
    _cv_has_vendor_f77="YES"
  fi

  # Extract the first word of "f90", so it can be a program name with args.
set dummy f90; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path__cv_vendor_f90+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $_cv_vendor_f90 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__cv_vendor_f90="$_cv_vendor_f90" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $_vendor_f_PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path__cv_vendor_f90="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path__cv_vendor_f90" && ac_cv_path__cv_vendor_f90="no"
  ;;
esac
fi
_cv_vendor_f90=$ac_cv_path__cv_vendor_f90

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

  if test "$_cv_vendor_f90" = "no" ; then
    _cv_has_vendor_f90="NO"
  else
    _cv_has_vendor_f90="YES"
  fi
fi
has_gnu_g77=$_cv_has_gnu_g77

has_gnu_gfortran=$_cv_has_gnu_gfortran

has_vendor_cc=$_cv_has_vendor_cc

has_vendor_cplus=$_cv_has_vendor_cplus

has_vendor_f77=$_cv_has_vendor_f77

has_vendor_f90=$_cv_has_vendor_f90



###############################################################
# Check for functionality availability on different platforms #
###############################################################

###
# Check for the availability of full ports
#
# CLIPPED is available here as "yes", "no" or "default"
#
# If CLIPPED is default it means the user did not specify if she wants
# a clipped build or not. In such a case we check to see if a full
# port is available and if so try to build a full port.
###

# NOTES:
#
# Due to two problems we turn off the full port for Debian:
#
#  1. -fstack-protect has a support library that our glibc doesn't have and
#      we need to copy its functionality for standard universe to link.
#  2. C++ exception handling in stdc++ assumes that the glibc is compiled
#     with TLS, but ours isn't and doesn't compile out of the box with
#     TLS.

echo "$as_me:$LINENO: checking for clipped port default" >&5
echo $ECHO_N "checking for clipped port default... $ECHO_C" >&6
case "$_cv_opsys-$_cv_opsys_vers-$_cv_arch-$_cv_linux_distro-$_cv_libc_major-$_cv_libc_minor" in
  *-AIX5-* | \
  *-DUX5-* | \
  DARWIN-* | \
  CONDOR_FREEBSD-* | \
  *-HPUX11-* | \
  LINUX-*-ALPHA-* | \
  LINUX-*-*-DEBIAN40-* | \
  LINUX-*-IA64-* | \
  SOLARIS-* | \
  LINUX-*-CONDOR_PPC-* ) _cv_clipped_default=yes ;;
  * ) _cv_clipped_default=no ;;
esac
echo "$as_me:$LINENO: result: $_cv_clipped_default" >&5
echo "${ECHO_T}$_cv_clipped_default" >&6

echo "$as_me:$LINENO: checking for clipped port" >&5
echo $ECHO_N "checking for clipped port... $ECHO_C" >&6
if test "x$CLIPPED" = "xdefault"; then
  CLIPPED=$_cv_clipped_default
fi
echo "$as_me:$LINENO: result: $CLIPPED" >&5
echo "${ECHO_T}$CLIPPED" >&6

# Exposed in configure.cf.in for Imake.rules's CLINK*
_cv_is_clipped=$CLIPPED


if test "x$CLIPPED" = "xyes"; then

cat >>confdefs.h <<\_ACEOF
#define IS_CLIPPED 1
_ACEOF

fi

# Remote Syscalls

echo "$as_me:$LINENO: checking if DOES_REMOTE_SYSCALLS is supported" >&5
echo $ECHO_N "checking if DOES_REMOTE_SYSCALLS is supported... $ECHO_C" >&6
case "$_cv_opsys" in
  HPUX | LINUX | SOLARIS )
    _cv_does_remote_syscalls=yes
  ;;
  * )
    _cv_does_remote_syscalls=no
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_does_remote_syscalls" >&5
echo "${ECHO_T}$_cv_does_remote_syscalls" >&6
if test "x$CLIPPED" != "xyes" -a "x$_cv_does_remote_syscalls" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define DOES_REMOTE_SYSCALLS 1
_ACEOF

fi


# Checkpointing

echo "$as_me:$LINENO: checking if DOES_CHECKPOINTING is supported" >&5
echo $ECHO_N "checking if DOES_CHECKPOINTING is supported... $ECHO_C" >&6
case "$_cv_opsys" in
  HPUX | LINUX | SOLARIS )
    _cv_does_checkpointing=yes
  ;;
  * )
    _cv_does_checkpointing=no
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_does_checkpointing" >&5
echo "${ECHO_T}$_cv_does_checkpointing" >&6
if test "x$CLIPPED" != "xyes" -a "x$_cv_does_checkpointing" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define DOES_CHECKPOINTING 1
_ACEOF

fi


# Compressed checkpoints

echo "$as_me:$LINENO: checking if DOES_COMPRESS_CKPT is supported" >&5
echo $ECHO_N "checking if DOES_COMPRESS_CKPT is supported... $ECHO_C" >&6
# Turned off on LINUX-X86_64: due to thaineryconcerning void* and int, don't compile this in for now...
case "$_cv_opsys-$_cv_arch" in
  LINUX-X86_64 )
    _cv_does_compress_ckpt=no
  ;;
  * )
    _cv_does_compress_ckpt=yes
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_does_compress_ckpt" >&5
echo "${ECHO_T}$_cv_does_compress_ckpt" >&6
if test "x$CLIPPED" != "xyes" -a "x$_cv_does_compress_ckpt" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define DOES_COMPRESS_CKPT 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if DOES_SAVE_SIGSTATE" >&5
echo $ECHO_N "checking if DOES_SAVE_SIGSTATE... $ECHO_C" >&6
case "$_cv_opsys" in
  AIX | HPUX | LINUX | SOLARIS )
    _cv_does_save_sigstate=yes
  ;;
  * )
    _cv_does_save_sigstate=unknown
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_does_save_sigstate" >&5
echo "${ECHO_T}$_cv_does_save_sigstate" >&6
if test "x$_cv_does_save_sigstate" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define DOES_SAVE_SIGSTATE 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if HAS_RANLIB_TOUCH" >&5
echo $ECHO_N "checking if HAS_RANLIB_TOUCH... $ECHO_C" >&6
case "$_cv_opsys" in
  AIX | HPUX | SOLARIS )
    _cv_has_ranlib_touch=yes
  ;;
  LINUX )
    _cv_has_ranlib_touch=no
  ;;
  * )
    _cv_has_ranlib_touch=unknown
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_has_ranlib_touch" >&5
echo "${ECHO_T}$_cv_has_ranlib_touch" >&6
if test "x$_cv_has_ranlib_touch" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAS_RANLIB_TOUCH 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if HAS_CP_PRESERVE" >&5
echo $ECHO_N "checking if HAS_CP_PRESERVE... $ECHO_C" >&6
case "$_cv_opsys" in
  AIX | HPUX | SOLARIS )
    _cv_has_cp_preserve=yes
  ;;
  LINUX )
    _cv_has_cp_preserve=no
  ;;
  * )
    _cv_has_cp_preserve=unknown
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_has_cp_preserve" >&5
echo "${ECHO_T}$_cv_has_cp_preserve" >&6
if test "x$_cv_has_cp_preserve" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAS_CP_PRESERVE 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if HAS_PURIFY" >&5
echo $ECHO_N "checking if HAS_PURIFY... $ECHO_C" >&6
case "$_cv_opsys" in
  SOLARIS )
    _cv_has_purify=yes
  ;;
  * )
    _cv_has_purify=no
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_has_purify" >&5
echo "${ECHO_T}$_cv_has_purify" >&6
if test "x$_cv_has_purify" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAS_PURIFY 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if HAS_AR_S_OPTION" >&5
echo $ECHO_N "checking if HAS_AR_S_OPTION... $ECHO_C" >&6
case "$_cv_opsys" in
  AIX | HPUX | LINUX | SOLARIS )
    _cv_has_ar_s_option=yes
  ;;
  * )
    _cv_has_ar_s_option=unknown
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_has_ar_s_option" >&5
echo "${ECHO_T}$_cv_has_ar_s_option" >&6
if test "x$_cv_has_ar_s_option" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAS_AR_S_OPTION 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if FORTRAN_HAS_RECURSION" >&5
echo $ECHO_N "checking if FORTRAN_HAS_RECURSION... $ECHO_C" >&6
case "$_cv_opsys" in
  SOLARIS )
    _cv_fortran_has_recursion=yes
  ;;
  * )
    _cv_fortran_has_recursion=no
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_fortran_has_recursion" >&5
echo "${ECHO_T}$_cv_fortran_has_recursion" >&6
if test "x$_cv_fortran_has_recursion" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define FORTRAN_HAS_RECURSION 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if NEEDS_64BIT_SYSCALLS" >&5
echo $ECHO_N "checking if NEEDS_64BIT_SYSCALLS... $ECHO_C" >&6
case "$_cv_opsys" in
  SOLARIS )
    _cv_needs_64bit_syscalls=yes
  ;;
  AIX | HPUX )
    _cv_needs_64bit_syscalls=no
  ;;
  * )
    _cv_needs_64bit_syscalls=unknown
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_needs_64bit_syscalls" >&5
echo "${ECHO_T}$_cv_needs_64bit_syscalls" >&6
if test "x$_cv_needs_64bit_syscalls" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define NEEDS_64BIT_SYSCALLS 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if NEEDS_64BIT_STRUCTS" >&5
echo $ECHO_N "checking if NEEDS_64BIT_STRUCTS... $ECHO_C" >&6
case "$_cv_opsys" in
  AIX | HPUX | SOLARIS )
    _cv_needs_64bit_structs=yes
  ;;
  * )
    _cv_needs_64bit_structs=unknown
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_needs_64bit_structs" >&5
echo "${ECHO_T}$_cv_needs_64bit_structs" >&6
if test "x$_cv_needs_64bit_structs" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define NEEDS_64BIT_STRUCTS 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if HAS_FLOCK" >&5
echo $ECHO_N "checking if HAS_FLOCK... $ECHO_C" >&6
case "$_cv_opsys" in
  SOLARIS )
    _cv_has_flock=no
  ;;
  * )
    _cv_has_flock=yes
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_has_flock" >&5
echo "${ECHO_T}$_cv_has_flock" >&6
if test "x$_cv_has_flock" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAS_FLOCK 1
_ACEOF

fi


echo "$as_me:$LINENO: checking if HAS_INET_NTOA" >&5
echo $ECHO_N "checking if HAS_INET_NTOA... $ECHO_C" >&6
# inet_nota() with gcc is broken under 64-bit compilation mode, so use ours
if test "x$_cv_opsys_vers" = xHPUX11; then
  _cv_has_inet_ntoa=no
else
  _cv_has_inet_ntoa=yes
fi
echo "$as_me:$LINENO: result: $_cv_has_inet_ntoa" >&5
echo "${ECHO_T}$_cv_has_inet_ntoa" >&6
if test "x$_cv_has_inet_ntoa" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAS_INET_NTOA 1
_ACEOF

fi


# HAS_DYNAMIC_USER_JOBS, not sure exactly what this is -matt 26 Nov 07
if test "x$_cv_opsys" = "xSOLARIS"; then

cat >>confdefs.h <<\_ACEOF
#define HAS_DYNAMIC_USER_JOBS 1
_ACEOF

fi

# Old SOLARIS2*.cf files contained -DSolaris2*=Solaris2*, so instead
# we AC_DEFINE Solaris2* here
case "$_cv_opsys_vers" in
  SOLARIS28 )
cat >>confdefs.h <<\_ACEOF
#define Solaris28 Solaris28
_ACEOF
 ;;
  SOLARIS29 )
cat >>confdefs.h <<\_ACEOF
#define Solaris29 Solaris29
_ACEOF
 ;;
esac

# Old FREEBSD*.cf files contained -DCONDOR_FREEBSD*=CONDOR_FREEBSD*,
# so instead we AC_DEFINE CONDOR_FREEBSD* here
case "$_cv_opsys_vers" in
  FREEBSD4 )

cat >>confdefs.h <<\_ACEOF
#define CONDOR_FREEBSD4 CONDOR_FREEBSD4
_ACEOF
 ;;
  FREEBSD5 )

cat >>confdefs.h <<\_ACEOF
#define CONDOR_FREEBSD5 CONDOR_FREEBSD5
_ACEOF
 ;;
  FREEBSD6 )

cat >>confdefs.h <<\_ACEOF
#define CONDOR_FREEBSD6 CONDOR_FREEBSD6
_ACEOF
 ;;
  FREEBSD7 )

cat >>confdefs.h <<\_ACEOF
#define CONDOR_FREEBSD7 CONDOR_FREEBSD7
_ACEOF
 ;;
esac

# DARWIN.cf contained -DDarwin_10_*=Darwin_10_*, so instead we
# AC_DEFINE Darwin_10_* here
case "$_cv_opsys_vers" in
  OSX_10_3 )
cat >>confdefs.h <<\_ACEOF
#define Darwin_10_3 Darwin_10_3
_ACEOF
 ;;
  OSX_10_4 )
cat >>confdefs.h <<\_ACEOF
#define Darwin_10_4 Darwin_10_4
_ACEOF
 ;;
esac

# Old ALPHA_OSF1_V*.cf files contained -DDUX=DUX -DDUX*=DUX* -DTRU64,
# so instead we AC_DEFINE them here, TRU64 is just for gsoap
if test "x$_cv_opsys" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define DUX DUX
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define TRU64 DUX
_ACEOF


  case "$_cv_opsys_vers" in
    DUX5 )
cat >>confdefs.h <<\_ACEOF
#define DUX5 DUX5
_ACEOF
 ;;
  esac
fi

# ArchOptimizeFlag logic used to live in .cf files, mostly
# LINUX_I386.cf, that logic now lives here.
if test "x$_cv_opsys" = xLINUX \
   -a "x$_cv_arch" = xI386 \
   -a "x$CompilerKind" = xGCC; then
  case "$CompilerMajor" in
    4 ) _cv_arch_optimize_flag="-march=i486" ;;
    3 ) _cv_arch_optimize_flag="-mcpu=i486" ;;
    * ) _cv_arch_optimize_flag="-m486" ;;
  esac
  _cv_arch_optimize_flag=$_cv_arch_optimize_flag

fi

# VendorCTestFlags logic used to live in .cf files, mostly
# HPUX11.cf, that logic now lives here.
if test "x$_cv_opsys_vers" = xHPUX11; then
  _cv_vendor_c_test_flags="-Aa -Ae";
  _cv_vendor_c_test_flags=$_cv_vendor_c_test_flags

fi

# VendorCPPTestFlags logic used to live in .cf files, mostly
# HPUX11.cf, that logic now lives here.
if test "x$_cv_opsys_vers" = xHPUX11; then
  _cv_vendor_cpp_test_flags="-Aa -ext +eh";
  _cv_vendor_cpp_test_flags=$_cv_vendor_cpp_test_flags

fi


# PlatformLdFlags used to live in a number of .cf files, their logic
# now exists here
case "$_cv_opsys" in
  # specifically ask for the C++ libraries to be statically linked
  AIX ) _cv_platform_ld_flags="-Wl,-berok -Wl,-bstatic -lstdc++ -Wl,-bdynamic -lcfg -lodm -lcrypt -lc -static-libgcc" ;;
  LINUX | DARWIN ) _cv_platform_ld_flags="-lresolv" ;;
  DUX ) _cv_platform_ld_flags="-lmld" ;;
  HPUX ) # HPUX11 Only...
    if test "x$_cv_opsys_vers" = "xHPUX11" ; then
      _cv_platform_ld_flags="-Wl,+vnocompatwarnings $_cv_lib_std_cpp";
    fi
   ;;
#NOTE: The following definition of PlatformLdFlags assumes that the
#compiler libraries (libgcc and libstdc++) are available _only_ as
#static libraries, so we do not need to do anything special to cause
#them to be statically linked.  We want them to be statically linked
#so people can run condor binaries on machines where gcc has never
#been installed, since this is common for Solaris boxes.
#
#We used to append $(GCC_STATIC_LIBS) to PlatformLdFlags, however, this
#caused libc to be statically linked, and that caused runtime errors on
#binaries compiled on Solaris 9 when run on Solaris 10.  Why was libc
#statically linked you may ask?  Because GCC_STATIC_LIBS was defined
#like this: -Wl,-bstatic -lstdc++ -lgcc.  This turns on static linking
#but does not turn it off.  The compiler appends a bunch of standard
#libs, including -lstdc++, -lgcc, and -lc.  Therefore, libc was being
#statically linked.  We could have turned off static linking with
#-Wl,-bdyanamic, so the libs appended by the compiler would not be
#statically linked.  However, among the libs appended by the compiler
#are the very libs we are trying to link statically, so if they were
#available both statically and dynamically, they would be linked both
#ways.  The version of gcc currently in use on the Solaris build
#machines is 2.95.3, which does not support the option -nodefaultlibs,
#so we can't easily prevent the compiler from doing this.  It does
#support -nostdlibs, but that option also disables the linking of all
#other standard things, including the runtime object files, so it
#becomes a rather messy situation to make sure we link in all the stuff
#we need without getting more than we want.
#
#Therefore, we do not explicitly call for static linking of the
#compiler libs.  Instead, we depend on the compiler being installed
#with _only_ static versions of libgcc and libstdc++.
  SOLARIS ) _cv_platform_ld_flags="-lkstat -lelf -lsocket -lresolv -lnsl -lm -lc" ;;
esac
_cv_platform_ld_flags=$_cv_platform_ld_flags



# LINUX.cf defined GlibCFlag to be "-DGLIBC=GLIBC -DGLIBCXY=GLIBCXY"
# where X is the _cv_libc_major and Y is _cv_libc_minor. This
# GlibCFlag #define was one that someone would need to create each
# time they wanted to do even a clipped port of Condor. Instead of all
# that, we can set that symbol right here, sensibly.
if test "x$_cv_libc_kind" = xGLIBC; then
  _cv_glibc_flag="-DGLIBC=GLIBC -DGLIBC$_cv_libc_major$_cv_libc_minor=GLIBC$_cv_libc_major$_cv_libc_minor"
fi

_cv_glibc_flag=$_cv_glibc_flag


# PlatformFlags logic has been moved here from .cf files, primarily
# HPUX11.cf and LINUX.cf.
case "$_cv_opsys" in
  LINUX ) _cv_platform_flags="$_cv_arch_optimize_flag $_cv_glibc_flag" ;;
  HPUX ) # HPUX11 Only...
    if test "x$_cv_opsys_vers" = "xHPUX11" ; then
      _cv_platform_flags="-DHPUX11=HPUX11";
    fi
   ;;
  * ) _cv_platform_flags="" ;;
esac
_cv_platform_flags=$_cv_platform_flags



# TestPlatformLdFlags logic has been moved here from .cf files,
# primarily SOLARIS.cf and AIX.cf.
case "$_cv_opsys" in
  SOLARIS ) _cv_test_platform_ld_flags="-lnsl -lsocket -lresolv" ;;
  AIX )_cv_test_platform_ld_flags="$_cv_platform_ld_flags" ;;
  * ) _cv_test_platform_ld_flags="" ;;
esac
_cv_test_platform_ld_flags=$_cv_test_platform_ld_flags



# PurifyPlatformLdFlags logic has been moved here from .cf files,
# primarily SOLARIS.cf.
case "$_cv_opsys" in
  # When we're linking for purify, we don't want all the static junk,
  # either, but we need more libs than just the test suite.  So, we
  # define this here to specify the flags we want to give to the
  # linker when we're building the Condor Daemons under purify.
  SOLARIS ) _cv_purify_platform_ld_flags="-lkstat -lelf -lnsl -lsocket -lresolv" ;;
  * ) _cv_purify_platform_ld_flags="" ;;
esac
_cv_purify_platform_ld_flags=$_cv_purify_platform_ld_flags



#####################
# everything else
#####################

for ac_prog in gmake make
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:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_MAKE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAKE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
MAKE=$ac_cv_path_MAKE

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

  test -n "$MAKE" && break
done
test -n "$MAKE" || MAKE="no"

echo "$as_me:$LINENO: checking if $MAKE is GNU" >&5
echo $ECHO_N "checking if $MAKE is GNU... $ECHO_C" >&6
if test "${_cv_make_is_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if ( sh -c "$MAKE --version" 2> /dev/null | grep GNU > /dev/null 2>&1 ) ;
  then
     _cv_make_is_gnu=yes
  else
     _cv_make_is_gnu=no
  fi

fi
echo "$as_me:$LINENO: result: $_cv_make_is_gnu" >&5
echo "${ECHO_T}$_cv_make_is_gnu" >&6

if test $_cv_make_is_gnu = no; then
   { { echo "$as_me:$LINENO: error: GNU make is required " >&5
echo "$as_me: error: GNU make is required " >&2;}
   { (exit 1); exit 1; }; }
fi

# Extract the first word of "patch", so it can be a program name with args.
set dummy patch; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_patch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_patch in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_patch="$ac_patch" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_patch="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_patch" && ac_cv_path_ac_patch="no"
  ;;
esac
fi
ac_patch=$ac_cv_path_ac_patch

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

if test $ac_patch = no; then
    { { echo "$as_me:$LINENO: error: patch is required " >&5
echo "$as_me: error: patch is required " >&2;}
   { (exit 1); exit 1; }; }
fi
# now, make sure patch supports unified diffs
echo "$as_me:$LINENO: checking if patch supports unified diffs" >&5
echo $ECHO_N "checking if patch supports unified diffs... $ECHO_C" >&6
if test "${_cv_unified_patch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  _cv_unified_patch="no" ;
  _cv_unified_patch="no"
 cat > conftest_file1 << _EOF
this
is
a test
hello world
_EOF
 cat > conftest_patch << _EOF
--- conftest_file1 Wed Nov 26 20:04:43 2003
+++ conftest_file2 Wed Nov 26 20:01:25 2003
@@ -1,4 +1,4 @@
 this
 is
-a test
+A TEST
 hello world
_EOF
  $ac_patch < conftest_patch > /dev/null 2>&1
  _patch_status=$?
  if test $_patch_status -eq 0 ; then
    # patch didn't return failure, but it still might not have
    # worked.  so, see if the change actually happened or not.
    grep "TEST" conftest_file1 > /dev/null 2>&1
    _grep_status=$?
    if test $_grep_status -eq 0 ; then
      _cv_unified_patch="yes";
    fi
  fi
  rm -f conftest_file1 conftest_patch


fi
echo "$as_me:$LINENO: result: $_cv_unified_patch" >&5
echo "${ECHO_T}$_cv_unified_patch" >&6
if test $_cv_unified_patch != "yes"; then
   { echo "$as_me:$LINENO: try installing GNU patch " >&5
echo "$as_me: try installing GNU patch " >&6;}
   { { echo "$as_me:$LINENO: error: patch must support unified diffs " >&5
echo "$as_me: error: patch must support unified diffs " >&2;}
   { (exit 1); exit 1; }; }
fi


for ac_prog in flex lex
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:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_LEX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
  echo "$as_me:$LINENO: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$LEX" && break
done
test -n "$LEX" || LEX=":"

if test -z "$LEXLIB"
then
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 yywrap ();
int
main ()
{
yywrap ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_fl_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_fl_yywrap=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
if test $ac_cv_lib_fl_yywrap = yes; then
  LEXLIB="-lfl"
else
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
if test "${ac_cv_lib_l_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ll  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 yywrap ();
int
main ()
{
yywrap ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_l_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_l_yywrap=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
if test $ac_cv_lib_l_yywrap = yes; then
  LEXLIB="-ll"
fi

fi

fi

if test "x$LEX" != "x:"; then
  echo "$as_me:$LINENO: checking lex output file root" >&5
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
if test "${ac_cv_prog_lex_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # The minimal lex program is just a single line: %%.  But some broken lexes
# (Solaris, I think it was) want two %% lines, so accommodate them.
cat >conftest.l <<_ACEOF
%%
%%
_ACEOF
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  (eval $LEX conftest.l) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
else
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
rm -f conftest.l
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent. Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
ac_save_LIBS=$LIBS
LIBS="$LIBS $LEXLIB"
cat >conftest.$ac_ext <<_ACEOF
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_lex_yytext_pointer=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS
rm -f "${LEX_OUTPUT_ROOT}.c"

fi
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
if test $ac_cv_prog_lex_yytext_pointer = yes; then

cat >>confdefs.h <<\_ACEOF
#define YYTEXT_POINTER 1
_ACEOF

fi

fi
if test "$LEX" = "no" ; then
    { { echo "$as_me:$LINENO: error: lex is required " >&5
echo "$as_me: error: lex is required " >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: checking for full path to $LEX" >&5
echo $ECHO_N "checking for full path to $LEX... $ECHO_C" >&6
 if test $WHICH != no; then
   lex_path=`$WHICH $LEX`
   echo "$as_me:$LINENO: result: $lex_path" >&5
echo "${ECHO_T}$lex_path" >&6
 else
   echo "$as_me:$LINENO: result: this platform does not support 'which'" >&5
echo "${ECHO_T}this platform does not support 'which'" >&6
 fi



# We don't want to do the default AC_PROG_YACC, since it selects
# "bison -y" if it can find it, and that doesn't work for the yacc
# input in the Condor build.  So, we just manually check for byacc as
# our first choice, then regular old yacc...
# Extract the first word of "byacc", so it can be a program name with args.
set dummy byacc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_byacc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_byacc in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_byacc="$ac_byacc" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_byacc="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_byacc" && ac_cv_path_ac_byacc="no"
  ;;
esac
fi
ac_byacc=$ac_cv_path_ac_byacc

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

if test $ac_byacc = "no"; then
  # Extract the first word of "yacc", so it can be a program name with args.
set dummy yacc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_yacc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_yacc in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_yacc="$ac_yacc" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_yacc="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_yacc" && ac_cv_path_ac_yacc="no"
  ;;
esac
fi
ac_yacc=$ac_cv_path_ac_yacc

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

  if test $ac_yacc = no; then
    { { echo "$as_me:$LINENO: error: byacc or yacc is required " >&5
echo "$as_me: error: byacc or yacc is required " >&2;}
   { (exit 1); exit 1; }; }
  else
    YACC=$ac_yacc
  fi
else
  YACC=$ac_byacc
fi
YACC=$YACC


# ar is used for numerous libraries in Condor, and for extracting
# objects from the system libc.a for the Condor syscall library.
# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_ar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_ar in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_ar="$ac_ar" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_ar="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_ar" && ac_cv_path_ac_ar="no"
  ;;
esac
fi
ac_ar=$ac_cv_path_ac_ar

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

if test $ac_ar = no; then
    { { echo "$as_me:$LINENO: error: ar is required " >&5
echo "$as_me: error: ar is required " >&2;}
   { (exit 1); exit 1; }; }
fi

# strip is used in the packaging of Condor for all released binaries.
# We want to see if we can find GNU strip since it usually does a much
# better job of shrinking the size of our binaries, given that they're
# all built with GNU CC/C++.  however, on OSX, there's no such thing
# as GNU strip.  Also, on other platforms, even if we find GNU strip,
# it might not work properly.  We search for GNU strip, and if we find
# it, we see if it works.  Then we search for a non-GNU vendor strip,
# and see if it works.  If we only found 1 working version, we use it.
# If both versions exist and both work, we see which one produced the
# smallest output program and use that.
echo "$as_me:$LINENO: checking for GNU strip" >&5
echo $ECHO_N "checking for GNU strip... $ECHO_C" >&6
_cv_gnu_strip="no"
_cv_gnu_strip_works="no"
_try_gnu_strip="$STRIP strip gstrip gnustrip"
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH ; do
  IFS=$as_save_IFS
  for a in $_try_gnu_strip ; do
    _try="$as_dir/$a"
    if ( sh -c "$_try --version" 2> /dev/null | grep GNU 2>&1 > /dev/null );
    then
      echo "$as_me:$LINENO: result: $_try" >&5
echo "${ECHO_T}$_try" >&6
      _cv_gnu_strip="$_try";
      break;
    fi
  done;
  if ! test "$_cv_gnu_strip" = "no" ; then
    break;
  fi
done;
if test "$_cv_gnu_strip" = "no" ; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  if ! test "$os" = "Darwin" ; then
    { echo "$as_me:$LINENO: WARNING: GNU strip is recommended" >&5
echo "$as_me: WARNING: GNU strip is recommended" >&2;}
  fi
else
  echo "$as_me:$LINENO: checking if GNU strip works" >&5
echo $ECHO_N "checking if GNU strip works... $ECHO_C" >&6
 _cv_gnu_strip_works="no"
 _cv_gnu_strip_outsize=""
 cat > conftest.c << _TESTEOF
#include <stdio.h>
int main () {
  printf( "hello world\n" );
  return 0;
}
_TESTEOF
 g++ -g -o conftest1 conftest.c > /dev/null 2>&1
 if test $? -ne 0 ; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
   { { echo "$as_me:$LINENO: error: failed to build simple gcc test program" >&5
echo "$as_me: error: failed to build simple gcc test program" >&2;}
   { (exit 1); exit 1; }; }
 fi
 $_cv_gnu_strip conftest1 > /dev/null 2>&1
 if test $? -eq 0 &&
      (sh -c ./conftest1 2>/dev/null |grep "hello world" 2>&1 >/dev/null) ;
 then
   _cv_gnu_strip_works="yes"
   _cv_gnu_strip_outsize="`/bin/ls -nl conftest1 2> /dev/null | awk '{print $5}'`"
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
 else
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
 rm -f conftest.c conftest1

  if test "$_cv_gnu_strip_works" = "no" ; then
    { echo "$as_me:$LINENO: WARNING: GNU strip is installed but doesn't work" >&5
echo "$as_me: WARNING: GNU strip is installed but doesn't work" >&2;}
  fi
fi

echo "$as_me:$LINENO: checking for vendor strip" >&5
echo $ECHO_N "checking for vendor strip... $ECHO_C" >&6
_cv_vendor_strip="no"
_try_vendor_strip="$STRIP strip"
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH ; do
  IFS=$as_save_IFS
  for a in $_try_vendor_strip ; do
    _try="$as_dir/$a"
    if ( sh -c "$_try --version" 2>/dev/null | grep GNU 2>&1 >/dev/null );
    then
      continue;
    fi
    if test -x "$_try" ; then
      echo "$as_me:$LINENO: result: $_try" >&5
echo "${ECHO_T}$_try" >&6
      _cv_vendor_strip="$_try";
      break;
    fi
  done;
  if ! test "$_cv_vendor_strip" = "no" ; then
    break;
  fi
done;
if test "$_cv_vendor_strip" = "no" ; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
else
  echo "$as_me:$LINENO: checking if vendor strip works" >&5
echo $ECHO_N "checking if vendor strip works... $ECHO_C" >&6
 _cv_vendor_strip_works="no"
 _cv_vendor_strip_outsize=""
 cat > conftest.c << _TESTEOF
#include <stdio.h>
int main () {
  printf( "hello world\n" );
  return 0;
}
_TESTEOF
 g++ -g -o conftest1 conftest.c > /dev/null 2>&1
 if test $? -ne 0 ; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
   { { echo "$as_me:$LINENO: error: failed to build simple gcc test program" >&5
echo "$as_me: error: failed to build simple gcc test program" >&2;}
   { (exit 1); exit 1; }; }
 fi
 $_cv_vendor_strip conftest1 > /dev/null 2>&1
 if test $? -eq 0 &&
      (sh -c ./conftest1 2>/dev/null |grep "hello world" 2>&1 >/dev/null) ;
 then
   _cv_vendor_strip_works="yes"
   _cv_vendor_strip_outsize="`/bin/ls -nl conftest1 2> /dev/null | awk '{print $5}'`"
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
 else
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
 rm -f conftest.c conftest1

fi

echo "$as_me:$LINENO: checking which strip we should use" >&5
echo $ECHO_N "checking which strip we should use... $ECHO_C" >&6
# now, based on all the tests, figure out the best one to use:
if test "$_cv_gnu_strip_works" = "no" ; then
  if test "$_cv_vendor_strip_works" = "no" ; then
    echo "$as_me:$LINENO: result: none available " >&5
echo "${ECHO_T}none available " >&6
    { { echo "$as_me:$LINENO: error: strip is required " >&5
echo "$as_me: error: strip is required " >&2;}
   { (exit 1); exit 1; }; }
  else
    # no GNU, but there is a vendor, we'll just use it.
    STRIP=$_cv_vendor_strip
  fi
else
  if test "$_cv_vendor_strip" = "no" ; then
    # no vendor, but we have a working GNU, just use it
    STRIP=$_cv_gnu_strip
  else
    # have both versions and both work, see which one does a better
    # job of shriking the output.  in case of a tie, use vendor strip
    if test "$_cv_gnu_strip_outsize" -lt "$_cv_vendor_strip_outsize" ;
    then
      STRIP=$_cv_gnu_strip
    else
      STRIP=$_cv_vendor_strip
    fi
  fi
fi
# Hack: /usr/bin/strip on Mac OS 10.5 causes the condor_master to die
# inside the plugin initialization code. A message thread in the Boost
# mailing list suggests that running strip without -g or its equivalent
# removes more than just debugging symbols, possibly causing RTTI lookups
# to fail. The appropriate flags on Mac OS are '-S -x'.
if test "$os" = "Darwin" ; then
  STRIP="$STRIP -S -x"
fi
echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
STRIP=$STRIP


# Extract the first word of "find", so it can be a program name with args.
set dummy find; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_find+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_find in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_find="$ac_find" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_find="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_find" && ac_cv_path_ac_find="no"
  ;;
esac
fi
ac_find=$ac_cv_path_ac_find

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

if test $ac_find = "no"; then
  { echo "$as_me:$LINENO: WARNING: find not found, debuglink not supported " >&5
echo "$as_me: WARNING: find not found, debuglink not supported " >&2;}
  FindCmd=""

else

cat >>confdefs.h <<\_ACEOF
#define HAVE_FIND 1
_ACEOF

  FindCmd=$ac_find

fi

# Extract the first word of "objcopy", so it can be a program name with args.
set dummy objcopy; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_objcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_objcopy in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_objcopy="$ac_objcopy" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_objcopy="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_objcopy" && ac_cv_path_ac_objcopy="no"
  ;;
esac
fi
ac_objcopy=$ac_cv_path_ac_objcopy

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

if test $ac_objcopy = "no"; then
  ObjcopyCmd=""

else

cat >>confdefs.h <<\_ACEOF
#define HAVE_OBJCOPY 1
_ACEOF

  ObjcopyCmd=$ac_objcopy

fi

# If objcopy is available, then figure out if it can do the debuglink
# feature to allow us seperate debugging symbols and executables on
# unix builds ala windows.
_cv_objcopy_keepdebug_flag=""
_cv_objcopy_stripunneeded_flag=""
_cv_objcopy_debuglink_flag=""
if test ! $ac_objcopy = "no"; then
	echo "$as_me:$LINENO: checking if objcopy supports --add-gnu-debuglink" >&5
echo $ECHO_N "checking if objcopy supports --add-gnu-debuglink... $ECHO_C" >&6
	`$ac_objcopy --help 2>&1 | $GREP add-gnu-debuglink > /dev/null 2>&1`
	if test $? = 0 -a ! \( "x$_cv_sysname" = "xhp_ux113" -o "x$_cv_sysname" = "xsun4x_59" \)  ; then
		# If this flag exists, then the other ones I need should exist as well.
		_cv_objcopy_keepdebug_flag="--only-keep-debug"
		_cv_objcopy_stripunneeded_flag="--strip-unneeded"
		_cv_objcopy_debuglink_flag="--add-gnu-debuglink"
		echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_OBJCOPY_DEBUGLINK 1
_ACEOF

	else
		echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	fi
fi
OBJCOPY_KEEPDEBUG_FLAG=$_cv_objcopy_keepdebug_flag

OBJCOPY_STRIPUNNEEDED_FLAG=$_cv_objcopy_stripunneeded_flag

OBJCOPY_DEBUGLINK_FLAG=$_cv_objcopy_debuglink_flag


# We depend on some GNU-specific options to tar.  We also depend on
# using --owner and --group, and want those to set the ownerships of
# all files in the tarballs we create to 0.0 (root).  however, not all
# versions of tar support --group=0, and not all machines have group
# root. :( so, we test for what we need, and use whatever works.
# also, some sites have different GNU tar installed under a different
# name, so we've got to do some magic to handle that, too.
echo "$as_me:$LINENO: checking for GNU tar" >&5
echo $ECHO_N "checking for GNU tar... $ECHO_C" >&6
if test "${_cv_gnu_tar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  _cv_gnu_tar="no" ;
  for a in "$TAR" tar gtar gnutar ; do
    if test -z "$a" ; then continue ; fi ;
    if ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null );
    then
      if test $WHICH != no; then
        _cv_gnu_tar=`$WHICH $a`;
      else
        _cv_gnu_tar="$a";
      fi
      break;
    fi
  done;


fi
echo "$as_me:$LINENO: result: $_cv_gnu_tar" >&5
echo "${ECHO_T}$_cv_gnu_tar" >&6
if test "$_cv_gnu_tar" = "no" ; then
   { { echo "$as_me:$LINENO: error: GNU tar is required" >&5
echo "$as_me: error: GNU tar is required" >&2;}
   { (exit 1); exit 1; }; }
fi
# if we got this far, we found a version of GNU tar.  now, see what
# options work to make tarballs with files owned by 0.0:
TarRootCmd=''
echo "$as_me:$LINENO: checking if tar supports --group=0" >&5
echo $ECHO_N "checking if tar supports --group=0... $ECHO_C" >&6
if test "${_cv_gnu_tar_group_zero+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ( $_cv_gnu_tar -cf _cv_test_tar.tar --group=0 configure > /dev/null 2>&1 )
  _tar_status=$?
  rm -f _cv_test_tar.tar 2>&1 > /dev/null
  if test $_tar_status -ne 0; then
    _cv_gnu_tar_group_zero="no";
  else
    _cv_gnu_tar_group_zero="yes";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_gnu_tar_group_zero" >&5
echo "${ECHO_T}$_cv_gnu_tar_group_zero" >&6

if test "$_cv_gnu_tar_group_zero" = "yes"; then
  # we can assume if tar supports "--group=0", "--owner=0" will work.
  TarCmd="$_cv_gnu_tar --owner=0 --group=0"
else
  echo "$as_me:$LINENO: checking if tar supports --group=root" >&5
echo $ECHO_N "checking if tar supports --group=root... $ECHO_C" >&6
if test "${_cv_gnu_tar_group_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ( $_cv_gnu_tar -cf _cv_test_tar.tar --group=root configure > /dev/null 2>&1 )
  _tar_status=$?
  rm -f _cv_test_tar.tar 2>&1 > /dev/null
  if test $_tar_status -ne 0; then
    _cv_gnu_tar_group_root="no";
  else
    _cv_gnu_tar_group_root="yes";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_gnu_tar_group_root" >&5
echo "${ECHO_T}$_cv_gnu_tar_group_root" >&6

  echo "$as_me:$LINENO: checking if tar supports --owner=root" >&5
echo $ECHO_N "checking if tar supports --owner=root... $ECHO_C" >&6
if test "${_cv_gnu_tar_owner_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ( $_cv_gnu_tar -cf _cv_test_tar.tar --owner=root configure > /dev/null 2>&1 )
  _tar_status=$?
  rm -f _cv_test_tar.tar 2>&1 > /dev/null
  if test $_tar_status -ne 0; then
    _cv_gnu_tar_owner_root="no";
  else
    _cv_gnu_tar_owner_root="yes";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_gnu_tar_owner_root" >&5
echo "${ECHO_T}$_cv_gnu_tar_owner_root" >&6

  if test "$_cv_gnu_tar_group_root" = "yes"; then
     if test "$_cv_gnu_tar_owner_root" = "yes"; then
       TarCmd="$_cv_gnu_tar --owner=root --group=root"
     else
       tar_err_msg="user called \"root\" with UID 0"
     fi
  else
    # group root didn't work, see if owner root did so we can
    # construct the appropriate error message
    if test "$_cv_gnu_tar_owner_root" = "yes"; then
      tar_err_msg="group called \"root\" with GID 0"
    else
      tar_err_msg="user and group called \"root\" with UID 0 and GID 0"
    fi
  fi
fi
if test "x$TarCmd" = "x"; then
  { { echo "$as_me:$LINENO: error: you system does not support tar features Condor requires for packaging our releases.  you must install a version of GNU tar which supports numeric arguments to --group and --owner (such as version 1.13 or higher), or add a $tar_err_msg, then re-run configure" >&5
echo "$as_me: error: you system does not support tar features Condor requires for packaging our releases.  you must install a version of GNU tar which supports numeric arguments to --group and --owner (such as version 1.13 or higher), or add a $tar_err_msg, then re-run configure" >&2;}
   { (exit 1); exit 1; }; }
fi

# Tar uses an idiotic 10KB default io buffer block size, which makes for
# hideously slow tar operations. This isn't 1975 anymore, so I'm upping it
# to 2MB. This is 4096 * 512 (the default block size) and the size of most
# drive caches these days. This option will
# also make the smallest tarfile which can be made be padded to 2MB. However,
# we compress all of our tar files, so those fluffy zeros will compact nicely.
# I wish tar wasn't so stupid about the read/write block sizes... :(
echo "$as_me:$LINENO: checking if tar supports \"-b 4096\"" >&5
echo $ECHO_N "checking if tar supports \"-b 4096\"... $ECHO_C" >&6
if test "${_cv_gnu_tar_blocksize_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ( $_cv_gnu_tar -cf _cv_test_tar.tar "-b 4096" configure > /dev/null 2>&1 )
  _tar_status=$?
  rm -f _cv_test_tar.tar 2>&1 > /dev/null
  if test $_tar_status -ne 0; then
    _cv_gnu_tar_blocksize_flag="no";
  else
    _cv_gnu_tar_blocksize_flag="yes";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_gnu_tar_blocksize_flag" >&5
echo "${ECHO_T}$_cv_gnu_tar_blocksize_flag" >&6

if test "$_cv_gnu_tar_blocksize_flag" = "yes"; then
	TarCmd="$TarCmd -b 4096"
fi

TarCmd=$TarCmd


# Check to see if tar supports --exclude
echo "$as_me:$LINENO: checking if tar supports --exclude=configure" >&5
echo $ECHO_N "checking if tar supports --exclude=configure... $ECHO_C" >&6
if test "${_cv_gnu_tar_exclude_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ( $_cv_gnu_tar -cf _cv_test_tar.tar --exclude=configure configure > /dev/null 2>&1 )
  _tar_status=$?
  rm -f _cv_test_tar.tar 2>&1 > /dev/null
  if test $_tar_status -ne 0; then
    _cv_gnu_tar_exclude_flag="no";
  else
    _cv_gnu_tar_exclude_flag="yes";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_gnu_tar_exclude_flag" >&5
echo "${ECHO_T}$_cv_gnu_tar_exclude_flag" >&6

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

cat >>confdefs.h <<\_ACEOF
#define HAVE_TAR_EXCLUDE_FLAG 1
_ACEOF

fi

# Check to see if tar supports --files-from
echo "configure" > _test_file
echo "$as_me:$LINENO: checking if tar supports --files-from=_test_file" >&5
echo $ECHO_N "checking if tar supports --files-from=_test_file... $ECHO_C" >&6
if test "${_cv_gnu_tar_files_from_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ( $_cv_gnu_tar -cf _cv_test_tar.tar --files-from=_test_file configure > /dev/null 2>&1 )
  _tar_status=$?
  rm -f _cv_test_tar.tar 2>&1 > /dev/null
  if test $_tar_status -ne 0; then
    _cv_gnu_tar_files_from_flag="no";
  else
    _cv_gnu_tar_files_from_flag="yes";
  fi

fi
echo "$as_me:$LINENO: result: $_cv_gnu_tar_files_from_flag" >&5
echo "${ECHO_T}$_cv_gnu_tar_files_from_flag" >&6

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

cat >>confdefs.h <<\_ACEOF
#define HAVE_TAR_FILES_FROM_FLAG 1
_ACEOF

fi
rm -f _test_file

# We use "cp -r" to package parts of Condor.  However, we need to make
# sure that it dereferences symlinks, instead of copying the links.
# GNU cp copies symlinks by default with -r, so we need to add "-Lr"
# to get the behavior we want.  Unfortunately, the vendor cp on many
# platforms doesn't recognize "-L".  So, we just do some tests here to
# figure out what flags get the behavior we want, and pass that on to
# the places that need it via the Makefiles.
# Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path__cv_cp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $_cv_cp in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__cv_cp="$_cv_cp" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path__cv_cp="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path__cv_cp" && ac_cv_path__cv_cp="no"
  ;;
esac
fi
_cv_cp=$ac_cv_path__cv_cp

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

if test "$_cv_cp" = "no" ; then
  { { echo "$as_me:$LINENO: error: no cp in your PATH! Either fix your PATH or your machine" >&5
echo "$as_me: error: no cp in your PATH! Either fix your PATH or your machine" >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: checking what options to cp recursively copy and follow symlinks" >&5
echo $ECHO_N "checking what options to cp recursively copy and follow symlinks... $ECHO_C" >&6
if test "${_cv_cp_flags+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  _cv_cp_flags="none" ;
  for a in "-rL" "-r" ; do

 # initialize the flag imagining we're going to fail.  we'll set it to
 # the right thing if the flag really worked
 _cv_cp_flags="none";
 # beware, at this stage, all we can count on is the configure script
#itself ex
 touch conftest_base > /dev/null 2>&1
 ln -s conftest_base conftest_link > /dev/null 2>&1
 $_cv_cp $a conftest_link conftest_file > /dev/null 2>&1
 if test -f "conftest_file" ; then
   perl -e 'exit -l "conftest_file"' > /dev/null 2>&1
   _is_link=$?
   if test "$_is_link" = "0" ; then
   # it's not a symlink!  this flag will work.
     _cv_cp_flags="$a";
   fi
 fi
 # either way, clean up our test files
 /bin/rm -f conftest_base conftest_link conftest_file > /dev/null 2>&1

    if ! test "$_cv_cp_flags" = "none" ; then
      break;
    fi
  done;


fi
echo "$as_me:$LINENO: result: $_cv_cp_flags" >&5
echo "${ECHO_T}$_cv_cp_flags" >&6
if test "$_cv_cp_flags" = "none" ; then
  { { echo "$as_me:$LINENO: error: The cp in your PATH does not work, try installing GNU cp" >&5
echo "$as_me: error: The cp in your PATH does not work, try installing GNU cp" >&2;}
   { (exit 1); exit 1; }; }
else
  CpCmd="$_cv_cp $_cv_cp_flags"

fi

# gzip is required for packaging up Condor releases.
# Extract the first word of "gzip", so it can be a program name with args.
set dummy gzip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_gzip+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_gzip in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_gzip="$ac_gzip" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_gzip="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_gzip" && ac_cv_path_ac_gzip="no"
  ;;
esac
fi
ac_gzip=$ac_cv_path_ac_gzip

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

if test $ac_gzip = no; then
    { { echo "$as_me:$LINENO: error: gzip is required " >&5
echo "$as_me: error: gzip is required " >&2;}
   { (exit 1); exit 1; }; }
fi

# true is used in the imake build system, esp. in condor_tests
# Extract the first word of "true", so it can be a program name with args.
set dummy true; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_TRUE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $TRUE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_TRUE="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="no"
  ;;
esac
fi
TRUE=$ac_cv_path_TRUE

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

 if test "$TRUE" = "no" ; then
   { { echo "$as_me:$LINENO: error: true is required" >&5
echo "$as_me: error: true is required" >&2;}
   { (exit 1); exit 1; }; }
 fi

TRUE=$TRUE


# Extract the first word of "purify", so it can be a program name with args.
set dummy purify; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_purify+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_purify in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_purify="$ac_purify" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_purify="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_purify" && ac_cv_path_ac_purify="no"
  ;;
esac
fi
ac_purify=$ac_cv_path_ac_purify

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

if test "$ac_purify" = "purify"; then
   echo "$as_me:$LINENO: checking purify cache directory ($ac_cv_purecachedir)" >&5
echo $ECHO_N "checking purify cache directory ($ac_cv_purecachedir)... $ECHO_C" >&6
   if test -d $ac_cv_purecachedir && test -w $ac_cv_purecachedir ; then
      echo "$as_me:$LINENO: result: exists " >&5
echo "${ECHO_T}exists " >&6
   else
      { if $as_mkdir_p; then
    mkdir -p $ac_cv_purecachedir
  else
    as_dir=$ac_cv_purecachedir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $ac_cv_purecachedir" >&5
echo "$as_me: error: cannot create directory $ac_cv_purecachedir" >&2;}
   { (exit 1); exit 1; }; }; }

      echo "$as_me:$LINENO: result: created " >&5
echo "${ECHO_T}created " >&6
   fi
fi

# Allow the user to specify a directory where vmware is to be found.
# This logic is a little scary since vm_arg can be "no", "yes", or a path.

# Check whether --with-vmware or --without-vmware was given.
if test "${with_vmware+set}" = set; then
  withval="$with_vmware"
  vm_arg=$withval
else
  vm_arg=$PATH
fi;

# Depending what the user told us, we will modify vm_path.
if test $vm_arg = "no"; then
 # we don't even check for VMware so assign the makefile var to nothing.
 ac_vmware=""
else
 # Here we check for it with $PATH or with what the user told us where to find
 # it.
 if test $vm_arg = "yes"; then
  vm_path=$PATH
 else
  vm_path=$vm_arg
 fi
 # now find the vmware program, if applicable.
 # Extract the first word of "vmware", so it can be a program name with args.
set dummy vmware; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_vmware+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_vmware in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_vmware="$ac_vmware" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $vm_path
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_vmware="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_vmware" && ac_cv_path_ac_vmware="no"
  ;;
esac
fi
ac_vmware=$ac_cv_path_ac_vmware

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

 if test $ac_vmware = "no"; then
  ac_vmware=""
 else

cat >>confdefs.h <<\_ACEOF
#define HAVE_VMWARE 1
_ACEOF

 fi
fi
VMWARE=$ac_vmware


# Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_javac+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_javac in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_javac="$ac_javac" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_javac="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_javac" && ac_cv_path_ac_javac="no"
  ;;
esac
fi
ac_javac=$ac_cv_path_ac_javac

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

if test $ac_javac = "no"; then
  { echo "$as_me:$LINENO: WARNING: javac not found " >&5
echo "$as_me: WARNING: javac not found " >&2;}
else

cat >>confdefs.h <<\_ACEOF
#define HAVE_JAVAC 1
_ACEOF

fi
JAVAC=$ac_javac


# Extract the first word of "jar", so it can be a program name with args.
set dummy jar; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_jar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_jar in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_jar="$ac_jar" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_jar="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_jar" && ac_cv_path_ac_jar="no"
  ;;
esac
fi
ac_jar=$ac_cv_path_ac_jar

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

if test $ac_jar = "no"; then
  { echo "$as_me:$LINENO: WARNING: jar not found " >&5
echo "$as_me: WARNING: jar not found " >&2;}
else

cat >>confdefs.h <<\_ACEOF
#define HAVE_JAR 1
_ACEOF

fi
JAR=$ac_jar


# Extract the first word of "md5sum", so it can be a program name with args.
set dummy md5sum; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_md5sum+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_md5sum in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_md5sum="$ac_md5sum" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_md5sum="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_md5sum" && ac_cv_path_ac_md5sum="no"
  ;;
esac
fi
ac_md5sum=$ac_cv_path_ac_md5sum

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

if test $ac_md5sum = "no"; then
  { echo "$as_me:$LINENO: WARNING: md5sum not found " >&5
echo "$as_me: WARNING: md5sum not found " >&2;}
else

cat >>confdefs.h <<\_ACEOF
#define HAVE_MD5SUM 1
_ACEOF

fi
MD5SUM=$ac_md5sum


# Extract the first word of "sha1sum", so it can be a program name with args.
set dummy sha1sum; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_sha1sum+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_sha1sum in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_sha1sum="$ac_sha1sum" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_sha1sum="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_sha1sum" && ac_cv_path_ac_sha1sum="no"
  ;;
esac
fi
ac_sha1sum=$ac_cv_path_ac_sha1sum

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

if test $ac_sha1sum = "no"; then
  { echo "$as_me:$LINENO: WARNING: sha1sum not found " >&5
echo "$as_me: WARNING: sha1sum not found " >&2;}
else

cat >>confdefs.h <<\_ACEOF
#define HAVE_SHA1SUM 1
_ACEOF

fi
MD5SUM=$ac_sha1sum


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

else
  enable_rpm=yes
fi;
# there might be two kinds of rpm on a machine, 'rpm' and 'rpmbuild'
# use the latter if we have it.
if test "x$_cv_linux_distro" = "xSLES9"; then
	# rpm is broken on some platforms, so just turn them off.
  	{ echo "$as_me:$LINENO: WARNING: rpm generation has been disabled for this architecture " >&5
echo "$as_me: WARNING: rpm generation has been disabled for this architecture " >&2;}
	_cv_have_rpm="NO"
else
	# everyone else gets a normal check.
	# Extract the first word of "rpmbuild", so it can be a program name with args.
set dummy rpmbuild; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_rpmcmd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_rpmcmd in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_rpmcmd="$ac_rpmcmd" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_rpmcmd="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_rpmcmd" && ac_cv_path_ac_rpmcmd="no"
  ;;
esac
fi
ac_rpmcmd=$ac_cv_path_ac_rpmcmd

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

	if test $ac_rpmcmd = "no"; then
		# Extract the first word of "rpm", so it can be a program name with args.
set dummy rpm; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_rpmcmd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_rpmcmd in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_rpmcmd="$ac_rpmcmd" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_rpmcmd="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_ac_rpmcmd" && ac_cv_path_ac_rpmcmd="no"
  ;;
esac
fi
ac_rpmcmd=$ac_cv_path_ac_rpmcmd

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

		if test $ac_rpmcmd = "no"; then
  			{ echo "$as_me:$LINENO: WARNING: rpm/rpmbuild not found, so no rpms on this architecture " >&5
echo "$as_me: WARNING: rpm/rpmbuild not found, so no rpms on this architecture " >&2;}
  			_cv_have_rpm="NO"

			# This is ok since MakeRPM is blank in Project.tmpl

		else
  			_cv_have_rpm="YES"
			RpmCmd=$ac_rpmcmd

		fi
	else
  	_cv_have_rpm="YES"
	RpmCmd=$ac_rpmcmd

	fi
fi
if test "x$enable_rpm" != xno -a "x$_cv_have_rpm" != xNO; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_RPM 1
_ACEOF

fi


# Check whether --enable-malloc-debug or --disable-malloc-debug was given.
if test "${enable_malloc_debug+set}" = set; then
  enableval="$enable_malloc_debug"

else
  enable_malloc_debug=no
fi;

if test "x$enable_malloc_debug" = xyes; then
  CPPFLAGS="$CPPFLAGS -DMALLOC_DEBUG"
fi


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

else
  enable_netman=no
fi;
if test "x$enable_netman" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define ENABLE_NETMAN 1
_ACEOF

fi


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

else
  enable_nest=no
fi;
if test "x$enable_nest" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define WANT_NEST 1
_ACEOF

fi


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

else
  enable_quill=yes
fi;
if test "x$enable_quill" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define WANT_QUILL 1
_ACEOF

fi


ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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
sed 's/^/| /' 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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
sed 's/^/| /' 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
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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
sed 's/^/| /' 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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
sed 's/^/| /' 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:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


echo "$as_me:$LINENO: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6


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

fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
  else
    if test "${ac_cv_have_x+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -fr conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat >Imakefile <<'_ACEOF'
acfindx:
	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
_ACEOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
	 test -f $ac_im_libdir/libX11.$ac_extension; then
	ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -fr conftest.dir
fi

# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include

/usr/include/X11
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4

/usr/local/X11/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include

/usr/local/include/X11
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4

/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11

/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include

/usr/openwin/include
/usr/openwin/share/include'

if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Intrinsic.h.
  # First, try using that file with no special directory specified.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Intrinsic.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Intrinsic.h"; then
    ac_x_includes=$ac_dir
    break
  fi
done
fi
rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no

if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lXt $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Intrinsic.h>
int
main ()
{
XtMalloc (0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl; do
    if test -r $ac_dir/libXt.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no

if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
else
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
fi

  fi
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  echo "$as_me:$LINENO: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi

if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.

cat >>confdefs.h <<\_ACEOF
#define X_DISPLAY_MISSING 1
_ACEOF

  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    case `(uname -sr) 2>/dev/null` in
    "SunOS 5"*)
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_R_nospace=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_R_nospace=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
      if test $ac_R_nospace = yes; then
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	X_LIBS="$X_LIBS -R$x_libraries"
      else
	LIBS="$ac_xsave_LIBS -R $x_libraries"
	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_R_space=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_R_space=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
	if test $ac_R_space = yes; then
	  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	  X_LIBS="$X_LIBS -R $x_libraries"
	else
	  echo "$as_me:$LINENO: result: neither works" >&5
echo "${ECHO_T}neither works" >&6
	fi
      fi
      LIBS=$ac_xsave_LIBS
    esac
  fi

  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 XOpenDisplay ();
int
main ()
{
XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 dnet_ntoa ();
int
main ()
{
dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dnet_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dnet_dnet_ntoa=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi

    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 dnet_ntoa ();
int
main ()
{
dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dnet_stub_dnet_ntoa=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi

    fi
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"

    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gethostbyname innocuous_gethostbyname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gethostbyname

/* 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 gethostbyname ();
/* 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_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
char (*f) () = gethostbyname;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != gethostbyname;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_gethostbyname=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6

    if test $ac_cv_func_gethostbyname = no; then
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_nsl_gethostbyname=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test $ac_cv_lib_nsl_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi

      if test $ac_cv_lib_nsl_gethostbyname = no; then
	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_bsd_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bsd_gethostbyname=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
if test $ac_cv_lib_bsd_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi

      fi
    fi

    # lieder@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the name server (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    echo "$as_me:$LINENO: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6
if test "${ac_cv_func_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define connect innocuous_connect

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char connect (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef connect

/* 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 connect ();
/* 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_connect) || defined (__stub___connect)
choke me
#else
char (*f) () = connect;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != connect;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_connect=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_connect=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6

    if test $ac_cv_func_connect = no; then
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 connect ();
int
main ()
{
connect ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_socket_connect=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_socket_connect=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
if test $ac_cv_lib_socket_connect = yes; then
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi

    fi

    # Guillermo Gomez says -lposix is necessary on A/UX.
    echo "$as_me:$LINENO: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6
if test "${ac_cv_func_remove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define remove innocuous_remove

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char remove (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef remove

/* 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 remove ();
/* 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_remove) || defined (__stub___remove)
choke me
#else
char (*f) () = remove;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != remove;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_remove=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_remove=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6

    if test $ac_cv_func_remove = no; then
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
if test "${ac_cv_lib_posix_remove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 remove ();
int
main ()
{
remove ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_posix_remove=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_posix_remove=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
if test $ac_cv_lib_posix_remove = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
fi

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo "$as_me:$LINENO: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
if test "${ac_cv_func_shmat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shmat innocuous_shmat

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shmat (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shmat

/* 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 shmat ();
/* 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_shmat) || defined (__stub___shmat)
choke me
#else
char (*f) () = shmat;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != shmat;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shmat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_shmat=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6

    if test $ac_cv_func_shmat = no; then
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 shmat ();
int
main ()
{
shmat ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_ipc_shmat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ipc_shmat=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
if test $ac_cv_lib_ipc_shmat = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
fi

    fi
  fi

  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 IceConnectionNumber ();
int
main ()
{
IceConnectionNumber ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_ICE_IceConnectionNumber=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ICE_IceConnectionNumber=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi

  LDFLAGS=$ac_save_LDFLAGS

fi

X_LDFLAGS="$X_LIBS"
X11_LIBS="$X_PRE_LIBS $X_EXTRA_LIBS -lX11"

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

else
  case "$_cv_opsys" in
    AIX | HPUX | SOLARIS )
      enable_kbdd=no
    ;;
    LINUX )
      enable_kbdd=yes
    ;;
    * ) # Who had this turned on? No .cf files on 1/6/8 used it. -matt
      enable_kbdd=no
    ;;
  esac
fi;
if test "x$enable_kbdd" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define NEEDS_KBDD 1
_ACEOF

   X11_CFLAGS=$X_CFLAGS

   X11_LDFLAGS=$X_LDFLAGS

   X11_LIBS=$X11_LIBS

else
  X11_CFLAGS=""

   X11_LIBS=""

   X11_LDFLAGS=""

fi



# Here we figure out whether or not the circumstances are correct for us
# to be able to separate the debugging symbols from the executables and
# package them into a tarball. for example, if say objcopy's debuglink flag
# is available, but we can't exclude the files when making the tarballs,
# then turn the whole thing off.
echo "$as_me:$LINENO: checking for ability to produce debuglink tarball" >&5
echo $ECHO_N "checking for ability to produce debuglink tarball... $ECHO_C" >&6
if test "x$ac_find" != "xno" -a "x$ac_objcopy" != "xno" \
		-a "x$_cv_objcopy_keepdebug_flag" != "x" \
		-a "x$_cv_gnu_tar_exclude_flag" != "x" \
		-a "x$_cv_gnu_tar_files_from_flag" != "x" ; then
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_DEBUGLINK_TARBALL 1
_ACEOF

else
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

############################################################
# checks for libraries
############################################################


############################################################
# checks for header files
############################################################


for ac_header in net/if.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include<netinet/in.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep


echo "$as_me:$LINENO: 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_objext 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $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
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:$LINENO: 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 <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.









for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/types.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in sys/param.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in stdint.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in inttypes.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in os_types.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in sys/personality.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in linux/personality.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in linux/magic.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in linux/nfsd/const.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in linux/sockios.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in linux/types.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in linux/ethtool.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#if HAVE_OS_TYPES_H
# include <os_types.h>
#endif
#if HAVE_LINUX_TYPES_H
# include <linux/types.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in sys/statfs.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in sys/statvfs.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in sys/vfs.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in sys/mount.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in ustat.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in dlfcn.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in valgrind.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include<sys/types.h>
#include<netinet/in.h>
#include<arpa/nameser.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



############################################################
# checks for types
############################################################

echo "$as_me:$LINENO: checking for int64_t" >&5
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
if test "${ac_cv_type_int64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((int64_t *) 0)
  return 0;
if (sizeof (int64_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int64_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_int64_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_int64_t" >&6
if test $ac_cv_type_int64_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INT64_T 1
_ACEOF


fi

echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_long_long=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

echo "$as_me:$LINENO: checking for __int64" >&5
echo $ECHO_N "checking for __int64... $ECHO_C" >&6
if test "${ac_cv_type___int64+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((__int64 *) 0)
  return 0;
if (sizeof (__int64))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type___int64=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type___int64=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
echo "${ECHO_T}$ac_cv_type___int64" >&6
if test $ac_cv_type___int64 = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE___INT64 1
_ACEOF


fi

echo "$as_me:$LINENO: checking for id_t" >&5
echo $ECHO_N "checking for id_t... $ECHO_C" >&6
if test "${ac_cv_type_id_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((id_t *) 0)
  return 0;
if (sizeof (id_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_id_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_id_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
echo "${ECHO_T}$ac_cv_type_id_t" >&6
if test $ac_cv_type_id_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ID_T 1
_ACEOF


fi


# checks for structures

# checks for compiler characteristics

############################################################
# checks for library functions
############################################################


































for ac_func in strsignal				\
		strcasestr				\
		lstat					\
		lstat					\
		lstat64					\
		fstat64					\
		_stati64				\
		_lstati64				\
		_fstati64				\
		stat64					\
		lstat64					\
		fstat64					\
		_stati64				\
		_lstati64				\
		_fstati64				\
		fseeko					\
		ftello					\
		lchown					\
		dirfd					\
		getdirentries				\
		getdtablesize				\
		getpagesize				\
		getwd					\
		setegid					\
		seteuid					\
		setlinebuf				\
		snprintf				\
		setenv					\
		unsetenv				\
		execl					\
		access					\
		vasprintf				\
		clearenv
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* 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 $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

echo "$as_me:$LINENO: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_func_crypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define crypt innocuous_crypt

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char crypt (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef crypt

/* 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 crypt ();
/* 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_crypt) || defined (__stub___crypt)
choke me
#else
char (*f) () = crypt;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != crypt;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_crypt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_crypt=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
echo "${ECHO_T}$ac_cv_func_crypt" >&6
if test $ac_cv_func_crypt = yes; then
  :
else

echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypt  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 crypt ();
int
main ()
{
crypt ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_crypt_crypt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_crypt_crypt=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
if test $ac_cv_lib_crypt_crypt = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCRYPT 1
_ACEOF

  LIBS="-lcrypt $LIBS"

fi

fi

echo "$as_me:$LINENO: checking for library containing dlopen" >&5
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
if test "${ac_cv_search_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_dlopen=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_dlopen="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_dlopen" = no; then
  for ac_lib in dl; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_dlopen="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
if test "$ac_cv_search_dlopen" != no; then
  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"

cat >>confdefs.h <<\_ACEOF
#define HAVE_DLOPEN 1
_ACEOF

fi



for ac_func in backtrace
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* 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 $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# If we can't find clone() on linux (for fast forking from large
# processes), then somebody better understand why; so produce a fatal
# error here.  Under IA64, there is a different interface to clone
# (clone2), and the header files appear to be out of sync with the
# library, so avoid using clone() on that architecture.
if test $os = "Linux" && test $arch != "ia64"; then
  echo "$as_me:$LINENO: checking whether clone is declared" >&5
echo $ECHO_N "checking whether clone is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_clone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include<sched.h>

int
main ()
{
#ifndef clone
  char *p = (char *) clone;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_have_decl_clone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl_clone=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl_clone" >&5
echo "${ECHO_T}$ac_cv_have_decl_clone" >&6
if test $ac_cv_have_decl_clone = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CLONE 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define HAVE_CLONE 1
_ACEOF

else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CLONE 0
_ACEOF

{ { echo "$as_me:$LINENO: error: expecting to find clone() on this platform " >&5
echo "$as_me: error: expecting to find clone() on this platform " >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: checking whether CLONE_VM is declared" >&5
echo $ECHO_N "checking whether CLONE_VM is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_CLONE_VM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include<sched.h>

int
main ()
{
#ifndef CLONE_VM
  char *p = (char *) CLONE_VM;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_have_decl_CLONE_VM=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl_CLONE_VM=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl_CLONE_VM" >&5
echo "${ECHO_T}$ac_cv_have_decl_CLONE_VM" >&6
if test $ac_cv_have_decl_CLONE_VM = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CLONE_VM 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define HAVE_CLONE 1
_ACEOF

else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CLONE_VM 0
_ACEOF

{ { echo "$as_me:$LINENO: error: expecting to find clone() on this platform " >&5
echo "$as_me: error: expecting to find clone() on this platform " >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: checking whether CLONE_VFORK is declared" >&5
echo $ECHO_N "checking whether CLONE_VFORK is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_CLONE_VFORK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include<sched.h>

int
main ()
{
#ifndef CLONE_VFORK
  char *p = (char *) CLONE_VFORK;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_have_decl_CLONE_VFORK=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl_CLONE_VFORK=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl_CLONE_VFORK" >&5
echo "${ECHO_T}$ac_cv_have_decl_CLONE_VFORK" >&6
if test $ac_cv_have_decl_CLONE_VFORK = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CLONE_VFORK 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define HAVE_CLONE 1
_ACEOF

else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CLONE_VFORK 0
_ACEOF

{ { echo "$as_me:$LINENO: error: expecting to find clone() on this platform " >&5
echo "$as_me: error: expecting to find clone() on this platform " >&2;}
   { (exit 1); exit 1; }; }
fi


fi

echo "$as_me:$LINENO: checking whether res_init is declared" >&5
echo $ECHO_N "checking whether res_init is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_res_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include<sys/types.h>
#include<netinet/in.h>
#include<arpa/nameser.h>
#include<resolv.h>

int
main ()
{
#ifndef res_init
  char *p = (char *) res_init;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_have_decl_res_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl_res_init=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl_res_init" >&5
echo "${ECHO_T}$ac_cv_have_decl_res_init" >&6
if test $ac_cv_have_decl_res_init = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_RES_INIT 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_RES_INIT 0
_ACEOF


fi





for ac_func in statfs statvfs
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* 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 $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif

int
main ()
{
static struct statfs ac_aggr;
if (ac_aggr.f_type)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statfs_f_type=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif

int
main ()
{
static struct statfs ac_aggr;
if (sizeof ac_aggr.f_type)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statfs_f_type=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_struct_statfs_f_type=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
if test $ac_cv_member_struct_statfs_f_type = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STATFS_F_TYPE 1
_ACEOF


else

  echo "$as_me:$LINENO: checking for struct statfs.f_fstyp" >&5
echo $ECHO_N "checking for struct statfs.f_fstyp... $ECHO_C" >&6
if test "${ac_cv_member_struct_statfs_f_fstyp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif

int
main ()
{
static struct statfs ac_aggr;
if (ac_aggr.f_fstyp)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statfs_f_fstyp=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif

int
main ()
{
static struct statfs ac_aggr;
if (sizeof ac_aggr.f_fstyp)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statfs_f_fstyp=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_struct_statfs_f_fstyp=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstyp" >&5
echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstyp" >&6
if test $ac_cv_member_struct_statfs_f_fstyp = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STATFS_F_FSTYP 1
_ACEOF


fi

fi


echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif

int
main ()
{
static struct statfs ac_aggr;
if (ac_aggr.f_fstypename)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statfs_f_fstypename=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif

int
main ()
{
static struct statfs ac_aggr;
if (sizeof ac_aggr.f_fstypename)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statfs_f_fstypename=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_struct_statfs_f_fstypename=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
if test $ac_cv_member_struct_statfs_f_fstypename = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
_ACEOF


fi


echo "$as_me:$LINENO: checking for struct statvfs.f_fsid" >&5
echo $ECHO_N "checking for struct statvfs.f_fsid... $ECHO_C" >&6
if test "${ac_cv_member_struct_statvfs_f_fsid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
#endif

int
main ()
{
static struct statvfs ac_aggr;
if (ac_aggr.f_fsid)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statvfs_f_fsid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
#endif

int
main ()
{
static struct statvfs ac_aggr;
if (sizeof ac_aggr.f_fsid)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statvfs_f_fsid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_struct_statvfs_f_fsid=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid" >&5
echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid" >&6
if test $ac_cv_member_struct_statvfs_f_fsid = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STATVFS_F_FSID 1
_ACEOF


fi


echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
#endif

int
main ()
{
static struct statvfs ac_aggr;
if (ac_aggr.f_basetype)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statvfs_f_basetype=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
#endif

int
main ()
{
static struct statvfs ac_aggr;
if (sizeof ac_aggr.f_basetype)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_statvfs_f_basetype=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_struct_statvfs_f_basetype=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
if test $ac_cv_member_struct_statvfs_f_basetype = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STATVFS_F_BASETYPE 1
_ACEOF


fi


if test "$ac_cv_func_statfs" = yes ; then
  echo "$as_me:$LINENO: checking number of arguments to statfs()" >&5
echo $ECHO_N "checking number of arguments to statfs()... $ECHO_C" >&6
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
  #ifdef HAVE_SYS_TYPES_H
  #include <sys/types.h>
  #endif
  #ifdef HAVE_SYS_PARAM_H
  #include <sys/param.h>
  #endif
  #ifdef HAVE_SYS_VFS_H
  #include <sys/vfs.h>
  #endif
  #ifdef HAVE_SYS_MOUNT_H
  #include <sys/mount.h>
  #endif
  #ifdef HAVE_SYS_STATFS_H
  #include <sys/statfs.h>
  #endif
  #ifdef HAVE_USTAT_H
  #include <ustat.h>
  #endif
int
main ()
{
struct statfs st;
  statfs(NULL, &st);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

    echo "$as_me:$LINENO: result: 2" >&5
echo "${ECHO_T}2" >&6

cat >>confdefs.h <<\_ACEOF
#define STATFS_ARGS 2
_ACEOF

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
  #ifdef HAVE_SYS_PARAM_H
  #include <sys/param.h>
  #endif
  #ifdef HAVE_SYS_VFS_H
  #include <sys/vfs.h>
  #endif
  #ifdef HAVE_SYS_MOUNT_H
  #include <sys/mount.h>
  #endif
  #ifdef HAVE_SYS_STATFS_H
  #include <sys/statfs.h>
  #endif
int
main ()
{
struct statfs st;
  statfs(NULL, &st, sizeof (st), 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

      echo "$as_me:$LINENO: result: 4" >&5
echo "${ECHO_T}4" >&6

cat >>confdefs.h <<\_ACEOF
#define STATFS_ARGS 4
_ACEOF

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


      echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6
      { { echo "$as_me:$LINENO: error: unable to determine number of arguments to statfs()" >&5
echo "$as_me: error: unable to determine number of arguments to statfs()" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Do we have the "ethtool" and similar declarations?
echo "$as_me:$LINENO: checking whether SIOCETHTOOL is declared" >&5
echo $ECHO_N "checking whether SIOCETHTOOL is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_SIOCETHTOOL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <linux/sockios.h>

int
main ()
{
#ifndef SIOCETHTOOL
  char *p = (char *) SIOCETHTOOL;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_have_decl_SIOCETHTOOL=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl_SIOCETHTOOL=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl_SIOCETHTOOL" >&5
echo "${ECHO_T}$ac_cv_have_decl_SIOCETHTOOL" >&6
if test $ac_cv_have_decl_SIOCETHTOOL = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIOCETHTOOL 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIOCETHTOOL 0
_ACEOF


fi
echo "$as_me:$LINENO: checking whether SIOCGIFCONF is declared" >&5
echo $ECHO_N "checking whether SIOCGIFCONF is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_SIOCGIFCONF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <linux/sockios.h>

int
main ()
{
#ifndef SIOCGIFCONF
  char *p = (char *) SIOCGIFCONF;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_have_decl_SIOCGIFCONF=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl_SIOCGIFCONF=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl_SIOCGIFCONF" >&5
echo "${ECHO_T}$ac_cv_have_decl_SIOCGIFCONF" >&6
if test $ac_cv_have_decl_SIOCGIFCONF = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIOCGIFCONF 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIOCGIFCONF 0
_ACEOF


fi



# Does net/if.h define struct ifreq ?
echo "$as_me:$LINENO: checking for struct ifreq" >&5
echo $ECHO_N "checking for struct ifreq... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifreq+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <net/if.h>

int
main ()
{
if ((struct ifreq *) 0)
  return 0;
if (sizeof (struct ifreq))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_ifreq=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_struct_ifreq=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifreq" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifreq" >&6
if test $ac_cv_type_struct_ifreq = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFREQ 1
_ACEOF


fi
echo "$as_me:$LINENO: checking for struct ifconf" >&5
echo $ECHO_N "checking for struct ifconf... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifconf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <net/if.h>

int
main ()
{
if ((struct ifconf *) 0)
  return 0;
if (sizeof (struct ifconf))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_ifconf=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_struct_ifconf=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifconf" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifconf" >&6
if test $ac_cv_type_struct_ifconf = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFCONF 1
_ACEOF


fi


# we don't actually want to add -lgen to our link line, but we do want
# HAVE_LIBGEN defined correctly for our test suite builds...
echo "$as_me:$LINENO: checking for dirname" >&5
echo $ECHO_N "checking for dirname... $ECHO_C" >&6
if test "${ac_cv_func_dirname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define dirname to an innocuous variant, in case <limits.h> declares dirname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dirname innocuous_dirname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dirname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dirname

/* 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 dirname ();
/* 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_dirname) || defined (__stub___dirname)
choke me
#else
char (*f) () = dirname;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dirname;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dirname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_dirname=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_dirname" >&5
echo "${ECHO_T}$ac_cv_func_dirname" >&6
if test $ac_cv_func_dirname = yes; then
  :
else
  echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
if test "${ac_cv_lib_gen_dirname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 dirname ();
int
main ()
{
dirname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gen_dirname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gen_dirname=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
if test $ac_cv_lib_gen_dirname = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

fi

fi




for ac_func in mkstemp tmpnam
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* 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 $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

##############################################################################
echo "$as_me:$LINENO: checking for crypt in -lc" >&5
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
if test "${ac_cv_lib_c_crypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 crypt ();
int
main ()
{
crypt ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_c_crypt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_c_crypt=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
if test $ac_cv_lib_c_crypt = yes; then
  ac_has_crypt=1
else
  ac_has_crypt=0
fi


if test "$ac_has_crypt" = "1" ; then
    _cv_crypt_lib=""
    echo "$as_me:$LINENO: result: -lc" >&5
echo "${ECHO_T}-lc" >&6
else
    echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypt  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 crypt ();
int
main ()
{
crypt ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_crypt_crypt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_crypt_crypt=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
if test $ac_cv_lib_crypt_crypt = yes; then
  ac_has_crypt=1
else
  ac_has_crypt=0
fi


    if test "$ac_has_crypt" = "1" ; then
        _cv_crypt_lib="-lcrypt"
    else
        { { echo "$as_me:$LINENO: error: You need to find a crypt definition" >&5
echo "$as_me: error: You need to find a crypt definition" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi
crypt_lib=$_cv_crypt_lib


##############################################################################


# checks for system services

# checks for platform-specific settings we don't yet auto-detect

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

else
  enable_static=yes
fi;

echo "$as_me:$LINENO: checking if Condor can also build a statically linked release" >&5
echo $ECHO_N "checking if Condor can also build a statically linked release... $ECHO_C" >&6
case "$os" in
  "HP-UX" )
    if test "x$_cv_opsys_vers" = "xHPUX11" ; then
    # Grrr.... libxnet.so (the XOpen interface) does NOT have a .a version
      _cv_has_static=no
    else
      _cv_has_static=yes
    fi
    ;;
  "Linux" )
    _cv_has_static=yes
    ;;
  "SunOS" )
    _cv_has_static=no
    ;;
  "Darwin" )
    _cv_has_static=no
    ;;
  "FreeBSD" )
    _cv_has_static=no
    ;;
  "AIX" )
    _cv_has_static=no
    ;;
  * )
    echo "$as_me:$LINENO: result: error" >&5
echo "${ECHO_T}error" >&6
    { { echo "$as_me:$LINENO: error: Unrecognized platform: $os" >&5
echo "$as_me: error: Unrecognized platform: $os" >&2;}
   { (exit 1); exit 1; }; }
esac
echo "$as_me:$LINENO: result: $_cv_has_static" >&5
echo "${ECHO_T}$_cv_has_static" >&6
echo "$as_me:$LINENO: checking if we are going to statically link" >&5
echo $ECHO_N "checking if we are going to statically link... $ECHO_C" >&6
if test "x$enable_static" != xno -a "$_cv_has_static" = "yes"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
   _cv_has_static=YES

else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
   _cv_has_static=NO

fi



############################################################
# What versions of what externals do we need
############################################################

#
# Check for externals, if we are going to use them
#

if test "x$ac_cv_has_externals" = "xYES" -o "x$enable_proper" = xyes ; then

{ echo "$as_me:$LINENO: determining availability of external packages" >&5
echo "$as_me: determining availability of external packages" >&6;}

#
# Define a number of _cv_has_<external>s for externals that are not
# available on all platforms
#

#-----------------------------------------------------------------
# NOTE: the checks for globus and SSL here must happen *outside*
# the check for $ac_cv_has_externals, since we want these to be
# set whether or not we're actually trying to build the externals
# or not.  for example, the test suite needs to know these things,
# even though it's being configured using --without-externals.
#-----------------------------------------------------------------
# determine whether we will be using openssl and globus on this platform.
# This logic used to be in the individual <platform>.cf files;
echo "$as_me:$LINENO: checking if openssl is supported" >&5
echo $ECHO_N "checking if openssl is supported... $ECHO_C" >&6
case "$os" in
  HP-UX ) _cv_has_openssl=no ;;
  Linux|SunOS|Darwin|FreeBSD|AIX ) _cv_has_openssl=yes ;;
  * )
    echo "$as_me:$LINENO: result: error" >&5
echo "${ECHO_T}error" >&6
    { { echo "$as_me:$LINENO: error: Unrecognized platform: $os" >&5
echo "$as_me: error: Unrecognized platform: $os" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_has_openssl" >&5
echo "${ECHO_T}$_cv_has_openssl" >&6

echo "$as_me:$LINENO: checking if gsoap is supported" >&5
echo $ECHO_N "checking if gsoap is supported... $ECHO_C" >&6
case "$os" in
  HP-UX )
	if  test "x$_cv_sysname" = "xhp_ux113" ; then
  	   _cv_has_gsoap=no
	else
  	   _cv_has_gsoap=yes
	fi
	;;
  Linux|SunOS|Darwin|FreeBSD|AIX ) _cv_has_gsoap=yes ;;
  * )
    echo "$as_me:$LINENO: result: error" >&5
echo "${ECHO_T}error" >&6
    { { echo "$as_me:$LINENO: error: Unrecognized platform: $os" >&5
echo "$as_me: error: Unrecognized platform: $os" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_has_gsoap" >&5
echo "${ECHO_T}$_cv_has_gsoap" >&6

echo "$as_me:$LINENO: checking if krb5 is supported" >&5
echo $ECHO_N "checking if krb5 is supported... $ECHO_C" >&6
case "$os-$_cv_arch" in
  HP-UX-*|Linux-ALPHA|Linux-CONDOR_PPC ) _cv_has_krb5=no ;;
  Linux-*|SunOS-*|Darwin-*|FreeBSD-*|AIX-* ) _cv_has_krb5=yes ;;
  * )
    echo "$as_me:$LINENO: result: error" >&5
echo "${ECHO_T}error" >&6
    { { echo "$as_me:$LINENO: error: Unrecognized platform: $os-$_cv_arch" >&5
echo "$as_me: error: Unrecognized platform: $os-$_cv_arch" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac
echo "$as_me:$LINENO: result: $_cv_has_krb5" >&5
echo "${ECHO_T}$_cv_has_krb5" >&6

echo "$as_me:$LINENO: checking if classads is supported" >&5
echo $ECHO_N "checking if classads is supported... $ECHO_C" >&6
# currently, all platforms support the classad external
_cv_has_classads=yes
echo "$as_me:$LINENO: result: $_cv_has_classads" >&5
echo "${ECHO_T}$_cv_has_classads" >&6


#
# Figure out if I need to use the linuclibcheaders package to build glibc.
#

# assume no, unless I discover otherwise.
llh_use=NO

# if this is a linux machine, determine if I need the linux libc headers to
# build glibc
if test "x$os" = "xLinux" ; then

	llh_use=YES

	case "x$_cv_kernel_rev" in
		"x2.6.3" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.3.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.3.0"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.3.0/build_linuxlibcheaders-2.6.3.0"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.3.0" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.3.0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.3.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		"x2.6.4" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.4.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.4.0"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.4.0/build_linuxlibcheaders-2.6.4.0"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.4.0" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.4.0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.4.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		"x2.6.5" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.5.2"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.5.2"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.5.2/build_linuxlibcheaders-2.6.5.2"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.5.2" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.5.2... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.5.2"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		"x2.6.6" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.6.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.6.0"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.6.0/build_linuxlibcheaders-2.6.6.0"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.6.0" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.6.0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.6.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		"x2.6.7" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.7.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.7.0"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.7.0/build_linuxlibcheaders-2.6.7.0"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.7.0" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.7.0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.7.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		"x2.6.8" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.8.1"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.8.1"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.8.1/build_linuxlibcheaders-2.6.8.1"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.8.1" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.8.1... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.8.1"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		"x2.6.9" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.9.1"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.9.1"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.9.1/build_linuxlibcheaders-2.6.9.1"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.9.1" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.9.1... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.9.1"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		"x2.6.10" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.10.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.10.0"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.10.0/build_linuxlibcheaders-2.6.10.0"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.10.0" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.10.0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.10.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		"x2.6.11" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.11.2"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.11.2"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.11.2/build_linuxlibcheaders-2.6.11.2"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.11.2" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.11.2... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.11.2"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		"x2.6.12" )
			if test "x$_cv_has_linuxlibcheaders" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              cv_ext_linuxlibcheaders=no
fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.12.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

else

# Check whether --with-linuxlibcheaders or --without-linuxlibcheaders was given.
if test "${with_linuxlibcheaders+set}" = set; then
  withval="$with_linuxlibcheaders"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_linuxlibcheaders=no
else
              _bundle="$ac_cv_externals/bundles/linuxlibcheaders"
 _bundle_version="$ac_cv_externals/bundles/linuxlibcheaders/2.6.12.0"
 _bundle_build="$ac_cv_externals/bundles/linuxlibcheaders/2.6.12.0/build_linuxlibcheaders-2.6.12.0"
 echo "$as_me:$LINENO: checking for linuxlibcheaders-2.6.12.0" >&5
echo $ECHO_N "checking for linuxlibcheaders-2.6.12.0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_linuxlibcheaders=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_linuxlibcheaders=no
fi

fi

   echo "$as_me:$LINENO: checking for linuxlibcheaders" >&5
echo $ECHO_N "checking for linuxlibcheaders... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_linuxlibcheaders" >&5
echo "${ECHO_T}$cv_ext_linuxlibcheaders" >&6
   # if the external is not available
   if test "x$cv_ext_linuxlibcheaders" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: linuxlibcheaders is required
See \`config.log' for more details." >&5
echo "$as_me: error: linuxlibcheaders is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_linuxlibcheaders_version="linuxlibcheaders-2.6.12.0"
      ext_linuxlibcheaders_version=$_cv_ext_linuxlibcheaders_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_LINUXLIBCHEADERS 1
_ACEOF

fi

fi

fi

			;;
		*)
			llh_use=NO
			;;
	esac
fi

# Tell the build system I want to use this module since it very well might
# not always be defined or desired to be defined.
if test "x$llh_use" = "xYES" ; then
	want_ext_linuxlibcheaders=YES

else
	want_ext_linuxlibcheaders=NO

  	ext_linuxlibcheaders_version=UNUSED

fi


# For now, we hardcode that non-i386/X86_64 platforms are clipped and don't
# need an external glibc for anything...
if test "x$_cv_libc_kind" = "xGLIBC" -a \( "x$_cv_arch" = "xI386" -o "x$_cv_arch" = "xX86_64" \) ; then

  including_glibc_ext=YES
  _cv_libc_full_vers="$_cv_libc_major.$_cv_libc_minor.$_cv_libc_patch"
  case "$_cv_libc_full_vers" in
  "2.3.2" )
    # the glibc 2.3.2 from redhat's source rpms are very different than the
	# stock 2.3.2 you can download off of the web.
	# This external is used both for x86 and x86_64
    if test "x$_cv_has_glibc" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: glibc required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: glibc required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              cv_ext_glibc=no
fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.3.2.27.9.7"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

else

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              _bundle="$ac_cv_externals/bundles/glibc"
 _bundle_version="$ac_cv_externals/bundles/glibc/2.3.2.27.9.7"
 _bundle_build="$ac_cv_externals/bundles/glibc/2.3.2.27.9.7/build_glibc-2.3.2.27.9.7"
 echo "$as_me:$LINENO: checking for glibc-2.3.2.27.9.7" >&5
echo $ECHO_N "checking for glibc-2.3.2.27.9.7... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_glibc=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_glibc=no
fi

fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.3.2.27.9.7"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

fi

fi

    ;;
  "2.3.4" )
	# I'm using this here to avoid a full port of Condor to the centos 4 OS.
	# XXX Also, one must use gcc 3.2.2 instead of as shipped gcc 3.4.4 to
	# compile this package.
    if test "x$_cv_has_glibc" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: glibc required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: glibc required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              cv_ext_glibc=no
fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.3.2.27.9.7"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

else

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              _bundle="$ac_cv_externals/bundles/glibc"
 _bundle_version="$ac_cv_externals/bundles/glibc/2.3.2.27.9.7"
 _bundle_build="$ac_cv_externals/bundles/glibc/2.3.2.27.9.7/build_glibc-2.3.2.27.9.7"
 echo "$as_me:$LINENO: checking for glibc-2.3.2.27.9.7" >&5
echo $ECHO_N "checking for glibc-2.3.2.27.9.7... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_glibc=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_glibc=no
fi

fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.3.2.27.9.7"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

fi

fi

    ;;
  "2.3.6" )
    if test "x$_cv_has_glibc" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: glibc required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: glibc required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              cv_ext_glibc=no
fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.3.2.27.9.7"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

else

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              _bundle="$ac_cv_externals/bundles/glibc"
 _bundle_version="$ac_cv_externals/bundles/glibc/2.3.2.27.9.7"
 _bundle_build="$ac_cv_externals/bundles/glibc/2.3.2.27.9.7/build_glibc-2.3.2.27.9.7"
 echo "$as_me:$LINENO: checking for glibc-2.3.2.27.9.7" >&5
echo $ECHO_N "checking for glibc-2.3.2.27.9.7... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_glibc=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_glibc=no
fi

fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.3.2.27.9.7"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

fi

fi

    ;;
  "2.5." ) # RHEL 5.0/5.1
    if test "x$_cv_arch" = "xI386" ; then
       if test "x$_cv_has_glibc" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: glibc required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: glibc required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              cv_ext_glibc=no
fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.5-20061008T1257-p0"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

else

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              _bundle="$ac_cv_externals/bundles/glibc"
 _bundle_version="$ac_cv_externals/bundles/glibc/2.5-20061008T1257-p0"
 _bundle_build="$ac_cv_externals/bundles/glibc/2.5-20061008T1257-p0/build_glibc-2.5-20061008T1257-p0"
 echo "$as_me:$LINENO: checking for glibc-2.5-20061008T1257-p0" >&5
echo $ECHO_N "checking for glibc-2.5-20061008T1257-p0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_glibc=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_glibc=no
fi

fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.5-20061008T1257-p0"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

fi

fi

	else # x86_64
       if test "x$_cv_has_glibc" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: glibc required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: glibc required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              cv_ext_glibc=no
fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.5-20061008T1257-x86_64-p0"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

else

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              _bundle="$ac_cv_externals/bundles/glibc"
 _bundle_version="$ac_cv_externals/bundles/glibc/2.5-20061008T1257-x86_64-p0"
 _bundle_build="$ac_cv_externals/bundles/glibc/2.5-20061008T1257-x86_64-p0/build_glibc-2.5-20061008T1257-x86_64-p0"
 echo "$as_me:$LINENO: checking for glibc-2.5-20061008T1257-x86_64-p0" >&5
echo $ECHO_N "checking for glibc-2.5-20061008T1257-x86_64-p0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_glibc=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_glibc=no
fi

fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.5-20061008T1257-x86_64-p0"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

fi

fi

	fi
    ;;
  "2.6." ) # F7 uses glibc 2.6-4
    including_glibc_ext=NO
    ;;
  "2.7." )
 	 # F8 uses glibc 2.7-2
	 # debian uses glibc 2.7-18
    if test "x$_cv_arch" = "xI386" ; then
      if test "x$_cv_has_glibc" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: glibc required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: glibc required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              cv_ext_glibc=no
fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.7-18"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

else

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              _bundle="$ac_cv_externals/bundles/glibc"
 _bundle_version="$ac_cv_externals/bundles/glibc/2.7-18"
 _bundle_build="$ac_cv_externals/bundles/glibc/2.7-18/build_glibc-2.7-18"
 echo "$as_me:$LINENO: checking for glibc-2.7-18" >&5
echo $ECHO_N "checking for glibc-2.7-18... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_glibc=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_glibc=no
fi

fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.7-18"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

fi

fi

    else # x86_64
      if test "x$_cv_has_glibc" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: glibc required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: glibc required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              cv_ext_glibc=no
fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.7-18-x86_64"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

else

# Check whether --with-glibc or --without-glibc was given.
if test "${with_glibc+set}" = set; then
  withval="$with_glibc"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_glibc=no
else
              _bundle="$ac_cv_externals/bundles/glibc"
 _bundle_version="$ac_cv_externals/bundles/glibc/2.7-18-x86_64"
 _bundle_build="$ac_cv_externals/bundles/glibc/2.7-18-x86_64/build_glibc-2.7-18-x86_64"
 echo "$as_me:$LINENO: checking for glibc-2.7-18-x86_64" >&5
echo $ECHO_N "checking for glibc-2.7-18-x86_64... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_glibc=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_glibc=no
fi

fi

   echo "$as_me:$LINENO: checking for glibc" >&5
echo $ECHO_N "checking for glibc... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_glibc" >&5
echo "${ECHO_T}$cv_ext_glibc" >&6
   # if the external is not available
   if test "x$cv_ext_glibc" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: glibc is required
See \`config.log' for more details." >&5
echo "$as_me: error: glibc is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_glibc_version="glibc-2.7-18-x86_64"
      ext_glibc_version=$_cv_ext_glibc_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLIBC 1
_ACEOF

fi

fi

fi

    fi
    ;;
  * )
    if test "x$enable_glibc_version_check" = "xyes"; then
      echo "$as_me:$LINENO: checking glibc" >&5
echo $ECHO_N "checking glibc... $ECHO_C" >&6
      echo "$as_me:$LINENO: result: ERROR" >&5
echo "${ECHO_T}ERROR" >&6
      { { echo "$as_me:$LINENO: error: Condor does NOT know what glibc external to use with glibc-$_cv_libc_full_vers" >&5
echo "$as_me: error: Condor does NOT know what glibc external to use with glibc-$_cv_libc_full_vers" >&2;}
   { (exit 1); exit 1; }; }
    else
      echo "$as_me:$LINENO: checking glibc" >&5
echo $ECHO_N "checking glibc... $ECHO_C" >&6
      echo "$as_me:$LINENO: result: glibc-$_cv_libc_full_vers (UNSUPPORTED)" >&5
echo "${ECHO_T}glibc-$_cv_libc_full_vers (UNSUPPORTED)" >&6
      including_glibc_ext=NO
    fi
  esac
  if test "x$including_glibc_ext" = "xYES"; then
    want_ext_glibc=YES

  else
    want_ext_glibc=NO

    ext_glibc_version=UNUSED

  fi
else
  want_ext_glibc=NO

  ext_glibc_version=UNUSED

fi

# Google's coredumper is Linux specific and only officially supports
# a few architectures.
if test "$os" = "Linux" -a \( "x$_cv_arch" = "xI386" -o "x$_cv_arch" = "xX86_64" \); then
    if test "x$_cv_has_coredumper" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: coredumper required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: coredumper required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for coredumper" >&5
echo $ECHO_N "checking for coredumper... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-coredumper or --without-coredumper was given.
if test "${with_coredumper+set}" = set; then
  withval="$with_coredumper"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_coredumper=no
else
              cv_ext_coredumper=no
fi

   echo "$as_me:$LINENO: checking for coredumper" >&5
echo $ECHO_N "checking for coredumper... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_coredumper" >&5
echo "${ECHO_T}$cv_ext_coredumper" >&6
   # if the external is not available
   if test "x$cv_ext_coredumper" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: coredumper is required
See \`config.log' for more details." >&5
echo "$as_me: error: coredumper is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_coredumper_version="coredumper-0.2"
      ext_coredumper_version=$_cv_ext_coredumper_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_COREDUMPER 1
_ACEOF

fi

else

# Check whether --with-coredumper or --without-coredumper was given.
if test "${with_coredumper+set}" = set; then
  withval="$with_coredumper"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_coredumper=no
else
              _bundle="$ac_cv_externals/bundles/coredumper"
 _bundle_version="$ac_cv_externals/bundles/coredumper/0.2"
 _bundle_build="$ac_cv_externals/bundles/coredumper/0.2/build_coredumper-0.2"
 echo "$as_me:$LINENO: checking for coredumper-0.2" >&5
echo $ECHO_N "checking for coredumper-0.2... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_coredumper=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_coredumper=no
fi

fi

   echo "$as_me:$LINENO: checking for coredumper" >&5
echo $ECHO_N "checking for coredumper... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_coredumper" >&5
echo "${ECHO_T}$cv_ext_coredumper" >&6
   # if the external is not available
   if test "x$cv_ext_coredumper" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: coredumper is required
See \`config.log' for more details." >&5
echo "$as_me: error: coredumper is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_coredumper_version="coredumper-0.2"
      ext_coredumper_version=$_cv_ext_coredumper_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_COREDUMPER 1
_ACEOF

fi

fi

fi

	want_coredumper=YES

else
	echo "$as_me:$LINENO: checking coredumper" >&5
echo $ECHO_N "checking coredumper... $ECHO_C" >&6
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	want_coredumper=NO

fi

# Build drmaa on any platform with pthreads available, except for the following
# platforms where the build is known to fail
if test "x$_cv_sysname" != "xppc_aix52" -a "x$_cv_linux_distro" != "xRH72" -a  "x$_cv_sysname" != "xsun4x_58" -a "x$_cv_sysname" != "xsun4x_59" -a "x$_cv_sysname" != "xalpha_dux51" -a "x$_cv_sysname" != "xhp_ux113" ; then
  if test "x$_cv_sysname" = "xppc_macosx" -o "x$ac_pthreads" = "xyes"; then
   if test "x$_cv_has_drmaa" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: drmaa required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: drmaa required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for drmaa" >&5
echo $ECHO_N "checking for drmaa... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-drmaa or --without-drmaa was given.
if test "${with_drmaa+set}" = set; then
  withval="$with_drmaa"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_drmaa=no
else
              cv_ext_drmaa=no
fi

   echo "$as_me:$LINENO: checking for drmaa" >&5
echo $ECHO_N "checking for drmaa... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_drmaa" >&5
echo "${ECHO_T}$cv_ext_drmaa" >&6
   # if the external is not available
   if test "x$cv_ext_drmaa" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: drmaa is required
See \`config.log' for more details." >&5
echo "$as_me: error: drmaa is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_drmaa_version="drmaa-1.5.1"
      ext_drmaa_version=$_cv_ext_drmaa_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_DRMAA 1
_ACEOF

fi

else

# Check whether --with-drmaa or --without-drmaa was given.
if test "${with_drmaa+set}" = set; then
  withval="$with_drmaa"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_drmaa=no
else
              _bundle="$ac_cv_externals/bundles/drmaa"
 _bundle_version="$ac_cv_externals/bundles/drmaa/1.5.1"
 _bundle_build="$ac_cv_externals/bundles/drmaa/1.5.1/build_drmaa-1.5.1"
 echo "$as_me:$LINENO: checking for drmaa-1.5.1" >&5
echo $ECHO_N "checking for drmaa-1.5.1... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_drmaa=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_drmaa=no
fi

fi

   echo "$as_me:$LINENO: checking for drmaa" >&5
echo $ECHO_N "checking for drmaa... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_drmaa" >&5
echo "${ECHO_T}$cv_ext_drmaa" >&6
   # if the external is not available
   if test "x$cv_ext_drmaa" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: drmaa is required
See \`config.log' for more details." >&5
echo "$as_me: error: drmaa is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_drmaa_version="drmaa-1.5.1"
      ext_drmaa_version=$_cv_ext_drmaa_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_DRMAA 1
_ACEOF

fi

fi

fi

  fi
fi

if test "x$_cv_has_krb5" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: krb5 required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: krb5 required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for krb5" >&5
echo $ECHO_N "checking for krb5... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-krb5 or --without-krb5 was given.
if test "${with_krb5+set}" = set; then
  withval="$with_krb5"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_krb5=no
else
              if test "x$_dir" != x; then
  _ldflags_save="$LDFLAGS"
     _cflags_save="$CFLAGS"
     _ldflags="-L$_dir/lib"
     _cflags="-I$_dir/include"
     LDFLAGS="$LDFLAGS -L$_dir/lib"
     CFLAGS="$CFLAGS -I$_dir/include"
fi

     _libs=
     _failure=
     echo "$as_me:$LINENO: checking for krb5_free_principal in -lkrb5" >&5
echo $ECHO_N "checking for krb5_free_principal in -lkrb5... $ECHO_C" >&6
if test "${ac_cv_lib_krb5_krb5_free_principal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lkrb5  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 krb5_free_principal ();
int
main ()
{
krb5_free_principal ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_krb5_krb5_free_principal=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_krb5_krb5_free_principal=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_free_principal" >&5
echo "${ECHO_T}$ac_cv_lib_krb5_krb5_free_principal" >&6
if test $ac_cv_lib_krb5_krb5_free_principal = yes; then
  _libs="-lkrb5 $_libs"
else
  _failure="krb5 $_failure"
fi

     if test "x$_failure" != x; then
  cv_ext_krb5=no
        LDFLAGS=$_ldflags_save
        CFLAGS=$_cflags_save
        { echo "$as_me:$LINENO: WARNING: krb5: could not find $_failure" >&5
echo "$as_me: WARNING: krb5: could not find $_failure" >&2;}
else
  LIBS="$LIBS $_libs"
        cv_ext_krb5=yes
fi

fi

   echo "$as_me:$LINENO: checking for krb5" >&5
echo $ECHO_N "checking for krb5... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_krb5" >&5
echo "${ECHO_T}$cv_ext_krb5" >&6
   # if the external is not available
   if test "x$cv_ext_krb5" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: krb5 is required
See \`config.log' for more details." >&5
echo "$as_me: error: krb5 is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_krb5_version="krb5-1.4.3-p0"
      ext_krb5_version=$_cv_ext_krb5_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_KRB5 1
_ACEOF

fi

else

# Check whether --with-krb5 or --without-krb5 was given.
if test "${with_krb5+set}" = set; then
  withval="$with_krb5"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_krb5=no
else
              _bundle="$ac_cv_externals/bundles/krb5"
 _bundle_version="$ac_cv_externals/bundles/krb5/1.4.3-p0"
 _bundle_build="$ac_cv_externals/bundles/krb5/1.4.3-p0/build_krb5-1.4.3-p0"
 echo "$as_me:$LINENO: checking for krb5-1.4.3-p0" >&5
echo $ECHO_N "checking for krb5-1.4.3-p0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_krb5=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_krb5=no
fi

fi

   echo "$as_me:$LINENO: checking for krb5" >&5
echo $ECHO_N "checking for krb5... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_krb5" >&5
echo "${ECHO_T}$cv_ext_krb5" >&6
   # if the external is not available
   if test "x$cv_ext_krb5" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: krb5 is required
See \`config.log' for more details." >&5
echo "$as_me: error: krb5 is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_krb5_version="krb5-1.4.3-p0"
      ext_krb5_version=$_cv_ext_krb5_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_KRB5 1
_ACEOF

fi

fi

fi


# CHECK_EXTERNAL([openssl],[0.9.8h],[soft])
if test "x$_cv_has_openssl" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: openssl required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: openssl required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for openssl" >&5
echo $ECHO_N "checking for openssl... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
  withval="$with_openssl"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_openssl=no
else
              if test "x$_dir" != x; then
  _ldflags_save="$LDFLAGS"
     _cflags_save="$CFLAGS"
     _ldflags="-L$_dir/lib"
     _cflags="-I$_dir/include"
     LDFLAGS="$LDFLAGS -L$_dir/lib"
     CFLAGS="$CFLAGS -I$_dir/include"
fi

     _libs=
     _failure=
     echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lssl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 SSL_connect ();
int
main ()
{
SSL_connect ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_ssl_SSL_connect=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ssl_SSL_connect=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
if test $ac_cv_lib_ssl_SSL_connect = yes; then
  _libs="-lssl $_libs"
else
  _failure="ssl $_failure"
fi
echo "$as_me:$LINENO: checking for BF_encrypt in -lcrypto" >&5
echo $ECHO_N "checking for BF_encrypt in -lcrypto... $ECHO_C" >&6
if test "${ac_cv_lib_crypto_BF_encrypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypto  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 BF_encrypt ();
int
main ()
{
BF_encrypt ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_crypto_BF_encrypt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_crypto_BF_encrypt=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_BF_encrypt" >&5
echo "${ECHO_T}$ac_cv_lib_crypto_BF_encrypt" >&6
if test $ac_cv_lib_crypto_BF_encrypt = yes; then
  _libs="-lcrypto $_libs"
else
  _failure="crypto $_failure"
fi

     if test "x$_failure" != x; then
  cv_ext_openssl=no
        LDFLAGS=$_ldflags_save
        CFLAGS=$_cflags_save
        { echo "$as_me:$LINENO: WARNING: openssl: could not find $_failure" >&5
echo "$as_me: WARNING: openssl: could not find $_failure" >&2;}
else
  LIBS="$LIBS $_libs"
        cv_ext_openssl=yes
fi

fi

   echo "$as_me:$LINENO: checking for openssl" >&5
echo $ECHO_N "checking for openssl... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_openssl" >&5
echo "${ECHO_T}$cv_ext_openssl" >&6
   # if the external is not available
   if test "x$cv_ext_openssl" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: openssl is required
See \`config.log' for more details." >&5
echo "$as_me: error: openssl is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_openssl_version="openssl-0.9.8h"
      ext_openssl_version=$_cv_ext_openssl_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_OPENSSL 1
_ACEOF

fi

else

# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
  withval="$with_openssl"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_openssl=no
else
              _bundle="$ac_cv_externals/bundles/openssl"
 _bundle_version="$ac_cv_externals/bundles/openssl/0.9.8h"
 _bundle_build="$ac_cv_externals/bundles/openssl/0.9.8h/build_openssl-0.9.8h"
 echo "$as_me:$LINENO: checking for openssl-0.9.8h" >&5
echo $ECHO_N "checking for openssl-0.9.8h... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_openssl=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_openssl=no
fi

fi

   echo "$as_me:$LINENO: checking for openssl" >&5
echo $ECHO_N "checking for openssl... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_openssl" >&5
echo "${ECHO_T}$cv_ext_openssl" >&6
   # if the external is not available
   if test "x$cv_ext_openssl" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: openssl is required
See \`config.log' for more details." >&5
echo "$as_me: error: openssl is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_openssl_version="openssl-0.9.8h"
      ext_openssl_version=$_cv_ext_openssl_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_OPENSSL 1
_ACEOF

fi

fi

fi


if test "x$_cv_ext_openssl_version" != x; then
  # If we have openssl, we define HAVE_OPENSSL_SSL_H (meaning we
  # have ssl.h) to make gsoap happy

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENSSL_SSL_H 1
_ACEOF


  # Globus 4.2.0 is dependent on an external version of openssl
  if test "x$_cv_has_globus" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: globus required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: globus required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for globus" >&5
echo $ECHO_N "checking for globus... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-globus or --without-globus was given.
if test "${with_globus+set}" = set; then
  withval="$with_globus"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_globus=no
else
              cv_ext_globus=no
fi

   echo "$as_me:$LINENO: checking for globus" >&5
echo $ECHO_N "checking for globus... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_globus" >&5
echo "${ECHO_T}$cv_ext_globus" >&6
   # if the external is not available
   if test "x$cv_ext_globus" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: globus is required
See \`config.log' for more details." >&5
echo "$as_me: error: globus is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_globus_version="globus-4.2.0"
      ext_globus_version=$_cv_ext_globus_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLOBUS 1
_ACEOF

fi

else

# Check whether --with-globus or --without-globus was given.
if test "${with_globus+set}" = set; then
  withval="$with_globus"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_globus=no
else
              _bundle="$ac_cv_externals/bundles/globus"
 _bundle_version="$ac_cv_externals/bundles/globus/4.2.0"
 _bundle_build="$ac_cv_externals/bundles/globus/4.2.0/build_globus-4.2.0"
 echo "$as_me:$LINENO: checking for globus-4.2.0" >&5
echo $ECHO_N "checking for globus-4.2.0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_globus=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_globus=no
fi

fi

   echo "$as_me:$LINENO: checking for globus" >&5
echo $ECHO_N "checking for globus... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_globus" >&5
echo "${ECHO_T}$cv_ext_globus" >&6
   # if the external is not available
   if test "x$cv_ext_globus" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: globus is required
See \`config.log' for more details." >&5
echo "$as_me: error: globus is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_globus_version="globus-4.2.0"
      ext_globus_version=$_cv_ext_globus_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GLOBUS 1
_ACEOF

fi

fi

fi

fi

if test -z "$_cv_ext_globus_version"; then
  _cv_has_globus=no
else
  _cv_has_globus=yes
fi

_cv_has_unicoregahp=$_cv_has_globus
if test "x$_cv_has_unicoregahp" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: unicoregahp required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: unicoregahp required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for unicoregahp" >&5
echo $ECHO_N "checking for unicoregahp... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-unicoregahp or --without-unicoregahp was given.
if test "${with_unicoregahp+set}" = set; then
  withval="$with_unicoregahp"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_unicoregahp=no
else
              cv_ext_unicoregahp=no
fi

   echo "$as_me:$LINENO: checking for unicoregahp" >&5
echo $ECHO_N "checking for unicoregahp... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_unicoregahp" >&5
echo "${ECHO_T}$cv_ext_unicoregahp" >&6
   # if the external is not available
   if test "x$cv_ext_unicoregahp" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: unicoregahp is required
See \`config.log' for more details." >&5
echo "$as_me: error: unicoregahp is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_unicoregahp_version="unicoregahp-1.2.0"
      ext_unicoregahp_version=$_cv_ext_unicoregahp_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_UNICOREGAHP 1
_ACEOF

fi

else

# Check whether --with-unicoregahp or --without-unicoregahp was given.
if test "${with_unicoregahp+set}" = set; then
  withval="$with_unicoregahp"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_unicoregahp=no
else
              _bundle="$ac_cv_externals/bundles/unicoregahp"
 _bundle_version="$ac_cv_externals/bundles/unicoregahp/1.2.0"
 _bundle_build="$ac_cv_externals/bundles/unicoregahp/1.2.0/build_unicoregahp-1.2.0"
 echo "$as_me:$LINENO: checking for unicoregahp-1.2.0" >&5
echo $ECHO_N "checking for unicoregahp-1.2.0... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_unicoregahp=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_unicoregahp=no
fi

fi

   echo "$as_me:$LINENO: checking for unicoregahp" >&5
echo $ECHO_N "checking for unicoregahp... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_unicoregahp" >&5
echo "${ECHO_T}$cv_ext_unicoregahp" >&6
   # if the external is not available
   if test "x$cv_ext_unicoregahp" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: unicoregahp is required
See \`config.log' for more details." >&5
echo "$as_me: error: unicoregahp is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_unicoregahp_version="unicoregahp-1.2.0"
      ext_unicoregahp_version=$_cv_ext_unicoregahp_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_UNICOREGAHP 1
_ACEOF

fi

fi

fi


if test "x$CLIPPED" = xyes; then
  _cv_zlib_requirement=soft
else
  _cv_zlib_requirement=hard
fi
if test "x$_cv_has_zlib" = xno; then
  if test "x$_cv_zlib_requirement" = xhard; then
  { { echo "$as_me:$LINENO: error: zlib required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: zlib required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for zlib" >&5
echo $ECHO_N "checking for zlib... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-zlib or --without-zlib was given.
if test "${with_zlib+set}" = set; then
  withval="$with_zlib"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "x$_cv_zlib_requirement" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "x$_cv_zlib_requirement" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_zlib=no
else
              if test "x$_dir" != x; then
  _ldflags_save="$LDFLAGS"
     _cflags_save="$CFLAGS"
     _ldflags="-L$_dir/lib"
     _cflags="-I$_dir/include"
     LDFLAGS="$LDFLAGS -L$_dir/lib"
     CFLAGS="$CFLAGS -I$_dir/include"
fi

     _libs=
     _failure=
     echo "$as_me:$LINENO: checking for deflate in -lz" >&5
echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
if test "${ac_cv_lib_z_deflate+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 deflate ();
int
main ()
{
deflate ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_z_deflate=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_z_deflate=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
if test $ac_cv_lib_z_deflate = yes; then
  _libs="-lz $_libs"
else
  _failure="z $_failure"
fi

     if test "x$_failure" != x; then
  cv_ext_zlib=no
        LDFLAGS=$_ldflags_save
        CFLAGS=$_cflags_save
        { echo "$as_me:$LINENO: WARNING: zlib: could not find $_failure" >&5
echo "$as_me: WARNING: zlib: could not find $_failure" >&2;}
else
  LIBS="$LIBS $_libs"
        cv_ext_zlib=yes
fi

fi

   echo "$as_me:$LINENO: checking for zlib" >&5
echo $ECHO_N "checking for zlib... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_zlib" >&5
echo "${ECHO_T}$cv_ext_zlib" >&6
   # if the external is not available
   if test "x$cv_ext_zlib" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: zlib is required
See \`config.log' for more details." >&5
echo "$as_me: error: zlib is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_zlib_version="zlib-1.2.3"
      ext_zlib_version=$_cv_ext_zlib_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_ZLIB 1
_ACEOF

fi

else

# Check whether --with-zlib or --without-zlib was given.
if test "${with_zlib+set}" = set; then
  withval="$with_zlib"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "x$_cv_zlib_requirement" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "x$_cv_zlib_requirement" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_zlib=no
else
              _bundle="$ac_cv_externals/bundles/zlib"
 _bundle_version="$ac_cv_externals/bundles/zlib/1.2.3"
 _bundle_build="$ac_cv_externals/bundles/zlib/1.2.3/build_zlib-1.2.3"
 echo "$as_me:$LINENO: checking for zlib-1.2.3" >&5
echo $ECHO_N "checking for zlib-1.2.3... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_zlib=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_zlib=no
fi

fi

   echo "$as_me:$LINENO: checking for zlib" >&5
echo $ECHO_N "checking for zlib... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_zlib" >&5
echo "${ECHO_T}$cv_ext_zlib" >&6
   # if the external is not available
   if test "x$cv_ext_zlib" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: zlib is required
See \`config.log' for more details." >&5
echo "$as_me: error: zlib is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_zlib_version="zlib-1.2.3"
      ext_zlib_version=$_cv_ext_zlib_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_ZLIB 1
_ACEOF

fi

fi

fi


if test "x$_cv_has_classads" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: classads required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: classads required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for classads" >&5
echo $ECHO_N "checking for classads... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-classads or --without-classads was given.
if test "${with_classads+set}" = set; then
  withval="$with_classads"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_classads=no
else
              # This REALLY should test for headers, like most checks...
               if test "x$_dir" != x; then
  _ldflags_save="$LDFLAGS"
     _cflags_save="$CFLAGS"
     _ldflags="-L$_dir/lib"
     _cflags="-I$_dir/include"
     LDFLAGS="$LDFLAGS -L$_dir/lib"
     CFLAGS="$CFLAGS -I$_dir/include"
fi

     _libs=
     _failure=
     echo "$as_me:$LINENO: checking for cclassad_create in -lclassad" >&5
echo $ECHO_N "checking for cclassad_create in -lclassad... $ECHO_C" >&6
if test "${ac_cv_lib_classad_cclassad_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lclassad  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 cclassad_create ();
int
main ()
{
cclassad_create ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_classad_cclassad_create=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_classad_cclassad_create=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_classad_cclassad_create" >&5
echo "${ECHO_T}$ac_cv_lib_classad_cclassad_create" >&6
if test $ac_cv_lib_classad_cclassad_create = yes; then
  _libs="-lclassad $_libs"
else
  _failure="classad $_failure"
fi

     if test "x$_failure" != x; then
  cv_ext_classads=no
        LDFLAGS=$_ldflags_save
        CFLAGS=$_cflags_save
        { echo "$as_me:$LINENO: WARNING: classads: could not find $_failure" >&5
echo "$as_me: WARNING: classads: could not find $_failure" >&2;}
else
  LIBS="$LIBS $_libs"
        cv_ext_classads=yes
fi

fi

   echo "$as_me:$LINENO: checking for classads" >&5
echo $ECHO_N "checking for classads... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_classads" >&5
echo "${ECHO_T}$cv_ext_classads" >&6
   # if the external is not available
   if test "x$cv_ext_classads" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: classads is required
See \`config.log' for more details." >&5
echo "$as_me: error: classads is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_classads_version="classads-1.0.2"
      ext_classads_version=$_cv_ext_classads_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_CLASSADS 1
_ACEOF

fi

else

# Check whether --with-classads or --without-classads was given.
if test "${with_classads+set}" = set; then
  withval="$with_classads"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_classads=no
else
              _bundle="$ac_cv_externals/bundles/classads"
 _bundle_version="$ac_cv_externals/bundles/classads/1.0.2"
 _bundle_build="$ac_cv_externals/bundles/classads/1.0.2/build_classads-1.0.2"
 echo "$as_me:$LINENO: checking for classads-1.0.2" >&5
echo $ECHO_N "checking for classads-1.0.2... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_classads=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_classads=no
fi

fi

   echo "$as_me:$LINENO: checking for classads" >&5
echo $ECHO_N "checking for classads... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_classads" >&5
echo "${ECHO_T}$cv_ext_classads" >&6
   # if the external is not available
   if test "x$cv_ext_classads" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: classads is required
See \`config.log' for more details." >&5
echo "$as_me: error: classads is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_classads_version="classads-1.0.2"
      ext_classads_version=$_cv_ext_classads_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_CLASSADS 1
_ACEOF

fi

fi

fi


if test "x$_cv_has_srb" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: srb required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: srb required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for srb" >&5
echo $ECHO_N "checking for srb... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-srb or --without-srb was given.
if test "${with_srb+set}" = set; then
  withval="$with_srb"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_srb=no
else
              cv_ext_srb=no
fi

   echo "$as_me:$LINENO: checking for srb" >&5
echo $ECHO_N "checking for srb... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_srb" >&5
echo "${ECHO_T}$cv_ext_srb" >&6
   # if the external is not available
   if test "x$cv_ext_srb" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: srb is required
See \`config.log' for more details." >&5
echo "$as_me: error: srb is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_srb_version="srb-3.2.1-p1"
      ext_srb_version=$_cv_ext_srb_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_SRB 1
_ACEOF

fi

else

# Check whether --with-srb or --without-srb was given.
if test "${with_srb+set}" = set; then
  withval="$with_srb"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_srb=no
else
              _bundle="$ac_cv_externals/bundles/srb"
 _bundle_version="$ac_cv_externals/bundles/srb/3.2.1-p1"
 _bundle_build="$ac_cv_externals/bundles/srb/3.2.1-p1/build_srb-3.2.1-p1"
 echo "$as_me:$LINENO: checking for srb-3.2.1-p1" >&5
echo $ECHO_N "checking for srb-3.2.1-p1... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_srb=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_srb=no
fi

fi

   echo "$as_me:$LINENO: checking for srb" >&5
echo $ECHO_N "checking for srb... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_srb" >&5
echo "${ECHO_T}$cv_ext_srb" >&6
   # if the external is not available
   if test "x$cv_ext_srb" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: srb is required
See \`config.log' for more details." >&5
echo "$as_me: error: srb is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_srb_version="srb-3.2.1-p1"
      ext_srb_version=$_cv_ext_srb_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_SRB 1
_ACEOF

fi

fi

fi


if test "x$_cv_has_pcre" = xno; then
  if test "xhard" = xhard; then
  { { echo "$as_me:$LINENO: error: pcre required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: pcre required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for pcre" >&5
echo $ECHO_N "checking for pcre... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-pcre or --without-pcre was given.
if test "${with_pcre+set}" = set; then
  withval="$with_pcre"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xhard" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xhard" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_pcre=no
else
              if test "x$_dir" != x; then
  _ldflags_save="$LDFLAGS"
     _cflags_save="$CFLAGS"
     _ldflags="-L$_dir/lib"
     _cflags="-I$_dir/include"
     LDFLAGS="$LDFLAGS -L$_dir/lib"
     CFLAGS="$CFLAGS -I$_dir/include"
fi

     _libs=
     _failure=
     echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpcre  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 pcre_compile ();
int
main ()
{
pcre_compile ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pcre_pcre_compile=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pcre_pcre_compile=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
if test $ac_cv_lib_pcre_pcre_compile = yes; then
  _libs="-lpcre $_libs"
else
  _failure="pcre $_failure"
fi

     if test "x$_failure" != x; then
  cv_ext_pcre=no
        LDFLAGS=$_ldflags_save
        CFLAGS=$_cflags_save
        { echo "$as_me:$LINENO: WARNING: pcre: could not find $_failure" >&5
echo "$as_me: WARNING: pcre: could not find $_failure" >&2;}
else
  LIBS="$LIBS $_libs"
        cv_ext_pcre=yes
fi

fi

   echo "$as_me:$LINENO: checking for pcre" >&5
echo $ECHO_N "checking for pcre... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_pcre" >&5
echo "${ECHO_T}$cv_ext_pcre" >&6
   # if the external is not available
   if test "x$cv_ext_pcre" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: pcre is required
See \`config.log' for more details." >&5
echo "$as_me: error: pcre is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_pcre_version="pcre-7.6"
      ext_pcre_version=$_cv_ext_pcre_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_PCRE 1
_ACEOF

fi

else

# Check whether --with-pcre or --without-pcre was given.
if test "${with_pcre+set}" = set; then
  withval="$with_pcre"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xhard" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xhard" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_pcre=no
else
              _bundle="$ac_cv_externals/bundles/pcre"
 _bundle_version="$ac_cv_externals/bundles/pcre/7.6"
 _bundle_build="$ac_cv_externals/bundles/pcre/7.6/build_pcre-7.6"
 echo "$as_me:$LINENO: checking for pcre-7.6" >&5
echo $ECHO_N "checking for pcre-7.6... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_pcre=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_pcre=no
fi

fi

   echo "$as_me:$LINENO: checking for pcre" >&5
echo $ECHO_N "checking for pcre... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_pcre" >&5
echo "${ECHO_T}$cv_ext_pcre" >&6
   # if the external is not available
   if test "x$cv_ext_pcre" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: pcre is required
See \`config.log' for more details." >&5
echo "$as_me: error: pcre is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_pcre_version="pcre-7.6"
      ext_pcre_version=$_cv_ext_pcre_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_PCRE 1
_ACEOF

fi

fi

fi

if test "x$cv_ext_pcre" = xyes; then


for ac_header in pcre.h pcre/pcre.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi


if test "x$os-$_cv_arch" = xLinux-I386 -a "x$_cv_linux_distro" != "xDEBIAN50" -a "x$_cv_has_globus" = xyes -a -n "$_cv_ext_classads_version"; then
  _cv_has_blahp=yes
else
  _cv_has_blahp=no
fi

echo "$as_me:$LINENO: result: $_cv_has_blahp" >&5
echo "${ECHO_T}$_cv_has_blahp" >&6
if test "x$_cv_has_blahp" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: blahp required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: blahp required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for blahp" >&5
echo $ECHO_N "checking for blahp... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-blahp or --without-blahp was given.
if test "${with_blahp+set}" = set; then
  withval="$with_blahp"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_blahp=no
else
              cv_ext_blahp=no
fi

   echo "$as_me:$LINENO: checking for blahp" >&5
echo $ECHO_N "checking for blahp... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_blahp" >&5
echo "${ECHO_T}$cv_ext_blahp" >&6
   # if the external is not available
   if test "x$cv_ext_blahp" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: blahp is required
See \`config.log' for more details." >&5
echo "$as_me: error: blahp is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_blahp_version="blahp-1.7.0-p2"
      ext_blahp_version=$_cv_ext_blahp_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_BLAHP 1
_ACEOF

fi

else

# Check whether --with-blahp or --without-blahp was given.
if test "${with_blahp+set}" = set; then
  withval="$with_blahp"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_blahp=no
else
              _bundle="$ac_cv_externals/bundles/blahp"
 _bundle_version="$ac_cv_externals/bundles/blahp/1.7.0-p2"
 _bundle_build="$ac_cv_externals/bundles/blahp/1.7.0-p2/build_blahp-1.7.0-p2"
 echo "$as_me:$LINENO: checking for blahp-1.7.0-p2" >&5
echo $ECHO_N "checking for blahp-1.7.0-p2... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_blahp=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_blahp=no
fi

fi

   echo "$as_me:$LINENO: checking for blahp" >&5
echo $ECHO_N "checking for blahp... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_blahp" >&5
echo "${ECHO_T}$cv_ext_blahp" >&6
   # if the external is not available
   if test "x$cv_ext_blahp" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: blahp is required
See \`config.log' for more details." >&5
echo "$as_me: error: blahp is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_blahp_version="blahp-1.7.0-p2"
      ext_blahp_version=$_cv_ext_blahp_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_BLAHP 1
_ACEOF

fi

fi

fi


# When --with-proper the detection of the man pages is a little
# ugly. The value added to the end of $_dir must be what
# man-current.tar.gz extracts to, ugh. The manual is a very unique
# external. -matt 083107
if test "x$_cv_has_man" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: man required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: man required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for man" >&5
echo $ECHO_N "checking for man... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-man or --without-man was given.
if test "${with_man+set}" = set; then
  withval="$with_man"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_man=no
else
              if test "x$_dir" = x; then
  _dir="../externals/bundles/man/current"
fi

                if test -f "$_dir/man-current.tar.gz"; then
  cv_ext_man=yes
else
  { echo "$as_me:$LINENO: WARNING: unable to find $_dir/man-current.tar.gz" >&5
echo "$as_me: WARNING: unable to find $_dir/man-current.tar.gz" >&2;}
                  cv_ext_man=no
fi

                man_dir=$_dir/man

fi

   echo "$as_me:$LINENO: checking for man" >&5
echo $ECHO_N "checking for man... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_man" >&5
echo "${ECHO_T}$cv_ext_man" >&6
   # if the external is not available
   if test "x$cv_ext_man" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: man is required
See \`config.log' for more details." >&5
echo "$as_me: error: man is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_man_version="man-current"
      ext_man_version=$_cv_ext_man_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_MAN 1
_ACEOF

fi

else

# Check whether --with-man or --without-man was given.
if test "${with_man+set}" = set; then
  withval="$with_man"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_man=no
else
              _bundle="$ac_cv_externals/bundles/man"
 _bundle_version="$ac_cv_externals/bundles/man/current"
 _bundle_build="$ac_cv_externals/bundles/man/current/build_man-current"
 echo "$as_me:$LINENO: checking for man-current" >&5
echo $ECHO_N "checking for man-current... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_man=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_man=no
fi

fi

   echo "$as_me:$LINENO: checking for man" >&5
echo $ECHO_N "checking for man... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_man" >&5
echo "${ECHO_T}$cv_ext_man" >&6
   # if the external is not available
   if test "x$cv_ext_man" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: man is required
See \`config.log' for more details." >&5
echo "$as_me: error: man is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_man_version="man-current"
      ext_man_version=$_cv_ext_man_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_MAN 1
_ACEOF

fi

fi

fi



# temporary hack until we can reliably build BOINC everywhere.  for
# now, just enable it manually, and pretend we've got it.  since we're
# not actually linking anything with BOINC in phase 1, we don't *need*
# the external to enable the BOINC + Backfill code paths.

cat >>confdefs.h <<\_ACEOF
#define HAVE_BACKFILL 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define HAVE_BOINC 1
_ACEOF


# GCB only matters and works if we have GNU ld...
if test x$_cv_ld_is_gnu = xyes; then
  if test "x$_cv_has_gcb" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: gcb required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: gcb required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for gcb" >&5
echo $ECHO_N "checking for gcb... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-gcb or --without-gcb was given.
if test "${with_gcb+set}" = set; then
  withval="$with_gcb"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_gcb=no
else
              cv_ext_gcb=no
fi

   echo "$as_me:$LINENO: checking for gcb" >&5
echo $ECHO_N "checking for gcb... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_gcb" >&5
echo "${ECHO_T}$cv_ext_gcb" >&6
   # if the external is not available
   if test "x$cv_ext_gcb" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: gcb is required
See \`config.log' for more details." >&5
echo "$as_me: error: gcb is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_gcb_version="gcb-1.5.6"
      ext_gcb_version=$_cv_ext_gcb_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GCB 1
_ACEOF

fi

else

# Check whether --with-gcb or --without-gcb was given.
if test "${with_gcb+set}" = set; then
  withval="$with_gcb"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_gcb=no
else
              _bundle="$ac_cv_externals/bundles/gcb"
 _bundle_version="$ac_cv_externals/bundles/gcb/1.5.6"
 _bundle_build="$ac_cv_externals/bundles/gcb/1.5.6/build_gcb-1.5.6"
 echo "$as_me:$LINENO: checking for gcb-1.5.6" >&5
echo $ECHO_N "checking for gcb-1.5.6... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_gcb=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_gcb=no
fi

fi

   echo "$as_me:$LINENO: checking for gcb" >&5
echo $ECHO_N "checking for gcb... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_gcb" >&5
echo "${ECHO_T}$cv_ext_gcb" >&6
   # if the external is not available
   if test "x$cv_ext_gcb" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: gcb is required
See \`config.log' for more details." >&5
echo "$as_me: error: gcb is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_gcb_version="gcb-1.5.6"
      ext_gcb_version=$_cv_ext_gcb_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GCB 1
_ACEOF

fi

fi

fi

fi



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

        if test "$withval" = "yes"; then
            if test -n "$ORACLE_HOME"; then
                oracle_home_dir="$ORACLE_HOME"
            else
                oracle_home_dir=""
            fi
        elif test -d "$withval"; then
            oracle_home_dir="$withval"
        else
            oracle_home_dir=""
        fi

else

        if test -n "$ORACLE_HOME"; then
            oracle_home_dir="$ORACLE_HOME"
        else
            oracle_home_dir=""
        fi


fi;


# Check whether --with-oci-include or --without-oci-include was given.
if test "${with_oci_include+set}" = set; then
  withval="$with_oci_include"
  oracle_home_include_dir="$withval"
else
  oracle_home_include_dir=""

fi;

# Check whether --with-oci-lib or --without-oci-lib was given.
if test "${with_oci_lib+set}" = set; then
  withval="$with_oci_lib"
  oracle_home_lib_dir="$withval"
else
  oracle_home_lib_dir=""

fi;

    ORACLE_OCI_CFLAGS=""
    ORACLE_OCI_LDFLAGS=""
    ORACLE_OCI_VERSION=""

                want_oracle_but_no_path="no"

    if test -n "$oracle_home_dir"; then

        if test "$oracle_home_dir" != "no" -a "$oracle_home_dir" != "yes"; then
                        oracle_include_dir="$oracle_home_dir/rdbms/public"
            oracle_lib_dir="$oracle_home_dir/lib"
        elif test "$oracle_home_dir" = "yes"; then
            want_oracle_but_no_path="yes"
        fi

    elif test -n "$oracle_home_include_dir" -o -n "$oracle_home_lib_dir"; then

        if test "$oracle_home_include_dir" != "no" -a "$oracle_home_include_dir" != "yes"; then
            oracle_include_dir="$oracle_home_include_dir"
        elif test "$oracle_home_include_dir" = "yes"; then
            want_oracle_but_no_path="yes"
        fi

        if test "$oracle_home_lib_dir" != "no" -a "$oracle_home_lib_dir" != "yes"; then
            oracle_lib_dir="$oracle_home_lib_dir"
        elif test "$oracle_home_lib_dir" = "yes"; then
            want_oracle_but_no_path="yes"
        fi
    fi

    if test "$want_oracle_but_no_path" = "yes"; then
        { echo "$as_me:$LINENO: WARNING: Oracle support is requested but no Oracle paths have been provided. \
Please, locate Oracle directories using --with-oci or \
--with-oci-include and --with-oci-lib options." >&5
echo "$as_me: WARNING: Oracle support is requested but no Oracle paths have been provided. \
Please, locate Oracle directories using --with-oci or \
--with-oci-include and --with-oci-lib options." >&2;}
    fi

                if test -n "$oracle_include_dir" -a -n "$oracle_lib_dir"; then

        saved_CPPFLAGS="$CPPFLAGS"
        CPPFLAGS="$CPPFLAGS -I$oracle_include_dir"

                        saved_LDFLAGS="$LDFLAGS"
        oci_ldflags="-L$oracle_lib_dir -locci -lclntsh"
        LDFLAGS="$LDFLAGS $oci_ldflags -lnnz10"

                                echo "$as_me:$LINENO: checking for Oracle OCI headers in $oracle_include_dir" >&5
echo $ECHO_N "checking for Oracle OCI headers in $oracle_include_dir... $ECHO_C" >&6

        ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        cat >conftest.$ac_ext <<_ACEOF

            /* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <oci.h>
int
main ()
{

#if defined(OCI_MAJOR_VERSION)
#if OCI_MAJOR_VERSION == 10 && OCI_MINOR_VERSION == 2
// Oracle 10.2 detected
#endif
#elif defined(OCI_V7_SYNTAX)
// OK, older Oracle detected
// TODO - mloskot: find better macro to check for older versions;
#else
#  error Oracle oci.h header not found
#endif


  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

            ORACLE_OCI_CFLAGS="-I$oracle_include_dir"
            oci_header_found="yes"
            echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


            oci_header_found="no"
            echo "$as_me:$LINENO: result: not found" >&5
echo "${ECHO_T}not found" >&6


fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
        ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


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

            echo "$as_me:$LINENO: checking for Oracle OCI libraries in $oracle_lib_dir" >&5
echo $ECHO_N "checking for Oracle OCI libraries in $oracle_lib_dir... $ECHO_C" >&6

            ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

            cat >conftest.$ac_ext <<_ACEOF

                /* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <oci.h>
int
main ()
{

OCIEnv* envh = 0;
OCIEnvCreate(&envh, OCI_DEFAULT, 0, 0, 0, 0, 0, 0);
if (envh) OCIHandleFree(envh, OCI_HTYPE_ENV);


  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

                ORACLE_OCI_LDFLAGS="$oci_ldflags"
                oci_lib_found="yes"
                echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                oci_lib_found="no"
                echo "$as_me:$LINENO: result: not found" >&5
echo "${ECHO_T}not found" >&6


fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
            ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        fi

        CPPFLAGS="$saved_CPPFLAGS"
        LDFLAGS="$saved_LDFLAGS"
    fi

                oracle_version_req="10.0.0"

    if test "$oci_header_found" = "yes" -a "$oci_lib_found" = "yes" -a \
        -n "$oracle_version_req"; then

        oracle_version_major=`cat $oracle_include_dir/oci.h \
                             | grep '#define.*OCI_MAJOR_VERSION.*' \
                             | sed -e 's/#define OCI_MAJOR_VERSION  *//' \
                             | sed -e 's/  *\/\*.*\*\///'`

        oracle_version_minor=`cat $oracle_include_dir/oci.h \
                             | grep '#define.*OCI_MINOR_VERSION.*' \
                             | sed -e 's/#define OCI_MINOR_VERSION  *//' \
                             | sed -e 's/  *\/\*.*\*\///'`

        echo "$as_me:$LINENO: checking if Oracle OCI version is >= $oracle_version_req" >&5
echo $ECHO_N "checking if Oracle OCI version is >= $oracle_version_req... $ECHO_C" >&6

        if test -n "$oracle_version_major" -a -n $"oracle_version_minor"; then

            ORACLE_OCI_VERSION="$oracle_version_major.$oracle_version_minor"

                                    oracle_version_req_major=`expr $oracle_version_req : '\([0-9]*\)'`
            oracle_version_req_minor=`expr $oracle_version_req : '[0-9]*\.\([0-9]*\)'`

            oracle_version_req_number=`expr $oracle_version_req_major \* 1000000 \
                                       \+ $oracle_version_req_minor \* 1000`

                        oracle_version_number=`expr $oracle_version_major \* 1000000 \
                                  \+ $oracle_version_minor \* 1000`

            oracle_version_check=`expr $oracle_version_number \>\= $oracle_version_req_number`
            if test "$oracle_version_check" = "1"; then

                oracle_version_checked="yes"
                echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

                                echo "$as_me:$LINENO: checking for Oracle version >= 10.x to use -lnnz10 flag" >&5
echo $ECHO_N "checking for Oracle version >= 10.x to use -lnnz10 flag... $ECHO_C" >&6
                oracle_nnz10_check=`expr $oracle_version_number \>\= 10 \* 1000000`
                if test "$oracle_nnz10_check" = "1"; then
                    ORACLE_OCI_LDFLAGS="$ORACLE_OCI_LDFLAGS -lnnz10"
                    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                else
                    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                fi
            else
                oracle_version_checked="no"
                echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                { { echo "$as_me:$LINENO: error: Oracle $ORACLE_OCI_VERSION found, but required version is $oracle_version_req" >&5
echo "$as_me: error: Oracle $ORACLE_OCI_VERSION found, but required version is $oracle_version_req" >&2;}
   { (exit 1); exit 1; }; }
            fi
        else
            ORACLE_OCI_VERSION="UNKNOWN"
            echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
            { echo "$as_me:$LINENO: WARNING: Oracle version unknown, probably OCI older than 10.2 is available" >&5
echo "$as_me: WARNING: Oracle version unknown, probably OCI older than 10.2 is available" >&2;}
        fi
    fi

    echo "$as_me:$LINENO: checking if Oracle support is enabled" >&5
echo $ECHO_N "checking if Oracle support is enabled... $ECHO_C" >&6

    if test "$oci_header_found" = "yes" -a "$oci_lib_found" = "yes"; then





        HAVE_ORACLE_OCI="yes"
    else
        HAVE_ORACLE_OCI="no"
    fi

    echo "$as_me:$LINENO: result: $HAVE_ORACLE_OCI" >&5
echo "${ECHO_T}$HAVE_ORACLE_OCI" >&6

if test $HAVE_ORACLE_OCI = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ORACLE 1
_ACEOF

fi

# Figure out which postgresql we need.

if test "x$_cv_has_postgresql" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: postgresql required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: postgresql required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for postgresql" >&5
echo $ECHO_N "checking for postgresql... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-postgresql or --without-postgresql was given.
if test "${with_postgresql+set}" = set; then
  withval="$with_postgresql"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_postgresql=no
else
              if test "x$_dir" != x; then
  _ldflags_save="$LDFLAGS"
     _cflags_save="$CFLAGS"
     _ldflags="-L$_dir/lib"
     _cflags="-I$_dir/include"
     LDFLAGS="$LDFLAGS -L$_dir/lib"
     CFLAGS="$CFLAGS -I$_dir/include"
fi

     _libs=
     _failure=
     echo "$as_me:$LINENO: checking for PQconnectdb in -lpq" >&5
echo $ECHO_N "checking for PQconnectdb in -lpq... $ECHO_C" >&6
if test "${ac_cv_lib_pq_PQconnectdb+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 PQconnectdb ();
int
main ()
{
PQconnectdb ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pq_PQconnectdb=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pq_PQconnectdb=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQconnectdb" >&5
echo "${ECHO_T}$ac_cv_lib_pq_PQconnectdb" >&6
if test $ac_cv_lib_pq_PQconnectdb = yes; then
  _libs="-lpq $_libs"
else
  _failure="pq $_failure"
fi

     if test "x$_failure" != x; then
  cv_ext_postgresql=no
        LDFLAGS=$_ldflags_save
        CFLAGS=$_cflags_save
        { echo "$as_me:$LINENO: WARNING: postgresql: could not find $_failure" >&5
echo "$as_me: WARNING: postgresql: could not find $_failure" >&2;}
else
  POSTGRESQL_LDFLAGS="$_ldflags $_libs"
         POSTGRESQL_CFLAGS="$_cflags"
         LDFLAGS="$_ldflags_save"
          CFLAGS="$_cflags_save"
        cv_ext_postgresql=yes
fi

fi

   echo "$as_me:$LINENO: checking for postgresql" >&5
echo $ECHO_N "checking for postgresql... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_postgresql" >&5
echo "${ECHO_T}$cv_ext_postgresql" >&6
   # if the external is not available
   if test "x$cv_ext_postgresql" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: postgresql is required
See \`config.log' for more details." >&5
echo "$as_me: error: postgresql is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_postgresql_version="postgresql-8.2.3"
      ext_postgresql_version=$_cv_ext_postgresql_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_POSTGRESQL 1
_ACEOF

fi

else

# Check whether --with-postgresql or --without-postgresql was given.
if test "${with_postgresql+set}" = set; then
  withval="$with_postgresql"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_postgresql=no
else
              _bundle="$ac_cv_externals/bundles/postgresql"
 _bundle_version="$ac_cv_externals/bundles/postgresql/8.2.3"
 _bundle_build="$ac_cv_externals/bundles/postgresql/8.2.3/build_postgresql-8.2.3"
 echo "$as_me:$LINENO: checking for postgresql-8.2.3" >&5
echo $ECHO_N "checking for postgresql-8.2.3... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_postgresql=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_postgresql=no
fi

fi

   echo "$as_me:$LINENO: checking for postgresql" >&5
echo $ECHO_N "checking for postgresql... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_postgresql" >&5
echo "${ECHO_T}$cv_ext_postgresql" >&6
   # if the external is not available
   if test "x$cv_ext_postgresql" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: postgresql is required
See \`config.log' for more details." >&5
echo "$as_me: error: postgresql is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_postgresql_version="postgresql-8.2.3"
      ext_postgresql_version=$_cv_ext_postgresql_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_POSTGRESQL 1
_ACEOF

fi

fi

fi

echo "$as_me:$LINENO: checking postgresql" >&5
echo $ECHO_N "checking postgresql... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $_cv_ext_postgresql_version" >&5
echo "${ECHO_T}$_cv_ext_postgresql_version" >&6
#AC_SUBST(ext_postgresql_version,$_cv_ext_postgresql_version)
POSTGRESQL_LDFLAGS=$POSTGRESQL_LDFLAGS

POSTGRESQL_CFLAGS=$POSTGRESQL_CFLAGS


# if globus is available on this platform and we actually have it
if test "x$cv_ext_globus" = xyes; then
  echo "$as_me:$LINENO: checking globus flavor" >&5
echo $ECHO_N "checking globus flavor... $ECHO_C" >&6
  _cv_globus_flavor=gcc32dbg
  if test "$_cv_arch" = "ALPHA" -o "$_cv_arch" = "IA64" -o "$_cv_arch" = "X86_64"; then
    _cv_globus_flavor=gcc64dbg
  elif test "$_cv_opsys" = "AIX" ; then
    _cv_globus_flavor=vendorcc32dbg
  fi
  echo "$as_me:$LINENO: result: $_cv_globus_flavor" >&5
echo "${ECHO_T}$_cv_globus_flavor" >&6
  globus_flavor=$_cv_globus_flavor

fi

# The test for gsoap needs to happen after the openssl check, so
# openssl libs, if found, will be in LIBS. Also, if we do not have
# openssl, then we need to link with
# a non ssl version of the gSOAP libraries.

# The gsoap shared libraries contain unresolved symbols they expect
# the program they are linking with to implement. To avoid errors
# because of this we need to provide some extra linker flags.

# NOTE: We don't need the --unresolved-symbols flag in the non-proper
# case because in that case Condor links with the static libraries,
# and the linker does not complain as much.
if test "x$_cv_has_gsoap" = xno; then
  if test "xsoft" = xhard; then
  { { echo "$as_me:$LINENO: error: gsoap required but unsupported
See \`config.log' for more details." >&5
echo "$as_me: error: gsoap required but unsupported
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me:$LINENO: checking for gsoap" >&5
echo $ECHO_N "checking for gsoap... $ECHO_C" >&6
        echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6
fi

else
  if test "x$enable_proper" = xyes; then

# Check whether --with-gsoap or --without-gsoap was given.
if test "${with_gsoap+set}" = set; then
  withval="$with_gsoap"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_gsoap=no
else
              _ldflags_save="$LDFLAGS"
                LDFLAGS="$LDFLAGS -Wl,--unresolved-symbols=ignore-in-shared-libs"
                if test "x$cv_ext_globus" = xyes -o "x$cv_ext_openssl" = xyes; then
  if test "x$_dir" != x; then
  _ldflags_save="$LDFLAGS"
     _cflags_save="$CFLAGS"
     _ldflags="-L$_dir/lib"
     _cflags="-I$_dir/include"
     LDFLAGS="$LDFLAGS -L$_dir/lib"
     CFLAGS="$CFLAGS -I$_dir/include"
fi

     _libs=
     _failure=
     echo "$as_me:$LINENO: checking for soap_ssl_accept in -lgsoapssl++" >&5
echo $ECHO_N "checking for soap_ssl_accept in -lgsoapssl++... $ECHO_C" >&6
if test "${ac_cv_lib_gsoapsslpp_soap_ssl_accept+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgsoapssl++  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 soap_ssl_accept ();
int
main ()
{
soap_ssl_accept ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gsoapsslpp_soap_ssl_accept=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gsoapsslpp_soap_ssl_accept=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gsoapsslpp_soap_ssl_accept" >&5
echo "${ECHO_T}$ac_cv_lib_gsoapsslpp_soap_ssl_accept" >&6
if test $ac_cv_lib_gsoapsslpp_soap_ssl_accept = yes; then
  _libs="-lgsoapssl++ $_libs"
else
  _failure="gsoapssl++ $_failure"
fi

     if test "x$_failure" != x; then
  cv_ext_gsoap=no
        LDFLAGS=$_ldflags_save
        CFLAGS=$_cflags_save
        { echo "$as_me:$LINENO: WARNING: gsoap: could not find $_failure" >&5
echo "$as_me: WARNING: gsoap: could not find $_failure" >&2;}
else
  GSOAP_LDFLAGS="$_ldflags $_libs"
         GSOAP_CFLAGS="$_cflags"
         LDFLAGS="$_ldflags_save"
          CFLAGS="$_cflags_save"
        cv_ext_gsoap=yes
fi

else
  if test "x$_dir" != x; then
  _ldflags_save="$LDFLAGS"
     _cflags_save="$CFLAGS"
     _ldflags="-L$_dir/lib"
     _cflags="-I$_dir/include"
     LDFLAGS="$LDFLAGS -L$_dir/lib"
     CFLAGS="$CFLAGS -I$_dir/include"
fi

     _libs=
     _failure=
     echo "$as_me:$LINENO: checking for soap_accept in -lgsoap++" >&5
echo $ECHO_N "checking for soap_accept in -lgsoap++... $ECHO_C" >&6
if test "${ac_cv_lib_gsoappp_soap_accept+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgsoap++  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.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 soap_accept ();
int
main ()
{
soap_accept ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gsoappp_soap_accept=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gsoappp_soap_accept=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gsoappp_soap_accept" >&5
echo "${ECHO_T}$ac_cv_lib_gsoappp_soap_accept" >&6
if test $ac_cv_lib_gsoappp_soap_accept = yes; then
  _libs="-lgsoap++ $_libs"
else
  _failure="gsoap++ $_failure"
fi

     if test "x$_failure" != x; then
  cv_ext_gsoap=no
        LDFLAGS=$_ldflags_save
        CFLAGS=$_cflags_save
        { echo "$as_me:$LINENO: WARNING: gsoap: could not find $_failure" >&5
echo "$as_me: WARNING: gsoap: could not find $_failure" >&2;}
else
  GSOAP_LDFLAGS="$_ldflags $_libs"
         GSOAP_CFLAGS="$_cflags"
         LDFLAGS="$_ldflags_save"
          CFLAGS="$_cflags_save"
        cv_ext_gsoap=yes
fi

fi

                if test "x$cv_ext_gsoap" = xno; then
  LDFLAGS="$_ldflags_save"
fi

fi

   echo "$as_me:$LINENO: checking for gsoap" >&5
echo $ECHO_N "checking for gsoap... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_gsoap" >&5
echo "${ECHO_T}$cv_ext_gsoap" >&6
   # if the external is not available
   if test "x$cv_ext_gsoap" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: gsoap is required
See \`config.log' for more details." >&5
echo "$as_me: error: gsoap is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_gsoap_version="gsoap-2.7.10-p3"
      ext_gsoap_version=$_cv_ext_gsoap_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GSOAP 1
_ACEOF

fi

else

# Check whether --with-gsoap or --without-gsoap was given.
if test "${with_gsoap+set}" = set; then
  withval="$with_gsoap"
  _with=$withval
else
  _with=check
fi;
   # if not yes|no|check --with-<name>[=DIR] was given a DIR
   if test "x$_with" != xyes -a "x$_with" != xno -a "x$_with" != xcheck; then
  _dir=$_with
else
  _dir=
fi

   # if a hard requirement, it is always required
   # note: --without-<name> makes no sense on a hard requirement
   if test "xsoft" = xhard; then
  _required=yes
else
  # if --with-<name> is given
     if test "x$_with" != xcheck -a "x$_with" != xno; then
  _required=yes
else
  # if a soft requirement
       if test "xsoft" = xsoft; then
  # external is a soft requirement, but soft->hard turned on
         if test "x$enable_soft_is_hard" = xyes; then
  _required=yes
else
  # else, just a soft requirement
           _required=no
fi

else
  # else, completely optional
         _required=no
fi

fi

fi

   # if --without-<name>
   if test "x$_with" = xno; then
  cv_ext_gsoap=no
else
              _bundle="$ac_cv_externals/bundles/gsoap"
 _bundle_version="$ac_cv_externals/bundles/gsoap/2.7.10-p3"
 _bundle_build="$ac_cv_externals/bundles/gsoap/2.7.10-p3/build_gsoap-2.7.10-p3"
 echo "$as_me:$LINENO: checking for gsoap-2.7.10-p3" >&5
echo $ECHO_N "checking for gsoap-2.7.10-p3... $ECHO_C" >&6
 if test -d "$_bundle" -a \
             -d "$_bundle_version" -a \
             -f "$_bundle_build"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cv_ext_gsoap=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { echo "$as_me:$LINENO: WARNING: $_bundle_build unavailable" >&5
echo "$as_me: WARNING: $_bundle_build unavailable" >&2;}
    cv_ext_gsoap=no
fi

fi

   echo "$as_me:$LINENO: checking for gsoap" >&5
echo $ECHO_N "checking for gsoap... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $cv_ext_gsoap" >&5
echo "${ECHO_T}$cv_ext_gsoap" >&6
   # if the external is not available
   if test "x$cv_ext_gsoap" = xno; then
  if test "x$_required" = xyes; then
  { { echo "$as_me:$LINENO: error: gsoap is required
See \`config.log' for more details." >&5
echo "$as_me: error: gsoap is required
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

else
  # Strictly backwards compatible with CONDOR_EXTERNAL_VERSION
      _cv_ext_gsoap_version="gsoap-2.7.10-p3"
      ext_gsoap_version=$_cv_ext_gsoap_version


cat >>confdefs.h <<\_ACEOF
#define HAVE_EXT_GSOAP 1
_ACEOF

fi

fi

fi

GSOAP_LDFLAGS=$GSOAP_LDFLAGS

GSOAP_CFLAGS=$GSOAP_CFLAGS


# We need to make sure HAVE_OPENSSL_SSL_H is defined otherwise
# programs will not link properly as stdsoap2.h will not include ssl
# structures. This is set manually if using Globus's OpenSSL.
if test "x$cv_ext_gsoap" = xyes -a "x$enable_proper" = xyes; then

for ac_header in openssl/ssl.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists.  ##
## ------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

else
  { { echo "$as_me:$LINENO: error: gsoap in proper mode requires openssl/ssl.h" >&5
echo "$as_me: error: gsoap in proper mode requires openssl/ssl.h" >&2;}
   { (exit 1); exit 1; }; }
fi

done

fi


# Before the --unresolved-symbols flag was founded we needed to use
# the following test. We will keep it around incase it is needed
# again, for linkers that do not support --unresolved-symbols, or
# --allow-shlibs-undefined. Note, this test does not let all Condor
# programs compile that have gsoap on the link line, because of the
# undefined symbols.
#
## Also, gSOAP is special in that its libraries are really frameworks,
## so we need to define symbols the library expects or configure cannot
## tell the difference between a missing symbol we are testing for or a
## missing expected symbol. We cannot define these symbols with
## ac_check_lib so we have to use ac_link_ifelse.
##               [
##  _libs_save=$LIBS
##  LIBS="$LIBS -lgsoapssl++"
##  AC_LINK_IFELSE([
##    #ifdef __cplusplus
##    extern "C" {
##    #endif
##    int soap_putheader;
##    int soap_serializeheader;
##    int soap_faultstring;
##    int soap_faultsubcode;
##    int soap_faultcode;
##    int soap_getheader;
##    int soap_getfault;
##    int soap_faultdetail;
##    int soap_putfault;
##    int soap_serializefault;
##    char soap_ssl_accept();
##    int main() {
##      return soap_ssl_accept();
##    }
##    #ifdef __cplusplus
##    }
##    #endif
##    ],
##   [cv_ext_gsoap=yes],
##   [cv_ext_gsoap=no])
##  LIBS=$_libs_save])


# This MUST happen after externals are determined because it must
# reference information about externals, specifically glibc
#
# SIMPLE_LIBC is needed for unclipped builds, as is LIBC
#
# It turns out that SIMPLE_LIBC==LIBC
#

echo "$as_me:$LINENO: checking if we have libc.a" >&5
echo $ECHO_N "checking if we have libc.a... $ECHO_C" >&6
_cv_libc_a=none
# from externals.cf.in
GLIBC_DIR="$ac_cv_externals_build/install/$_cv_ext_glibc_version/lib"
case "$_cv_opsys" in
# Ignore on clipped ports
#  ?ALPHA_OSF1? ) /lib/libc.a ;;
#  ?HPUX? ) /lib/libc.a ;;
#  ?HPUX11? ) /usr/lib/pa20_64/libc.a ;;
  LINUX )
    if test "x$CLIPPED" = xyes; then
      _cv_libc_a=/usr/lib/libc.a
    else
      _cv_libc_a=$GLIBC_DIR/libc.a
    fi
  ;;
  SOLARIS ) _cv_libc_a=/lib/libc.a ;;
esac
echo "$as_me:$LINENO: result: $_cv_libc_a" >&5
echo "${ECHO_T}$_cv_libc_a" >&6

LIBC_A=$_cv_libc_a


else
# if there's no externals at all, we still need to define these to
# avoid imake troubles...
  want_ext_linuxlibcheaders=NO

  ext_linuxlibcheaders_version=UNUSED

  want_ext_glibc=NO

  ext_glibc_version=UNUSED


fi
# END of if $ac_cv_has_externals = "YES" or $enable_proper = yes

# This, unfortunately, must be way down here to make sure info about
# externals is defined. -matt 1/6/8
# Check whether --enable-stork or --disable-stork was given.
if test "${enable_stork+set}" = set; then
  enableval="$enable_stork"

else
  if test "x$_cv_opsys" = xLINUX -a "x$_cv_arch" = xI386 \
       -a "x$_cv_has_globus" = xyes -a "x$cv_ext_globus" = xyes \
       -a "x$_cv_has_classads" = xyes -a "x$cv_ext_classads" = xyes \
       -a "x$_cv_libc_kind-$_cv_libc_major-$_cv_libc_minor" = xGLIBC-2-3; then
    enable_stork=yes;
   else
    enable_stork=no;
   fi
fi;
if test "x$enable_stork" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define WANT_STORK 1
_ACEOF

fi


# NRL: Similar logic for the lease manager
# Check whether --enable-lease-manager or --disable-lease-manager was given.
if test "${enable_lease_manager+set}" = set; then
  enableval="$enable_lease_manager"

else
  if test "$_cv_has_classads" = "yes" -a "$cv_ext_classads" = "yes" ; then
    enable_lease_manager=yes;
   else
    enable_lease_manager=no;
   fi
fi;
if test "$enable_lease_manager" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define WANT_LEASE_MANAGER 1
_ACEOF

fi



############################################################
# Configure-generated output
############################################################
                              ac_config_files="$ac_config_files ../config/configure.cf ../config/externals.cf ../config/config.sh"

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

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, 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/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_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 diff $cache_file confcache >/dev/null 2>&1; 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

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_i=`echo "$ac_i" |
	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  # 2. Add them.
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs



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

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi
DUALCASE=1; export DUALCASE # for MKS sh

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


# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

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


# Name of the executable.
as_me=`$as_basename "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`


# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


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

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

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

as_executable_p="test -f"

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

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


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

# CDPATH.
$as_unset CDPATH

exec 6>&1

# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.  Logging --version etc. is OK.
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF

This file was extended by $as_me, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
_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 <<\_ACEOF

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
  -q, --quiet      do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
		   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
		   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

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

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

Copyright (C) 2003 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
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# 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[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  -*)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_option=$1
     ac_need_defaults=false;;
  esac

  case $ac_option in
  # Handling of the options.
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:$LINENO: 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 )
    $ac_shift
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    ac_need_defaults=false;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { { echo "$as_me:$LINENO: 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; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi

_ACEOF





cat >>$CONFIG_STATUS <<\_ACEOF
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "../config/configure.cf" ) CONFIG_FILES="$CONFIG_FILES ../config/configure.cf" ;;
  "../config/externals.cf" ) CONFIG_FILES="$CONFIG_FILES ../config/externals.cf" ;;
  "../config/config.sh" ) CONFIG_FILES="$CONFIG_FILES ../config/config.sh" ;;
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

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

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./confstat$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF

#
# 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,@PATH_SEPARATOR@,$PATH_SEPARATOR,;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,@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,@build_alias@,$build_alias,;t t
s,@host_alias@,$host_alias,;t t
s,@target_alias@,$target_alias,;t t
s,@DEFS@,$DEFS,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
s,@AWK@,$AWK,;t t
s,@GREP@,$GREP,;t t
s,@CUT@,$CUT,;t t
s,@WHICH@,$WHICH,;t t
s,@PERL@,$PERL,;t t
s,@ac_rpmquery@,$ac_rpmquery,;t t
s,@ac_sysctl@,$ac_sysctl,;t t
s,@SW_VERS@,$SW_VERS,;t t
s,@_cv_arch@,$_cv_arch,;t t
s,@_cv_opsys@,$_cv_opsys,;t t
s,@_cv_op_sys@,$_cv_op_sys,;t t
s,@_cv_opsys_vers@,$_cv_opsys_vers,;t t
s,@_cv_sysname@,$_cv_sysname,;t t
s,@_cv_kernel_rev@,$_cv_kernel_rev,;t t
s,@_cv_libc_full@,$_cv_libc_full,;t t
s,@_cv_libc_majmin@,$_cv_libc_majmin,;t t
s,@_cv_libc_is_kind@,$_cv_libc_is_kind,;t t
s,@_cv_ext_config_sh@,$_cv_ext_config_sh,;t t
s,@has_externals@,$has_externals,;t t
s,@ext_src@,$ext_src,;t t
s,@ext_build@,$ext_build,;t t
s,@TMPDIR@,$TMPDIR,;t t
s,@pure_cache_dir@,$pure_cache_dir,;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,@CompilerKind@,$CompilerKind,;t t
s,@CompilerMajor@,$CompilerMajor,;t t
s,@CompilerMinor@,$CompilerMinor,;t t
s,@CompilerPatch@,$CompilerPatch,;t t
s,@gcc_libc@,$gcc_libc,;t t
s,@lib_std_cpp@,$lib_std_cpp,;t t
s,@lib_gcc_eh@,$lib_gcc_eh,;t t
s,@crt_begin@,$crt_begin,;t t
s,@CXX@,$CXX,;t t
s,@CXXFLAGS@,$CXXFLAGS,;t t
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
s,@gcc_ld_prog@,$gcc_ld_prog,;t t
s,@LD@,$LD,;t t
s,@gcc_static_ld_flag@,$gcc_static_ld_flag,;t t
s,@gcc_hash_style_flag@,$gcc_hash_style_flag,;t t
s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
s,@comp_option_Wall@,$comp_option_Wall,;t t
s,@comp_option_W@,$comp_option_W,;t t
s,@comp_option_Wextra@,$comp_option_Wextra,;t t
s,@comp_option_Wfloat_equal@,$comp_option_Wfloat_equal,;t t
s,@comp_option_Wshadow@,$comp_option_Wshadow,;t t
s,@comp_option_Wendif_labels@,$comp_option_Wendif_labels,;t t
s,@comp_option_Wpointer_arith@,$comp_option_Wpointer_arith,;t t
s,@comp_option_Wcast_qual@,$comp_option_Wcast_qual,;t t
s,@comp_option_Wcast_align@,$comp_option_Wcast_align,;t t
s,@comp_option_Wvolatile_register_var@,$comp_option_Wvolatile_register_var,;t t
s,@comp_option_Wnested_externs@,$comp_option_Wnested_externs,;t t
s,@comp_option_Wstrict_prototypes@,$comp_option_Wstrict_prototypes,;t t
s,@comp_option_Wmissing_prototypes@,$comp_option_Wmissing_prototypes,;t t
s,@comp_option_stack_protector@,$comp_option_stack_protector,;t t
s,@comp_option_no_stack_protector@,$comp_option_no_stack_protector,;t t
s,@gcc_rdynamic_flag@,$gcc_rdynamic_flag,;t t
s,@cc_pic_flags@,$cc_pic_flags,;t t
s,@cc_shared_flags@,$cc_shared_flags,;t t
s,@_cv_gnu_g77@,$_cv_gnu_g77,;t t
s,@_cv_gnu_gfortran@,$_cv_gnu_gfortran,;t t
s,@_cv_vendor_cc@,$_cv_vendor_cc,;t t
s,@_cv_vendor_cplus@,$_cv_vendor_cplus,;t t
s,@_cv_vendor_cplus_name@,$_cv_vendor_cplus_name,;t t
s,@_cv_vendor_f77@,$_cv_vendor_f77,;t t
s,@_cv_vendor_f90@,$_cv_vendor_f90,;t t
s,@has_gnu_g77@,$has_gnu_g77,;t t
s,@has_gnu_gfortran@,$has_gnu_gfortran,;t t
s,@has_vendor_cc@,$has_vendor_cc,;t t
s,@has_vendor_cplus@,$has_vendor_cplus,;t t
s,@has_vendor_f77@,$has_vendor_f77,;t t
s,@has_vendor_f90@,$has_vendor_f90,;t t
s,@_cv_is_clipped@,$_cv_is_clipped,;t t
s,@_cv_arch_optimize_flag@,$_cv_arch_optimize_flag,;t t
s,@_cv_vendor_c_test_flags@,$_cv_vendor_c_test_flags,;t t
s,@_cv_vendor_cpp_test_flags@,$_cv_vendor_cpp_test_flags,;t t
s,@_cv_platform_ld_flags@,$_cv_platform_ld_flags,;t t
s,@_cv_glibc_flag@,$_cv_glibc_flag,;t t
s,@_cv_platform_flags@,$_cv_platform_flags,;t t
s,@_cv_test_platform_ld_flags@,$_cv_test_platform_ld_flags,;t t
s,@_cv_purify_platform_ld_flags@,$_cv_purify_platform_ld_flags,;t t
s,@MAKE@,$MAKE,;t t
s,@ac_patch@,$ac_patch,;t t
s,@LEX@,$LEX,;t t
s,@LEXLIB@,$LEXLIB,;t t
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
s,@ac_byacc@,$ac_byacc,;t t
s,@ac_yacc@,$ac_yacc,;t t
s,@YACC@,$YACC,;t t
s,@ac_ar@,$ac_ar,;t t
s,@STRIP@,$STRIP,;t t
s,@ac_find@,$ac_find,;t t
s,@FindCmd@,$FindCmd,;t t
s,@ac_objcopy@,$ac_objcopy,;t t
s,@ObjcopyCmd@,$ObjcopyCmd,;t t
s,@OBJCOPY_KEEPDEBUG_FLAG@,$OBJCOPY_KEEPDEBUG_FLAG,;t t
s,@OBJCOPY_STRIPUNNEEDED_FLAG@,$OBJCOPY_STRIPUNNEEDED_FLAG,;t t
s,@OBJCOPY_DEBUGLINK_FLAG@,$OBJCOPY_DEBUGLINK_FLAG,;t t
s,@TarCmd@,$TarCmd,;t t
s,@_cv_cp@,$_cv_cp,;t t
s,@CpCmd@,$CpCmd,;t t
s,@ac_gzip@,$ac_gzip,;t t
s,@TRUE@,$TRUE,;t t
s,@ac_purify@,$ac_purify,;t t
s,@ac_vmware@,$ac_vmware,;t t
s,@VMWARE@,$VMWARE,;t t
s,@ac_javac@,$ac_javac,;t t
s,@JAVAC@,$JAVAC,;t t
s,@ac_jar@,$ac_jar,;t t
s,@JAR@,$JAR,;t t
s,@ac_md5sum@,$ac_md5sum,;t t
s,@MD5SUM@,$MD5SUM,;t t
s,@ac_sha1sum@,$ac_sha1sum,;t t
s,@ac_rpmcmd@,$ac_rpmcmd,;t t
s,@RpmCmd@,$RpmCmd,;t t
s,@CXXCPP@,$CXXCPP,;t t
s,@X_CFLAGS@,$X_CFLAGS,;t t
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
s,@X_LIBS@,$X_LIBS,;t t
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
s,@X11_CFLAGS@,$X11_CFLAGS,;t t
s,@X11_LDFLAGS@,$X11_LDFLAGS,;t t
s,@X11_LIBS@,$X11_LIBS,;t t
s,@EGREP@,$EGREP,;t t
s,@crypt_lib@,$crypt_lib,;t t
s,@_cv_has_static@,$_cv_has_static,;t t
s,@ext_linuxlibcheaders_version@,$ext_linuxlibcheaders_version,;t t
s,@want_ext_linuxlibcheaders@,$want_ext_linuxlibcheaders,;t t
s,@ext_glibc_version@,$ext_glibc_version,;t t
s,@want_ext_glibc@,$want_ext_glibc,;t t
s,@ext_coredumper_version@,$ext_coredumper_version,;t t
s,@want_coredumper@,$want_coredumper,;t t
s,@ext_drmaa_version@,$ext_drmaa_version,;t t
s,@ext_krb5_version@,$ext_krb5_version,;t t
s,@ext_openssl_version@,$ext_openssl_version,;t t
s,@ext_globus_version@,$ext_globus_version,;t t
s,@ext_unicoregahp_version@,$ext_unicoregahp_version,;t t
s,@ext_zlib_version@,$ext_zlib_version,;t t
s,@ext_classads_version@,$ext_classads_version,;t t
s,@ext_srb_version@,$ext_srb_version,;t t
s,@ext_pcre_version@,$ext_pcre_version,;t t
s,@ext_blahp_version@,$ext_blahp_version,;t t
s,@man_dir@,$man_dir,;t t
s,@ext_man_version@,$ext_man_version,;t t
s,@ext_gcb_version@,$ext_gcb_version,;t t
s,@ORACLE_OCI_VERSION@,$ORACLE_OCI_VERSION,;t t
s,@ORACLE_OCI_CFLAGS@,$ORACLE_OCI_CFLAGS,;t t
s,@ORACLE_OCI_LDFLAGS@,$ORACLE_OCI_LDFLAGS,;t t
s,@ext_postgresql_version@,$ext_postgresql_version,;t t
s,@POSTGRESQL_LDFLAGS@,$POSTGRESQL_LDFLAGS,;t t
s,@POSTGRESQL_CFLAGS@,$POSTGRESQL_CFLAGS,;t t
s,@globus_flavor@,$globus_flavor,;t t
s,@ext_gsoap_version@,$ext_gsoap_version,;t t
s,@GSOAP_LDFLAGS@,$GSOAP_LDFLAGS,;t t
s,@GSOAP_CFLAGS@,$GSOAP_CFLAGS,;t t
s,@LIBC_A@,$LIBC_A,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF

_ACEOF

  cat >>$CONFIG_STATUS <<\_ACEOF
  # 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"

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
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=`(dirname "$ac_file") 2>/dev/null ||
$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 $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

  ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac

# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
  case "$ac_dir" in
  .) ac_abs_builddir=`pwd`;;
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
  case ${ac_top_builddir}. in
  .) ac_abs_top_builddir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
  case $ac_srcdir in
  .) ac_abs_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
  case $ac_top_srcdir in
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  esac;;
esac



  if test x"$ac_file" != x-; then
    { echo "$as_me:$LINENO: 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 by config.status.  */
  if test x"$ac_file" = x-; then
    configure_input=
  else
    configure_input="$ac_file.  "
  fi
  configure_input=$configure_input"Generated 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:$LINENO: 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:$LINENO: 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; }
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
s,@abs_srcdir@,$ac_abs_srcdir,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
s,@builddir@,$ac_builddir,;t t
s,@abs_builddir@,$ac_abs_builddir,;t t
s,@top_builddir@,$ac_top_builddir,;t t
s,@abs_top_builddir@,$ac_abs_top_builddir,;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
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

#
# 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:$LINENO: 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:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
	 # Do quote $f, to prevent DOS paths from being IFS'd.
	 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:$LINENO: 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

_ACEOF

# 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 <<\_ACEOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
t end
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
_ACEOF
# 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 <<\_ACEOF
s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
_ACEOF

# 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 grep "^[	 ]*#[	 ]*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 # grep' >>$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 <<\_ACEOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated by configure.  */" >$tmp/config.h
  else
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$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 $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

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

cat >>$CONFIG_STATUS <<\_ACEOF

{ (exit 0); exit 0; }
_ACEOF
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=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi


# Finally, call Condor's imake script to generate Makefile using imake
# (yes, we know it seems crazy to use configure to setup Imake to make
# Makefiles... we're in transition).
./condor_imake
