#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.14a.
#
# Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

#
# Initializations.
#
ac_default_prefix=/usr/local
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}
# Sed expression to map a string onto a valid sh and CPP variable names.
ac_tr_sh='sed y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
ac_tr_cpp='sed y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'

# By default always use an empty string as the executable extension.
# Only change it if the script calls AC_EXEEXT.
ac_exeext=
# By default assume that objects files use an extension of .o.  Only
# change it if the script calls AC_OBJEXT.
ac_objext=o
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#include <sys/types.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#else
# if HAVE_STRINGS_H
#  include <strings.h>
# endif
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
ac_unique_file="ChangeLog"

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

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

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

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

  case $ac_option in

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

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

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

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

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

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

  -enable-* | --enable-*)
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-a-zA-Z0-9_]" >/dev/null &&
      { echo "configure: error: invalid feature name: $ac_feature" >&2; exit 1; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_$ac_feature='$ac_optarg'" ;;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  -without-* | --without-*)
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-a-zA-Z0-9_]" >/dev/null &&
      { echo "configure: error: invalid package name: $ac_package" >&2; exit 1; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;

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

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

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

  -*) { echo "configure: error: unrecognized option: $ac_option
Try \`configure --help' for more information." >&2; exit 1; }
    ;;

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

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

  esac
done

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

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

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

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

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

# 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: cannot find sources in $ac_confdir or .." >&2; exit 1; }
  else
    { echo "configure: error: cannot find sources in $srcdir" >&2; exit 1; }
  fi
fi
srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`

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

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

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

Defaults for the options are specified in brackets.

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

EOF

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

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

For better control, use the options below.

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

  cat <<\EOF

Program names:
  --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

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

if test -n "$ac_init_help"; then

  cat <<\EOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking Speeds up one-time builds
  --enable-dependency-tracking  Do not reject slow dependency extractors
  --enable-maintainer-mode enable make rules and dependencies not useful
                          (and sometimes confusing) to the casual installer

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-jikespg=PROG     location of jikes parser generator (optional)

Some relevant environment variables, which you can use to override the
choices made by the configure script or to help it to find libraries and
programs with nonstandard names/locations:
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
EOF
fi

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

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

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

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

Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

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

# NLS nuisances.
$ac_unset LANG || test "${LANG+set}" != set || LANG=C && export LANG
$ac_unset LC_ALL || test "${LC_ALL+set}" != set || LC_ALL=C && export LC_ALL
$ac_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || LC_CTYPE=C && export LC_CTYPE
$ac_unset LANGUAGE || test "${LANGUAGE+set}" != set || LANGUAGE=C && export LANGUAGE
$ac_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || LC_MESSAGES=C && export LC_MESSAGES

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

# CDPATH.
$ac_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH

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

# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
for ac_arg
do
  case $ac_arg in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done

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

It was created by configure  2.14a, executed with
 > $0 $ac_configure_args
" >&5

# 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

# 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
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    echo "loading cache $cache_file"
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
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 >&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gcc

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac

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

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

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

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

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

echo "configure:710: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftestfile`
   fi
   if test "$*" != "X $srcdir/configure conftestfile" \
      && test "$*" != "X conftestfile $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2; exit 1; }
   fi

   test "$2" = conftestfile
   )
then
   # Ok.
   :
else
   { echo "configure: error: newly created file is older than distributed files!
Check your system clock" >&2; exit 1; }
fi
rm -f conftest*
echo "configure:745: result: yes" >&5
echo "${ECHO_T}yes" >&6
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
else
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF >conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF
  program_transform_name=`echo $program_transform_name | sed -f conftestsed`
  rm -f conftestsed
fi
test "$program_prefix" != NONE &&
  program_transform_name="s,^,${program_prefix},;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"

# sed with no file args requires a program.
test -z "$program_transform_name" && program_transform_name="s,x,x,"

test x"${MISSING+set}" = xset || \
  MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
if eval "$MISSING --run :"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  am_backtick='`'
  echo "configure: WARNING: ${am_backtick}missing' script is too old or missing" >&2
fi

for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "configure:777: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  test -f $ac_dir/$ac_word || continue
ac_cv_prog_AWK="$ac_prog"
break
done

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

test -n "$AWK" && break
done

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

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

fi
if test "x$enable_dependency_tracking" = xno; then
  AMDEP="#"
else
  am_depcomp="$ac_aux_dir/depcomp"
  if test ! -f "$am_depcomp"; then
    AMDEP="#"
  else
    AMDEP=
  fi
fi

if test -z "$AMDEP"; then
  AMDEPBACKSLASH='\'
else
  AMDEPBACKSLASH=
fi

if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
  DEPDIR=.deps
else
  DEPDIR=_deps
fi

# test to see if srcdir already configured
if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
   test -f $srcdir/config.status; then
  { echo "configure: error: source directory already configured; run \"make distclean\" there first" >&2; exit 1; }
fi

# Define the identity of the package.
PACKAGE=jikes
VERSION=1.12

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

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

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}

AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}

AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}

AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}

MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

AMTAR=${AMTAR-"${am_missing_run}tar"}

if test -z "$install_sh"; then
   install_sh="$ac_aux_dir/install-sh"
   test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
   test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
         install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
fi

cat >>confdefs.h <<\EOF
#define JIKES_VERSION_STRING "Version 1.12 8/1/2000"
EOF

ac_config_headers="$ac_config_headers src/config.h"

ac_config_commands="$ac_config_commands default-1"

echo "configure:890: checking whether to enable maintainer-specific portions of Makefiles" >&5
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
  enableval="$enable_maintainer_mode"
  USE_MAINTAINER_MODE=$enableval
else
  USE_MAINTAINER_MODE=no
fi
  echo "configure:899: result: $USE_MAINTAINER_MODE" >&5
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6

if test $USE_MAINTAINER_MODE = yes; then
  MAINTAINER_MODE_TRUE=
  MAINTAINER_MODE_FALSE='#'
