#! /bin/sh

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

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_help="$ac_help
  --enable-kernel-shared-library       Build shared library version of kernel"
ac_help="$ac_help
  --enable-xerox-firewall-handling      Enable Xerox firewall handling"
ac_help="$ac_help
  --with-zlib=LIB:INCLUDE_DIR   Specify libgz.a and include directory path for zlib"
ac_help="$ac_help
  --with-rsaref=LIB:INSTALL_DIR   Specify rsaref.a and parent directory of RSAREF's source/"
ac_help="$ac_help
  --with-libdes=LIB:INCLUDE_DIR   Specify libdes.a and include directory of libdes"
ac_default_prefix=/usr/local/ilu
ac_help="$ac_help
  --enable-debugging          Enable -g on compile and add debugging print statements"
ac_help="$ac_help
  --enable-new-keywords-plain Omit ILU prefix from new ISL keywords"
ac_help="$ac_help
  --enable-os-threads         Provide code in the ILU kernel to hook into OS threads"
ac_help="$ac_help
  --enable-sunrpc-protocol    Add ILU version of the Sun RPC v2 protocol"
ac_help="$ac_help
  --enable-courier-protocol   Add Xerox Courier protocol"
ac_help="$ac_help
  --enable-corba-iiop         Add OMG CORBA 2 IIOP protocol & transport, version 1.0"
ac_help="$ac_help
  --enable-http-protocol      Add World Wide Web HTTP protocol"
ac_help="$ac_help
  --enable-w3ng-protocol      Add W3C HTTP-NG protocol"
ac_help="$ac_help
  --enable-w3ng-ilu-objects  Allow arbitrary ILU objects to be carried over w3ng"
ac_help="$ac_help
  --enable-w3ng-relative-ih-passing  Use relative form of IH when passing objects over w3ng"
ac_help="$ac_help
  --enable-javarmi-protocol   Add Java RMI protocol"
ac_help="$ac_help
  --enable-sunrpcrm-transport Add Sun RPC record marking transport filter"
ac_help="$ac_help
  --enable-w3mux-transport    Add W3C multiplexing record marking transport filter"
ac_help="$ac_help
  --enable-batching-transport    Add batching transport filter"
ac_help="$ac_help
  --enable-tcp-transport      Add TCP/IP transport"
ac_help="$ac_help
  --enable-udp-transport      Add UDP/IP transport"
ac_help="$ac_help
  --enable-xns-transport      Add XNS/SPP transport"
ac_help="$ac_help
  --enable-security           Add security transport filter"
ac_help="$ac_help
  --enable-zlib-transport    Add zlib-based compression transport filter"
ac_help="$ac_help
  --enable-c-support          Include support for ANSI C"
ac_help="$ac_help
  --enable-c-shared-library          Include support for ANSI C"
ac_help="$ac_help
  --enable-old-cplusplus-support  Include original ILU support for C++"
ac_help="$ac_help
  --enable-corba-cplusplus-support  Include new CORBA-style support for C++"
ac_help="$ac_help
  --with-cplusplus-mapping=CPPMAPPING  Specify CPPMAPPING"
ac_help="$ac_help
  --enable-cplusplus-shared-library      Build shared library version of C++ runtime"
ac_help="$ac_help
  --enable-java-support       Include support for Java"
ac_help="$ac_help
  --with-java-nopoll   Forbid Java runtime to use poll(2)"
ac_help="$ac_help
  --enable-python-support     Include support for Python"
ac_help="$ac_help
  --enable-old-python-gc-behavior  Prevent Python ILU true objects from being GC'ed"
ac_help="$ac_help
  --enable-lisp-support       Include support for Common Lisp"
ac_help="$ac_help
  --enable-old-lisp-method-names      Also generate Lisp methods using ILU 1.8 naming scheme"
ac_help="$ac_help
  --enable-guile-support         Include support for Guile scheme"
ac_help="$ac_help
  --enable-perl-support     Include support for Perl"
ac_help="$ac_help
  --enable-ssl-security       Add SSL security mechanism"
ac_help="$ac_help
  --enable-omg-idl-support   Add support to the ILU parser for OMG IDL"
ac_help="$ac_help
  --enable-xmlidl-support   Add support to the ILU parser for XML IDL"
ac_help="$ac_help
  --enable-idl2isl-support    Include Sun parser-based support for translating OMG IDL to ILU ISL"
ac_help="$ac_help
  --enable-pickle-support   Add support for ILU pickle (and CORBA any)"
ac_help="$ac_help
  --enable-pickle-format-2   Add support for pickle format 2"
ac_help="$ac_help
  --enable-pickle-format-3   Add support for pickle format 3"
ac_help="$ac_help
  --enable-type-support   Add support for internal type structure database"
ac_help="$ac_help
  --enable-fixed-point-support   Add support for general fixed-point types"
ac_help="$ac_help
  --enable-bignum-library-support   Build bignum library"
ac_help="$ac_help
  --enable-c-timing-statistics   Add support for gathering call timing statistics in the C runtime"
ac_help="$ac_help
  --enable-version-2-type-uids   Use a coherent algorithm for generating structural type UIDs"
ac_help="$ac_help
  --enable-generate-subtypes   Generate fake local object types for surrogates with multiple supertypes"
ac_help="$ac_help
  --enable-reference-types   Add support for aliased/optional reference types"
ac_help="$ac_help
  --enable-objects-by-value   Add support for passing of object types by value"
ac_help="$ac_help
  --enable-testing-scripts   Add support for the various ILU testing scripts"
ac_help="$ac_help
  --enable-xml-parser-library   Build XML parser library"
ac_help="$ac_help
  --enable-xview-support      Include support for the XView GUI toolkit"
ac_help="$ac_help
  --with-x                use the X Window System"
ac_help="$ac_help
  --with-tcl-includes-dir=DIR  Directory containing Tcl header files"
ac_help="$ac_help
  --with-tk-includes-dir=DIR  Directory containing Tk header files"
ac_help="$ac_help
  --with-x                use the X Window System"
ac_help="$ac_help
  --enable-tk-support         Include support for the Tk GUI toolkit"
ac_help="$ac_help
  --with-iluhome=PATH   Specify PATH to root of ILU installation"
ac_help="$ac_help
  --with-destdir=PATH         Specify PATH to install ILU in"
ac_help="$ac_help
  --with-binding-dir=PATH     Specify PATH for use as ILU simple binding directory"
ac_help="$ac_help
  --with-binding-server=D:H:P Specify HOST and PORT for binding server (e.g. foo.bar.edu:123.4.92.68:10003)"
ac_help="$ac_help
  --with-binding-multicast=IPADDR:PORT Specify IPADDR and PORT for multicast (e.g. 238.4.92.68:10003)"

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

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

ac_prev=
for ac_option
do

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

  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

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

  case "$ac_option" in

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

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

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

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

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

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

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

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

  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  esac
done

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

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

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

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

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

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

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

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

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`

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

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

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

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




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


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

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

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

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




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

  if test "$CC" != ""; then
    echo $ac_n "checking to see if $CC can handle ANSI C""... $ac_c" 1>&6
echo "configure:743: checking to see if $CC can handle ANSI C" >&5
cat >conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
int main(int ac, char **av){
 int i = INT_MAX;
 char *p = (char *) malloc(1048);
 memmove(p, *av, strlen(*av)+1);
 printf("%s, %d\n", p, i);
 return 0;
}
EOF
rm -f conftest1.o
$CC -o conftest1.o conftest.c 2>&5
if test -s "conftest1.o" ; then
  ac_tv_prog_ANSI_C="$CC"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

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

    if test "$CC2" != ""; then
      echo $ac_n "checking to see if $CC2 can handle ANSI C""... $ac_c" 1>&6
echo "configure:803: checking to see if $CC2 can handle ANSI C" >&5
cat >conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
int main(int ac, char **av){
 int i = INT_MAX;
 char *p = (char *) malloc(1048);
 memmove(p, *av, strlen(*av)+1);
 printf("%s, %d\n", p, i);
 return 0;
}
EOF
rm -f conftest1.o
$CC2 -o conftest1.o conftest.c 2>&5
if test -s "conftest1.o" ; then
  ac_tv_prog_ANSI_C="$CC2"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

    fi
    if test "$ac_tv_prog_ANSI_C" = ""; then
      echo "$ac_t""*** Can't find an ANSI C compiler to use." 1>&6
      { echo "configure: error: *** Please set the environment variable CC to valid ANSI C compilation command." 1>&2; exit 1; }
    fi
  fi
  if eval "test \"`echo '$''{'ac_cv_prog_ANSI_C'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_prog_ANSI_C="$ac_tv_prog_ANSI_C"
fi

fi
if test "$ac_tv_prog_ANSI_C" != ""; then
  CC="$ac_tv_prog_ANSI_C"
  echo "$ac_t""using $ac_tv_prog_ANSI_C for ANSI C compilation" 1>&6
else
  echo "$ac_t""*** Can't find an ANSI C compiler to use." 1>&6
  { echo "configure: error: *** Please set the environment variable CC to valid ANSI C compilation command." 1>&2; exit 1; }
  exit 1
fi

echo $ac_n "checking to see if -lm is needed when linking ANSI C""... $ac_c" 1>&6
echo "configure:849: checking to see if -lm is needed when linking ANSI C" >&5
cat >conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int ac, char **av){
 double f1 = 2.0;
 printf("%f %f\n", sqrt(f1), floor(f1));
 return 0;
}
EOF
rm -f conftest1
$ac_cv_prog_ANSI_C -o conftest1 conftest.c 2>&5
if test -s "conftest1"; then
  echo "$ac_t""no" 1>&6
else
  $ac_cv_prog_ANSI_C -o conftest1 conftest.c -lm 2>&5
  if test -s "conftest1"; then
    echo "$ac_t""yes" 1>&6
    ANSI_C_LIBRARY="$ANSI_C_LIBRARY -lm"
  else
    { echo "configure: error: Cannot use math library calls" 1>&2; exit 1; }
  fi
fi

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

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

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

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

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


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

PATH=$ac_save_path
if test -z "$IMAKE" ; then
  { echo "configure: error: Can't find imake.  Please make sure imake is on your path and start over." 1>&2; exit 1; }
fi


echo $ac_n "checking where sources for imake rules are""... $ac_c" 1>&6
echo "configure:1008: checking where sources for imake rules are" >&5
IMAKE_RULES_SRCDIR="`pwd`"
echo "$ac_t""$IMAKE_RULES_SRCDIR" 1>&6


echo $ac_n "checking where top of ILU source tree is""... $ac_c" 1>&6
echo "configure:1014: checking where top of ILU source tree is" >&5
ILUSRC="`pwd | sed -e 's;/[^/]*$;;'`"
echo "$ac_t""$ILUSRC" 1>&6


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

test -n "$AR" && break
done
test -n "$AR" || AR="ar"

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

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

