Changeset 10850


Ignore:
Timestamp:
2005-11-07T13:23:55+13:00 (18 years ago)
Author:
kjdon
Message:

changed LIBOBJS=... to AC_LIBOBJ. added in test for endianness

Location:
trunk/gsdl/src/mgpp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/config.h.in

    r855 r10850  
    182182/* Define if you have the m library (-lm).  */
    183183#undef HAVE_LIBM
     184
     185/* Define if big endian */
     186#undef WORDS_BIGENDIAN
  • trunk/gsdl/src/mgpp/configure

    r859 r10850  
    11#! /bin/sh
    2 
    32# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.13
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     3# Generated by GNU Autoconf 2.59.
    64#
     5# Copyright (C) 2003 Free Software Foundation, Inc.
    76# This configure script is free software; the Free Software Foundation
    87# gives unlimited permission to copy, distribute and modify it.
    9 
    10 # Defaults:
    11 ac_help=
     8## --------------------- ##
     9## M4sh Initialization.  ##
     10## --------------------- ##
     11
     12# Be Bourne compatible
     13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     14  emulate sh
     15  NULLCMD=:
     16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     17  # is contrary to our usage.  Disable this feature.
     18  alias -g '${1+"$@"}'='"$@"'
     19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     20  set -o posix
     21fi
     22DUALCASE=1; export DUALCASE # for MKS sh
     23
     24# Support unset when possible.
     25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     26  as_unset=unset
     27else
     28  as_unset=false
     29fi
     30
     31
     32# Work around bugs in pre-3.0 UWIN ksh.
     33$as_unset ENV MAIL MAILPATH
     34PS1='$ '
     35PS2='> '
     36PS4='+ '
     37
     38# NLS nuisances.
     39for as_var in \
     40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     42  LC_TELEPHONE LC_TIME
     43do
     44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     45    eval $as_var=C; export $as_var
     46  else
     47    $as_unset $as_var
     48  fi
     49done
     50
     51# Required to use basename.
     52if expr a : '\(a\)' >/dev/null 2>&1; then
     53  as_expr=expr
     54else
     55  as_expr=false
     56fi
     57
     58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     59  as_basename=basename
     60else
     61  as_basename=false
     62fi
     63
     64
     65# Name of the executable.
     66as_me=`$as_basename "$0" ||
     67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     68     X"$0" : 'X\(//\)$' \| \
     69     X"$0" : 'X\(/\)$' \| \
     70     .     : '\(.\)' 2>/dev/null ||
     71echo X/"$0" |
     72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     73      /^X\/\(\/\/\)$/{ s//\1/; q; }
     74      /^X\/\(\/\).*/{ s//\1/; q; }
     75      s/.*/./; q'`
     76
     77
     78# PATH needs CR, and LINENO needs CR and PATH.
     79# Avoid depending upon Character Ranges.
     80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     83as_cr_digits='0123456789'
     84as_cr_alnum=$as_cr_Letters$as_cr_digits
     85
     86# The user is always right.
     87if test "${PATH_SEPARATOR+set}" != set; then
     88  echo "#! /bin/sh" >conf$$.sh
     89  echo  "exit 0"   >>conf$$.sh
     90  chmod +x conf$$.sh
     91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     92    PATH_SEPARATOR=';'
     93  else
     94    PATH_SEPARATOR=:
     95  fi
     96  rm -f conf$$.sh
     97fi
     98
     99
     100  as_lineno_1=$LINENO
     101  as_lineno_2=$LINENO
     102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     103  test "x$as_lineno_1" != "x$as_lineno_2" &&
     104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     105  # Find who we are.  Look in the path if we contain no path at all
     106  # relative or not.
     107  case $0 in
     108    *[\\/]* ) as_myself=$0 ;;
     109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     110for as_dir in $PATH
     111do
     112  IFS=$as_save_IFS
     113  test -z "$as_dir" && as_dir=.
     114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     115done
     116
     117       ;;
     118  esac
     119  # We did not find ourselves, most probably we were run as `sh COMMAND'
     120  # in which case we are not to be found in the path.
     121  if test "x$as_myself" = x; then
     122    as_myself=$0
     123  fi
     124  if test ! -f "$as_myself"; then
     125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
     126   { (exit 1); exit 1; }; }
     127  fi
     128  case $CONFIG_SHELL in
     129  '')
     130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     132do
     133  IFS=$as_save_IFS
     134  test -z "$as_dir" && as_dir=.
     135  for as_base in sh bash ksh sh5; do
     136     case $as_dir in
     137     /*)
     138       if ("$as_dir/$as_base" -c '
     139  as_lineno_1=$LINENO
     140  as_lineno_2=$LINENO
     141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     142  test "x$as_lineno_1" != "x$as_lineno_2" &&
     143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     144         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     145         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     146         CONFIG_SHELL=$as_dir/$as_base
     147         export CONFIG_SHELL
     148         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     149       fi;;
     150     esac
     151       done
     152done
     153;;
     154  esac
     155
     156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     157  # uniformly replaced by the line number.  The first 'sed' inserts a
     158  # line-number line before each line; the second 'sed' does the real
     159  # work.  The second script uses 'N' to pair each line-number line
     160  # with the numbered line, and appends trailing '-' during
     161  # substitution so that $LINENO is not a special case at line end.
     162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     164  sed '=' <$as_myself |
     165    sed '
     166      N
     167      s,$,-,
     168      : loop
     169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     170      t loop
     171      s,-$,,
     172      s,^['$as_cr_digits']*\n,,
     173    ' >$as_me.lineno &&
     174  chmod +x $as_me.lineno ||
     175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     176   { (exit 1); exit 1; }; }
     177
     178  # Don't try to exec as it changes $[0], causing all sort of problems
     179  # (the dirname of $[0] is not the place where we might find the
     180  # original and so on.  Autoconf is especially sensible to this).
     181  . ./$as_me.lineno
     182  # Exit status is that of the last command.
     183  exit
     184}
     185
     186
     187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     188  *c*,-n*) ECHO_N= ECHO_C='
     189' ECHO_T='  ' ;;
     190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     192esac
     193
     194if expr a : '\(a\)' >/dev/null 2>&1; then
     195  as_expr=expr
     196else
     197  as_expr=false
     198fi
     199
     200rm -f conf$$ conf$$.exe conf$$.file
     201echo >conf$$.file
     202if ln -s conf$$.file conf$$ 2>/dev/null; then
     203  # We could just check for DJGPP; but this test a) works b) is more generic
     204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     205  if test -f conf$$.exe; then
     206    # Don't use ln at all; we don't have any links
     207    as_ln_s='cp -p'
     208  else
     209    as_ln_s='ln -s'
     210  fi
     211elif ln conf$$.file conf$$ 2>/dev/null; then
     212  as_ln_s=ln
     213else
     214  as_ln_s='cp -p'
     215fi
     216rm -f conf$$ conf$$.exe conf$$.file
     217
     218if mkdir -p . 2>/dev/null; then
     219  as_mkdir_p=:
     220else
     221  test -d ./-p && rmdir ./-p
     222  as_mkdir_p=false
     223fi
     224
     225as_executable_p="test -f"
     226
     227# Sed expression to map a string onto a valid CPP name.
     228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     229
     230# Sed expression to map a string onto a valid variable name.
     231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     232
     233
     234# IFS
     235# We need space, tab and new line, in precisely that order.
     236as_nl='
     237'
     238IFS="   $as_nl"
     239
     240# CDPATH.
     241$as_unset CDPATH
     242
     243
     244# Name of the host.
     245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     246# so uname gets run too.
     247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     248
     249exec 6>&1
     250
     251#
     252# Initializations.
     253#
    12254ac_default_prefix=/usr/local
    13 # Any additions from configure.in:
    14 ac_help="$ac_help
    15   --with-dmalloc          use dmalloc, as in
    16                           ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
    17 ac_help="$ac_help
    18   --with-regex            use older regex in lieu of GNU rx for matching"
    19 ac_help="$ac_help
    20   --with-gnu-readline     compile with GNU readline support"
    21 ac_help="$ac_help
    22   --enable-override-longlong
    23                           overide use of long long with GCC"
     255ac_config_libobj_dir=.
     256cross_compiling=no
     257subdirs=
     258MFLAGS=
     259MAKEFLAGS=
     260SHELL=${CONFIG_SHELL-/bin/sh}
     261
     262# Maximum number of lines to put in a shell here document.
     263# This variable seems obsolete.  It should probably be removed, and
     264# only ac_max_sed_lines should be used.
     265: ${ac_max_here_lines=38}
     266
     267# Identity of this package.
     268PACKAGE_NAME=
     269PACKAGE_TARNAME=
     270PACKAGE_VERSION=
     271PACKAGE_STRING=
     272PACKAGE_BUGREPORT=
     273
     274ac_unique_file="text/MGQuery.cpp"
     275# Factoring default headers for most tests.
     276ac_includes_default="\
     277#include <stdio.h>
     278#if HAVE_SYS_TYPES_H
     279# include <sys/types.h>
     280#endif
     281#if HAVE_SYS_STAT_H
     282# include <sys/stat.h>
     283#endif
     284#if STDC_HEADERS
     285# include <stdlib.h>
     286# include <stddef.h>
     287#else
     288# if HAVE_STDLIB_H
     289#  include <stdlib.h>
     290# endif
     291#endif
     292#if HAVE_STRING_H
     293# if !STDC_HEADERS && HAVE_MEMORY_H
     294#  include <memory.h>
     295# endif
     296# include <string.h>
     297#endif
     298#if HAVE_STRINGS_H
     299# include <strings.h>
     300#endif
     301#if HAVE_INTTYPES_H
     302# include <inttypes.h>
     303#else
     304# if HAVE_STDINT_H
     305#  include <stdint.h>
     306# endif
     307#endif
     308#if HAVE_UNISTD_H
     309# include <unistd.h>
     310#endif"
     311
     312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS LTLIBOBJS'
     313ac_subst_files=''
    24314
    25315# Initialize some variables set by options.
     316ac_init_help=
     317ac_init_version=false
    26318# The variables have the same names as the options, with
    27319# dashes changed to underlines.
    28 build=NONE
    29 cache_file=./config.cache
     320cache_file=/dev/null
    30321exec_prefix=NONE
    31 host=NONE
    32322no_create=
    33 nonopt=NONE
    34323no_recursion=
    35324prefix=NONE
     
    40329site=
    41330srcdir=
    42 target=NONE
    43331verbose=
    44332x_includes=NONE
    45333x_libraries=NONE
     334
     335# Installation directory options.
     336# These are left unexpanded so users can "make install exec_prefix=/foo"
     337# and all the variables that are supposed to be based on exec_prefix
     338# by default will actually change.
     339# Use braces instead of parens because sh, perl, etc. also accept them.
    46340bindir='${exec_prefix}/bin'
    47341sbindir='${exec_prefix}/sbin'
     
    57351mandir='${prefix}/man'
    58352
    59 # Initialize some other variables.
    60 subdirs=
    61 MFLAGS= MAKEFLAGS=
    62 SHELL=${CONFIG_SHELL-/bin/sh}
    63 # Maximum number of lines to put in a shell here document.
    64 ac_max_here_lines=12
    65 
    66353ac_prev=
    67354for ac_option
    68355do
    69 
    70356  # If the previous option needs an argument, assign it.
    71357  if test -n "$ac_prev"; then
     
    75361  fi
    76362
    77   case "$ac_option" in
    78   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    79   *) ac_optarg= ;;
    80   esac
     363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    81364
    82365  # Accept the important Cygnus configure options, so we can diagnose typos.
    83366
    84   case "$ac_option" in
     367  case $ac_option in
    85368
    86369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    87370    ac_prev=bindir ;;
    88371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    89     bindir="$ac_optarg" ;;
     372    bindir=$ac_optarg ;;
    90373
    91374  -build | --build | --buil | --bui | --bu)
    92     ac_prev=build ;;
     375    ac_prev=build_alias ;;
    93376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    94     build="$ac_optarg" ;;
     377    build_alias=$ac_optarg ;;
    95378
    96379  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    99382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    100383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    101     cache_file="$ac_optarg" ;;
     384    cache_file=$ac_optarg ;;
     385
     386  --config-cache | -C)
     387    cache_file=config.cache ;;
    102388
    103389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    105391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    106392  | --da=*)
    107     datadir="$ac_optarg" ;;
     393    datadir=$ac_optarg ;;
    108394
    109395  -disable-* | --disable-*)
    110     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    111397    # Reject names that are not valid shell variable names.
    112     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    113       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    114     fi
    115     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    116     eval "enable_${ac_feature}=no" ;;
     398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     400   { (exit 1); exit 1; }; }
     401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     402    eval "enable_$ac_feature=no" ;;
    117403
    118404  -enable-* | --enable-*)
    119     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    120406    # Reject names that are not valid shell variable names.
    121     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    122       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    123     fi
    124     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    125     case "$ac_option" in
    126       *=*) ;;
     407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     409   { (exit 1); exit 1; }; }
     410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     411    case $ac_option in
     412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    127413      *) ac_optarg=yes ;;
    128414    esac
    129     eval "enable_${ac_feature}='$ac_optarg'" ;;
     415    eval "enable_$ac_feature='$ac_optarg'" ;;
    130416
    131417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    136422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    137423  | --exec=* | --exe=* | --ex=*)
    138     exec_prefix="$ac_optarg" ;;
     424    exec_prefix=$ac_optarg ;;
    139425
    140426  -gas | --gas | --ga | --g)
     
    142428    with_gas=yes ;;
    143429
    144   -help | --help | --hel | --he)
    145     # Omit some internal or obsolete options to make the list less imposing.
    146     # This message is too long to be a string in the A/UX 3.1 sh.
    147     cat << EOF
    148 Usage: configure [options] [host]
    149 Options: [defaults in brackets after descriptions]
    150 Configuration:
    151   --cache-file=FILE       cache test results in FILE
    152   --help                  print this message
    153   --no-create             do not create output files
    154   --quiet, --silent       do not print \`checking...' messages
    155   --version               print the version of autoconf that created configure
    156 Directory and file names:
    157   --prefix=PREFIX         install architecture-independent files in PREFIX
    158                           [$ac_default_prefix]
    159   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    160                           [same as prefix]
    161   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    162   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    163   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    164   --datadir=DIR           read-only architecture-independent data in DIR
    165                           [PREFIX/share]
    166   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    167   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    168                           [PREFIX/com]
    169   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    170   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    171   --includedir=DIR        C header files in DIR [PREFIX/include]
    172   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    173   --infodir=DIR           info documentation in DIR [PREFIX/info]
    174   --mandir=DIR            man documentation in DIR [PREFIX/man]
    175   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    176   --program-prefix=PREFIX prepend PREFIX to installed program names
    177   --program-suffix=SUFFIX append SUFFIX to installed program names
    178   --program-transform-name=PROGRAM
    179                           run sed PROGRAM on installed program names
    180 EOF
    181     cat << EOF
    182 Host type:
    183   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    184   --host=HOST             configure for HOST [guessed]
    185   --target=TARGET         configure for TARGET [TARGET=HOST]
    186 Features and packages:
    187   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    188   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    189   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    190   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    191   --x-includes=DIR        X include files are in DIR
    192   --x-libraries=DIR       X library files are in DIR
    193 EOF
    194     if test -n "$ac_help"; then
    195       echo "--enable and --with options recognized:$ac_help"
    196     fi
    197     exit 0 ;;
     430  -help | --help | --hel | --he | -h)
     431    ac_init_help=long ;;
     432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     433    ac_init_help=recursive ;;
     434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     435    ac_init_help=short ;;
    198436
    199437  -host | --host | --hos | --ho)
    200     ac_prev=host ;;
     438    ac_prev=host_alias ;;
    201439  -host=* | --host=* | --hos=* | --ho=*)
    202     host="$ac_optarg" ;;
     440    host_alias=$ac_optarg ;;
    203441
    204442  -includedir | --includedir | --includedi | --included | --include \
     
    207445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    208446  | --includ=* | --inclu=* | --incl=* | --inc=*)
    209     includedir="$ac_optarg" ;;
     447    includedir=$ac_optarg ;;
    210448
    211449  -infodir | --infodir | --infodi | --infod | --info | --inf)
    212450    ac_prev=infodir ;;
    213451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    214     infodir="$ac_optarg" ;;
     452    infodir=$ac_optarg ;;
    215453
    216454  -libdir | --libdir | --libdi | --libd)
    217455    ac_prev=libdir ;;
    218456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    219     libdir="$ac_optarg" ;;
     457    libdir=$ac_optarg ;;
    220458
    221459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    224462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    225463  | --libexe=* | --libex=* | --libe=*)
    226     libexecdir="$ac_optarg" ;;
     464    libexecdir=$ac_optarg ;;
    227465
    228466  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    233471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    234472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    235     localstatedir="$ac_optarg" ;;
     473    localstatedir=$ac_optarg ;;
    236474
    237475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    238476    ac_prev=mandir ;;
    239477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    240     mandir="$ac_optarg" ;;
     478    mandir=$ac_optarg ;;
    241479
    242480  -nfp | --nfp | --nf)
     
    245483
    246484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    247   | --no-cr | --no-c)
     485  | --no-cr | --no-c | -n)
    248486    no_create=yes ;;
    249487
     
    259497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    260498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    261     oldincludedir="$ac_optarg" ;;
     499    oldincludedir=$ac_optarg ;;
    262500
    263501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    264502    ac_prev=prefix ;;
    265503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    266     prefix="$ac_optarg" ;;
     504    prefix=$ac_optarg ;;
    267505
    268506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    271509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    272510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    273     program_prefix="$ac_optarg" ;;
     511    program_prefix=$ac_optarg ;;
    274512
    275513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    278516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    279517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    280     program_suffix="$ac_optarg" ;;
     518    program_suffix=$ac_optarg ;;
    281519
    282520  -program-transform-name | --program-transform-name \
     
    295533  | --program-trans=* | --program-tran=* \
    296534  | --progr-tra=* | --program-tr=* | --program-t=*)
    297     program_transform_name="$ac_optarg" ;;
     535    program_transform_name=$ac_optarg ;;
    298536
    299537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    305543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    306544  | --sbi=* | --sb=*)
    307     sbindir="$ac_optarg" ;;
     545    sbindir=$ac_optarg ;;
    308546
    309547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    316554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    317555  | --sha=* | --sh=*)
    318     sharedstatedir="$ac_optarg" ;;
     556    sharedstatedir=$ac_optarg ;;
    319557
    320558  -site | --site | --sit)
    321559    ac_prev=site ;;
    322560  -site=* | --site=* | --sit=*)
    323     site="$ac_optarg" ;;
     561    site=$ac_optarg ;;
    324562
    325563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    326564    ac_prev=srcdir ;;
    327565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    328     srcdir="$ac_optarg" ;;
     566    srcdir=$ac_optarg ;;
    329567
    330568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    333571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    334572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    335     sysconfdir="$ac_optarg" ;;
     573    sysconfdir=$ac_optarg ;;
    336574
    337575  -target | --target | --targe | --targ | --tar | --ta | --t)
    338     ac_prev=target ;;
     576    ac_prev=target_alias ;;
    339577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    340     target="$ac_optarg" ;;
     578    target_alias=$ac_optarg ;;
    341579
    342580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    343581    verbose=yes ;;
    344582
    345   -version | --version | --versio | --versi | --vers)
    346     echo "configure generated by autoconf version 2.13"
    347     exit 0 ;;
     583  -version | --version | --versio | --versi | --vers | -V)
     584    ac_init_version=: ;;
    348585
    349586  -with-* | --with-*)
    350     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    351588    # Reject names that are not valid shell variable names.
    352     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    353       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    354     fi
     589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     590      { echo "$as_me: error: invalid package name: $ac_package" >&2
     591   { (exit 1); exit 1; }; }
    355592    ac_package=`echo $ac_package| sed 's/-/_/g'`
    356     case "$ac_option" in
    357       *=*) ;;
     593    case $ac_option in
     594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    358595      *) ac_optarg=yes ;;
    359596    esac
    360     eval "with_${ac_package}='$ac_optarg'" ;;
     597    eval "with_$ac_package='$ac_optarg'" ;;
    361598
    362599  -without-* | --without-*)
    363     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    364601    # Reject names that are not valid shell variable names.
    365     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    366       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    367     fi
    368     ac_package=`echo $ac_package| sed 's/-/_/g'`
    369     eval "with_${ac_package}=no" ;;
     602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     603      { echo "$as_me: error: invalid package name: $ac_package" >&2
     604   { (exit 1); exit 1; }; }
     605    ac_package=`echo $ac_package | sed 's/-/_/g'`
     606    eval "with_$ac_package=no" ;;
    370607
    371608  --x)
     
    378615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    379616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    380     x_includes="$ac_optarg" ;;
     617    x_includes=$ac_optarg ;;
    381618
    382619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    385622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    386623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    387     x_libraries="$ac_optarg" ;;
    388 
    389   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
     624    x_libraries=$ac_optarg ;;
     625
     626  -*) { echo "$as_me: error: unrecognized option: $ac_option
     627Try \`$0 --help' for more information." >&2
     628   { (exit 1); exit 1; }; }
    390629    ;;
    391630
     631  *=*)
     632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     633    # Reject names that are not valid shell variable names.
     634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
     635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     636   { (exit 1); exit 1; }; }
     637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     638    eval "$ac_envvar='$ac_optarg'"
     639    export $ac_envvar ;;
     640
    392641  *)
    393     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    394       echo "configure: warning: $ac_option: invalid host type" 1>&2
    395     fi
    396     if test "x$nonopt" != xNONE; then
    397       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    398     fi
    399     nonopt="$ac_option"
     642    # FIXME: should be removed in autoconf 3.0.
     643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    400647    ;;
    401648
     
    404651
    405652if test -n "$ac_prev"; then
    406   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    407 fi
    408 
    409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    410 
    411 # File descriptor usage:
    412 # 0 standard input
    413 # 1 file creation
    414 # 2 errors and warnings
    415 # 3 some systems may open it to /dev/tty
    416 # 4 used on the Kubota Titan
    417 # 6 checking for... messages and results
    418 # 5 compiler messages saved in config.log
    419 if test "$silent" = yes; then
    420   exec 6>/dev/null
    421 else
    422   exec 6>&1
    423 fi
    424 exec 5>./config.log
    425 
    426 echo "\
    427 This file contains any messages produced by compilers while
    428 running configure, to aid debugging if configure makes a mistake.
    429 " 1>&5
    430 
    431 # Strip out --no-create and --no-recursion so they do not pile up.
    432 # Also quote any args containing shell metacharacters.
    433 ac_configure_args=
    434 for ac_arg
     653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     654  { echo "$as_me: error: missing argument to $ac_option" >&2
     655   { (exit 1); exit 1; }; }
     656fi
     657
     658# Be sure to have absolute paths.
     659for ac_var in exec_prefix prefix
    435660do
    436   case "$ac_arg" in
    437   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    438   | --no-cr | --no-c) ;;
    439   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    440   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    441   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    442   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    443   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
     661  eval ac_val=$`echo $ac_var`
     662  case $ac_val in
     663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     665   { (exit 1); exit 1; }; };;
    444666  esac
    445667done
    446668
    447 # NLS nuisances.
    448 # Only set these to C if already set.  These must not be set unconditionally
    449 # because not all systems understand e.g. LANG=C (notably SCO).
    450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    451 # Non-C LC_CTYPE values break the ctype check.
    452 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    455 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    456 
    457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    458 rm -rf conftest* confdefs.h
    459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    460 echo > confdefs.h
    461 
    462 # A filename unique to this package, relative to the directory that
    463 # configure is in, which we can look for to find out if srcdir is correct.
    464 ac_unique_file=text/MGQuery.cpp
     669# Be sure to have absolute paths.
     670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     671          localstatedir libdir includedir oldincludedir infodir mandir
     672do
     673  eval ac_val=$`echo $ac_var`
     674  case $ac_val in
     675    [\\/$]* | ?:[\\/]* ) ;;
     676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     677   { (exit 1); exit 1; }; };;
     678  esac
     679done
     680
     681# There might be people who depend on the old broken behavior: `$host'
     682# used to hold the argument of --host etc.
     683# FIXME: To remove some day.
     684build=$build_alias
     685host=$host_alias
     686target=$target_alias
     687
     688# FIXME: To remove some day.
     689if test "x$host_alias" != x; then
     690  if test "x$build_alias" = x; then
     691    cross_compiling=maybe
     692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     693    If a cross compiler is detected then cross compile mode will be used." >&2
     694  elif test "x$build_alias" != "x$host_alias"; then
     695    cross_compiling=yes
     696  fi
     697fi
     698
     699ac_tool_prefix=
     700test -n "$host_alias" && ac_tool_prefix=$host_alias-
     701
     702test "$silent" = yes && exec 6>/dev/null
     703
    465704
    466705# Find the source files, if location was not specified.
     
    468707  ac_srcdir_defaulted=yes
    469708  # Try the directory containing this script, then its parent.
    470   ac_prog=$0
    471   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
    472   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
     709  ac_confdir=`(dirname "$0") 2>/dev/null ||
     710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     711     X"$0" : 'X\(//\)[^/]' \| \
     712     X"$0" : 'X\(//\)$' \| \
     713     X"$0" : 'X\(/\)' \| \
     714     .     : '\(.\)' 2>/dev/null ||
     715echo X"$0" |
     716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     717      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     718      /^X\(\/\/\)$/{ s//\1/; q; }
     719      /^X\(\/\).*/{ s//\1/; q; }
     720      s/.*/./; q'`
    473721  srcdir=$ac_confdir
    474722  if test ! -r $srcdir/$ac_unique_file; then
     
    480728if test ! -r $srcdir/$ac_unique_file; then
    481729  if test "$ac_srcdir_defaulted" = yes; then
    482     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
     731   { (exit 1); exit 1; }; }
    483732  else
    484     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     734   { (exit 1); exit 1; }; }
    485735  fi
    486736fi
    487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    488 
     737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     739   { (exit 1); exit 1; }; }
     740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     741ac_env_build_alias_set=${build_alias+set}
     742ac_env_build_alias_value=$build_alias
     743ac_cv_env_build_alias_set=${build_alias+set}
     744ac_cv_env_build_alias_value=$build_alias
     745ac_env_host_alias_set=${host_alias+set}
     746ac_env_host_alias_value=$host_alias
     747ac_cv_env_host_alias_set=${host_alias+set}
     748ac_cv_env_host_alias_value=$host_alias
     749ac_env_target_alias_set=${target_alias+set}
     750ac_env_target_alias_value=$target_alias
     751ac_cv_env_target_alias_set=${target_alias+set}
     752ac_cv_env_target_alias_value=$target_alias
     753ac_env_CXX_set=${CXX+set}
     754ac_env_CXX_value=$CXX
     755ac_cv_env_CXX_set=${CXX+set}
     756ac_cv_env_CXX_value=$CXX
     757ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     758ac_env_CXXFLAGS_value=$CXXFLAGS
     759ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     760ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     761ac_env_LDFLAGS_set=${LDFLAGS+set}
     762ac_env_LDFLAGS_value=$LDFLAGS
     763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     764ac_cv_env_LDFLAGS_value=$LDFLAGS
     765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     766ac_env_CPPFLAGS_value=$CPPFLAGS
     767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     769ac_env_CC_set=${CC+set}
     770ac_env_CC_value=$CC
     771ac_cv_env_CC_set=${CC+set}
     772ac_cv_env_CC_value=$CC
     773ac_env_CFLAGS_set=${CFLAGS+set}
     774ac_env_CFLAGS_value=$CFLAGS
     775ac_cv_env_CFLAGS_set=${CFLAGS+set}
     776ac_cv_env_CFLAGS_value=$CFLAGS
     777ac_env_CPP_set=${CPP+set}
     778ac_env_CPP_value=$CPP
     779ac_cv_env_CPP_set=${CPP+set}
     780ac_cv_env_CPP_value=$CPP
     781
     782#
     783# Report the --help message.
     784#
     785if test "$ac_init_help" = "long"; then
     786  # Omit some internal or obsolete options to make the list less imposing.
     787  # This message is too long to be a string in the A/UX 3.1 sh.
     788  cat <<_ACEOF
     789\`configure' configures this package to adapt to many kinds of systems.
     790
     791Usage: $0 [OPTION]... [VAR=VALUE]...
     792
     793To assign environment variables (e.g., CC, CFLAGS...), specify them as
     794VAR=VALUE.  See below for descriptions of some of the useful variables.
     795
     796Defaults for the options are specified in brackets.
     797
     798Configuration:
     799  -h, --help              display this help and exit
     800      --help=short        display options specific to this package
     801      --help=recursive    display the short help of all the included packages
     802  -V, --version           display version information and exit
     803  -q, --quiet, --silent   do not print \`checking...' messages
     804      --cache-file=FILE   cache test results in FILE [disabled]
     805  -C, --config-cache      alias for \`--cache-file=config.cache'
     806  -n, --no-create         do not create output files
     807      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     808
     809_ACEOF
     810
     811  cat <<_ACEOF
     812Installation directories:
     813  --prefix=PREFIX         install architecture-independent files in PREFIX
     814              [$ac_default_prefix]
     815  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     816              [PREFIX]
     817
     818By default, \`make install' will install all the files in
     819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     820an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     821for instance \`--prefix=\$HOME'.
     822
     823For better control, use the options below.
     824
     825Fine tuning of the installation directories:
     826  --bindir=DIR           user executables [EPREFIX/bin]
     827  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     828  --libexecdir=DIR       program executables [EPREFIX/libexec]
     829  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     830  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     831  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     832  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     833  --libdir=DIR           object code libraries [EPREFIX/lib]
     834  --includedir=DIR       C header files [PREFIX/include]
     835  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     836  --infodir=DIR          info documentation [PREFIX/info]
     837  --mandir=DIR           man documentation [PREFIX/man]
     838_ACEOF
     839
     840  cat <<\_ACEOF
     841
     842Program names:
     843  --program-prefix=PREFIX            prepend PREFIX to installed program names
     844  --program-suffix=SUFFIX            append SUFFIX to installed program names
     845  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     846_ACEOF
     847fi
     848
     849if test -n "$ac_init_help"; then
     850
     851  cat <<\_ACEOF
     852
     853Optional Features:
     854  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     855  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     856  --enable-override-longlong
     857                          overide use of long long with GCC
     858
     859Optional Packages:
     860  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     861  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     862  --with-dmalloc          use dmalloc, as in
     863                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
     864  --with-regex            use older regex in lieu of GNU rx for matching
     865  --with-gnu-readline     compile with GNU readline support
     866
     867Some influential environment variables:
     868  CXX         C++ compiler command
     869  CXXFLAGS    C++ compiler flags
     870  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     871              nonstandard directory <lib dir>
     872  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     873              headers in a nonstandard directory <include dir>
     874  CC          C compiler command
     875  CFLAGS      C compiler flags
     876  CPP         C preprocessor
     877
     878Use these variables to override the choices made by `configure' or to help
     879it to find libraries and programs with nonstandard names/locations.
     880
     881_ACEOF
     882fi
     883
     884if test "$ac_init_help" = "recursive"; then
     885  # If there are subdirs, report their specific --help.
     886  ac_popdir=`pwd`
     887  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     888    test -d $ac_dir || continue
     889    ac_builddir=.
     890
     891if test "$ac_dir" != .; then
     892  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     893  # A "../" for each directory in $ac_dir_suffix.
     894  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     895else
     896  ac_dir_suffix= ac_top_builddir=
     897fi
     898
     899case $srcdir in
     900  .)  # No --srcdir option.  We are building in place.
     901    ac_srcdir=.
     902    if test -z "$ac_top_builddir"; then
     903       ac_top_srcdir=.
     904    else
     905       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     906    fi ;;
     907  [\\/]* | ?:[\\/]* )  # Absolute path.
     908    ac_srcdir=$srcdir$ac_dir_suffix;
     909    ac_top_srcdir=$srcdir ;;
     910  *) # Relative path.
     911    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     912    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     913esac
     914
     915# Do not use `cd foo && pwd` to compute absolute paths, because
     916# the directories may not exist.
     917case `pwd` in
     918.) ac_abs_builddir="$ac_dir";;
     919*)
     920  case "$ac_dir" in
     921  .) ac_abs_builddir=`pwd`;;
     922  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     923  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     924  esac;;
     925esac
     926case $ac_abs_builddir in
     927.) ac_abs_top_builddir=${ac_top_builddir}.;;
     928*)
     929  case ${ac_top_builddir}. in
     930  .) ac_abs_top_builddir=$ac_abs_builddir;;
     931  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     932  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     933  esac;;
     934esac
     935case $ac_abs_builddir in
     936.) ac_abs_srcdir=$ac_srcdir;;
     937*)
     938  case $ac_srcdir in
     939  .) ac_abs_srcdir=$ac_abs_builddir;;
     940  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     941  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     942  esac;;
     943esac
     944case $ac_abs_builddir in
     945.) ac_abs_top_srcdir=$ac_top_srcdir;;
     946*)
     947  case $ac_top_srcdir in
     948  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     949  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     950  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     951  esac;;
     952esac
     953
     954    cd $ac_dir
     955    # Check for guested configure; otherwise get Cygnus style configure.
     956    if test -f $ac_srcdir/configure.gnu; then
     957      echo
     958      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     959    elif test -f $ac_srcdir/configure; then
     960      echo
     961      $SHELL $ac_srcdir/configure  --help=recursive
     962    elif test -f $ac_srcdir/configure.ac ||
     963       test -f $ac_srcdir/configure.in; then
     964      echo
     965      $ac_configure --help
     966    else
     967      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     968    fi
     969    cd $ac_popdir
     970  done
     971fi
     972
     973test -n "$ac_init_help" && exit 0
     974if $ac_init_version; then
     975  cat <<\_ACEOF
     976
     977Copyright (C) 2003 Free Software Foundation, Inc.
     978This configure script is free software; the Free Software Foundation
     979gives unlimited permission to copy, distribute and modify it.
     980_ACEOF
     981  exit 0
     982fi
     983exec 5>config.log
     984cat >&5 <<_ACEOF
     985This file contains any messages produced by compilers while
     986running configure, to aid debugging if configure makes a mistake.
     987
     988It was created by $as_me, which was
     989generated by GNU Autoconf 2.59.  Invocation command line was
     990
     991  $ $0 $@
     992
     993_ACEOF
     994{
     995cat <<_ASUNAME
     996## --------- ##
     997## Platform. ##
     998## --------- ##
     999
     1000hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     1001uname -m = `(uname -m) 2>/dev/null || echo unknown`
     1002uname -r = `(uname -r) 2>/dev/null || echo unknown`
     1003uname -s = `(uname -s) 2>/dev/null || echo unknown`
     1004uname -v = `(uname -v) 2>/dev/null || echo unknown`
     1005
     1006/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     1007/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     1008
     1009/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     1010/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     1011/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     1012hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1013/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     1014/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     1015/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     1016
     1017_ASUNAME
     1018
     1019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1020for as_dir in $PATH
     1021do
     1022  IFS=$as_save_IFS
     1023  test -z "$as_dir" && as_dir=.
     1024  echo "PATH: $as_dir"
     1025done
     1026
     1027} >&5
     1028
     1029cat >&5 <<_ACEOF
     1030
     1031
     1032## ----------- ##
     1033## Core tests. ##
     1034## ----------- ##
     1035
     1036_ACEOF
     1037
     1038
     1039# Keep a trace of the command line.
     1040# Strip out --no-create and --no-recursion so they do not pile up.
     1041# Strip out --silent because we don't want to record it for future runs.
     1042# Also quote any args containing shell meta-characters.
     1043# Make two passes to allow for proper duplicate-argument suppression.
     1044ac_configure_args=
     1045ac_configure_args0=
     1046ac_configure_args1=
     1047ac_sep=
     1048ac_must_keep_next=false
     1049for ac_pass in 1 2
     1050do
     1051  for ac_arg
     1052  do
     1053    case $ac_arg in
     1054    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1055    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1056    | -silent | --silent | --silen | --sile | --sil)
     1057      continue ;;
     1058    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1059      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1060    esac
     1061    case $ac_pass in
     1062    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1063    2)
     1064      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1065      if test $ac_must_keep_next = true; then
     1066    ac_must_keep_next=false # Got value, back to normal.
     1067      else
     1068    case $ac_arg in
     1069      *=* | --config-cache | -C | -disable-* | --disable-* \
     1070      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1071      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1072      | -with-* | --with-* | -without-* | --without-* | --x)
     1073        case "$ac_configure_args0 " in
     1074          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1075        esac
     1076        ;;
     1077      -* ) ac_must_keep_next=true ;;
     1078    esac
     1079      fi
     1080      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1081      # Get rid of the leading space.
     1082      ac_sep=" "
     1083      ;;
     1084    esac
     1085  done
     1086done
     1087$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1088$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     1089
     1090# When interrupted or exit'd, cleanup temporary files, and complete
     1091# config.log.  We remove comments because anyway the quotes in there
     1092# would cause problems or look ugly.
     1093# WARNING: Be sure not to use single quotes in there, as some shells,
     1094# such as our DU 5.0 friend, will then `close' the trap.
     1095trap 'exit_status=$?
     1096  # Save into config.log some information that might help in debugging.
     1097  {
     1098    echo
     1099
     1100    cat <<\_ASBOX
     1101## ---------------- ##
     1102## Cache variables. ##
     1103## ---------------- ##
     1104_ASBOX
     1105    echo
     1106    # The following way of writing the cache mishandles newlines in values,
     1107{
     1108  (set) 2>&1 |
     1109    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     1110    *ac_space=\ *)
     1111      sed -n \
     1112    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1113      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1114      ;;
     1115    *)
     1116      sed -n \
     1117    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1118      ;;
     1119    esac;
     1120}
     1121    echo
     1122
     1123    cat <<\_ASBOX
     1124## ----------------- ##
     1125## Output variables. ##
     1126## ----------------- ##
     1127_ASBOX
     1128    echo
     1129    for ac_var in $ac_subst_vars
     1130    do
     1131      eval ac_val=$`echo $ac_var`
     1132      echo "$ac_var='"'"'$ac_val'"'"'"
     1133    done | sort
     1134    echo
     1135
     1136    if test -n "$ac_subst_files"; then
     1137      cat <<\_ASBOX
     1138## ------------- ##
     1139## Output files. ##
     1140## ------------- ##
     1141_ASBOX
     1142      echo
     1143      for ac_var in $ac_subst_files
     1144      do
     1145    eval ac_val=$`echo $ac_var`
     1146    echo "$ac_var='"'"'$ac_val'"'"'"
     1147      done | sort
     1148      echo
     1149    fi
     1150
     1151    if test -s confdefs.h; then
     1152      cat <<\_ASBOX
     1153## ----------- ##
     1154## confdefs.h. ##
     1155## ----------- ##
     1156_ASBOX
     1157      echo
     1158      sed "/^$/d" confdefs.h | sort
     1159      echo
     1160    fi
     1161    test "$ac_signal" != 0 &&
     1162      echo "$as_me: caught signal $ac_signal"
     1163    echo "$as_me: exit $exit_status"
     1164  } >&5
     1165  rm -f core *.core &&
     1166  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     1167    exit $exit_status
     1168     ' 0
     1169for ac_signal in 1 2 13 15; do
     1170  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     1171done
     1172ac_signal=0
     1173
     1174# confdefs.h avoids OS command line length limits that DEFS can exceed.
     1175rm -rf conftest* confdefs.h
     1176# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     1177echo >confdefs.h
     1178
     1179# Predefined preprocessor variables.
     1180
     1181cat >>confdefs.h <<_ACEOF
     1182#define PACKAGE_NAME "$PACKAGE_NAME"
     1183_ACEOF
     1184
     1185
     1186cat >>confdefs.h <<_ACEOF
     1187#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1188_ACEOF
     1189
     1190
     1191cat >>confdefs.h <<_ACEOF
     1192#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1193_ACEOF
     1194
     1195
     1196cat >>confdefs.h <<_ACEOF
     1197#define PACKAGE_STRING "$PACKAGE_STRING"
     1198_ACEOF
     1199
     1200
     1201cat >>confdefs.h <<_ACEOF
     1202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1203_ACEOF
     1204
     1205
     1206# Let the site file select an alternate cache file if it wants to.
    4891207# Prefer explicitly selected file to automatically selected ones.
    4901208if test -z "$CONFIG_SITE"; then
     
    4971215for ac_site_file in $CONFIG_SITE; do
    4981216  if test -r "$ac_site_file"; then
    499     echo "loading site script $ac_site_file"
     1217    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     1218echo "$as_me: loading site script $ac_site_file" >&6;}
     1219    sed 's/^/| /' "$ac_site_file" >&5
    5001220    . "$ac_site_file"
    5011221  fi
     
    5031223
    5041224if test -r "$cache_file"; then
    505   echo "loading cache $cache_file"
    506   . $cache_file
    507 else
    508   echo "creating cache $cache_file"
    509   > $cache_file
     1225  # Some versions of bash will fail to source /dev/null (special
     1226  # files actually), so we avoid doing that.
     1227  if test -f "$cache_file"; then
     1228    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
     1229echo "$as_me: loading cache $cache_file" >&6;}
     1230    case $cache_file in
     1231      [\\/]* | ?:[\\/]* ) . $cache_file;;
     1232      *)                      . ./$cache_file;;
     1233    esac
     1234  fi
     1235else
     1236  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
     1237echo "$as_me: creating cache $cache_file" >&6;}
     1238  >$cache_file
     1239fi
     1240
     1241# Check that the precious variables saved in the cache have kept the same
     1242# value.
     1243ac_cache_corrupted=false
     1244for ac_var in `(set) 2>&1 |
     1245           sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1246  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     1247  eval ac_new_set=\$ac_env_${ac_var}_set
     1248  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     1249  eval ac_new_val="\$ac_env_${ac_var}_value"
     1250  case $ac_old_set,$ac_new_set in
     1251    set,)
     1252      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1253echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1254      ac_cache_corrupted=: ;;
     1255    ,set)
     1256      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1257echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1258      ac_cache_corrupted=: ;;
     1259    ,);;
     1260    *)
     1261      if test "x$ac_old_val" != "x$ac_new_val"; then
     1262    { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1263echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1264    { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1265echo "$as_me:   former value:  $ac_old_val" >&2;}
     1266    { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1267echo "$as_me:   current value: $ac_new_val" >&2;}
     1268    ac_cache_corrupted=:
     1269      fi;;
     1270  esac
     1271  # Pass precious variables to config.status.
     1272  if test "$ac_new_set" = set; then
     1273    case $ac_new_val in
     1274    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1275      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1276    *) ac_arg=$ac_var=$ac_new_val ;;
     1277    esac
     1278    case " $ac_configure_args " in
     1279      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1280      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1281    esac
     1282  fi
     1283done
     1284if $ac_cache_corrupted; then
     1285  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1286echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1287  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1288echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1289   { (exit 1); exit 1; }; }
    5101290fi
    5111291
    5121292ac_ext=c
    513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    5141293ac_cpp='$CPP $CPPFLAGS'
    515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    517 cross_compiling=$ac_cv_prog_cc_cross
    518 
    519 ac_exeext=
    520 ac_objext=o
    521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    522   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
    523   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    524     ac_n= ac_c='
    525 ' ac_t='    '
    526   else
    527     ac_n=-n ac_c= ac_t=
    528   fi
    529 else
    530   ac_n= ac_c='\c' ac_t=
    531 fi
    532 
    533 
    534 
    535 if test "$program_transform_name" = s,x,x,; then
    536   program_transform_name=
    537 else
    538   # Double any \ or $.  echo might interpret backslashes.
    539   cat <<\EOF_SED > conftestsed
    540 s,\\,\\\\,g; s,\$,$$,g
    541 EOF_SED
    542   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
    543   rm -f conftestsed
    544 fi
     1294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1296ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1297
     1298
     1299
     1300
     1301
     1302
     1303
     1304
     1305
     1306
     1307
     1308
     1309
     1310
     1311
     1312
     1313
     1314
     1315
     1316          ac_config_headers="$ac_config_headers config.h"
     1317
    5451318test "$program_prefix" != NONE &&
    546   program_transform_name="s,^,${program_prefix},; $program_transform_name"
     1319  program_transform_name="s,^,$program_prefix,;$program_transform_name"
    5471320# Use a double $ so make ignores it.
    5481321test "$program_suffix" != NONE &&
    549   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
    550 
    551 # sed with no file args requires a program.
    552 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
     1322  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
     1323# Double any \ or $.  echo might interpret backslashes.
     1324# By default was `s,x,x', remove it if useless.
     1325cat <<\_ACEOF >conftest.sed
     1326s/[\\$]/&&/g;s/;s,x,x,$//
     1327_ACEOF
     1328program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     1329rm conftest.sed
    5531330
    5541331
     
    5561333VERSION=1.3
    5571334
    558 cat >> confdefs.h <<EOF
     1335cat >>confdefs.h <<_ACEOF
    5591336#define PACKAGE "$PACKAGE"
    560 EOF
    561 
    562 cat >> confdefs.h <<EOF
     1337_ACEOF
     1338
     1339cat >>confdefs.h <<_ACEOF
    5631340#define VERSION "$VERSION"
    564 EOF
    565 
    566 
    567 
    568 
    569 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    570 do
    571 # Extract the first word of "$ac_prog", so it can be a program name with args.
    572 set dummy $ac_prog; ac_word=$2
    573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    574 echo "configure:575: checking for $ac_word" >&5
    575 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    576   echo $ac_n "(cached) $ac_c" 1>&6
     1341_ACEOF
     1342
     1343
     1344
     1345
     1346ac_ext=cc
     1347ac_cpp='$CXXCPP $CPPFLAGS'
     1348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     1351if test -n "$ac_tool_prefix"; then
     1352  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1353  do
     1354    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1355set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1356echo "$as_me:$LINENO: checking for $ac_word" >&5
     1357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1358if test "${ac_cv_prog_CXX+set}" = set; then
     1359  echo $ECHO_N "(cached) $ECHO_C" >&6
    5771360else
    5781361  if test -n "$CXX"; then
    5791362  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    5801363else
    581   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    582   ac_dummy="$PATH"
    583   for ac_dir in $ac_dummy; do
    584     test -z "$ac_dir" && ac_dir=.
    585     if test -f $ac_dir/$ac_word; then
    586       ac_cv_prog_CXX="$ac_prog"
    587       break
     1364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1365for as_dir in $PATH
     1366do
     1367  IFS=$as_save_IFS
     1368  test -z "$as_dir" && as_dir=.
     1369  for ac_exec_ext in '' $ac_executable_extensions; do
     1370  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1371    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1373    break 2
     1374  fi
     1375done
     1376done
     1377
     1378fi
     1379fi
     1380CXX=$ac_cv_prog_CXX
     1381if test -n "$CXX"; then
     1382  echo "$as_me:$LINENO: result: $CXX" >&5
     1383echo "${ECHO_T}$CXX" >&6
     1384else
     1385  echo "$as_me:$LINENO: result: no" >&5
     1386echo "${ECHO_T}no" >&6
     1387fi
     1388
     1389    test -n "$CXX" && break
     1390  done
     1391fi
     1392if test -z "$CXX"; then
     1393  ac_ct_CXX=$CXX
     1394  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1395do
     1396  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1397set dummy $ac_prog; ac_word=$2
     1398echo "$as_me:$LINENO: checking for $ac_word" >&5
     1399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1400if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1401  echo $ECHO_N "(cached) $ECHO_C" >&6
     1402else
     1403  if test -n "$ac_ct_CXX"; then
     1404  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1405else
     1406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1407for as_dir in $PATH
     1408do
     1409  IFS=$as_save_IFS
     1410  test -z "$as_dir" && as_dir=.
     1411  for ac_exec_ext in '' $ac_executable_extensions; do
     1412  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1413    ac_cv_prog_ac_ct_CXX="$ac_prog"
     1414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1415    break 2
     1416  fi
     1417done
     1418done
     1419
     1420fi
     1421fi
     1422ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1423if test -n "$ac_ct_CXX"; then
     1424  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     1425echo "${ECHO_T}$ac_ct_CXX" >&6
     1426else
     1427  echo "$as_me:$LINENO: result: no" >&5
     1428echo "${ECHO_T}no" >&6
     1429fi
     1430
     1431  test -n "$ac_ct_CXX" && break
     1432done
     1433test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1434
     1435  CXX=$ac_ct_CXX
     1436fi
     1437
     1438
     1439# Provide some information about the compiler.
     1440echo "$as_me:$LINENO:" \
     1441     "checking for C++ compiler version" >&5
     1442ac_compiler=`set X $ac_compile; echo $2`
     1443{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1444  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1445  ac_status=$?
     1446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1447  (exit $ac_status); }
     1448{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1449  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1450  ac_status=$?
     1451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1452  (exit $ac_status); }
     1453{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1454  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1455  ac_status=$?
     1456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1457  (exit $ac_status); }
     1458
     1459cat >conftest.$ac_ext <<_ACEOF
     1460/* confdefs.h.  */
     1461_ACEOF
     1462cat confdefs.h >>conftest.$ac_ext
     1463cat >>conftest.$ac_ext <<_ACEOF
     1464/* end confdefs.h.  */
     1465
     1466int
     1467main ()
     1468{
     1469
     1470  ;
     1471  return 0;
     1472}
     1473_ACEOF
     1474ac_clean_files_save=$ac_clean_files
     1475ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1476# Try to create an executable without -o first, disregard a.out.
     1477# It will help us diagnose broken compilers, and finding out an intuition
     1478# of exeext.
     1479echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
     1480echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
     1481ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1482if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1483  (eval $ac_link_default) 2>&5
     1484  ac_status=$?
     1485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1486  (exit $ac_status); }; then
     1487  # Find the output, starting from the most likely.  This scheme is
     1488# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1489# resort.
     1490
     1491# Be careful to initialize this variable, since it used to be cached.
     1492# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1493ac_cv_exeext=
     1494# b.out is created by i960 compilers.
     1495for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1496do
     1497  test -f "$ac_file" || continue
     1498  case $ac_file in
     1499    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1500    ;;
     1501    conftest.$ac_ext )
     1502    # This is the source file.
     1503    ;;
     1504    [ab].out )
     1505    # We found the default executable, but exeext='' is most
     1506    # certainly right.
     1507    break;;
     1508    *.* )
     1509    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1510    # FIXME: I believe we export ac_cv_exeext for Libtool,
     1511    # but it would be cool to find out if it's true.  Does anybody
     1512    # maintain Libtool? --akim.
     1513    export ac_cv_exeext
     1514    break;;
     1515    * )
     1516    break;;
     1517  esac
     1518done
     1519else
     1520  echo "$as_me: failed program was:" >&5
     1521sed 's/^/| /' conftest.$ac_ext >&5
     1522
     1523{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
     1524See \`config.log' for more details." >&5
     1525echo "$as_me: error: C++ compiler cannot create executables
     1526See \`config.log' for more details." >&2;}
     1527   { (exit 77); exit 77; }; }
     1528fi
     1529
     1530ac_exeext=$ac_cv_exeext
     1531echo "$as_me:$LINENO: result: $ac_file" >&5
     1532echo "${ECHO_T}$ac_file" >&6
     1533
     1534# Check the compiler produces executables we can run.  If not, either
     1535# the compiler is broken, or we cross compile.
     1536echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
     1537echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
     1538# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1539# If not cross compiling, check that we can run a simple program.
     1540if test "$cross_compiling" != yes; then
     1541  if { ac_try='./$ac_file'
     1542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1543  (eval $ac_try) 2>&5
     1544  ac_status=$?
     1545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1546  (exit $ac_status); }; }; then
     1547    cross_compiling=no
     1548  else
     1549    if test "$cross_compiling" = maybe; then
     1550    cross_compiling=yes
     1551    else
     1552    { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
     1553If you meant to cross compile, use \`--host'.
     1554See \`config.log' for more details." >&5
     1555echo "$as_me: error: cannot run C++ compiled programs.
     1556If you meant to cross compile, use \`--host'.
     1557See \`config.log' for more details." >&2;}
     1558   { (exit 1); exit 1; }; }
    5881559    fi
    589   done
    590   IFS="$ac_save_ifs"
    591 fi
    592 fi
    593 CXX="$ac_cv_prog_CXX"
    594 if test -n "$CXX"; then
    595   echo "$ac_t""$CXX" 1>&6
    596 else
    597   echo "$ac_t""no" 1>&6
    598 fi
    599 
    600 test -n "$CXX" && break
     1560  fi
     1561fi
     1562echo "$as_me:$LINENO: result: yes" >&5
     1563echo "${ECHO_T}yes" >&6
     1564
     1565rm -f a.out a.exe conftest$ac_cv_exeext b.out
     1566ac_clean_files=$ac_clean_files_save
     1567# Check the compiler produces executables we can run.  If not, either
     1568# the compiler is broken, or we cross compile.
     1569echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     1570echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1571echo "$as_me:$LINENO: result: $cross_compiling" >&5
     1572echo "${ECHO_T}$cross_compiling" >&6
     1573
     1574echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1575echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     1577  (eval $ac_link) 2>&5
     1578  ac_status=$?
     1579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1580  (exit $ac_status); }; then
     1581  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1582# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1583# work properly (i.e., refer to `conftest.exe'), while it won't with
     1584# `rm'.
     1585for ac_file in conftest.exe conftest conftest.*; do
     1586  test -f "$ac_file" || continue
     1587  case $ac_file in
     1588    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     1589    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1590      export ac_cv_exeext
     1591      break;;
     1592    * ) break;;
     1593  esac
    6011594done
    602 test -n "$CXX" || CXX="gcc"
    603 
    604 
    605 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    606 echo "configure:607: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    607 
    608 ac_ext=C
    609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    610 ac_cpp='$CXXCPP $CPPFLAGS'
    611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    613 cross_compiling=$ac_cv_prog_cxx_cross
    614 
    615 cat > conftest.$ac_ext << EOF
    616 
    617 #line 618 "configure"
    618 #include "confdefs.h"
    619 
    620 int main(){return(0);}
    621 EOF
    622 if { (eval echo configure:623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    623   ac_cv_prog_cxx_works=yes
    624   # If we can't run a trivial program, we are probably using a cross compiler.
    625   if (./conftest; exit) 2>/dev/null; then
    626     ac_cv_prog_cxx_cross=no
    627   else
    628     ac_cv_prog_cxx_cross=yes
    629   fi
    630 else
    631   echo "configure: failed program was:" >&5
    632   cat conftest.$ac_ext >&5
    633   ac_cv_prog_cxx_works=no
    634 fi
    635 rm -fr conftest*
    636 ac_ext=c
    637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    638 ac_cpp='$CPP $CPPFLAGS'
    639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    641 cross_compiling=$ac_cv_prog_cc_cross
    642 
    643 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    644 if test $ac_cv_prog_cxx_works = no; then
    645   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    646 fi
    647 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    648 echo "configure:649: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    649 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    650 cross_compiling=$ac_cv_prog_cxx_cross
    651 
    652 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    653 echo "configure:654: checking whether we are using GNU C++" >&5
    654 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    655   echo $ac_n "(cached) $ac_c" 1>&6
    656 else
    657   cat > conftest.C <<EOF
    658 #ifdef __GNUC__
    659   yes;
     1595else
     1596  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1597See \`config.log' for more details." >&5
     1598echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1599See \`config.log' for more details." >&2;}
     1600   { (exit 1); exit 1; }; }
     1601fi
     1602
     1603rm -f conftest$ac_cv_exeext
     1604echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     1605echo "${ECHO_T}$ac_cv_exeext" >&6
     1606
     1607rm -f conftest.$ac_ext
     1608EXEEXT=$ac_cv_exeext
     1609ac_exeext=$EXEEXT
     1610echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1611echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     1612if test "${ac_cv_objext+set}" = set; then
     1613  echo $ECHO_N "(cached) $ECHO_C" >&6
     1614else
     1615  cat >conftest.$ac_ext <<_ACEOF
     1616/* confdefs.h.  */
     1617_ACEOF
     1618cat confdefs.h >>conftest.$ac_ext
     1619cat >>conftest.$ac_ext <<_ACEOF
     1620/* end confdefs.h.  */
     1621
     1622int
     1623main ()
     1624{
     1625
     1626  ;
     1627  return 0;
     1628}
     1629_ACEOF
     1630rm -f conftest.o conftest.obj
     1631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1632  (eval $ac_compile) 2>&5
     1633  ac_status=$?
     1634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1635  (exit $ac_status); }; then
     1636  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1637  case $ac_file in
     1638    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     1639    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1640       break;;
     1641  esac
     1642done
     1643else
     1644  echo "$as_me: failed program was:" >&5
     1645sed 's/^/| /' conftest.$ac_ext >&5
     1646
     1647{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1648See \`config.log' for more details." >&5
     1649echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1650See \`config.log' for more details." >&2;}
     1651   { (exit 1); exit 1; }; }
     1652fi
     1653
     1654rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1655fi
     1656echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     1657echo "${ECHO_T}$ac_cv_objext" >&6
     1658OBJEXT=$ac_cv_objext
     1659ac_objext=$OBJEXT
     1660echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     1661echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1662if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1663  echo $ECHO_N "(cached) $ECHO_C" >&6
     1664else
     1665  cat >conftest.$ac_ext <<_ACEOF
     1666/* confdefs.h.  */
     1667_ACEOF
     1668cat confdefs.h >>conftest.$ac_ext
     1669cat >>conftest.$ac_ext <<_ACEOF
     1670/* end confdefs.h.  */
     1671
     1672int
     1673main ()
     1674{
     1675#ifndef __GNUC__
     1676       choke me
    6601677#endif
    661 EOF
    662 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    663   ac_cv_prog_gxx=yes
    664 else
    665   ac_cv_prog_gxx=no
    666 fi
    667 fi
    668 
    669 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    670 
    671 if test $ac_cv_prog_gxx = yes; then
    672   GXX=yes
    673 else
    674   GXX=
    675 fi
    676 
    677 ac_test_CXXFLAGS="${CXXFLAGS+set}"
    678 ac_save_CXXFLAGS="$CXXFLAGS"
    679 CXXFLAGS=
    680 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    681 echo "configure:682: checking whether ${CXX-g++} accepts -g" >&5
    682 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    683   echo $ac_n "(cached) $ac_c" 1>&6
    684 else
    685   echo 'void f(){}' > conftest.cc
    686 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     1678
     1679  ;
     1680  return 0;
     1681}
     1682_ACEOF
     1683rm -f conftest.$ac_objext
     1684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1685  (eval $ac_compile) 2>conftest.er1
     1686  ac_status=$?
     1687  grep -v '^ *+' conftest.er1 >conftest.err
     1688  rm -f conftest.er1
     1689  cat conftest.err >&5
     1690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1691  (exit $ac_status); } &&
     1692     { ac_try='test -z "$ac_cxx_werror_flag"
     1693             || test ! -s conftest.err'
     1694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1695  (eval $ac_try) 2>&5
     1696  ac_status=$?
     1697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1698  (exit $ac_status); }; } &&
     1699     { ac_try='test -s conftest.$ac_objext'
     1700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1701  (eval $ac_try) 2>&5
     1702  ac_status=$?
     1703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1704  (exit $ac_status); }; }; then
     1705  ac_compiler_gnu=yes
     1706else
     1707  echo "$as_me: failed program was:" >&5
     1708sed 's/^/| /' conftest.$ac_ext >&5
     1709
     1710ac_compiler_gnu=no
     1711fi
     1712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1713ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1714
     1715fi
     1716echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     1717echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1718GXX=`test $ac_compiler_gnu = yes && echo yes`
     1719ac_test_CXXFLAGS=${CXXFLAGS+set}
     1720ac_save_CXXFLAGS=$CXXFLAGS
     1721CXXFLAGS="-g"
     1722echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     1723echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1724if test "${ac_cv_prog_cxx_g+set}" = set; then
     1725  echo $ECHO_N "(cached) $ECHO_C" >&6
     1726else
     1727  cat >conftest.$ac_ext <<_ACEOF
     1728/* confdefs.h.  */
     1729_ACEOF
     1730cat confdefs.h >>conftest.$ac_ext
     1731cat >>conftest.$ac_ext <<_ACEOF
     1732/* end confdefs.h.  */
     1733
     1734int
     1735main ()
     1736{
     1737
     1738  ;
     1739  return 0;
     1740}
     1741_ACEOF
     1742rm -f conftest.$ac_objext
     1743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1744  (eval $ac_compile) 2>conftest.er1
     1745  ac_status=$?
     1746  grep -v '^ *+' conftest.er1 >conftest.err
     1747  rm -f conftest.er1
     1748  cat conftest.err >&5
     1749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1750  (exit $ac_status); } &&
     1751     { ac_try='test -z "$ac_cxx_werror_flag"
     1752             || test ! -s conftest.err'
     1753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1754  (eval $ac_try) 2>&5
     1755  ac_status=$?
     1756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1757  (exit $ac_status); }; } &&
     1758     { ac_try='test -s conftest.$ac_objext'
     1759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1760  (eval $ac_try) 2>&5
     1761  ac_status=$?
     1762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1763  (exit $ac_status); }; }; then
    6871764  ac_cv_prog_cxx_g=yes
    6881765else
    689   ac_cv_prog_cxx_g=no
    690 fi
    691 rm -f conftest*
    692 
    693 fi
    694 
    695 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     1766  echo "$as_me: failed program was:" >&5
     1767sed 's/^/| /' conftest.$ac_ext >&5
     1768
     1769ac_cv_prog_cxx_g=no
     1770fi
     1771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1772fi
     1773echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     1774echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    6961775if test "$ac_test_CXXFLAGS" = set; then
    697   CXXFLAGS="$ac_save_CXXFLAGS"
     1776  CXXFLAGS=$ac_save_CXXFLAGS
    6981777elif test $ac_cv_prog_cxx_g = yes; then
    6991778  if test "$GXX" = yes; then
     
    7091788  fi
    7101789fi
    711 
    712 for ac_prog in mawk gawk nawk awk
     1790for ac_declaration in \
     1791   '' \
     1792   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1793   'extern "C" void std::exit (int); using std::exit;' \
     1794   'extern "C" void exit (int) throw ();' \
     1795   'extern "C" void exit (int);' \
     1796   'void exit (int);'
    7131797do
    714 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1798  cat >conftest.$ac_ext <<_ACEOF
     1799/* confdefs.h.  */
     1800_ACEOF
     1801cat confdefs.h >>conftest.$ac_ext
     1802cat >>conftest.$ac_ext <<_ACEOF
     1803/* end confdefs.h.  */
     1804$ac_declaration
     1805#include <stdlib.h>
     1806int
     1807main ()
     1808{
     1809exit (42);
     1810  ;
     1811  return 0;
     1812}
     1813_ACEOF
     1814rm -f conftest.$ac_objext
     1815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1816  (eval $ac_compile) 2>conftest.er1
     1817  ac_status=$?
     1818  grep -v '^ *+' conftest.er1 >conftest.err
     1819  rm -f conftest.er1
     1820  cat conftest.err >&5
     1821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1822  (exit $ac_status); } &&
     1823     { ac_try='test -z "$ac_cxx_werror_flag"
     1824             || test ! -s conftest.err'
     1825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1826  (eval $ac_try) 2>&5
     1827  ac_status=$?
     1828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1829  (exit $ac_status); }; } &&
     1830     { ac_try='test -s conftest.$ac_objext'
     1831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1832  (eval $ac_try) 2>&5
     1833  ac_status=$?
     1834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1835  (exit $ac_status); }; }; then
     1836  :
     1837else
     1838  echo "$as_me: failed program was:" >&5
     1839sed 's/^/| /' conftest.$ac_ext >&5
     1840
     1841continue
     1842fi
     1843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1844  cat >conftest.$ac_ext <<_ACEOF
     1845/* confdefs.h.  */
     1846_ACEOF
     1847cat confdefs.h >>conftest.$ac_ext
     1848cat >>conftest.$ac_ext <<_ACEOF
     1849/* end confdefs.h.  */
     1850$ac_declaration
     1851int
     1852main ()
     1853{
     1854exit (42);
     1855  ;
     1856  return 0;
     1857}
     1858_ACEOF
     1859rm -f conftest.$ac_objext
     1860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1861  (eval $ac_compile) 2>conftest.er1
     1862  ac_status=$?
     1863  grep -v '^ *+' conftest.er1 >conftest.err
     1864  rm -f conftest.er1
     1865  cat conftest.err >&5
     1866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1867  (exit $ac_status); } &&
     1868     { ac_try='test -z "$ac_cxx_werror_flag"
     1869             || test ! -s conftest.err'
     1870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1871  (eval $ac_try) 2>&5
     1872  ac_status=$?
     1873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1874  (exit $ac_status); }; } &&
     1875     { ac_try='test -s conftest.$ac_objext'
     1876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1877  (eval $ac_try) 2>&5
     1878  ac_status=$?
     1879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1880  (exit $ac_status); }; }; then
     1881  break
     1882else
     1883  echo "$as_me: failed program was:" >&5
     1884sed 's/^/| /' conftest.$ac_ext >&5
     1885
     1886fi
     1887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1888done
     1889rm -f conftest*
     1890if test -n "$ac_declaration"; then
     1891  echo '#ifdef __cplusplus' >>confdefs.h
     1892  echo $ac_declaration      >>confdefs.h
     1893  echo '#endif'             >>confdefs.h
     1894fi
     1895
     1896ac_ext=c
     1897ac_cpp='$CPP $CPPFLAGS'
     1898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1900ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1901
     1902for ac_prog in gawk mawk nawk awk
     1903do
     1904  # Extract the first word of "$ac_prog", so it can be a program name with args.
    7151905set dummy $ac_prog; ac_word=$2
    716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    717 echo "configure:718: checking for $ac_word" >&5
    718 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    719   echo $ac_n "(cached) $ac_c" 1>&6
     1906echo "$as_me:$LINENO: checking for $ac_word" >&5
     1907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1908if test "${ac_cv_prog_AWK+set}" = set; then
     1909  echo $ECHO_N "(cached) $ECHO_C" >&6
    7201910else
    7211911  if test -n "$AWK"; then
    7221912  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    7231913else
    724   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    725   ac_dummy="$PATH"
    726   for ac_dir in $ac_dummy; do
    727     test -z "$ac_dir" && ac_dir=.
    728     if test -f $ac_dir/$ac_word; then
    729       ac_cv_prog_AWK="$ac_prog"
    730       break
    731     fi
    732   done
    733   IFS="$ac_save_ifs"
    734 fi
    735 fi
    736 AWK="$ac_cv_prog_AWK"
     1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1915for as_dir in $PATH
     1916do
     1917  IFS=$as_save_IFS
     1918  test -z "$as_dir" && as_dir=.
     1919  for ac_exec_ext in '' $ac_executable_extensions; do
     1920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1921    ac_cv_prog_AWK="$ac_prog"
     1922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1923    break 2
     1924  fi
     1925done
     1926done
     1927
     1928fi
     1929fi
     1930AWK=$ac_cv_prog_AWK
    7371931if test -n "$AWK"; then
    738   echo "$ac_t""$AWK" 1>&6
    739 else
    740   echo "$ac_t""no" 1>&6
    741 fi
    742 
    743 test -n "$AWK" && break
     1932  echo "$as_me:$LINENO: result: $AWK" >&5
     1933echo "${ECHO_T}$AWK" >&6
     1934else
     1935  echo "$as_me:$LINENO: result: no" >&5
     1936echo "${ECHO_T}no" >&6
     1937fi
     1938
     1939  test -n "$AWK" && break
    7441940done
    7451941
    7461942for ac_prog in 'bison -y' byacc
    7471943do
    748 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1944  # Extract the first word of "$ac_prog", so it can be a program name with args.
    7491945set dummy $ac_prog; ac_word=$2
    750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    751 echo "configure:752: checking for $ac_word" >&5
    752 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    753   echo $ac_n "(cached) $ac_c" 1>&6
     1946echo "$as_me:$LINENO: checking for $ac_word" >&5
     1947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1948if test "${ac_cv_prog_YACC+set}" = set; then
     1949  echo $ECHO_N "(cached) $ECHO_C" >&6
    7541950else
    7551951  if test -n "$YACC"; then
    7561952  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    7571953else
    758   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    759   ac_dummy="$PATH"
    760   for ac_dir in $ac_dummy; do
    761     test -z "$ac_dir" && ac_dir=.
    762     if test -f $ac_dir/$ac_word; then
    763       ac_cv_prog_YACC="$ac_prog"
    764       break
    765     fi
    766   done
    767   IFS="$ac_save_ifs"
    768 fi
    769 fi
    770 YACC="$ac_cv_prog_YACC"
     1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1955for as_dir in $PATH
     1956do
     1957  IFS=$as_save_IFS
     1958  test -z "$as_dir" && as_dir=.
     1959  for ac_exec_ext in '' $ac_executable_extensions; do
     1960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1961    ac_cv_prog_YACC="$ac_prog"
     1962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1963    break 2
     1964  fi
     1965done
     1966done
     1967
     1968fi
     1969fi
     1970YACC=$ac_cv_prog_YACC
    7711971if test -n "$YACC"; then
    772   echo "$ac_t""$YACC" 1>&6
    773 else
    774   echo "$ac_t""no" 1>&6
    775 fi
    776 
    777 test -n "$YACC" && break
     1972  echo "$as_me:$LINENO: result: $YACC" >&5
     1973echo "${ECHO_T}$YACC" >&6
     1974else
     1975  echo "$as_me:$LINENO: result: no" >&5
     1976echo "${ECHO_T}no" >&6
     1977fi
     1978
     1979  test -n "$YACC" && break
    7781980done
    7791981test -n "$YACC" || YACC="yacc"
    7801982
    781 # Extract the first word of "gcc", so it can be a program name with args.
    782 set dummy gcc; ac_word=$2
    783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    784 echo "configure:785: checking for $ac_word" >&5
    785 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    786   echo $ac_n "(cached) $ac_c" 1>&6
     1983ac_ext=c
     1984ac_cpp='$CPP $CPPFLAGS'
     1985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1987ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1988if test -n "$ac_tool_prefix"; then
     1989  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1990set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1991echo "$as_me:$LINENO: checking for $ac_word" >&5
     1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1993if test "${ac_cv_prog_CC+set}" = set; then
     1994  echo $ECHO_N "(cached) $ECHO_C" >&6
    7871995else
    7881996  if test -n "$CC"; then
    7891997  ac_cv_prog_CC="$CC" # Let the user override the test.
    7901998else
    791   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    792   ac_dummy="$PATH"
    793   for ac_dir in $ac_dummy; do
    794     test -z "$ac_dir" && ac_dir=.
    795     if test -f $ac_dir/$ac_word; then
    796       ac_cv_prog_CC="gcc"
    797       break
    798     fi
    799   done
    800   IFS="$ac_save_ifs"
    801 fi
    802 fi
    803 CC="$ac_cv_prog_CC"
     1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2000for as_dir in $PATH
     2001do
     2002  IFS=$as_save_IFS
     2003  test -z "$as_dir" && as_dir=.
     2004  for ac_exec_ext in '' $ac_executable_extensions; do
     2005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2006    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     2007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2008    break 2
     2009  fi
     2010done
     2011done
     2012
     2013fi
     2014fi
     2015CC=$ac_cv_prog_CC
    8042016if test -n "$CC"; then
    805   echo "$ac_t""$CC" 1>&6
    806 else
    807   echo "$ac_t""no" 1>&6
    808 fi
    809 
     2017  echo "$as_me:$LINENO: result: $CC" >&5
     2018echo "${ECHO_T}$CC" >&6
     2019else
     2020  echo "$as_me:$LINENO: result: no" >&5
     2021echo "${ECHO_T}no" >&6
     2022fi
     2023
     2024fi
     2025if test -z "$ac_cv_prog_CC"; then
     2026  ac_ct_CC=$CC
     2027  # Extract the first word of "gcc", so it can be a program name with args.
     2028set dummy gcc; ac_word=$2
     2029echo "$as_me:$LINENO: checking for $ac_word" >&5
     2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2032  echo $ECHO_N "(cached) $ECHO_C" >&6
     2033else
     2034  if test -n "$ac_ct_CC"; then
     2035  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2036else
     2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2038for as_dir in $PATH
     2039do
     2040  IFS=$as_save_IFS
     2041  test -z "$as_dir" && as_dir=.
     2042  for ac_exec_ext in '' $ac_executable_extensions; do
     2043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2044    ac_cv_prog_ac_ct_CC="gcc"
     2045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2046    break 2
     2047  fi
     2048done
     2049done
     2050
     2051fi
     2052fi
     2053ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2054if test -n "$ac_ct_CC"; then
     2055  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2056echo "${ECHO_T}$ac_ct_CC" >&6
     2057else
     2058  echo "$as_me:$LINENO: result: no" >&5
     2059echo "${ECHO_T}no" >&6
     2060fi
     2061
     2062  CC=$ac_ct_CC
     2063else
     2064  CC="$ac_cv_prog_CC"
     2065fi
     2066
     2067if test -z "$CC"; then
     2068  if test -n "$ac_tool_prefix"; then
     2069  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     2070set dummy ${ac_tool_prefix}cc; ac_word=$2
     2071echo "$as_me:$LINENO: checking for $ac_word" >&5
     2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2073if test "${ac_cv_prog_CC+set}" = set; then
     2074  echo $ECHO_N "(cached) $ECHO_C" >&6
     2075else
     2076  if test -n "$CC"; then
     2077  ac_cv_prog_CC="$CC" # Let the user override the test.
     2078else
     2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2080for as_dir in $PATH
     2081do
     2082  IFS=$as_save_IFS
     2083  test -z "$as_dir" && as_dir=.
     2084  for ac_exec_ext in '' $ac_executable_extensions; do
     2085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2086    ac_cv_prog_CC="${ac_tool_prefix}cc"
     2087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2088    break 2
     2089  fi
     2090done
     2091done
     2092
     2093fi
     2094fi
     2095CC=$ac_cv_prog_CC
     2096if test -n "$CC"; then
     2097  echo "$as_me:$LINENO: result: $CC" >&5
     2098echo "${ECHO_T}$CC" >&6
     2099else
     2100  echo "$as_me:$LINENO: result: no" >&5
     2101echo "${ECHO_T}no" >&6
     2102fi
     2103
     2104fi
     2105if test -z "$ac_cv_prog_CC"; then
     2106  ac_ct_CC=$CC
     2107  # Extract the first word of "cc", so it can be a program name with args.
     2108set dummy cc; ac_word=$2
     2109echo "$as_me:$LINENO: checking for $ac_word" >&5
     2110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2112  echo $ECHO_N "(cached) $ECHO_C" >&6
     2113else
     2114  if test -n "$ac_ct_CC"; then
     2115  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2116else
     2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2118for as_dir in $PATH
     2119do
     2120  IFS=$as_save_IFS
     2121  test -z "$as_dir" && as_dir=.
     2122  for ac_exec_ext in '' $ac_executable_extensions; do
     2123  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2124    ac_cv_prog_ac_ct_CC="cc"
     2125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2126    break 2
     2127  fi
     2128done
     2129done
     2130
     2131fi
     2132fi
     2133ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2134if test -n "$ac_ct_CC"; then
     2135  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2136echo "${ECHO_T}$ac_ct_CC" >&6
     2137else
     2138  echo "$as_me:$LINENO: result: no" >&5
     2139echo "${ECHO_T}no" >&6
     2140fi
     2141
     2142  CC=$ac_ct_CC
     2143else
     2144  CC="$ac_cv_prog_CC"
     2145fi
     2146
     2147fi
    8102148if test -z "$CC"; then
    8112149  # Extract the first word of "cc", so it can be a program name with args.
    8122150set dummy cc; ac_word=$2
    813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    814 echo "configure:815: checking for $ac_word" >&5
    815 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    816   echo $ac_n "(cached) $ac_c" 1>&6
     2151echo "$as_me:$LINENO: checking for $ac_word" >&5
     2152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2153if test "${ac_cv_prog_CC+set}" = set; then
     2154  echo $ECHO_N "(cached) $ECHO_C" >&6
    8172155else
    8182156  if test -n "$CC"; then
    8192157  ac_cv_prog_CC="$CC" # Let the user override the test.
    8202158else
    821   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    8222159  ac_prog_rejected=no
    823   ac_dummy="$PATH"
    824   for ac_dir in $ac_dummy; do
    825     test -z "$ac_dir" && ac_dir=.
    826     if test -f $ac_dir/$ac_word; then
    827       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    828         ac_prog_rejected=yes
    829     continue
    830       fi
    831       ac_cv_prog_CC="cc"
    832       break
    833     fi
    834   done
    835   IFS="$ac_save_ifs"
     2160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2161for as_dir in $PATH
     2162do
     2163  IFS=$as_save_IFS
     2164  test -z "$as_dir" && as_dir=.
     2165  for ac_exec_ext in '' $ac_executable_extensions; do
     2166  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2167    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     2168       ac_prog_rejected=yes
     2169       continue
     2170     fi
     2171    ac_cv_prog_CC="cc"
     2172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2173    break 2
     2174  fi
     2175done
     2176done
     2177
    8362178if test $ac_prog_rejected = yes; then
    8372179  # We found a bogon in the path, so make sure we never use it.
    8382180  set dummy $ac_cv_prog_CC
    8392181  shift
    840   if test $# -gt 0; then
     2182  if test $# != 0; then
    8412183    # We chose a different compiler from the bogus one.
    8422184    # However, it has the same basename, so the bogon will be chosen
    8432185    # first if we set CC to just the basename; use the full file name.
    8442186    shift
    845     set dummy "$ac_dir/$ac_word" "$@"
    846     shift
    847     ac_cv_prog_CC="$@"
     2187    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    8482188  fi
    8492189fi
    8502190fi
    8512191fi
    852 CC="$ac_cv_prog_CC"
     2192CC=$ac_cv_prog_CC
    8532193if test -n "$CC"; then
    854   echo "$ac_t""$CC" 1>&6
    855 else
    856   echo "$ac_t""no" 1>&6
    857 fi
    858 
    859   if test -z "$CC"; then
    860     case "`uname -s`" in
    861     *win32* | *WIN32*)
    862       # Extract the first word of "cl", so it can be a program name with args.
    863 set dummy cl; ac_word=$2
    864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    865 echo "configure:866: checking for $ac_word" >&5
    866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    867   echo $ac_n "(cached) $ac_c" 1>&6
     2194  echo "$as_me:$LINENO: result: $CC" >&5
     2195echo "${ECHO_T}$CC" >&6
     2196else
     2197  echo "$as_me:$LINENO: result: no" >&5
     2198echo "${ECHO_T}no" >&6
     2199fi
     2200
     2201fi
     2202if test -z "$CC"; then
     2203  if test -n "$ac_tool_prefix"; then
     2204  for ac_prog in cl
     2205  do
     2206    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2208echo "$as_me:$LINENO: checking for $ac_word" >&5
     2209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2210if test "${ac_cv_prog_CC+set}" = set; then
     2211  echo $ECHO_N "(cached) $ECHO_C" >&6
    8682212else
    8692213  if test -n "$CC"; then
    8702214  ac_cv_prog_CC="$CC" # Let the user override the test.
    8712215else
    872   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    873   ac_dummy="$PATH"
    874   for ac_dir in $ac_dummy; do
    875     test -z "$ac_dir" && ac_dir=.
    876     if test -f $ac_dir/$ac_word; then
    877       ac_cv_prog_CC="cl"
    878       break
    879     fi
     2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2217for as_dir in $PATH
     2218do
     2219  IFS=$as_save_IFS
     2220  test -z "$as_dir" && as_dir=.
     2221  for ac_exec_ext in '' $ac_executable_extensions; do
     2222  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2223    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     2224    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2225    break 2
     2226  fi
     2227done
     2228done
     2229
     2230fi
     2231fi
     2232CC=$ac_cv_prog_CC
     2233if test -n "$CC"; then
     2234  echo "$as_me:$LINENO: result: $CC" >&5
     2235echo "${ECHO_T}$CC" >&6
     2236else
     2237  echo "$as_me:$LINENO: result: no" >&5
     2238echo "${ECHO_T}no" >&6
     2239fi
     2240
     2241    test -n "$CC" && break
    8802242  done
    881   IFS="$ac_save_ifs"
    882 fi
    883 fi
    884 CC="$ac_cv_prog_CC"
    885 if test -n "$CC"; then
    886   echo "$ac_t""$CC" 1>&6
    887 else
    888   echo "$ac_t""no" 1>&6
    889 fi
    890  ;;
    891     esac
     2243fi
     2244if test -z "$CC"; then
     2245  ac_ct_CC=$CC
     2246  for ac_prog in cl
     2247do
     2248  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2249set dummy $ac_prog; ac_word=$2
     2250echo "$as_me:$LINENO: checking for $ac_word" >&5
     2251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2252if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2253  echo $ECHO_N "(cached) $ECHO_C" >&6
     2254else
     2255  if test -n "$ac_ct_CC"; then
     2256  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2257else
     2258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2259for as_dir in $PATH
     2260do
     2261  IFS=$as_save_IFS
     2262  test -z "$as_dir" && as_dir=.
     2263  for ac_exec_ext in '' $ac_executable_extensions; do
     2264  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2265    ac_cv_prog_ac_ct_CC="$ac_prog"
     2266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2267    break 2
    8922268  fi
    893   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    894 fi
    895 
    896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    898 
    899 ac_ext=c
    900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    901 ac_cpp='$CPP $CPPFLAGS'
    902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    904 cross_compiling=$ac_cv_prog_cc_cross
    905 
    906 cat > conftest.$ac_ext << EOF
    907 
    908 #line 909 "configure"
    909 #include "confdefs.h"
    910 
    911 main(){return(0);}
    912 EOF
    913 if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    914   ac_cv_prog_cc_works=yes
    915   # If we can't run a trivial program, we are probably using a cross compiler.
    916   if (./conftest; exit) 2>/dev/null; then
    917     ac_cv_prog_cc_cross=no
    918   else
    919     ac_cv_prog_cc_cross=yes
    920   fi
    921 else
    922   echo "configure: failed program was:" >&5
    923   cat conftest.$ac_ext >&5
    924   ac_cv_prog_cc_works=no
    925 fi
    926 rm -fr conftest*
    927 ac_ext=c
    928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    929 ac_cpp='$CPP $CPPFLAGS'
    930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    932 cross_compiling=$ac_cv_prog_cc_cross
    933 
    934 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    935 if test $ac_cv_prog_cc_works = no; then
    936   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    937 fi
    938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    940 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    941 cross_compiling=$ac_cv_prog_cc_cross
    942 
    943 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    944 echo "configure:945: checking whether we are using GNU C" >&5
    945 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    946   echo $ac_n "(cached) $ac_c" 1>&6
    947 else
    948   cat > conftest.c <<EOF
    949 #ifdef __GNUC__
    950   yes;
     2269done
     2270done
     2271
     2272fi
     2273fi
     2274ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2275if test -n "$ac_ct_CC"; then
     2276  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2277echo "${ECHO_T}$ac_ct_CC" >&6
     2278else
     2279  echo "$as_me:$LINENO: result: no" >&5
     2280echo "${ECHO_T}no" >&6
     2281fi
     2282
     2283  test -n "$ac_ct_CC" && break
     2284done
     2285
     2286  CC=$ac_ct_CC
     2287fi
     2288
     2289fi
     2290
     2291
     2292test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2293See \`config.log' for more details." >&5
     2294echo "$as_me: error: no acceptable C compiler found in \$PATH
     2295See \`config.log' for more details." >&2;}
     2296   { (exit 1); exit 1; }; }
     2297
     2298# Provide some information about the compiler.
     2299echo "$as_me:$LINENO:" \
     2300     "checking for C compiler version" >&5
     2301ac_compiler=`set X $ac_compile; echo $2`
     2302{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2303  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2304  ac_status=$?
     2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2306  (exit $ac_status); }
     2307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2308  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2309  ac_status=$?
     2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2311  (exit $ac_status); }
     2312{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2313  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2314  ac_status=$?
     2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2316  (exit $ac_status); }
     2317
     2318echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2319echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     2320if test "${ac_cv_c_compiler_gnu+set}" = set; then
     2321  echo $ECHO_N "(cached) $ECHO_C" >&6
     2322else
     2323  cat >conftest.$ac_ext <<_ACEOF
     2324/* confdefs.h.  */
     2325_ACEOF
     2326cat confdefs.h >>conftest.$ac_ext
     2327cat >>conftest.$ac_ext <<_ACEOF
     2328/* end confdefs.h.  */
     2329
     2330int
     2331main ()
     2332{
     2333#ifndef __GNUC__
     2334       choke me
    9512335#endif
    952 EOF
    953 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    954   ac_cv_prog_gcc=yes
    955 else
    956   ac_cv_prog_gcc=no
    957 fi
    958 fi
    959 
    960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    961 
    962 if test $ac_cv_prog_gcc = yes; then
    963   GCC=yes
    964 else
    965   GCC=
    966 fi
    967 
    968 ac_test_CFLAGS="${CFLAGS+set}"
    969 ac_save_CFLAGS="$CFLAGS"
    970 CFLAGS=
    971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    972 echo "configure:973: checking whether ${CC-cc} accepts -g" >&5
    973 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    974   echo $ac_n "(cached) $ac_c" 1>&6
    975 else
    976   echo 'void f(){}' > conftest.c
    977 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     2336
     2337  ;
     2338  return 0;
     2339}
     2340_ACEOF
     2341rm -f conftest.$ac_objext
     2342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2343  (eval $ac_compile) 2>conftest.er1
     2344  ac_status=$?
     2345  grep -v '^ *+' conftest.er1 >conftest.err
     2346  rm -f conftest.er1
     2347  cat conftest.err >&5
     2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2349  (exit $ac_status); } &&
     2350     { ac_try='test -z "$ac_c_werror_flag"
     2351             || test ! -s conftest.err'
     2352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2353  (eval $ac_try) 2>&5
     2354  ac_status=$?
     2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2356  (exit $ac_status); }; } &&
     2357     { ac_try='test -s conftest.$ac_objext'
     2358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2359  (eval $ac_try) 2>&5
     2360  ac_status=$?
     2361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2362  (exit $ac_status); }; }; then
     2363  ac_compiler_gnu=yes
     2364else
     2365  echo "$as_me: failed program was:" >&5
     2366sed 's/^/| /' conftest.$ac_ext >&5
     2367
     2368ac_compiler_gnu=no
     2369fi
     2370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2371ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2372
     2373fi
     2374echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2375echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2376GCC=`test $ac_compiler_gnu = yes && echo yes`
     2377ac_test_CFLAGS=${CFLAGS+set}
     2378ac_save_CFLAGS=$CFLAGS
     2379CFLAGS="-g"
     2380echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2381echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2382if test "${ac_cv_prog_cc_g+set}" = set; then
     2383  echo $ECHO_N "(cached) $ECHO_C" >&6
     2384else
     2385  cat >conftest.$ac_ext <<_ACEOF
     2386/* confdefs.h.  */
     2387_ACEOF
     2388cat confdefs.h >>conftest.$ac_ext
     2389cat >>conftest.$ac_ext <<_ACEOF
     2390/* end confdefs.h.  */
     2391
     2392int
     2393main ()
     2394{
     2395
     2396  ;
     2397  return 0;
     2398}
     2399_ACEOF
     2400rm -f conftest.$ac_objext
     2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2402  (eval $ac_compile) 2>conftest.er1
     2403  ac_status=$?
     2404  grep -v '^ *+' conftest.er1 >conftest.err
     2405  rm -f conftest.er1
     2406  cat conftest.err >&5
     2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2408  (exit $ac_status); } &&
     2409     { ac_try='test -z "$ac_c_werror_flag"
     2410             || test ! -s conftest.err'
     2411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2412  (eval $ac_try) 2>&5
     2413  ac_status=$?
     2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2415  (exit $ac_status); }; } &&
     2416     { ac_try='test -s conftest.$ac_objext'
     2417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2418  (eval $ac_try) 2>&5
     2419  ac_status=$?
     2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2421  (exit $ac_status); }; }; then
    9782422  ac_cv_prog_cc_g=yes
    9792423else
    980   ac_cv_prog_cc_g=no
    981 fi
    982 rm -f conftest*
    983 
    984 fi
    985 
    986 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     2424  echo "$as_me: failed program was:" >&5
     2425sed 's/^/| /' conftest.$ac_ext >&5
     2426
     2427ac_cv_prog_cc_g=no
     2428fi
     2429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2430fi
     2431echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2432echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    9872433if test "$ac_test_CFLAGS" = set; then
    988   CFLAGS="$ac_save_CFLAGS"
     2434  CFLAGS=$ac_save_CFLAGS
    9892435elif test $ac_cv_prog_cc_g = yes; then
    9902436  if test "$GCC" = yes; then
     
    10002446  fi
    10012447fi
     2448echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2449echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2450if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2451  echo $ECHO_N "(cached) $ECHO_C" >&6
     2452else
     2453  ac_cv_prog_cc_stdc=no
     2454ac_save_CC=$CC
     2455cat >conftest.$ac_ext <<_ACEOF
     2456/* confdefs.h.  */
     2457_ACEOF
     2458cat confdefs.h >>conftest.$ac_ext
     2459cat >>conftest.$ac_ext <<_ACEOF
     2460/* end confdefs.h.  */
     2461#include <stdarg.h>
     2462#include <stdio.h>
     2463#include <sys/types.h>
     2464#include <sys/stat.h>
     2465/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2466struct buf { int x; };
     2467FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2468static char *e (p, i)
     2469     char **p;
     2470     int i;
     2471{
     2472  return p[i];
     2473}
     2474static char *f (char * (*g) (char **, int), char **p, ...)
     2475{
     2476  char *s;
     2477  va_list v;
     2478  va_start (v,p);
     2479  s = g (p, va_arg (v,int));
     2480  va_end (v);
     2481  return s;
     2482}
     2483
     2484/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2485   function prototypes and stuff, but not '\xHH' hex character constants.
     2486   These don't provoke an error unfortunately, instead are silently treated
     2487   as 'x'.  The following induces an error, until -std1 is added to get
     2488   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2489   array size at least.  It's necessary to write '\x00'==0 to get something
     2490   that's true only with -std1.  */
     2491int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2492
     2493int test (int i, double x);
     2494struct s1 {int (*f) (int a);};
     2495struct s2 {int (*f) (double a);};
     2496int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2497int argc;
     2498char **argv;
     2499int
     2500main ()
     2501{
     2502return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2503  ;
     2504  return 0;
     2505}
     2506_ACEOF
     2507# Don't try gcc -ansi; that turns off useful extensions and
     2508# breaks some systems' header files.
     2509# AIX           -qlanglvl=ansi
     2510# Ultrix and OSF/1  -std1
     2511# HP-UX 10.20 and later -Ae
     2512# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2513# SVR4          -Xc -D__EXTENSIONS__
     2514for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2515do
     2516  CC="$ac_save_CC $ac_arg"
     2517  rm -f conftest.$ac_objext
     2518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2519  (eval $ac_compile) 2>conftest.er1
     2520  ac_status=$?
     2521  grep -v '^ *+' conftest.er1 >conftest.err
     2522  rm -f conftest.er1
     2523  cat conftest.err >&5
     2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2525  (exit $ac_status); } &&
     2526     { ac_try='test -z "$ac_c_werror_flag"
     2527             || test ! -s conftest.err'
     2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2529  (eval $ac_try) 2>&5
     2530  ac_status=$?
     2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2532  (exit $ac_status); }; } &&
     2533     { ac_try='test -s conftest.$ac_objext'
     2534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2535  (eval $ac_try) 2>&5
     2536  ac_status=$?
     2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2538  (exit $ac_status); }; }; then
     2539  ac_cv_prog_cc_stdc=$ac_arg
     2540break
     2541else
     2542  echo "$as_me: failed program was:" >&5
     2543sed 's/^/| /' conftest.$ac_ext >&5
     2544
     2545fi
     2546rm -f conftest.err conftest.$ac_objext
     2547done
     2548rm -f conftest.$ac_ext conftest.$ac_objext
     2549CC=$ac_save_CC
     2550
     2551fi
     2552
     2553case "x$ac_cv_prog_cc_stdc" in
     2554  x|xno)
     2555    echo "$as_me:$LINENO: result: none needed" >&5
     2556echo "${ECHO_T}none needed" >&6 ;;
     2557  *)
     2558    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2559echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2560    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2561esac
     2562
     2563# Some people use a C++ compiler to compile C.  Since we use `exit',
     2564# in C++ we need to declare it.  In case someone uses the same compiler
     2565# for both compiling C and C++ we need to have the C++ compiler decide
     2566# the declaration of exit, since it's the most demanding environment.
     2567cat >conftest.$ac_ext <<_ACEOF
     2568#ifndef __cplusplus
     2569  choke me
     2570#endif
     2571_ACEOF
     2572rm -f conftest.$ac_objext
     2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2574  (eval $ac_compile) 2>conftest.er1
     2575  ac_status=$?
     2576  grep -v '^ *+' conftest.er1 >conftest.err
     2577  rm -f conftest.er1
     2578  cat conftest.err >&5
     2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2580  (exit $ac_status); } &&
     2581     { ac_try='test -z "$ac_c_werror_flag"
     2582             || test ! -s conftest.err'
     2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2584  (eval $ac_try) 2>&5
     2585  ac_status=$?
     2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2587  (exit $ac_status); }; } &&
     2588     { ac_try='test -s conftest.$ac_objext'
     2589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2590  (eval $ac_try) 2>&5
     2591  ac_status=$?
     2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2593  (exit $ac_status); }; }; then
     2594  for ac_declaration in \
     2595   '' \
     2596   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2597   'extern "C" void std::exit (int); using std::exit;' \
     2598   'extern "C" void exit (int) throw ();' \
     2599   'extern "C" void exit (int);' \
     2600   'void exit (int);'
     2601do
     2602  cat >conftest.$ac_ext <<_ACEOF
     2603/* confdefs.h.  */
     2604_ACEOF
     2605cat confdefs.h >>conftest.$ac_ext
     2606cat >>conftest.$ac_ext <<_ACEOF
     2607/* end confdefs.h.  */
     2608$ac_declaration
     2609#include <stdlib.h>
     2610int
     2611main ()
     2612{
     2613exit (42);
     2614  ;
     2615  return 0;
     2616}
     2617_ACEOF
     2618rm -f conftest.$ac_objext
     2619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2620  (eval $ac_compile) 2>conftest.er1
     2621  ac_status=$?
     2622  grep -v '^ *+' conftest.er1 >conftest.err
     2623  rm -f conftest.er1
     2624  cat conftest.err >&5
     2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2626  (exit $ac_status); } &&
     2627     { ac_try='test -z "$ac_c_werror_flag"
     2628             || test ! -s conftest.err'
     2629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2630  (eval $ac_try) 2>&5
     2631  ac_status=$?
     2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2633  (exit $ac_status); }; } &&
     2634     { ac_try='test -s conftest.$ac_objext'
     2635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2636  (eval $ac_try) 2>&5
     2637  ac_status=$?
     2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2639  (exit $ac_status); }; }; then
     2640  :
     2641else
     2642  echo "$as_me: failed program was:" >&5
     2643sed 's/^/| /' conftest.$ac_ext >&5
     2644
     2645continue
     2646fi
     2647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2648  cat >conftest.$ac_ext <<_ACEOF
     2649/* confdefs.h.  */
     2650_ACEOF
     2651cat confdefs.h >>conftest.$ac_ext
     2652cat >>conftest.$ac_ext <<_ACEOF
     2653/* end confdefs.h.  */
     2654$ac_declaration
     2655int
     2656main ()
     2657{
     2658exit (42);
     2659  ;
     2660  return 0;
     2661}
     2662_ACEOF
     2663rm -f conftest.$ac_objext
     2664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2665  (eval $ac_compile) 2>conftest.er1
     2666  ac_status=$?
     2667  grep -v '^ *+' conftest.er1 >conftest.err
     2668  rm -f conftest.er1
     2669  cat conftest.err >&5
     2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2671  (exit $ac_status); } &&
     2672     { ac_try='test -z "$ac_c_werror_flag"
     2673             || test ! -s conftest.err'
     2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2675  (eval $ac_try) 2>&5
     2676  ac_status=$?
     2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2678  (exit $ac_status); }; } &&
     2679     { ac_try='test -s conftest.$ac_objext'
     2680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2681  (eval $ac_try) 2>&5
     2682  ac_status=$?
     2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2684  (exit $ac_status); }; }; then
     2685  break
     2686else
     2687  echo "$as_me: failed program was:" >&5
     2688sed 's/^/| /' conftest.$ac_ext >&5
     2689
     2690fi
     2691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2692done
     2693rm -f conftest*
     2694if test -n "$ac_declaration"; then
     2695  echo '#ifdef __cplusplus' >>confdefs.h
     2696  echo $ac_declaration      >>confdefs.h
     2697  echo '#endif'             >>confdefs.h
     2698fi
     2699
     2700else
     2701  echo "$as_me: failed program was:" >&5
     2702sed 's/^/| /' conftest.$ac_ext >&5
     2703
     2704fi
     2705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2706ac_ext=c
     2707ac_cpp='$CPP $CPPFLAGS'
     2708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2710ac_compiler_gnu=$ac_cv_c_compiler_gnu
    10022711
    10032712ac_aux_dir=
     
    10112720    ac_install_sh="$ac_aux_dir/install.sh -c"
    10122721    break
     2722  elif test -f $ac_dir/shtool; then
     2723    ac_aux_dir=$ac_dir
     2724    ac_install_sh="$ac_aux_dir/shtool install -c"
     2725    break
    10132726  fi
    10142727done
    10152728if test -z "$ac_aux_dir"; then
    1016   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    1017 fi
    1018 ac_config_guess=$ac_aux_dir/config.guess
    1019 ac_config_sub=$ac_aux_dir/config.sub
    1020 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     2729  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2730echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2731   { (exit 1); exit 1; }; }
     2732fi
     2733ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2734ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2735ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    10212736
    10222737# Find a good install program.  We prefer a C program (faster),
     
    10272742# IRIX /sbin/install
    10282743# AIX /bin/install
     2744# AmigaOS /C/install, which installs bootblocks on floppy discs
    10292745# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    10302746# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    10312747# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2748# OS/2's system install, which has a completely different semantic
    10322749# ./install, which can be erroneously created by make from ./install.sh.
    1033 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1034 echo "configure:1035: checking for a BSD compatible install" >&5
     2750echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2751echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    10352752if test -z "$INSTALL"; then
    1036 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1037   echo $ac_n "(cached) $ac_c" 1>&6
    1038 else
    1039     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
    1040   for ac_dir in $PATH; do
    1041     # Account for people who put trailing slashes in PATH elements.
    1042     case "$ac_dir/" in
    1043     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    1044     *)
    1045       # OSF1 and SCO ODT 3.0 have their own names for install.
    1046       # Don't use installbsd from OSF since it installs stuff as root
    1047       # by default.
    1048       for ac_prog in ginstall scoinst install; do
    1049         if test -f $ac_dir/$ac_prog; then
     2753if test "${ac_cv_path_install+set}" = set; then
     2754  echo $ECHO_N "(cached) $ECHO_C" >&6
     2755else
     2756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2757for as_dir in $PATH
     2758do
     2759  IFS=$as_save_IFS
     2760  test -z "$as_dir" && as_dir=.
     2761  # Account for people who put trailing slashes in PATH elements.
     2762case $as_dir/ in
     2763  ./ | .// | /cC/* | \
     2764  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2765  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     2766  /usr/ucb/* ) ;;
     2767  *)
     2768    # OSF1 and SCO ODT 3.0 have their own names for install.
     2769    # Don't use installbsd from OSF since it installs stuff as root
     2770    # by default.
     2771    for ac_prog in ginstall scoinst install; do
     2772      for ac_exec_ext in '' $ac_executable_extensions; do
     2773    if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    10502774      if test $ac_prog = install &&
    1051             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     2775        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    10522776        # AIX install.  It has an incompatible calling convention.
    10532777        :
     2778      elif test $ac_prog = install &&
     2779        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2780        # program-specific install script used by HP pwplus--don't use.
     2781        :
    10542782      else
    1055         ac_cv_path_install="$ac_dir/$ac_prog -c"
    1056         break 2
     2783        ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2784        break 3
    10572785      fi
    10582786    fi
    10592787      done
    1060       ;;
    1061     esac
    1062   done
    1063   IFS="$ac_save_IFS"
     2788    done
     2789    ;;
     2790esac
     2791done
     2792
    10642793
    10652794fi
    10662795  if test "${ac_cv_path_install+set}" = set; then
    1067     INSTALL="$ac_cv_path_install"
     2796    INSTALL=$ac_cv_path_install
    10682797  else
    10692798    # As a last resort, use the slow shell script.  We don't cache a
     
    10712800    # break other packages using the cache if that directory is
    10722801    # removed, or if the path is relative.
    1073     INSTALL="$ac_install_sh"
     2802    INSTALL=$ac_install_sh
    10742803  fi
    10752804fi
    1076 echo "$ac_t""$INSTALL" 1>&6
     2805echo "$as_me:$LINENO: result: $INSTALL" >&5
     2806echo "${ECHO_T}$INSTALL" >&6
    10772807
    10782808# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    10802810test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    10812811
    1082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     2812test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    10832813
    10842814test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    10852815
    1086 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1087 echo "configure:1088: checking whether ln -s works" >&5
    1088 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1089   echo $ac_n "(cached) $ac_c" 1>&6
    1090 else
    1091   rm -f conftestdata
    1092 if ln -s X conftestdata 2>/dev/null
    1093 then
    1094   rm -f conftestdata
    1095   ac_cv_prog_LN_S="ln -s"
    1096 else
    1097   ac_cv_prog_LN_S=ln
    1098 fi
    1099 fi
    1100 LN_S="$ac_cv_prog_LN_S"
    1101 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1102   echo "$ac_t""yes" 1>&6
    1103 else
    1104   echo "$ac_t""no" 1>&6
    1105 fi
    1106 
    1107 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1108 echo "configure:1109: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1109 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1110 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1111   echo $ac_n "(cached) $ac_c" 1>&6
    1112 else
    1113   cat > conftestmake <<\EOF
     2816echo "$as_me:$LINENO: checking whether ln -s works" >&5
     2817echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2818LN_S=$as_ln_s
     2819if test "$LN_S" = "ln -s"; then
     2820  echo "$as_me:$LINENO: result: yes" >&5
     2821echo "${ECHO_T}yes" >&6
     2822else
     2823  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     2824echo "${ECHO_T}no, using $LN_S" >&6
     2825fi
     2826
     2827echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     2828echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     2829set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     2830if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2831  echo $ECHO_N "(cached) $ECHO_C" >&6
     2832else
     2833  cat >conftest.make <<\_ACEOF
    11142834all:
    1115     @echo 'ac_maketemp="${MAKE}"'
    1116 EOF
     2835    @echo 'ac_maketemp="$(MAKE)"'
     2836_ACEOF
    11172837# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1118 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     2838eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    11192839if test -n "$ac_maketemp"; then
    11202840  eval ac_cv_prog_make_${ac_make}_set=yes
     
    11222842  eval ac_cv_prog_make_${ac_make}_set=no
    11232843fi
    1124 rm -f conftestmake
     2844rm -f conftest.make
    11252845fi
    11262846if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1127   echo "$ac_t""yes" 1>&6
     2847  echo "$as_me:$LINENO: result: yes" >&5
     2848echo "${ECHO_T}yes" >&6
    11282849  SET_MAKE=
    11292850else
    1130   echo "$ac_t""no" 1>&6
     2851  echo "$as_me:$LINENO: result: no" >&5
     2852echo "${ECHO_T}no" >&6
    11312853  SET_MAKE="MAKE=${MAKE-make}"
    11322854fi
    11332855
    1134 # Extract the first word of "ranlib", so it can be a program name with args.
    1135 set dummy ranlib; ac_word=$2
    1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1137 echo "configure:1138: checking for $ac_word" >&5
    1138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    1139   echo $ac_n "(cached) $ac_c" 1>&6
     2856if test -n "$ac_tool_prefix"; then
     2857  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2858set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2859echo "$as_me:$LINENO: checking for $ac_word" >&5
     2860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2861if test "${ac_cv_prog_RANLIB+set}" = set; then
     2862  echo $ECHO_N "(cached) $ECHO_C" >&6
    11402863else
    11412864  if test -n "$RANLIB"; then
    11422865  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    11432866else
    1144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1145   ac_dummy="$PATH"
    1146   for ac_dir in $ac_dummy; do
    1147     test -z "$ac_dir" && ac_dir=.
    1148     if test -f $ac_dir/$ac_word; then
    1149       ac_cv_prog_RANLIB="ranlib"
    1150       break
    1151     fi
    1152   done
    1153   IFS="$ac_save_ifs"
    1154   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    1155 fi
    1156 fi
    1157 RANLIB="$ac_cv_prog_RANLIB"
     2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2868for as_dir in $PATH
     2869do
     2870  IFS=$as_save_IFS
     2871  test -z "$as_dir" && as_dir=.
     2872  for ac_exec_ext in '' $ac_executable_extensions; do
     2873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2874    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2876    break 2
     2877  fi
     2878done
     2879done
     2880
     2881fi
     2882fi
     2883RANLIB=$ac_cv_prog_RANLIB
    11582884if test -n "$RANLIB"; then
    1159   echo "$ac_t""$RANLIB" 1>&6
    1160 else
    1161   echo "$ac_t""no" 1>&6
    1162 fi
    1163 
    1164 
    1165 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1166 echo "configure:1167: checking how to run the C preprocessor" >&5
     2885  echo "$as_me:$LINENO: result: $RANLIB" >&5
     2886echo "${ECHO_T}$RANLIB" >&6
     2887else
     2888  echo "$as_me:$LINENO: result: no" >&5
     2889echo "${ECHO_T}no" >&6
     2890fi
     2891
     2892fi
     2893if test -z "$ac_cv_prog_RANLIB"; then
     2894  ac_ct_RANLIB=$RANLIB
     2895  # Extract the first word of "ranlib", so it can be a program name with args.
     2896set dummy ranlib; ac_word=$2
     2897echo "$as_me:$LINENO: checking for $ac_word" >&5
     2898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2899if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2900  echo $ECHO_N "(cached) $ECHO_C" >&6
     2901else
     2902  if test -n "$ac_ct_RANLIB"; then
     2903  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2904else
     2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2906for as_dir in $PATH
     2907do
     2908  IFS=$as_save_IFS
     2909  test -z "$as_dir" && as_dir=.
     2910  for ac_exec_ext in '' $ac_executable_extensions; do
     2911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2912    ac_cv_prog_ac_ct_RANLIB="ranlib"
     2913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2914    break 2
     2915  fi
     2916done
     2917done
     2918
     2919  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2920fi
     2921fi
     2922ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2923if test -n "$ac_ct_RANLIB"; then
     2924  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     2925echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2926else
     2927  echo "$as_me:$LINENO: result: no" >&5
     2928echo "${ECHO_T}no" >&6
     2929fi
     2930
     2931  RANLIB=$ac_ct_RANLIB
     2932else
     2933  RANLIB="$ac_cv_prog_RANLIB"
     2934fi
     2935
     2936
     2937
     2938ac_ext=c
     2939ac_cpp='$CPP $CPPFLAGS'
     2940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2942ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2943echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     2944echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    11672945# On Suns, sometimes $CPP names a directory.
    11682946if test -n "$CPP" && test -d "$CPP"; then
     
    11702948fi
    11712949if test -z "$CPP"; then
    1172 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1173   echo $ac_n "(cached) $ac_c" 1>&6
    1174 else
    1175     # This must be in double quotes, not single quotes, because CPP may get
    1176   # substituted into the Makefile and "${CC-cc}" will confuse make.
    1177   CPP="${CC-cc} -E"
     2950  if test "${ac_cv_prog_CPP+set}" = set; then
     2951  echo $ECHO_N "(cached) $ECHO_C" >&6
     2952else
     2953      # Double quotes because CPP needs to be expanded
     2954    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2955    do
     2956      ac_preproc_ok=false
     2957for ac_c_preproc_warn_flag in '' yes
     2958do
     2959  # Use a header file that comes with gcc, so configuring glibc
     2960  # with a fresh cross-compiler works.
     2961  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2962  # <limits.h> exists even on freestanding compilers.
    11782963  # On the NeXT, cc -E runs the code through the compiler's parser,
    1179   # not just through cpp.
    1180   cat > conftest.$ac_ext <<EOF
    1181 #line 1182 "configure"
    1182 #include "confdefs.h"
    1183 #include <assert.h>
    1184 Syntax Error
    1185 EOF
    1186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1187 { (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1189 if test -z "$ac_err"; then
     2964  # not just through cpp. "Syntax error" is here to catch this case.
     2965  cat >conftest.$ac_ext <<_ACEOF
     2966/* confdefs.h.  */
     2967_ACEOF
     2968cat confdefs.h >>conftest.$ac_ext
     2969cat >>conftest.$ac_ext <<_ACEOF
     2970/* end confdefs.h.  */
     2971#ifdef __STDC__
     2972# include <limits.h>
     2973#else
     2974# include <assert.h>
     2975#endif
     2976             Syntax error
     2977_ACEOF
     2978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2979  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2980  ac_status=$?
     2981  grep -v '^ *+' conftest.er1 >conftest.err
     2982  rm -f conftest.er1
     2983  cat conftest.err >&5
     2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2985  (exit $ac_status); } >/dev/null; then
     2986  if test -s conftest.err; then
     2987    ac_cpp_err=$ac_c_preproc_warn_flag
     2988    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2989  else
     2990    ac_cpp_err=
     2991  fi
     2992else
     2993  ac_cpp_err=yes
     2994fi
     2995if test -z "$ac_cpp_err"; then
    11902996  :
    11912997else
    1192   echo "$ac_err" >&5
    1193   echo "configure: failed program was:" >&5
    1194   cat conftest.$ac_ext >&5
    1195   rm -rf conftest*
    1196   CPP="${CC-cc} -E -traditional-cpp"
    1197   cat > conftest.$ac_ext <<EOF
    1198 #line 1199 "configure"
    1199 #include "confdefs.h"
    1200 #include <assert.h>
    1201 Syntax Error
    1202 EOF
    1203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1204 { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1206 if test -z "$ac_err"; then
     2998  echo "$as_me: failed program was:" >&5
     2999sed 's/^/| /' conftest.$ac_ext >&5
     3000
     3001  # Broken: fails on valid input.
     3002continue
     3003fi
     3004rm -f conftest.err conftest.$ac_ext
     3005
     3006  # OK, works on sane cases.  Now check whether non-existent headers
     3007  # can be detected and how.
     3008  cat >conftest.$ac_ext <<_ACEOF
     3009/* confdefs.h.  */
     3010_ACEOF
     3011cat confdefs.h >>conftest.$ac_ext
     3012cat >>conftest.$ac_ext <<_ACEOF
     3013/* end confdefs.h.  */
     3014#include <ac_nonexistent.h>
     3015_ACEOF
     3016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3017  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3018  ac_status=$?
     3019  grep -v '^ *+' conftest.er1 >conftest.err
     3020  rm -f conftest.er1
     3021  cat conftest.err >&5
     3022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3023  (exit $ac_status); } >/dev/null; then
     3024  if test -s conftest.err; then
     3025    ac_cpp_err=$ac_c_preproc_warn_flag
     3026    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3027  else
     3028    ac_cpp_err=
     3029  fi
     3030else
     3031  ac_cpp_err=yes
     3032fi
     3033if test -z "$ac_cpp_err"; then
     3034  # Broken: success on invalid input.
     3035continue
     3036else
     3037  echo "$as_me: failed program was:" >&5
     3038sed 's/^/| /' conftest.$ac_ext >&5
     3039
     3040  # Passes both tests.
     3041ac_preproc_ok=:
     3042break
     3043fi
     3044rm -f conftest.err conftest.$ac_ext
     3045
     3046done
     3047# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3048rm -f conftest.err conftest.$ac_ext
     3049if $ac_preproc_ok; then
     3050  break
     3051fi
     3052
     3053    done
     3054    ac_cv_prog_CPP=$CPP
     3055
     3056fi
     3057  CPP=$ac_cv_prog_CPP
     3058else
     3059  ac_cv_prog_CPP=$CPP
     3060fi
     3061echo "$as_me:$LINENO: result: $CPP" >&5
     3062echo "${ECHO_T}$CPP" >&6
     3063ac_preproc_ok=false
     3064for ac_c_preproc_warn_flag in '' yes
     3065do
     3066  # Use a header file that comes with gcc, so configuring glibc
     3067  # with a fresh cross-compiler works.
     3068  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3069  # <limits.h> exists even on freestanding compilers.
     3070  # On the NeXT, cc -E runs the code through the compiler's parser,
     3071  # not just through cpp. "Syntax error" is here to catch this case.
     3072  cat >conftest.$ac_ext <<_ACEOF
     3073/* confdefs.h.  */
     3074_ACEOF
     3075cat confdefs.h >>conftest.$ac_ext
     3076cat >>conftest.$ac_ext <<_ACEOF
     3077/* end confdefs.h.  */
     3078#ifdef __STDC__
     3079# include <limits.h>
     3080#else
     3081# include <assert.h>
     3082#endif
     3083             Syntax error
     3084_ACEOF
     3085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3087  ac_status=$?
     3088  grep -v '^ *+' conftest.er1 >conftest.err
     3089  rm -f conftest.er1
     3090  cat conftest.err >&5
     3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3092  (exit $ac_status); } >/dev/null; then
     3093  if test -s conftest.err; then
     3094    ac_cpp_err=$ac_c_preproc_warn_flag
     3095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3096  else
     3097    ac_cpp_err=
     3098  fi
     3099else
     3100  ac_cpp_err=yes
     3101fi
     3102if test -z "$ac_cpp_err"; then
    12073103  :
    12083104else
    1209   echo "$ac_err" >&5
    1210   echo "configure: failed program was:" >&5
    1211   cat conftest.$ac_ext >&5
    1212   rm -rf conftest*
    1213   CPP="${CC-cc} -nologo -E"
    1214   cat > conftest.$ac_ext <<EOF
    1215 #line 1216 "configure"
    1216 #include "confdefs.h"
    1217 #include <assert.h>
    1218 Syntax Error
    1219 EOF
    1220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1221 { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1223 if test -z "$ac_err"; then
     3105  echo "$as_me: failed program was:" >&5
     3106sed 's/^/| /' conftest.$ac_ext >&5
     3107
     3108  # Broken: fails on valid input.
     3109continue
     3110fi
     3111rm -f conftest.err conftest.$ac_ext
     3112
     3113  # OK, works on sane cases.  Now check whether non-existent headers
     3114  # can be detected and how.
     3115  cat >conftest.$ac_ext <<_ACEOF
     3116/* confdefs.h.  */
     3117_ACEOF
     3118cat confdefs.h >>conftest.$ac_ext
     3119cat >>conftest.$ac_ext <<_ACEOF
     3120/* end confdefs.h.  */
     3121#include <ac_nonexistent.h>
     3122_ACEOF
     3123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3124  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3125  ac_status=$?
     3126  grep -v '^ *+' conftest.er1 >conftest.err
     3127  rm -f conftest.er1
     3128  cat conftest.err >&5
     3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3130  (exit $ac_status); } >/dev/null; then
     3131  if test -s conftest.err; then
     3132    ac_cpp_err=$ac_c_preproc_warn_flag
     3133    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3134  else
     3135    ac_cpp_err=
     3136  fi
     3137else
     3138  ac_cpp_err=yes
     3139fi
     3140if test -z "$ac_cpp_err"; then
     3141  # Broken: success on invalid input.
     3142continue
     3143else
     3144  echo "$as_me: failed program was:" >&5
     3145sed 's/^/| /' conftest.$ac_ext >&5
     3146
     3147  # Passes both tests.
     3148ac_preproc_ok=:
     3149break
     3150fi
     3151rm -f conftest.err conftest.$ac_ext
     3152
     3153done
     3154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3155rm -f conftest.err conftest.$ac_ext
     3156if $ac_preproc_ok; then
    12243157  :
    12253158else
    1226   echo "$ac_err" >&5
    1227   echo "configure: failed program was:" >&5
    1228   cat conftest.$ac_ext >&5
    1229   rm -rf conftest*
    1230   CPP=/lib/cpp
    1231 fi
    1232 rm -f conftest*
    1233 fi
    1234 rm -f conftest*
    1235 fi
    1236 rm -f conftest*
    1237   ac_cv_prog_CPP="$CPP"
    1238 fi
    1239   CPP="$ac_cv_prog_CPP"
    1240 else
    1241   ac_cv_prog_CPP="$CPP"
    1242 fi
    1243 echo "$ac_t""$CPP" 1>&6
    1244 
    1245 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1246 echo "configure:1247: checking for AIX" >&5
    1247 cat > conftest.$ac_ext <<EOF
    1248 #line 1249 "configure"
    1249 #include "confdefs.h"
     3159  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3160See \`config.log' for more details." >&5
     3161echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3162See \`config.log' for more details." >&2;}
     3163   { (exit 1); exit 1; }; }
     3164fi
     3165
     3166ac_ext=c
     3167ac_cpp='$CPP $CPPFLAGS'
     3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3171
     3172
     3173echo "$as_me:$LINENO: checking for egrep" >&5
     3174echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3175if test "${ac_cv_prog_egrep+set}" = set; then
     3176  echo $ECHO_N "(cached) $ECHO_C" >&6
     3177else
     3178  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3179    then ac_cv_prog_egrep='grep -E'
     3180    else ac_cv_prog_egrep='egrep'
     3181    fi
     3182fi
     3183echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3184echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3185 EGREP=$ac_cv_prog_egrep
     3186
     3187
     3188
     3189echo "$as_me:$LINENO: checking for AIX" >&5
     3190echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     3191cat >conftest.$ac_ext <<_ACEOF
     3192/* confdefs.h.  */
     3193_ACEOF
     3194cat confdefs.h >>conftest.$ac_ext
     3195cat >>conftest.$ac_ext <<_ACEOF
     3196/* end confdefs.h.  */
    12503197#ifdef _AIX
    12513198  yes
    12523199#endif
    12533200
    1254 EOF
     3201_ACEOF
    12553202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1256   egrep "yes" >/dev/null 2>&1; then
    1257   rm -rf conftest*
    1258   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     3203  $EGREP "yes" >/dev/null 2>&1; then
     3204  echo "$as_me:$LINENO: result: yes" >&5
     3205echo "${ECHO_T}yes" >&6
     3206cat >>confdefs.h <<\_ACEOF
    12593207#define _ALL_SOURCE 1
    1260 EOF
    1261 
    1262 else
    1263   rm -rf conftest*
    1264   echo "$ac_t""no" 1>&6
     3208_ACEOF
     3209
     3210else
     3211  echo "$as_me:$LINENO: result: no" >&5
     3212echo "${ECHO_T}no" >&6
    12653213fi
    12663214rm -f conftest*
    12673215
    12683216
    1269 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1270 echo "configure:1271: checking for POSIXized ISC" >&5
    1271 if test -d /etc/conf/kconfig.d &&
    1272   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    1273 then
    1274   echo "$ac_t""yes" 1>&6
    1275   ISC=yes # If later tests want to check for ISC.
    1276   cat >> confdefs.h <<\EOF
     3217echo "$as_me:$LINENO: checking for library containing strerror" >&5
     3218echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
     3219if test "${ac_cv_search_strerror+set}" = set; then
     3220  echo $ECHO_N "(cached) $ECHO_C" >&6
     3221else
     3222  ac_func_search_save_LIBS=$LIBS
     3223ac_cv_search_strerror=no
     3224cat >conftest.$ac_ext <<_ACEOF
     3225/* confdefs.h.  */
     3226_ACEOF
     3227cat confdefs.h >>conftest.$ac_ext
     3228cat >>conftest.$ac_ext <<_ACEOF
     3229/* end confdefs.h.  */
     3230
     3231/* Override any gcc2 internal prototype to avoid an error.  */
     3232#ifdef __cplusplus
     3233extern "C"
     3234#endif
     3235/* We use char because int might match the return type of a gcc2
     3236   builtin and then its argument prototype would still apply.  */
     3237char strerror ();
     3238int
     3239main ()
     3240{
     3241strerror ();
     3242  ;
     3243  return 0;
     3244}
     3245_ACEOF
     3246rm -f conftest.$ac_objext conftest$ac_exeext
     3247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3248  (eval $ac_link) 2>conftest.er1
     3249  ac_status=$?
     3250  grep -v '^ *+' conftest.er1 >conftest.err
     3251  rm -f conftest.er1
     3252  cat conftest.err >&5
     3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3254  (exit $ac_status); } &&
     3255     { ac_try='test -z "$ac_c_werror_flag"
     3256             || test ! -s conftest.err'
     3257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3258  (eval $ac_try) 2>&5
     3259  ac_status=$?
     3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3261  (exit $ac_status); }; } &&
     3262     { ac_try='test -s conftest$ac_exeext'
     3263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3264  (eval $ac_try) 2>&5
     3265  ac_status=$?
     3266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3267  (exit $ac_status); }; }; then
     3268  ac_cv_search_strerror="none required"
     3269else
     3270  echo "$as_me: failed program was:" >&5
     3271sed 's/^/| /' conftest.$ac_ext >&5
     3272
     3273fi
     3274rm -f conftest.err conftest.$ac_objext \
     3275      conftest$ac_exeext conftest.$ac_ext
     3276if test "$ac_cv_search_strerror" = no; then
     3277  for ac_lib in cposix; do
     3278    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     3279    cat >conftest.$ac_ext <<_ACEOF
     3280/* confdefs.h.  */
     3281_ACEOF
     3282cat confdefs.h >>conftest.$ac_ext
     3283cat >>conftest.$ac_ext <<_ACEOF
     3284/* end confdefs.h.  */
     3285
     3286/* Override any gcc2 internal prototype to avoid an error.  */
     3287#ifdef __cplusplus
     3288extern "C"
     3289#endif
     3290/* We use char because int might match the return type of a gcc2
     3291   builtin and then its argument prototype would still apply.  */
     3292char strerror ();
     3293int
     3294main ()
     3295{
     3296strerror ();
     3297  ;
     3298  return 0;
     3299}
     3300_ACEOF
     3301rm -f conftest.$ac_objext conftest$ac_exeext
     3302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3303  (eval $ac_link) 2>conftest.er1
     3304  ac_status=$?
     3305  grep -v '^ *+' conftest.er1 >conftest.err
     3306  rm -f conftest.er1
     3307  cat conftest.err >&5
     3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3309  (exit $ac_status); } &&
     3310     { ac_try='test -z "$ac_c_werror_flag"
     3311             || test ! -s conftest.err'
     3312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3313  (eval $ac_try) 2>&5
     3314  ac_status=$?
     3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3316  (exit $ac_status); }; } &&
     3317     { ac_try='test -s conftest$ac_exeext'
     3318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3319  (eval $ac_try) 2>&5
     3320  ac_status=$?
     3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3322  (exit $ac_status); }; }; then
     3323  ac_cv_search_strerror="-l$ac_lib"
     3324break
     3325else
     3326  echo "$as_me: failed program was:" >&5
     3327sed 's/^/| /' conftest.$ac_ext >&5
     3328
     3329fi
     3330rm -f conftest.err conftest.$ac_objext \
     3331      conftest$ac_exeext conftest.$ac_ext
     3332  done
     3333fi
     3334LIBS=$ac_func_search_save_LIBS
     3335fi
     3336echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
     3337echo "${ECHO_T}$ac_cv_search_strerror" >&6
     3338if test "$ac_cv_search_strerror" != no; then
     3339  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
     3340
     3341fi
     3342
     3343echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3344echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3345if test "${ac_cv_header_stdc+set}" = set; then
     3346  echo $ECHO_N "(cached) $ECHO_C" >&6
     3347else
     3348  cat >conftest.$ac_ext <<_ACEOF
     3349/* confdefs.h.  */
     3350_ACEOF
     3351cat confdefs.h >>conftest.$ac_ext
     3352cat >>conftest.$ac_ext <<_ACEOF
     3353/* end confdefs.h.  */
     3354#include <stdlib.h>
     3355#include <stdarg.h>
     3356#include <string.h>
     3357#include <float.h>
     3358
     3359int
     3360main ()
     3361{
     3362
     3363  ;
     3364  return 0;
     3365}
     3366_ACEOF
     3367rm -f conftest.$ac_objext
     3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3369  (eval $ac_compile) 2>conftest.er1
     3370  ac_status=$?
     3371  grep -v '^ *+' conftest.er1 >conftest.err
     3372  rm -f conftest.er1
     3373  cat conftest.err >&5
     3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3375  (exit $ac_status); } &&
     3376     { ac_try='test -z "$ac_c_werror_flag"
     3377             || test ! -s conftest.err'
     3378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3379  (eval $ac_try) 2>&5
     3380  ac_status=$?
     3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3382  (exit $ac_status); }; } &&
     3383     { ac_try='test -s conftest.$ac_objext'
     3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3385  (eval $ac_try) 2>&5
     3386  ac_status=$?
     3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3388  (exit $ac_status); }; }; then
     3389  ac_cv_header_stdc=yes
     3390else
     3391  echo "$as_me: failed program was:" >&5
     3392sed 's/^/| /' conftest.$ac_ext >&5
     3393
     3394ac_cv_header_stdc=no
     3395fi
     3396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3397
     3398if test $ac_cv_header_stdc = yes; then
     3399  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3400  cat >conftest.$ac_ext <<_ACEOF
     3401/* confdefs.h.  */
     3402_ACEOF
     3403cat confdefs.h >>conftest.$ac_ext
     3404cat >>conftest.$ac_ext <<_ACEOF
     3405/* end confdefs.h.  */
     3406#include <string.h>
     3407
     3408_ACEOF
     3409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3410  $EGREP "memchr" >/dev/null 2>&1; then
     3411  :
     3412else
     3413  ac_cv_header_stdc=no
     3414fi
     3415rm -f conftest*
     3416
     3417fi
     3418
     3419if test $ac_cv_header_stdc = yes; then
     3420  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3421  cat >conftest.$ac_ext <<_ACEOF
     3422/* confdefs.h.  */
     3423_ACEOF
     3424cat confdefs.h >>conftest.$ac_ext
     3425cat >>conftest.$ac_ext <<_ACEOF
     3426/* end confdefs.h.  */
     3427#include <stdlib.h>
     3428
     3429_ACEOF
     3430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3431  $EGREP "free" >/dev/null 2>&1; then
     3432  :
     3433else
     3434  ac_cv_header_stdc=no
     3435fi
     3436rm -f conftest*
     3437
     3438fi
     3439
     3440if test $ac_cv_header_stdc = yes; then
     3441  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3442  if test "$cross_compiling" = yes; then
     3443  :
     3444else
     3445  cat >conftest.$ac_ext <<_ACEOF
     3446/* confdefs.h.  */
     3447_ACEOF
     3448cat confdefs.h >>conftest.$ac_ext
     3449cat >>conftest.$ac_ext <<_ACEOF
     3450/* end confdefs.h.  */
     3451#include <ctype.h>
     3452#if ((' ' & 0x0FF) == 0x020)
     3453# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3454# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3455#else
     3456# define ISLOWER(c) \
     3457           (('a' <= (c) && (c) <= 'i') \
     3458             || ('j' <= (c) && (c) <= 'r') \
     3459             || ('s' <= (c) && (c) <= 'z'))
     3460# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3461#endif
     3462
     3463#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3464int
     3465main ()
     3466{
     3467  int i;
     3468  for (i = 0; i < 256; i++)
     3469    if (XOR (islower (i), ISLOWER (i))
     3470    || toupper (i) != TOUPPER (i))
     3471      exit(2);
     3472  exit (0);
     3473}
     3474_ACEOF
     3475rm -f conftest$ac_exeext
     3476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3477  (eval $ac_link) 2>&5
     3478  ac_status=$?
     3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3480  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3482  (eval $ac_try) 2>&5
     3483  ac_status=$?
     3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3485  (exit $ac_status); }; }; then
     3486  :
     3487else
     3488  echo "$as_me: program exited with status $ac_status" >&5
     3489echo "$as_me: failed program was:" >&5
     3490sed 's/^/| /' conftest.$ac_ext >&5
     3491
     3492( exit $ac_status )
     3493ac_cv_header_stdc=no
     3494fi
     3495rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3496fi
     3497fi
     3498fi
     3499echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3500echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3501if test $ac_cv_header_stdc = yes; then
     3502
     3503cat >>confdefs.h <<\_ACEOF
     3504#define STDC_HEADERS 1
     3505_ACEOF
     3506
     3507fi
     3508
     3509# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3510
     3511
     3512
     3513
     3514
     3515
     3516
     3517
     3518
     3519for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3520          inttypes.h stdint.h unistd.h
     3521do
     3522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3523echo "$as_me:$LINENO: checking for $ac_header" >&5
     3524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3525if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3526  echo $ECHO_N "(cached) $ECHO_C" >&6
     3527else
     3528  cat >conftest.$ac_ext <<_ACEOF
     3529/* confdefs.h.  */
     3530_ACEOF
     3531cat confdefs.h >>conftest.$ac_ext
     3532cat >>conftest.$ac_ext <<_ACEOF
     3533/* end confdefs.h.  */
     3534$ac_includes_default
     3535
     3536#include <$ac_header>
     3537_ACEOF
     3538rm -f conftest.$ac_objext
     3539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3540  (eval $ac_compile) 2>conftest.er1
     3541  ac_status=$?
     3542  grep -v '^ *+' conftest.er1 >conftest.err
     3543  rm -f conftest.er1
     3544  cat conftest.err >&5
     3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3546  (exit $ac_status); } &&
     3547     { ac_try='test -z "$ac_c_werror_flag"
     3548             || test ! -s conftest.err'
     3549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3550  (eval $ac_try) 2>&5
     3551  ac_status=$?
     3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3553  (exit $ac_status); }; } &&
     3554     { ac_try='test -s conftest.$ac_objext'
     3555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3556  (eval $ac_try) 2>&5
     3557  ac_status=$?
     3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3559  (exit $ac_status); }; }; then
     3560  eval "$as_ac_Header=yes"
     3561else
     3562  echo "$as_me: failed program was:" >&5
     3563sed 's/^/| /' conftest.$ac_ext >&5
     3564
     3565eval "$as_ac_Header=no"
     3566fi
     3567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3568fi
     3569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3571if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3572  cat >>confdefs.h <<_ACEOF
     3573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3574_ACEOF
     3575
     3576fi
     3577
     3578done
     3579
     3580
     3581if test "${ac_cv_header_minix_config_h+set}" = set; then
     3582  echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3583echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3584if test "${ac_cv_header_minix_config_h+set}" = set; then
     3585  echo $ECHO_N "(cached) $ECHO_C" >&6
     3586fi
     3587echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3588echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3589else
     3590  # Is the header compilable?
     3591echo "$as_me:$LINENO: checking minix/config.h usability" >&5
     3592echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
     3593cat >conftest.$ac_ext <<_ACEOF
     3594/* confdefs.h.  */
     3595_ACEOF
     3596cat confdefs.h >>conftest.$ac_ext
     3597cat >>conftest.$ac_ext <<_ACEOF
     3598/* end confdefs.h.  */
     3599$ac_includes_default
     3600#include <minix/config.h>
     3601_ACEOF
     3602rm -f conftest.$ac_objext
     3603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3604  (eval $ac_compile) 2>conftest.er1
     3605  ac_status=$?
     3606  grep -v '^ *+' conftest.er1 >conftest.err
     3607  rm -f conftest.er1
     3608  cat conftest.err >&5
     3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3610  (exit $ac_status); } &&
     3611     { ac_try='test -z "$ac_c_werror_flag"
     3612             || test ! -s conftest.err'
     3613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3614  (eval $ac_try) 2>&5
     3615  ac_status=$?
     3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3617  (exit $ac_status); }; } &&
     3618     { ac_try='test -s conftest.$ac_objext'
     3619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3620  (eval $ac_try) 2>&5
     3621  ac_status=$?
     3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3623  (exit $ac_status); }; }; then
     3624  ac_header_compiler=yes
     3625else
     3626  echo "$as_me: failed program was:" >&5
     3627sed 's/^/| /' conftest.$ac_ext >&5
     3628
     3629ac_header_compiler=no
     3630fi
     3631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3633echo "${ECHO_T}$ac_header_compiler" >&6
     3634
     3635# Is the header present?
     3636echo "$as_me:$LINENO: checking minix/config.h presence" >&5
     3637echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
     3638cat >conftest.$ac_ext <<_ACEOF
     3639/* confdefs.h.  */
     3640_ACEOF
     3641cat confdefs.h >>conftest.$ac_ext
     3642cat >>conftest.$ac_ext <<_ACEOF
     3643/* end confdefs.h.  */
     3644#include <minix/config.h>
     3645_ACEOF
     3646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3647  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3648  ac_status=$?
     3649  grep -v '^ *+' conftest.er1 >conftest.err
     3650  rm -f conftest.er1
     3651  cat conftest.err >&5
     3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3653  (exit $ac_status); } >/dev/null; then
     3654  if test -s conftest.err; then
     3655    ac_cpp_err=$ac_c_preproc_warn_flag
     3656    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3657  else
     3658    ac_cpp_err=
     3659  fi
     3660else
     3661  ac_cpp_err=yes
     3662fi
     3663if test -z "$ac_cpp_err"; then
     3664  ac_header_preproc=yes
     3665else
     3666  echo "$as_me: failed program was:" >&5
     3667sed 's/^/| /' conftest.$ac_ext >&5
     3668
     3669  ac_header_preproc=no
     3670fi
     3671rm -f conftest.err conftest.$ac_ext
     3672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     3673echo "${ECHO_T}$ac_header_preproc" >&6
     3674
     3675# So?  What about this header?
     3676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     3677  yes:no: )
     3678    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
     3679echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     3680    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
     3681echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
     3682    ac_header_preproc=yes
     3683    ;;
     3684  no:yes:* )
     3685    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
     3686echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
     3687    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
     3688echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
     3689    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
     3690echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
     3691    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
     3692echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     3693    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
     3694echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
     3695    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
     3696echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
     3697    (
     3698      cat <<\_ASBOX
     3699## ------------------------------------------ ##
     3700## Report this to the AC_PACKAGE_NAME lists.  ##
     3701## ------------------------------------------ ##
     3702_ASBOX
     3703    ) |
     3704      sed "s/^/$as_me: WARNING:     /" >&2
     3705    ;;
     3706esac
     3707echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3708echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3709if test "${ac_cv_header_minix_config_h+set}" = set; then
     3710  echo $ECHO_N "(cached) $ECHO_C" >&6
     3711else
     3712  ac_cv_header_minix_config_h=$ac_header_preproc
     3713fi
     3714echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3715echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3716
     3717fi
     3718if test $ac_cv_header_minix_config_h = yes; then
     3719  MINIX=yes
     3720else
     3721  MINIX=
     3722fi
     3723
     3724
     3725if test "$MINIX" = yes; then
     3726
     3727cat >>confdefs.h <<\_ACEOF
    12773728#define _POSIX_SOURCE 1
    1278 EOF
    1279 
    1280   if test "$GCC" = yes; then
    1281     CC="$CC -posix"
    1282   else
    1283     CC="$CC -Xp"
    1284   fi
    1285 else
    1286   echo "$ac_t""no" 1>&6
    1287   ISC=
    1288 fi
    1289 
    1290 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    1291 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    1292 echo "configure:1293: checking for minix/config.h" >&5
    1293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1294   echo $ac_n "(cached) $ac_c" 1>&6
    1295 else
    1296   cat > conftest.$ac_ext <<EOF
    1297 #line 1298 "configure"
    1298 #include "confdefs.h"
    1299 #include <minix/config.h>
    1300 EOF
    1301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1302 { (eval echo configure:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1304 if test -z "$ac_err"; then
    1305   rm -rf conftest*
    1306   eval "ac_cv_header_$ac_safe=yes"
    1307 else
    1308   echo "$ac_err" >&5
    1309   echo "configure: failed program was:" >&5
    1310   cat conftest.$ac_ext >&5
    1311   rm -rf conftest*
    1312   eval "ac_cv_header_$ac_safe=no"
    1313 fi
    1314 rm -f conftest*
    1315 fi
    1316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1317   echo "$ac_t""yes" 1>&6
    1318   MINIX=yes
    1319 else
    1320   echo "$ac_t""no" 1>&6
    1321 MINIX=
    1322 fi
    1323 
    1324 if test "$MINIX" = yes; then
    1325   cat >> confdefs.h <<\EOF
    1326 #define _POSIX_SOURCE 1
    1327 EOF
    1328 
    1329   cat >> confdefs.h <<\EOF
     3729_ACEOF
     3730
     3731
     3732cat >>confdefs.h <<\_ACEOF
    13303733#define _POSIX_1_SOURCE 2
    1331 EOF
    1332 
    1333   cat >> confdefs.h <<\EOF
     3734_ACEOF
     3735
     3736
     3737cat >>confdefs.h <<\_ACEOF
    13343738#define _MINIX 1
    1335 EOF
    1336 
    1337 fi
    1338 
    1339 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    1340 echo "configure:1341: checking for ${CC-cc} option to accept ANSI C" >&5
    1341 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    1342   echo $ac_n "(cached) $ac_c" 1>&6
     3739_ACEOF
     3740
     3741fi
     3742
     3743echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
     3744echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     3745if test "${ac_cv_prog_cc_stdc+set}" = set; then
     3746  echo $ECHO_N "(cached) $ECHO_C" >&6
    13433747else
    13443748  ac_cv_prog_cc_stdc=no
     
    13533757do
    13543758  CFLAGS="$ac_save_CFLAGS $ac_arg"
    1355   cat > conftest.$ac_ext <<EOF
    1356 #line 1357 "configure"
    1357 #include "confdefs.h"
     3759  cat >conftest.$ac_ext <<_ACEOF
     3760/* confdefs.h.  */
     3761_ACEOF
     3762cat confdefs.h >>conftest.$ac_ext
     3763cat >>conftest.$ac_ext <<_ACEOF
     3764/* end confdefs.h.  */
    13583765#if !defined(__STDC__) || __STDC__ != 1
    13593766choke me
    1360 #endif 
    1361 
    1362 int main() {
     3767#endif
     3768
     3769int
     3770main ()
     3771{
    13633772int test (int i, double x);
    13643773struct s1 {int (*f) (int a);};
    13653774struct s2 {int (*f) (double a);};
    1366 ; return 0; }
    1367 EOF
    1368 if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1369   rm -rf conftest*
     3775  ;
     3776  return 0;
     3777}
     3778_ACEOF
     3779rm -f conftest.$ac_objext
     3780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3781  (eval $ac_compile) 2>conftest.er1
     3782  ac_status=$?
     3783  grep -v '^ *+' conftest.er1 >conftest.err
     3784  rm -f conftest.er1
     3785  cat conftest.err >&5
     3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3787  (exit $ac_status); } &&
     3788     { ac_try='test -z "$ac_c_werror_flag"
     3789             || test ! -s conftest.err'
     3790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3791  (eval $ac_try) 2>&5
     3792  ac_status=$?
     3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3794  (exit $ac_status); }; } &&
     3795     { ac_try='test -s conftest.$ac_objext'
     3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3797  (eval $ac_try) 2>&5
     3798  ac_status=$?
     3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3800  (exit $ac_status); }; }; then
    13703801  ac_cv_prog_cc_stdc="$ac_arg"; break
    13713802else
    1372   echo "configure: failed program was:" >&5
    1373   cat conftest.$ac_ext >&5
    1374 fi
    1375 rm -f conftest*
     3803  echo "$as_me: failed program was:" >&5
     3804sed 's/^/| /' conftest.$ac_ext >&5
     3805
     3806fi
     3807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    13763808done
    13773809CFLAGS="$ac_save_CFLAGS"
     
    13793811fi
    13803812
    1381 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
     3813echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     3814echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    13823815case "x$ac_cv_prog_cc_stdc" in
    13833816  x|xno) ;;
     
    13863819
    13873820
    1388 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
    1389 echo "configure:1390: checking for function prototypes" >&5
     3821echo "$as_me:$LINENO: checking for function prototypes" >&5
     3822echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    13903823if test "$ac_cv_prog_cc_stdc" != no; then
    1391   echo "$ac_t""yes" 1>&6
    1392   cat >> confdefs.h <<\EOF
     3824  echo "$as_me:$LINENO: result: yes" >&5
     3825echo "${ECHO_T}yes" >&6
     3826  cat >>confdefs.h <<\_ACEOF
    13933827#define PROTOTYPES 1
    1394 EOF
     3828_ACEOF
    13953829
    13963830  U= ANSI2KNR=
    13973831else
    1398   echo "$ac_t""no" 1>&6
     3832  echo "$as_me:$LINENO: result: no" >&5
     3833echo "${ECHO_T}no" >&6
    13993834  U=_ ANSI2KNR=ansi2knr
    14003835fi
    14013836
    1402 echo $ac_n "checking for working const""... $ac_c" 1>&6
    1403 echo "configure:1404: checking for working const" >&5
    1404 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    1405   echo $ac_n "(cached) $ac_c" 1>&6
    1406 else
    1407   cat > conftest.$ac_ext <<EOF
    1408 #line 1409 "configure"
    1409 #include "confdefs.h"
    1410 
    1411 int main() {
    1412 
    1413 /* Ultrix mips cc rejects this.  */
    1414 typedef int charset[2]; const charset x;
    1415 /* SunOS 4.1.1 cc rejects this.  */
    1416 char const *const *ccp;
    1417 char **p;
    1418 /* NEC SVR4.0.2 mips cc rejects this.  */
    1419 struct point {int x, y;};
    1420 static struct point const zero = {0,0};
    1421 /* AIX XL C 1.02.0.0 rejects this.
    1422    It does not let you subtract one const X* pointer from another in an arm
    1423    of an if-expression whose if-part is not a constant expression */
    1424 const char *g = "string";
    1425 ccp = &g + (g ? g-g : 0);
    1426 /* HPUX 7.0 cc rejects these. */
    1427 ++ccp;
    1428 p = (char**) ccp;
    1429 ccp = (char const *const *) p;
    1430 { /* SCO 3.2v4 cc rejects this.  */
    1431   char *t;
    1432   char const *s = 0 ? (char *) 0 : (char const *) 0;
    1433 
    1434   *t++ = 0;
     3837echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
     3838echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     3839if test "${ac_cv_c_const+set}" = set; then
     3840  echo $ECHO_N "(cached) $ECHO_C" >&6
     3841else
     3842  cat >conftest.$ac_ext <<_ACEOF
     3843/* confdefs.h.  */
     3844_ACEOF
     3845cat confdefs.h >>conftest.$ac_ext
     3846cat >>conftest.$ac_ext <<_ACEOF
     3847/* end confdefs.h.  */
     3848
     3849int
     3850main ()
     3851{
     3852/* FIXME: Include the comments suggested by Paul. */
     3853#ifndef __cplusplus
     3854  /* Ultrix mips cc rejects this.  */
     3855  typedef int charset[2];
     3856  const charset x;
     3857  /* SunOS 4.1.1 cc rejects this.  */
     3858  char const *const *ccp;
     3859  char **p;
     3860  /* NEC SVR4.0.2 mips cc rejects this.  */
     3861  struct point {int x, y;};
     3862  static struct point const zero = {0,0};
     3863  /* AIX XL C 1.02.0.0 rejects this.
     3864     It does not let you subtract one const X* pointer from another in
     3865     an arm of an if-expression whose if-part is not a constant
     3866     expression */
     3867  const char *g = "string";
     3868  ccp = &g + (g ? g-g : 0);
     3869  /* HPUX 7.0 cc rejects these. */
     3870  ++ccp;
     3871  p = (char**) ccp;
     3872  ccp = (char const *const *) p;
     3873  { /* SCO 3.2v4 cc rejects this.  */
     3874    char *t;
     3875    char const *s = 0 ? (char *) 0 : (char const *) 0;
     3876
     3877    *t++ = 0;
     3878  }
     3879  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     3880    int x[] = {25, 17};
     3881    const int *foo = &x[0];
     3882    ++foo;
     3883  }
     3884  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     3885    typedef const int *iptr;
     3886    iptr p = 0;
     3887    ++p;
     3888  }
     3889  { /* AIX XL C 1.02.0.0 rejects this saying
     3890       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     3891    struct s { int j; const int *ap[3]; };
     3892    struct s *b; b->j = 5;
     3893  }
     3894  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     3895    const int foo = 10;
     3896  }
     3897#endif
     3898
     3899  ;
     3900  return 0;
    14353901}
    1436 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    1437   int x[] = {25, 17};
    1438   const int *foo = &x[0];
    1439   ++foo;
     3902_ACEOF
     3903rm -f conftest.$ac_objext
     3904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3905  (eval $ac_compile) 2>conftest.er1
     3906  ac_status=$?
     3907  grep -v '^ *+' conftest.er1 >conftest.err
     3908  rm -f conftest.er1
     3909  cat conftest.err >&5
     3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3911  (exit $ac_status); } &&
     3912     { ac_try='test -z "$ac_c_werror_flag"
     3913             || test ! -s conftest.err'
     3914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3915  (eval $ac_try) 2>&5
     3916  ac_status=$?
     3917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3918  (exit $ac_status); }; } &&
     3919     { ac_try='test -s conftest.$ac_objext'
     3920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3921  (eval $ac_try) 2>&5
     3922  ac_status=$?
     3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3924  (exit $ac_status); }; }; then
     3925  ac_cv_c_const=yes
     3926else
     3927  echo "$as_me: failed program was:" >&5
     3928sed 's/^/| /' conftest.$ac_ext >&5
     3929
     3930ac_cv_c_const=no
     3931fi
     3932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3933fi
     3934echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
     3935echo "${ECHO_T}$ac_cv_c_const" >&6
     3936if test $ac_cv_c_const = no; then
     3937
     3938cat >>confdefs.h <<\_ACEOF
     3939#define const
     3940_ACEOF
     3941
     3942fi
     3943
     3944echo "$as_me:$LINENO: checking for off_t" >&5
     3945echo $ECHO_N "checking for off_t... $ECHO_C" >&6
     3946if test "${ac_cv_type_off_t+set}" = set; then
     3947  echo $ECHO_N "(cached) $ECHO_C" >&6
     3948else
     3949  cat >conftest.$ac_ext <<_ACEOF
     3950/* confdefs.h.  */
     3951_ACEOF
     3952cat confdefs.h >>conftest.$ac_ext
     3953cat >>conftest.$ac_ext <<_ACEOF
     3954/* end confdefs.h.  */
     3955$ac_includes_default
     3956int
     3957main ()
     3958{
     3959if ((off_t *) 0)
     3960  return 0;
     3961if (sizeof (off_t))
     3962  return 0;
     3963  ;
     3964  return 0;
    14403965}
    1441 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    1442   typedef const int *iptr;
    1443   iptr p = 0;
    1444   ++p;
     3966_ACEOF
     3967rm -f conftest.$ac_objext
     3968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3969  (eval $ac_compile) 2>conftest.er1
     3970  ac_status=$?
     3971  grep -v '^ *+' conftest.er1 >conftest.err
     3972  rm -f conftest.er1
     3973  cat conftest.err >&5
     3974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3975  (exit $ac_status); } &&
     3976     { ac_try='test -z "$ac_c_werror_flag"
     3977             || test ! -s conftest.err'
     3978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3979  (eval $ac_try) 2>&5
     3980  ac_status=$?
     3981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3982  (exit $ac_status); }; } &&
     3983     { ac_try='test -s conftest.$ac_objext'
     3984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3985  (eval $ac_try) 2>&5
     3986  ac_status=$?
     3987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3988  (exit $ac_status); }; }; then
     3989  ac_cv_type_off_t=yes
     3990else
     3991  echo "$as_me: failed program was:" >&5
     3992sed 's/^/| /' conftest.$ac_ext >&5
     3993
     3994ac_cv_type_off_t=no
     3995fi
     3996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3997fi
     3998echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
     3999echo "${ECHO_T}$ac_cv_type_off_t" >&6
     4000if test $ac_cv_type_off_t = yes; then
     4001  :
     4002else
     4003
     4004cat >>confdefs.h <<_ACEOF
     4005#define off_t long
     4006_ACEOF
     4007
     4008fi
     4009
     4010echo "$as_me:$LINENO: checking for size_t" >&5
     4011echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     4012if test "${ac_cv_type_size_t+set}" = set; then
     4013  echo $ECHO_N "(cached) $ECHO_C" >&6
     4014else
     4015  cat >conftest.$ac_ext <<_ACEOF
     4016/* confdefs.h.  */
     4017_ACEOF
     4018cat confdefs.h >>conftest.$ac_ext
     4019cat >>conftest.$ac_ext <<_ACEOF
     4020/* end confdefs.h.  */
     4021$ac_includes_default
     4022int
     4023main ()
     4024{
     4025if ((size_t *) 0)
     4026  return 0;
     4027if (sizeof (size_t))
     4028  return 0;
     4029  ;
     4030  return 0;
    14454031}
    1446 { /* AIX XL C 1.02.0.0 rejects this saying
    1447      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    1448   struct s { int j; const int *ap[3]; };
    1449   struct s *b; b->j = 5;
     4032_ACEOF
     4033rm -f conftest.$ac_objext
     4034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4035  (eval $ac_compile) 2>conftest.er1
     4036  ac_status=$?
     4037  grep -v '^ *+' conftest.er1 >conftest.err
     4038  rm -f conftest.er1
     4039  cat conftest.err >&5
     4040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4041  (exit $ac_status); } &&
     4042     { ac_try='test -z "$ac_c_werror_flag"
     4043             || test ! -s conftest.err'
     4044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4045  (eval $ac_try) 2>&5
     4046  ac_status=$?
     4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4048  (exit $ac_status); }; } &&
     4049     { ac_try='test -s conftest.$ac_objext'
     4050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4051  (eval $ac_try) 2>&5
     4052  ac_status=$?
     4053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4054  (exit $ac_status); }; }; then
     4055  ac_cv_type_size_t=yes
     4056else
     4057  echo "$as_me: failed program was:" >&5
     4058sed 's/^/| /' conftest.$ac_ext >&5
     4059
     4060ac_cv_type_size_t=no
     4061fi
     4062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4063fi
     4064echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
     4065echo "${ECHO_T}$ac_cv_type_size_t" >&6
     4066if test $ac_cv_type_size_t = yes; then
     4067  :
     4068else
     4069
     4070cat >>confdefs.h <<_ACEOF
     4071#define size_t unsigned
     4072_ACEOF
     4073
     4074fi
     4075
     4076echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
     4077echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     4078if test "${ac_cv_header_time+set}" = set; then
     4079  echo $ECHO_N "(cached) $ECHO_C" >&6
     4080else
     4081  cat >conftest.$ac_ext <<_ACEOF
     4082/* confdefs.h.  */
     4083_ACEOF
     4084cat confdefs.h >>conftest.$ac_ext
     4085cat >>conftest.$ac_ext <<_ACEOF
     4086/* end confdefs.h.  */
     4087#include <sys/types.h>
     4088#include <sys/time.h>
     4089#include <time.h>
     4090
     4091int
     4092main ()
     4093{
     4094if ((struct tm *) 0)
     4095return 0;
     4096  ;
     4097  return 0;
    14504098}
    1451 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    1452   const int foo = 10;
     4099_ACEOF
     4100rm -f conftest.$ac_objext
     4101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4102  (eval $ac_compile) 2>conftest.er1
     4103  ac_status=$?
     4104  grep -v '^ *+' conftest.er1 >conftest.err
     4105  rm -f conftest.er1
     4106  cat conftest.err >&5
     4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4108  (exit $ac_status); } &&
     4109     { ac_try='test -z "$ac_c_werror_flag"
     4110             || test ! -s conftest.err'
     4111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4112  (eval $ac_try) 2>&5
     4113  ac_status=$?
     4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4115  (exit $ac_status); }; } &&
     4116     { ac_try='test -s conftest.$ac_objext'
     4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4118  (eval $ac_try) 2>&5
     4119  ac_status=$?
     4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4121  (exit $ac_status); }; }; then
     4122  ac_cv_header_time=yes
     4123else
     4124  echo "$as_me: failed program was:" >&5
     4125sed 's/^/| /' conftest.$ac_ext >&5
     4126
     4127ac_cv_header_time=no
     4128fi
     4129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4130fi
     4131echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
     4132echo "${ECHO_T}$ac_cv_header_time" >&6
     4133if test $ac_cv_header_time = yes; then
     4134
     4135cat >>confdefs.h <<\_ACEOF
     4136#define TIME_WITH_SYS_TIME 1
     4137_ACEOF
     4138
     4139fi
     4140
     4141echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
     4142echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     4143if test "${ac_cv_struct_tm+set}" = set; then
     4144  echo $ECHO_N "(cached) $ECHO_C" >&6
     4145else
     4146  cat >conftest.$ac_ext <<_ACEOF
     4147/* confdefs.h.  */
     4148_ACEOF
     4149cat confdefs.h >>conftest.$ac_ext
     4150cat >>conftest.$ac_ext <<_ACEOF
     4151/* end confdefs.h.  */
     4152#include <sys/types.h>
     4153#include <time.h>
     4154
     4155int
     4156main ()
     4157{
     4158struct tm *tp; tp->tm_sec;
     4159  ;
     4160  return 0;
    14534161}
    1454 
    1455 ; return 0; }
    1456 EOF
    1457 if { (eval echo configure:1458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1458   rm -rf conftest*
    1459   ac_cv_c_const=yes
    1460 else
    1461   echo "configure: failed program was:" >&5
    1462   cat conftest.$ac_ext >&5
    1463   rm -rf conftest*
    1464   ac_cv_c_const=no
    1465 fi
    1466 rm -f conftest*
    1467 fi
    1468 
    1469 echo "$ac_t""$ac_cv_c_const" 1>&6
    1470 if test $ac_cv_c_const = no; then
    1471   cat >> confdefs.h <<\EOF
    1472 #define const
    1473 EOF
    1474 
    1475 fi
    1476 
    1477 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1478 echo "configure:1479: checking for ANSI C header files" >&5
    1479 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1480   echo $ac_n "(cached) $ac_c" 1>&6
    1481 else
    1482   cat > conftest.$ac_ext <<EOF
    1483 #line 1484 "configure"
    1484 #include "confdefs.h"
     4162_ACEOF
     4163rm -f conftest.$ac_objext
     4164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4165  (eval $ac_compile) 2>conftest.er1
     4166  ac_status=$?
     4167  grep -v '^ *+' conftest.er1 >conftest.err
     4168  rm -f conftest.er1
     4169  cat conftest.err >&5
     4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4171  (exit $ac_status); } &&
     4172     { ac_try='test -z "$ac_c_werror_flag"
     4173             || test ! -s conftest.err'
     4174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4175  (eval $ac_try) 2>&5
     4176  ac_status=$?
     4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4178  (exit $ac_status); }; } &&
     4179     { ac_try='test -s conftest.$ac_objext'
     4180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4181  (eval $ac_try) 2>&5
     4182  ac_status=$?
     4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4184  (exit $ac_status); }; }; then
     4185  ac_cv_struct_tm=time.h
     4186else
     4187  echo "$as_me: failed program was:" >&5
     4188sed 's/^/| /' conftest.$ac_ext >&5
     4189
     4190ac_cv_struct_tm=sys/time.h
     4191fi
     4192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4193fi
     4194echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
     4195echo "${ECHO_T}$ac_cv_struct_tm" >&6
     4196if test $ac_cv_struct_tm = sys/time.h; then
     4197
     4198cat >>confdefs.h <<\_ACEOF
     4199#define TM_IN_SYS_TIME 1
     4200_ACEOF
     4201
     4202fi
     4203
     4204
     4205if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
     4206cat >conftest.$ac_ext <<_ACEOF
     4207/* confdefs.h.  */
     4208_ACEOF
     4209cat confdefs.h >>conftest.$ac_ext
     4210cat >>conftest.$ac_ext <<_ACEOF
     4211/* end confdefs.h.  */
     4212#include <stdio.h>
     4213
     4214int
     4215main ()
     4216{
     4217 FILE *rubbish = popen("yes", "r");
     4218  ;
     4219  return 0;
     4220}
     4221_ACEOF
     4222rm -f conftest.$ac_objext
     4223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4224  (eval $ac_compile) 2>conftest.er1
     4225  ac_status=$?
     4226  grep -v '^ *+' conftest.er1 >conftest.err
     4227  rm -f conftest.er1
     4228  cat conftest.err >&5
     4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4230  (exit $ac_status); } &&
     4231     { ac_try='test -z "$ac_c_werror_flag"
     4232             || test ! -s conftest.err'
     4233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4234  (eval $ac_try) 2>&5
     4235  ac_status=$?
     4236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4237  (exit $ac_status); }; } &&
     4238     { ac_try='test -s conftest.$ac_objext'
     4239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4240  (eval $ac_try) 2>&5
     4241  ac_status=$?
     4242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4243  (exit $ac_status); }; }; then
     4244  :
     4245else
     4246  echo "$as_me: failed program was:" >&5
     4247sed 's/^/| /' conftest.$ac_ext >&5
     4248
     4249CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     4250fi
     4251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4252fi
     4253
     4254
     4255
     4256echo "$as_me:$LINENO: checking for main in -lm" >&5
     4257echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     4258if test "${ac_cv_lib_m_main+set}" = set; then
     4259  echo $ECHO_N "(cached) $ECHO_C" >&6
     4260else
     4261  ac_check_lib_save_LIBS=$LIBS
     4262LIBS="-lm  $LIBS"
     4263cat >conftest.$ac_ext <<_ACEOF
     4264/* confdefs.h.  */
     4265_ACEOF
     4266cat confdefs.h >>conftest.$ac_ext
     4267cat >>conftest.$ac_ext <<_ACEOF
     4268/* end confdefs.h.  */
     4269
     4270
     4271int
     4272main ()
     4273{
     4274main ();
     4275  ;
     4276  return 0;
     4277}
     4278_ACEOF
     4279rm -f conftest.$ac_objext conftest$ac_exeext
     4280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4281  (eval $ac_link) 2>conftest.er1
     4282  ac_status=$?
     4283  grep -v '^ *+' conftest.er1 >conftest.err
     4284  rm -f conftest.er1
     4285  cat conftest.err >&5
     4286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4287  (exit $ac_status); } &&
     4288     { ac_try='test -z "$ac_c_werror_flag"
     4289             || test ! -s conftest.err'
     4290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4291  (eval $ac_try) 2>&5
     4292  ac_status=$?
     4293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4294  (exit $ac_status); }; } &&
     4295     { ac_try='test -s conftest$ac_exeext'
     4296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4297  (eval $ac_try) 2>&5
     4298  ac_status=$?
     4299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4300  (exit $ac_status); }; }; then
     4301  ac_cv_lib_m_main=yes
     4302else
     4303  echo "$as_me: failed program was:" >&5
     4304sed 's/^/| /' conftest.$ac_ext >&5
     4305
     4306ac_cv_lib_m_main=no
     4307fi
     4308rm -f conftest.err conftest.$ac_objext \
     4309      conftest$ac_exeext conftest.$ac_ext
     4310LIBS=$ac_check_lib_save_LIBS
     4311fi
     4312echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     4313echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     4314if test $ac_cv_lib_m_main = yes; then
     4315  cat >>confdefs.h <<_ACEOF
     4316#define HAVE_LIBM 1
     4317_ACEOF
     4318
     4319  LIBS="-lm $LIBS"
     4320
     4321fi
     4322
     4323
     4324
     4325
     4326
     4327
     4328
     4329ac_header_dirent=no
     4330for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
     4331  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     4332echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
     4333echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
     4334if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4335  echo $ECHO_N "(cached) $ECHO_C" >&6
     4336else
     4337  cat >conftest.$ac_ext <<_ACEOF
     4338/* confdefs.h.  */
     4339_ACEOF
     4340cat confdefs.h >>conftest.$ac_ext
     4341cat >>conftest.$ac_ext <<_ACEOF
     4342/* end confdefs.h.  */
     4343#include <sys/types.h>
     4344#include <$ac_hdr>
     4345
     4346int
     4347main ()
     4348{
     4349if ((DIR *) 0)
     4350return 0;
     4351  ;
     4352  return 0;
     4353}
     4354_ACEOF
     4355rm -f conftest.$ac_objext
     4356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4357  (eval $ac_compile) 2>conftest.er1
     4358  ac_status=$?
     4359  grep -v '^ *+' conftest.er1 >conftest.err
     4360  rm -f conftest.er1
     4361  cat conftest.err >&5
     4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4363  (exit $ac_status); } &&
     4364     { ac_try='test -z "$ac_c_werror_flag"
     4365             || test ! -s conftest.err'
     4366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4367  (eval $ac_try) 2>&5
     4368  ac_status=$?
     4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4370  (exit $ac_status); }; } &&
     4371     { ac_try='test -s conftest.$ac_objext'
     4372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4373  (eval $ac_try) 2>&5
     4374  ac_status=$?
     4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4376  (exit $ac_status); }; }; then
     4377  eval "$as_ac_Header=yes"
     4378else
     4379  echo "$as_me: failed program was:" >&5
     4380sed 's/^/| /' conftest.$ac_ext >&5
     4381
     4382eval "$as_ac_Header=no"
     4383fi
     4384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4385fi
     4386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4388if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4389  cat >>confdefs.h <<_ACEOF
     4390#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     4391_ACEOF
     4392
     4393ac_header_dirent=$ac_hdr; break
     4394fi
     4395
     4396done
     4397# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
     4398if test $ac_header_dirent = dirent.h; then
     4399  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4400echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4401if test "${ac_cv_search_opendir+set}" = set; then
     4402  echo $ECHO_N "(cached) $ECHO_C" >&6
     4403else
     4404  ac_func_search_save_LIBS=$LIBS
     4405ac_cv_search_opendir=no
     4406cat >conftest.$ac_ext <<_ACEOF
     4407/* confdefs.h.  */
     4408_ACEOF
     4409cat confdefs.h >>conftest.$ac_ext
     4410cat >>conftest.$ac_ext <<_ACEOF
     4411/* end confdefs.h.  */
     4412
     4413/* Override any gcc2 internal prototype to avoid an error.  */
     4414#ifdef __cplusplus
     4415extern "C"
     4416#endif
     4417/* We use char because int might match the return type of a gcc2
     4418   builtin and then its argument prototype would still apply.  */
     4419char opendir ();
     4420int
     4421main ()
     4422{
     4423opendir ();
     4424  ;
     4425  return 0;
     4426}
     4427_ACEOF
     4428rm -f conftest.$ac_objext conftest$ac_exeext
     4429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4430  (eval $ac_link) 2>conftest.er1
     4431  ac_status=$?
     4432  grep -v '^ *+' conftest.er1 >conftest.err
     4433  rm -f conftest.er1
     4434  cat conftest.err >&5
     4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4436  (exit $ac_status); } &&
     4437     { ac_try='test -z "$ac_c_werror_flag"
     4438             || test ! -s conftest.err'
     4439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4440  (eval $ac_try) 2>&5
     4441  ac_status=$?
     4442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4443  (exit $ac_status); }; } &&
     4444     { ac_try='test -s conftest$ac_exeext'
     4445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4446  (eval $ac_try) 2>&5
     4447  ac_status=$?
     4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4449  (exit $ac_status); }; }; then
     4450  ac_cv_search_opendir="none required"
     4451else
     4452  echo "$as_me: failed program was:" >&5
     4453sed 's/^/| /' conftest.$ac_ext >&5
     4454
     4455fi
     4456rm -f conftest.err conftest.$ac_objext \
     4457      conftest$ac_exeext conftest.$ac_ext
     4458if test "$ac_cv_search_opendir" = no; then
     4459  for ac_lib in dir; do
     4460    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4461    cat >conftest.$ac_ext <<_ACEOF
     4462/* confdefs.h.  */
     4463_ACEOF
     4464cat confdefs.h >>conftest.$ac_ext
     4465cat >>conftest.$ac_ext <<_ACEOF
     4466/* end confdefs.h.  */
     4467
     4468/* Override any gcc2 internal prototype to avoid an error.  */
     4469#ifdef __cplusplus
     4470extern "C"
     4471#endif
     4472/* We use char because int might match the return type of a gcc2
     4473   builtin and then its argument prototype would still apply.  */
     4474char opendir ();
     4475int
     4476main ()
     4477{
     4478opendir ();
     4479  ;
     4480  return 0;
     4481}
     4482_ACEOF
     4483rm -f conftest.$ac_objext conftest$ac_exeext
     4484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4485  (eval $ac_link) 2>conftest.er1
     4486  ac_status=$?
     4487  grep -v '^ *+' conftest.er1 >conftest.err
     4488  rm -f conftest.er1
     4489  cat conftest.err >&5
     4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4491  (exit $ac_status); } &&
     4492     { ac_try='test -z "$ac_c_werror_flag"
     4493             || test ! -s conftest.err'
     4494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4495  (eval $ac_try) 2>&5
     4496  ac_status=$?
     4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4498  (exit $ac_status); }; } &&
     4499     { ac_try='test -s conftest$ac_exeext'
     4500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4501  (eval $ac_try) 2>&5
     4502  ac_status=$?
     4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4504  (exit $ac_status); }; }; then
     4505  ac_cv_search_opendir="-l$ac_lib"
     4506break
     4507else
     4508  echo "$as_me: failed program was:" >&5
     4509sed 's/^/| /' conftest.$ac_ext >&5
     4510
     4511fi
     4512rm -f conftest.err conftest.$ac_objext \
     4513      conftest$ac_exeext conftest.$ac_ext
     4514  done
     4515fi
     4516LIBS=$ac_func_search_save_LIBS
     4517fi
     4518echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4519echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4520if test "$ac_cv_search_opendir" != no; then
     4521  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4522
     4523fi
     4524
     4525else
     4526  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4527echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4528if test "${ac_cv_search_opendir+set}" = set; then
     4529  echo $ECHO_N "(cached) $ECHO_C" >&6
     4530else
     4531  ac_func_search_save_LIBS=$LIBS
     4532ac_cv_search_opendir=no
     4533cat >conftest.$ac_ext <<_ACEOF
     4534/* confdefs.h.  */
     4535_ACEOF
     4536cat confdefs.h >>conftest.$ac_ext
     4537cat >>conftest.$ac_ext <<_ACEOF
     4538/* end confdefs.h.  */
     4539
     4540/* Override any gcc2 internal prototype to avoid an error.  */
     4541#ifdef __cplusplus
     4542extern "C"
     4543#endif
     4544/* We use char because int might match the return type of a gcc2
     4545   builtin and then its argument prototype would still apply.  */
     4546char opendir ();
     4547int
     4548main ()
     4549{
     4550opendir ();
     4551  ;
     4552  return 0;
     4553}
     4554_ACEOF
     4555rm -f conftest.$ac_objext conftest$ac_exeext
     4556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4557  (eval $ac_link) 2>conftest.er1
     4558  ac_status=$?
     4559  grep -v '^ *+' conftest.er1 >conftest.err
     4560  rm -f conftest.er1
     4561  cat conftest.err >&5
     4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4563  (exit $ac_status); } &&
     4564     { ac_try='test -z "$ac_c_werror_flag"
     4565             || test ! -s conftest.err'
     4566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4567  (eval $ac_try) 2>&5
     4568  ac_status=$?
     4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4570  (exit $ac_status); }; } &&
     4571     { ac_try='test -s conftest$ac_exeext'
     4572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4573  (eval $ac_try) 2>&5
     4574  ac_status=$?
     4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4576  (exit $ac_status); }; }; then
     4577  ac_cv_search_opendir="none required"
     4578else
     4579  echo "$as_me: failed program was:" >&5
     4580sed 's/^/| /' conftest.$ac_ext >&5
     4581
     4582fi
     4583rm -f conftest.err conftest.$ac_objext \
     4584      conftest$ac_exeext conftest.$ac_ext
     4585if test "$ac_cv_search_opendir" = no; then
     4586  for ac_lib in x; do
     4587    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4588    cat >conftest.$ac_ext <<_ACEOF
     4589/* confdefs.h.  */
     4590_ACEOF
     4591cat confdefs.h >>conftest.$ac_ext
     4592cat >>conftest.$ac_ext <<_ACEOF
     4593/* end confdefs.h.  */
     4594
     4595/* Override any gcc2 internal prototype to avoid an error.  */
     4596#ifdef __cplusplus
     4597extern "C"
     4598#endif
     4599/* We use char because int might match the return type of a gcc2
     4600   builtin and then its argument prototype would still apply.  */
     4601char opendir ();
     4602int
     4603main ()
     4604{
     4605opendir ();
     4606  ;
     4607  return 0;
     4608}
     4609_ACEOF
     4610rm -f conftest.$ac_objext conftest$ac_exeext
     4611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4612  (eval $ac_link) 2>conftest.er1
     4613  ac_status=$?
     4614  grep -v '^ *+' conftest.er1 >conftest.err
     4615  rm -f conftest.er1
     4616  cat conftest.err >&5
     4617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4618  (exit $ac_status); } &&
     4619     { ac_try='test -z "$ac_c_werror_flag"
     4620             || test ! -s conftest.err'
     4621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4622  (eval $ac_try) 2>&5
     4623  ac_status=$?
     4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4625  (exit $ac_status); }; } &&
     4626     { ac_try='test -s conftest$ac_exeext'
     4627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4628  (eval $ac_try) 2>&5
     4629  ac_status=$?
     4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4631  (exit $ac_status); }; }; then
     4632  ac_cv_search_opendir="-l$ac_lib"
     4633break
     4634else
     4635  echo "$as_me: failed program was:" >&5
     4636sed 's/^/| /' conftest.$ac_ext >&5
     4637
     4638fi
     4639rm -f conftest.err conftest.$ac_objext \
     4640      conftest$ac_exeext conftest.$ac_ext
     4641  done
     4642fi
     4643LIBS=$ac_func_search_save_LIBS
     4644fi
     4645echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4646echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4647if test "$ac_cv_search_opendir" != no; then
     4648  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4649
     4650fi
     4651
     4652fi
     4653
     4654echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     4655echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4656if test "${ac_cv_header_stdc+set}" = set; then
     4657  echo $ECHO_N "(cached) $ECHO_C" >&6
     4658else
     4659  cat >conftest.$ac_ext <<_ACEOF
     4660/* confdefs.h.  */
     4661_ACEOF
     4662cat confdefs.h >>conftest.$ac_ext
     4663cat >>conftest.$ac_ext <<_ACEOF
     4664/* end confdefs.h.  */
    14854665#include <stdlib.h>
    14864666#include <stdarg.h>
    14874667#include <string.h>
    14884668#include <float.h>
    1489 EOF
    1490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1491 { (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1493 if test -z "$ac_err"; then
    1494   rm -rf conftest*
     4669
     4670int
     4671main ()
     4672{
     4673
     4674  ;
     4675  return 0;
     4676}
     4677_ACEOF
     4678rm -f conftest.$ac_objext
     4679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4680  (eval $ac_compile) 2>conftest.er1
     4681  ac_status=$?
     4682  grep -v '^ *+' conftest.er1 >conftest.err
     4683  rm -f conftest.er1
     4684  cat conftest.err >&5
     4685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4686  (exit $ac_status); } &&
     4687     { ac_try='test -z "$ac_c_werror_flag"
     4688             || test ! -s conftest.err'
     4689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4690  (eval $ac_try) 2>&5
     4691  ac_status=$?
     4692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4693  (exit $ac_status); }; } &&
     4694     { ac_try='test -s conftest.$ac_objext'
     4695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4696  (eval $ac_try) 2>&5
     4697  ac_status=$?
     4698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4699  (exit $ac_status); }; }; then
    14954700  ac_cv_header_stdc=yes
    14964701else
    1497   echo "$ac_err" >&5
    1498   echo "configure: failed program was:" >&5
    1499   cat conftest.$ac_ext >&5
    1500   rm -rf conftest*
    1501   ac_cv_header_stdc=no
    1502 fi
    1503 rm -f conftest*
     4702  echo "$as_me: failed program was:" >&5
     4703sed 's/^/| /' conftest.$ac_ext >&5
     4704
     4705ac_cv_header_stdc=no
     4706fi
     4707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    15044708
    15054709if test $ac_cv_header_stdc = yes; then
    15064710  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1507 cat > conftest.$ac_ext <<EOF
    1508 #line 1509 "configure"
    1509 #include "confdefs.h"
     4711  cat >conftest.$ac_ext <<_ACEOF
     4712/* confdefs.h.  */
     4713_ACEOF
     4714cat confdefs.h >>conftest.$ac_ext
     4715cat >>conftest.$ac_ext <<_ACEOF
     4716/* end confdefs.h.  */
    15104717#include <string.h>
    1511 EOF
     4718
     4719_ACEOF
    15124720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1513   egrep "memchr" >/dev/null 2>&1; then
     4721  $EGREP "memchr" >/dev/null 2>&1; then
    15144722  :
    15154723else
    1516   rm -rf conftest*
    15174724  ac_cv_header_stdc=no
    15184725fi
     
    15234730if test $ac_cv_header_stdc = yes; then
    15244731  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1525 cat > conftest.$ac_ext <<EOF
    1526 #line 1527 "configure"
    1527 #include "confdefs.h"
     4732  cat >conftest.$ac_ext <<_ACEOF
     4733/* confdefs.h.  */
     4734_ACEOF
     4735cat confdefs.h >>conftest.$ac_ext
     4736cat >>conftest.$ac_ext <<_ACEOF
     4737/* end confdefs.h.  */
    15284738#include <stdlib.h>
    1529 EOF
     4739
     4740_ACEOF
    15304741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1531   egrep "free" >/dev/null 2>&1; then
     4742  $EGREP "free" >/dev/null 2>&1; then
    15324743  :
    15334744else
    1534   rm -rf conftest*
    15354745  ac_cv_header_stdc=no
    15364746fi
     
    15414751if test $ac_cv_header_stdc = yes; then
    15424752  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1543 if test "$cross_compiling" = yes; then
     4753  if test "$cross_compiling" = yes; then
    15444754  :
    15454755else
    1546   cat > conftest.$ac_ext <<EOF
    1547 #line 1548 "configure"
    1548 #include "confdefs.h"
     4756  cat >conftest.$ac_ext <<_ACEOF
     4757/* confdefs.h.  */
     4758_ACEOF
     4759cat confdefs.h >>conftest.$ac_ext
     4760cat >>conftest.$ac_ext <<_ACEOF
     4761/* end confdefs.h.  */
    15494762#include <ctype.h>
    1550 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1551 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4763#if ((' ' & 0x0FF) == 0x020)
     4764# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     4765# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4766#else
     4767# define ISLOWER(c) \
     4768           (('a' <= (c) && (c) <= 'i') \
     4769             || ('j' <= (c) && (c) <= 'r') \
     4770             || ('s' <= (c) && (c) <= 'z'))
     4771# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     4772#endif
     4773
    15524774#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1553 int main () { int i; for (i = 0; i < 256; i++)
    1554 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1555 exit (0); }
    1556 
    1557 EOF
    1558 if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1559 then
     4775int
     4776main ()
     4777{
     4778  int i;
     4779  for (i = 0; i < 256; i++)
     4780    if (XOR (islower (i), ISLOWER (i))
     4781    || toupper (i) != TOUPPER (i))
     4782      exit(2);
     4783  exit (0);
     4784}
     4785_ACEOF
     4786rm -f conftest$ac_exeext
     4787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4788  (eval $ac_link) 2>&5
     4789  ac_status=$?
     4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4791  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4793  (eval $ac_try) 2>&5
     4794  ac_status=$?
     4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4796  (exit $ac_status); }; }; then
    15604797  :
    15614798else
    1562   echo "configure: failed program was:" >&5
    1563   cat conftest.$ac_ext >&5
    1564   rm -fr conftest*
    1565   ac_cv_header_stdc=no
    1566 fi
    1567 rm -fr conftest*
    1568 fi
    1569 
    1570 fi
    1571 fi
    1572 
    1573 echo "$ac_t""$ac_cv_header_stdc" 1>&6
     4799  echo "$as_me: program exited with status $ac_status" >&5
     4800echo "$as_me: failed program was:" >&5
     4801sed 's/^/| /' conftest.$ac_ext >&5
     4802
     4803( exit $ac_status )
     4804ac_cv_header_stdc=no
     4805fi
     4806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4807fi
     4808fi
     4809fi
     4810echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     4811echo "${ECHO_T}$ac_cv_header_stdc" >&6
    15744812if test $ac_cv_header_stdc = yes; then
    1575   cat >> confdefs.h <<\EOF
     4813
     4814cat >>confdefs.h <<\_ACEOF
    15764815#define STDC_HEADERS 1
    1577 EOF
    1578 
    1579 fi
    1580 
    1581 echo $ac_n "checking for off_t""... $ac_c" 1>&6
    1582 echo "configure:1583: checking for off_t" >&5
    1583 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    1584   echo $ac_n "(cached) $ac_c" 1>&6
    1585 else
    1586   cat > conftest.$ac_ext <<EOF
    1587 #line 1588 "configure"
    1588 #include "confdefs.h"
    1589 #include <sys/types.h>
    1590 #if STDC_HEADERS
    1591 #include <stdlib.h>
    1592 #include <stddef.h>
    1593 #endif
    1594 EOF
     4816_ACEOF
     4817
     4818fi
     4819
     4820
     4821
     4822
     4823
     4824
     4825
     4826
     4827for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
     4828do
     4829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4830if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4831  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4833if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4834  echo $ECHO_N "(cached) $ECHO_C" >&6
     4835fi
     4836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4838else
     4839  # Is the header compilable?
     4840echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4841echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4842cat >conftest.$ac_ext <<_ACEOF
     4843/* confdefs.h.  */
     4844_ACEOF
     4845cat confdefs.h >>conftest.$ac_ext
     4846cat >>conftest.$ac_ext <<_ACEOF
     4847/* end confdefs.h.  */
     4848$ac_includes_default
     4849#include <$ac_header>
     4850_ACEOF
     4851rm -f conftest.$ac_objext
     4852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4853  (eval $ac_compile) 2>conftest.er1
     4854  ac_status=$?
     4855  grep -v '^ *+' conftest.er1 >conftest.err
     4856  rm -f conftest.er1
     4857  cat conftest.err >&5
     4858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4859  (exit $ac_status); } &&
     4860     { ac_try='test -z "$ac_c_werror_flag"
     4861             || test ! -s conftest.err'
     4862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4863  (eval $ac_try) 2>&5
     4864  ac_status=$?
     4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4866  (exit $ac_status); }; } &&
     4867     { ac_try='test -s conftest.$ac_objext'
     4868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4869  (eval $ac_try) 2>&5
     4870  ac_status=$?
     4871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4872  (exit $ac_status); }; }; then
     4873  ac_header_compiler=yes
     4874else
     4875  echo "$as_me: failed program was:" >&5
     4876sed 's/^/| /' conftest.$ac_ext >&5
     4877
     4878ac_header_compiler=no
     4879fi
     4880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4882echo "${ECHO_T}$ac_header_compiler" >&6
     4883
     4884# Is the header present?
     4885echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4887cat >conftest.$ac_ext <<_ACEOF
     4888/* confdefs.h.  */
     4889_ACEOF
     4890cat confdefs.h >>conftest.$ac_ext
     4891cat >>conftest.$ac_ext <<_ACEOF
     4892/* end confdefs.h.  */
     4893#include <$ac_header>
     4894_ACEOF
     4895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4896  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4897  ac_status=$?
     4898  grep -v '^ *+' conftest.er1 >conftest.err
     4899  rm -f conftest.er1
     4900  cat conftest.err >&5
     4901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4902  (exit $ac_status); } >/dev/null; then
     4903  if test -s conftest.err; then
     4904    ac_cpp_err=$ac_c_preproc_warn_flag
     4905    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4906  else
     4907    ac_cpp_err=
     4908  fi
     4909else
     4910  ac_cpp_err=yes
     4911fi
     4912if test -z "$ac_cpp_err"; then
     4913  ac_header_preproc=yes
     4914else
     4915  echo "$as_me: failed program was:" >&5
     4916sed 's/^/| /' conftest.$ac_ext >&5
     4917
     4918  ac_header_preproc=no
     4919fi
     4920rm -f conftest.err conftest.$ac_ext
     4921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4922echo "${ECHO_T}$ac_header_preproc" >&6
     4923
     4924# So?  What about this header?
     4925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4926  yes:no: )
     4927    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4929    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4930echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4931    ac_header_preproc=yes
     4932    ;;
     4933  no:yes:* )
     4934    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4936    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4937echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4938    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4939echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4940    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4941echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4942    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4944    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4945echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4946    (
     4947      cat <<\_ASBOX
     4948## ------------------------------------------ ##
     4949## Report this to the AC_PACKAGE_NAME lists.  ##
     4950## ------------------------------------------ ##
     4951_ASBOX
     4952    ) |
     4953      sed "s/^/$as_me: WARNING:     /" >&2
     4954    ;;
     4955esac
     4956echo "$as_me:$LINENO: checking for $ac_header" >&5
     4957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4958if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4959  echo $ECHO_N "(cached) $ECHO_C" >&6
     4960else
     4961  eval "$as_ac_Header=\$ac_header_preproc"
     4962fi
     4963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4965
     4966fi
     4967if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4968  cat >>confdefs.h <<_ACEOF
     4969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4970_ACEOF
     4971
     4972fi
     4973
     4974done
     4975
     4976cat >conftest.$ac_ext <<_ACEOF
     4977/* confdefs.h.  */
     4978_ACEOF
     4979cat confdefs.h >>conftest.$ac_ext
     4980cat >>conftest.$ac_ext <<_ACEOF
     4981/* end confdefs.h.  */
     4982#include <stdio.h>
     4983
     4984_ACEOF
    15954985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1596   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1597   rm -rf conftest*
    1598   ac_cv_type_off_t=yes
    1599 else
    1600   rm -rf conftest*
    1601   ac_cv_type_off_t=no
     4986  $EGREP "fread" >/dev/null 2>&1; then
     4987  cat >>confdefs.h <<\_ACEOF
     4988#define HAVE_FREAD_DECL 1
     4989_ACEOF
     4990
    16024991fi
    16034992rm -f conftest*
    16044993
    1605 fi
    1606 echo "$ac_t""$ac_cv_type_off_t" 1>&6
    1607 if test $ac_cv_type_off_t = no; then
    1608   cat >> confdefs.h <<\EOF
    1609 #define off_t long
    1610 EOF
    1611 
    1612 fi
    1613 
    1614 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1615 echo "configure:1616: checking for size_t" >&5
    1616 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    1617   echo $ac_n "(cached) $ac_c" 1>&6
    1618 else
    1619   cat > conftest.$ac_ext <<EOF
    1620 #line 1621 "configure"
    1621 #include "confdefs.h"
    1622 #include <sys/types.h>
    1623 #if STDC_HEADERS
    1624 #include <stdlib.h>
    1625 #include <stddef.h>
    1626 #endif
    1627 EOF
     4994cat >conftest.$ac_ext <<_ACEOF
     4995/* confdefs.h.  */
     4996_ACEOF
     4997cat confdefs.h >>conftest.$ac_ext
     4998cat >>conftest.$ac_ext <<_ACEOF
     4999/* end confdefs.h.  */
     5000#include <stdio.h>
     5001
     5002_ACEOF
    16285003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1629   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1630   rm -rf conftest*
    1631   ac_cv_type_size_t=yes
    1632 else
    1633   rm -rf conftest*
    1634   ac_cv_type_size_t=no
     5004  $EGREP "fgetc" >/dev/null 2>&1; then
     5005  cat >>confdefs.h <<\_ACEOF
     5006#define HAVE_FGETC_DECL 1
     5007_ACEOF
     5008
    16355009fi
    16365010rm -f conftest*
    16375011
    1638 fi
    1639 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    1640 if test $ac_cv_type_size_t = no; then
    1641   cat >> confdefs.h <<\EOF
    1642 #define size_t unsigned
    1643 EOF
    1644 
    1645 fi
    1646 
    1647 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1648 echo "configure:1649: checking whether time.h and sys/time.h may both be included" >&5
    1649 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    1650   echo $ac_n "(cached) $ac_c" 1>&6
    1651 else
    1652   cat > conftest.$ac_ext <<EOF
    1653 #line 1654 "configure"
    1654 #include "confdefs.h"
    1655 #include <sys/types.h>
    1656 #include <sys/time.h>
    1657 #include <time.h>
    1658 int main() {
    1659 struct tm *tp;
    1660 ; return 0; }
    1661 EOF
    1662 if { (eval echo configure:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1663   rm -rf conftest*
    1664   ac_cv_header_time=yes
    1665 else
    1666   echo "configure: failed program was:" >&5
    1667   cat conftest.$ac_ext >&5
    1668   rm -rf conftest*
    1669   ac_cv_header_time=no
    1670 fi
    1671 rm -f conftest*
    1672 fi
    1673 
    1674 echo "$ac_t""$ac_cv_header_time" 1>&6
    1675 if test $ac_cv_header_time = yes; then
    1676   cat >> confdefs.h <<\EOF
    1677 #define TIME_WITH_SYS_TIME 1
    1678 EOF
    1679 
    1680 fi
    1681 
    1682 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1683 echo "configure:1684: checking whether struct tm is in sys/time.h or time.h" >&5
    1684 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    1685   echo $ac_n "(cached) $ac_c" 1>&6
    1686 else
    1687   cat > conftest.$ac_ext <<EOF
    1688 #line 1689 "configure"
    1689 #include "confdefs.h"
    1690 #include <sys/types.h>
    1691 #include <time.h>
    1692 int main() {
    1693 struct tm *tp; tp->tm_sec;
    1694 ; return 0; }
    1695 EOF
    1696 if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1697   rm -rf conftest*
    1698   ac_cv_struct_tm=time.h
    1699 else
    1700   echo "configure: failed program was:" >&5
    1701   cat conftest.$ac_ext >&5
    1702   rm -rf conftest*
    1703   ac_cv_struct_tm=sys/time.h
    1704 fi
    1705 rm -f conftest*
    1706 fi
    1707 
    1708 echo "$ac_t""$ac_cv_struct_tm" 1>&6
    1709 if test $ac_cv_struct_tm = sys/time.h; then
    1710   cat >> confdefs.h <<\EOF
    1711 #define TM_IN_SYS_TIME 1
    1712 EOF
    1713 
    1714 fi
    1715 
    1716 
    1717 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    1718 cat > conftest.$ac_ext <<EOF
    1719 #line 1720 "configure"
    1720 #include "confdefs.h"
    1721 #include <stdio.h>
    1722 
    1723 int main() {
    1724  FILE *rubbish = popen("yes", "r");
    1725 ; return 0; }
    1726 EOF
    1727 if { (eval echo configure:1728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1728   :
    1729 else
    1730   echo "configure: failed program was:" >&5
    1731   cat conftest.$ac_ext >&5
    1732   rm -rf conftest*
    1733   CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    1734 fi
    1735 rm -f conftest*
    1736 fi
    1737 
    1738 
    1739 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    1740 echo "configure:1741: checking for main in -lm" >&5
    1741 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    1742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1743   echo $ac_n "(cached) $ac_c" 1>&6
    1744 else
    1745   ac_save_LIBS="$LIBS"
    1746 LIBS="-lm  $LIBS"
    1747 cat > conftest.$ac_ext <<EOF
    1748 #line 1749 "configure"
    1749 #include "confdefs.h"
    1750 
    1751 int main() {
    1752 main()
    1753 ; return 0; }
    1754 EOF
    1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1756   rm -rf conftest*
    1757   eval "ac_cv_lib_$ac_lib_var=yes"
    1758 else
    1759   echo "configure: failed program was:" >&5
    1760   cat conftest.$ac_ext >&5
    1761   rm -rf conftest*
    1762   eval "ac_cv_lib_$ac_lib_var=no"
    1763 fi
    1764 rm -f conftest*
    1765 LIBS="$ac_save_LIBS"
    1766 
    1767 fi
    1768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1769   echo "$ac_t""yes" 1>&6
    1770     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1771     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1772   cat >> confdefs.h <<EOF
    1773 #define $ac_tr_lib 1
    1774 EOF
    1775 
    1776   LIBS="-lm $LIBS"
    1777 
    1778 else
    1779   echo "$ac_t""no" 1>&6
    1780 fi
    1781 
    1782 
    1783 ac_header_dirent=no
    1784 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
    1785 do
    1786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1787 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    1788 echo "configure:1789: checking for $ac_hdr that defines DIR" >&5
    1789 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    1790   echo $ac_n "(cached) $ac_c" 1>&6
    1791 else
    1792   cat > conftest.$ac_ext <<EOF
    1793 #line 1794 "configure"
    1794 #include "confdefs.h"
    1795 #include <sys/types.h>
    1796 #include <$ac_hdr>
    1797 int main() {
    1798 DIR *dirp = 0;
    1799 ; return 0; }
    1800 EOF
    1801 if { (eval echo configure:1802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1802   rm -rf conftest*
    1803   eval "ac_cv_header_dirent_$ac_safe=yes"
    1804 else
    1805   echo "configure: failed program was:" >&5
    1806   cat conftest.$ac_ext >&5
    1807   rm -rf conftest*
    1808   eval "ac_cv_header_dirent_$ac_safe=no"
    1809 fi
    1810 rm -f conftest*
    1811 fi
    1812 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    1813   echo "$ac_t""yes" 1>&6
    1814     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1815   cat >> confdefs.h <<EOF
    1816 #define $ac_tr_hdr 1
    1817 EOF
    1818  ac_header_dirent=$ac_hdr; break
    1819 else
    1820   echo "$ac_t""no" 1>&6
    1821 fi
    1822 done
    1823 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    1824 if test $ac_header_dirent = dirent.h; then
    1825 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    1826 echo "configure:1827: checking for opendir in -ldir" >&5
    1827 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1829   echo $ac_n "(cached) $ac_c" 1>&6
    1830 else
    1831   ac_save_LIBS="$LIBS"
    1832 LIBS="-ldir  $LIBS"
    1833 cat > conftest.$ac_ext <<EOF
    1834 #line 1835 "configure"
    1835 #include "confdefs.h"
    1836 /* Override any gcc2 internal prototype to avoid an error.  */
    1837 /* We use char because int might match the return type of a gcc2
    1838     builtin and then its argument prototype would still apply.  */
    1839 char opendir();
    1840 
    1841 int main() {
    1842 opendir()
    1843 ; return 0; }
    1844 EOF
    1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1846   rm -rf conftest*
    1847   eval "ac_cv_lib_$ac_lib_var=yes"
    1848 else
    1849   echo "configure: failed program was:" >&5
    1850   cat conftest.$ac_ext >&5
    1851   rm -rf conftest*
    1852   eval "ac_cv_lib_$ac_lib_var=no"
    1853 fi
    1854 rm -f conftest*
    1855 LIBS="$ac_save_LIBS"
    1856 
    1857 fi
    1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1859   echo "$ac_t""yes" 1>&6
    1860   LIBS="$LIBS -ldir"
    1861 else
    1862   echo "$ac_t""no" 1>&6
    1863 fi
    1864 
    1865 else
    1866 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
    1867 echo "configure:1868: checking for opendir in -lx" >&5
    1868 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
    1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1870   echo $ac_n "(cached) $ac_c" 1>&6
    1871 else
    1872   ac_save_LIBS="$LIBS"
    1873 LIBS="-lx  $LIBS"
    1874 cat > conftest.$ac_ext <<EOF
    1875 #line 1876 "configure"
    1876 #include "confdefs.h"
    1877 /* Override any gcc2 internal prototype to avoid an error.  */
    1878 /* We use char because int might match the return type of a gcc2
    1879     builtin and then its argument prototype would still apply.  */
    1880 char opendir();
    1881 
    1882 int main() {
    1883 opendir()
    1884 ; return 0; }
    1885 EOF
    1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1887   rm -rf conftest*
    1888   eval "ac_cv_lib_$ac_lib_var=yes"
    1889 else
    1890   echo "configure: failed program was:" >&5
    1891   cat conftest.$ac_ext >&5
    1892   rm -rf conftest*
    1893   eval "ac_cv_lib_$ac_lib_var=no"
    1894 fi
    1895 rm -f conftest*
    1896 LIBS="$ac_save_LIBS"
    1897 
    1898 fi
    1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1900   echo "$ac_t""yes" 1>&6
    1901   LIBS="$LIBS -lx"
    1902 else
    1903   echo "$ac_t""no" 1>&6
    1904 fi
    1905 
    1906 fi
    1907 
    1908 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1909 echo "configure:1910: checking for ANSI C header files" >&5
    1910 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1911   echo $ac_n "(cached) $ac_c" 1>&6
    1912 else
    1913   cat > conftest.$ac_ext <<EOF
    1914 #line 1915 "configure"
    1915 #include "confdefs.h"
    1916 #include <stdlib.h>
    1917 #include <stdarg.h>
    1918 #include <string.h>
    1919 #include <float.h>
    1920 EOF
    1921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1922 { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1924 if test -z "$ac_err"; then
    1925   rm -rf conftest*
    1926   ac_cv_header_stdc=yes
    1927 else
    1928   echo "$ac_err" >&5
    1929   echo "configure: failed program was:" >&5
    1930   cat conftest.$ac_ext >&5
    1931   rm -rf conftest*
    1932   ac_cv_header_stdc=no
    1933 fi
    1934 rm -f conftest*
    1935 
    1936 if test $ac_cv_header_stdc = yes; then
    1937   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1938 cat > conftest.$ac_ext <<EOF
    1939 #line 1940 "configure"
    1940 #include "confdefs.h"
    1941 #include <string.h>
    1942 EOF
     5012cat >conftest.$ac_ext <<_ACEOF
     5013/* confdefs.h.  */
     5014_ACEOF
     5015cat confdefs.h >>conftest.$ac_ext
     5016cat >>conftest.$ac_ext <<_ACEOF
     5017/* end confdefs.h.  */
     5018#include <sys/procfs.h>
     5019
     5020_ACEOF
    19435021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1944   egrep "memchr" >/dev/null 2>&1; then
    1945   :
    1946 else
    1947   rm -rf conftest*
    1948   ac_cv_header_stdc=no
    1949 fi
    1950 rm -f conftest*
    1951 
    1952 fi
    1953 
    1954 if test $ac_cv_header_stdc = yes; then
    1955   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1956 cat > conftest.$ac_ext <<EOF
    1957 #line 1958 "configure"
    1958 #include "confdefs.h"
    1959 #include <stdlib.h>
    1960 EOF
    1961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1962   egrep "free" >/dev/null 2>&1; then
    1963   :
    1964 else
    1965   rm -rf conftest*
    1966   ac_cv_header_stdc=no
    1967 fi
    1968 rm -f conftest*
    1969 
    1970 fi
    1971 
    1972 if test $ac_cv_header_stdc = yes; then
    1973   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1974 if test "$cross_compiling" = yes; then
    1975   :
    1976 else
    1977   cat > conftest.$ac_ext <<EOF
    1978 #line 1979 "configure"
    1979 #include "confdefs.h"
    1980 #include <ctype.h>
    1981 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1982 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    1983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1984 int main () { int i; for (i = 0; i < 256; i++)
    1985 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1986 exit (0); }
    1987 
    1988 EOF
    1989 if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1990 then
    1991   :
    1992 else
    1993   echo "configure: failed program was:" >&5
    1994   cat conftest.$ac_ext >&5
    1995   rm -fr conftest*
    1996   ac_cv_header_stdc=no
    1997 fi
    1998 rm -fr conftest*
    1999 fi
    2000 
    2001 fi
    2002 fi
    2003 
    2004 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    2005 if test $ac_cv_header_stdc = yes; then
    2006   cat >> confdefs.h <<\EOF
    2007 #define STDC_HEADERS 1
    2008 EOF
    2009 
    2010 fi
    2011 
    2012 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
    2013 do
    2014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2016 echo "configure:2017: checking for $ac_hdr" >&5
    2017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2018   echo $ac_n "(cached) $ac_c" 1>&6
    2019 else
    2020   cat > conftest.$ac_ext <<EOF
    2021 #line 2022 "configure"
    2022 #include "confdefs.h"
    2023 #include <$ac_hdr>
    2024 EOF
    2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2028 if test -z "$ac_err"; then
    2029   rm -rf conftest*
    2030   eval "ac_cv_header_$ac_safe=yes"
    2031 else
    2032   echo "$ac_err" >&5
    2033   echo "configure: failed program was:" >&5
    2034   cat conftest.$ac_ext >&5
    2035   rm -rf conftest*
    2036   eval "ac_cv_header_$ac_safe=no"
    2037 fi
    2038 rm -f conftest*
    2039 fi
    2040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2041   echo "$ac_t""yes" 1>&6
    2042     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2043   cat >> confdefs.h <<EOF
    2044 #define $ac_tr_hdr 1
    2045 EOF
    2046  
    2047 else
    2048   echo "$ac_t""no" 1>&6
    2049 fi
    2050 done
    2051 
    2052 cat > conftest.$ac_ext <<EOF
    2053 #line 2054 "configure"
    2054 #include "confdefs.h"
    2055 #include <stdio.h>
    2056 EOF
    2057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2058   egrep "fread" >/dev/null 2>&1; then
    2059   rm -rf conftest*
    2060   cat >> confdefs.h <<\EOF
    2061 #define HAVE_FREAD_DECL 1
    2062 EOF
    2063 
    2064 fi
    2065 rm -f conftest*
    2066 
    2067 cat > conftest.$ac_ext <<EOF
    2068 #line 2069 "configure"
    2069 #include "confdefs.h"
    2070 #include <stdio.h>
    2071 EOF
    2072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2073   egrep "fgetc" >/dev/null 2>&1; then
    2074   rm -rf conftest*
    2075   cat >> confdefs.h <<\EOF
    2076 #define HAVE_FGETC_DECL 1
    2077 EOF
    2078 
    2079 fi
    2080 rm -f conftest*
    2081 
    2082 cat > conftest.$ac_ext <<EOF
    2083 #line 2084 "configure"
    2084 #include "confdefs.h"
    2085 #include <sys/procfs.h>
    2086 EOF
    2087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2088   egrep "pr_brksize" >/dev/null 2>&1; then
    2089   rm -rf conftest*
    2090   cat >> confdefs.h <<\EOF
     5022  $EGREP "pr_brksize" >/dev/null 2>&1; then
     5023  cat >>confdefs.h <<\_ACEOF
    20915024#define HAVE_PR_BRKSIZE 1
    2092 EOF
     5025_ACEOF
    20935026
    20945027fi
     
    20985031# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    20995032# for constant arguments.  Useless!
    2100 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2101 echo "configure:2102: checking for working alloca.h" >&5
    2102 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2103   echo $ac_n "(cached) $ac_c" 1>&6
    2104 else
    2105   cat > conftest.$ac_ext <<EOF
    2106 #line 2107 "configure"
    2107 #include "confdefs.h"
     5033echo "$as_me:$LINENO: checking for working alloca.h" >&5
     5034echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     5035if test "${ac_cv_working_alloca_h+set}" = set; then
     5036  echo $ECHO_N "(cached) $ECHO_C" >&6
     5037else
     5038  cat >conftest.$ac_ext <<_ACEOF
     5039/* confdefs.h.  */
     5040_ACEOF
     5041cat confdefs.h >>conftest.$ac_ext
     5042cat >>conftest.$ac_ext <<_ACEOF
     5043/* end confdefs.h.  */
    21085044#include <alloca.h>
    2109 int main() {
    2110 char *p = alloca(2 * sizeof(int));
    2111 ; return 0; }
    2112 EOF
    2113 if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2114   rm -rf conftest*
    2115   ac_cv_header_alloca_h=yes
    2116 else
    2117   echo "configure: failed program was:" >&5
    2118   cat conftest.$ac_ext >&5
    2119   rm -rf conftest*
    2120   ac_cv_header_alloca_h=no
    2121 fi
    2122 rm -f conftest*
    2123 fi
    2124 
    2125 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2126 if test $ac_cv_header_alloca_h = yes; then
    2127   cat >> confdefs.h <<\EOF
     5045int
     5046main ()
     5047{
     5048char *p = (char *) alloca (2 * sizeof (int));
     5049  ;
     5050  return 0;
     5051}
     5052_ACEOF
     5053rm -f conftest.$ac_objext conftest$ac_exeext
     5054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5055  (eval $ac_link) 2>conftest.er1
     5056  ac_status=$?
     5057  grep -v '^ *+' conftest.er1 >conftest.err
     5058  rm -f conftest.er1
     5059  cat conftest.err >&5
     5060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5061  (exit $ac_status); } &&
     5062     { ac_try='test -z "$ac_c_werror_flag"
     5063             || test ! -s conftest.err'
     5064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5065  (eval $ac_try) 2>&5
     5066  ac_status=$?
     5067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5068  (exit $ac_status); }; } &&
     5069     { ac_try='test -s conftest$ac_exeext'
     5070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5071  (eval $ac_try) 2>&5
     5072  ac_status=$?
     5073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5074  (exit $ac_status); }; }; then
     5075  ac_cv_working_alloca_h=yes
     5076else
     5077  echo "$as_me: failed program was:" >&5
     5078sed 's/^/| /' conftest.$ac_ext >&5
     5079
     5080ac_cv_working_alloca_h=no
     5081fi
     5082rm -f conftest.err conftest.$ac_objext \
     5083      conftest$ac_exeext conftest.$ac_ext
     5084fi
     5085echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
     5086echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5087if test $ac_cv_working_alloca_h = yes; then
     5088
     5089cat >>confdefs.h <<\_ACEOF
    21285090#define HAVE_ALLOCA_H 1
    2129 EOF
    2130 
    2131 fi
    2132 
    2133 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2134 echo "configure:2135: checking for alloca" >&5
    2135 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2136   echo $ac_n "(cached) $ac_c" 1>&6
    2137 else
    2138   cat > conftest.$ac_ext <<EOF
    2139 #line 2140 "configure"
    2140 #include "confdefs.h"
    2141 
     5091_ACEOF
     5092
     5093fi
     5094
     5095echo "$as_me:$LINENO: checking for alloca" >&5
     5096echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     5097if test "${ac_cv_func_alloca_works+set}" = set; then
     5098  echo $ECHO_N "(cached) $ECHO_C" >&6
     5099else
     5100  cat >conftest.$ac_ext <<_ACEOF
     5101/* confdefs.h.  */
     5102_ACEOF
     5103cat confdefs.h >>conftest.$ac_ext
     5104cat >>conftest.$ac_ext <<_ACEOF
     5105/* end confdefs.h.  */
    21425106#ifdef __GNUC__
    21435107# define alloca __builtin_alloca
     
    21615125#endif
    21625126
    2163 int main() {
    2164 char *p = (char *) alloca(1);
    2165 ; return 0; }
    2166 EOF
    2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2168   rm -rf conftest*
     5127int
     5128main ()
     5129{
     5130char *p = (char *) alloca (1);
     5131  ;
     5132  return 0;
     5133}
     5134_ACEOF
     5135rm -f conftest.$ac_objext conftest$ac_exeext
     5136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5137  (eval $ac_link) 2>conftest.er1
     5138  ac_status=$?
     5139  grep -v '^ *+' conftest.er1 >conftest.err
     5140  rm -f conftest.er1
     5141  cat conftest.err >&5
     5142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5143  (exit $ac_status); } &&
     5144     { ac_try='test -z "$ac_c_werror_flag"
     5145             || test ! -s conftest.err'
     5146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5147  (eval $ac_try) 2>&5
     5148  ac_status=$?
     5149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5150  (exit $ac_status); }; } &&
     5151     { ac_try='test -s conftest$ac_exeext'
     5152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5153  (eval $ac_try) 2>&5
     5154  ac_status=$?
     5155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5156  (exit $ac_status); }; }; then
    21695157  ac_cv_func_alloca_works=yes
    21705158else
    2171   echo "configure: failed program was:" >&5
    2172   cat conftest.$ac_ext >&5
    2173   rm -rf conftest*
    2174   ac_cv_func_alloca_works=no
    2175 fi
    2176 rm -f conftest*
    2177 fi
    2178 
    2179 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     5159  echo "$as_me: failed program was:" >&5
     5160sed 's/^/| /' conftest.$ac_ext >&5
     5161
     5162ac_cv_func_alloca_works=no
     5163fi
     5164rm -f conftest.err conftest.$ac_objext \
     5165      conftest$ac_exeext conftest.$ac_ext
     5166fi
     5167echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
     5168echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5169
    21805170if test $ac_cv_func_alloca_works = yes; then
    2181   cat >> confdefs.h <<\EOF
     5171
     5172cat >>confdefs.h <<\_ACEOF
    21825173#define HAVE_ALLOCA 1
    2183 EOF
    2184 
    2185 fi
    2186 
    2187 if test $ac_cv_func_alloca_works = no; then
     5174_ACEOF
     5175
     5176else
    21885177  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    2189   # that cause trouble.  Some versions do not even contain alloca or
    2190   # contain a buggy version.  If you still want to use their alloca,
    2191   # use ar to extract alloca.o from them instead of compiling alloca.c.
    2192   ALLOCA=alloca.${ac_objext}
    2193   cat >> confdefs.h <<\EOF
     5178# that cause trouble.  Some versions do not even contain alloca or
     5179# contain a buggy version.  If you still want to use their alloca,
     5180# use ar to extract alloca.o from them instead of compiling alloca.c.
     5181
     5182ALLOCA=alloca.$ac_objext
     5183
     5184cat >>confdefs.h <<\_ACEOF
    21945185#define C_ALLOCA 1
    2195 EOF
    2196 
    2197 
    2198 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2199 echo "configure:2200: checking whether alloca needs Cray hooks" >&5
    2200 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2201   echo $ac_n "(cached) $ac_c" 1>&6
    2202 else
    2203   cat > conftest.$ac_ext <<EOF
    2204 #line 2205 "configure"
    2205 #include "confdefs.h"
     5186_ACEOF
     5187
     5188
     5189echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
     5190echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     5191if test "${ac_cv_os_cray+set}" = set; then
     5192  echo $ECHO_N "(cached) $ECHO_C" >&6
     5193else
     5194  cat >conftest.$ac_ext <<_ACEOF
     5195/* confdefs.h.  */
     5196_ACEOF
     5197cat confdefs.h >>conftest.$ac_ext
     5198cat >>conftest.$ac_ext <<_ACEOF
     5199/* end confdefs.h.  */
    22065200#if defined(CRAY) && ! defined(CRAY2)
    22075201webecray
     
    22105204#endif
    22115205
    2212 EOF
     5206_ACEOF
    22135207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2214   egrep "webecray" >/dev/null 2>&1; then
    2215   rm -rf conftest*
     5208  $EGREP "webecray" >/dev/null 2>&1; then
    22165209  ac_cv_os_cray=yes
    22175210else
    2218   rm -rf conftest*
    22195211  ac_cv_os_cray=no
    22205212fi
     
    22225214
    22235215fi
    2224 
    2225 echo "$ac_t""$ac_cv_os_cray" 1>&6
     5216echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
     5217echo "${ECHO_T}$ac_cv_os_cray" >&6
    22265218if test $ac_cv_os_cray = yes; then
    2227 for ac_func in _getb67 GETB67 getb67; do
    2228   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2229 echo "configure:2230: checking for $ac_func" >&5
    2230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2231   echo $ac_n "(cached) $ac_c" 1>&6
    2232 else
    2233   cat > conftest.$ac_ext <<EOF
    2234 #line 2235 "configure"
    2235 #include "confdefs.h"
     5219  for ac_func in _getb67 GETB67 getb67; do
     5220    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5221echo "$as_me:$LINENO: checking for $ac_func" >&5
     5222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5223if eval "test \"\${$as_ac_var+set}\" = set"; then
     5224  echo $ECHO_N "(cached) $ECHO_C" >&6
     5225else
     5226  cat >conftest.$ac_ext <<_ACEOF
     5227/* confdefs.h.  */
     5228_ACEOF
     5229cat confdefs.h >>conftest.$ac_ext
     5230cat >>conftest.$ac_ext <<_ACEOF
     5231/* end confdefs.h.  */
     5232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5233   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5234#define $ac_func innocuous_$ac_func
     5235
    22365236/* System header to define __stub macros and hopefully few prototypes,
    2237     which can conflict with char $ac_func(); below.  */
    2238 #include <assert.h>
     5237    which can conflict with char $ac_func (); below.
     5238    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5239    <limits.h> exists even on freestanding compilers.  */
     5240
     5241#ifdef __STDC__
     5242# include <limits.h>
     5243#else
     5244# include <assert.h>
     5245#endif
     5246
     5247#undef $ac_func
     5248
    22395249/* Override any gcc2 internal prototype to avoid an error.  */
     5250#ifdef __cplusplus
     5251extern "C"
     5252{
     5253#endif
    22405254/* We use char because int might match the return type of a gcc2
    2241     builtin and then its argument prototype would still apply.  */
    2242 char $ac_func();
    2243 
    2244 int main() {
    2245 
     5255   builtin and then its argument prototype would still apply.  */
     5256char $ac_func ();
    22465257/* The GNU C library defines this for functions which it implements
    22475258    to always fail with ENOSYS.  Some functions are actually named
     
    22505261choke me
    22515262#else
    2252 $ac_func();
     5263char (*f) () = $ac_func;
    22535264#endif
    2254 
    2255 ; return 0; }
    2256 EOF
    2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2258   rm -rf conftest*
    2259   eval "ac_cv_func_$ac_func=yes"
    2260 else
    2261   echo "configure: failed program was:" >&5
    2262   cat conftest.$ac_ext >&5
    2263   rm -rf conftest*
    2264   eval "ac_cv_func_$ac_func=no"
    2265 fi
    2266 rm -f conftest*
    2267 fi
    2268 
    2269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2270   echo "$ac_t""yes" 1>&6
    2271   cat >> confdefs.h <<EOF
     5265#ifdef __cplusplus
     5266}
     5267#endif
     5268
     5269int
     5270main ()
     5271{
     5272return f != $ac_func;
     5273  ;
     5274  return 0;
     5275}
     5276_ACEOF
     5277rm -f conftest.$ac_objext conftest$ac_exeext
     5278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5279  (eval $ac_link) 2>conftest.er1
     5280  ac_status=$?
     5281  grep -v '^ *+' conftest.er1 >conftest.err
     5282  rm -f conftest.er1
     5283  cat conftest.err >&5
     5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5285  (exit $ac_status); } &&
     5286     { ac_try='test -z "$ac_c_werror_flag"
     5287             || test ! -s conftest.err'
     5288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5289  (eval $ac_try) 2>&5
     5290  ac_status=$?
     5291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5292  (exit $ac_status); }; } &&
     5293     { ac_try='test -s conftest$ac_exeext'
     5294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5295  (eval $ac_try) 2>&5
     5296  ac_status=$?
     5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5298  (exit $ac_status); }; }; then
     5299  eval "$as_ac_var=yes"
     5300else
     5301  echo "$as_me: failed program was:" >&5
     5302sed 's/^/| /' conftest.$ac_ext >&5
     5303
     5304eval "$as_ac_var=no"
     5305fi
     5306rm -f conftest.err conftest.$ac_objext \
     5307      conftest$ac_exeext conftest.$ac_ext
     5308fi
     5309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5311if test `eval echo '${'$as_ac_var'}'` = yes; then
     5312
     5313cat >>confdefs.h <<_ACEOF
    22725314#define CRAY_STACKSEG_END $ac_func
    2273 EOF
    2274 
    2275   break
    2276 else
    2277   echo "$ac_t""no" 1>&6
    2278 fi
    2279 
    2280 done
    2281 fi
    2282 
    2283 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2284 echo "configure:2285: checking stack direction for C alloca" >&5
    2285 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    2286   echo $ac_n "(cached) $ac_c" 1>&6
     5315_ACEOF
     5316
     5317    break
     5318fi
     5319
     5320  done
     5321fi
     5322
     5323echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
     5324echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
     5325if test "${ac_cv_c_stack_direction+set}" = set; then
     5326  echo $ECHO_N "(cached) $ECHO_C" >&6
    22875327else
    22885328  if test "$cross_compiling" = yes; then
    22895329  ac_cv_c_stack_direction=0
    22905330else
    2291   cat > conftest.$ac_ext <<EOF
    2292 #line 2293 "configure"
    2293 #include "confdefs.h"
     5331  cat >conftest.$ac_ext <<_ACEOF
     5332/* confdefs.h.  */
     5333_ACEOF
     5334cat confdefs.h >>conftest.$ac_ext
     5335cat >>conftest.$ac_ext <<_ACEOF
     5336/* end confdefs.h.  */
     5337int
    22945338find_stack_direction ()
    22955339{
     
    23045348    return (&dummy > addr) ? 1 : -1;
    23055349}
     5350
     5351int
    23065352main ()
    23075353{
    2308   exit (find_stack_direction() < 0);
     5354  exit (find_stack_direction () < 0);
    23095355}
    2310 EOF
    2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2312 then
     5356_ACEOF
     5357rm -f conftest$ac_exeext
     5358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5359  (eval $ac_link) 2>&5
     5360  ac_status=$?
     5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5362  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5364  (eval $ac_try) 2>&5
     5365  ac_status=$?
     5366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5367  (exit $ac_status); }; }; then
    23135368  ac_cv_c_stack_direction=1
    23145369else
    2315   echo "configure: failed program was:" >&5
    2316   cat conftest.$ac_ext >&5
    2317   rm -fr conftest*
    2318   ac_cv_c_stack_direction=-1
    2319 fi
    2320 rm -fr conftest*
    2321 fi
    2322 
    2323 fi
    2324 
    2325 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
    2326 cat >> confdefs.h <<EOF
     5370  echo "$as_me: program exited with status $ac_status" >&5
     5371echo "$as_me: failed program was:" >&5
     5372sed 's/^/| /' conftest.$ac_ext >&5
     5373
     5374( exit $ac_status )
     5375ac_cv_c_stack_direction=-1
     5376fi
     5377rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5378fi
     5379fi
     5380echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
     5381echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
     5382
     5383cat >>confdefs.h <<_ACEOF
    23275384#define STACK_DIRECTION $ac_cv_c_stack_direction
    2328 EOF
    2329 
    2330 fi
    2331 
    2332 if test $ac_cv_prog_gcc = yes; then
    2333     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2334 echo "configure:2335: checking whether ${CC-cc} needs -traditional" >&5
    2335 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    2336   echo $ac_n "(cached) $ac_c" 1>&6
     5385_ACEOF
     5386
     5387
     5388fi
     5389
     5390if test $ac_cv_c_compiler_gnu = yes; then
     5391    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
     5392echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
     5393if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     5394  echo $ECHO_N "(cached) $ECHO_C" >&6
    23375395else
    23385396    ac_pattern="Autoconf.*'x'"
    2339   cat > conftest.$ac_ext <<EOF
    2340 #line 2341 "configure"
    2341 #include "confdefs.h"
     5397  cat >conftest.$ac_ext <<_ACEOF
     5398/* confdefs.h.  */
     5399_ACEOF
     5400cat confdefs.h >>conftest.$ac_ext
     5401cat >>conftest.$ac_ext <<_ACEOF
     5402/* end confdefs.h.  */
    23425403#include <sgtty.h>
    23435404Autoconf TIOCGETP
    2344 EOF
     5405_ACEOF
    23455406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2346   egrep "$ac_pattern" >/dev/null 2>&1; then
    2347   rm -rf conftest*
     5407  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    23485408  ac_cv_prog_gcc_traditional=yes
    23495409else
    2350   rm -rf conftest*
    23515410  ac_cv_prog_gcc_traditional=no
    23525411fi
     
    23555414
    23565415  if test $ac_cv_prog_gcc_traditional = no; then
    2357     cat > conftest.$ac_ext <<EOF
    2358 #line 2359 "configure"
    2359 #include "confdefs.h"
     5416    cat >conftest.$ac_ext <<_ACEOF
     5417/* confdefs.h.  */
     5418_ACEOF
     5419cat confdefs.h >>conftest.$ac_ext
     5420cat >>conftest.$ac_ext <<_ACEOF
     5421/* end confdefs.h.  */
    23605422#include <termio.h>
    23615423Autoconf TCGETA
    2362 EOF
     5424_ACEOF
    23635425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2364   egrep "$ac_pattern" >/dev/null 2>&1; then
    2365   rm -rf conftest*
     5426  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    23665427  ac_cv_prog_gcc_traditional=yes
    23675428fi
     
    23705431  fi
    23715432fi
    2372 
    2373 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
     5433echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
     5434echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    23745435  if test $ac_cv_prog_gcc_traditional = yes; then
    23755436    CC="$CC -traditional"
     
    23775438fi
    23785439
    2379 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2380 echo "configure:2381: checking return type of signal handlers" >&5
    2381 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    2382   echo $ac_n "(cached) $ac_c" 1>&6
    2383 else
    2384   cat > conftest.$ac_ext <<EOF
    2385 #line 2386 "configure"
    2386 #include "confdefs.h"
     5440echo "$as_me:$LINENO: checking return type of signal handlers" >&5
     5441echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
     5442if test "${ac_cv_type_signal+set}" = set; then
     5443  echo $ECHO_N "(cached) $ECHO_C" >&6
     5444else
     5445  cat >conftest.$ac_ext <<_ACEOF
     5446/* confdefs.h.  */
     5447_ACEOF
     5448cat confdefs.h >>conftest.$ac_ext
     5449cat >>conftest.$ac_ext <<_ACEOF
     5450/* end confdefs.h.  */
    23875451#include <sys/types.h>
    23885452#include <signal.h>
    23895453#ifdef signal
    2390 #undef signal
     5454# undef signal
    23915455#endif
    23925456#ifdef __cplusplus
     
    23965460#endif
    23975461
    2398 int main() {
     5462int
     5463main ()
     5464{
    23995465int i;
    2400 ; return 0; }
    2401 EOF
    2402 if { (eval echo configure:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2403   rm -rf conftest*
     5466  ;
     5467  return 0;
     5468}
     5469_ACEOF
     5470rm -f conftest.$ac_objext
     5471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5472  (eval $ac_compile) 2>conftest.er1
     5473  ac_status=$?
     5474  grep -v '^ *+' conftest.er1 >conftest.err
     5475  rm -f conftest.er1
     5476  cat conftest.err >&5
     5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5478  (exit $ac_status); } &&
     5479     { ac_try='test -z "$ac_c_werror_flag"
     5480             || test ! -s conftest.err'
     5481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5482  (eval $ac_try) 2>&5
     5483  ac_status=$?
     5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5485  (exit $ac_status); }; } &&
     5486     { ac_try='test -s conftest.$ac_objext'
     5487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5488  (eval $ac_try) 2>&5
     5489  ac_status=$?
     5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5491  (exit $ac_status); }; }; then
    24045492  ac_cv_type_signal=void
    24055493else
    2406   echo "configure: failed program was:" >&5
    2407   cat conftest.$ac_ext >&5
    2408   rm -rf conftest*
    2409   ac_cv_type_signal=int
    2410 fi
    2411 rm -f conftest*
    2412 fi
    2413 
    2414 echo "$ac_t""$ac_cv_type_signal" 1>&6
    2415 cat >> confdefs.h <<EOF
     5494  echo "$as_me: failed program was:" >&5
     5495sed 's/^/| /' conftest.$ac_ext >&5
     5496
     5497ac_cv_type_signal=int
     5498fi
     5499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5500fi
     5501echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
     5502echo "${ECHO_T}$ac_cv_type_signal" >&6
     5503
     5504cat >>confdefs.h <<_ACEOF
    24165505#define RETSIGTYPE $ac_cv_type_signal
    2417 EOF
    2418 
    2419 
    2420 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2421 echo "configure:2422: checking for vprintf" >&5
    2422 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    2423   echo $ac_n "(cached) $ac_c" 1>&6
    2424 else
    2425   cat > conftest.$ac_ext <<EOF
    2426 #line 2427 "configure"
    2427 #include "confdefs.h"
     5506_ACEOF
     5507
     5508
     5509
     5510for ac_func in vprintf
     5511do
     5512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5513echo "$as_me:$LINENO: checking for $ac_func" >&5
     5514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5515if eval "test \"\${$as_ac_var+set}\" = set"; then
     5516  echo $ECHO_N "(cached) $ECHO_C" >&6
     5517else
     5518  cat >conftest.$ac_ext <<_ACEOF
     5519/* confdefs.h.  */
     5520_ACEOF
     5521cat confdefs.h >>conftest.$ac_ext
     5522cat >>conftest.$ac_ext <<_ACEOF
     5523/* end confdefs.h.  */
     5524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5525   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5526#define $ac_func innocuous_$ac_func
     5527
    24285528/* System header to define __stub macros and hopefully few prototypes,
    2429     which can conflict with char vprintf(); below.  */
    2430 #include <assert.h>
     5529    which can conflict with char $ac_func (); below.
     5530    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5531    <limits.h> exists even on freestanding compilers.  */
     5532
     5533#ifdef __STDC__
     5534# include <limits.h>
     5535#else
     5536# include <assert.h>
     5537#endif
     5538
     5539#undef $ac_func
     5540
    24315541/* Override any gcc2 internal prototype to avoid an error.  */
     5542#ifdef __cplusplus
     5543extern "C"
     5544{
     5545#endif
    24325546/* We use char because int might match the return type of a gcc2
    2433     builtin and then its argument prototype would still apply.  */
    2434 char vprintf();
    2435 
    2436 int main() {
    2437 
     5547   builtin and then its argument prototype would still apply.  */
     5548char $ac_func ();
    24385549/* The GNU C library defines this for functions which it implements
    24395550    to always fail with ENOSYS.  Some functions are actually named
    24405551    something starting with __ and the normal name is an alias.  */
    2441 #if defined (__stub_vprintf) || defined (__stub___vprintf)
     5552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    24425553choke me
    24435554#else
    2444 vprintf();
     5555char (*f) () = $ac_func;
    24455556#endif
    2446 
    2447 ; return 0; }
    2448 EOF
    2449 if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2450   rm -rf conftest*
    2451   eval "ac_cv_func_vprintf=yes"
    2452 else
    2453   echo "configure: failed program was:" >&5
    2454   cat conftest.$ac_ext >&5
    2455   rm -rf conftest*
    2456   eval "ac_cv_func_vprintf=no"
    2457 fi
    2458 rm -f conftest*
    2459 fi
    2460 
    2461 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    2462   echo "$ac_t""yes" 1>&6
    2463   cat >> confdefs.h <<\EOF
    2464 #define HAVE_VPRINTF 1
    2465 EOF
    2466 
    2467 else
    2468   echo "$ac_t""no" 1>&6
    2469 fi
    2470 
    2471 if test "$ac_cv_func_vprintf" != yes; then
    2472 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2473 echo "configure:2474: checking for _doprnt" >&5
    2474 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    2475   echo $ac_n "(cached) $ac_c" 1>&6
    2476 else
    2477   cat > conftest.$ac_ext <<EOF
    2478 #line 2479 "configure"
    2479 #include "confdefs.h"
     5557#ifdef __cplusplus
     5558}
     5559#endif
     5560
     5561int
     5562main ()
     5563{
     5564return f != $ac_func;
     5565  ;
     5566  return 0;
     5567}
     5568_ACEOF
     5569rm -f conftest.$ac_objext conftest$ac_exeext
     5570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5571  (eval $ac_link) 2>conftest.er1
     5572  ac_status=$?
     5573  grep -v '^ *+' conftest.er1 >conftest.err
     5574  rm -f conftest.er1
     5575  cat conftest.err >&5
     5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5577  (exit $ac_status); } &&
     5578     { ac_try='test -z "$ac_c_werror_flag"
     5579             || test ! -s conftest.err'
     5580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5581  (eval $ac_try) 2>&5
     5582  ac_status=$?
     5583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5584  (exit $ac_status); }; } &&
     5585     { ac_try='test -s conftest$ac_exeext'
     5586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5587  (eval $ac_try) 2>&5
     5588  ac_status=$?
     5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5590  (exit $ac_status); }; }; then
     5591  eval "$as_ac_var=yes"
     5592else
     5593  echo "$as_me: failed program was:" >&5
     5594sed 's/^/| /' conftest.$ac_ext >&5
     5595
     5596eval "$as_ac_var=no"
     5597fi
     5598rm -f conftest.err conftest.$ac_objext \
     5599      conftest$ac_exeext conftest.$ac_ext
     5600fi
     5601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5603if test `eval echo '${'$as_ac_var'}'` = yes; then
     5604  cat >>confdefs.h <<_ACEOF
     5605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5606_ACEOF
     5607
     5608echo "$as_me:$LINENO: checking for _doprnt" >&5
     5609echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
     5610if test "${ac_cv_func__doprnt+set}" = set; then
     5611  echo $ECHO_N "(cached) $ECHO_C" >&6
     5612else
     5613  cat >conftest.$ac_ext <<_ACEOF
     5614/* confdefs.h.  */
     5615_ACEOF
     5616cat confdefs.h >>conftest.$ac_ext
     5617cat >>conftest.$ac_ext <<_ACEOF
     5618/* end confdefs.h.  */
     5619/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
     5620   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5621#define _doprnt innocuous__doprnt
     5622
    24805623/* System header to define __stub macros and hopefully few prototypes,
    2481     which can conflict with char _doprnt(); below.  */
    2482 #include <assert.h>
     5624    which can conflict with char _doprnt (); below.
     5625    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5626    <limits.h> exists even on freestanding compilers.  */
     5627
     5628#ifdef __STDC__
     5629# include <limits.h>
     5630#else
     5631# include <assert.h>
     5632#endif
     5633
     5634#undef _doprnt
     5635
    24835636/* Override any gcc2 internal prototype to avoid an error.  */
     5637#ifdef __cplusplus
     5638extern "C"
     5639{
     5640#endif
    24845641/* We use char because int might match the return type of a gcc2
    2485     builtin and then its argument prototype would still apply.  */
    2486 char _doprnt();
    2487 
    2488 int main() {
    2489 
     5642   builtin and then its argument prototype would still apply.  */
     5643char _doprnt ();
    24905644/* The GNU C library defines this for functions which it implements
    24915645    to always fail with ENOSYS.  Some functions are actually named
     
    24945648choke me
    24955649#else
    2496 _doprnt();
     5650char (*f) () = _doprnt;
    24975651#endif
    2498 
    2499 ; return 0; }
    2500 EOF
    2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2502   rm -rf conftest*
    2503   eval "ac_cv_func__doprnt=yes"
    2504 else
    2505   echo "configure: failed program was:" >&5
    2506   cat conftest.$ac_ext >&5
    2507   rm -rf conftest*
    2508   eval "ac_cv_func__doprnt=no"
    2509 fi
    2510 rm -f conftest*
    2511 fi
    2512 
    2513 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    2514   echo "$ac_t""yes" 1>&6
    2515   cat >> confdefs.h <<\EOF
     5652#ifdef __cplusplus
     5653}
     5654#endif
     5655
     5656int
     5657main ()
     5658{
     5659return f != _doprnt;
     5660  ;
     5661  return 0;
     5662}
     5663_ACEOF
     5664rm -f conftest.$ac_objext conftest$ac_exeext
     5665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5666  (eval $ac_link) 2>conftest.er1
     5667  ac_status=$?
     5668  grep -v '^ *+' conftest.er1 >conftest.err
     5669  rm -f conftest.er1
     5670  cat conftest.err >&5
     5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5672  (exit $ac_status); } &&
     5673     { ac_try='test -z "$ac_c_werror_flag"
     5674             || test ! -s conftest.err'
     5675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5676  (eval $ac_try) 2>&5
     5677  ac_status=$?
     5678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5679  (exit $ac_status); }; } &&
     5680     { ac_try='test -s conftest$ac_exeext'
     5681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5682  (eval $ac_try) 2>&5
     5683  ac_status=$?
     5684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5685  (exit $ac_status); }; }; then
     5686  ac_cv_func__doprnt=yes
     5687else
     5688  echo "$as_me: failed program was:" >&5
     5689sed 's/^/| /' conftest.$ac_ext >&5
     5690
     5691ac_cv_func__doprnt=no
     5692fi
     5693rm -f conftest.err conftest.$ac_objext \
     5694      conftest$ac_exeext conftest.$ac_ext
     5695fi
     5696echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
     5697echo "${ECHO_T}$ac_cv_func__doprnt" >&6
     5698if test $ac_cv_func__doprnt = yes; then
     5699
     5700cat >>confdefs.h <<\_ACEOF
    25165701#define HAVE_DOPRNT 1
    2517 EOF
    2518 
    2519 else
    2520   echo "$ac_t""no" 1>&6
    2521 fi
    2522 
    2523 fi
     5702_ACEOF
     5703
     5704fi
     5705
     5706fi
     5707done
     5708
     5709
     5710
     5711
     5712
     5713
     5714
     5715
     5716
     5717
     5718
    25245719
    25255720for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    25265721do
    2527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2528 echo "configure:2529: checking for $ac_func" >&5
    2529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2530   echo $ac_n "(cached) $ac_c" 1>&6
    2531 else
    2532   cat > conftest.$ac_ext <<EOF
    2533 #line 2534 "configure"
    2534 #include "confdefs.h"
     5722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5723echo "$as_me:$LINENO: checking for $ac_func" >&5
     5724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5725if eval "test \"\${$as_ac_var+set}\" = set"; then
     5726  echo $ECHO_N "(cached) $ECHO_C" >&6
     5727else
     5728  cat >conftest.$ac_ext <<_ACEOF
     5729/* confdefs.h.  */
     5730_ACEOF
     5731cat confdefs.h >>conftest.$ac_ext
     5732cat >>conftest.$ac_ext <<_ACEOF
     5733/* end confdefs.h.  */
     5734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5735   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5736#define $ac_func innocuous_$ac_func
     5737
    25355738/* System header to define __stub macros and hopefully few prototypes,
    2536     which can conflict with char $ac_func(); below.  */
    2537 #include <assert.h>
     5739    which can conflict with char $ac_func (); below.
     5740    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5741    <limits.h> exists even on freestanding compilers.  */
     5742
     5743#ifdef __STDC__
     5744# include <limits.h>
     5745#else
     5746# include <assert.h>
     5747#endif
     5748
     5749#undef $ac_func
     5750
    25385751/* Override any gcc2 internal prototype to avoid an error.  */
     5752#ifdef __cplusplus
     5753extern "C"
     5754{
     5755#endif
    25395756/* We use char because int might match the return type of a gcc2
    2540     builtin and then its argument prototype would still apply.  */
    2541 char $ac_func();
    2542 
    2543 int main() {
    2544 
     5757   builtin and then its argument prototype would still apply.  */
     5758char $ac_func ();
    25455759/* The GNU C library defines this for functions which it implements
    25465760    to always fail with ENOSYS.  Some functions are actually named
     
    25495763choke me
    25505764#else
    2551 $ac_func();
     5765char (*f) () = $ac_func;
    25525766#endif
    2553 
    2554 ; return 0; }
    2555 EOF
    2556 if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2557   rm -rf conftest*
    2558   eval "ac_cv_func_$ac_func=yes"
    2559 else
    2560   echo "configure: failed program was:" >&5
    2561   cat conftest.$ac_ext >&5
    2562   rm -rf conftest*
    2563   eval "ac_cv_func_$ac_func=no"
    2564 fi
    2565 rm -f conftest*
    2566 fi
    2567 
    2568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2569   echo "$ac_t""yes" 1>&6
    2570     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2571   cat >> confdefs.h <<EOF
    2572 #define $ac_tr_func 1
    2573 EOF
    2574  
    2575 else
    2576   echo "$ac_t""no" 1>&6
     5767#ifdef __cplusplus
     5768}
     5769#endif
     5770
     5771int
     5772main ()
     5773{
     5774return f != $ac_func;
     5775  ;
     5776  return 0;
     5777}
     5778_ACEOF
     5779rm -f conftest.$ac_objext conftest$ac_exeext
     5780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5781  (eval $ac_link) 2>conftest.er1
     5782  ac_status=$?
     5783  grep -v '^ *+' conftest.er1 >conftest.err
     5784  rm -f conftest.er1
     5785  cat conftest.err >&5
     5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5787  (exit $ac_status); } &&
     5788     { ac_try='test -z "$ac_c_werror_flag"
     5789             || test ! -s conftest.err'
     5790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5791  (eval $ac_try) 2>&5
     5792  ac_status=$?
     5793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5794  (exit $ac_status); }; } &&
     5795     { ac_try='test -s conftest$ac_exeext'
     5796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5797  (eval $ac_try) 2>&5
     5798  ac_status=$?
     5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5800  (exit $ac_status); }; }; then
     5801  eval "$as_ac_var=yes"
     5802else
     5803  echo "$as_me: failed program was:" >&5
     5804sed 's/^/| /' conftest.$ac_ext >&5
     5805
     5806eval "$as_ac_var=no"
     5807fi
     5808rm -f conftest.err conftest.$ac_objext \
     5809      conftest$ac_exeext conftest.$ac_ext
     5810fi
     5811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5813if test `eval echo '${'$as_ac_var'}'` = yes; then
     5814  cat >>confdefs.h <<_ACEOF
     5815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5816_ACEOF
     5817
    25775818fi
    25785819done
     5820
     5821
     5822
    25795823
    25805824for ac_func in ftruncate strstr strcasecmp
    25815825do
    2582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2583 echo "configure:2584: checking for $ac_func" >&5
    2584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2585   echo $ac_n "(cached) $ac_c" 1>&6
    2586 else
    2587   cat > conftest.$ac_ext <<EOF
    2588 #line 2589 "configure"
    2589 #include "confdefs.h"
     5826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5827echo "$as_me:$LINENO: checking for $ac_func" >&5
     5828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5829if eval "test \"\${$as_ac_var+set}\" = set"; then
     5830  echo $ECHO_N "(cached) $ECHO_C" >&6
     5831else
     5832  cat >conftest.$ac_ext <<_ACEOF
     5833/* confdefs.h.  */
     5834_ACEOF
     5835cat confdefs.h >>conftest.$ac_ext
     5836cat >>conftest.$ac_ext <<_ACEOF
     5837/* end confdefs.h.  */
     5838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5839   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5840#define $ac_func innocuous_$ac_func
     5841
    25905842/* System header to define __stub macros and hopefully few prototypes,
    2591     which can conflict with char $ac_func(); below.  */
    2592 #include <assert.h>
     5843    which can conflict with char $ac_func (); below.
     5844    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5845    <limits.h> exists even on freestanding compilers.  */
     5846
     5847#ifdef __STDC__
     5848# include <limits.h>
     5849#else
     5850# include <assert.h>
     5851#endif
     5852
     5853#undef $ac_func
     5854
    25935855/* Override any gcc2 internal prototype to avoid an error.  */
     5856#ifdef __cplusplus
     5857extern "C"
     5858{
     5859#endif
    25945860/* We use char because int might match the return type of a gcc2
    2595     builtin and then its argument prototype would still apply.  */
    2596 char $ac_func();
    2597 
    2598 int main() {
    2599 
     5861   builtin and then its argument prototype would still apply.  */
     5862char $ac_func ();
    26005863/* The GNU C library defines this for functions which it implements
    26015864    to always fail with ENOSYS.  Some functions are actually named
     
    26045867choke me
    26055868#else
    2606 $ac_func();
     5869char (*f) () = $ac_func;
    26075870#endif
    2608 
    2609 ; return 0; }
    2610 EOF
    2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2612   rm -rf conftest*
    2613   eval "ac_cv_func_$ac_func=yes"
    2614 else
    2615   echo "configure: failed program was:" >&5
    2616   cat conftest.$ac_ext >&5
    2617   rm -rf conftest*
    2618   eval "ac_cv_func_$ac_func=no"
    2619 fi
    2620 rm -f conftest*
    2621 fi
    2622 
    2623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2624   echo "$ac_t""yes" 1>&6
    2625     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2626   cat >> confdefs.h <<EOF
    2627 #define $ac_tr_func 1
    2628 EOF
    2629  
    2630 else
    2631   echo "$ac_t""no" 1>&6
    2632 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
     5871#ifdef __cplusplus
     5872}
     5873#endif
     5874
     5875int
     5876main ()
     5877{
     5878return f != $ac_func;
     5879  ;
     5880  return 0;
     5881}
     5882_ACEOF
     5883rm -f conftest.$ac_objext conftest$ac_exeext
     5884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5885  (eval $ac_link) 2>conftest.er1
     5886  ac_status=$?
     5887  grep -v '^ *+' conftest.er1 >conftest.err
     5888  rm -f conftest.er1
     5889  cat conftest.err >&5
     5890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5891  (exit $ac_status); } &&
     5892     { ac_try='test -z "$ac_c_werror_flag"
     5893             || test ! -s conftest.err'
     5894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5895  (eval $ac_try) 2>&5
     5896  ac_status=$?
     5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5898  (exit $ac_status); }; } &&
     5899     { ac_try='test -s conftest$ac_exeext'
     5900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5901  (eval $ac_try) 2>&5
     5902  ac_status=$?
     5903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5904  (exit $ac_status); }; }; then
     5905  eval "$as_ac_var=yes"
     5906else
     5907  echo "$as_me: failed program was:" >&5
     5908sed 's/^/| /' conftest.$ac_ext >&5
     5909
     5910eval "$as_ac_var=no"
     5911fi
     5912rm -f conftest.err conftest.$ac_objext \
     5913      conftest$ac_exeext conftest.$ac_ext
     5914fi
     5915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5917if test `eval echo '${'$as_ac_var'}'` = yes; then
     5918  cat >>confdefs.h <<_ACEOF
     5919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5920_ACEOF
     5921
     5922else
     5923  case $LIBOBJS in
     5924    "$ac_func.$ac_objext"   | \
     5925  *" $ac_func.$ac_objext"   | \
     5926    "$ac_func.$ac_objext "* | \
     5927  *" $ac_func.$ac_objext "* ) ;;
     5928  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     5929esac
     5930
    26335931fi
    26345932done
     
    26395937# *** Custom checking (based on GNU tar configure.in) ***
    26405938# ---------------------------------------------------------------------------
    2641 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
    2642 echo "configure:2643: checking for HP-UX needing gmalloc" >&5
     5939echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
     5940echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    26435941if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    2644   echo "$ac_t""yes" 1>&6
    2645   LIBOBJS="$LIBOBJS gmalloc.o"
    2646   cat >> confdefs.h <<\EOF
     5942  echo "$as_me:$LINENO: result: yes" >&5
     5943echo "${ECHO_T}yes" >&6
     5944  case $LIBOBJS in
     5945    "gmalloc.$ac_objext"   | \
     5946  *" gmalloc.$ac_objext"   | \
     5947    "gmalloc.$ac_objext "* | \
     5948  *" gmalloc.$ac_objext "* ) ;;
     5949  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     5950esac
     5951
     5952  cat >>confdefs.h <<\_ACEOF
    26475953#define HAVE_VALLOC 1
    2648 EOF
    2649 
    2650 else
    2651   echo "$ac_t""no" 1>&6
    2652   for ac_func in valloc
     5954_ACEOF
     5955
     5956else
     5957  echo "$as_me:$LINENO: result: no" >&5
     5958echo "${ECHO_T}no" >&6
     5959
     5960for ac_func in valloc
    26535961do
    2654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2655 echo "configure:2656: checking for $ac_func" >&5
    2656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2657   echo $ac_n "(cached) $ac_c" 1>&6
    2658 else
    2659   cat > conftest.$ac_ext <<EOF
    2660 #line 2661 "configure"
    2661 #include "confdefs.h"
     5962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5963echo "$as_me:$LINENO: checking for $ac_func" >&5
     5964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5965if eval "test \"\${$as_ac_var+set}\" = set"; then
     5966  echo $ECHO_N "(cached) $ECHO_C" >&6
     5967else
     5968  cat >conftest.$ac_ext <<_ACEOF
     5969/* confdefs.h.  */
     5970_ACEOF
     5971cat confdefs.h >>conftest.$ac_ext
     5972cat >>conftest.$ac_ext <<_ACEOF
     5973/* end confdefs.h.  */
     5974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5975   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5976#define $ac_func innocuous_$ac_func
     5977
    26625978/* System header to define __stub macros and hopefully few prototypes,
    2663     which can conflict with char $ac_func(); below.  */
    2664 #include <assert.h>
     5979    which can conflict with char $ac_func (); below.
     5980    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5981    <limits.h> exists even on freestanding compilers.  */
     5982
     5983#ifdef __STDC__
     5984# include <limits.h>
     5985#else
     5986# include <assert.h>
     5987#endif
     5988
     5989#undef $ac_func
     5990
    26655991/* Override any gcc2 internal prototype to avoid an error.  */
     5992#ifdef __cplusplus
     5993extern "C"
     5994{
     5995#endif
    26665996/* We use char because int might match the return type of a gcc2
    2667     builtin and then its argument prototype would still apply.  */
    2668 char $ac_func();
    2669 
    2670 int main() {
    2671 
     5997   builtin and then its argument prototype would still apply.  */
     5998char $ac_func ();
    26725999/* The GNU C library defines this for functions which it implements
    26736000    to always fail with ENOSYS.  Some functions are actually named
     
    26766003choke me
    26776004#else
    2678 $ac_func();
     6005char (*f) () = $ac_func;
    26796006#endif
    2680 
    2681 ; return 0; }
    2682 EOF
    2683 if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2684   rm -rf conftest*
    2685   eval "ac_cv_func_$ac_func=yes"
    2686 else
    2687   echo "configure: failed program was:" >&5
    2688   cat conftest.$ac_ext >&5
    2689   rm -rf conftest*
    2690   eval "ac_cv_func_$ac_func=no"
    2691 fi
    2692 rm -f conftest*
    2693 fi
    2694 
    2695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2696   echo "$ac_t""yes" 1>&6
    2697     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2698   cat >> confdefs.h <<EOF
    2699 #define $ac_tr_func 1
    2700 EOF
    2701  
    2702 else
    2703   echo "$ac_t""no" 1>&6
     6007#ifdef __cplusplus
     6008}
     6009#endif
     6010
     6011int
     6012main ()
     6013{
     6014return f != $ac_func;
     6015  ;
     6016  return 0;
     6017}
     6018_ACEOF
     6019rm -f conftest.$ac_objext conftest$ac_exeext
     6020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6021  (eval $ac_link) 2>conftest.er1
     6022  ac_status=$?
     6023  grep -v '^ *+' conftest.er1 >conftest.err
     6024  rm -f conftest.er1
     6025  cat conftest.err >&5
     6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6027  (exit $ac_status); } &&
     6028     { ac_try='test -z "$ac_c_werror_flag"
     6029             || test ! -s conftest.err'
     6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6031  (eval $ac_try) 2>&5
     6032  ac_status=$?
     6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6034  (exit $ac_status); }; } &&
     6035     { ac_try='test -s conftest$ac_exeext'
     6036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6037  (eval $ac_try) 2>&5
     6038  ac_status=$?
     6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6040  (exit $ac_status); }; }; then
     6041  eval "$as_ac_var=yes"
     6042else
     6043  echo "$as_me: failed program was:" >&5
     6044sed 's/^/| /' conftest.$ac_ext >&5
     6045
     6046eval "$as_ac_var=no"
     6047fi
     6048rm -f conftest.err conftest.$ac_objext \
     6049      conftest$ac_exeext conftest.$ac_ext
     6050fi
     6051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6052echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6053if test `eval echo '${'$as_ac_var'}'` = yes; then
     6054  cat >>confdefs.h <<_ACEOF
     6055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6056_ACEOF
     6057
    27046058fi
    27056059done
     
    27076061fi
    27086062
    2709 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
    2710 echo "configure:2711: checking if malloc debugging is wanted" >&5
     6063echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
     6064echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
     6065
    27116066# Check whether --with-dmalloc or --without-dmalloc was given.
    27126067if test "${with_dmalloc+set}" = set; then
    27136068  withval="$with_dmalloc"
    27146069  if test "$withval" = yes; then
    2715   echo "$ac_t""yes" 1>&6
    2716   cat >> confdefs.h <<\EOF
     6070  echo "$as_me:$LINENO: result: yes" >&5
     6071echo "${ECHO_T}yes" >&6
     6072  cat >>confdefs.h <<\_ACEOF
    27176073#define WITH_DMALLOC 1
    2718 EOF
     6074_ACEOF
    27196075
    27206076  LIBS="$LIBS -ldmalloc"
    27216077  LDFLAGS="$LDFLAGS -g"
    27226078else
    2723   echo "$ac_t""no" 1>&6
    2724 fi
    2725 else
    2726   echo "$ac_t""no" 1>&6
    2727 fi
    2728 
    2729 
    2730 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
    2731 echo "configure:2732: checking which of rx or regex is wanted" >&5
     6079  echo "$as_me:$LINENO: result: no" >&5
     6080echo "${ECHO_T}no" >&6
     6081fi
     6082else
     6083  echo "$as_me:$LINENO: result: no" >&5
     6084echo "${ECHO_T}no" >&6
     6085fi;
     6086
     6087echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
     6088echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
     6089
    27326090# Check whether --with-regex or --without-regex was given.
    27336091if test "${with_regex+set}" = set; then
     
    27356093  if test "$withval" = yes; then
    27366094  ac_with_regex=1
    2737   echo "$ac_t""regex" 1>&6
    2738   cat >> confdefs.h <<\EOF
     6095  echo "$as_me:$LINENO: result: regex" >&5
     6096echo "${ECHO_T}regex" >&6
     6097  cat >>confdefs.h <<\_ACEOF
    27396098#define WITH_REGEX 1
    2740 EOF
    2741 
    2742   LIBOBJS="$LIBOBJS regex.o"
    2743 fi
    2744 fi
    2745 
     6099_ACEOF
     6100
     6101  case $LIBOBJS in
     6102    "regex.$ac_objext"   | \
     6103  *" regex.$ac_objext"   | \
     6104    "regex.$ac_objext "* | \
     6105  *" regex.$ac_objext "* ) ;;
     6106  *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
     6107esac
     6108
     6109fi
     6110fi;
    27466111if test -z "$ac_with_regex"; then
    2747   echo "$ac_t""rx" 1>&6
    2748   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
    2749 echo "configure:2750: checking for re_rx_search" >&5
    2750 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    2751   echo $ac_n "(cached) $ac_c" 1>&6
    2752 else
    2753   cat > conftest.$ac_ext <<EOF
    2754 #line 2755 "configure"
    2755 #include "confdefs.h"
     6112  echo "$as_me:$LINENO: result: rx" >&5
     6113echo "${ECHO_T}rx" >&6
     6114  echo "$as_me:$LINENO: checking for re_rx_search" >&5
     6115echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
     6116if test "${ac_cv_func_re_rx_search+set}" = set; then
     6117  echo $ECHO_N "(cached) $ECHO_C" >&6
     6118else
     6119  cat >conftest.$ac_ext <<_ACEOF
     6120/* confdefs.h.  */
     6121_ACEOF
     6122cat confdefs.h >>conftest.$ac_ext
     6123cat >>conftest.$ac_ext <<_ACEOF
     6124/* end confdefs.h.  */
     6125/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
     6126   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6127#define re_rx_search innocuous_re_rx_search
     6128
    27566129/* System header to define __stub macros and hopefully few prototypes,
    2757     which can conflict with char re_rx_search(); below.  */
    2758 #include <assert.h>
     6130    which can conflict with char re_rx_search (); below.
     6131    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6132    <limits.h> exists even on freestanding compilers.  */
     6133
     6134#ifdef __STDC__
     6135# include <limits.h>
     6136#else
     6137# include <assert.h>
     6138#endif
     6139
     6140#undef re_rx_search
     6141
    27596142/* Override any gcc2 internal prototype to avoid an error.  */
     6143#ifdef __cplusplus
     6144extern "C"
     6145{
     6146#endif
    27606147/* We use char because int might match the return type of a gcc2
    2761     builtin and then its argument prototype would still apply.  */
    2762 char re_rx_search();
    2763 
    2764 int main() {
    2765 
     6148   builtin and then its argument prototype would still apply.  */
     6149char re_rx_search ();
    27666150/* The GNU C library defines this for functions which it implements
    27676151    to always fail with ENOSYS.  Some functions are actually named
     
    27706154choke me
    27716155#else
    2772 re_rx_search();
     6156char (*f) () = re_rx_search;
    27736157#endif
    2774 
    2775 ; return 0; }
    2776 EOF
    2777 if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2778   rm -rf conftest*
    2779   eval "ac_cv_func_re_rx_search=yes"
    2780 else
    2781   echo "configure: failed program was:" >&5
    2782   cat conftest.$ac_ext >&5
    2783   rm -rf conftest*
    2784   eval "ac_cv_func_re_rx_search=no"
    2785 fi
    2786 rm -f conftest*
    2787 fi
    2788 
    2789 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
    2790   echo "$ac_t""yes" 1>&6
     6158#ifdef __cplusplus
     6159}
     6160#endif
     6161
     6162int
     6163main ()
     6164{
     6165return f != re_rx_search;
     6166  ;
     6167  return 0;
     6168}
     6169_ACEOF
     6170rm -f conftest.$ac_objext conftest$ac_exeext
     6171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6172  (eval $ac_link) 2>conftest.er1
     6173  ac_status=$?
     6174  grep -v '^ *+' conftest.er1 >conftest.err
     6175  rm -f conftest.er1
     6176  cat conftest.err >&5
     6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6178  (exit $ac_status); } &&
     6179     { ac_try='test -z "$ac_c_werror_flag"
     6180             || test ! -s conftest.err'
     6181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6182  (eval $ac_try) 2>&5
     6183  ac_status=$?
     6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6185  (exit $ac_status); }; } &&
     6186     { ac_try='test -s conftest$ac_exeext'
     6187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6188  (eval $ac_try) 2>&5
     6189  ac_status=$?
     6190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6191  (exit $ac_status); }; }; then
     6192  ac_cv_func_re_rx_search=yes
     6193else
     6194  echo "$as_me: failed program was:" >&5
     6195sed 's/^/| /' conftest.$ac_ext >&5
     6196
     6197ac_cv_func_re_rx_search=no
     6198fi
     6199rm -f conftest.err conftest.$ac_objext \
     6200      conftest$ac_exeext conftest.$ac_ext
     6201fi
     6202echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
     6203echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
     6204if test $ac_cv_func_re_rx_search = yes; then
    27916205  :
    27926206else
    2793   echo "$ac_t""no" 1>&6
    2794 echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6
    2795 echo "configure:2796: checking size of unsigned char *" >&5
    2796 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then
    2797   echo $ac_n "(cached) $ac_c" 1>&6
    2798 else
     6207  echo "$as_me:$LINENO: checking for unsigned char *" >&5
     6208echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
     6209if test "${ac_cv_type_unsigned_char_p+set}" = set; then
     6210  echo $ECHO_N "(cached) $ECHO_C" >&6
     6211else
     6212  cat >conftest.$ac_ext <<_ACEOF
     6213/* confdefs.h.  */
     6214_ACEOF
     6215cat confdefs.h >>conftest.$ac_ext
     6216cat >>conftest.$ac_ext <<_ACEOF
     6217/* end confdefs.h.  */
     6218$ac_includes_default
     6219int
     6220main ()
     6221{
     6222if ((unsigned char * *) 0)
     6223  return 0;
     6224if (sizeof (unsigned char *))
     6225  return 0;
     6226  ;
     6227  return 0;
     6228}
     6229_ACEOF
     6230rm -f conftest.$ac_objext
     6231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6232  (eval $ac_compile) 2>conftest.er1
     6233  ac_status=$?
     6234  grep -v '^ *+' conftest.er1 >conftest.err
     6235  rm -f conftest.er1
     6236  cat conftest.err >&5
     6237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6238  (exit $ac_status); } &&
     6239     { ac_try='test -z "$ac_c_werror_flag"
     6240             || test ! -s conftest.err'
     6241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6242  (eval $ac_try) 2>&5
     6243  ac_status=$?
     6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6245  (exit $ac_status); }; } &&
     6246     { ac_try='test -s conftest.$ac_objext'
     6247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6248  (eval $ac_try) 2>&5
     6249  ac_status=$?
     6250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6251  (exit $ac_status); }; }; then
     6252  ac_cv_type_unsigned_char_p=yes
     6253else
     6254  echo "$as_me: failed program was:" >&5
     6255sed 's/^/| /' conftest.$ac_ext >&5
     6256
     6257ac_cv_type_unsigned_char_p=no
     6258fi
     6259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6260fi
     6261echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5
     6262echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
     6263
     6264echo "$as_me:$LINENO: checking size of unsigned char *" >&5
     6265echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
     6266if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
     6267  echo $ECHO_N "(cached) $ECHO_C" >&6
     6268else
     6269  if test "$ac_cv_type_unsigned_char_p" = yes; then
     6270  # The cast to unsigned long works around a bug in the HP C Compiler
     6271  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     6272  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     6273  # This bug is HP SR number 8606223364.
    27996274  if test "$cross_compiling" = yes; then
    2800   ac_cv_sizeof_unsigned_char_p=unsigned char *
    2801 else
    2802   cat > conftest.$ac_ext <<EOF
    2803 #line 2804 "configure"
    2804 #include "confdefs.h"
     6275  # Depending upon the size, compute the lo and hi bounds.
     6276cat >conftest.$ac_ext <<_ACEOF
     6277/* confdefs.h.  */
     6278_ACEOF
     6279cat confdefs.h >>conftest.$ac_ext
     6280cat >>conftest.$ac_ext <<_ACEOF
     6281/* end confdefs.h.  */
     6282$ac_includes_default
     6283int
     6284main ()
     6285{
     6286static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= 0)];
     6287test_array [0] = 0
     6288
     6289  ;
     6290  return 0;
     6291}
     6292_ACEOF
     6293rm -f conftest.$ac_objext
     6294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6295  (eval $ac_compile) 2>conftest.er1
     6296  ac_status=$?
     6297  grep -v '^ *+' conftest.er1 >conftest.err
     6298  rm -f conftest.er1
     6299  cat conftest.err >&5
     6300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6301  (exit $ac_status); } &&
     6302     { ac_try='test -z "$ac_c_werror_flag"
     6303             || test ! -s conftest.err'
     6304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6305  (eval $ac_try) 2>&5
     6306  ac_status=$?
     6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6308  (exit $ac_status); }; } &&
     6309     { ac_try='test -s conftest.$ac_objext'
     6310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6311  (eval $ac_try) 2>&5
     6312  ac_status=$?
     6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6314  (exit $ac_status); }; }; then
     6315  ac_lo=0 ac_mid=0
     6316  while :; do
     6317    cat >conftest.$ac_ext <<_ACEOF
     6318/* confdefs.h.  */
     6319_ACEOF
     6320cat confdefs.h >>conftest.$ac_ext
     6321cat >>conftest.$ac_ext <<_ACEOF
     6322/* end confdefs.h.  */
     6323$ac_includes_default
     6324int
     6325main ()
     6326{
     6327static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
     6328test_array [0] = 0
     6329
     6330  ;
     6331  return 0;
     6332}
     6333_ACEOF
     6334rm -f conftest.$ac_objext
     6335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6336  (eval $ac_compile) 2>conftest.er1
     6337  ac_status=$?
     6338  grep -v '^ *+' conftest.er1 >conftest.err
     6339  rm -f conftest.er1
     6340  cat conftest.err >&5
     6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6342  (exit $ac_status); } &&
     6343     { ac_try='test -z "$ac_c_werror_flag"
     6344             || test ! -s conftest.err'
     6345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6346  (eval $ac_try) 2>&5
     6347  ac_status=$?
     6348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6349  (exit $ac_status); }; } &&
     6350     { ac_try='test -s conftest.$ac_objext'
     6351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6352  (eval $ac_try) 2>&5
     6353  ac_status=$?
     6354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6355  (exit $ac_status); }; }; then
     6356  ac_hi=$ac_mid; break
     6357else
     6358  echo "$as_me: failed program was:" >&5
     6359sed 's/^/| /' conftest.$ac_ext >&5
     6360
     6361ac_lo=`expr $ac_mid + 1`
     6362            if test $ac_lo -le $ac_mid; then
     6363              ac_lo= ac_hi=
     6364              break
     6365            fi
     6366            ac_mid=`expr 2 '*' $ac_mid + 1`
     6367fi
     6368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6369  done
     6370else
     6371  echo "$as_me: failed program was:" >&5
     6372sed 's/^/| /' conftest.$ac_ext >&5
     6373
     6374cat >conftest.$ac_ext <<_ACEOF
     6375/* confdefs.h.  */
     6376_ACEOF
     6377cat confdefs.h >>conftest.$ac_ext
     6378cat >>conftest.$ac_ext <<_ACEOF
     6379/* end confdefs.h.  */
     6380$ac_includes_default
     6381int
     6382main ()
     6383{
     6384static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) < 0)];
     6385test_array [0] = 0
     6386
     6387  ;
     6388  return 0;
     6389}
     6390_ACEOF
     6391rm -f conftest.$ac_objext
     6392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6393  (eval $ac_compile) 2>conftest.er1
     6394  ac_status=$?
     6395  grep -v '^ *+' conftest.er1 >conftest.err
     6396  rm -f conftest.er1
     6397  cat conftest.err >&5
     6398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6399  (exit $ac_status); } &&
     6400     { ac_try='test -z "$ac_c_werror_flag"
     6401             || test ! -s conftest.err'
     6402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6403  (eval $ac_try) 2>&5
     6404  ac_status=$?
     6405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6406  (exit $ac_status); }; } &&
     6407     { ac_try='test -s conftest.$ac_objext'
     6408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6409  (eval $ac_try) 2>&5
     6410  ac_status=$?
     6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6412  (exit $ac_status); }; }; then
     6413  ac_hi=-1 ac_mid=-1
     6414  while :; do
     6415    cat >conftest.$ac_ext <<_ACEOF
     6416/* confdefs.h.  */
     6417_ACEOF
     6418cat confdefs.h >>conftest.$ac_ext
     6419cat >>conftest.$ac_ext <<_ACEOF
     6420/* end confdefs.h.  */
     6421$ac_includes_default
     6422int
     6423main ()
     6424{
     6425static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= $ac_mid)];
     6426test_array [0] = 0
     6427
     6428  ;
     6429  return 0;
     6430}
     6431_ACEOF
     6432rm -f conftest.$ac_objext
     6433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6434  (eval $ac_compile) 2>conftest.er1
     6435  ac_status=$?
     6436  grep -v '^ *+' conftest.er1 >conftest.err
     6437  rm -f conftest.er1
     6438  cat conftest.err >&5
     6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6440  (exit $ac_status); } &&
     6441     { ac_try='test -z "$ac_c_werror_flag"
     6442             || test ! -s conftest.err'
     6443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6444  (eval $ac_try) 2>&5
     6445  ac_status=$?
     6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6447  (exit $ac_status); }; } &&
     6448     { ac_try='test -s conftest.$ac_objext'
     6449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6450  (eval $ac_try) 2>&5
     6451  ac_status=$?
     6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6453  (exit $ac_status); }; }; then
     6454  ac_lo=$ac_mid; break
     6455else
     6456  echo "$as_me: failed program was:" >&5
     6457sed 's/^/| /' conftest.$ac_ext >&5
     6458
     6459ac_hi=`expr '(' $ac_mid ')' - 1`
     6460               if test $ac_mid -le $ac_hi; then
     6461             ac_lo= ac_hi=
     6462             break
     6463               fi
     6464               ac_mid=`expr 2 '*' $ac_mid`
     6465fi
     6466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6467  done
     6468else
     6469  echo "$as_me: failed program was:" >&5
     6470sed 's/^/| /' conftest.$ac_ext >&5
     6471
     6472ac_lo= ac_hi=
     6473fi
     6474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6475fi
     6476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6477# Binary search between lo and hi bounds.
     6478while test "x$ac_lo" != "x$ac_hi"; do
     6479  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     6480  cat >conftest.$ac_ext <<_ACEOF
     6481/* confdefs.h.  */
     6482_ACEOF
     6483cat confdefs.h >>conftest.$ac_ext
     6484cat >>conftest.$ac_ext <<_ACEOF
     6485/* end confdefs.h.  */
     6486$ac_includes_default
     6487int
     6488main ()
     6489{
     6490static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
     6491test_array [0] = 0
     6492
     6493  ;
     6494  return 0;
     6495}
     6496_ACEOF
     6497rm -f conftest.$ac_objext
     6498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6499  (eval $ac_compile) 2>conftest.er1
     6500  ac_status=$?
     6501  grep -v '^ *+' conftest.er1 >conftest.err
     6502  rm -f conftest.er1
     6503  cat conftest.err >&5
     6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6505  (exit $ac_status); } &&
     6506     { ac_try='test -z "$ac_c_werror_flag"
     6507             || test ! -s conftest.err'
     6508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6509  (eval $ac_try) 2>&5
     6510  ac_status=$?
     6511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6512  (exit $ac_status); }; } &&
     6513     { ac_try='test -s conftest.$ac_objext'
     6514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6515  (eval $ac_try) 2>&5
     6516  ac_status=$?
     6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6518  (exit $ac_status); }; }; then
     6519  ac_hi=$ac_mid
     6520else
     6521  echo "$as_me: failed program was:" >&5
     6522sed 's/^/| /' conftest.$ac_ext >&5
     6523
     6524ac_lo=`expr '(' $ac_mid ')' + 1`
     6525fi
     6526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6527done
     6528case $ac_lo in
     6529?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;;
     6530'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
     6531See \`config.log' for more details." >&5
     6532echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
     6533See \`config.log' for more details." >&2;}
     6534   { (exit 1); exit 1; }; } ;;
     6535esac
     6536else
     6537  if test "$cross_compiling" = yes; then
     6538  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
     6539See \`config.log' for more details." >&5
     6540echo "$as_me: error: cannot run test program while cross compiling
     6541See \`config.log' for more details." >&2;}
     6542   { (exit 1); exit 1; }; }
     6543else
     6544  cat >conftest.$ac_ext <<_ACEOF
     6545/* confdefs.h.  */
     6546_ACEOF
     6547cat confdefs.h >>conftest.$ac_ext
     6548cat >>conftest.$ac_ext <<_ACEOF
     6549/* end confdefs.h.  */
     6550$ac_includes_default
     6551long longval () { return (long) (sizeof (unsigned char *)); }
     6552unsigned long ulongval () { return (long) (sizeof (unsigned char *)); }
    28056553#include <stdio.h>
    2806 main()
     6554#include <stdlib.h>
     6555int
     6556main ()
    28076557{
    2808   FILE *f=fopen("conftestval", "w");
    2809   if (!f) exit(1);
    2810   fprintf(f, "%d\n", sizeof(unsigned char *));
    2811   exit(0);
     6558
     6559  FILE *f = fopen ("conftest.val", "w");
     6560  if (! f)
     6561    exit (1);
     6562  if (((long) (sizeof (unsigned char *))) < 0)
     6563    {
     6564      long i = longval ();
     6565      if (i != ((long) (sizeof (unsigned char *))))
     6566    exit (1);
     6567      fprintf (f, "%ld\n", i);
     6568    }
     6569  else
     6570    {
     6571      unsigned long i = ulongval ();
     6572      if (i != ((long) (sizeof (unsigned char *))))
     6573    exit (1);
     6574      fprintf (f, "%lu\n", i);
     6575    }
     6576  exit (ferror (f) || fclose (f) != 0);
     6577
     6578  ;
     6579  return 0;
    28126580}
    2813 EOF
    2814 if { (eval echo configure:2815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2815 then
    2816   ac_cv_sizeof_unsigned_char_p=`cat conftestval`
    2817 else
    2818   echo "configure: failed program was:" >&5
    2819   cat conftest.$ac_ext >&5
    2820   rm -fr conftest*
     6581_ACEOF
     6582rm -f conftest$ac_exeext
     6583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6584  (eval $ac_link) 2>&5
     6585  ac_status=$?
     6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6587  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     6588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6589  (eval $ac_try) 2>&5
     6590  ac_status=$?
     6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6592  (exit $ac_status); }; }; then
     6593  ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
     6594else
     6595  echo "$as_me: program exited with status $ac_status" >&5
     6596echo "$as_me: failed program was:" >&5
     6597sed 's/^/| /' conftest.$ac_ext >&5
     6598
     6599( exit $ac_status )
     6600{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
     6601See \`config.log' for more details." >&5
     6602echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
     6603See \`config.log' for more details." >&2;}
     6604   { (exit 1); exit 1; }; }
     6605fi
     6606rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6607fi
     6608fi
     6609rm -f conftest.val
     6610else
    28216611  ac_cv_sizeof_unsigned_char_p=0
    28226612fi
    2823 rm -fr conftest*
    2824 fi
    2825 
    2826 fi
    2827 echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6
    2828 cat >> confdefs.h <<EOF
     6613fi
     6614echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5
     6615echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
     6616cat >>confdefs.h <<_ACEOF
    28296617#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
    2830 EOF
    2831 
    2832  
     6618_ACEOF
     6619
     6620
    28336621    if test "$ac_cv_sizeof_unsigned_char_p" = 8
    28346622    then
    2835       echo "configure: warning: I'm forcing you to use regex because I can't
    2836         find a local rx library and the one included with this
    2837         distribution doesn't work on 64-bit machines like yours" 1>&2
    2838       LIBOBJS="$LIBOBJS regex.o"
     6623      { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't
     6624        find a local rx library and the one included with this
     6625        distribution doesn't work on 64-bit machines like yours" >&5
     6626echo "$as_me: WARNING: I'm forcing you to use regex because I can't
     6627        find a local rx library and the one included with this
     6628        distribution doesn't work on 64-bit machines like yours" >&2;}
     6629      case $LIBOBJS in
     6630    "regex.$ac_objext"   | \
     6631  *" regex.$ac_objext"   | \
     6632    "regex.$ac_objext "* | \
     6633  *" regex.$ac_objext "* ) ;;
     6634  *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
     6635esac
     6636
    28396637    else
    2840       LIBOBJS="$LIBOBJS rx.o"
     6638      case $LIBOBJS in
     6639    "rx.$ac_objext"   | \
     6640  *" rx.$ac_objext"   | \
     6641    "rx.$ac_objext "* | \
     6642  *" rx.$ac_objext "* ) ;;
     6643  *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
     6644esac
     6645
    28416646    fi
    2842  
    2843 fi
    2844 
    2845 fi
    2846 
    2847 echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6
    2848 echo "configure:2849: checking whether GNU readline requested" >&5
    2849   # Check whether --with-gnu_readline or --without-gnu_readline was given.
     6647
     6648fi
     6649
     6650fi
     6651
     6652echo "$as_me:$LINENO: checking whether GNU readline requested" >&5
     6653echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
     6654
     6655# Check whether --with-gnu_readline or --without-gnu_readline was given.
    28506656if test "${with_gnu_readline+set}" = set; then
    28516657  withval="$with_gnu_readline"
    28526658  if test "$withval" = yes; then
    2853       echo "$ac_t""yes" 1>&6
     6659      echo "$as_me:$LINENO: result: yes" >&5
     6660echo "${ECHO_T}yes" >&6
    28546661      ac_with_gnu_readline=1
    28556662    else
    2856       echo "$ac_t""no" 1>&6
     6663      echo "$as_me:$LINENO: result: no" >&5
     6664echo "${ECHO_T}no" >&6
    28576665    fi
    28586666else
    2859   echo "$ac_t""no" 1>&6
    2860 fi
    2861 
     6667  echo "$as_me:$LINENO: result: no" >&5
     6668echo "${ECHO_T}no" >&6
     6669fi;
    28626670
    28636671  if test -n "$ac_with_gnu_readline"; then
    2864     ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
    2865 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
    2866 echo "configure:2867: checking for readline/readline.h" >&5
    2867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2868   echo $ac_n "(cached) $ac_c" 1>&6
    2869 else
    2870   cat > conftest.$ac_ext <<EOF
    2871 #line 2872 "configure"
    2872 #include "confdefs.h"
     6672    if test "${ac_cv_header_readline_readline_h+set}" = set; then
     6673  echo "$as_me:$LINENO: checking for readline/readline.h" >&5
     6674echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
     6675if test "${ac_cv_header_readline_readline_h+set}" = set; then
     6676  echo $ECHO_N "(cached) $ECHO_C" >&6
     6677fi
     6678echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
     6679echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
     6680else
     6681  # Is the header compilable?
     6682echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
     6683echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
     6684cat >conftest.$ac_ext <<_ACEOF
     6685/* confdefs.h.  */
     6686_ACEOF
     6687cat confdefs.h >>conftest.$ac_ext
     6688cat >>conftest.$ac_ext <<_ACEOF
     6689/* end confdefs.h.  */
     6690$ac_includes_default
    28736691#include <readline/readline.h>
    2874 EOF
    2875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2876 { (eval echo configure:2877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2878 if test -z "$ac_err"; then
    2879   rm -rf conftest*
    2880   eval "ac_cv_header_$ac_safe=yes"
    2881 else
    2882   echo "$ac_err" >&5
    2883   echo "configure: failed program was:" >&5
    2884   cat conftest.$ac_ext >&5
    2885   rm -rf conftest*
    2886   eval "ac_cv_header_$ac_safe=no"
    2887 fi
    2888 rm -f conftest*
    2889 fi
    2890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2891   echo "$ac_t""yes" 1>&6
     6692_ACEOF
     6693rm -f conftest.$ac_objext
     6694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6695  (eval $ac_compile) 2>conftest.er1
     6696  ac_status=$?
     6697  grep -v '^ *+' conftest.er1 >conftest.err
     6698  rm -f conftest.er1
     6699  cat conftest.err >&5
     6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6701  (exit $ac_status); } &&
     6702     { ac_try='test -z "$ac_c_werror_flag"
     6703             || test ! -s conftest.err'
     6704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6705  (eval $ac_try) 2>&5
     6706  ac_status=$?
     6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6708  (exit $ac_status); }; } &&
     6709     { ac_try='test -s conftest.$ac_objext'
     6710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6711  (eval $ac_try) 2>&5
     6712  ac_status=$?
     6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6714  (exit $ac_status); }; }; then
     6715  ac_header_compiler=yes
     6716else
     6717  echo "$as_me: failed program was:" >&5
     6718sed 's/^/| /' conftest.$ac_ext >&5
     6719
     6720ac_header_compiler=no
     6721fi
     6722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6724echo "${ECHO_T}$ac_header_compiler" >&6
     6725
     6726# Is the header present?
     6727echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
     6728echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
     6729cat >conftest.$ac_ext <<_ACEOF
     6730/* confdefs.h.  */
     6731_ACEOF
     6732cat confdefs.h >>conftest.$ac_ext
     6733cat >>conftest.$ac_ext <<_ACEOF
     6734/* end confdefs.h.  */
     6735#include <readline/readline.h>
     6736_ACEOF
     6737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6738  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6739  ac_status=$?
     6740  grep -v '^ *+' conftest.er1 >conftest.err
     6741  rm -f conftest.er1
     6742  cat conftest.err >&5
     6743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6744  (exit $ac_status); } >/dev/null; then
     6745  if test -s conftest.err; then
     6746    ac_cpp_err=$ac_c_preproc_warn_flag
     6747    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6748  else
     6749    ac_cpp_err=
     6750  fi
     6751else
     6752  ac_cpp_err=yes
     6753fi
     6754if test -z "$ac_cpp_err"; then
     6755  ac_header_preproc=yes
     6756else
     6757  echo "$as_me: failed program was:" >&5
     6758sed 's/^/| /' conftest.$ac_ext >&5
     6759
     6760  ac_header_preproc=no
     6761fi
     6762rm -f conftest.err conftest.$ac_ext
     6763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6764echo "${ECHO_T}$ac_header_preproc" >&6
     6765
     6766# So?  What about this header?
     6767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     6768  yes:no: )
     6769    { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
     6770echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6771    { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
     6772echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
     6773    ac_header_preproc=yes
     6774    ;;
     6775  no:yes:* )
     6776    { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
     6777echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
     6778    { echo "$as_me:$LINENO: WARNING: readline/readline.h:     check for missing prerequisite headers?" >&5
     6779echo "$as_me: WARNING: readline/readline.h:     check for missing prerequisite headers?" >&2;}
     6780    { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
     6781echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
     6782    { echo "$as_me:$LINENO: WARNING: readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
     6783echo "$as_me: WARNING: readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     6784    { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
     6785echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
     6786    { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
     6787echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
     6788    (
     6789      cat <<\_ASBOX
     6790## ------------------------------------------ ##
     6791## Report this to the AC_PACKAGE_NAME lists.  ##
     6792## ------------------------------------------ ##
     6793_ASBOX
     6794    ) |
     6795      sed "s/^/$as_me: WARNING:     /" >&2
     6796    ;;
     6797esac
     6798echo "$as_me:$LINENO: checking for readline/readline.h" >&5
     6799echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
     6800if test "${ac_cv_header_readline_readline_h+set}" = set; then
     6801  echo $ECHO_N "(cached) $ECHO_C" >&6
     6802else
     6803  ac_cv_header_readline_readline_h=$ac_header_preproc
     6804fi
     6805echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
     6806echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
     6807
     6808fi
     6809if test $ac_cv_header_readline_readline_h = yes; then
    28926810  ac_mg_readline_header_found=1
    28936811else
    2894   echo "$ac_t""no" 1>&6
    2895 echo "configure: warning: Can't find GNU readline headers; configuring without \
    2896 GNU readline support" 1>&2
    2897 fi
     6812  { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \
     6813GNU readline support" >&5
     6814echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
     6815GNU readline support" >&2;}
     6816fi
     6817
    28986818
    28996819    if test -n "$ac_mg_readline_header_found"; then
    29006820      # first check whether we can find the readline library itself
    2901       echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
    2902 echo "configure:2903: checking for main in -lreadline" >&5
    2903 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
    2904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2905   echo $ac_n "(cached) $ac_c" 1>&6
    2906 else
    2907   ac_save_LIBS="$LIBS"
     6821      echo "$as_me:$LINENO: checking for main in -lreadline" >&5
     6822echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
     6823if test "${ac_cv_lib_readline_main+set}" = set; then
     6824  echo $ECHO_N "(cached) $ECHO_C" >&6
     6825else
     6826  ac_check_lib_save_LIBS=$LIBS
    29086827LIBS="-lreadline  $LIBS"
    2909 cat > conftest.$ac_ext <<EOF
    2910 #line 2911 "configure"
    2911 #include "confdefs.h"
    2912 
    2913 int main() {
    2914 main()
    2915 ; return 0; }
    2916 EOF
    2917 if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2918   rm -rf conftest*
    2919   eval "ac_cv_lib_$ac_lib_var=yes"
    2920 else
    2921   echo "configure: failed program was:" >&5
    2922   cat conftest.$ac_ext >&5
    2923   rm -rf conftest*
    2924   eval "ac_cv_lib_$ac_lib_var=no"
    2925 fi
    2926 rm -f conftest*
    2927 LIBS="$ac_save_LIBS"
    2928 
    2929 fi
    2930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2931   echo "$ac_t""yes" 1>&6
     6828cat >conftest.$ac_ext <<_ACEOF
     6829/* confdefs.h.  */
     6830_ACEOF
     6831cat confdefs.h >>conftest.$ac_ext
     6832cat >>conftest.$ac_ext <<_ACEOF
     6833/* end confdefs.h.  */
     6834
     6835
     6836int
     6837main ()
     6838{
     6839main ();
     6840  ;
     6841  return 0;
     6842}
     6843_ACEOF
     6844rm -f conftest.$ac_objext conftest$ac_exeext
     6845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6846  (eval $ac_link) 2>conftest.er1
     6847  ac_status=$?
     6848  grep -v '^ *+' conftest.er1 >conftest.err
     6849  rm -f conftest.er1
     6850  cat conftest.err >&5
     6851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6852  (exit $ac_status); } &&
     6853     { ac_try='test -z "$ac_c_werror_flag"
     6854             || test ! -s conftest.err'
     6855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6856  (eval $ac_try) 2>&5
     6857  ac_status=$?
     6858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6859  (exit $ac_status); }; } &&
     6860     { ac_try='test -s conftest$ac_exeext'
     6861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6862  (eval $ac_try) 2>&5
     6863  ac_status=$?
     6864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6865  (exit $ac_status); }; }; then
     6866  ac_cv_lib_readline_main=yes
     6867else
     6868  echo "$as_me: failed program was:" >&5
     6869sed 's/^/| /' conftest.$ac_ext >&5
     6870
     6871ac_cv_lib_readline_main=no
     6872fi
     6873rm -f conftest.err conftest.$ac_objext \
     6874      conftest$ac_exeext conftest.$ac_ext
     6875LIBS=$ac_check_lib_save_LIBS
     6876fi
     6877echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
     6878echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
     6879if test $ac_cv_lib_readline_main = yes; then
    29326880  ac_mg_readline_lib_found=1
    2933          cat >> confdefs.h <<\EOF
     6881         cat >>confdefs.h <<\_ACEOF
    29346882#define WITH_GNU_READLINE 1
    2935 EOF
     6883_ACEOF
    29366884
    29376885         LIBS="$LIBS -lreadline"
    29386886else
    2939   echo "$ac_t""no" 1>&6
    2940 echo "configure: warning: Can't find GNU readline library; configuring without \
    2941 GNU readline support" 1>&2
     6887  { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \
     6888GNU readline support" >&5
     6889echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
     6890GNU readline support" >&2;}
    29426891fi
    29436892
    29446893      if test -n "$ac_mg_readline_lib_found"; then
    2945         # on some systems, readline needs curses.  It is difficult to 
     6894        # on some systems, readline needs curses.  It is difficult to
    29466895        #  determine whether this is necessary on the current system,
    29476896        #  since other undefined symbols can be turned up by an
     
    29496898    #  by mg itself (e.g. xmalloc, xrealloc).  So, if we find libcurses,
    29506899    #  we just bung it on and hope for the best.
    2951     echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
    2952 echo "configure:2953: checking for main in -lcurses" >&5
    2953 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
    2954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2955   echo $ac_n "(cached) $ac_c" 1>&6
    2956 else
    2957   ac_save_LIBS="$LIBS"
     6900    echo "$as_me:$LINENO: checking for main in -lcurses" >&5
     6901echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
     6902if test "${ac_cv_lib_curses_main+set}" = set; then
     6903  echo $ECHO_N "(cached) $ECHO_C" >&6
     6904else
     6905  ac_check_lib_save_LIBS=$LIBS
    29586906LIBS="-lcurses  $LIBS"
    2959 cat > conftest.$ac_ext <<EOF
    2960 #line 2961 "configure"
    2961 #include "confdefs.h"
    2962 
    2963 int main() {
    2964 main()
    2965 ; return 0; }
    2966 EOF
    2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2968   rm -rf conftest*
    2969   eval "ac_cv_lib_$ac_lib_var=yes"
    2970 else
    2971   echo "configure: failed program was:" >&5
    2972   cat conftest.$ac_ext >&5
    2973   rm -rf conftest*
    2974   eval "ac_cv_lib_$ac_lib_var=no"
    2975 fi
    2976 rm -f conftest*
    2977 LIBS="$ac_save_LIBS"
    2978 
    2979 fi
    2980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2981   echo "$ac_t""yes" 1>&6
     6907cat >conftest.$ac_ext <<_ACEOF
     6908/* confdefs.h.  */
     6909_ACEOF
     6910cat confdefs.h >>conftest.$ac_ext
     6911cat >>conftest.$ac_ext <<_ACEOF
     6912/* end confdefs.h.  */
     6913
     6914
     6915int
     6916main ()
     6917{
     6918main ();
     6919  ;
     6920  return 0;
     6921}
     6922_ACEOF
     6923rm -f conftest.$ac_objext conftest$ac_exeext
     6924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6925  (eval $ac_link) 2>conftest.er1
     6926  ac_status=$?
     6927  grep -v '^ *+' conftest.er1 >conftest.err
     6928  rm -f conftest.er1
     6929  cat conftest.err >&5
     6930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6931  (exit $ac_status); } &&
     6932     { ac_try='test -z "$ac_c_werror_flag"
     6933             || test ! -s conftest.err'
     6934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6935  (eval $ac_try) 2>&5
     6936  ac_status=$?
     6937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6938  (exit $ac_status); }; } &&
     6939     { ac_try='test -s conftest$ac_exeext'
     6940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6941  (eval $ac_try) 2>&5
     6942  ac_status=$?
     6943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6944  (exit $ac_status); }; }; then
     6945  ac_cv_lib_curses_main=yes
     6946else
     6947  echo "$as_me: failed program was:" >&5
     6948sed 's/^/| /' conftest.$ac_ext >&5
     6949
     6950ac_cv_lib_curses_main=no
     6951fi
     6952rm -f conftest.err conftest.$ac_objext \
     6953      conftest$ac_exeext conftest.$ac_ext
     6954LIBS=$ac_check_lib_save_LIBS
     6955fi
     6956echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
     6957echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
     6958if test $ac_cv_lib_curses_main = yes; then
    29826959  LIBS="$LIBS -lcurses"
    2983 else
    2984   echo "$ac_t""no" 1>&6
    29856960fi
    29866961
     
    29906965
    29916966
     6967echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
     6968echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
     6969if test "${ac_cv_c_bigendian+set}" = set; then
     6970  echo $ECHO_N "(cached) $ECHO_C" >&6
     6971else
     6972  # See if sys/param.h defines the BYTE_ORDER macro.
     6973cat >conftest.$ac_ext <<_ACEOF
     6974/* confdefs.h.  */
     6975_ACEOF
     6976cat confdefs.h >>conftest.$ac_ext
     6977cat >>conftest.$ac_ext <<_ACEOF
     6978/* end confdefs.h.  */
     6979#include <sys/types.h>
     6980#include <sys/param.h>
     6981
     6982int
     6983main ()
     6984{
     6985#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
     6986 bogus endian macros
     6987#endif
     6988
     6989  ;
     6990  return 0;
     6991}
     6992_ACEOF
     6993rm -f conftest.$ac_objext
     6994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6995  (eval $ac_compile) 2>conftest.er1
     6996  ac_status=$?
     6997  grep -v '^ *+' conftest.er1 >conftest.err
     6998  rm -f conftest.er1
     6999  cat conftest.err >&5
     7000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7001  (exit $ac_status); } &&
     7002     { ac_try='test -z "$ac_c_werror_flag"
     7003             || test ! -s conftest.err'
     7004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7005  (eval $ac_try) 2>&5
     7006  ac_status=$?
     7007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7008  (exit $ac_status); }; } &&
     7009     { ac_try='test -s conftest.$ac_objext'
     7010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7011  (eval $ac_try) 2>&5
     7012  ac_status=$?
     7013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7014  (exit $ac_status); }; }; then
     7015  # It does; now see whether it defined to BIG_ENDIAN or not.
     7016cat >conftest.$ac_ext <<_ACEOF
     7017/* confdefs.h.  */
     7018_ACEOF
     7019cat confdefs.h >>conftest.$ac_ext
     7020cat >>conftest.$ac_ext <<_ACEOF
     7021/* end confdefs.h.  */
     7022#include <sys/types.h>
     7023#include <sys/param.h>
     7024
     7025int
     7026main ()
     7027{
     7028#if BYTE_ORDER != BIG_ENDIAN
     7029 not big endian
     7030#endif
     7031
     7032  ;
     7033  return 0;
     7034}
     7035_ACEOF
     7036rm -f conftest.$ac_objext
     7037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7038  (eval $ac_compile) 2>conftest.er1
     7039  ac_status=$?
     7040  grep -v '^ *+' conftest.er1 >conftest.err
     7041  rm -f conftest.er1
     7042  cat conftest.err >&5
     7043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7044  (exit $ac_status); } &&
     7045     { ac_try='test -z "$ac_c_werror_flag"
     7046             || test ! -s conftest.err'
     7047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7048  (eval $ac_try) 2>&5
     7049  ac_status=$?
     7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7051  (exit $ac_status); }; } &&
     7052     { ac_try='test -s conftest.$ac_objext'
     7053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7054  (eval $ac_try) 2>&5
     7055  ac_status=$?
     7056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7057  (exit $ac_status); }; }; then
     7058  ac_cv_c_bigendian=yes
     7059else
     7060  echo "$as_me: failed program was:" >&5
     7061sed 's/^/| /' conftest.$ac_ext >&5
     7062
     7063ac_cv_c_bigendian=no
     7064fi
     7065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7066else
     7067  echo "$as_me: failed program was:" >&5
     7068sed 's/^/| /' conftest.$ac_ext >&5
     7069
     7070# It does not; compile a test program.
     7071if test "$cross_compiling" = yes; then
     7072  # try to guess the endianness by grepping values into an object file
     7073  ac_cv_c_bigendian=unknown
     7074  cat >conftest.$ac_ext <<_ACEOF
     7075/* confdefs.h.  */
     7076_ACEOF
     7077cat confdefs.h >>conftest.$ac_ext
     7078cat >>conftest.$ac_ext <<_ACEOF
     7079/* end confdefs.h.  */
     7080short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     7081short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     7082void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
     7083short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     7084short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     7085void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     7086int
     7087main ()
     7088{
     7089 _ascii (); _ebcdic ();
     7090  ;
     7091  return 0;
     7092}
     7093_ACEOF
     7094rm -f conftest.$ac_objext
     7095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7096  (eval $ac_compile) 2>conftest.er1
     7097  ac_status=$?
     7098  grep -v '^ *+' conftest.er1 >conftest.err
     7099  rm -f conftest.er1
     7100  cat conftest.err >&5
     7101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7102  (exit $ac_status); } &&
     7103     { ac_try='test -z "$ac_c_werror_flag"
     7104             || test ! -s conftest.err'
     7105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7106  (eval $ac_try) 2>&5
     7107  ac_status=$?
     7108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7109  (exit $ac_status); }; } &&
     7110     { ac_try='test -s conftest.$ac_objext'
     7111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7112  (eval $ac_try) 2>&5
     7113  ac_status=$?
     7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7115  (exit $ac_status); }; }; then
     7116  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
     7117  ac_cv_c_bigendian=yes
     7118fi
     7119if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     7120  if test "$ac_cv_c_bigendian" = unknown; then
     7121    ac_cv_c_bigendian=no
     7122  else
     7123    # finding both strings is unlikely to happen, but who knows?
     7124    ac_cv_c_bigendian=unknown
     7125  fi
     7126fi
     7127else
     7128  echo "$as_me: failed program was:" >&5
     7129sed 's/^/| /' conftest.$ac_ext >&5
     7130
     7131fi
     7132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7133else
     7134  cat >conftest.$ac_ext <<_ACEOF
     7135/* confdefs.h.  */
     7136_ACEOF
     7137cat confdefs.h >>conftest.$ac_ext
     7138cat >>conftest.$ac_ext <<_ACEOF
     7139/* end confdefs.h.  */
     7140int
     7141main ()
     7142{
     7143  /* Are we little or big endian?  From Harbison&Steele.  */
     7144  union
     7145  {
     7146    long l;
     7147    char c[sizeof (long)];
     7148  } u;
     7149  u.l = 1;
     7150  exit (u.c[sizeof (long) - 1] == 1);
     7151}
     7152_ACEOF
     7153rm -f conftest$ac_exeext
     7154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7155  (eval $ac_link) 2>&5
     7156  ac_status=$?
     7157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7158  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     7159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7160  (eval $ac_try) 2>&5
     7161  ac_status=$?
     7162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7163  (exit $ac_status); }; }; then
     7164  ac_cv_c_bigendian=no
     7165else
     7166  echo "$as_me: program exited with status $ac_status" >&5
     7167echo "$as_me: failed program was:" >&5
     7168sed 's/^/| /' conftest.$ac_ext >&5
     7169
     7170( exit $ac_status )
     7171ac_cv_c_bigendian=yes
     7172fi
     7173rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     7174fi
     7175fi
     7176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7177fi
     7178echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
     7179echo "${ECHO_T}$ac_cv_c_bigendian" >&6
     7180case $ac_cv_c_bigendian in
     7181  yes)
     7182
     7183cat >>confdefs.h <<\_ACEOF
     7184#define WORDS_BIGENDIAN 1
     7185_ACEOF
     7186 ;;
     7187  no)
     7188     ;;
     7189  *)
     7190    { { echo "$as_me:$LINENO: error: unknown endianness
     7191presetting ac_cv_c_bigendian=no (or yes) will help" >&5
     7192echo "$as_me: error: unknown endianness
     7193presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
     7194   { (exit 1); exit 1; }; } ;;
     7195esac
     7196
     7197
    29927198# ---------------------------------------------------------------------------
    29937199if test "$ac_cv_func_alloca" = 'no'; then
    2994   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     7200  case $LIBOBJS in
     7201    "xmalloc.$ac_objext"   | \
     7202  *" xmalloc.$ac_objext"   | \
     7203    "xmalloc.$ac_objext "* | \
     7204  *" xmalloc.$ac_objext "* ) ;;
     7205  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     7206esac
     7207
     7208  case $LIBOBJS in
     7209    "error.$ac_objext"   | \
     7210  *" error.$ac_objext"   | \
     7211    "error.$ac_objext "* | \
     7212  *" error.$ac_objext "* ) ;;
     7213  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     7214esac
     7215
    29957216fi
    29967217
     
    30017222if test "${enable_override_longlong+set}" = set; then
    30027223  enableval="$enable_override_longlong"
    3003   cat >> confdefs.h <<\EOF
     7224  cat >>confdefs.h <<\_ACEOF
    30047225#define DISABLE_LONG_LONG 1
    3005 EOF
    3006 
    3007 fi
    3008 
     7226_ACEOF
     7227
     7228fi;
    30097229
    30107230# ---------------------------------------------------------------------------
    30117231
    3012 trap '' 1 2 15
    3013 cat > confcache <<\EOF
     7232                              ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile"
     7233          ac_config_commands="$ac_config_commands default"
     7234cat >confcache <<\_ACEOF
    30147235# This file is a shell script that caches the results of configure
    30157236# tests run on this system so they can be shared between configure
    3016 # scripts and configure runs.  It is not useful on other systems.
    3017 # If it contains results you don't want to keep, you may remove or edit it.
     7237# scripts and configure runs, see configure's option --config-cache.
     7238# It is not useful on other systems.  If it contains results you don't
     7239# want to keep, you may remove or edit it.
    30187240#
    3019 # By default, configure uses ./config.cache as the cache file,
    3020 # creating it if it does not exist already.  You can give configure
    3021 # the --cache-file=FILE option to use a different cache file; that is
    3022 # what configure does when it calls configure scripts in
    3023 # subdirectories, so they share the cache.
    3024 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    3025 # config.status only pays attention to the cache file if you give it the
    3026 # --recheck option to rerun configure.
     7241# config.status only pays attention to the cache file if you give it
     7242# the --recheck option to rerun configure.
    30277243#
    3028 EOF
     7244# `ac_cv_env_foo' variables (set or unset) will be overridden when
     7245# loading this file, other *unset* `ac_cv_foo' will be assigned the
     7246# following values.
     7247
     7248_ACEOF
     7249
    30297250# The following way of writing the cache mishandles newlines in values,
    30307251# but we know of no workaround that is simple, portable, and efficient.
     
    30327253# Ultrix sh set writes to stderr and can't be redirected directly,
    30337254# and sets the high bit in the cache file unless we assign to the vars.
    3034 (set) 2>&1 |
    3035   case `(ac_space=' '; set | grep ac_space) 2>&1` in
    3036   *ac_space=\ *)
    3037     # `set' does not quote correctly, so add quotes (double-quote substitution
    3038     # turns \\\\ into \\, and sed turns \\ into \).
    3039     sed -n \
    3040       -e "s/'/'\\\\''/g" \
    3041       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    3042     ;;
    3043   *)
    3044     # `set' quotes correctly as required by POSIX, so do not add quotes.
    3045     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    3046     ;;
    3047   esac >> confcache
    3048 if cmp -s $cache_file confcache; then
    3049   :
    3050 else
     7255{
     7256  (set) 2>&1 |
     7257    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     7258    *ac_space=\ *)
     7259      # `set' does not quote correctly, so add quotes (double-quote
     7260      # substitution turns \\\\ into \\, and sed turns \\ into \).
     7261      sed -n \
     7262    "s/'/'\\\\''/g;
     7263      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     7264      ;;
     7265    *)
     7266      # `set' quotes correctly as required by POSIX, so do not add quotes.
     7267      sed -n \
     7268    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     7269      ;;
     7270    esac;
     7271} |
     7272  sed '
     7273     t clear
     7274     : clear
     7275     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     7276     t end
     7277     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     7278     : end' >>confcache
     7279if diff $cache_file confcache >/dev/null 2>&1; then :; else
    30517280  if test -w $cache_file; then
    3052     echo "updating cache $cache_file"
    3053     cat confcache > $cache_file
     7281    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     7282    cat confcache >$cache_file
    30547283  else
    30557284    echo "not updating unwritable cache $cache_file"
     
    30587287rm -f confcache
    30597288
    3060 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    3061 
    30627289test "x$prefix" = xNONE && prefix=$ac_default_prefix
    30637290# Let make expand exec_prefix.
    30647291test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    30657292
    3066 # Any assignment to VPATH causes Sun make to only execute
    3067 # the first set of double-colon rules, so remove it if not needed.
    3068 # If there is a colon in the path, we need to keep it.
     7293# VPATH may cause trouble with some makes, so we remove $(srcdir),
     7294# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     7295# trailing colons and then remove the whole line if VPATH becomes empty
     7296# (actually we leave an empty line to preserve line numbers).
    30697297if test "x$srcdir" = x.; then
    3070   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
    3071 fi
    3072 
    3073 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     7298  ac_vpsub='/^[  ]*VPATH[    ]*=/{
     7299s/:*\$(srcdir):*/:/;
     7300s/:*\${srcdir}:*/:/;
     7301s/:*@srcdir@:*/:/;
     7302s/^\([^=]*=[     ]*\):*/\1/;
     7303s/:*$//;
     7304s/^[^=]*=[   ]*$//;
     7305}'
     7306fi
    30747307
    30757308DEFS=-DHAVE_CONFIG_H
    30767309
    3077 # Without the "./", some shells look in PATH for config.status.
     7310ac_libobjs=
     7311ac_ltlibobjs=
     7312for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
     7313  # 1. Remove the extension, and $U if already installed.
     7314  ac_i=`echo "$ac_i" |
     7315     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     7316  # 2. Add them.
     7317  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     7318  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     7319done
     7320LIBOBJS=$ac_libobjs
     7321
     7322LTLIBOBJS=$ac_ltlibobjs
     7323
     7324
     7325
    30787326: ${CONFIG_STATUS=./config.status}
    3079 
    3080 echo creating $CONFIG_STATUS
    3081 rm -f $CONFIG_STATUS
    3082 cat > $CONFIG_STATUS <<EOF
    3083 #! /bin/sh
    3084 # Generated automatically by configure.
     7327ac_clean_files_save=$ac_clean_files
     7328ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     7329{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
     7330echo "$as_me: creating $CONFIG_STATUS" >&6;}
     7331cat >$CONFIG_STATUS <<_ACEOF
     7332#! $SHELL
     7333# Generated by $as_me.
    30857334# Run this file to recreate the current configuration.
    3086 # This directory was configured as follows,
    3087 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    3088 #
    3089 # $0 $ac_configure_args
    3090 #
    30917335# Compiler output produced by configure, useful for debugging
    3092 # configure, is in ./config.log if it exists.
    3093 
    3094 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    3095 for ac_option
     7336# configure, is in config.log if it exists.
     7337
     7338debug=false
     7339ac_cs_recheck=false
     7340ac_cs_silent=false
     7341SHELL=\${CONFIG_SHELL-$SHELL}
     7342_ACEOF
     7343
     7344cat >>$CONFIG_STATUS <<\_ACEOF
     7345## --------------------- ##
     7346## M4sh Initialization.  ##
     7347## --------------------- ##
     7348
     7349# Be Bourne compatible
     7350if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     7351  emulate sh
     7352  NULLCMD=:
     7353  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     7354  # is contrary to our usage.  Disable this feature.
     7355  alias -g '${1+"$@"}'='"$@"'
     7356elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     7357  set -o posix
     7358fi
     7359DUALCASE=1; export DUALCASE # for MKS sh
     7360
     7361# Support unset when possible.
     7362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     7363  as_unset=unset
     7364else
     7365  as_unset=false
     7366fi
     7367
     7368
     7369# Work around bugs in pre-3.0 UWIN ksh.
     7370$as_unset ENV MAIL MAILPATH
     7371PS1='$ '
     7372PS2='> '
     7373PS4='+ '
     7374
     7375# NLS nuisances.
     7376for as_var in \
     7377  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     7378  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     7379  LC_TELEPHONE LC_TIME
    30967380do
    3097   case "\$ac_option" in
     7381  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     7382    eval $as_var=C; export $as_var
     7383  else
     7384    $as_unset $as_var
     7385  fi
     7386done
     7387
     7388# Required to use basename.
     7389if expr a : '\(a\)' >/dev/null 2>&1; then
     7390  as_expr=expr
     7391else
     7392  as_expr=false
     7393fi
     7394
     7395if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     7396  as_basename=basename
     7397else
     7398  as_basename=false
     7399fi
     7400
     7401
     7402# Name of the executable.
     7403as_me=`$as_basename "$0" ||
     7404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     7405     X"$0" : 'X\(//\)$' \| \
     7406     X"$0" : 'X\(/\)$' \| \
     7407     .     : '\(.\)' 2>/dev/null ||
     7408echo X/"$0" |
     7409    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     7410      /^X\/\(\/\/\)$/{ s//\1/; q; }
     7411      /^X\/\(\/\).*/{ s//\1/; q; }
     7412      s/.*/./; q'`
     7413
     7414
     7415# PATH needs CR, and LINENO needs CR and PATH.
     7416# Avoid depending upon Character Ranges.
     7417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     7418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     7419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     7420as_cr_digits='0123456789'
     7421as_cr_alnum=$as_cr_Letters$as_cr_digits
     7422
     7423# The user is always right.
     7424if test "${PATH_SEPARATOR+set}" != set; then
     7425  echo "#! /bin/sh" >conf$$.sh
     7426  echo  "exit 0"   >>conf$$.sh
     7427  chmod +x conf$$.sh
     7428  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     7429    PATH_SEPARATOR=';'
     7430  else
     7431    PATH_SEPARATOR=:
     7432  fi
     7433  rm -f conf$$.sh
     7434fi
     7435
     7436
     7437  as_lineno_1=$LINENO
     7438  as_lineno_2=$LINENO
     7439  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     7440  test "x$as_lineno_1" != "x$as_lineno_2" &&
     7441  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     7442  # Find who we are.  Look in the path if we contain no path at all
     7443  # relative or not.
     7444  case $0 in
     7445    *[\\/]* ) as_myself=$0 ;;
     7446    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7447for as_dir in $PATH
     7448do
     7449  IFS=$as_save_IFS
     7450  test -z "$as_dir" && as_dir=.
     7451  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     7452done
     7453
     7454       ;;
     7455  esac
     7456  # We did not find ourselves, most probably we were run as `sh COMMAND'
     7457  # in which case we are not to be found in the path.
     7458  if test "x$as_myself" = x; then
     7459    as_myself=$0
     7460  fi
     7461  if test ! -f "$as_myself"; then
     7462    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
     7463echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
     7464   { (exit 1); exit 1; }; }
     7465  fi
     7466  case $CONFIG_SHELL in
     7467  '')
     7468    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7469for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     7470do
     7471  IFS=$as_save_IFS
     7472  test -z "$as_dir" && as_dir=.
     7473  for as_base in sh bash ksh sh5; do
     7474     case $as_dir in
     7475     /*)
     7476       if ("$as_dir/$as_base" -c '
     7477  as_lineno_1=$LINENO
     7478  as_lineno_2=$LINENO
     7479  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     7480  test "x$as_lineno_1" != "x$as_lineno_2" &&
     7481  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     7482         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     7483         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     7484         CONFIG_SHELL=$as_dir/$as_base
     7485         export CONFIG_SHELL
     7486         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     7487       fi;;
     7488     esac
     7489       done
     7490done
     7491;;
     7492  esac
     7493
     7494  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     7495  # uniformly replaced by the line number.  The first 'sed' inserts a
     7496  # line-number line before each line; the second 'sed' does the real
     7497  # work.  The second script uses 'N' to pair each line-number line
     7498  # with the numbered line, and appends trailing '-' during
     7499  # substitution so that $LINENO is not a special case at line end.
     7500  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     7501  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     7502  sed '=' <$as_myself |
     7503    sed '
     7504      N
     7505      s,$,-,
     7506      : loop
     7507      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     7508      t loop
     7509      s,-$,,
     7510      s,^['$as_cr_digits']*\n,,
     7511    ' >$as_me.lineno &&
     7512  chmod +x $as_me.lineno ||
     7513    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
     7514echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     7515   { (exit 1); exit 1; }; }
     7516
     7517  # Don't try to exec as it changes $[0], causing all sort of problems
     7518  # (the dirname of $[0] is not the place where we might find the
     7519  # original and so on.  Autoconf is especially sensible to this).
     7520  . ./$as_me.lineno
     7521  # Exit status is that of the last command.
     7522  exit
     7523}
     7524
     7525
     7526case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     7527  *c*,-n*) ECHO_N= ECHO_C='
     7528' ECHO_T='  ' ;;
     7529  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     7530  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     7531esac
     7532
     7533if expr a : '\(a\)' >/dev/null 2>&1; then
     7534  as_expr=expr
     7535else
     7536  as_expr=false
     7537fi
     7538
     7539rm -f conf$$ conf$$.exe conf$$.file
     7540echo >conf$$.file
     7541if ln -s conf$$.file conf$$ 2>/dev/null; then
     7542  # We could just check for DJGPP; but this test a) works b) is more generic
     7543  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     7544  if test -f conf$$.exe; then
     7545    # Don't use ln at all; we don't have any links
     7546    as_ln_s='cp -p'
     7547  else
     7548    as_ln_s='ln -s'
     7549  fi
     7550elif ln conf$$.file conf$$ 2>/dev/null; then
     7551  as_ln_s=ln
     7552else
     7553  as_ln_s='cp -p'
     7554fi
     7555rm -f conf$$ conf$$.exe conf$$.file
     7556
     7557if mkdir -p . 2>/dev/null; then
     7558  as_mkdir_p=:
     7559else
     7560  test -d ./-p && rmdir ./-p
     7561  as_mkdir_p=false
     7562fi
     7563
     7564as_executable_p="test -f"
     7565
     7566# Sed expression to map a string onto a valid CPP name.
     7567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     7568
     7569# Sed expression to map a string onto a valid variable name.
     7570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     7571
     7572
     7573# IFS
     7574# We need space, tab and new line, in precisely that order.
     7575as_nl='
     7576'
     7577IFS="   $as_nl"
     7578
     7579# CDPATH.
     7580$as_unset CDPATH
     7581
     7582exec 6>&1
     7583
     7584# Open the log real soon, to keep \$[0] and so on meaningful, and to
     7585# report actual input values of CONFIG_FILES etc. instead of their
     7586# values after options handling.  Logging --version etc. is OK.
     7587exec 5>>config.log
     7588{
     7589  echo
     7590  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     7591## Running $as_me. ##
     7592_ASBOX
     7593} >&5
     7594cat >&5 <<_CSEOF
     7595
     7596This file was extended by $as_me, which was
     7597generated by GNU Autoconf 2.59.  Invocation command line was
     7598
     7599  CONFIG_FILES    = $CONFIG_FILES
     7600  CONFIG_HEADERS  = $CONFIG_HEADERS
     7601  CONFIG_LINKS    = $CONFIG_LINKS
     7602  CONFIG_COMMANDS = $CONFIG_COMMANDS
     7603  $ $0 $@
     7604
     7605_CSEOF
     7606echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
     7607echo >&5
     7608_ACEOF
     7609
     7610# Files that config.status was made for.
     7611if test -n "$ac_config_files"; then
     7612  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     7613fi
     7614
     7615if test -n "$ac_config_headers"; then
     7616  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     7617fi
     7618
     7619if test -n "$ac_config_links"; then
     7620  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     7621fi
     7622
     7623if test -n "$ac_config_commands"; then
     7624  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     7625fi
     7626
     7627cat >>$CONFIG_STATUS <<\_ACEOF
     7628
     7629ac_cs_usage="\
     7630\`$as_me' instantiates files from templates according to the
     7631current configuration.
     7632
     7633Usage: $0 [OPTIONS] [FILE]...
     7634
     7635  -h, --help       print this help, then exit
     7636  -V, --version    print version number, then exit
     7637  -q, --quiet      do not print progress messages
     7638  -d, --debug      don't remove temporary files
     7639      --recheck    update $as_me by reconfiguring in the same conditions
     7640  --file=FILE[:TEMPLATE]
     7641           instantiate the configuration file FILE
     7642  --header=FILE[:TEMPLATE]
     7643           instantiate the configuration header FILE
     7644
     7645Configuration files:
     7646$config_files
     7647
     7648Configuration headers:
     7649$config_headers
     7650
     7651Configuration commands:
     7652$config_commands
     7653
     7654Report bugs to <[email protected]>."
     7655_ACEOF
     7656
     7657cat >>$CONFIG_STATUS <<_ACEOF
     7658ac_cs_version="\\
     7659config.status
     7660configured by $0, generated by GNU Autoconf 2.59,
     7661  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     7662
     7663Copyright (C) 2003 Free Software Foundation, Inc.
     7664This config.status script is free software; the Free Software Foundation
     7665gives unlimited permission to copy, distribute and modify it."
     7666srcdir=$srcdir
     7667INSTALL="$INSTALL"
     7668_ACEOF
     7669
     7670cat >>$CONFIG_STATUS <<\_ACEOF
     7671# If no file are specified by the user, then we need to provide default
     7672# value.  By we need to know if files were specified by the user.
     7673ac_need_defaults=:
     7674while test $# != 0
     7675do
     7676  case $1 in
     7677  --*=*)
     7678    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     7679    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     7680    ac_shift=:
     7681    ;;
     7682  -*)
     7683    ac_option=$1
     7684    ac_optarg=$2
     7685    ac_shift=shift
     7686    ;;
     7687  *) # This is not an option, so the user has probably given explicit
     7688     # arguments.
     7689     ac_option=$1
     7690     ac_need_defaults=false;;
     7691  esac
     7692
     7693  case $ac_option in
     7694  # Handling of the options.
     7695_ACEOF
     7696cat >>$CONFIG_STATUS <<\_ACEOF
    30987697  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    3099     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    3100     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    3101   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    3102     echo "$CONFIG_STATUS generated by autoconf version 2.13"
    3103     exit 0 ;;
    3104   -help | --help | --hel | --he | --h)
    3105     echo "\$ac_cs_usage"; exit 0 ;;
    3106   *) echo "\$ac_cs_usage"; exit 1 ;;
     7698    ac_cs_recheck=: ;;
     7699  --version | --vers* | -V )
     7700    echo "$ac_cs_version"; exit 0 ;;
     7701  --he | --h)
     7702    # Conflict between --help and --header
     7703    { { echo "$as_me:$LINENO: error: ambiguous option: $1
     7704Try \`$0 --help' for more information." >&5
     7705echo "$as_me: error: ambiguous option: $1
     7706Try \`$0 --help' for more information." >&2;}
     7707   { (exit 1); exit 1; }; };;
     7708  --help | --hel | -h )
     7709    echo "$ac_cs_usage"; exit 0 ;;
     7710  --debug | --d* | -d )
     7711    debug=: ;;
     7712  --file | --fil | --fi | --f )
     7713    $ac_shift
     7714    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
     7715    ac_need_defaults=false;;
     7716  --header | --heade | --head | --hea )
     7717    $ac_shift
     7718    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
     7719    ac_need_defaults=false;;
     7720  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     7721  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     7722    ac_cs_silent=: ;;
     7723
     7724  # This is an error.
     7725  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
     7726Try \`$0 --help' for more information." >&5
     7727echo "$as_me: error: unrecognized option: $1
     7728Try \`$0 --help' for more information." >&2;}
     7729   { (exit 1); exit 1; }; } ;;
     7730
     7731  *) ac_config_targets="$ac_config_targets $1" ;;
     7732
     7733  esac
     7734  shift
     7735done
     7736
     7737ac_configure_extra_args=
     7738
     7739if $ac_cs_silent; then
     7740  exec 6>/dev/null
     7741  ac_configure_extra_args="$ac_configure_extra_args --silent"
     7742fi
     7743
     7744_ACEOF
     7745cat >>$CONFIG_STATUS <<_ACEOF
     7746if \$ac_cs_recheck; then
     7747  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     7748  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     7749fi
     7750
     7751_ACEOF
     7752
     7753
     7754
     7755
     7756
     7757cat >>$CONFIG_STATUS <<\_ACEOF
     7758for ac_config_target in $ac_config_targets
     7759do
     7760  case "$ac_config_target" in
     7761  # Handling of arguments.
     7762  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     7763  "text/Makefile" ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
     7764  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     7765  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     7766  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     7767  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     7768echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     7769   { (exit 1); exit 1; }; };;
    31077770  esac
    31087771done
    31097772
    3110 ac_given_srcdir=$srcdir
    3111 ac_given_INSTALL="$INSTALL"
    3112 
    3113 trap 'rm -fr `echo "Makefile text/Makefile lib/Makefile  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    3114 EOF
    3115 cat >> $CONFIG_STATUS <<EOF
    3116 
    3117 # Protect against being on the right side of a sed subst in config.status.
    3118 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    3119  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    3120 $ac_vpsub
     7773# If the user did not use the arguments to specify the items to instantiate,
     7774# then the envvar interface is used.  Set only those that are not.
     7775# We use the long form for the default assignment because of an extremely
     7776# bizarre bug on SunOS 4.1.3.
     7777if $ac_need_defaults; then
     7778  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     7779  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     7780  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
     7781fi
     7782
     7783# Have a temporary directory for convenience.  Make it in the build tree
     7784# simply because there is no reason to put it here, and in addition,
     7785# creating and moving files from /tmp can sometimes cause problems.
     7786# Create a temporary directory, and hook for its removal unless debugging.
     7787$debug ||
     7788{
     7789  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     7790  trap '{ (exit 1); exit 1; }' 1 2 13 15
     7791}
     7792
     7793# Create a (secure) tmp directory for tmp files.
     7794
     7795{
     7796  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     7797  test -n "$tmp" && test -d "$tmp"
     7798}  ||
     7799{
     7800  tmp=./confstat$$-$RANDOM
     7801  (umask 077 && mkdir $tmp)
     7802} ||
     7803{
     7804   echo "$me: cannot create a temporary directory in ." >&2
     7805   { (exit 1); exit 1; }
     7806}
     7807
     7808_ACEOF
     7809
     7810cat >>$CONFIG_STATUS <<_ACEOF
     7811
     7812#
     7813# CONFIG_FILES section.
     7814#
     7815
     7816# No need to generate the scripts if there are no CONFIG_FILES.
     7817# This happens for instance when ./config.status config.h
     7818if test -n "\$CONFIG_FILES"; then
     7819  # Protect against being on the right side of a sed subst in config.status.
     7820  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     7821   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     7822s,@SHELL@,$SHELL,;t t
     7823s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     7824s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     7825s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     7826s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     7827s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     7828s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     7829s,@exec_prefix@,$exec_prefix,;t t
     7830s,@prefix@,$prefix,;t t
     7831s,@program_transform_name@,$program_transform_name,;t t
     7832s,@bindir@,$bindir,;t t
     7833s,@sbindir@,$sbindir,;t t
     7834s,@libexecdir@,$libexecdir,;t t
     7835s,@datadir@,$datadir,;t t
     7836s,@sysconfdir@,$sysconfdir,;t t
     7837s,@sharedstatedir@,$sharedstatedir,;t t
     7838s,@localstatedir@,$localstatedir,;t t
     7839s,@libdir@,$libdir,;t t
     7840s,@includedir@,$includedir,;t t
     7841s,@oldincludedir@,$oldincludedir,;t t
     7842s,@infodir@,$infodir,;t t
     7843s,@mandir@,$mandir,;t t
     7844s,@build_alias@,$build_alias,;t t
     7845s,@host_alias@,$host_alias,;t t
     7846s,@target_alias@,$target_alias,;t t
     7847s,@DEFS@,$DEFS,;t t
     7848s,@ECHO_C@,$ECHO_C,;t t
     7849s,@ECHO_N@,$ECHO_N,;t t
     7850s,@ECHO_T@,$ECHO_T,;t t
     7851s,@LIBS@,$LIBS,;t t
     7852s,@PACKAGE@,$PACKAGE,;t t
     7853s,@VERSION@,$VERSION,;t t
     7854s,@CXX@,$CXX,;t t
     7855s,@CXXFLAGS@,$CXXFLAGS,;t t
     7856s,@LDFLAGS@,$LDFLAGS,;t t
     7857s,@CPPFLAGS@,$CPPFLAGS,;t t
     7858s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     7859s,@EXEEXT@,$EXEEXT,;t t
     7860s,@OBJEXT@,$OBJEXT,;t t
     7861s,@AWK@,$AWK,;t t
     7862s,@YACC@,$YACC,;t t
     7863s,@CC@,$CC,;t t
     7864s,@CFLAGS@,$CFLAGS,;t t
     7865s,@ac_ct_CC@,$ac_ct_CC,;t t
     7866s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     7867s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     7868s,@INSTALL_DATA@,$INSTALL_DATA,;t t
     7869s,@LN_S@,$LN_S,;t t
     7870s,@SET_MAKE@,$SET_MAKE,;t t
     7871s,@RANLIB@,$RANLIB,;t t
     7872s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
     7873s,@CPP@,$CPP,;t t
     7874s,@EGREP@,$EGREP,;t t
     7875s,@U@,$U,;t t
     7876s,@ANSI2KNR@,$ANSI2KNR,;t t
     7877s,@ALLOCA@,$ALLOCA,;t t
     7878s,@LIBOBJS@,$LIBOBJS,;t t
     7879s,@LTLIBOBJS@,$LTLIBOBJS,;t t
     7880CEOF
     7881
     7882_ACEOF
     7883
     7884  cat >>$CONFIG_STATUS <<\_ACEOF
     7885  # Split the substitutions into bite-sized pieces for seds with
     7886  # small command number limits, like on Digital OSF/1 and HP-UX.
     7887  ac_max_sed_lines=48
     7888  ac_sed_frag=1 # Number of current file.
     7889  ac_beg=1 # First line for current file.
     7890  ac_end=$ac_max_sed_lines # Line after last line for current file.
     7891  ac_more_lines=:
     7892  ac_sed_cmds=
     7893  while $ac_more_lines; do
     7894    if test $ac_beg -gt 1; then
     7895      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7896    else
     7897      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7898    fi
     7899    if test ! -s $tmp/subs.frag; then
     7900      ac_more_lines=false
     7901    else
     7902      # The purpose of the label and of the branching condition is to
     7903      # speed up the sed processing (if there are no `@' at all, there
     7904      # is no need to browse any of the substitutions).
     7905      # These are the two extra sed commands mentioned above.
     7906      (echo ':t
     7907  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     7908      if test -z "$ac_sed_cmds"; then
     7909    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     7910      else
     7911    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     7912      fi
     7913      ac_sed_frag=`expr $ac_sed_frag + 1`
     7914      ac_beg=$ac_end
     7915      ac_end=`expr $ac_end + $ac_max_sed_lines`
     7916    fi
     7917  done
     7918  if test -z "$ac_sed_cmds"; then
     7919    ac_sed_cmds=cat
     7920  fi
     7921fi # test -n "$CONFIG_FILES"
     7922
     7923_ACEOF
     7924cat >>$CONFIG_STATUS <<\_ACEOF
     7925for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     7926  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     7927  case $ac_file in
     7928  - | *:- | *:-:* ) # input from stdin
     7929    cat >$tmp/stdin
     7930    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7931    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7932  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7933    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7934  * )   ac_file_in=$ac_file.in ;;
     7935  esac
     7936
     7937  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     7938  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7939$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7940     X"$ac_file" : 'X\(//\)[^/]' \| \
     7941     X"$ac_file" : 'X\(//\)$' \| \
     7942     X"$ac_file" : 'X\(/\)' \| \
     7943     .     : '\(.\)' 2>/dev/null ||
     7944echo X"$ac_file" |
     7945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7946      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7947      /^X\(\/\/\)$/{ s//\1/; q; }
     7948      /^X\(\/\).*/{ s//\1/; q; }
     7949      s/.*/./; q'`
     7950  { if $as_mkdir_p; then
     7951    mkdir -p "$ac_dir"
     7952  else
     7953    as_dir="$ac_dir"
     7954    as_dirs=
     7955    while test ! -d "$as_dir"; do
     7956      as_dirs="$as_dir $as_dirs"
     7957      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7958$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7959     X"$as_dir" : 'X\(//\)[^/]' \| \
     7960     X"$as_dir" : 'X\(//\)$' \| \
     7961     X"$as_dir" : 'X\(/\)' \| \
     7962     .     : '\(.\)' 2>/dev/null ||
     7963echo X"$as_dir" |
     7964    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7965      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7966      /^X\(\/\/\)$/{ s//\1/; q; }
     7967      /^X\(\/\).*/{ s//\1/; q; }
     7968      s/.*/./; q'`
     7969    done
     7970    test ! -n "$as_dirs" || mkdir $as_dirs
     7971  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7972echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7973   { (exit 1); exit 1; }; }; }
     7974
     7975  ac_builddir=.
     7976
     7977if test "$ac_dir" != .; then
     7978  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7979  # A "../" for each directory in $ac_dir_suffix.
     7980  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7981else
     7982  ac_dir_suffix= ac_top_builddir=
     7983fi
     7984
     7985case $srcdir in
     7986  .)  # No --srcdir option.  We are building in place.
     7987    ac_srcdir=.
     7988    if test -z "$ac_top_builddir"; then
     7989       ac_top_srcdir=.
     7990    else
     7991       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7992    fi ;;
     7993  [\\/]* | ?:[\\/]* )  # Absolute path.
     7994    ac_srcdir=$srcdir$ac_dir_suffix;
     7995    ac_top_srcdir=$srcdir ;;
     7996  *) # Relative path.
     7997    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7998    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7999esac
     8000
     8001# Do not use `cd foo && pwd` to compute absolute paths, because
     8002# the directories may not exist.
     8003case `pwd` in
     8004.) ac_abs_builddir="$ac_dir";;
     8005*)
     8006  case "$ac_dir" in
     8007  .) ac_abs_builddir=`pwd`;;
     8008  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     8009  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     8010  esac;;
     8011esac
     8012case $ac_abs_builddir in
     8013.) ac_abs_top_builddir=${ac_top_builddir}.;;
     8014*)
     8015  case ${ac_top_builddir}. in
     8016  .) ac_abs_top_builddir=$ac_abs_builddir;;
     8017  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     8018  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     8019  esac;;
     8020esac
     8021case $ac_abs_builddir in
     8022.) ac_abs_srcdir=$ac_srcdir;;
     8023*)
     8024  case $ac_srcdir in
     8025  .) ac_abs_srcdir=$ac_abs_builddir;;
     8026  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     8027  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     8028  esac;;
     8029esac
     8030case $ac_abs_builddir in
     8031.) ac_abs_top_srcdir=$ac_top_srcdir;;
     8032*)
     8033  case $ac_top_srcdir in
     8034  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     8035  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     8036  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     8037  esac;;
     8038esac
     8039
     8040
     8041  case $INSTALL in
     8042  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
     8043  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     8044  esac
     8045
     8046  if test x"$ac_file" != x-; then
     8047    { echo "$as_me:$LINENO: creating $ac_file" >&5
     8048echo "$as_me: creating $ac_file" >&6;}
     8049    rm -f "$ac_file"
     8050  fi
     8051  # Let's still pretend it is `configure' which instantiates (i.e., don't
     8052  # use $as_me), people would be surprised to read:
     8053  #    /* config.h.  Generated by config.status.  */
     8054  if test x"$ac_file" = x-; then
     8055    configure_input=
     8056  else
     8057    configure_input="$ac_file.  "
     8058  fi
     8059  configure_input=$configure_input"Generated from `echo $ac_file_in |
     8060                     sed 's,.*/,,'` by configure."
     8061
     8062  # First look for the input files in the build tree, otherwise in the
     8063  # src tree.
     8064  ac_file_inputs=`IFS=:
     8065    for f in $ac_file_in; do
     8066      case $f in
     8067      -) echo $tmp/stdin ;;
     8068      [\\/$]*)
     8069     # Absolute (can't be DOS-style, as IFS=:)
     8070     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     8071echo "$as_me: error: cannot find input file: $f" >&2;}
     8072   { (exit 1); exit 1; }; }
     8073     echo "$f";;
     8074      *) # Relative
     8075     if test -f "$f"; then
     8076       # Build tree
     8077       echo "$f"
     8078     elif test -f "$srcdir/$f"; then
     8079       # Source tree
     8080       echo "$srcdir/$f"
     8081     else
     8082       # /dev/null tree
     8083       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     8084echo "$as_me: error: cannot find input file: $f" >&2;}
     8085   { (exit 1); exit 1; }; }
     8086     fi;;
     8087      esac
     8088    done` || { (exit 1); exit 1; }
     8089_ACEOF
     8090cat >>$CONFIG_STATUS <<_ACEOF
     8091  sed "$ac_vpsub
    31218092$extrasub
    3122 s%@SHELL@%$SHELL%g
    3123 s%@CFLAGS@%$CFLAGS%g
    3124 s%@CPPFLAGS@%$CPPFLAGS%g
    3125 s%@CXXFLAGS@%$CXXFLAGS%g
    3126 s%@FFLAGS@%$FFLAGS%g
    3127 s%@DEFS@%$DEFS%g
    3128 s%@LDFLAGS@%$LDFLAGS%g
    3129 s%@LIBS@%$LIBS%g
    3130 s%@exec_prefix@%$exec_prefix%g
    3131 s%@prefix@%$prefix%g
    3132 s%@program_transform_name@%$program_transform_name%g
    3133 s%@bindir@%$bindir%g
    3134 s%@sbindir@%$sbindir%g
    3135 s%@libexecdir@%$libexecdir%g
    3136 s%@datadir@%$datadir%g
    3137 s%@sysconfdir@%$sysconfdir%g
    3138 s%@sharedstatedir@%$sharedstatedir%g
    3139 s%@localstatedir@%$localstatedir%g
    3140 s%@libdir@%$libdir%g
    3141 s%@includedir@%$includedir%g
    3142 s%@oldincludedir@%$oldincludedir%g
    3143 s%@infodir@%$infodir%g
    3144 s%@mandir@%$mandir%g
    3145 s%@PACKAGE@%$PACKAGE%g
    3146 s%@VERSION@%$VERSION%g
    3147 s%@CXX@%$CXX%g
    3148 s%@AWK@%$AWK%g
    3149 s%@YACC@%$YACC%g
    3150 s%@CC@%$CC%g
    3151 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    3152 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    3153 s%@INSTALL_DATA@%$INSTALL_DATA%g
    3154 s%@LN_S@%$LN_S%g
    3155 s%@SET_MAKE@%$SET_MAKE%g
    3156 s%@RANLIB@%$RANLIB%g
    3157 s%@CPP@%$CPP%g
    3158 s%@U@%$U%g
    3159 s%@ANSI2KNR@%$ANSI2KNR%g
    3160 s%@ALLOCA@%$ALLOCA%g
    3161 s%@LIBOBJS@%$LIBOBJS%g
    3162 
    3163 CEOF
    3164 EOF
    3165 
    3166 cat >> $CONFIG_STATUS <<\EOF
    3167 
    3168 # Split the substitutions into bite-sized pieces for seds with
    3169 # small command number limits, like on Digital OSF/1 and HP-UX.
    3170 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    3171 ac_file=1 # Number of current file.
    3172 ac_beg=1 # First line for current file.
    3173 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    3174 ac_more_lines=:
    3175 ac_sed_cmds=""
    3176 while $ac_more_lines; do
    3177   if test $ac_beg -gt 1; then
    3178     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
     8093_ACEOF
     8094cat >>$CONFIG_STATUS <<\_ACEOF
     8095:t
     8096/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     8097s,@configure_input@,$configure_input,;t t
     8098s,@srcdir@,$ac_srcdir,;t t
     8099s,@abs_srcdir@,$ac_abs_srcdir,;t t
     8100s,@top_srcdir@,$ac_top_srcdir,;t t
     8101s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
     8102s,@builddir@,$ac_builddir,;t t
     8103s,@abs_builddir@,$ac_abs_builddir,;t t
     8104s,@top_builddir@,$ac_top_builddir,;t t
     8105s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
     8106s,@INSTALL@,$ac_INSTALL,;t t
     8107" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     8108  rm -f $tmp/stdin
     8109  if test x"$ac_file" != x-; then
     8110    mv $tmp/out $ac_file
    31798111  else
    3180     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
     8112    cat $tmp/out
     8113    rm -f $tmp/out
    31818114  fi
    3182   if test ! -s conftest.s$ac_file; then
    3183     ac_more_lines=false
    3184     rm -f conftest.s$ac_file
    3185   else
    3186     if test -z "$ac_sed_cmds"; then
    3187       ac_sed_cmds="sed -f conftest.s$ac_file"
    3188     else
    3189       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    3190     fi
    3191     ac_file=`expr $ac_file + 1`
    3192     ac_beg=$ac_end
    3193     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    3194   fi
     8115
    31958116done
    3196 if test -z "$ac_sed_cmds"; then
    3197   ac_sed_cmds=cat
    3198 fi
    3199 EOF
    3200 
    3201 cat >> $CONFIG_STATUS <<EOF
    3202 
    3203 CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile lib/Makefile "}
    3204 EOF
    3205 cat >> $CONFIG_STATUS <<\EOF
    3206 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    3207   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3208   case "$ac_file" in
    3209   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3210        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3211   *) ac_file_in="${ac_file}.in" ;;
    3212   esac
    3213 
    3214   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    3215 
    3216   # Remove last slash and all that follows it.  Not all systems have dirname.
    3217   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    3218   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3219     # The file is in a subdirectory.
    3220     test ! -d "$ac_dir" && mkdir "$ac_dir"
    3221     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    3222     # A "../" for each directory in $ac_dir_suffix.
    3223     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    3224   else
    3225     ac_dir_suffix= ac_dots=
    3226   fi
    3227 
    3228   case "$ac_given_srcdir" in
    3229   .)  srcdir=.
    3230       if test -z "$ac_dots"; then top_srcdir=.
    3231       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    3232   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    3233   *) # Relative path.
    3234     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    3235     top_srcdir="$ac_dots$ac_given_srcdir" ;;
    3236   esac
    3237 
    3238   case "$ac_given_INSTALL" in
    3239   [/$]*) INSTALL="$ac_given_INSTALL" ;;
    3240   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    3241   esac
    3242 
    3243   echo creating "$ac_file"
    3244   rm -f "$ac_file"
    3245   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    3246   case "$ac_file" in
    3247   *Makefile*) ac_comsub="1i\\
    3248 # $configure_input" ;;
    3249   *) ac_comsub= ;;
    3250   esac
    3251 
    3252   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3253   sed -e "$ac_comsub
    3254 s%@configure_input@%$configure_input%g
    3255 s%@srcdir@%$srcdir%g
    3256 s%@top_srcdir@%$top_srcdir%g
    3257 s%@INSTALL@%$INSTALL%g
    3258 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    3259 fi; done
    3260 rm -f conftest.s*
     8117_ACEOF
     8118cat >>$CONFIG_STATUS <<\_ACEOF
     8119
     8120#
     8121# CONFIG_HEADER section.
     8122#
    32618123
    32628124# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    32648126#
    32658127# ac_d sets the value in "#define NAME VALUE" lines.
    3266 ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    3267 ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
    3268 ac_dC='\3'
    3269 ac_dD='%g'
    3270 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    3271 ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3272 ac_uB='\([  ]\)%\1#\2define\3'
     8128ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
     8129ac_dB='[     ].*$,\1#\2'
     8130ac_dC=' '
     8131ac_dD=',;t'
     8132# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     8133ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     8134ac_uB='$,\1#\2define\3'
    32738135ac_uC=' '
    3274 ac_uD='\4%g'
    3275 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    3276 ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3277 ac_eB='$%\1#\2define\3'
    3278 ac_eC=' '
    3279 ac_eD='%g'
    3280 
    3281 if test "${CONFIG_HEADERS+set}" != set; then
    3282 EOF
    3283 cat >> $CONFIG_STATUS <<EOF
    3284   CONFIG_HEADERS="config.h"
    3285 EOF
    3286 cat >> $CONFIG_STATUS <<\EOF
    3287 fi
    3288 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     8136ac_uD=',;t'
     8137
     8138for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    32898139  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3290   case "$ac_file" in
    3291   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3292        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3293   *) ac_file_in="${ac_file}.in" ;;
     8140  case $ac_file in
     8141  - | *:- | *:-:* ) # input from stdin
     8142    cat >$tmp/stdin
     8143    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     8144    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     8145  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     8146    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     8147  * )   ac_file_in=$ac_file.in ;;
    32948148  esac
    32958149
    3296   echo creating $ac_file
    3297 
    3298   rm -f conftest.frag conftest.in conftest.out
    3299   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3300   cat $ac_file_inputs > conftest.in
    3301 
    3302 EOF
    3303 
    3304 # Transform confdefs.h into a sed script conftest.vals that substitutes
    3305 # the proper values into config.h.in to produce config.h.  And first:
    3306 # Protect against being on the right side of a sed subst in config.status.
    3307 # Protect against being in an unquoted here document in config.status.
    3308 rm -f conftest.vals
    3309 cat > conftest.hdr <<\EOF
    3310 s/[\\&%]/\\&/g
    3311 s%[\\$`]%\\&%g
    3312 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    3313 s%ac_d%ac_u%gp
    3314 s%ac_u%ac_e%gp
    3315 EOF
    3316 sed -n -f conftest.hdr confdefs.h > conftest.vals
    3317 rm -f conftest.hdr
     8150  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
     8151echo "$as_me: creating $ac_file" >&6;}
     8152
     8153  # First look for the input files in the build tree, otherwise in the
     8154  # src tree.
     8155  ac_file_inputs=`IFS=:
     8156    for f in $ac_file_in; do
     8157      case $f in
     8158      -) echo $tmp/stdin ;;
     8159      [\\/$]*)
     8160     # Absolute (can't be DOS-style, as IFS=:)
     8161     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     8162echo "$as_me: error: cannot find input file: $f" >&2;}
     8163   { (exit 1); exit 1; }; }
     8164     # Do quote $f, to prevent DOS paths from being IFS'd.
     8165     echo "$f";;
     8166      *) # Relative
     8167     if test -f "$f"; then
     8168       # Build tree
     8169       echo "$f"
     8170     elif test -f "$srcdir/$f"; then
     8171       # Source tree
     8172       echo "$srcdir/$f"
     8173     else
     8174       # /dev/null tree
     8175       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     8176echo "$as_me: error: cannot find input file: $f" >&2;}
     8177   { (exit 1); exit 1; }; }
     8178     fi;;
     8179      esac
     8180    done` || { (exit 1); exit 1; }
     8181  # Remove the trailing spaces.
     8182  sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
     8183
     8184_ACEOF
     8185
     8186# Transform confdefs.h into two sed scripts, `conftest.defines' and
     8187# `conftest.undefs', that substitutes the proper values into
     8188# config.h.in to produce config.h.  The first handles `#define'
     8189# templates, and the second `#undef' templates.
     8190# And first: Protect against being on the right side of a sed subst in
     8191# config.status.  Protect against being in an unquoted here document
     8192# in config.status.
     8193rm -f conftest.defines conftest.undefs
     8194# Using a here document instead of a string reduces the quoting nightmare.
     8195# Putting comments in sed scripts is not portable.
     8196#
     8197# `end' is used to avoid that the second main sed command (meant for
     8198# 0-ary CPP macros) applies to n-ary macro definitions.
     8199# See the Autoconf documentation for `clear'.
     8200cat >confdef2sed.sed <<\_ACEOF
     8201s/[\\&,]/\\&/g
     8202s,[\\$`],\\&,g
     8203t clear
     8204: clear
     8205s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
     8206t end
     8207s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     8208: end
     8209_ACEOF
     8210# If some macros were called several times there might be several times
     8211# the same #defines, which is useless.  Nevertheless, we may not want to
     8212# sort them, since we want the *last* AC-DEFINE to be honored.
     8213uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     8214sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     8215rm -f confdef2sed.sed
    33188216
    33198217# This sed command replaces #undef with comments.  This is necessary, for
    33208218# example, in the case of _POSIX_SOURCE, which is predefined and required
    33218219# on some systems where configure will not decide to define it.
    3322 cat >> conftest.vals <<\EOF
    3323 s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
    3324 EOF
    3325 
    3326 # Break up conftest.vals because some shells have a limit on
    3327 # the size of here documents, and old seds have small limits too.
    3328 
     8220cat >>conftest.undefs <<\_ACEOF
     8221s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     8222_ACEOF
     8223
     8224# Break up conftest.defines because some shells have a limit on the size
     8225# of here documents, and old seds have small limits too (100 cmds).
     8226echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     8227echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     8228echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     8229echo '  :' >>$CONFIG_STATUS
    33298230rm -f conftest.tail
    3330 while :
     8231while grep . conftest.defines >/dev/null
    33318232do
    3332   ac_lines=`grep -c . conftest.vals`
    3333   # grep -c gives empty output for an empty file on some AIX systems.
    3334   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    3335   # Write a limited-size here document to conftest.frag.
    3336   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    3337   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     8233  # Write a limited-size here document to $tmp/defines.sed.
     8234  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     8235  # Speed up: don't consider the non `#define' lines.
     8236  echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
     8237  # Work around the forget-to-reset-the-flag bug.
     8238  echo 't clr' >>$CONFIG_STATUS
     8239  echo ': clr' >>$CONFIG_STATUS
     8240  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    33388241  echo 'CEOF
    3339   sed -f conftest.frag conftest.in > conftest.out
    3340   rm -f conftest.in
    3341   mv conftest.out conftest.in
    3342 ' >> $CONFIG_STATUS
    3343   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    3344   rm -f conftest.vals
    3345   mv conftest.tail conftest.vals
     8242  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     8243  rm -f $tmp/in
     8244  mv $tmp/out $tmp/in
     8245' >>$CONFIG_STATUS
     8246  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     8247  rm -f conftest.defines
     8248  mv conftest.tail conftest.defines
    33468249done
    3347 rm -f conftest.vals
    3348 
    3349 cat >> $CONFIG_STATUS <<\EOF
    3350   rm -f conftest.frag conftest.h
    3351   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    3352   cat conftest.in >> conftest.h
    3353   rm -f conftest.in
    3354   if cmp -s $ac_file conftest.h 2>/dev/null; then
    3355     echo "$ac_file is unchanged"
    3356     rm -f conftest.h
     8250rm -f conftest.defines
     8251echo '  fi # grep' >>$CONFIG_STATUS
     8252echo >>$CONFIG_STATUS
     8253
     8254# Break up conftest.undefs because some shells have a limit on the size
     8255# of here documents, and old seds have small limits too (100 cmds).
     8256echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     8257rm -f conftest.tail
     8258while grep . conftest.undefs >/dev/null
     8259do
     8260  # Write a limited-size here document to $tmp/undefs.sed.
     8261  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     8262  # Speed up: don't consider the non `#undef'
     8263  echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     8264  # Work around the forget-to-reset-the-flag bug.
     8265  echo 't clr' >>$CONFIG_STATUS
     8266  echo ': clr' >>$CONFIG_STATUS
     8267  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     8268  echo 'CEOF
     8269  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     8270  rm -f $tmp/in
     8271  mv $tmp/out $tmp/in
     8272' >>$CONFIG_STATUS
     8273  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     8274  rm -f conftest.undefs
     8275  mv conftest.tail conftest.undefs
     8276done
     8277rm -f conftest.undefs
     8278
     8279cat >>$CONFIG_STATUS <<\_ACEOF
     8280  # Let's still pretend it is `configure' which instantiates (i.e., don't
     8281  # use $as_me), people would be surprised to read:
     8282  #    /* config.h.  Generated by config.status.  */
     8283  if test x"$ac_file" = x-; then
     8284    echo "/* Generated by configure.  */" >$tmp/config.h
    33578285  else
    3358     # Remove last slash and all that follows it.  Not all systems have dirname.
    3359       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    3360       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3361       # The file is in a subdirectory.
    3362       test ! -d "$ac_dir" && mkdir "$ac_dir"
     8286    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
     8287  fi
     8288  cat $tmp/in >>$tmp/config.h
     8289  rm -f $tmp/in
     8290  if test x"$ac_file" != x-; then
     8291    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     8292      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
     8293echo "$as_me: $ac_file is unchanged" >&6;}
     8294    else
     8295      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     8296$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     8297     X"$ac_file" : 'X\(//\)[^/]' \| \
     8298     X"$ac_file" : 'X\(//\)$' \| \
     8299     X"$ac_file" : 'X\(/\)' \| \
     8300     .     : '\(.\)' 2>/dev/null ||
     8301echo X"$ac_file" |
     8302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     8303      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     8304      /^X\(\/\/\)$/{ s//\1/; q; }
     8305      /^X\(\/\).*/{ s//\1/; q; }
     8306      s/.*/./; q'`
     8307      { if $as_mkdir_p; then
     8308    mkdir -p "$ac_dir"
     8309  else
     8310    as_dir="$ac_dir"
     8311    as_dirs=
     8312    while test ! -d "$as_dir"; do
     8313      as_dirs="$as_dir $as_dirs"
     8314      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     8315$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     8316     X"$as_dir" : 'X\(//\)[^/]' \| \
     8317     X"$as_dir" : 'X\(//\)$' \| \
     8318     X"$as_dir" : 'X\(/\)' \| \
     8319     .     : '\(.\)' 2>/dev/null ||
     8320echo X"$as_dir" |
     8321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     8322      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     8323      /^X\(\/\/\)$/{ s//\1/; q; }
     8324      /^X\(\/\).*/{ s//\1/; q; }
     8325      s/.*/./; q'`
     8326    done
     8327    test ! -n "$as_dirs" || mkdir $as_dirs
     8328  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     8329echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     8330   { (exit 1); exit 1; }; }; }
     8331
     8332      rm -f $ac_file
     8333      mv $tmp/config.h $ac_file
    33638334    fi
    3364     rm -f $ac_file
    3365     mv conftest.h $ac_file
     8335  else
     8336    cat $tmp/config.h
     8337    rm -f $tmp/config.h
    33668338  fi
    3367 fi; done
    3368 
    3369 EOF
    3370 cat >> $CONFIG_STATUS <<EOF
    3371 
    3372 EOF
    3373 cat >> $CONFIG_STATUS <<\EOF
    3374 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    3375 exit 0
    3376 EOF
     8339done
     8340_ACEOF
     8341cat >>$CONFIG_STATUS <<\_ACEOF
     8342
     8343#
     8344# CONFIG_COMMANDS section.
     8345#
     8346for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
     8347  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
     8348  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
     8349  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
     8350$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     8351     X"$ac_dest" : 'X\(//\)[^/]' \| \
     8352     X"$ac_dest" : 'X\(//\)$' \| \
     8353     X"$ac_dest" : 'X\(/\)' \| \
     8354     .     : '\(.\)' 2>/dev/null ||
     8355echo X"$ac_dest" |
     8356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     8357      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     8358      /^X\(\/\/\)$/{ s//\1/; q; }
     8359      /^X\(\/\).*/{ s//\1/; q; }
     8360      s/.*/./; q'`
     8361  { if $as_mkdir_p; then
     8362    mkdir -p "$ac_dir"
     8363  else
     8364    as_dir="$ac_dir"
     8365    as_dirs=
     8366    while test ! -d "$as_dir"; do
     8367      as_dirs="$as_dir $as_dirs"
     8368      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     8369$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     8370     X"$as_dir" : 'X\(//\)[^/]' \| \
     8371     X"$as_dir" : 'X\(//\)$' \| \
     8372     X"$as_dir" : 'X\(/\)' \| \
     8373     .     : '\(.\)' 2>/dev/null ||
     8374echo X"$as_dir" |
     8375    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     8376      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     8377      /^X\(\/\/\)$/{ s//\1/; q; }
     8378      /^X\(\/\).*/{ s//\1/; q; }
     8379      s/.*/./; q'`
     8380    done
     8381    test ! -n "$as_dirs" || mkdir $as_dirs
     8382  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     8383echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     8384   { (exit 1); exit 1; }; }; }
     8385
     8386  ac_builddir=.
     8387
     8388if test "$ac_dir" != .; then
     8389  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     8390  # A "../" for each directory in $ac_dir_suffix.
     8391  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     8392else
     8393  ac_dir_suffix= ac_top_builddir=
     8394fi
     8395
     8396case $srcdir in
     8397  .)  # No --srcdir option.  We are building in place.
     8398    ac_srcdir=.
     8399    if test -z "$ac_top_builddir"; then
     8400       ac_top_srcdir=.
     8401    else
     8402       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     8403    fi ;;
     8404  [\\/]* | ?:[\\/]* )  # Absolute path.
     8405    ac_srcdir=$srcdir$ac_dir_suffix;
     8406    ac_top_srcdir=$srcdir ;;
     8407  *) # Relative path.
     8408    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     8409    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     8410esac
     8411
     8412# Do not use `cd foo && pwd` to compute absolute paths, because
     8413# the directories may not exist.
     8414case `pwd` in
     8415.) ac_abs_builddir="$ac_dir";;
     8416*)
     8417  case "$ac_dir" in
     8418  .) ac_abs_builddir=`pwd`;;
     8419  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     8420  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     8421  esac;;
     8422esac
     8423case $ac_abs_builddir in
     8424.) ac_abs_top_builddir=${ac_top_builddir}.;;
     8425*)
     8426  case ${ac_top_builddir}. in
     8427  .) ac_abs_top_builddir=$ac_abs_builddir;;
     8428  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     8429  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     8430  esac;;
     8431esac
     8432case $ac_abs_builddir in
     8433.) ac_abs_srcdir=$ac_srcdir;;
     8434*)
     8435  case $ac_srcdir in
     8436  .) ac_abs_srcdir=$ac_abs_builddir;;
     8437  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     8438  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     8439  esac;;
     8440esac
     8441case $ac_abs_builddir in
     8442.) ac_abs_top_srcdir=$ac_top_srcdir;;
     8443*)
     8444  case $ac_top_srcdir in
     8445  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     8446  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     8447  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     8448  esac;;
     8449esac
     8450
     8451
     8452  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
     8453echo "$as_me: executing $ac_dest commands" >&6;}
     8454  case $ac_dest in
     8455    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
     8456  esac
     8457done
     8458_ACEOF
     8459
     8460cat >>$CONFIG_STATUS <<\_ACEOF
     8461
     8462{ (exit 0); exit 0; }
     8463_ACEOF
    33778464chmod +x $CONFIG_STATUS
    3378 rm -fr confdefs* $ac_clean_files
    3379 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    3380 
     8465ac_clean_files=$ac_clean_files_save
     8466
     8467
     8468# configure is writing to config.log, and then calls config.status.
     8469# config.status does its own redirection, appending to config.log.
     8470# Unfortunately, on DOS this fails, as config.log is still kept open
     8471# by configure, so config.status won't be able to write to it; its
     8472# output is simply discarded.  So we exec the FD to /dev/null,
     8473# effectively closing config.log, so it can be properly (re)opened and
     8474# appended to by config.status.  When coming back to configure, we
     8475# need to make the FD available again.
     8476if test "$no_create" != yes; then
     8477  ac_cs_success=:
     8478  ac_config_status_args=
     8479  test "$silent" = yes &&
     8480    ac_config_status_args="$ac_config_status_args --quiet"
     8481  exec 5>/dev/null
     8482  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
     8483  exec 5>>config.log
     8484  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     8485  # would make configure fail if this is the last instruction.
     8486  $ac_cs_success || { (exit 1); exit 1; }
     8487fi
     8488
  • trunk/gsdl/src/mgpp/configure.in

    r859 r10850  
    7575if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    7676  AC_MSG_RESULT(yes)
    77   LIBOBJS="$LIBOBJS gmalloc.o"
     77  AC_LIBOBJ(gmalloc)
    7878  AC_DEFINE(HAVE_VALLOC)
    7979else
     
    8686fp_WITH_GNU_READLINE
    8787
     88AC_C_BIGENDIAN
     89
    8890# ---------------------------------------------------------------------------
    8991if test "$ac_cv_func_alloca" = 'no'; then
    9092dnl    support functions for alloca.c
    91   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     93  AC_LIBOBJ(xmalloc)
     94  AC_LIBOBJ(error)
    9295fi
    9396
Note: See TracChangeset for help on using the changeset viewer.