else
  MAINTAINER_MODE_TRUE='#'
  MAINTAINER_MODE_FALSE=
fi
  MAINT=$MAINTAINER_MODE_TRUE

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

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

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

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

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

ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

case "${CXX+set} $ac_configure_args" in
 *" CXX="* );;
 "set "*) ac_configure_args="CXX='$CXX' $ac_configure_args";;
esac
case "${CXXFLAGS+set} $ac_configure_args" in
 *" CXXFLAGS="* );;
 "set "*) ac_configure_args="CXXFLAGS='$CXXFLAGS' $ac_configure_args";;
esac
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "configure:970: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  test -f $ac_dir/$ac_word || continue
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
break
done

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

  test "$CXX" != "" && break
done
if test "$CXX" = ""; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "configure:1004: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  test -f $ac_dir/$ac_word || continue
ac_cv_prog_CXX="$ac_prog"
break
done

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

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

fi

echo "configure:1035: checking whether the C++ compiler works" >&5
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
cat >conftest.$ac_ext <<EOF
#line 1038 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

int
main ()
{

  ;
  return 0;
}
EOF
if { (eval echo configure:1050: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  # FIXME: these cross compiler hacks should be removed for autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./conftest'; { (eval echo configure:1054: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
      cross_compiling=yes
    else
      { echo "configure: error: cannot run C++ compiled programs.
To enable cross compilation, use \`--host'." >&2; exit 1; }
    fi
  fi
fi
echo "configure:1065: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  echo "configure:1070: result: no" >&5
echo "${ECHO_T}no" >&6
{ echo "configure: error: C++ compiler cannot create executables" >&2; exit 77; }
fi
rm -f conftest*echo "configure:1074: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "configure:1076: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "configure:1078: checking whether we are using GNU C++" >&5
echo $ECHO_N "checking whether we are using GNU C++... $ECHO_C" >&6
if test "${ac_cv_prog_gxx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # The semicolon is to pacify NeXT's syntax-checking cpp.
cat >conftest.cc <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CXX-g++} -E conftest.cc'; { (eval echo configure:1089: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gxx=yes
else
  ac_cv_prog_gxx=no
fi
fi
echo "configure:1095: result: $ac_cv_prog_gxx" >&5
echo "${ECHO_T}$ac_cv_prog_gxx" >&6
ac_gnu_compiler=$ac_cv_prog_gxx
if test $ac_gnu_compiler = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS=
echo "configure:1106: checking whether ${CXX-g++} accepts -g" >&5
echo $ECHO_N "checking whether ${CXX-g++} accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  echo 'void f(){}' >conftest.cc
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  ac_cv_prog_cxx_g=yes
else
  ac_cv_prog_cxx_g=no
fi
rm -f conftest*

fi
echo "configure:1119: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
echo "configure:1136: checking for Cygwin environment" >&5
echo $ECHO_N "checking for Cygwin environment... $ECHO_C" >&6
if test "${ac_cv_cygwin+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1142 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

int
main ()
{
#ifndef __CYGWIN__
# define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
  ;
  return 0;
}
EOF
if { (eval echo configure:1158: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_cygwin=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_cygwin=no
fi
rm -f conftest*
fi
echo "configure:1167: result: $ac_cv_cygwin" >&5
echo "${ECHO_T}$ac_cv_cygwin" >&6
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo "configure:1170: checking for mingw32 environment" >&5
echo $ECHO_N "checking for mingw32 environment... $ECHO_C" >&6
if test "${ac_cv_mingw32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1176 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

int
main ()
{
return __MINGW32__;
  ;
  return 0;
}
EOF
if { (eval echo configure:1189: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_mingw32=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_mingw32=no
fi
rm -f conftest*
fi
echo "configure:1198: result: $ac_cv_mingw32" >&5
echo "${ECHO_T}$ac_cv_mingw32" >&6
test "$ac_cv_mingw32" = yes && MINGW32=yes
echo "configure:1201: checking for EMX OS/2 environment" >&5
echo $ECHO_N "checking for EMX OS/2 environment... $ECHO_C" >&6
if test "${ac_cv_emxos2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1207 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

int
main ()
{
return __EMX__;
  ;
  return 0;
}
EOF
if { (eval echo configure:1220: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_emxos2=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_emxos2=no
fi
rm -f conftest*
fi
echo "configure:1229: result: $ac_cv_emxos2" >&5
echo "${ECHO_T}$ac_cv_emxos2" >&6
test "$ac_cv_emxos2" = yes && EMXOS2=yes
echo "configure:1232: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if test "${ac_cv_exeext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
  ac_cv_exeext=.exe
else
  cat >conftest.$ac_ext <<EOF
#line 1241 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

int
main ()
{

  ;
  return 0;
}
EOF
if { (eval echo configure:1253: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  for ac_file in conftest.*; do
     case $ac_file in
       *.$ac_ext | *.o | *.obj | *.xcoff) ;;
       *) ac_cv_exeext=`echo $ac_file | sed s/conftest//` ;;
     esac
   done
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: cannot compile and link" >&2; exit 1; }
fi
rm -f conftest*
  test -n "$ac_cv_exeext" && ac_cv_exeext=no
fi
fi
echo "configure:1269: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6
EXEEXT=
test "$ac_cv_exeext" != no && EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT

echo "configure:1274: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1280 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

int
main ()
{

  ;
  return 0;
}
EOF
if { (eval echo configure:1292: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  for ac_file in conftest.*; do
    case $ac_file in
      *.$ac_ext) ;;
      *) ac_cv_objext=`echo $ac_file | sed s/conftest.//` ;;
    esac
  done
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: cannot compile" >&2; exit 1; }
fi
rm -f conftest*
fi
echo "configure:1306: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$ac_cv_objext

ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

ac_config_commands="$ac_config_commands default-2"

echo "configure:1317: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
if test -z "$CXXCPP"; then
if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

  CXXCPP="${CXX-g++} -E"
  cat >conftest.$ac_ext <<EOF
#line 1331 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <stdlib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1339: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  CXXCPP=/lib/cpp
fi
rm -f conftest*
  ac_cv_prog_CXXCPP=$CXXCPP
ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

fi
CXXCPP=$ac_cv_prog_CXXCPP
fi
echo "configure:1360: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6

depcc="$CXX"
depcpp="$CXXCPP"
echo "configure:1364: checking dependency style of $depcc" >&5
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test -z "$AMDEP"; then
  echo '#include "conftest.h"' > conftest.c
  echo 'int i;' > conftest.h

  am_cv_CXX_dependencies_compiler_type=none
  for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
    case "$depmode" in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    if depmode="$depmode" \
       source=conftest.c object=conftest.o \
       depfile=conftest.Po tmpdepfile=conftest.TPo \
       $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
       grep conftest.h conftest.Po > /dev/null 2>&1; then
      am_cv_CXX_dependencies_compiler_type="$depmode"
      break
    fi
  done

  rm -f conftest.*
else
  am_cv_CXX_dependencies_compiler_type=none
fi

fi

echo "configure:1400: result: $am_cv_CXX_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"

echo "configure:1403: checking for Windows and DOS and OS/2 style pathnames" >&5
echo $ECHO_N "checking for Windows and DOS and OS/2 style pathnames... $ECHO_C" >&6
if test "${acx_cv_pathname_style_dos+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

acx_cv_pathname_style_dos="no"
case ${host_os} in
  *djgpp | *mingw32* | *emx*) acx_cv_pathname_style_dos="yes" ;;
esac

fi

echo "configure:1413: result: $acx_cv_pathname_style_dos" >&5
echo "${ECHO_T}$acx_cv_pathname_style_dos" >&6
if test "$acx_cv_pathname_style_dos" = "yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_PATHNAME_STYLE_DOS
EOF

cat >>confdefs.h <<\EOF
#define PATH_SEPARATOR ';'
EOF

else

cat >>confdefs.h <<\EOF
#define PATH_SEPARATOR ':'
EOF

fi

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

cat >>confdefs.h <<\EOF
#define WIN32_FILE_SYSTEM
EOF

else

cat >>confdefs.h <<\EOF
#define UNIX_FILE_SYSTEM
EOF

fi

if test "x$HAVE_NAMESPACES" = "x" ; then
  ac_cv_cxx_namespaces=no
fi

echo "configure:1439: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1445 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#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:1456: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  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 1470 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <string.h>

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

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<EOF
#line 1488 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <stdlib.h>

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

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<EOF
#line 1509 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
EOF
if { (eval echo configure:1536: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
   test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest*
fi

fi
fi
echo "configure:1548: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

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

fi

echo "configure:1555: checking whether the compiler implements namespaces" >&5
echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
if test "${ac_cv_cxx_namespaces+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

 ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

 cat >conftest.$ac_ext <<EOF
#line 1567 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
namespace Outer { namespace Inner { int i = 0; }}
int
main ()
{
using namespace Outer::Inner; return i;
  ;
  return 0;
}
EOF
if { (eval echo configure:1581: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_cxx_namespaces=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_cxx_namespaces=no
fi
rm -f conftest*
 ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

fi
echo "configure:1596: result: $ac_cv_cxx_namespaces" >&5
echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
if test "$ac_cv_cxx_namespaces" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_NAMESPACES
EOF

fi

echo "configure:1603: checking whether the compiler supports ISO C++ standard library" >&5
echo $ECHO_N "checking whether the compiler supports ISO C++ standard library... $ECHO_C" >&6
if test "${ac_cv_cxx_have_std+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

 ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

 cat >conftest.$ac_ext <<EOF
#line 1615 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <iostream>
#include <map>
#include <iomanip>
#include <cmath>
#ifdef HAVE_NAMESPACES
using namespace std;
#endif
int
main ()
{
return 0;
  ;
  return 0;
}
EOF
if { (eval echo configure:1635: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_cxx_have_std=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_cxx_have_std=no
fi
rm -f conftest*
 ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

fi
echo "configure:1650: result: $ac_cv_cxx_have_std" >&5
echo "${ECHO_T}$ac_cv_cxx_have_std" >&6
if test "$ac_cv_cxx_have_std" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_STD
EOF

fi

for ac_header in stdio.h iostream.h assert.h limits.h ctype.h time.h float.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
 *" CPPFLAGS="* );;
 "set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:1664: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1670 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <$ac_header>

EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1678: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:1690: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

for ac_header in iconv.h windows.h direct.h dirent.h sys/cygwin.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
 *" CPPFLAGS="* );;
 "set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:1705: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1711 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <$ac_header>

EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1719: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:1731: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

echo "configure:1739: checking whether the compiler recognizes bool as a built-in type" >&5
echo $ECHO_N "checking whether the compiler recognizes bool as a built-in type... $ECHO_C" >&6
if test "${ac_cv_cxx_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

 ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

 cat >conftest.$ac_ext <<EOF
#line 1751 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

int f(int  x){return 1;}
int f(char x){return 1;}
int f(bool x){return 1;}

int
main ()
{
bool b = true; return f(b);
  ;
  return 0;
}
EOF
if { (eval echo configure:1767: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_cxx_bool=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_cxx_bool=no
fi
rm -f conftest*
 ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

fi
echo "configure:1782: result: $ac_cv_cxx_bool" >&5
echo "${ECHO_T}$ac_cv_cxx_bool" >&6
if test "$ac_cv_cxx_bool" = "yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_BOOL
EOF

fi

for ac_header in math.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
 *" CPPFLAGS="* );;
 "set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:1796: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1802 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <$ac_header>

EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1810: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:1822: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

echo "configure:1830: checking if math lib is required" >&5
echo $ECHO_N "checking if math lib is required... $ECHO_C" >&6
if test "${ac_cv_need_math_lib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  cat >conftest.$ac_ext <<EOF
#line 1836 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#ifdef HAVE_MATH_H
#include <math.h>
#endif

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

fi
echo "configure:1861: result: $ac_cv_need_math_lib" >&5
echo "${ECHO_T}$ac_cv_need_math_lib" >&6

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

case "${LDFLAGS+set} $ac_configure_args" in
 *" LDFLAGS="* );;
 "set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:1868: checking for floor in -lm" >&5
echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_floor+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat >conftest.$ac_ext <<EOF
#line 1876 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char floor ();
int
main ()
{
floor ();
  ;
  return 0;
}
EOF
if { (eval echo configure:1896: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_lib_m_floor=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_lib_m_floor=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:1906: result: $ac_cv_lib_m_floor" >&5
echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
if test $ac_cv_lib_m_floor = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBM 1
EOF

  LIBS="-lm $LIBS"

else
  { echo "configure: error: Could not find floor function in math library" >&2; exit 1; }
fi

        cat >conftest.$ac_ext <<EOF
#line 1917 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#ifdef HAVE_MATH_H
#include <math.h>
#endif

int
main ()
{
 floor(0.0);
  ;
  return 0;
}
EOF
if { (eval echo configure:1933: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: Could not link program that uses math library" >&2; exit 1; }
fi
rm -f conftest*

fi

if test "$ac_cv_cxx_have_std" = yes; then

for ac_header in new
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
 *" CPPFLAGS="* );;
 "set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:1950: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1956 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <$ac_header>

EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1964: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:1976: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

fi

for ac_header in new.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
 *" CPPFLAGS="* );;
 "set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:1992: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 1998 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <$ac_header>

EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2006: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:2018: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

echo "configure:2026: checking for VC++ style set_new_handler" >&5
echo $ECHO_N "checking for VC++ style set_new_handler... $ECHO_C" >&6
if test "${ac_cv_vcpp_set_new_handler+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

  cat >conftest.$ac_ext <<EOF
#line 2038 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#ifdef HAVE_NEW
# include <new>
# ifdef HAVE_NAMESPACE
#  using namespace std;
# endif
#else
# ifdef HAVE_NEW_H
#  include <new.h>
# endif
#endif

int OutOfMemory(size_t) { return 0; }

int
main ()
{
 _set_new_handler(OutOfMemory);
  ;
  return 0;
}
EOF
if { (eval echo configure:2062: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_vcpp_set_new_handler=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_vcpp_set_new_handler=no
fi
rm -f conftest*
  ac_ext=cc
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gxx

fi
echo "configure:2077: result: $ac_cv_vcpp_set_new_handler" >&5
echo "${ECHO_T}$ac_cv_vcpp_set_new_handler" >&6

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

cat >>confdefs.h <<\EOF
#define HAVE_VCPP_SET_NEW_HANDLER
EOF

else

echo "configure:2084: checking for standard set_new_handler" >&5
echo $ECHO_N "checking for standard set_new_handler... $ECHO_C" >&6
if test "${ac_cv_standard_set_new_handler+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2090 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#ifdef HAVE_NEW
# include <new>
# ifdef HAVE_NAMESPACE
#  using namespace std;
# endif
#else
# ifdef HAVE_NEW_H
#  include <new.h>
# endif
#endif

void OutOfMemory() { return; }

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

fi
echo "configure:2123: result: $ac_cv_standard_set_new_handler" >&5
echo "${ECHO_T}$ac_cv_standard_set_new_handler" >&6

if test "$ac_cv_standard_set_new_handler" != "yes" ; then
    { echo "configure: error: Cound not find standard set_new_handler function" >&2; exit 1; }
fi

fi

echo "configure:2129: checking for compiler error on discard of const qualifier" >&5
echo $ECHO_N "checking for compiler error on discard of const qualifier... $ECHO_C" >&6
if test "${ac_cv_error_discard_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2135 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

void foo(char * arg) {}
void const_foo(const char * arg) { foo(arg); }

int
main ()
{

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

fi
echo "configure:2158: result: $ac_cv_error_discard_const" >&5
echo "${ECHO_T}$ac_cv_error_discard_const" >&6
if test "$ac_cv_error_discard_const" = "yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_ERROR_DISCARD_CONST
EOF

fi

for ac_header in wchar.h string.h strings.h memory.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
 *" CPPFLAGS="* );;
 "set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:2172: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2178 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <$ac_header>

EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2186: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:2198: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

for ac_func in wcslen wcscpy wcsncpy wcscat wcscmp wcsncmp
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:2209: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2215 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
/* 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.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

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

  ;
  return 0;
}
EOF
if { (eval echo configure:2246: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  eval "$ac_ac_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:2255: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

echo "configure:2263: checking for wint_t" >&5
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
if test "${ac_cv_type_wint_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2269 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
$ac_includes_default
int
main ()
{
if ((wint_t *) 0)
  return 0;
if (sizeof (wint_t))
  return 0;
  ;
  return 0;
}
EOF
if { (eval echo configure:2286: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_type_wint_t=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_type_wint_t=no
fi
rm -f conftest*
fi
echo "configure:2295: result: $ac_cv_type_wint_t" >&5
echo "${ECHO_T}$ac_cv_type_wint_t" >&6

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

cat >>confdefs.h <<\EOF
#define HAVE_WINT_T
EOF

fi

wcs_funcs_includes="
#ifdef HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#else
# ifdef HAVE_STRINGS_H
#  include <strings.h>
# endif
#endif
#ifdef HAVE_WCHAR_H
# include <wchar.h>
#endif
"

echo "configure:2317: checking call wcslen" >&5
echo $ECHO_N "checking call wcslen... $ECHO_C" >&6
if test "${ac_cv_call_wcslen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<EOF
#line 2323 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
$wcs_funcs_includes
int
main ()
{
wcslen(NULL)
  ;
  return 0;
}
EOF
if { (eval echo configure:2337: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_call_wcslen=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_call_wcslen=no
fi
rm -f conftest*

fi
echo "configure:2346: result: $ac_cv_call_wcslen" >&5
echo "${ECHO_T}$ac_cv_call_wcslen" >&6

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

echo "configure:2349: checking for error calling wcslen with const argument" >&5
echo $ECHO_N "checking for error calling wcslen with const argument... $ECHO_C" >&6
if test "${ac_cv_error_call_wcslen_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2355 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
$wcs_funcs_includes
int
main ()
{

const wchar_t * s = NULL;
wcslen(s);

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

fi
echo "configure:2379: result: $ac_cv_error_call_wcslen_const" >&5
echo "${ECHO_T}$ac_cv_error_call_wcslen_const" >&6

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

cat >>confdefs.h <<\EOF
#define HAVE_ERROR_CALL_WCSLEN_CONST
EOF

  echo "configure:2385: checking fix for calling wcslen with non const argument" >&5
echo $ECHO_N "checking fix for calling wcslen with non const argument... $ECHO_C" >&6
if test "${ac_cv_call_wcslen_non_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2391 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
$wcs_funcs_includes
int
main ()
{

  const wchar_t * s = NULL;
  wcslen(
  #ifdef HAVE_ERROR_CALL_WCSLEN_CONST
           (wchar_t *)
  #endif
         s);

  ;
  return 0;
}
EOF
if { (eval echo configure:2410: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_call_wcslen_non_const=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: Could not compile with wcslen const cast fix" >&2; exit 1; }

fi
rm -f conftest*
fi
echo "configure:2419: result: $ac_cv_call_wcslen_non_const" >&5
echo "${ECHO_T}$ac_cv_call_wcslen_non_const" >&6

fi

fi

case "${LDFLAGS+set} $ac_configure_args" in
 *" LDFLAGS="* );;
 "set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:2427: checking for u_getVersion in -licu-uc" >&5
echo $ECHO_N "checking for u_getVersion in -licu-uc... $ECHO_C" >&6
if test "${ac_cv_lib_icu_uc_u_getVersion+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-licu-uc  $LIBS"
cat >conftest.$ac_ext <<EOF
#line 2435 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char u_getVersion ();
int
main ()
{
u_getVersion ();
  ;
  return 0;
}
EOF
if { (eval echo configure:2455: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_lib_icu_uc_u_getVersion=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_lib_icu_uc_u_getVersion=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:2465: result: $ac_cv_lib_icu_uc_u_getVersion" >&5
echo "${ECHO_T}$ac_cv_lib_icu_uc_u_getVersion" >&6
if test $ac_cv_lib_icu_uc_u_getVersion = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIB_ICU_UC 1
EOF

  LIBS="-licu-uc $LIBS"

fi

case "${LDFLAGS+set} $ac_configure_args" in
 *" LDFLAGS="* );;
 "set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:2477: checking for iconv_open in -liconv" >&5
echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liconv  $LIBS"
cat >conftest.$ac_ext <<EOF
#line 2485 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char iconv_open ();
int
main ()
{
iconv_open ();
  ;
  return 0;
}
EOF
if { (eval echo configure:2505: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_lib_iconv_iconv_open=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_lib_iconv_iconv_open=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:2515: result: $ac_cv_lib_iconv_iconv_open" >&5
echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
if test $ac_cv_lib_iconv_iconv_open = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBICONV 1
EOF

  LIBS="-liconv $LIBS"

fi

for ac_func in cygwin_win32_to_posix_path_list
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:2526: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2532 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
/* 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.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

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

  ;
  return 0;
}
EOF
if { (eval echo configure:2563: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  eval "$ac_ac_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:2572: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

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

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "configure:2603: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "configure:2606: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test -z "$ac_cv_prog_STRIP"; then
  if test -n "$ac_tool_prefix"; then
    # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "configure:2613: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  test -f $ac_dir/$ac_word || continue
ac_cv_prog_ac_ct_STRIP="strip"
break
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "configure:2635: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "configure:2638: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    STRIP="$ac_ct_STRIP"
  else
    STRIP=":"
  fi
fi

#FIXME : do we need to add the -funsigned-char option when compiling with
# g++? If we always use the u1 type (see platform.h), then I think not.

# It might also be better to use the following macro for these tests!
#AC_CHECK_SIZEOF (TYPE, [CROSS-SIZE], [INCLUDES])

echo "configure:2650: checking correct value for UINT_MAX" >&5
echo $ECHO_N "checking correct value for UINT_MAX... $ECHO_C" >&6
if test "${jikes_cv_uint_max+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2656 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <limits.h>
#if ! (UINT_MAX == 0xFFFFFFFF)
# error "UINT_MAX"
#endif

int
main ()
{
return 0;
  ;
  return 0;
}
EOF
if { (eval echo configure:2673: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  jikes_cv_uint_max=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: unsigned int does not store values in the range
    0..4294967295 on this system" >&2; exit 1; }
fi
rm -f conftest*
fi
echo "configure:2683: result: $jikes_cv_uint_max" >&5
echo "${ECHO_T}$jikes_cv_uint_max" >&6

echo "configure:2685: checking correct value for INT_MAX" >&5
echo $ECHO_N "checking correct value for INT_MAX... $ECHO_C" >&6
if test "${jikes_cv_int_max+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2691 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <limits.h>
#if ! ((INT_MAX == 2147483647) && (INT_MIN + 1 == -INT_MAX))
# error "INT_MAX"
#endif

int
main ()
{
return 0;
  ;
  return 0;
}
EOF
if { (eval echo configure:2708: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  jikes_cv_int_max=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: int does not store values in the range
    -2147483648..+2147483647 on this system" >&2; exit 1; }
fi
rm -f conftest*
fi
echo "configure:2718: result: $jikes_cv_int_max" >&5
echo "${ECHO_T}$jikes_cv_int_max" >&6

echo "configure:2720: checking for broken USHRT_MAX" >&5
echo $ECHO_N "checking for broken USHRT_MAX... $ECHO_C" >&6
if test "${jikes_cv_ushrt_max_is_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2726 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <limits.h>
#if ! (USHRT_MAX == 0xFFFF)
int hi=0;
#endif

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

fi
echo "configure:2752: result: $jikes_cv_ushrt_max_is_broken" >&5
echo "${ECHO_T}$jikes_cv_ushrt_max_is_broken" >&6
if test "$jikes_cv_ushrt_max_is_broken" = "yes" ; then

cat >>confdefs.h <<\EOF
#define HAVE_BROKEN_USHRT_MAX
EOF

fi

echo "configure:2759: checking correct value for USHRT_MAX" >&5
echo $ECHO_N "checking correct value for USHRT_MAX... $ECHO_C" >&6
if test "${jikes_cv_ushrt_max+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2765 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <limits.h>
#if ! (USHRT_MAX == 0xFFFF)
# error "USHRT_MAX"
#endif

int
main ()
{
return 0;
  ;
  return 0;
}
EOF
if { (eval echo configure:2782: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  jikes_cv_ushrt_max=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: unsigned short does not store values in the range
    0..65535 on this system" >&2; exit 1; }
fi
rm -f conftest*
fi
echo "configure:2792: result: $jikes_cv_ushrt_max" >&5
echo "${ECHO_T}$jikes_cv_ushrt_max" >&6

echo "configure:2794: checking correct value for SHRT_MAX" >&5
echo $ECHO_N "checking correct value for SHRT_MAX... $ECHO_C" >&6
if test "${jikes_cv_shrt_max+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2800 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <limits.h>
#if ! ((SHRT_MAX == 32767) && (SHRT_MIN + 1 == -SHRT_MAX))
# error "SHRT_MAX"
#endif

int
main ()
{
return 0;
  ;
  return 0;
}
EOF
if { (eval echo configure:2817: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  jikes_cv_shrt_max=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: short does not store values in the range
    -32767..+32768 on this system" >&2; exit 1; }
fi
rm -f conftest*
fi
echo "configure:2827: result: $jikes_cv_shrt_max" >&5
echo "${ECHO_T}$jikes_cv_shrt_max" >&6

echo "configure:2829: checking correct value for UCHAR_MAX" >&5
echo $ECHO_N "checking correct value for UCHAR_MAX... $ECHO_C" >&6
if test "${jikes_cv_uchar_max+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2835 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <limits.h>
#if ! (UCHAR_MAX == 0xFF)
# error "UCHAR_MAX"
#endif

int
main ()
{
return 0;
  ;
  return 0;
}
EOF
if { (eval echo configure:2852: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  jikes_cv_uchar_max=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: unsigned char does not store values in the range
    0..255 on this system" >&2; exit 1; }
fi
rm -f conftest*
fi
echo "configure:2862: result: $jikes_cv_uchar_max" >&5
echo "${ECHO_T}$jikes_cv_uchar_max" >&6

echo "configure:2864: checking correct value for SCHAR_MAX" >&5
echo $ECHO_N "checking correct value for SCHAR_MAX... $ECHO_C" >&6
if test "${jikes_cv_schar_max+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2870 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <limits.h>
#if ! ((SCHAR_MAX == 127) && (SCHAR_MIN + 1 == -SCHAR_MAX))
# error "SCHAR_MAX"
#endif

int
main ()
{
return 0;
  ;
  return 0;
}
EOF
if { (eval echo configure:2887: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  jikes_cv_schar_max=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  { echo "configure: error: char does not store values in the range
    -128..+127 on this system" >&2; exit 1; }
fi
rm -f conftest*
fi
echo "configure:2897: result: $jikes_cv_schar_max" >&5
echo "${ECHO_T}$jikes_cv_schar_max" >&6

echo "configure:2899: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 2905 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
$ac_includes_default
int
main ()
{
if ((unsigned long long *) 0)
  return 0;
if (sizeof (unsigned long long))
  return 0;
  ;
  return 0;
}
EOF
if { (eval echo configure:2922: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_type_unsigned_long_long=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_type_unsigned_long_long=no
fi
rm -f conftest*
fi
echo "configure:2931: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6

#FIXME: we might also want to check for the __int64 type
#which seems to be defined on some windows systems.

# FIXME: What about the u_int64_t type, would that work too?

if test "$ac_cv_type_unsigned_long_long" != "yes" ; then

    echo "configure:2937: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${ac_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat >conftest.$ac_ext <<EOF
#line 2945 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#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:2962: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  # It does; now see whether it defined to BIG_ENDIAN or not.
cat >conftest.$ac_ext <<EOF
#line 2965 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#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:2982: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  ac_cv_c_bigendian=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  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: cannot run test program while cross compiling" >&2; exit 1; }
else
  cat >conftest.$ac_ext <<EOF
#line 3000 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
int
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:3018: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
   test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
  ac_cv_c_bigendian=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_c_bigendian=yes
fi
rm -f conftest*
fi

fi
fi
echo "configure:3030: result: $ac_cv_c_bigendian" >&5
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
if test $ac_cv_c_bigendian = yes; then

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

fi

else

cat >>confdefs.h <<\EOF
#define HAVE_UNSIGNED_LONG_LONG
EOF

fi

# FIXME : we would need to readdress this when porting to new systems

cat >>confdefs.h <<\EOF
#define HAVE_32BIT_TYPES
EOF

echo "configure:3046: checking for __S_IFDIR symbol" >&5
echo $ECHO_N "checking for __S_IFDIR symbol... $ECHO_C" >&6
if test "${jikes_cv_stat_ifdir_2underscore+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 3052 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <sys/stat.h>

int
main ()
{
int i = __S_IFDIR;
  ;
  return 0;
}
EOF
if { (eval echo configure:3066: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  jikes_cv_stat_ifdir_2underscore=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  jikes_cv_stat_ifdir_2underscore=no
fi
rm -f conftest*
fi
echo "configure:3075: result: $jikes_cv_stat_ifdir_2underscore" >&5
echo "${ECHO_T}$jikes_cv_stat_ifdir_2underscore" >&6

echo "configure:3077: checking for _S_IFDIR symbol" >&5
echo $ECHO_N "checking for _S_IFDIR symbol... $ECHO_C" >&6
if test "${jikes_cv_stat_ifdir_1underscore+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 3083 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <sys/stat.h>

int
main ()
{
int i = _S_IFDIR;
  ;
  return 0;
}
EOF
if { (eval echo configure:3097: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  jikes_cv_stat_ifdir_1underscore=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  jikes_cv_stat_ifdir_1underscore=no
fi
rm -f conftest*
fi
echo "configure:3106: result: $jikes_cv_stat_ifdir_1underscore" >&5
echo "${ECHO_T}$jikes_cv_stat_ifdir_1underscore" >&6

echo "configure:3108: checking for S_IFDIR symbol" >&5
echo $ECHO_N "checking for S_IFDIR symbol... $ECHO_C" >&6
if test "${jikes_cv_stat_ifdir_0underscore+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 3114 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <sys/stat.h>

int
main ()
{
int i = S_IFDIR;
  ;
  return 0;
}
EOF
if { (eval echo configure:3128: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  jikes_cv_stat_ifdir_0underscore=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  jikes_cv_stat_ifdir_0underscore=no
fi
rm -f conftest*
fi
echo "configure:3137: result: $jikes_cv_stat_ifdir_0underscore" >&5
echo "${ECHO_T}$jikes_cv_stat_ifdir_0underscore" >&6

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

cat >>confdefs.h <<\EOF
#define JIKES_STAT_S_IFDIR __S_IFDIR
EOF

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

cat >>confdefs.h <<\EOF
#define JIKES_STAT_S_IFDIR _S_IFDIR
EOF

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

cat >>confdefs.h <<\EOF
#define JIKES_STAT_S_IFDIR S_IFDIR
EOF

else
    { echo "configure: error: Could not find stat S_IFDIR symbol" >&2; exit 1; }
fi

for ac_func in mkdir
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:3157: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 3163 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
/* 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.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

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

  ;
  return 0;
}
EOF
if { (eval echo configure:3194: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  eval "$ac_ac_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:3203: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

else
  { echo "configure: error: No mkdir() function found" >&2; exit 1; }
fi
done

echo "configure:3213: checking for mac style mkdir" >&5
echo $ECHO_N "checking for mac style mkdir... $ECHO_C" >&6
if test "${jikes_cv_mac_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 3219 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <sys/stat.h>
#include <stat.mac.h>

int
main ()
{
mkdir("foo.dir", 0);

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

fi
echo "configure:3243: result: $jikes_cv_mac_mkdir" >&5
echo "${ECHO_T}$jikes_cv_mac_mkdir" >&6

echo "configure:3245: checking for glibc style mkdir" >&5
echo $ECHO_N "checking for glibc style mkdir... $ECHO_C" >&6
if test "${jikes_cv_glibc_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 3251 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <sys/stat.h>
#include <unistd.h>

int
main ()
{
mkdir("foo.dir", S_IRWXU | S_IRWXG | S_IRWXO);

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

fi
echo "configure:3275: result: $jikes_cv_glibc_mkdir" >&5
echo "${ECHO_T}$jikes_cv_glibc_mkdir" >&6

echo "configure:3277: checking for libc5 style mkdir" >&5
echo $ECHO_N "checking for libc5 style mkdir... $ECHO_C" >&6
if test "${jikes_cv_libc5_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 3283 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <sys/stat.h>
#include <unistd.h>

int
main ()
{
mkdir("foo.dir", S_IRWXU);

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

fi
echo "configure:3307: result: $jikes_cv_libc5_mkdir" >&5
echo "${ECHO_T}$jikes_cv_libc5_mkdir" >&6

echo "configure:3309: checking for win32 style mkdir" >&5
echo $ECHO_N "checking for win32 style mkdir... $ECHO_C" >&6
if test "${jikes_cv_win32_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 3315 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

#include <direct.h>

int
main ()
{
mkdir("foo.dir");

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

fi
echo "configure:3338: result: $jikes_cv_win32_mkdir" >&5
echo "${ECHO_T}$jikes_cv_win32_mkdir" >&6

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

cat >>confdefs.h <<\EOF
#define HAVE_GLIBC_MKDIR
EOF

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

cat >>confdefs.h <<\EOF
#define HAVE_LIBC5_MKDIR
EOF

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

cat >>confdefs.h <<\EOF
#define HAVE_WIN32_MKDIR
EOF

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

cat >>confdefs.h <<\EOF
#define HAVE_MAC_MKDIR
EOF

else
    { echo "configure: error: Could not locate a working mkdir() implementation" >&2; exit 1; }
fi

echo "configure:3359: checking floating point bug workaround for ICC compiler" >&5
echo $ECHO_N "checking floating point bug workaround for ICC compiler... $ECHO_C" >&6
if test "${jikes_cv_icc_fp_bugs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<EOF
#line 3365 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <float.h>
int
main ()
{
 _control87(EM_UNDERFLOW, EM_UNDERFLOW);
  ;
  return 0;
}
EOF
if { (eval echo configure:3379: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
    if "$CXX" = "ICC" || test "$CXX" = "vacpp" ; then
       jikes_cv_icc_fp_bugs=yes
   else
       jikes_cv_icc_fp_bugs=no
   fi

else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  jikes_cv_icc_fp_bugs=no
fi
rm -f conftest*

fi
echo "configure:3392: result: $jikes_cv_icc_fp_bugs" >&5
echo "${ECHO_T}$jikes_cv_icc_fp_bugs" >&6
if test "$jikes_cv_icc_fp_bugs" = "yes" ; then

cat >>confdefs.h <<\EOF
#define HAVE_ICC_FP_BUGS
EOF

fi

# Check whether --with-jikespg or --without-jikespg was given.
if test "${with_jikespg+set}" = set; then
  withval="$with_jikespg"
  JIKESPG=$withval
else
  JIKESPG=NONE
fi

if test "$JIKESPG" != "NONE"; then
    if test ! -f "$JIKESPG" || test ! -x "$JIKESPG"; then
        { echo "configure: error: jikespg argument '$JIKESPG' is not a file or is not executable" >&2; exit 1; }
    fi
else
    JIKESPG=jikespg
fi

# Subst variables into Makefile.in to produce the Makefile

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

DEFS=-DHAVE_CONFIG_H

# Save into config.log some information that might help in debugging.
echo >&5
echo "Cache variables:" >&5
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote substitution
      # turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
    	-e "s/'/'\\\\''/g" \
    	-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\2/p'
      ;;
    esac;
} | sed 's/^/| /' >&5
echo >&5
echo "confdefs.h:" >&5
cat confdefs.h | sed 's/^/| /' >&5

: ${CONFIG_STATUS=./config.status}
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
echo creating $CONFIG_STATUS
cat >$CONFIG_STATUS <<\EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

debug=false
me=`echo "$0" | sed 's,.*/,,'`
SHELL=${CONFIG_SHELL-/bin/sh}

EOF

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

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

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

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

cat >>$CONFIG_STATUS <<\EOF

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

Usage: $0 [OPTIONS] FILE...

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

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

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

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
$CONFIG_STATUS generated by autoconf version 2.14a.
Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by
  `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
EOF

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

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

  # Handling of arguments.
  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
  'src/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;

  # This is an error.
  -*) echo "$me: unrecognized option: $1
Try \`$me --help' for more information."; exit 1 ;;
  *) echo "$me: invalid argument: $1"; exit 1 ;;
  esac
  shift
done

EOF

cat >>$CONFIG_STATUS <<\EOF
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
if $ac_need_defaults; then
  : ${CONFIG_FILES=$config_files}
  : ${CONFIG_HEADERS=$config_headers}
  : ${CONFIG_COMMANDS=$config_commands}
fi

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

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

EOF

cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#

AMDEP="$AMDEP"
ac_aux_dir="$ac_aux_dir"

EOF

cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@CXXFLAGS@,$CXXFLAGS,;t t
s,@FFLAGS@,$FFLAGS,;t t
s,@DEFS@,$DEFS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@LIBS@,$LIBS,;t t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
s,@PACKAGE@,$PACKAGE,;t t
s,@VERSION@,$VERSION,;t t
s,@ACLOCAL@,$ACLOCAL,;t t
s,@AUTOCONF@,$AUTOCONF,;t t
s,@AUTOMAKE@,$AUTOMAKE,;t t
s,@AUTOHEADER@,$AUTOHEADER,;t t
s,@MAKEINFO@,$MAKEINFO,;t t
s,@AMTAR@,$AMTAR,;t t
s,@install_sh@,$install_sh,;t t
s,@AWK@,$AWK,;t t
s,@SET_MAKE@,$SET_MAKE,;t t
s,@AMDEP@,$AMDEP,;t t
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
s,@DEPDIR@,$DEPDIR,;t t
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
s,@MAINT@,$MAINT,;t t
s,@build@,$build,;t t
s,@build_cpu@,$build_cpu,;t t
s,@build_vendor@,$build_vendor,;t t
s,@build_os@,$build_os,;t t
s,@host@,$host,;t t
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
s,@CXX@,$CXX,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@CXXCPP@,$CXXCPP,;t t
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
s,@STRIP@,$STRIP,;t t
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
s,@JIKESPG@,$JIKESPG,;t t
CEOF

EOF

  cat >>$CONFIG_STATUS <<\EOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

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

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  ac_dir=`expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
      X"$ac_file" : 'X\(//\)[^/]' \| \
      X"$ac_file" : 'X\(//\)$' \| \
      X"$ac_file" : 'X\(/\)' \| \
      .   : '\(.\)'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
  *)                      ac_incr_dir=.;;
esac
ac_dummy=""$ac_dir""
for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
  ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
  test -d $ac_incr_dir || mkdir $ac_incr_dir
done; }

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

  case $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

  if test x"$ac_file" != x-; then
    echo creating $ac_file
    rm -f "$ac_file"
  fi
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # Don't redirect the output to AC_FILE directly: use `mv' so that
  # updating is atomic, and doesn't need trapping.

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

done
EOF
cat >>$CONFIG_STATUS <<\EOF

#
# CONFIG_HEADER section.
#

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

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

  test x"$ac_file" != x- && echo creating $ac_file

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

EOF

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

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

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

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

cat >>$CONFIG_STATUS <<\EOF
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
  else
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      echo "$ac_file is unchanged"
    else
      ac_dir=`expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
      X"$ac_file" : 'X\(//\)[^/]' \| \
      X"$ac_file" : 'X\(//\)$' \| \
      X"$ac_file" : 'X\(/\)' \| \
      .   : '\(.\)'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
  *)                      ac_incr_dir=.;;
esac
ac_dummy=""$ac_dir""
for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
  ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
  test -d $ac_incr_dir || mkdir $ac_incr_dir
done; }

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

#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`

  case $ac_dest in
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
    default-2 )
test x"$AMDEP" != x"" ||
for mf in $CONFIG_FILES; do
  case "$mf" in
  Makefile) dirpart=.;;
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
  *) continue;;
  esac
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  # Extract the definition of DEP_FILES from the Makefile without
  # running `make'.
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  test -z "$DEPDIR" && continue
  # When using ansi2knr, U may be empty or an underscore; expand it
  U=`sed -n -e '/^U = / s///p' < "$mf"`
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  # We invoke sed twice because it is the simplest approach to
  # changing $(DEPDIR) to its actual value in the expansion.
  for file in `sed -n -e '
    /^DEP_FILES = .*\\\\$/ {
      s/^DEP_FILES = //
      :loop
	s/\\\\$//
	p
	n
	/\\\\$/ b loop
      p
    }
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    # Make sure the directory exists.
    test -f "$dirpart/$file" && continue
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
    # echo "creating $dirpart/$file"
    echo '# dummy' > "$dirpart/$file"
  done
done
 ;;
  esac
done
EOF

cat >>$CONFIG_STATUS <<\EOF

exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
trap 'exit 1' 1 2 15

test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1