test -n "$BOURNE_SHELL" && break
done
test -n "$BOURNE_SHELL" || BOURNE_SHELL=""""

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

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

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

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

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

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

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

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

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

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


if test "x$PYTHON" != "x" -a "x$PERL" != "x" -a "x$DVIPS" != "x" -a "x$GHOSTSCRIPT" != "x" -a "x$MAKEINFO" != "x" -a "x$TEXINDEX" != "x" -a "x$TEX" != "x" ; then
  cat >> confdefs.h <<\EOF
#define ADD_TIM_TOOLS 1
EOF

fi

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

PATH="$ac_save_path"

echo $ac_n "checking how to index man pages on $host_os""... $ac_c" 1>&6
echo "configure:1476: checking how to index man pages on $host_os" >&5
case "$host_os" in
  sunos4* | solaris1*)
	if test "$MAKEWHATIS_PATH" != ""; then
	  MAKEWHATIS="$MAKEWHATIS_PATH -w -M"
	fi
	;;
  solaris2* | irix*)
	MAKEWHATIS="/usr/lib/makewhatis"
	;;
  linux-gnu*)
	if test "$MAKEWHATIS_PATH" != ""; then
	  MAKEWHATIS="$MAKEWHATIS_PATH -v"
	fi
	;;
  *)
	;;
esac
if test "$MAKEWHATIS" != ""; then
  echo "$ac_t""$MAKEWHATIS" 1>&6
else
  echo "$ac_t""Don't know -- won't try" 1>&6
  MAKEWHATIS="echo Remember to re-index the man pages after installing"
fi

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

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_poll) || defined (__stub___poll)
choke me
#else
poll();
#endif

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

if eval "test \"`echo '$ac_cv_func_'poll`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cf_have_poll="yes"
else
  echo "$ac_t""no" 1>&6
fi

case "$host_os" in
  irix6.[4567])
	NSL_LIB=""
	;;
  *)
	NSL_LIB="-lnsl"
	;;
esac

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

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

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="${LIBS} -lsocket ${NSL_LIB}"
else
  echo "$ac_t""no" 1>&6
fi

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

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

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

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


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

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


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

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

fi

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

fi

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

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

fi
fi

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

fi

echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:1861: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1866 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_pid_t=yes
else
  rm -rf conftest*
  ac_cv_type_pid_t=no
fi
rm -f conftest*

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

fi

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

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

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

fi
fi

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

fi

echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
echo "configure:1984: checking whether char is unsigned" >&5
if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$GCC" = yes; then
  # GCC predefines this symbol on systems where it applies.
cat > conftest.$ac_ext <<EOF
#line 1991 "configure"
#include "confdefs.h"
#ifdef __CHAR_UNSIGNED__
  yes
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_c_char_unsigned=yes
else
  rm -rf conftest*
  ac_cv_c_char_unsigned=no
fi
rm -f conftest*

else
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2013 "configure"
#include "confdefs.h"
/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
#if !defined(__STDC__) || __STDC__ != 1
#define volatile
#endif
main() {
  volatile char c = 255; exit(c < 0);
}
EOF
if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_char_unsigned=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_char_unsigned=no
fi
rm -fr conftest*
fi

fi
fi

echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  cat >> confdefs.h <<\EOF
#define __CHAR_UNSIGNED__ 1
EOF

fi

echo $ac_n "checking size of char""... $ac_c" 1>&6
echo "configure:2047: checking size of char" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2055 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(char));
  exit(0);
}
EOF
if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_char=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_char=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_char" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
EOF


echo $ac_n "checking size of short""... $ac_c" 1>&6
echo "configure:2086: checking size of short" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2094 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(short));
  exit(0);
}
EOF
if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_short=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_short=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
EOF


echo $ac_n "checking size of int""... $ac_c" 1>&6
echo "configure:2125: checking size of int" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2133 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(int));
  exit(0);
}
EOF
if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_int=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_int=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_INT $ac_cv_sizeof_int
EOF


echo $ac_n "checking size of long""... $ac_c" 1>&6
echo "configure:2164: checking size of long" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2172 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(long));
  exit(0);
}
EOF
if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_long=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_long=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG $ac_cv_sizeof_long
EOF


echo $ac_n "checking size of long long""... $ac_c" 1>&6
echo "configure:2203: checking size of long long" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2211 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(long long));
  exit(0);
}
EOF
if { (eval echo configure:2222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_long_long=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_long_long=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
EOF


echo $ac_n "checking size of float""... $ac_c" 1>&6
echo "configure:2242: checking size of float" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2250 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(float));
  exit(0);
}
EOF
if { (eval echo configure:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_float=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_float=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_float" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_FLOAT $ac_cv_sizeof_float
EOF


echo $ac_n "checking size of double""... $ac_c" 1>&6
echo "configure:2281: checking size of double" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2289 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(double));
  exit(0);
}
EOF
if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_double=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_double=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_double" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
EOF


echo $ac_n "checking size of long double""... $ac_c" 1>&6
echo "configure:2320: checking size of long double" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2328 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(long double));
  exit(0);
}
EOF
if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_long_double=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_long_double=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
EOF


echo $ac_n "checking size of void *""... $ac_c" 1>&6
echo "configure:2359: checking size of void *" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2367 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(void *));
  exit(0);
}
EOF
if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_void_p=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_void_p=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
EOF



echo $ac_n "checking size of function pointer""... $ac_c" 1>&6
echo "configure:2399: checking size of function pointer" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_fn_p'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2407 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(void (*)(void)));
  exit(0);
}
EOF
if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_fn_p=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_fn_p=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_fn_p" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_FN_P $ac_cv_sizeof_fn_p
EOF


echo $ac_n "checking size of enum type""... $ac_c" 1>&6
echo "configure:2438: checking size of enum type" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_enum'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2446 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  enum color { red, blue, green };
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(enum color));
  exit(0);
}
EOF
if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_enum=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_enum=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_enum" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_ENUM $ac_cv_sizeof_enum
EOF


echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
echo "configure:2478: checking size of wchar_t" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2486 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(wchar_t));
  exit(0);
}
EOF
if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_wchar_t=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_wchar_t=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
EOF


echo $ac_n "checking current LOCALE""... $ac_c" 1>&6
echo "configure:2518: checking current LOCALE" >&5
if eval "test \"`echo '$''{'ac_cv_ctype_locale'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2526 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
main()
{
  char *loc;

  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  loc = setlocale(LC_CTYPE, "");
  fprintf(f, "%s\n", (loc == (char *) 0) ? "unknown" : loc);
  exit(0);
}
EOF
if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_ctype_locale=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_ctype_locale=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_ctype_locale" 1>&6
cat >> confdefs.h <<EOF
#define CTYPE_LOCALE "$ac_cv_ctype_locale"
EOF


if test $ac_cv_sizeof_long -eq 8; then
  cat >> confdefs.h <<\EOF
#define LONG_CARDINAL_TYPE unsigned long
EOF

  cat >> confdefs.h <<\EOF
#define LONG_INTEGER_TYPE long
EOF

elif test $ac_cv_sizeof_long_long -eq 8; then
  cat >> confdefs.h <<\EOF
#define LONG_CARDINAL_TYPE unsigned long long
EOF

  cat >> confdefs.h <<\EOF
#define LONG_INTEGER_TYPE long long
EOF

fi

if test $ac_cv_sizeof_double -eq 16; then
  cat >> confdefs.h <<\EOF
#define LONG_REAL_TYPE double
EOF

elif test $ac_cv_sizeof_long_double -eq 16; then
  cat >> confdefs.h <<\EOF
#define LONG_REAL_TYPE long double
EOF

fi

echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:2594: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_has_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2599 "configure"
#include "confdefs.h"
#include <stdlib.h>
int main() {
size_t i; i = 10;
; return 0; }
EOF
if { (eval echo configure:2606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_has_size_t="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_has_size_t="no"
fi
rm -f conftest*
fi
if test "$ac_cv_has_size_t" = "yes"; then
  cat >> confdefs.h <<\EOF
#define SIZE_T size_t
EOF

  echo "$ac_t""yes" 1>&6
else
  cat >> confdefs.h <<\EOF
#define SIZE_T unsigned
EOF

  echo "$ac_t""no -- using 'unsigned' instead" 1>&6
fi

echo $ac_n "checking whether using GNU libc header files""... $ac_c" 1>&6
echo "configure:2632: checking whether using GNU libc header files" >&5
if eval "test \"`echo '$''{'ac_cv_using_glibc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2637 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
#ifndef _GNU_TYPES_H
  &&;
#endif
; return 0; }
EOF
if { (eval echo configure:2646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_using_glibc="yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_using_glibc=="no"
fi
rm -f conftest*
fi
if test "$ac_cv_using_glibc" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_USING_GLIBC 1
EOF

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

echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:2668: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2673 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

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

echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF


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

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vprintf) || defined (__stub___vprintf)
choke me
#else
vprintf();
#endif

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

if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_VPRINTF 1
EOF

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

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

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__doprnt) || defined (__stub____doprnt)
choke me
#else
_doprnt();
#endif

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

if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_DOPRNT 1
EOF

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

fi

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

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

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

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


echo $ac_n "checking if definition of SIG_IGN is broken for C""... $ac_c" 1>&6
echo "configure:2870: checking if definition of SIG_IGN is broken for C" >&5
if eval "test \"`echo '$''{'ac_cv_decl_sig_ign_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2875 "configure"
#include "confdefs.h"
#include <signal.h>
int main() {
(void) signal(SIGPIPE, SIG_IGN)
; return 0; }
EOF
if { (eval echo configure:2882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_decl_sig_ign_broken=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_decl_sig_ign_broken=yes
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_decl_sig_ign_broken" 1>&6
if test $ac_cv_decl_sig_ign_broken = yes; then
    cat >> confdefs.h <<\EOF
#define SIG_IGN_BROKEN 1
EOF

fi


echo $ac_n "checking for Solaris 1 POSIX non-blocking I/O bug""... $ac_c" 1>&6
echo "configure:2903: checking for Solaris 1 POSIX non-blocking I/O bug" >&5
case "$host_os" in
  sunos4* | solaris1*)
	cat >> confdefs.h <<\EOF
#define HAS_SOLARIS1_NONBLOCKING_BUG 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
  *)
	echo "$ac_t""don't know -- assuming no" 1>&6
	;;
esac


echo $ac_n "checking for Solaris 1 gid_t size problem""... $ac_c" 1>&6
echo "configure:2919: checking for Solaris 1 gid_t size problem" >&5
case "$host_os" in
  sunos4* | solaris1*)
	cat >> confdefs.h <<\EOF
#define HAS_SOLARIS1_GID_T_SIZE_BUG 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
  *)
	echo "$ac_t""don't know -- assuming no" 1>&6
	;;
esac


echo $ac_n "checking for Solaris 2 send/recv bug on TCP sockets""... $ac_c" 1>&6
echo "configure:2935: checking for Solaris 2 send/recv bug on TCP sockets" >&5
case "$host_os" in
  solaris2*)
	cat >> confdefs.h <<\EOF
#define HAS_SOLARIS2_TCP_SOCKET_BUG 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
  *)
	echo "$ac_t""don't know -- assuming no" 1>&6
	;;
esac


echo $ac_n "checking how to build shared libraries""... $ac_c" 1>&6
echo "configure:2951: checking how to build shared libraries" >&5
# Set info about shared libraries.



# LDSHARED_FILE_EXT is the extension of shared libraries
# -- usually "so", "sl" on HP-UX
if test -z "$LDSHARED_FILE_EXT"
then
	case $host_os in
	hp*)   LDSHARED_FILE_EXT=sl;;
	*)     LDSHARED_FILE_EXT=so;;
	esac
fi
# LDSHARED_COMMAND is the ld *command* used to create shared library
# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
if test -z "$LDSHARED_COMMAND"
then
	case $host_os in
	aix*) LDSHARED_COMMAND="ld_so_aix \$(CC)";;
	irix5*) LDSHARED_COMMAND="ld -shared";;
	irix6*) LDSHARED_COMMAND="ld -n32 -shared -all";;
	sunos4*) LDSHARED_COMMAND="ld";;
	solaris*) LDSHARED_COMMAND="ld -G";;
	hp*) LDSHARED_COMMAND="ld -b";;
	osf*) LDSHARED_COMMAND="ld -shared -expect_unresolved \"*\"";;
	sysv4*) LDSHARED_COMMAND="ld -G";;
	nextstep*) LDSHARED_COMMAND='$(CC) $(CFLAGS) -nostdlib -r';;
	linux*) LDSHARED_COMMAND="cc -shared";;
	freebsd*) LDSHARED_COMMAND="ld -Bshareable";;
	sco*) LDSHARED_COMMAND="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
	*) ;;
	esac
fi
# CCSHARED_FLAGS are the C *flags* used to create objects to go into a shared
# library -- this is only needed for a few systems
if test -z "$CCSHARED_FLAGS"
then
	case $host_os in
	hp*) if test "$GCC" = yes;
		 then CCSHARED_FLAGS="-fpic";
		 else CCSHARED_FLAGS="+z";
		 fi;;
	irix6*) CCSHARED_FLAGS="-n32";;
	linux*) CCSHARED_FLAGS="-fpic";;
	freebsd*) CCSHARED_FLAGS="-fpic";;
	solaris*) if test "$GCC" = yes;
		   then CCSHARED_FLAGS="-fpic";
		   else CCSHARED_FLAGS="-KPIC";
		  fi;;
	sco*) CCSHARED_FLAGS="-KPIC -dy -Bdynamic";;
	esac
fi
if test "$LDSHARED_COMMAND" != ""; then
  echo "$ac_t""$LDSHARED_COMMAND with file extension of .$LDSHARED_FILE_EXT" 1>&6
  cat >> confdefs.h <<\EOF
#define PYTHON_USES_SHARED_LIBRARIES_FOR_EXTENSIONS 1
EOF

else
  echo "$ac_t""don't know" 1>&6
fi

echo $ac_n "checking whether to build shared library version of ILU kernel""... $ac_c" 1>&6
echo "configure:3015: checking whether to build shared library version of ILU kernel" >&5
# Check whether --enable-kernel-shared-library or --disable-kernel-shared-library was given.
if test "${enable_kernel_shared_library+set}" = set; then
  enableval="$enable_kernel_shared_library"
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_KERNEL_SHARED_LIBRARY 1
EOF

  echo "$ac_t""yes" 1>&6
fi
else
  echo "$ac_t""no, by default" 1>&6
fi


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

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


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

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

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

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

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

fi

if test "$ac_cv_ilu_socket_element_missing" = "" ; then
  echo "$ac_t""the OS supports BSD sockets" 1>&6
  cat >> confdefs.h <<\EOF
#define _HAS_SOCKETS 1
EOF

else
  echo "$ac_t""socket support is not provided" 1>&6
fi

echo $ac_n "checking to see if sys/socket.h provides prototypes for send and recv""... $ac_c" 1>&6
echo "configure:3191: checking to see if sys/socket.h provides prototypes for send and recv" >&5
cat >conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
int main(int ac, char **av){
 printf ("%p %p\n", &recv, &send);
 return 0;
}
EOF
rm -f conftest1.o
$ac_cv_prog_ANSI_C -c -o conftest1.o conftest.c 2>&5
if test -s "conftest1.o"; then
  cat >> confdefs.h <<\EOF
#define HAS_RECV_AND_SEND_PROTOTYPES 1
EOF

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


echo $ac_n "checking whether runtime/kernel/ilusock.h causes TCP_NODELAY to be defined""... $ac_c" 1>&6
echo "configure:3216: checking whether runtime/kernel/ilusock.h causes TCP_NODELAY to be defined" >&5
cat >conftest.c <<EOF
#include <stdio.h>
#include <unistd.h>
#include <ilusock.h>
int main(int ac, char **av){
 printf ("%s\n", TCP_NODELAY);
 return 0;
}
EOF
rm -f conftest1.o
$ac_cv_prog_ANSI_C -c -DILU_CONFIGURE_TIME -I$ILUSRC/runtime/kernel -o conftest1.o conftest.c 2>&5
if test -s "conftest1.o"; then
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
  echo $ac_n "checking whether including <netinet/tcp.h> causes TCP_NODELAY to be defined""... $ac_c" 1>&6
echo "configure:3233: checking whether including <netinet/tcp.h> causes TCP_NODELAY to be defined" >&5
  cat >conftest.c <<EOF
#include <stdio.h>
#include <unistd.h>
#include <ilusock.h>
#include <netinet/tcp.h>
int main(int ac, char **av){
 printf ("%s\n", TCP_NODELAY);
 return 0;
}
EOF
  rm -f conftest1.o
  $ac_cv_prog_ANSI_C -c -DILU_CONFIGURE_TIME -I$ILUSRC/runtime/kernel -o conftest1.o conftest.c 2>&5
  if test -s "conftest1.o"; then
    cat >> confdefs.h <<\EOF
#define ILU_NEEDS_NETINET_TCP_H_FOR_NODELAY 1
EOF

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


echo $ac_n "checking whether nanosleep is available""... $ac_c" 1>&6
echo "configure:3259: checking whether nanosleep is available" >&5
cat >conftest.c <<EOF
#include <stdio.h>
#include <unistd.h>
#include <time.h>
int main(int ac, char **av){
 struct timespec ts = { 0, 2000000 };
 nanosleep(&ts, NULL);
 return 0;
}
EOF
rm -f conftest1
$ac_cv_prog_ANSI_C -o conftest1 conftest.c 2>&5
if test -s "conftest1"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAS_NANOSLEEP 1
EOF

else
  echo "$ac_t""no" 1>&6
  echo $ac_n "checking whether adding -lposix4 makes nanosleep available""... $ac_c" 1>&6
echo "configure:3281: checking whether adding -lposix4 makes nanosleep available" >&5
  rm -f conftest1
  $ac_cv_prog_ANSI_C -o conftest1 conftest.c -lposix4 2>&5
  if test -s "conftest1"; then
    cat >> confdefs.h <<\EOF
#define ILU_NEEDS_POSIX4_FOR_NANOSLEEP 1
EOF

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

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

echo $ac_n "checking to see if unistd.h provides prototype for gethostname""... $ac_c" 1>&6
echo "configure:3300: checking to see if unistd.h provides prototype for gethostname" >&5
cat >conftest.c <<EOF
#include <stdio.h>
#include <unistd.h>
int main(int ac, char **av){
 char buf[2000];
 printf ("%x\n", &gethostname);
 return gethostname (buf, 2000);
 return 0;
}
EOF
rm -f conftest1.o
$ac_cv_prog_ANSI_C -c -o conftest1.o conftest.c 2>&5
if test -s "conftest1.o"; then
  cat >> confdefs.h <<\EOF
#define HAVE_GETHOSTNAME_PROTOTYPE 1
EOF

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

echo $ac_n "checking to see if unistd.h or stdio.h provides prototype for sys_errlist""... $ac_c" 1>&6
echo "configure:3324: checking to see if unistd.h or stdio.h provides prototype for sys_errlist" >&5
cat >conftest.c <<EOF
#include <stdio.h>
#include <unistd.h>
int main(int ac, char **av){
 printf ("%s\n", sys_errlist[1]);
 return 0;
}
EOF
rm -f conftest1.o
$ac_cv_prog_ANSI_C -c -o conftest1.o conftest.c 2>&5
if test -s "conftest1.o"; then
  cat >> confdefs.h <<\EOF
#define ILU_HAVE_SYS_ERRLIST_PROTOTYPE 1
EOF

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

echo $ac_n "checking fully-qualified domain name""... $ac_c" 1>&6
echo "configure:3346: checking fully-qualified domain name" >&5
if eval "test \"`echo '$''{'ac_cv_fqdn'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_fqdn=`sh ./fqdn.sh`
fi

echo "$ac_t""$ac_cv_fqdn" 1>&6
cat >> confdefs.h <<EOF
#define FULLY_QUALIFIED_DOMAIN_NAME $ac_cv_fqdn
EOF


echo $ac_n "checking for Xerox firewall handling""... $ac_c" 1>&6
echo "configure:3360: checking for Xerox firewall handling" >&5
using_xerox_firewall_handling=""
# Check whether --enable-xerox-firewall-handling or --disable-xerox-firewall-handling was given.
if test "${enable_xerox_firewall_handling+set}" = set; then
  enableval="$enable_xerox_firewall_handling"
  if test "$enableval" = "yes"; then
  if test "$ac_cv_fqdn" = "parc.xerox.com" ; then
    case $host_os in
      solaris* | sunos* )
        using_xerox_firewall_handling="yes"
        echo "$ac_t""yes" 1>&6
	;;
      *)
        echo "$ac_t""no -- not available for $host_os" 1>&6
        ;;
    esac
  else
    echo "$ac_t""no -- code not available" 1>&6
  fi
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no -- by default" 1>&6

fi

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

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

fi


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

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

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

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


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

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

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

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

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

fi

if test "$ac_cv_ilu_bsd_element_missing" = ""; then
  echo "$ac_t""the OS has sufficient BSD-ness for ILU purposes" 1>&6
  cat >> confdefs.h <<\EOF
#define _IS_BSD 1
EOF

else
  echo "$ac_t""the OS can\'t be thought of as BSD-compatible" 1>&6  
fi

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

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

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

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

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

fi

if test "$ac_cv_ilu_posix_element_missing" = ""; then
  echo "$ac_t""the OS has the necessary POSIX system calls" 1>&6
  cat >> confdefs.h <<\EOF
#define _IS_POSIX 1
EOF

else
  { echo "configure: error: ILU requires a POSIX-compatible OS" 1>&2; exit 1; }
fi



zlib_library=""
zlib_include_dir=""
echo $ac_n "checking for zlib compression library""... $ac_c" 1>&6
echo "configure:3686: checking for zlib compression library" >&5
# Check whether --with-zlib or --without-zlib was given.
if test "${with_zlib+set}" = set; then
  withval="$with_zlib"
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-zlib=LIB:INCLUDE_DIR" 1>&2; exit 1; }
else
  zlib_library="`echo ${withval} | sed -e 's/:.*$//'`"
  zlib_include_dir="`echo ${withval} | sed -e 's/^.*://'`"
  if test "x$zlib_library" = "x" ; then
    { echo "configure: error: can't find zlib library from $withval" 1>&2; exit 1; }
    zlib_include_dir=""
  elif test "x$zlib_include_dir" = "x" ; then
    { echo "configure: error: can't find zlib include dir from $withval" 1>&2; exit 1; }
    zlib_library=""
  elif test \! -r $zlib_library ; then
    { echo "configure: error: can't access zlib library $zlib_library" 1>&2; exit 1; }
    zlib_include_dir=""
    zlib_library=""
  elif test \! -r ${zlib_include_dir}/zlib.h ; then
    { echo "configure: error: can't access zlib include directory $zlib_include_dir" 1>&2; exit 1; }
    zlib_include_dir=""
    zlib_library=""
  else
    echo "$ac_t""yes -- library $zlib_library, include dir $zlib_include_dir" 1>&6
    ILU_ZLIB_LIBRARY="$zlib_library"
    ILU_ZLIB_INCLUDE_DIR="$zlib_include_dir"
  fi
fi
else
  echo "$ac_t""no, by default" 1>&6
fi




rsaref_library=""
rsaref_parent_dir=""
echo $ac_n "checking for RSAREF-2.0 library""... $ac_c" 1>&6
echo "configure:3727: checking for RSAREF-2.0 library" >&5
# Check whether --with-rsaref or --without-rsaref was given.
if test "${with_rsaref+set}" = set; then
  withval="$with_rsaref"
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-rsaref=LIB:INSTALL_DIR" 1>&2; exit 1; }
else
  rsaref_library="`echo ${withval} | sed -e 's/:.*$//'`"
  rsaref_parent_dir="`echo ${withval} | sed -e 's/^.*://'`"
  if test "x$rsaref_library" = "x" ; then
    { echo "configure: error: can't find rsaref library from $withval" 1>&2; exit 1; }
    rsaref_parent_dir=""
  elif test "x$rsaref_parent_dir" = "x" ; then
    { echo "configure: error: can't find rsaref install dir from $withval" 1>&2; exit 1; }
    rsaref_library=""
  elif test \! -r $rsaref_library ; then
    { echo "configure: error: can't access rsaref library $rsaref_library" 1>&2; exit 1; }
    rsaref_parent_dir=""
    rsaref_library=""
  elif test \! -r ${rsaref_parent_dir}/source/rsa.h ; then
    { echo "configure: error: can't access rsaref install directory $rsaref_parent_dir" 1>&2; exit 1; }
    rsaref_parent_dir=""
    rsaref_library=""
  else
    echo "$ac_t""yes -- library $rsaref_library, source dir $rsaref_parent_dir/source" 1>&6
    RSAREF_LIB="$rsaref_library"
    RSAREF_DIR="$rsaref_parent_dir"
  fi
fi
else
  echo "$ac_t""not given" 1>&6
fi




libdes_library=""
libdes_include_dir=""
echo $ac_n "checking for libdes 3.0 library""... $ac_c" 1>&6
echo "configure:3768: checking for libdes 3.0 library" >&5
# Check whether --with-libdes or --without-libdes was given.
if test "${with_libdes+set}" = set; then
  withval="$with_libdes"
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-libdes=LIB:INCLUDE_DIR" 1>&2; exit 1; }
else
  libdes_library="`echo ${withval} | sed -e 's/:.*$//'`"
  libdes_include_dir="`echo ${withval} | sed -e 's/^.*://'`"
  if test "x$libdes_library" = "x" ; then
    { echo "configure: error: can't find libdes library from $withval" 1>&2; exit 1; }
    libdes_include_dir=""
  elif test "x$libdes_include_dir" = "x" ; then
    { echo "configure: error: can't find libdes install dir from $withval" 1>&2; exit 1; }
    libdes_library=""
  elif test \! -r $libdes_library ; then
    { echo "configure: error: can't access libdes library $libdes_library" 1>&2; exit 1; }
    libdes_include_dir=""
    libdes_library=""
  elif test \! -r ${libdes_include_dir}/des.h ; then
    { echo "configure: error: can't access libdes include directory $libdes_include_dir" 1>&2; exit 1; }
    libdes_include_dir=""
    libdes_library=""
  else
    echo "$ac_t""yes -- library $libdes_library, include dir $libdes_include_dir" 1>&6
    LIBDES_LIB="$libdes_library"
    LIBDES_INCL_DIR="$libdes_include_dir"
  fi
fi
else
  echo "$ac_t""not given" 1>&6
fi



echo "$ac_t""*" 1>&6
echo "$ac_t""*  checking ILU specifics..." 1>&6
echo "$ac_t""*" 1>&6



echo $ac_n "checking whether to include support for debugging""... $ac_c" 1>&6
echo "configure:3812: checking whether to include support for debugging" >&5
# Check whether --enable-debugging or --disable-debugging was given.
if test "${enable_debugging+set}" = set; then
  enableval="$enable_debugging"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ENABLE_DEBUGGING 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  cat >> confdefs.h <<\EOF
#define ENABLE_DEBUGGING 1
EOF

echo "$ac_t""yes, by default" 1>&6
fi



echo $ac_n "checking whether to omit ILU prefix from new ISL keywords""... $ac_c" 1>&6
echo "configure:3836: checking whether to omit ILU prefix from new ISL keywords" >&5
# Check whether --enable-new-keywords-plain or --disable-new-keywords-plain was given.
if test "${enable_new_keywords_plain+set}" = set; then
  enableval="$enable_new_keywords_plain"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_USE_NEW_KEYWORDS 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no, by default" 1>&6
fi





echo $ac_n "checking whether to include support for OS threads""... $ac_c" 1>&6
echo "configure:3858: checking whether to include support for OS threads" >&5
case "$host_os" in
  solaris2.{1*,2*,3*,4*})
	THREADING="Solaris2"
	THREADDEFINES="-D_REENTRANT"
	SOLARIS2LIBS="-lthread"
	POSIXLIBS=""
	DCELIBS=""
	IRIXLIBS=""
	;;
  solaris2.*)
	THREADING="Solaris2"
	THREADDEFINES="-D_REENTRANT"
	SOLARIS2LIBS="-lthread"
	POSIXLIBS="-lpthread"
	DCELIBS="-lpthread -lposix4"
	IRIXLIBS=""
	;;
  osf3.*)
	THREADING="DCE"
	THREADDEFINES="-D_REENTRANT"
	SOLARIS2LIBS=""
	POSIXLIBS=""
	DCELIBS="-lpthreads -lmach -lc_r -lc -lm"
	IRIXLIBS=""
	;;
  osf4.*)
	THREADING="POSIX"
	THREADDEFINES="-D_REENTRANT"
	SOLARIS2LIBS=""
	POSIXLIBS="-lpthread -lmach -lexc -lc"
	DCELIBS="-lpthreads -lpthread -lmach -lexc -lc"
	IRIXLIBS=""
	;;
  irix6.[23])
	THREADING="POSIX"
	THREADDEFINES=""
	SOLARIS2LIBS=""
	POSIXLIBS="-Wf,-woff,85 -lpthread"
	DCELIBS=""
	IRIXLIBS=""
	;;
  irix6.[4567])
	THREADING="POSIX"
	THREADDEFINES=""
	SOLARIS2LIBS=""
	POSIXLIBS="-lpthread"
	DCELIBS=""
	IRIXLIBS=""
	;;
  aix4.1.4.*,aix4.2*,aix4.3*,aix4.4*)
	THREADING="POSIX"
	THREADDEFINES=""
	SOLARIS2LIBS=""
	POSIXLIBS=""
	DCELIBS=""
	IRIXLIBS=""
	;;
  linux-gnu*)
        if test -s /usr/lib/libpthread.a ; then
	  THREADING="POSIX"
	  THREADDEFINES=""
	  SOLARIS2LIBS=""
	  POSIXLIBS="-lpthread"
	  DCELIBS=""
	  IRIXLIBS=""
        fi
        ;;
  *)
	THREADING=""
	THREADDEFINES=""
	;;
esac

# Check whether --enable-os-threads or --disable-os-threads was given.
if test "${enable_os_threads+set}" = set; then
  enableval="$enable_os_threads"
  if test "$enableval" = "yes"; then
  if test "$THREADING" = "Solaris2"; then
    echo "$ac_t""yes -- Solaris2 threads" 1>&6
    cat >> confdefs.h <<\EOF
#define ILU_SOLARIS2_THREADS 1
EOF

    LIBS="${LIBS} ${SOLARIS2LIBS}"
  elif test "$THREADING" = "POSIX"; then
    echo "$ac_t""yes -- Posix threads" 1>&6
    cat >> confdefs.h <<\EOF
#define ILU_POSIX_THREADS 1
EOF

    LIBS="${LIBS} ${POSIXLIBS}"
  elif test "$THREADING" = "DCE"; then
    echo "$ac_t""yes -- DCE threads" 1>&6
    cat >> confdefs.h <<\EOF
#define ILU_DCE_THREADS 1
EOF

    LIBS="${LIBS} ${DCELIBS}"
  else
    echo "$ac_t""no -- don't know which thread package to use for $host_os" 1>&6
  fi
elif test "$enableval" = "solaris2"; then
  echo "$ac_t""yes -- Solaris2 threads" 1>&6
  cat >> confdefs.h <<\EOF
#define ILU_SOLARIS2_THREADS 1
EOF

  LIBS="${LIBS} ${SOLARIS2LIBS}"
elif test "$enableval" = "posix"; then
  echo "$ac_t""yes -- Posix threads" 1>&6
  cat >> confdefs.h <<\EOF
#define ILU_POSIX_THREADS 1
EOF

  LIBS="${LIBS} ${POSIXLIBS}"
elif test "$enableval" = "dce"; then
  echo "$ac_t""yes -- DCE threads" 1>&6
  cat >> confdefs.h <<\EOF
#define ILU_DCE_THREADS 1
EOF

  LIBS="${LIBS} ${DCELIBS}"
elif test "$enableval" = "no"; then
  echo "$ac_t""no" 1>&6
elif test "$enableval" = ""; then
  echo "$ac_t""no" 1>&6
else
  echo "$ac_t""no -- don't recognize thread type $enableval" 1>&6
fi
else
  if test "$THREADING" = ""; then
  echo "$ac_t""no" 1>&6
elif test "$THREADING" = "POSIX"; then
  echo "$ac_t""yes -- Posix threads" 1>&6
  cat >> confdefs.h <<\EOF
#define ILU_POSIX_THREADS 1
EOF

  LIBS="${LIBS} ${POSIXLIBS}"
elif test "$THREADING" = "DCE"; then
  echo "$ac_t""yes -- DCE threads" 1>&6
  cat >> confdefs.h <<\EOF
#define ILU_DCE_THREADS 1
EOF

  LIBS="${LIBS} ${DCELIBS}"
elif test "$THREADING" = "Solaris2"; then
  echo "$ac_t""yes -- Solaris2 threads" 1>&6
  cat >> confdefs.h <<\EOF
#define ILU_SOLARIS2_THREADS 1
EOF

  LIBS="${LIBS} ${SOLARIS2LIBS}"
else
  echo "$ac_t""no" 1>&6
fi
fi
  


ac_cv_protocols=""
ac_cv_transports=""
default_protocol=""

echo $ac_n "checking whether to include support for the ILU sunrpc protocol""... $ac_c" 1>&6
echo "configure:4024: checking whether to include support for the ILU sunrpc protocol" >&5
# Check whether --enable-sunrpc-protocol or --disable-sunrpc-protocol was given.
if test "${enable_sunrpc_protocol+set}" = set; then
  enableval="$enable_sunrpc_protocol"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_SUNRPC_PROTOCOL 1
EOF

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

  ac_cv_protocols="$ac_cv_protocols sunrpc"
  if test "$default_protocol" = "" ; then
    default_protocol="sunrpc"
  fi
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  cat >> confdefs.h <<\EOF
#define ADD_SUNRPC_PROTOCOL 1
EOF

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

ac_cv_protocols="$ac_cv_protocols sunrpc"
if test "$default_protocol" = "" ; then
  default_protocol="sunrpc"
fi
echo "$ac_t""yes, by default" 1>&6
fi


echo $ac_n "checking whether to include support for the Xerox Courier protocol""... $ac_c" 1>&6
echo "configure:4063: checking whether to include support for the Xerox Courier protocol" >&5
# Check whether --enable-courier-protocol or --disable-courier-protocol was given.
if test "${enable_courier_protocol+set}" = set; then
  enableval="$enable_courier_protocol"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_COURIER_PROTOCOL 1
EOF

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

  ac_cv_protocols="$ac_cv_protocols courier"
  if test "$default_protocol" = "" ; then
    default_protocol="courier"
  fi
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


using_iiop_protocol=""
echo $ac_n "checking whether to include support for the CORBA IIOP protocol""... $ac_c" 1>&6
echo "configure:4091: checking whether to include support for the CORBA IIOP protocol" >&5
# Check whether --enable-corba-iiop or --disable-corba-iiop was given.
if test "${enable_corba_iiop+set}" = set; then
  enableval="$enable_corba_iiop"
  if test "$enableval" = "yes"; then
  using_iiop_protocol="yes"
  cat >> confdefs.h <<\EOF
#define ADD_IIOP_PROTOCOL 1
EOF

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

  ac_cv_protocols="$ac_cv_protocols iiop"
  if test "$default_protocol" = "" ; then
    default_protocol="iiop"
  fi
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
   cat >> confdefs.h <<\EOF
#define ADD_IIOP_PROTOCOL 1
EOF

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

  using_iiop_protocol="yes"
  ac_cv_protocols="$ac_cv_protocols iiop"
  if test "$default_protocol" = "" ; then
    default_protocol="iiop"
  fi
  echo "$ac_t""yes, by default" 1>&6

fi


echo $ac_n "checking whether to include support for the World Wide Web HTTP protocol""... $ac_c" 1>&6
echo "configure:4133: checking whether to include support for the World Wide Web HTTP protocol" >&5
# Check whether --enable-http-protocol or --disable-http-protocol was given.
if test "${enable_http_protocol+set}" = set; then
  enableval="$enable_http_protocol"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_HTTP_PROTOCOL 1
EOF

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

  ac_cv_protocols="$ac_cv_protocols http"
  if test "$default_protocol" = "" ; then
    default_protocol="http"
  fi
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


using_w3ng_protocol=""
echo $ac_n "checking whether to include support for the W3C HTTP-NG protocol""... $ac_c" 1>&6
echo "configure:4161: checking whether to include support for the W3C HTTP-NG protocol" >&5
# Check whether --enable-w3ng-protocol or --disable-w3ng-protocol was given.
if test "${enable_w3ng_protocol+set}" = set; then
  enableval="$enable_w3ng_protocol"
  if test "$enableval" = "yes"; then
  using_w3ng_protocol="yes"
  cat >> confdefs.h <<\EOF
#define ADD_W3NG_PROTOCOL 1
EOF

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

  ac_cv_protocols="$ac_cv_protocols w3ng"
  if test "$default_protocol" = "" ; then
    default_protocol="w3ng"
  fi
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


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

  echo $ac_n "checking whether to allow HTTP-NG protocol to carry arbitrary ILU objects""... $ac_c" 1>&6
echo "configure:4191: checking whether to allow HTTP-NG protocol to carry arbitrary ILU objects" >&5
  # Check whether --enable-w3ng-ilu-objects or --disable-w3ng-ilu-objects was given.
if test "${enable_w3ng_ilu_objects+set}" = set; then
  enableval="$enable_w3ng_ilu_objects"
  if test "$enableval" = yes; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
#define ILU_W3NG_ALLOW_ILU_URLS 1
EOF

  elif test "$enableval" = no; then
    echo "$ac_t""no" 1>&6
  else
    echo "$ac_t""no" 1>&6
  fi
else
  echo "$ac_t""yes -- by default" 1>&6
   cat >> confdefs.h <<\EOF
#define ILU_W3NG_ALLOW_ILU_URLS 1
EOF

fi


  echo $ac_n "checking whether to use relative object ih passing in the HTTP-NG protocol""... $ac_c" 1>&6
echo "configure:4216: checking whether to use relative object ih passing in the HTTP-NG protocol" >&5
  # Check whether --enable-w3ng-relative-ih-passing or --disable-w3ng-relative-ih-passing was given.
if test "${enable_w3ng_relative_ih_passing+set}" = set; then
  enableval="$enable_w3ng_relative_ih_passing"
  if test "$enableval" = yes; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
#define ILU_W3NG_RELATIVE_IH_PASSING 1
EOF

  elif test "$enableval" = no; then
    echo "$ac_t""no" 1>&6
  else
    echo "$ac_t""no" 1>&6
  fi
else
  echo "$ac_t""no -- by default" 1>&6
fi


fi

echo $ac_n "checking whether to include support for the Java RMI protocol""... $ac_c" 1>&6
echo "configure:4239: checking whether to include support for the Java RMI protocol" >&5
# Check whether --enable-javarmi-protocol or --disable-javarmi-protocol was given.
if test "${enable_javarmi_protocol+set}" = set; then
  enableval="$enable_javarmi_protocol"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_JAVARMI_PROTOCOL 1
EOF

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

  ac_cv_protocols="$ac_cv_protocols javarmi"
  if test "$default_protocol" = "" ; then
    default_protocol="javarmi"
  fi
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi




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

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

  echo "$ac_t""including support for ILU sunrpc as default protocol" 1>&6
  default_protocol="sunrpc"
fi
echo $ac_n "checking whether a default protocol is explicitly specified""... $ac_c" 1>&6
echo "configure:4280: checking whether a default protocol is explicitly specified" >&5
ac_help="$ac_help
  --with-default-protocol=PROTOCOL     Specify default wire protocol"
# Check whether --with-default-protocol or --without-default-protocol was given.
if test "${with_default_protocol+set}" = set; then
  withval="$with_default_protocol"
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-default-protocol=PROTOCOL" 1>&2; exit 1; }
else
  default_protocol="$withval"
  echo "$ac_t""yes" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


cat >> confdefs.h <<EOF
#define ILU_DEFAULT_PROTOCOL_INFO "$default_protocol"
EOF

echo "$ac_t""The default RPC protocol will be "$default_protocol"." 1>&6




echo $ac_n "checking whether to include support for the Sun RPC record-marking transport layer""... $ac_c" 1>&6
echo "configure:4309: checking whether to include support for the Sun RPC record-marking transport layer" >&5
# Check whether --enable-sunrpcrm-transport or --disable-sunrpcrm-transport was given.
if test "${enable_sunrpcrm_transport+set}" = set; then
  enableval="$enable_sunrpcrm_transport"
  if test "$enableval" = "yes" ; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_SUNRPCRM_TRANSPORT 1
EOF

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

else
  echo "$ac_t""no" 1>&6
fi
else
   echo "$ac_t""yes, by default" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_SUNRPCRM_TRANSPORT 1
EOF

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


fi


echo $ac_n "checking whether to include support for the W3C multiplexing record-marking transport layer""... $ac_c" 1>&6
echo "configure:4341: checking whether to include support for the W3C multiplexing record-marking transport layer" >&5
# Check whether --enable-w3mux-transport or --disable-w3mux-transport was given.
if test "${enable_w3mux_transport+set}" = set; then
  enableval="$enable_w3mux_transport"
  if test "$enableval" = "yes" ; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_W3MUX_TRANSPORT 1
EOF

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

else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no, by default" 1>&6
fi


echo $ac_n "checking whether to include support for the batching transport layer""... $ac_c" 1>&6
echo "configure:4364: checking whether to include support for the batching transport layer" >&5
# Check whether --enable-batching-transport or --disable-batching-transport was given.
if test "${enable_batching_transport+set}" = set; then
  enableval="$enable_batching_transport"
  if test "$enableval" = "yes" ; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_BATCHING_TRANSPORT 1
EOF

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

else
  echo "$ac_t""no" 1>&6
fi
else
   echo "$ac_t""no, by default" 1>&6 
fi


echo $ac_n "checking whether to include support for the TCP/IP transport layer""... $ac_c" 1>&6
echo "configure:4387: checking whether to include support for the TCP/IP transport layer" >&5
# Check whether --enable-tcp-transport or --disable-tcp-transport was given.
if test "${enable_tcp_transport+set}" = set; then
  enableval="$enable_tcp_transport"
  if test "$enableval" = "yes" -a "$ac_cv_ilu_socket_element_missing" = ""; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_TCPSOCKET_TRANSPORT 1
EOF

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

  ac_cv_transports="$ac_cv_transports tcp"
else
  echo "$ac_t""no -- no sockets" 1>&6
fi
else
  if test "$ac_cv_ilu_socket_element_missing" = ""; then
  echo "$ac_t""yes, by default" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_TCPSOCKET_TRANSPORT 1
EOF

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

  ac_cv_transports="$ac_cv_transports tcp"
else
  echo "$ac_t""no -- no sockets" 1>&6
fi
fi


echo $ac_n "checking whether to include support for the UDP/IP transport layer""... $ac_c" 1>&6
echo "configure:4424: checking whether to include support for the UDP/IP transport layer" >&5
# Check whether --enable-udp-transport or --disable-udp-transport was given.
if test "${enable_udp_transport+set}" = set; then
  enableval="$enable_udp_transport"
  if test "$enableval" = "yes" -a "$ac_cv_ilu_socket_element_missing" = ""; then
  cat >> confdefs.h <<\EOF
#define ADD_UDPSOCKET_TRANSPORT 1
EOF

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

  ac_cv_transports="$ac_cv_transports udp"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no, by default, it is broken right now" 1>&6
fi


echo $ac_n "checking whether to include support for the XNS SPP transport layer""... $ac_c" 1>&6
echo "configure:4448: checking whether to include support for the XNS SPP transport layer" >&5
# Check whether --enable-xnsspp-transport or --disable-xnsspp-transport was given.
if test "${enable_xnsspp_transport+set}" = set; then
  enableval="$enable_xnsspp_transport"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_XNSSPP_TRANSPORT 1
EOF

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

  ac_cv_transports="$ac_cv_transports udp"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no, by default" 1>&6
fi


echo $ac_n "checking whether to include support for the GSS secure transport layer""... $ac_c" 1>&6
echo "configure:4472: checking whether to include support for the GSS secure transport layer" >&5


secure_transport="no"
# Check whether --enable-security or --disable-security was given.
if test "${enable_security+set}" = set; then
  enableval="$enable_security"
  if test "$enableval" = "yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_SECURE_TRANSPORT 1
EOF

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

  GSS_LIBRARIES="`pwd`/../GSS/kernel/libgss.a"
  GSS_INCLUDE_DIR="`pwd`/../GSS/kernel"
  cat >> confdefs.h <<\EOF
#define USING_ILUGSS 1
EOF

  secure_transport="yes"
elif test "$enableval" = "no"; then
  echo "$ac_t""no" 1>&6
else
  echo "$ac_t""yes -- GSS libs in $enableval" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_SECURE_TRANSPORT 1
EOF

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

  GSS_LIBRARIES="$enableval"
  GSS_INCLUDE_DIR=`echo ${enableval} | sed -e 's;/[^/]*$;;'`
  secure_transport="yes"
fi
else
  echo "$ac_t""no, by default" 1>&6
fi


echo $ac_n "checking whether to include support for the zlib compression transport layer""... $ac_c" 1>&6
echo "configure:4518: checking whether to include support for the zlib compression transport layer" >&5
# Check whether --enable-zlib-transport or --disable-zlib-transport was given.
if test "${enable_zlib_transport+set}" = set; then
  enableval="$enable_zlib_transport"
  if test "$enableval" = "yes"; then
  if test "x$zlib_library" = "x" -o "x$zlib_include_dir" = "x" ; then
    echo "$ac_t""no -- can't find zlib library or include file" 1>&6
  else
    echo "$ac_t""yes -- using $zlib_library and $zlib_include_dir" 1>&6
    cat >> confdefs.h <<\EOF
#define ILU_ZLIB_TRANSPORT 1
EOF

  fi
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no, by default" 1>&6
fi




if test "$ac_cv_transports" = "" -a "$ac_cv_ilu_socket_element_missing" = ""; then
  cat >> confdefs.h <<\EOF
#define ADD_TCP_TRANSPORT 1
EOF

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

  echo "$ac_t""including support for TCP/IP, by default" 1>&6
fi ;
if test "$default_protocol" = "sunrpc" -o "$default_protocol" = "courier" ; then
   default_transport='"sunrpcrm", "tcp_0_0"' ;
elif test "$default_protocol" = "http" -o "$default_protocol" = "iiop" ; then
   default_transport='"tcp_0_0"' ;
elif test "$default_protocol" = "w3ng" ; then
   default_transport='"sunrpcrm", "tcp_0_0"' ;
fi

cat >> confdefs.h <<EOF
#define ILU_DEFAULT_TRANSPORT_INFO $default_transport
EOF

echo "$ac_t""The default RPC transport stack will be $default_transport." 1>&6


echo "$ac_t""Using relaxed matching for computation of singleton cinfo." 1>&6
cat >> confdefs.h <<\EOF
#define ILU_RELAXED_SINGLETON_CHECKING 1
EOF



needs_bignum_library=""

echo $ac_n "checking whether to include support for use of ILU with ANSI C""... $ac_c" 1>&6
echo "configure:4578: checking whether to include support for use of ILU with ANSI C" >&5
# Check whether --enable-c-support or --disable-c-support was given.
if test "${enable_c_support+set}" = set; then
  enableval="$enable_c_support"
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_C_LANGUAGE 1
EOF

  echo "$ac_t""yes" 1>&6
  needs_bignum_library="ANSI C"
fi
else
  echo "$ac_t""yes, by default" 1>&6
 cat >> confdefs.h <<\EOF
#define ADD_C_LANGUAGE 1
EOF

 needs_bignum_library="ANSI C"

fi


echo $ac_n "checking whether to build shared library version of C runtime""... $ac_c" 1>&6
echo "configure:4604: checking whether to build shared library version of C runtime" >&5
# Check whether --enable-c-shared-library or --disable-c-shared-library was given.
if test "${enable_c_shared_library+set}" = set; then
  enableval="$enable_c_shared_library"
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_C_SHARED_LIBRARY 1
EOF

  echo "$ac_t""yes" 1>&6
fi
else
  echo "$ac_t""no, by default" 1>&6
fi


echo $ac_n "checking whether to include original ILU support for use of ILU with C++""... $ac_c" 1>&6
echo "configure:4623: checking whether to include original ILU support for use of ILU with C++" >&5
# Check whether --enable-old-cplusplus-support or --disable-old-cplusplus-support was given.
if test "${enable_old_cplusplus_support+set}" = set; then
  enableval="$enable_old_cplusplus_support"
  if test "$enableval" = yes; then
  cat >> confdefs.h <<\EOF
#define ADD_ILU_CPLUSPLUS_LANGUAGE 1
EOF

  echo "$ac_t""yes" 1>&6
  needs_bignum_library="old C++"
  for ac_prog in $CCC CC cxx c++ g++
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4639: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$CXX" in
  /*)
  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_CXX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
CXX="$ac_cv_path_CXX"
if test -n "$CXX"; then
  echo "$ac_t""$CXX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$CXX" && break
done
test -n "$CXX" || CXX=""""

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

test -n "$CXX" && break
done
test -n "$CXX" || CXX=""""

if test "$CXX" != ""; then
  echo "$ac_t""Original ILU-style C++ support will be included." 1>&6
  needs_bignum_library="old C++"
  cat >> confdefs.h <<\EOF
#define ADD_ILU_CPLUSPLUS_LANGUAGE 1
EOF

fi
fi


CORBA_CPP_MAPPING=""
echo $ac_n "checking whether to include newer CORBA-style support for use of ILU with C++""... $ac_c" 1>&6
echo "configure:4728: checking whether to include newer CORBA-style support for use of ILU with C++" >&5
# Check whether --enable-corba-cplusplus-support or --disable-corba-cplusplus-support was given.
if test "${enable_corba_cplusplus_support+set}" = set; then
  enableval="$enable_corba_cplusplus_support"
  if test "$enableval" = yes; then
  cat >> confdefs.h <<\EOF
#define ADD_CORBA_CPLUSPLUS_LANGUAGE 1
EOF

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

test -n "$CXX" && break
done
test -n "$CXX" || CXX=""""

  needs_bignum_library="CORBA C++"
  CORBA_CPP_MAPPING="yes"
elif test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_CORBA_CPLUSPLUS_LANGUAGE 1
EOF

  echo "$ac_t""$enableval" 1>&6
  CXX="$enableval"
  needs_bignum_library="CORBA C++"
  CORBA_CPP_MAPPING="yes"
fi
else
  echo "$ac_t""no" 1>&6

fi


if test "$CORBA_CPP_MAPPING" != "" ; then


echo $ac_n "checking mapping to use for CORBA C++""... $ac_c" 1>&6
echo "configure:4799: checking mapping to use for CORBA C++" >&5
# Check whether --with-cplusplus-mapping or --without-cplusplus-mapping was given.
if test "${with_cplusplus_mapping+set}" = set; then
  withval="$with_cplusplus_mapping"
  if test "$withval" = Namespaces; then
  cat >> confdefs.h <<\EOF
#define CPLUSPLUSMAPPING_NAMESPACES 1
EOF

  echo "$ac_t""Namespaces" 1>&6
elif test "$withval" = NestedClasses; then
  cat >> confdefs.h <<\EOF
#define CPLUSPLUSMAPPING_NESTEDCLASSES 1
EOF

  echo "$ac_t""NestedClasses" 1>&6
elif test "$withval" = Underscores; then
  echo "$ac_t""Underscores" 1>&6
else
  { echo "configure: error: Usage:  ./configure --with-cplusplus-mapping=CPPMAPPING" 1>&2; exit 1; }
fi
fi




if test "${with_cplusplus_mapping+set}" != set; then

cat >conftestns.cpp <<EOF
#if (defined( _MSC_VER) || defined( __GNUC__) || defined(__SUNPRO_CC))
#error
#endif
namespace test {}
EOF
rm -f conftestns.o
$CXX -o conftestns.o -c conftestns.cpp 2>&5
if test -s "conftestns.o"; then
  cat >> confdefs.h <<\EOF
#define CPLUSPLUSMAPPING_NAMESPACES 1
EOF

  echo "$ac_t""Namespaces" 1>&6
else
cat >conftestnested.cpp <<EOF
#if (defined( _MSC_VER))
#error
#endif
class test { class intest {};};
EOF
rm -f conftestnested.o
$CXX -o conftestnested.o -c conftestnested.cpp 2>&5
if test -s "conftestnested.o"; then
  cat >> confdefs.h <<\EOF
#define CPLUSPLUSMAPPING_NESTEDCLASSES 1
EOF

  echo "$ac_t""NestedClasses" 1>&6
else
  echo "$ac_t""Underscores" 1>&6
fi
fi

fi
fi

echo $ac_n "checking whether to build shared library version of C++ runtime""... $ac_c" 1>&6
echo "configure:4865: checking whether to build shared library version of C++ runtime" >&5
# Check whether --enable-c-shared-library or --disable-c-shared-library was given.
if test "${enable_c_shared_library+set}" = set; then
  enableval="$enable_c_shared_library"
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_CPLUSPLUS_SHARED_LIBRARY 1
EOF

  echo "$ac_t""yes" 1>&6
fi
else
  echo "$ac_t""no, by default" 1>&6
fi


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

echo $ac_n "checking whether to include support for use of ILU with Java""... $ac_c" 1>&6
echo "configure:4916: checking whether to include support for use of ILU with Java" >&5

# Check whether --enable-java-support or --disable-java-support was given.
if test "${enable_java_support+set}" = set; then
  enableval="$enable_java_support"
  if test "$enableval" = yes; then
  echo "$ac_t""perhaps..." 1>&6
  if test "$JAVA" = ""; then
    { echo "configure: error: Java interpreter not visible.  Use --enable-java-support=JAVAHOME." 1>&2; exit 1; }
  else
    JAVAHOME=`echo $JAVA | sed -e 's;/bin/java$;;'`
    java_inclusion="possible";
  fi
elif test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  echo "$ac_t""perhaps..." 1>&6
  java_inclusion="possible";
  JAVAHOME="$enableval"
fi
else
  echo "$ac_t""perhaps (by default)..." 1>&6
if test "$JAVA" = ""; then
  echo "$ac_t""No Java support -- can't find java executable." 1>&6
else
  JAVAHOME=`echo $JAVA | sed -e 's;/bin/java$;;'`
  java_inclusion="possible";
fi
fi




if test "$java_inclusion" = "possible" ; then
  echo $ac_n "checking for good Java installation""... $ac_c" 1>&6
echo "configure:4951: checking for good Java installation" >&5
  os_name=`echo $host_os | sed -e 's/[0-9].*$//'`
  if test ! -x ${JAVAHOME}/bin/javac ; then
    echo "$ac_t""no -- can't find javac executable." 1>&6
    java_inclusion = ""
  elif test ! -x ${JAVAHOME}/bin/javah ; then
    echo "$ac_t""no -- can't find javah executable." 1>&6
    java_inclusion = ""
  elif test ! -d ${JAVAHOME}/include/${os_name} ; then
      if test ! -d ${JAVAHOME}/include/genunix ; then
        echo "$ac_t""no -- Can't see machine-specific Java includes in ${JAVAHOME}/include/${os_name}/ or ${JAVAHOME}/include/${os_name}/" 1>&6
        java_inclusion = ""
      else
        echo "$ac_t""good installation in ${JAVAHOME}..." 1>&6
        JAVA_MACH_DEP_INCLUDES="${JAVAHOME}/include/genunix"
        JAVA_OLD_MACH_DEP_INCLUDES="${JAVAHOME}/include-old/genunix"
      fi
  else
    JAVA_MACH_DEP_INCLUDES="${JAVAHOME}/include/${os_name}"
    JAVA_OLD_MACH_DEP_INCLUDES="${JAVAHOME}/include-old/${os_name}"
    echo "$ac_t""good installation in ${JAVAHOME}..." 1>&6
  fi
fi

if test "$java_inclusion" = "possible" ; then
 echo $ac_n "checking Java version""... $ac_c" 1>&6
echo "configure:4977: checking Java version" >&5
 JAVAVERSION=`${JAVAHOME}/bin/java -version 2>&1 | sed -e 's;^.*\"\(.*\)\".*$;\1;'`
 case "$JAVAVERSION" in
   1.0* | "kern:02/29/29-19:34" | "2.1 (Sun 1.0.2)" | "ism:09/19/19-17:51")
	echo "$ac_t""Java $JAVAVERSION is not supported by ilu; Java support will *not* be included" 1>&6
     ;;
   1.2beta2)	echo "$ac_t""$JAVAVERSION; Java 1.2beta2 support will be included" 1>&6
	JAVA_MAJOR_VERSION=1
	JAVA_MINOR_VERSION=2
	JAVA_VERSION=1.2
	JDK12=1
	JDK12BETA2=1
	cat >> confdefs.h <<\EOF
#define JDK12 1
EOF

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

	cat >> confdefs.h <<EOF
#define JAVA_VERSION $JAVA_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MAJOR_VERSION $JAVA_MAJOR_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MINOR_VERSION $JAVA_MINOR_VERSION
EOF

	java_use_native_threads="yes"
	cat >> confdefs.h <<\EOF
#define ADD_JAVA_LANGUAGE 1
EOF

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

     ;;
   1.2beta3)	echo "$ac_t""$JAVAVERSION; Java 1.2beta3 support will be included" 1>&6
	JAVA_MAJOR_VERSION=1
	JAVA_MINOR_VERSION=2
	JAVA_VERSION=1.2
	JDK12=1
	JDK12BETA3=1
	cat >> confdefs.h <<\EOF
#define JDK12 1
EOF

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

	cat >> confdefs.h <<EOF
#define JAVA_VERSION $JAVA_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MAJOR_VERSION $JAVA_MAJOR_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MINOR_VERSION $JAVA_MINOR_VERSION
EOF

	java_use_native_threads="yes"
	cat >> confdefs.h <<\EOF
#define ADD_JAVA_LANGUAGE 1
EOF

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

     ;;
   1.2beta4)	echo "$ac_t""$JAVAVERSION; Java 1.2beta4 support will be included" 1>&6
	JAVA_MAJOR_VERSION=1
	JAVA_MINOR_VERSION=2
	JAVA_VERSION=1.2
	JDK12=1
	JDK12BETA4=1
	cat >> confdefs.h <<\EOF
#define JDK12 1
EOF

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

	cat >> confdefs.h <<EOF
#define JAVA_BOOTCLASSES_IN_JRE defined
EOF

	cat >> confdefs.h <<EOF
#define JAVA_VERSION $JAVA_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MAJOR_VERSION $JAVA_MAJOR_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MINOR_VERSION $JAVA_MINOR_VERSION
EOF

	java_use_native_threads="yes"
	cat >> confdefs.h <<\EOF
#define ADD_JAVA_LANGUAGE 1
EOF

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

     ;;
   1.2fcs*)	echo "$ac_t""$JAVAVERSION; Generic java 1.2 Fcs support will be included" 1>&6
	JAVA_MAJOR_VERSION=1
	JAVA_MINOR_VERSION=2
	JAVA_VERSION=1.2
	JDK12=1
	JDK12FCS=1
	cat >> confdefs.h <<\EOF
#define JDK12 1
EOF

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

	cat >> confdefs.h <<EOF
#define JAVA_BOOTCLASSES_IN_JRE defined
EOF

	cat >> confdefs.h <<EOF
#define JAVA_VERSION $JAVA_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MAJOR_VERSION $JAVA_MAJOR_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MINOR_VERSION $JAVA_MINOR_VERSION
EOF

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

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

     ;;
   1.2*)	echo "$ac_t""$JAVAVERSION; Generic java 1.2 support will be included" 1>&6
	JAVA_MAJOR_VERSION=1
	JAVA_MINOR_VERSION=2
	JAVA_VERSION=1.2
	JDK12=1
	cat >> confdefs.h <<\EOF
#define JDK12 1
EOF

	cat >> confdefs.h <<EOF
#define JAVA_BOOTCLASSES_IN_JRE defined
EOF

	cat >> confdefs.h <<EOF
#define JAVA_VERSION $JAVA_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MAJOR_VERSION $JAVA_MAJOR_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MINOR_VERSION $JAVA_MINOR_VERSION
EOF

	java_use_native_threads="yes"
	cat >> confdefs.h <<\EOF
#define ADD_JAVA_LANGUAGE 1
EOF

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

     ;;
   1.1*)	echo "$ac_t""$JAVAVERSION; Generic java 1.1 support will be included" 1>&6
	JAVA_MAJOR_VERSION=1
	JAVA_MINOR_VERSION=1
	JAVA_VERSION=1.1
	cat >> confdefs.h <<EOF
#define JAVA_VERSION $JAVA_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MAJOR_VERSION $JAVA_MAJOR_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MINOR_VERSION $JAVA_MINOR_VERSION
EOF

	java_use_native_threads="yes"
	cat >> confdefs.h <<\EOF
#define ADD_JAVA_LANGUAGE 1
EOF

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

     ;;
   *)	echo "$ac_t""$JAVAVERSION; Unrecognized java version; 1.1 support will be included" 1>&6
	JAVA_MAJOR_VERSION=1
	JAVA_MINOR_VERSION=1
	JAVA_VERSION=1.1
	cat >> confdefs.h <<EOF
#define JAVA_VERSION $JAVA_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MAJOR_VERSION $JAVA_MAJOR_VERSION
EOF

	cat >> confdefs.h <<EOF
#define JAVA_MINOR_VERSION $JAVA_MINOR_VERSION
EOF

	java_use_native_threads="yes"
	cat >> confdefs.h <<\EOF
#define ADD_JAVA_LANGUAGE 1
EOF

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

     ;;
 esac
fi

if test "$java_use_native_threads" != "" ; then
  case "$host_os" in
    linux-gnu* | irix* )
      ;;
    *)
      cat >> confdefs.h <<\EOF
#define JAVA_USE_NATIVE_THREADS 1
EOF

      ;;
  esac
fi


echo $ac_n "checking whether to avoid use of poll(2) in Java runtime""... $ac_c" 1>&6
echo "configure:5435: checking whether to avoid use of poll(2) in Java runtime" >&5
# Check whether --with-java-nopoll or --without-java-nopoll was given.
if test "${with_java_nopoll+set}" = set; then
  withval="$with_java_nopoll"
  
  JAVA_DONTUSE_POLL=1
  echo "$ac_t""yes -- java will use select" 1>&6

else
  if test "$cf_have_poll" = ""; then
  JAVA_DONTUSE_POLL=1
  echo "$ac_t""yes -- no poll" 1>&6
else
  case "$host_os" in
    linux-gnu*)
      JAVA_DONTUSE_POLL=1
      echo "$ac_t""yes -- on Linux" 1>&6
      ;;
    *)
      echo "$ac_t""no, by default" 1>&6
      ;;
  esac
fi
fi



echo $ac_n "checking whether to include support for use of ILU with Python""... $ac_c" 1>&6
echo "configure:5463: checking whether to include support for use of ILU with Python" >&5

# Check whether --enable-python-support or --disable-python-support was given.
if test "${enable_python_support+set}" = set; then
  enableval="$enable_python_support"
  if test "$enableval" = yes; then
  echo "$ac_t""perhaps..." 1>&6
  if test "$PYTHON" = ""; then
    { echo "configure: error: *** Python home directory not discernible.  Use --with-python=PYTHONHOME." 1>&2; exit 1; }
  else
    echo $ac_n "checking proper value for PYTHON_EXEC_PREFIX""... $ac_c" 1>&6
echo "configure:5474: checking proper value for PYTHON_EXEC_PREFIX" >&5
    PYTHONHOME=`echo $PYTHON | sed -e 's;/bin/python$;;'`
    echo "$ac_t""$PYTHONHOME" 1>&6
  fi
elif test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  PYTHONHOME="$enableval"
  echo "$ac_t""perhaps -- PYTHON_EXEC_PREFIX is $PYTHONHOME" 1>&6
fi
else
  echo "$ac_t""perhaps..." 1>&6
if test "$PYTHON" != ""; then
  echo $ac_n "checking proper value for PYTHON_EXEC_PREFIX""... $ac_c" 1>&6
echo "configure:5488: checking proper value for PYTHON_EXEC_PREFIX" >&5
  PYTHONHOME=`echo $PYTHON | sed -e 's;/bin/python$;;'`
  echo "$ac_t""$PYTHONHOME" 1>&6
fi
fi

if test "x$PYTHONHOME" != "x"; then
  
  
  
  
  echo $ac_n "checking Python version""... $ac_c" 1>&6
echo "configure:5500: checking Python version" >&5
  PYTHONMAJORVERSION=`$PYTHONHOME/bin/python -c "import sys; import string; print string.splitfields(string.split(sys.version)[0], '.')[0]"`
  PYTHONMINORVERSION=`$PYTHONHOME/bin/python -c "import sys; import string; print string.splitfields(string.split(sys.version)[0], '.')[1][0]"`
  echo "$ac_t""$PYTHONMAJORVERSION . $PYTHONMINORVERSION" 1>&6
  if test $PYTHONMAJORVERSION -gt 1 -o $PYTHONMINORVERSION -gt 3; then
    PYTHON_SUFFIX=python$PYTHONMAJORVERSION.$PYTHONMINORVERSION
    PYTHON_EXEC_SUFFIX=$PYTHON_SUFFIX/config
    PYTHON_INCLUDE_SUFFIX=$PYTHON_SUFFIX
  else
    PYTHON_SUFFIX=python
    PYTHON_EXEC_SUFFIX=$PYTHON_SUFFIX/lib
    PYTHON_INCLUDE_SUFFIX=Py
  fi
  cat >> confdefs.h <<EOF
#define PYTHON_SUFFIX $PYTHON_SUFFIX
EOF

  cat >> confdefs.h <<EOF
#define PYTHON_EXEC_SUFFIX $PYTHON_EXEC_SUFFIX
EOF

  cat >> confdefs.h <<EOF
#define PYTHON_INCLUDE_SUFFIX $PYTHON_INCLUDE_SUFFIX
EOF

  echo $ac_n "checking proper value for PYTHON_PREFIX""... $ac_c" 1>&6
echo "configure:5526: checking proper value for PYTHON_PREFIX" >&5
  PYTHON_PREFIX=`$PYTHONHOME/bin/python <./figpythonprefix`
  echo "$ac_t""$PYTHON_PREFIX" 1>&6
  echo $ac_n "checking whether required Python include files are installed""... $ac_c" 1>&6
echo "configure:5530: checking whether required Python include files are installed" >&5
  if test -d ${PYTHON_PREFIX}/include/${PYTHON_INCLUDE_SUFFIX} -a -r ${PYTHON_PREFIX}/include/${PYTHON_INCLUDE_SUFFIX}/Python.h ; then
    echo "$ac_t""yes -- Python support will be included" 1>&6
    INCLUDE_PYTHON=t
    cat >> confdefs.h <<\EOF
#define ADD_PYTHON_LANGUAGE 1
EOF

    echo $ac_n "checking whether Python libraries are installed""... $ac_c" 1>&6
echo "configure:5539: checking whether Python libraries are installed" >&5
    if test $PYTHONMAJORVERSION -gt 1 -o $PYTHONMINORVERSION -gt 4; then
      if test -f "${PYTHONHOME}/lib/$PYTHON_EXEC_SUFFIX/libpython${PYTHONMAJORVERSION}.${PYTHONMINORVERSION}.a" ; then
	cat >> confdefs.h <<\EOF
#define PYTHON_LIBRARIES_INSTALLED 1
EOF

	echo "$ac_t""yes" 1>&6
      else
	echo "$ac_t""no" 1>&6
      fi
    else
      if test -f "${PYTHONHOME}/lib/$PYTHON_EXEC_SUFFIX/libPython.a" ; then
	cat >> confdefs.h <<\EOF
#define PYTHON_LIBRARIES_INSTALLED 1
EOF

	echo "$ac_t""yes" 1>&6
      else
	echo "$ac_t""no" 1>&6
      fi
    fi
    cat >> confdefs.h <<EOF
#define PYTHON_MAJOR_VERSION $PYTHONMAJORVERSION
EOF

    cat >> confdefs.h <<EOF
#define PYTHON_MINOR_VERSION $PYTHONMINORVERSION
EOF

    echo $ac_n "checking whether Python supports threads""... $ac_c" 1>&6
echo "configure:5570: checking whether Python supports threads" >&5
    PYTHON_THREADED=`$PYTHONHOME/bin/python <./ispythonthreaded`
    if test "$PYTHON_THREADED" = "0"; then
      echo "$ac_t""no" 1>&6
    else
      echo "$ac_t""yes" 1>&6
      cat >> confdefs.h <<\EOF
#define ILU_PYTHON_HAS_THREADS 1
EOF

    fi
  else
    echo "$ac_t""no -- Python support cannot be provided" 1>&6
  fi
fi

if test "x$INCLUDE_PYTHON" != "x" ; then
  echo $ac_n "checking whether to prevent Python ILU true objects from being GC'ed""... $ac_c" 1>&6
echo "configure:5588: checking whether to prevent Python ILU true objects from being GC'ed" >&5
  # Check whether --enable-old-python-gc-behavior or --disable-old-python-gc-behavior was given.
if test "${enable_old_python_gc_behavior+set}" = set; then
  enableval="$enable_old_python_gc_behavior"
  if test "$enableval" = yes; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
#define ILU_OLD_PYTHON_GC_BEHAVIOR 1
EOF

  elif test "$enableval" = no; then
    echo "$ac_t""no" 1>&6
  else
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
#define ILU_OLD_PYTHON_GC_BEHAVIOR 1
EOF

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

fi

for ac_prog in franz 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5618: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_FRANZ'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$FRANZ" in
  /*)
  ac_cv_path_FRANZ="$FRANZ" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_FRANZ="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
FRANZ="$ac_cv_path_FRANZ"
if test -n "$FRANZ"; then
  echo "$ac_t""$FRANZ" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$FRANZ" && break
done
test -n "$FRANZ" || FRANZ=""""

echo $ac_n "checking whether to include support for use of ILU with Common Lisp""... $ac_c" 1>&6
echo "configure:5651: checking whether to include support for use of ILU with Common Lisp" >&5






# Check whether --enable-lisp-support or --disable-lisp-support was given.
if test "${enable_lisp_support+set}" = set; then
  enableval="$enable_lisp_support"
  if test "$enableval" = yes; then
  if test "$FRANZ" = ""; then
    { echo "configure: error: *** Franz Allegro Common Lisp not found.  Use --with-lisp=FRANZ-COMMAND." 1>&2; exit 1; }
  else
    echo "$ac_t""yes" 1>&6
    LISP_BATCH_COMMAND="$FRANZ -qq -batch"
  fi
elif test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  echo "$ac_t"""$enableval"" 1>&6
  FRANZ=$enableval
  LISP_BATCH_COMMAND="$enableval -qq -batch"
fi
else
  if test "$FRANZ" != ""; then
  FRANZ=$enableval
  LISP_BATCH_COMMAND="$FRANZ -qq -batch"
  echo "$ac_t""yes" 1>&6
fi
fi


if test "$LISP_BATCH_COMMAND" != ""; then
    echo $ac_n "checking whether to include support for old-style Lisp method names""... $ac_c" 1>&6
echo "configure:5686: checking whether to include support for old-style Lisp method names" >&5
    # Check whether --enable-old-lisp-method-names or --disable-old-lisp-method-names was given.
if test "${enable_old_lisp_method_names+set}" = set; then
  enableval="$enable_old_lisp_method_names"
  if test "$enableval" = yes; then
      echo "$ac_t""yes" 1>&6
      cat >> confdefs.h <<\EOF
#define OLD_LISP_METHOD_NAMES 1
EOF

    elif test "$enableval" = no; then
      echo "$ac_t""no" 1>&6
    else
      echo "$ac_t""yes" 1>&6
      cat >> confdefs.h <<\EOF
#define OLD_LISP_METHOD_NAMES 1
EOF

    fi
else
   echo "$ac_t""yes" 1>&6
      cat >> confdefs.h <<\EOF
#define OLD_LISP_METHOD_NAMES 1
EOF

fi

fi

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

    echo $ac_n "checking file extensions for compiled lisp and object files""... $ac_c" 1>&6
echo "configure:5721: checking file extensions for compiled lisp and object files" >&5
    if eval "test \"`echo '$''{'ac_cv_lisp_bin_ext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  $FRANZ -qq -batch <./figlispext.lsp >/dev/null
       ac_cv_lisp_bin_ext=`cat conftestlispext`
       ac_cv_lisp_has_threads=`cat conftestlispthreads`
       ac_cv_lisp_flag_bits=`cat conftestlispflagbits`
       ac_cv_lisp_c_bin_ext=`cat conftestlispcext`
fi

    if eval "test \"`echo '$''{'ac_cv_lisp_c_bin_ext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  $FRANZ -qq -batch <./figlispext.lsp >/dev/null
       ac_cv_lisp_c_bin_ext=`cat conftestlispcext`
fi

    if eval "test \"`echo '$''{'ac_cv_lisp_c_has_threads'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  $FRANZ -qq -batch <./figlispext.lsp >/dev/null
       ac_cv_lisp_c_has_threads=`cat conftestlispthreads`
fi

    if eval "test \"`echo '$''{'ac_cv_lisp_c_flag_bits'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  $FRANZ -qq -batch <./figlispext.lsp >/dev/null
       ac_cv_lisp_c_flag_bits=`cat conftestlispflagbits`
fi

    echo "$ac_t""\"$ac_cv_lisp_bin_ext\" and \"$ac_cv_lisp_c_bin_ext\"" 1>&6
    LISP_BIN_EXT="$ac_cv_lisp_bin_ext"
    LISP_C_BIN_EXT="$ac_cv_lisp_c_bin_ext"
    LISP_FLAG_BITS="$ac_cv_lisp_c_flag_bits"
    if test "$ac_cv_lisp_has_threads" = "yes"; then
      cat >> confdefs.h <<\EOF
#define LISP_HAS_THREADS 1
EOF

    fi
fi

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

test -n "$GUILE" && break
done
test -n "$GUILE" || GUILE=""""

echo $ac_n "checking whether to include support for use of ILU with Guile scheme""... $ac_c" 1>&6
echo "configure:5803: checking whether to include support for use of ILU with Guile scheme" >&5


# Check whether --enable-guile-support or --disable-guile-support was given.
if test "${enable_guile_support+set}" = set; then
  enableval="$enable_guile_support"
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$enableval" = yes; then
  if test "x$GUILE" = "x" ; then
    echo "$ac_t""no -- guile interpreter not on path" 1>&6
  elif $GUILE -c '(use-modules #/ice-9/slib)' >/dev/null 2>&1 ; then
    GUILE_LIB_DIR="`echo $GUILE | sed -e 's;bin/guile;lib;'`"
    guile_base_includes="`$GUILE -c '(write-line (%package-data-dir))' | sed -e 's;/share/guile$;/include;'`"
    GUILE_INCLUDES="-I${guile_base_includes} -I${guile_base_includes}/libguile"
    cat >> confdefs.h <<\EOF
#define ADD_GUILE_LANGUAGE 1
EOF

    echo "$ac_t""yes" 1>&6
    echo "$ac_t""Guile includes are $GUILE_INCLUDES" 1>&6
    echo "$ac_t""libguile.a is at $GUILE_LIB_DIR" 1>&6
  else
    echo "$ac_t""no -- SLIB not properly installed" 1>&6
  fi
elif test "$enableval" != "" ; then
  if $enableval -c '(+ 3 3)' ; then
    GUILE=$enableval
    if $GUILE -c '(use-modules #/ice-9/slib)' >/dev/null 2>&1 ; then
        GUILE_LIB_DIR="`echo $GUILE | sed -e 's;bin/guile;lib;'`"
	guile_base_includes="`$GUILE -c '(write-line (%package-data-dir))' | sed -e 's;/share/guile$;/include;'`"
        GUILE_INCLUDES="-I${guile_base_includes} -I${guile_base_includes}/libguile"
        cat >> confdefs.h <<\EOF
#define ADD_GUILE_LANGUAGE 1
EOF

        echo "$ac_t""yes" 1>&6
        echo "$ac_t""Guile includes are $GUILE_INCLUDES" 1>&6
        echo "$ac_t""libguile.a is at $GUILE_LIB_DIR" 1>&6
    else
        echo "$ac_t""no -- SLIB not properly installed" 1>&6
    fi
  else
    echo "$ac_t""no -- $enableval not a guile interpreter" 1>&6
  fi
else
  if test "x$GUILE" = "x" ; then
    echo "$ac_t""no -- guile interpreter not on path" 1>&6
  elif $GUILE -c '(use-modules #/ice-9/slib)' >/dev/null 2>&1 ; then
    GUILE_LIB_DIR="`echo $GUILE | sed -e 's;bin/guile;lib;'`"
    guile_base_includes="`$GUILE -c '(write-line (%package-data-dir))' | sed -e 's;/share/guile$;/include;'`"
    GUILE_INCLUDES="-I${guile_base_includes} -I${guile_base_includes}/libguile"
    cat >> confdefs.h <<\EOF
#define ADD_GUILE_LANGUAGE 1
EOF

    echo "$ac_t""yes" 1>&6
    echo "$ac_t""Guile includes are $GUILE_INCLUDES" 1>&6
    echo "$ac_t""libguile.a is at $GUILE_LIB_DIR" 1>&6
  else
    echo "$ac_t""no -- SLIB not properly installed" 1>&6
  fi
fi
else
  if test "x$GUILE" = "x" ; then
    echo "$ac_t""no -- guile interpreter not on path" 1>&6
 elif $GUILE -c '(use-modules #/ice-9/slib)' >/dev/null 2>&1 ; then
    GUILE_LIB_DIR="`echo $GUILE | sed -e 's;bin/guile;lib;'`"
    guile_base_includes="`$GUILE -c '(write-line (%package-data-dir))' | sed -e 's;/share/guile$;/include;'`"
    GUILE_INCLUDES="-I${guile_base_includes} -I${guile_base_includes}/libguile"
    cat >> confdefs.h <<\EOF
#define ADD_GUILE_LANGUAGE 1
EOF

    echo "$ac_t""yes -- by default" 1>&6
    echo "$ac_t""Guile includes are $GUILE_INCLUDES" 1>&6
    echo "$ac_t""libguile.a is at $GUILE_LIB_DIR" 1>&6
 else
    echo "$ac_t""no -- SLIB not properly installed" 1>&6
 fi
fi


echo $ac_n "checking whether to include support for use of ILU with Perl""... $ac_c" 1>&6
echo "configure:5887: checking whether to include support for use of ILU with Perl" >&5

# Check whether --enable-perl-support or --disable-perl-support was given.
if test "${enable_perl_support+set}" = set; then
  enableval="$enable_perl_support"
  if test "$enableval" = yes; then
  echo "$ac_t""yes" 1>&6
  if test "$PERL" = ""; then
    { echo "configure: error: *** Perl home directory not discernible." 1>&2; exit 1; }
  else
    cat >> confdefs.h <<\EOF
#define ADD_PERL_LANGUAGE 1
EOF

    echo $ac_n "checking proper value for PERL_EXEC_PREFIX""... $ac_c" 1>&6
echo "configure:5902: checking proper value for PERL_EXEC_PREFIX" >&5
    PERLHOME=`echo $PERL | sed -e 's;/bin/perl$;;'`
    echo "$ac_t""$PERLHOME" 1>&6
  fi
elif test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_PERL_LANGUAGE 1
EOF

  echo "$ac_t""$enableval" 1>&6
  PERLHOME="$enableval"
fi
else
  if test "$PERL" != ""; then
  if test -d "$IMAKE_RULES_SRCDIR/../stubbers/perl" ; then
    if test -r "$IMAKE_RULES_SRCDIR/../stubbers/perl/Imakefile" ; then
      cat >> confdefs.h <<\EOF
#define ADD_PERL_LANGUAGE 1
EOF

      echo $ac_n "checking proper value for PERL_EXEC_PREFIX""... $ac_c" 1>&6
echo "configure:5925: checking proper value for PERL_EXEC_PREFIX" >&5
      PERLHOME=`echo $PERL | sed -e 's;/bin/perl$;;'`
      echo "$ac_t""yes -- $PERLHOME" 1>&6
    else
      echo "$ac_t""no, Perl stubber directory looks bad" 1>&6
    fi
  else
    echo "$ac_t""no, Perl stubber directory doesn't exist" 1>&6
  fi
else
  echo "$ac_t""no, PERL envar not defined" 1>&6
fi
fi



if test "$secure_transport" = "yes"; then
  ssl_secmech="no"
  echo $ac_n "checking whether to include support for the SSL security protocols""... $ac_c" 1>&6
echo "configure:5944: checking whether to include support for the SSL security protocols" >&5
  # Check whether --enable-ssl-security or --disable-ssl-security was given.
if test "${enable_ssl_security+set}" = set; then
  enableval="$enable_ssl_security"
  if test "$enableval" = "yes"; then
    if test "x$rsaref_library" = "x" -o "x$rsaref_parent_dir" = "x" -o "x$libdes_library" = "x" -o "x$libdes_include_dir" = "x" ; then
      echo "$ac_t""no -- can't find RSAREF and libdes libraries and/or directories" 1>&6
    else
      echo "$ac_t""yes" 1>&6
      cat >> confdefs.h <<\EOF
#define INCLUDE_SSL_SECMECH 1
EOF

      ssl_secmech="yes"
    fi
  else
    echo "$ac_t""no" 1>&6
  fi
else
  echo "$ac_t""no, by default" 1>&6
fi


fi


case "$host_os" in
    sunos4*) IDL_CFE_OSV="SUNOS4" ;;
    irix* | solaris2* | linux-gnu* | linux1.2.* | linux1.3.* | linux2.* | sysv4.* ) IDL_CFE_OSV="SOLARIS2" ;;
    hpux*) IDL_CFE_OSV="'hpux'" ;;
    apollo*) IDL_CFE_OSV="apollo" ;;
    *) IDL_CFE_OSV="" ;;
 esac


echo $ac_n "checking whether to include direct support for OMG IDL""... $ac_c" 1>&6
echo "configure:5980: checking whether to include direct support for OMG IDL" >&5
# Check whether --enable-omg-idl-support or --disable-omg-idl-support was given.
if test "${enable_omg_idl_support+set}" = set; then
  enableval="$enable_omg_idl_support"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_DIRECT_OMG_IDL_SUPPORT 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  cat >> confdefs.h <<\EOF
#define ADD_DIRECT_OMG_IDL_SUPPORT 1
EOF

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

fi


echo $ac_n "checking whether to include support for XML IDL""... $ac_c" 1>&6
echo "configure:6005: checking whether to include support for XML IDL" >&5

xmlidl_support=""
# Check whether --enable-xmlidl-support or --disable-xmlidl-support was given.
if test "${enable_xmlidl_support+set}" = set; then
  enableval="$enable_xmlidl_support"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_XMLIDL_SUPPORT 1
EOF

  xmlidl_support="yes"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  echo "$ac_t""no" 1>&6

fi


echo $ac_n "checking whether to include old support for OMG IDL to ILU ISL translation""... $ac_c" 1>&6
echo "configure:6029: checking whether to include old support for OMG IDL to ILU ISL translation" >&5

# Check whether --enable-idl2isl-support or --disable-idl2isl-support was given.
if test "${enable_idl2isl_support+set}" = set; then
  enableval="$enable_idl2isl_support"
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$CXX" = ""; then
  echo "$ac_t""no -- no C++ compiler" 1>&6
elif test "$enableval" = yes; then
  if test "$IDL_CFE_OSV" = ""; then
    echo "$ac_t""no" 1>&6
    echo "configure: warning: *** Sorry: IDL support hasn't been ported to $host_os yet." 1>&2
  else
    cat >> confdefs.h <<\EOF
#define ADD_IDL_SUPPORT 1
EOF

    echo "$ac_t""yes: OSV is $IDL_CFE_OSV" 1>&6
  fi
else
  IDL_CFE_OSV="$enableval"
  cat >> confdefs.h <<\EOF
#define ADD_IDL_SUPPORT 1
EOF

  echo "$ac_t""yes: OSV is $IDL_CFE_OSV" 1>&6
fi
else
  
if test "$IDL_CFE_OSV" = ""; then
    echo "$ac_t""no - not supported on $host_os yet" 1>&6
else
    echo "$ac_t""no, by default" 1>&6
fi
fi



if test "$IDL_CFE_OSV" != ""; then
  IDL_CPP_COMMAND=`echo $CXX | sed -e 's/ .*$//'`
fi


picklesupport=""
echo $ac_n "checking whether to include support for PICKLE""... $ac_c" 1>&6
echo "configure:6075: checking whether to include support for PICKLE" >&5
# Check whether --enable-pickle-support or --disable-pickle-support was given.
if test "${enable_pickle_support+set}" = set; then
  enableval="$enable_pickle_support"
  if test "$enableval" = "yes"; then
  picklesupport="yes"
  cat >> confdefs.h <<\EOF
#define ADD_VARIANT_SUPPORT 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  cat >> confdefs.h <<\EOF
#define ADD_VARIANT_SUPPORT 1
EOF

  picklesupport="yes"
  echo "$ac_t""yes, by default" 1>&6

fi


if test "x$picklesupport" != "x"; then
echo $ac_n "checking whether to include support for pickle format 2""... $ac_c" 1>&6
echo "configure:6103: checking whether to include support for pickle format 2" >&5
# Check whether --enable-pickle-format-2 or --disable-pickle-format-2 was given.
if test "${enable_pickle_format_2+set}" = set; then
  enableval="$enable_pickle_format_2"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_PICKLE2_SUPPORT 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  cat >> confdefs.h <<\EOF
#define ADD_PICKLE2_SUPPORT 1
EOF

  echo "$ac_t""yes, by default" 1>&6

fi

fi

if test "x$picklesupport" != "x"; then
echo $ac_n "checking whether to include support for pickle format 3""... $ac_c" 1>&6
echo "configure:6130: checking whether to include support for pickle format 3" >&5
# Check whether --enable-pickle-format-3 or --disable-pickle-format-3 was given.
if test "${enable_pickle_format_3+set}" = set; then
  enableval="$enable_pickle_format_3"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_PICKLE3_SUPPORT 1
EOF

  echo "$ac_t""yes" 1>&6
elif test "x$using_w3ng_protocol" != "x"; then
  cat >> confdefs.h <<\EOF
#define ADD_PICKLE3_SUPPORT 1
EOF

  echo "$ac_t""yes, to support w3ng protocol" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  if test "x$using_w3ng_protocol" != "x"; then
    cat >> confdefs.h <<\EOF
#define ADD_PICKLE3_SUPPORT 1
EOF

    echo "$ac_t""yes, to support w3ng protocol" 1>&6
  else
    echo "$ac_t""no" 1>&6
  fi

fi

fi

echo $ac_n "checking whether to include support for type registration""... $ac_c" 1>&6
echo "configure:6166: checking whether to include support for type registration" >&5
# Check whether --enable-type-support or --disable-type-support was given.
if test "${enable_type_support+set}" = set; then
  enableval="$enable_type_support"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_TYPE_REGISTRATION_SUPPORT 1
EOF

  echo "$ac_t""yes" 1>&6
elif test "x$using_iiop_protocol" != "x"; then
  cat >> confdefs.h <<\EOF
#define ADD_TYPE_REGISTRATION_SUPPORT 1
EOF

  echo "$ac_t""yes, to support IIOP usage" 1>&6
elif test "x$using_w3ng_protocol" != "x"; then
  cat >> confdefs.h <<\EOF
#define ADD_TYPE_REGISTRATION_SUPPORT 1
EOF

  echo "$ac_t""yes, to support w3ng protocol" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  cat >> confdefs.h <<\EOF
#define ADD_TYPE_REGISTRATION_SUPPORT 1
EOF

  echo "$ac_t""yes, by default" 1>&6

fi


fixed_point=no
echo $ac_n "checking whether to include fixed-point support""... $ac_c" 1>&6
echo "configure:6204: checking whether to include fixed-point support" >&5
# Check whether --enable-fixed-point-support or --disable-fixed-point-support was given.
if test "${enable_fixed_point_support+set}" = set; then
  enableval="$enable_fixed_point_support"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_FIXED_POINT_SUPPORT 1
EOF

  echo "$ac_t""yes" 1>&6
  fixed_point=yes
else
  echo "$ac_t""no" 1>&6
fi
else
  
  echo "$ac_t""no, by default" 1>&6

fi


if test "$fixed_point" = "yes"; then
  echo $ac_n "checking whether to include C bignum library""... $ac_c" 1>&6
echo "configure:6227: checking whether to include C bignum library" >&5
  # Check whether --enable-bignum-library-support or --disable-bignum-library-support was given.
if test "${enable_bignum_library_support+set}" = set; then
  enableval="$enable_bignum_library_support"
  if test "$enableval" = "yes"; then
    cat >> confdefs.h <<\EOF
#define ILU_BIGNUM_LIBRARY_SUPPORT 1
EOF

    echo "$ac_t""yes" 1>&6
  elif test "$enableval" = "no"; then
    echo "$ac_t""no" 1>&6
  else
    { echo "configure: error: bad value for --enable-bignum-library-support" 1>&2; exit 1; }
  fi
else
  
  if test "x$needs_bignum_library" = "x"; then
    echo "$ac_t""no, by default" 1>&6
  else
    cat >> confdefs.h <<\EOF
#define ILU_BIGNUM_LIBRARY_SUPPORT 1
EOF

    echo "$ac_t""yes, to support the $needs_bignum_library LSR" 1>&6
  fi
fi

fi

echo $ac_n "checking whether to include C runtime timing statistics code""... $ac_c" 1>&6
echo "configure:6258: checking whether to include C runtime timing statistics code" >&5
# Check whether --enable-c-timing-statistics or --disable-c-timing-statistics was given.
if test "${enable_c_timing_statistics+set}" = set; then
  enableval="$enable_c_timing_statistics"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_C_TIMING_STATISTICS 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  echo "$ac_t""no, by default" 1>&6

fi


echo $ac_n "checking whether to use version 2 type UID hash algorithm""... $ac_c" 1>&6
echo "configure:6279: checking whether to use version 2 type UID hash algorithm" >&5
# Check whether --enable-version-2-type-uids or --disable-version-2-type-uids was given.
if test "${enable_version_2_type_uids+set}" = set; then
  enableval="$enable_version_2_type_uids"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_TYPEUID_V2 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  echo "$ac_t""no, by default" 1>&6

fi


echo $ac_n "checking whether to generate fake local object types for surrogates with multiple supertypes""... $ac_c" 1>&6
echo "configure:6300: checking whether to generate fake local object types for surrogates with multiple supertypes" >&5
# Check whether --enable-generate-subtypes or --disable-generate-subtypes was given.
if test "${enable_generate_subtypes+set}" = set; then
  enableval="$enable_generate_subtypes"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_GENERATE_SUBTYPES 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  echo "$ac_t""no, by default" 1>&6

fi


echo $ac_n "checking whether to add support for aliased/optional reference types""... $ac_c" 1>&6
echo "configure:6321: checking whether to add support for aliased/optional reference types" >&5
# Check whether --enable-reference-types or --disable-reference-types was given.
if test "${enable_reference_types+set}" = set; then
  enableval="$enable_reference_types"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_REFERENCE_TYPES 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  echo "$ac_t""no, by default" 1>&6

fi


echo $ac_n "checking whether to add support for objects-by-value""... $ac_c" 1>&6
echo "configure:6342: checking whether to add support for objects-by-value" >&5
# Check whether --enable-objects-by-value or --disable-objects-by-value was given.
if test "${enable_objects_by_value+set}" = set; then
  enableval="$enable_objects_by_value"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_HTTPNG_OBJECTS 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  echo "$ac_t""no, by default" 1>&6

fi


echo $ac_n "checking whether to add support for the ILU testing scripts""... $ac_c" 1>&6
echo "configure:6363: checking whether to add support for the ILU testing scripts" >&5
# Check whether --enable-testing-scripts or --disable-testing-scripts was given.
if test "${enable_testing_scripts+set}" = set; then
  enableval="$enable_testing_scripts"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_TESTING_SCRIPTS 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
  echo "$ac_t""no, by default" 1>&6

fi


echo $ac_n "checking whether to include XML parser library""... $ac_c" 1>&6
echo "configure:6384: checking whether to include XML parser library" >&5
# Check whether --enable-xml-parser-library or --disable-xml-parser-library was given.
if test "${enable_xml_parser_library+set}" = set; then
  enableval="$enable_xml_parser_library"
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ILU_XML_PARSER_LIBRARY 1
EOF

  echo "$ac_t""yes" 1>&6
elif test "x$xmlidl_support" != "x"; then
  cat >> confdefs.h <<\EOF
#define ILU_XML_PARSER_LIBRARY 1
EOF

  echo "$ac_t""yes, to support xmlidl parsing" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  
if test "x$xmlidl_support" != "x"; then
  cat >> confdefs.h <<\EOF
#define ILU_XML_PARSER_LIBRARY 1
EOF

  echo "$ac_t""yes, to support xmlidl parsing" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

fi



echo $ac_n "checking whether to include support for XView""... $ac_c" 1>&6
echo "configure:6420: checking whether to include support for XView" >&5

# Check whether --enable-xview-support or --disable-xview-support was given.
if test "${enable_xview_support+set}" = set; then
  enableval="$enable_xview_support"
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$enableval" = yes; then
  echo "$ac_t""yes" 1>&6
  # If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6
echo "configure:6434: checking for X" >&5

# 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 eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&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 conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
acfindx:
	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  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 conftestdir
fi

if test "$ac_x_includes" = NO; then
  # Guess where to find include files, by looking for this one X11 .h file.
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h

  # First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
#line 6496 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  # Look for the header file in a standard set of common directories.
# Check X11 before X11Rn because it is often a symlink to the current release.
  for ac_dir in               \
    /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 \
    ; \
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
      ac_x_includes=$ac_dir
      break
    fi
  done
fi
rm -f conftest*
fi # $ac_x_includes = NO

if test "$ac_x_libraries" = NO; then
  # Check for the libraries.

  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc

  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS="$LIBS"
  LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6570 "configure"
#include "confdefs.h"

int main() {
${x_direct_test_function}()
; return 0; }
EOF
if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
# Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11/lib          \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11/lib    \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11    \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
                          \
    /usr/lib              \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
    /lib/usr/lib/X11	  \
                          \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    ; \
do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest*
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 "$ac_t""$have_x" 1>&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 "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi

  if test "$x_includes" = "NONE"; then
    { echo "configure: error: *** Can't find X include files.  Must specify their location using --with-x=INCLUDEPATH." 1>&2; exit 1; }
  else
    cat >> confdefs.h <<\EOF
#define ADD_XVIEW_SUPPORT 1
EOF

    XVIEW_INCLUDES="-I$x_includes"
  fi
else
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_XVIEW_SUPPORT 1
EOF

  XVIEW_INCLUDES="$enableval"
fi
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking Tcl header files directory""... $ac_c" 1>&6
echo "configure:6686: checking Tcl header files directory" >&5
# Check whether --with-tcl-includes-dir or --without-tcl-includes-dir was given.
if test "${with_tcl_includes_dir+set}" = set; then
  withval="$with_tcl_includes_dir"
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  echo "$ac_t""no -- no directory specified" 1>&6
elif test -d "$withval"; then
  echo "$ac_t""$withval" 1>&6
  TCL_INCLUDE_DIR="$withval"
else
  echo "$ac_t""no -- bad directory $withval specified" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking Tk header files directory""... $ac_c" 1>&6
echo "configure:6706: checking Tk header files directory" >&5
# Check whether --with-tk-includes-dir or --without-tk-includes-dir was given.
if test "${with_tk_includes_dir+set}" = set; then
  withval="$with_tk_includes_dir"
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  echo "$ac_t""no -- no directory specified" 1>&6
elif test -d "$withval"; then
  echo "$ac_t""$withval" 1>&6
  TK_INCLUDE_DIR="$withval"
else
  echo "$ac_t""no -- bad directory $withval specified" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


if test "$x_includes" = "NONE"; then
  # If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6
echo "configure:6731: checking for X" >&5

# 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 eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&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 conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
acfindx:
	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  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 conftestdir
fi

if test "$ac_x_includes" = NO; then
  # Guess where to find include files, by looking for this one X11 .h file.
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h

  # First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
#line 6793 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  # Look for the header file in a standard set of common directories.
# Check X11 before X11Rn because it is often a symlink to the current release.
  for ac_dir in               \
    /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 \
    ; \
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
      ac_x_includes=$ac_dir
      break
    fi
  done
fi
rm -f conftest*
fi # $ac_x_includes = NO

if test "$ac_x_libraries" = NO; then
  # Check for the libraries.

  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc

  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS="$LIBS"
  LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6867 "configure"
#include "confdefs.h"

int main() {
${x_direct_test_function}()
; return 0; }
EOF
if { (eval echo configure:6874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
# Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11/lib          \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11/lib    \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11    \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
                          \
    /usr/lib              \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
    /lib/usr/lib/X11	  \
                          \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    ; \
do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest*
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 "$ac_t""$have_x" 1>&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 "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi

fi

echo $ac_n "checking whether to include support for Tk event loop...""... $ac_c" 1>&6
echo "configure:6963: checking whether to include support for Tk event loop..." >&5
# Check whether --enable-tk-support or --disable-tk-support was given.
if test "${enable_tk_support+set}" = set; then
  enableval="$enable_tk_support"
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  if test "$x_includes" = "NONE"; then
    echo "$ac_t""no -- no path for X11 Window System header files" 1>&6
  elif test "$TK_INCLUDE_DIR" = ""; then
    echo "$ac_t""no -- no path for Tk header files" 1>&6
  elif test "$TCL_INCLUDE_DIR" = ""; then
    echo "$ac_t""no -- no path for Tcl header files" 1>&6
  else
    echo "$ac_t""yes" 1>&6
    TK_INCLUDES="-I$TCL_INCLUDE_DIR -I$TK_INCLUDE_DIR"
  fi
fi
else
  echo "$ac_t""no" 1>&6
fi



if test "x$prefix" = xNONE; then
  if test "$ac_default_prefix" != "" ; then
    prefix="$ac_default_prefix"
  fi
fi


echo $ac_n "checking value of ILUHOME""... $ac_c" 1>&6
echo "configure:6995: checking value of ILUHOME" >&5
# Check whether --with-iluhome or --without-iluhome was given.
if test "${with_iluhome+set}" = set; then
  withval="$with_iluhome"
  if test "$withval" = no; then
  { echo "configure: error: Either a specified or default ($prefix) ILUHOME value must be provided." 1>&2; exit 1; }
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-iluhome=PATH" 1>&2; exit 1; }
else
  ILUHOME="$withval"
fi
else
  ILUHOME="$prefix"
fi

cat >> confdefs.h <<EOF
#define ILUHOME "$ILUHOME"
EOF

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


echo $ac_n "checking value of DESTDIR""... $ac_c" 1>&6
echo "configure:7018: checking value of DESTDIR" >&5
# Check whether --with-destdir or --without-destdir was given.
if test "${with_destdir+set}" = set; then
  withval="$with_destdir"
  if test "$withval" = no; then
  { echo "configure: error: Either a specified or default ($prefix) DESTDIR value must be provided." 1>&2; exit 1; }
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-destdir=PATH" 1>&2; exit 1; }
else
  DESTDIR="$withval"
fi
else
  DESTDIR="$prefix"
fi

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


echo $ac_n "checking whether to use shared files for simple binding""... $ac_c" 1>&6
echo "configure:7037: checking whether to use shared files for simple binding" >&5
# Check whether --with-binding-dir or --without-binding-dir was given.
if test "${with_binding_dir+set}" = set; then
  withval="$with_binding_dir"
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-binding-dir=PATH" 1>&2; exit 1; }
else
  BINDINGDIR="$withval"
fi
else
  echo "$ac_t""no" 1>&6
fi


if test "$BINDINGDIR" != "" ; then
  cat >> confdefs.h <<EOF
#define ILU_BINDING_DIRECTORY "$BINDINGDIR"
EOF

  echo "$ac_t""yes, in $BINDINGDIR" 1>&6
fi

echo $ac_n "checking whether to use ILU service for simple binding""... $ac_c" 1>&6
echo "configure:7062: checking whether to use ILU service for simple binding" >&5
# Check whether --with-binding-server or --without-binding-server was given.
if test "${with_binding_server+set}" = set; then
  withval="$with_binding_server"
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-binding-server=HOST:PORT" 1>&2; exit 1; }
else
  BINDINGREALMHOSTPORT="$withval"
fi
else
  echo "$ac_t""no" 1>&6
fi


if test "$BINDINGREALMHOSTPORT" != ""; then
  BINDINGREALM=`echo "$BINDINGREALMHOSTPORT" | sed -e 's/:.*$//'`
  BINDINGHOST=`echo "$BINDINGREALMHOSTPORT" | sed -e 's/.*:\([^:]*\):.*/\1/'`
  BINDINGPORT=`echo "$BINDINGREALMHOSTPORT" | sed -e 's/.*:.*://'`
  cat >> confdefs.h <<EOF
#define ILU_BINDING_REALM "$BINDINGREALM"
EOF

  cat >> confdefs.h <<EOF
#define ILU_BINDING_HOST "$BINDINGHOST"
EOF

  cat >> confdefs.h <<EOF
#define ILU_BINDING_PORT $BINDINGPORT
EOF

  echo "$ac_t""yes, for binding realm $BINDINGREALM, on host $BINDINGHOST, port $BINDINGPORT" 1>&6
fi

BINDINGREALMHOSTPORT=""

echo $ac_n "checking whether to use multicast for simple binding""... $ac_c" 1>&6
echo "configure:7100: checking whether to use multicast for simple binding" >&5
# Check whether --with-binding-multicast or --without-binding-multicast was given.
if test "${with_binding_multicast+set}" = set; then
  withval="$with_binding_multicast"
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-binding-multicast=IPADDR:PORT" 1>&2; exit 1; }
else
  cat >> confdefs.h <<EOF
#define ILU_BINDING_MCASTADDR "$withval"
EOF

  echo "$ac_t""yes, at $withval" 1>&6
  echo -n "*** Where are the multicast include files?  "
  read MULTICAST_INCLUDES_1
  MULTICAST_INCLUDES="-I$MULTICAST_INCLUDES_1"
  echo "Multicast includes at $MULTICAST_INCLUDES"
fi
else
  echo "$ac_t""no" 1>&6
fi


if test "$MULTICAST_INCLUDES" = "" -a "$BINDINGDIR" = "" -a "$BINDINGHOST" = ""; then
  BINDINGDIR="${ILUHOME}/lib/binding"
  cat >> confdefs.h <<EOF
#define ILU_BINDING_DIRECTORY "$BINDINGDIR"
EOF

  echo "$ac_t""Using shared files in $BINDINGDIR for simple binding, by default." 1>&6
fi

cat >> confdefs.h <<EOF
#define ILU_MACHINE_TYPE "$host"
EOF

cat >> confdefs.h <<EOF
#define ILU_COMPILE_COMMAND "$CC"
EOF

cat >> confdefs.h <<EOF
#define ILU_ANSI_C_LIBRARY "$ANSI_C_LIBRARY"
EOF

cat >> confdefs.h <<EOF
#define ILU_SYSAUX_LIBRARIES "$LIBS"
EOF


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

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

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

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

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

DEFS=-DHAVE_CONFIG_H

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

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

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

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"

trap 'rm -fr `echo "iludefs topmake ssllocations.cfg iluconf.h ilugss_conf.h iluchoices" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@CC@%$CC%g
s%@CC2@%$CC2%g
s%@ANSI_C_LIBRARY@%$ANSI_C_LIBRARY%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@RANLIB@%$RANLIB%g
s%@IMAKE@%$IMAKE%g
s%@IMAKE_RULES_SRCDIR@%$IMAKE_RULES_SRCDIR%g
s%@ILUSRC@%$ILUSRC%g
s%@AR@%$AR%g
s%@LN_S@%$LN_S%g
s%@BOURNE_SHELL@%$BOURNE_SHELL%g
s%@PERL@%$PERL%g
s%@BISON@%$BISON%g
s%@DVIPS@%$DVIPS%g
s%@DVIPS4050@%$DVIPS4050%g
s%@FLEX@%$FLEX%g
s%@GHOSTSCRIPT@%$GHOSTSCRIPT%g
s%@MAKEINFO@%$MAKEINFO%g
s%@TEXINDEX@%$TEXINDEX%g
s%@TEX@%$TEX%g
s%@PYTHON@%$PYTHON%g
s%@MAKEWHATIS_PATH@%$MAKEWHATIS_PATH%g
s%@MAKEWHATIS@%$MAKEWHATIS%g
s%@CPP@%$CPP%g
s%@LDSHARED_FILE_EXT@%$LDSHARED_FILE_EXT%g
s%@LDSHARED_COMMAND@%$LDSHARED_COMMAND%g
s%@CCSHARED_FLAGS@%$CCSHARED_FLAGS%g
s%@ILU_ZLIB_LIBRARY@%$ILU_ZLIB_LIBRARY%g
s%@ILU_ZLIB_INCLUDE_DIR@%$ILU_ZLIB_INCLUDE_DIR%g
s%@RSAREF_DIR@%$RSAREF_DIR%g
s%@RSAREF_LIB@%$RSAREF_LIB%g
s%@LIBDES_INCL_DIR@%$LIBDES_INCL_DIR%g
s%@LIBDES_LIB@%$LIBDES_LIB%g
s%@THREADDEFINES@%$THREADDEFINES%g
s%@GSS_LIBRARIES@%$GSS_LIBRARIES%g
s%@GSS_INCLUDE_DIR@%$GSS_INCLUDE_DIR%g
s%@CXX@%$CXX%g
s%@CPPMAPPING@%$CPPMAPPING%g
s%@JAVA@%$JAVA%g
s%@JAVAHOME@%$JAVAHOME%g
s%@JAVA_MACH_DEP_INCLUDES@%$JAVA_MACH_DEP_INCLUDES%g
s%@JAVA_OLD_MACH_DEP_INCLUDES@%$JAVA_OLD_MACH_DEP_INCLUDES%g
s%@JAR@%$JAR%g
s%@JAVA_DONTUSE_POLL@%$JAVA_DONTUSE_POLL%g
s%@PYTHONHOME@%$PYTHONHOME%g
s%@PYTHON_PREFIX@%$PYTHON_PREFIX%g
s%@PYTHON_SUFFIX@%$PYTHON_SUFFIX%g
s%@PYTHON_EXEC_SUFFIX@%$PYTHON_EXEC_SUFFIX%g
s%@PYTHON_INCLUDE_SUFFIX@%$PYTHON_INCLUDE_SUFFIX%g
s%@FRANZ@%$FRANZ%g
s%@LISP_BATCH_COMMAND@%$LISP_BATCH_COMMAND%g
s%@LISP_BIN_EXT@%$LISP_BIN_EXT%g
s%@LISP_C_BIN_EXT@%$LISP_C_BIN_EXT%g
s%@LISP_HAS_THREADS@%$LISP_HAS_THREADS%g
s%@OLD_LISP_METHOD_NAMES@%$OLD_LISP_METHOD_NAMES%g
s%@LISP_FLAG_BITS@%$LISP_FLAG_BITS%g
s%@GUILE@%$GUILE%g
s%@GUILE_INCLUDES@%$GUILE_INCLUDES%g
s%@GUILE_LIB_DIR@%$GUILE_LIB_DIR%g
s%@PERLHOME@%$PERLHOME%g
s%@IDL_CFE_OSV@%$IDL_CFE_OSV%g
s%@IDL_CPP_COMMAND@%$IDL_CPP_COMMAND%g
s%@XVIEW_INCLUDES@%$XVIEW_INCLUDES%g
s%@ILUHOME@%$ILUHOME%g
s%@DESTDIR@%$DESTDIR%g
s%@BINDINGDIR@%$BINDINGDIR%g
s%@MULTICAST_INCLUDES@%$MULTICAST_INCLUDES%g

CEOF
EOF

cat >> $CONFIG_STATUS <<\EOF

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

cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"iludefs topmake ssllocations.cfg"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

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

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

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

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

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

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

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

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

  echo creating $ac_file

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

EOF

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

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF

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

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

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

EOF
cat >> $CONFIG_STATUS <<EOF

EOF
cat >> $CONFIG_STATUS <<\EOF

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



rm -f ../runtime/kernel/iluconf.h
cp ./iluconf.h ../runtime/kernel/iluconf.h
chmod 444 ../runtime/kernel/iluconf.h


if test "$secure_transport" = "yes"; then
  rm -f ../GSS/kernel/ilugss_conf.h
  cp ./ilugss_conf.h ../GSS/kernel/ilugss_conf.h
  chmod 444 ../GSS/kernel/ilugss_conf.h
  if test -f ../GSS/kernel/makefile ; then
    mv ../GSS/kernel/makefile ../GSS/kernel/makefile.unused
  fi
  if test -d ../GSS/ssl/ -a "$ssl_secmech" = "yes" ; then
    rm -f ../GSS/ssl/locations.cfg
    cp ssllocations.cfg ../GSS/ssl/locations.cfg
    chmod 444 ../GSS/ssl/locations.cfg
  fi
fi


echo "$ac_t""creating ilu.defs.new..." 1>&6
rm -f ilu.defs.new
cat iluchoices iludefs >ilu.defs.new
chmod 444 ilu.defs.new
rm -f iluchoices iludefs


echo "$ac_t""creating top-level Makefile..." 1>&6
if test -f ../BootstrapMakefile ; then
  rm -f ../BootstrapMakefile
fi
cat ./topmake >../BootstrapMakefile
