Changeset 8063


Ignore:
Timestamp:
2004-08-26T11:58:13+12:00 (20 years ago)
Author:
kjdon
Message:

added a fix to get ENABLE_NLS working

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mgpp/configure

    r8059 r8063  
    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 Autoconf 2.50.
    64#
     5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     6# Free Software Foundation, Inc.
    77# This configure script is free software; the Free Software Foundation
    88# gives unlimited permission to copy, distribute and modify it.
    99
    10 # Defaults:
    11 ac_help=
     10# Be Bourne compatible
     11if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     12  emulate sh
     13  NULLCMD=:
     14elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     15  set -o posix
     16fi
     17
     18# Name of the executable.
     19as_me=`echo "$0" |sed 's,.*[\\/],,'`
     20
     21if expr a : '\(a\)' >/dev/null 2>&1; then
     22  as_expr=expr
     23else
     24  as_expr=false
     25fi
     26
     27rm -f conf$$ conf$$.exe conf$$.file
     28echo >conf$$.file
     29if ln -s conf$$.file conf$$ 2>/dev/null; then
     30  # We could just check for DJGPP; but this test a) works b) is more generic
     31  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     32  if test -f conf$$.exe; then
     33    # Don't use ln at all; we don't have any links
     34    as_ln_s='cp -p'
     35  else
     36    as_ln_s='ln -s'
     37  fi
     38elif ln conf$$.file conf$$ 2>/dev/null; then
     39  as_ln_s=ln
     40else
     41  as_ln_s='cp -p'
     42fi
     43rm -f conf$$ conf$$.exe conf$$.file
     44
     45as_executable_p="test -f"
     46
     47# Support unset when possible.
     48if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     49  as_unset=unset
     50else
     51  as_unset=false
     52fi
     53
     54# NLS nuisances.
     55$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     56$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     57$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     58$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     59$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     60$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     61$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     62$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     63
     64# IFS
     65# We need space, tab and new line, in precisely that order.
     66as_nl='
     67'
     68IFS="   $as_nl"
     69
     70# CDPATH.
     71$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     72
     73# Name of the host.
     74# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     75# so uname gets run too.
     76ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     77
     78exec 6>&1
     79
     80#
     81# Initializations.
     82#
    1283ac_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"
     84cross_compiling=no
     85subdirs=
     86MFLAGS= MAKEFLAGS=
     87SHELL=${CONFIG_SHELL-/bin/sh}
     88
     89# Maximum number of lines to put in a shell here document.
     90# This variable seems obsolete.  It should probably be removed, and
     91# only ac_max_sed_lines should be used.
     92: ${ac_max_here_lines=38}
     93
     94# Avoid depending upon Character Ranges.
     95ac_cr_az='abcdefghijklmnopqrstuvwxyz'
     96ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     97ac_cr_09='0123456789'
     98ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
     99
     100# Sed expression to map a string onto a valid sh and CPP variable names.
     101ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
     102ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
     103
     104ac_unique_file="text/MGQuery.cpp"
     105# Factoring default headers for most tests.
     106ac_includes_default="\
     107#include <stdio.h>
     108#include <sys/types.h>
     109#include <sys/stat.h>
     110#if STDC_HEADERS
     111# include <stdlib.h>
     112# include <stddef.h>
     113#else
     114# if HAVE_STDLIB_H
     115#  include <stdlib.h>
     116# endif
     117#endif
     118#if HAVE_STRING_H
     119# if !STDC_HEADERS && HAVE_MEMORY_H
     120#  include <memory.h>
     121# endif
     122# include <string.h>
     123#else
     124# if HAVE_STRINGS_H
     125#  include <strings.h>
     126# endif
     127#endif
     128#if HAVE_INTTYPES_H
     129# include <inttypes.h>
     130#endif
     131#if HAVE_UNISTD_H
     132# include <unistd.h>
     133#endif"
    24134
    25135# Initialize some variables set by options.
     136ac_init_help=
     137ac_init_version=false
    26138# The variables have the same names as the options, with
    27139# dashes changed to underlines.
    28 build=NONE
    29 cache_file=./config.cache
     140cache_file=/dev/null
    30141exec_prefix=NONE
    31 host=NONE
    32142no_create=
    33 nonopt=NONE
    34143no_recursion=
    35144prefix=NONE
     
    40149site=
    41150srcdir=
    42 target=NONE
    43151verbose=
    44152x_includes=NONE
    45153x_libraries=NONE
     154
     155# Installation directory options.
     156# These are left unexpanded so users can "make install exec_prefix=/foo"
     157# and all the variables that are supposed to be based on exec_prefix
     158# by default will actually change.
     159# Use braces instead of parens because sh, perl, etc. also accept them.
    46160bindir='${exec_prefix}/bin'
    47161sbindir='${exec_prefix}/sbin'
     
    57171mandir='${prefix}/man'
    58172
    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
     173# Identity of this package.
     174PACKAGE_NAME=
     175PACKAGE_TARNAME=
     176PACKAGE_VERSION=
     177PACKAGE_STRING=
     178PACKAGE_BUGREPORT=
    65179
    66180ac_prev=
    67181for ac_option
    68182do
    69 
    70183  # If the previous option needs an argument, assign it.
    71184  if test -n "$ac_prev"; then
     
    75188  fi
    76189
    77   case "$ac_option" in
    78   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    79   *) ac_optarg= ;;
    80   esac
     190  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    81191
    82192  # Accept the important Cygnus configure options, so we can diagnose typos.
    83193
    84   case "$ac_option" in
     194  case $ac_option in
    85195
    86196  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    87197    ac_prev=bindir ;;
    88198  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    89     bindir="$ac_optarg" ;;
     199    bindir=$ac_optarg ;;
    90200
    91201  -build | --build | --buil | --bui | --bu)
    92     ac_prev=build ;;
     202    ac_prev=build_alias ;;
    93203  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    94     build="$ac_optarg" ;;
     204    build_alias=$ac_optarg ;;
    95205
    96206  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    99209  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    100210  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    101     cache_file="$ac_optarg" ;;
     211    cache_file=$ac_optarg ;;
     212
     213  --config-cache | -C)
     214    cache_file=config.cache ;;
    102215
    103216  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    105218  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    106219  | --da=*)
    107     datadir="$ac_optarg" ;;
     220    datadir=$ac_optarg ;;
    108221
    109222  -disable-* | --disable-*)
    110     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     223    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    111224    # 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" ;;
     225    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     226      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     227   { (exit 1); exit 1; }; }
     228    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     229    eval "enable_$ac_feature=no" ;;
    117230
    118231  -enable-* | --enable-*)
    119     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     232    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    120233    # 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       *=*) ;;
     234    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     235      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     236   { (exit 1); exit 1; }; }
     237    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     238    case $ac_option in
     239      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    127240      *) ac_optarg=yes ;;
    128241    esac
    129     eval "enable_${ac_feature}='$ac_optarg'" ;;
     242    eval "enable_$ac_feature='$ac_optarg'" ;;
    130243
    131244  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    136249  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    137250  | --exec=* | --exe=* | --ex=*)
    138     exec_prefix="$ac_optarg" ;;
     251    exec_prefix=$ac_optarg ;;
    139252
    140253  -gas | --gas | --ga | --g)
     
    142255    with_gas=yes ;;
    143256
    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 ;;
     257  -help | --help | --hel | --he | -h)
     258    ac_init_help=long ;;
     259  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     260    ac_init_help=recursive ;;
     261  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     262    ac_init_help=short ;;
    198263
    199264  -host | --host | --hos | --ho)
    200     ac_prev=host ;;
     265    ac_prev=host_alias ;;
    201266  -host=* | --host=* | --hos=* | --ho=*)
    202     host="$ac_optarg" ;;
     267    host_alias=$ac_optarg ;;
    203268
    204269  -includedir | --includedir | --includedi | --included | --include \
     
    207272  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    208273  | --includ=* | --inclu=* | --incl=* | --inc=*)
    209     includedir="$ac_optarg" ;;
     274    includedir=$ac_optarg ;;
    210275
    211276  -infodir | --infodir | --infodi | --infod | --info | --inf)
    212277    ac_prev=infodir ;;
    213278  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    214     infodir="$ac_optarg" ;;
     279    infodir=$ac_optarg ;;
    215280
    216281  -libdir | --libdir | --libdi | --libd)
    217282    ac_prev=libdir ;;
    218283  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    219     libdir="$ac_optarg" ;;
     284    libdir=$ac_optarg ;;
    220285
    221286  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    224289  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    225290  | --libexe=* | --libex=* | --libe=*)
    226     libexecdir="$ac_optarg" ;;
     291    libexecdir=$ac_optarg ;;
    227292
    228293  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    233298  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    234299  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    235     localstatedir="$ac_optarg" ;;
     300    localstatedir=$ac_optarg ;;
    236301
    237302  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    238303    ac_prev=mandir ;;
    239304  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    240     mandir="$ac_optarg" ;;
     305    mandir=$ac_optarg ;;
    241306
    242307  -nfp | --nfp | --nf)
     
    259324  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    260325  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    261     oldincludedir="$ac_optarg" ;;
     326    oldincludedir=$ac_optarg ;;
    262327
    263328  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    264329    ac_prev=prefix ;;
    265330  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    266     prefix="$ac_optarg" ;;
     331    prefix=$ac_optarg ;;
    267332
    268333  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    271336  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    272337  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    273     program_prefix="$ac_optarg" ;;
     338    program_prefix=$ac_optarg ;;
    274339
    275340  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    278343  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    279344  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    280     program_suffix="$ac_optarg" ;;
     345    program_suffix=$ac_optarg ;;
    281346
    282347  -program-transform-name | --program-transform-name \
     
    295360  | --program-trans=* | --program-tran=* \
    296361  | --progr-tra=* | --program-tr=* | --program-t=*)
    297     program_transform_name="$ac_optarg" ;;
     362    program_transform_name=$ac_optarg ;;
    298363
    299364  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    305370  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    306371  | --sbi=* | --sb=*)
    307     sbindir="$ac_optarg" ;;
     372    sbindir=$ac_optarg ;;
    308373
    309374  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    316381  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    317382  | --sha=* | --sh=*)
    318     sharedstatedir="$ac_optarg" ;;
     383    sharedstatedir=$ac_optarg ;;
    319384
    320385  -site | --site | --sit)
    321386    ac_prev=site ;;
    322387  -site=* | --site=* | --sit=*)
    323     site="$ac_optarg" ;;
     388    site=$ac_optarg ;;
    324389
    325390  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    326391    ac_prev=srcdir ;;
    327392  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    328     srcdir="$ac_optarg" ;;
     393    srcdir=$ac_optarg ;;
    329394
    330395  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    333398  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    334399  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    335     sysconfdir="$ac_optarg" ;;
     400    sysconfdir=$ac_optarg ;;
    336401
    337402  -target | --target | --targe | --targ | --tar | --ta | --t)
    338     ac_prev=target ;;
     403    ac_prev=target_alias ;;
    339404  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    340     target="$ac_optarg" ;;
     405    target_alias=$ac_optarg ;;
    341406
    342407  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    343408    verbose=yes ;;
    344409
    345   -version | --version | --versio | --versi | --vers)
    346     echo "configure generated by autoconf version 2.13"
    347     exit 0 ;;
     410  -version | --version | --versio | --versi | --vers | -V)
     411    ac_init_version=: ;;
    348412
    349413  -with-* | --with-*)
    350     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     414    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    351415    # 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
     416    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     417      { echo "$as_me: error: invalid package name: $ac_package" >&2
     418   { (exit 1); exit 1; }; }
    355419    ac_package=`echo $ac_package| sed 's/-/_/g'`
    356     case "$ac_option" in
    357       *=*) ;;
     420    case $ac_option in
     421      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    358422      *) ac_optarg=yes ;;
    359423    esac
    360     eval "with_${ac_package}='$ac_optarg'" ;;
     424    eval "with_$ac_package='$ac_optarg'" ;;
    361425
    362426  -without-* | --without-*)
    363     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     427    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    364428    # 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" ;;
     429    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     430      { echo "$as_me: error: invalid package name: $ac_package" >&2
     431   { (exit 1); exit 1; }; }
     432    ac_package=`echo $ac_package | sed 's/-/_/g'`
     433    eval "with_$ac_package=no" ;;
    370434
    371435  --x)
     
    378442  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    379443  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    380     x_includes="$ac_optarg" ;;
     444    x_includes=$ac_optarg ;;
    381445
    382446  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    385449  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    386450  | --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; }
     451    x_libraries=$ac_optarg ;;
     452
     453  -*) { echo "$as_me: error: unrecognized option: $ac_option
     454Try \`$0 --help' for more information." >&2
     455   { (exit 1); exit 1; }; }
    390456    ;;
    391457
     458  *=*)
     459    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     460    # Reject names that are not valid shell variable names.
     461    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
     462      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     463   { (exit 1); exit 1; }; }
     464    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     465    eval "$ac_envvar='$ac_optarg'"
     466    export $ac_envvar ;;
     467
    392468  *)
    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"
     469    # FIXME: should be removed in autoconf 3.0.
     470    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     471    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
     472      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     473    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    400474    ;;
    401475
     
    404478
    405479if 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
     480  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     481  { echo "$as_me: error: missing argument to $ac_option" >&2
     482   { (exit 1); exit 1; }; }
     483fi
     484
     485# Be sure to have absolute paths.
     486for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     487              localstatedir libdir includedir oldincludedir infodir mandir \
     488              exec_prefix prefix
    435489do
    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" ;;
     490  eval ac_val=$`echo $ac_var`
     491  case $ac_val in
     492    [\\/$]* | ?:[\\/]* ) ;;
     493    NONE ) ;;
     494    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
     495   { (exit 1); exit 1; }; };;
    444496  esac
    445497done
    446498
    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
     499# There might be people who depend on the old broken behavior: `$host'
     500# used to hold the argument of --host etc.
     501build=$build_alias
     502host=$host_alias
     503target=$target_alias
     504
     505# FIXME: should be removed in autoconf 3.0.
     506if test "x$host_alias" != x; then
     507  if test "x$build_alias" = x; then
     508    cross_compiling=maybe
     509    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     510    If a cross compiler is detected then cross compile mode will be used." >&2
     511  elif test "x$build_alias" != "x$host_alias"; then
     512    cross_compiling=yes
     513  fi
     514fi
     515
     516ac_tool_prefix=
     517test -n "$host_alias" && ac_tool_prefix=$host_alias-
     518
     519test "$silent" = yes && exec 6>/dev/null
    465520
    466521# Find the source files, if location was not specified.
     
    469524  # Try the directory containing this script, then its parent.
    470525  ac_prog=$0
    471   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
     526  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    472527  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    473528  srcdir=$ac_confdir
     
    480535if test ! -r $srcdir/$ac_unique_file; then
    481536  if test "$ac_srcdir_defaulted" = yes; then
    482     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     537    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
     538   { (exit 1); exit 1; }; }
    483539  else
    484     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     540    { echo "$as_me: error: cannot find sources in $srcdir" >&2
     541   { (exit 1); exit 1; }; }
    485542  fi
    486543fi
    487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    488 
     544srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     545ac_env_build_alias_set=${build_alias+set}
     546ac_env_build_alias_value=$build_alias
     547ac_cv_env_build_alias_set=${build_alias+set}
     548ac_cv_env_build_alias_value=$build_alias
     549ac_env_host_alias_set=${host_alias+set}
     550ac_env_host_alias_value=$host_alias
     551ac_cv_env_host_alias_set=${host_alias+set}
     552ac_cv_env_host_alias_value=$host_alias
     553ac_env_target_alias_set=${target_alias+set}
     554ac_env_target_alias_value=$target_alias
     555ac_cv_env_target_alias_set=${target_alias+set}
     556ac_cv_env_target_alias_value=$target_alias
     557ac_env_CXX_set=${CXX+set}
     558ac_env_CXX_value=$CXX
     559ac_cv_env_CXX_set=${CXX+set}
     560ac_cv_env_CXX_value=$CXX
     561ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     562ac_env_CXXFLAGS_value=$CXXFLAGS
     563ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     564ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     565ac_env_LDFLAGS_set=${LDFLAGS+set}
     566ac_env_LDFLAGS_value=$LDFLAGS
     567ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     568ac_cv_env_LDFLAGS_value=$LDFLAGS
     569ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     570ac_env_CPPFLAGS_value=$CPPFLAGS
     571ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     572ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     573ac_env_CC_set=${CC+set}
     574ac_env_CC_value=$CC
     575ac_cv_env_CC_set=${CC+set}
     576ac_cv_env_CC_value=$CC
     577ac_env_CFLAGS_set=${CFLAGS+set}
     578ac_env_CFLAGS_value=$CFLAGS
     579ac_cv_env_CFLAGS_set=${CFLAGS+set}
     580ac_cv_env_CFLAGS_value=$CFLAGS
     581ac_env_CPP_set=${CPP+set}
     582ac_env_CPP_value=$CPP
     583ac_cv_env_CPP_set=${CPP+set}
     584ac_cv_env_CPP_value=$CPP
     585
     586#
     587# Report the --help message.
     588#
     589if test "$ac_init_help" = "long"; then
     590  # Omit some internal or obsolete options to make the list less imposing.
     591  # This message is too long to be a string in the A/UX 3.1 sh.
     592  cat <<EOF
     593\`configure' configures this package to adapt to many kinds of systems.
     594
     595Usage: $0 [OPTION]... [VAR=VALUE]...
     596
     597To assign environment variables (e.g., CC, CFLAGS...), specify them as
     598VAR=VALUE.  See below for descriptions of some of the useful variables.
     599
     600Defaults for the options are specified in brackets.
     601
     602Configuration:
     603  -h, --help              display this help and exit
     604      --help=short        display options specific to this package
     605      --help=recursive    display the short help of all the included packages
     606  -V, --version           display version information and exit
     607  -q, --quiet, --silent   do not print \`checking...' messages
     608      --cache-file=FILE   cache test results in FILE [disabled]
     609  -C, --config-cache      alias for \`--cache-file=config.cache'
     610  -n, --no-create         do not create output files
     611      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     612
     613EOF
     614
     615  cat <<EOF
     616Installation directories:
     617  --prefix=PREFIX         install architecture-independent files in PREFIX
     618                          [$ac_default_prefix]
     619  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     620                          [PREFIX]
     621
     622By default, \`make install' will install all the files in
     623\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     624an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     625for instance \`--prefix=\$HOME'.
     626
     627For better control, use the options below.
     628
     629Fine tuning of the installation directories:
     630  --bindir=DIR           user executables [EPREFIX/bin]
     631  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     632  --libexecdir=DIR       program executables [EPREFIX/libexec]
     633  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     634  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     635  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     636  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     637  --libdir=DIR           object code libraries [EPREFIX/lib]
     638  --includedir=DIR       C header files [PREFIX/include]
     639  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     640  --infodir=DIR          info documentation [PREFIX/info]
     641  --mandir=DIR           man documentation [PREFIX/man]
     642EOF
     643
     644  cat <<\EOF
     645
     646Program names:
     647  --program-prefix=PREFIX            prepend PREFIX to installed program names
     648  --program-suffix=SUFFIX            append SUFFIX to installed program names
     649  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     650EOF
     651fi
     652
     653if test -n "$ac_init_help"; then
     654
     655  cat <<\EOF
     656
     657Optional Features:
     658  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     659  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     660  --enable-override-longlong
     661                          overide use of long long with GCC
     662
     663Optional Packages:
     664  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     665  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     666  --with-dmalloc          use dmalloc, as in
     667                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
     668  --with-regex            use older regex in lieu of GNU rx for matching
     669  --with-gnu-readline     compile with GNU readline support
     670
     671Some influential environment variables:
     672  CXX         C++ compiler command
     673  CXXFLAGS    C++ compiler flags
     674  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     675              nonstandard directory <lib dir>
     676  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     677              headers in a nonstandard directory <include dir>
     678  CC          C compiler command
     679  CFLAGS      C compiler flags
     680  CPP         C preprocessor
     681
     682Use these variables to override the choices made by `configure' or to help
     683it to find libraries and programs with nonstandard names/locations.
     684
     685EOF
     686fi
     687
     688if test "$ac_init_help" = "recursive"; then
     689  # If there are subdirs, report their specific --help.
     690  ac_popdir=`pwd`
     691  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
     692    cd $ac_subdir
     693    # A "../" for each directory in /$ac_subdir.
     694    ac_dots=`echo $ac_subdir |
     695             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
     696
     697    case $srcdir in
     698    .) # No --srcdir option.  We are building in place.
     699      ac_sub_srcdir=$srcdir ;;
     700    [\\/]* | ?:[\\/]* ) # Absolute path.
     701      ac_sub_srcdir=$srcdir/$ac_subdir ;;
     702    *) # Relative path.
     703      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
     704    esac
     705
     706    # Check for guested configure; otherwise get Cygnus style configure.
     707    if test -f $ac_sub_srcdir/configure.gnu; then
     708      echo
     709      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
     710    elif test -f $ac_sub_srcdir/configure; then
     711      echo
     712      $SHELL $ac_sub_srcdir/configure  --help=recursive
     713    elif test -f $ac_sub_srcdir/configure.ac ||
     714           test -f $ac_sub_srcdir/configure.in; then
     715      echo
     716      $ac_configure --help
     717    else
     718      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
     719    fi
     720    cd $ac_popdir
     721  done
     722fi
     723
     724test -n "$ac_init_help" && exit 0
     725if $ac_init_version; then
     726  cat <<\EOF
     727
     728Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     729Free Software Foundation, Inc.
     730This configure script is free software; the Free Software Foundation
     731gives unlimited permission to copy, distribute and modify it.
     732EOF
     733  exit 0
     734fi
     735exec 5>config.log
     736cat >&5 <<EOF
     737This file contains any messages produced by compilers while
     738running configure, to aid debugging if configure makes a mistake.
     739
     740It was created by $as_me, which was
     741generated by GNU Autoconf 2.50.  Invocation command line was
     742
     743  $ $0 $@
     744
     745EOF
     746{
     747cat <<_ASUNAME
     748## ---------- ##
     749## Platform.  ##
     750## ---------- ##
     751
     752hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     753uname -m = `(uname -m) 2>/dev/null || echo unknown`
     754uname -r = `(uname -r) 2>/dev/null || echo unknown`
     755uname -s = `(uname -s) 2>/dev/null || echo unknown`
     756uname -v = `(uname -v) 2>/dev/null || echo unknown`
     757
     758/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     759/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     760
     761/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     762/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     763/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     764hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     765/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     766/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     767/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     768
     769PATH = $PATH
     770
     771_ASUNAME
     772} >&5
     773
     774cat >&5 <<EOF
     775## ------------ ##
     776## Core tests.  ##
     777## ------------ ##
     778
     779EOF
     780
     781# Keep a trace of the command line.
     782# Strip out --no-create and --no-recursion so they do not pile up.
     783# Also quote any args containing shell meta-characters.
     784ac_configure_args=
     785ac_sep=
     786for ac_arg
     787do
     788  case $ac_arg in
     789  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     790  | --no-cr | --no-c) ;;
     791  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     792  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     793  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     794    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
     795    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     796    ac_sep=" " ;;
     797  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     798     ac_sep=" " ;;
     799  esac
     800  # Get rid of the leading space.
     801done
     802
     803# When interrupted or exit'd, cleanup temporary files, and complete
     804# config.log.  We remove comments because anyway the quotes in there
     805# would cause problems or look ugly.
     806trap 'exit_status=$?
     807  # Save into config.log some information that might help in debugging.
     808  echo >&5
     809  echo "## ----------------- ##" >&5
     810  echo "## Cache variables.  ##" >&5
     811  echo "## ----------------- ##" >&5
     812  echo >&5
     813  # The following way of writing the cache mishandles newlines in values,
     814{
     815  (set) 2>&1 |
     816    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     817    *ac_space=\ *)
     818      sed -n \
     819        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     820          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     821      ;;
     822    *)
     823      sed -n \
     824        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     825      ;;
     826    esac;
     827} >&5
     828  sed "/^$/d" confdefs.h >conftest.log
     829  if test -s conftest.log; then
     830    echo >&5
     831    echo "## ------------ ##" >&5
     832    echo "## confdefs.h.  ##" >&5
     833    echo "## ------------ ##" >&5
     834    echo >&5
     835    cat conftest.log >&5
     836  fi
     837  (echo; echo) >&5
     838  test "$ac_signal" != 0 &&
     839    echo "$as_me: caught signal $ac_signal" >&5
     840  echo "$as_me: exit $exit_status" >&5
     841  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
     842    exit $exit_status
     843     ' 0
     844for ac_signal in 1 2 13 15; do
     845  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
     846done
     847ac_signal=0
     848
     849# confdefs.h avoids OS command line length limits that DEFS can exceed.
     850rm -rf conftest* confdefs.h
     851# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     852echo >confdefs.h
     853
     854# Let the site file select an alternate cache file if it wants to.
    489855# Prefer explicitly selected file to automatically selected ones.
    490856if test -z "$CONFIG_SITE"; then
     
    497863for ac_site_file in $CONFIG_SITE; do
    498864  if test -r "$ac_site_file"; then
    499     echo "loading site script $ac_site_file"
     865    { echo "$as_me:865: loading site script $ac_site_file" >&5
     866echo "$as_me: loading site script $ac_site_file" >&6;}
     867    cat "$ac_site_file" >&5
    500868    . "$ac_site_file"
    501869  fi
     
    503871
    504872if 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
     873  # Some versions of bash will fail to source /dev/null (special
     874  # files actually), so we avoid doing that.
     875  if test -f "$cache_file"; then
     876    { echo "$as_me:876: loading cache $cache_file" >&5
     877echo "$as_me: loading cache $cache_file" >&6;}
     878    case $cache_file in
     879      [\\/]* | ?:[\\/]* ) . $cache_file;;
     880      *)                      . ./$cache_file;;
     881    esac
     882  fi
     883else
     884  { echo "$as_me:884: creating cache $cache_file" >&5
     885echo "$as_me: creating cache $cache_file" >&6;}
     886  >$cache_file
     887fi
     888
     889# Check that the precious variables saved in the cache have kept the same
     890# value.
     891ac_suggest_removing_cache=false
     892for ac_var in `(set) 2>&1 |
     893               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     894  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     895  eval ac_new_set=\$ac_env_${ac_var}_set
     896  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     897  eval ac_new_val="\$ac_env_${ac_var}_value"
     898  case $ac_old_set,$ac_new_set in
     899    set,)
     900      { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     901echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     902      ac_suggest_removing_cache=: ;;
     903    ,set)
     904      { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5
     905echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
     906      ac_suggest_removing_cache=: ;;
     907    ,);;
     908    *)
     909      if test "x$ac_old_val" != "x$ac_new_val"; then
     910        { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5
     911echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
     912        { echo "$as_me:912: WARNING:   former value:  $ac_old_val" >&5
     913echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
     914        { echo "$as_me:914: WARNING:   current value: $ac_new_val" >&5
     915echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
     916        ac_suggest_removing_cache=:
     917      fi;;
     918  esac
     919done
     920if $ac_suggest_removing_cache; then
     921  { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5
     922echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
     923  { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5
     924echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
    510925fi
    511926
    512927ac_ext=c
    513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    514928ac_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 
     929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     931ac_compiler_gnu=$ac_cv_c_compiler_gnu
     932
     933case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     934  *c*,-n*) ECHO_N= ECHO_C='
     935' ECHO_T='  ' ;;
     936  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     937  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
     938esac
     939echo "#! $SHELL" >conftest.sh
     940echo  "exit 0"   >>conftest.sh
     941chmod +x conftest.sh
     942if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5
     943  (PATH=".;."; conftest.sh) 2>&5
     944  ac_status=$?
     945  echo "$as_me:945: \$? = $ac_status" >&5
     946  (exit $ac_status); }; then
     947  ac_path_separator=';'
     948else
     949  ac_path_separator=:
     950fi
     951PATH_SEPARATOR="$ac_path_separator"
     952rm -f conftest.sh
     953
     954ac_config_headers="$ac_config_headers config.h"
    534955
    535956if test "$program_transform_name" = s,x,x,; then
     
    537958else
    538959  # Double any \ or $.  echo might interpret backslashes.
    539   cat <<\EOF_SED > conftestsed
     960  cat <<\EOF >conftest.sed
    540961s,\\,\\\\,g; s,\$,$$,g
    541 EOF_SED
    542   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
    543   rm -f conftestsed
     962EOF
     963  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     964  rm -f conftest.sed
    544965fi
    545966test "$program_prefix" != NONE &&
    546   program_transform_name="s,^,${program_prefix},; $program_transform_name"
     967  program_transform_name="s,^,${program_prefix},;$program_transform_name"
    547968# Use a double $ so make ignores it.
    548969test "$program_suffix" != NONE &&
    549   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
     970  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
    550971
    551972# sed with no file args requires a program.
    552 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
    553 
     973test -z "$program_transform_name" && program_transform_name="s,x,x,"
    554974
    555975PACKAGE=mgpp
     
    558978LDFLAGS=
    559979
    560 cat >> confdefs.h <<EOF
     980cat >>confdefs.h <<EOF
    561981#define PACKAGE "$PACKAGE"
    562982EOF
    563983
    564 cat >> confdefs.h <<EOF
     984cat >>confdefs.h <<EOF
    565985#define VERSION "$VERSION"
    566986EOF
    567987
    568 
    569 
    570 
    571 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    572 do
    573 # Extract the first word of "$ac_prog", so it can be a program name with args.
    574 set dummy $ac_prog; ac_word=$2
    575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    576 echo "configure:577: checking for $ac_word" >&5
    577 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    578   echo $ac_n "(cached) $ac_c" 1>&6
     988ac_ext=cc
     989ac_cpp='$CXXCPP $CPPFLAGS'
     990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     993if test -n "$ac_tool_prefix"; then
     994  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     995  do
     996    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     998echo "$as_me:998: checking for $ac_word" >&5
     999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1000if test "${ac_cv_prog_CXX+set}" = set; then
     1001  echo $ECHO_N "(cached) $ECHO_C" >&6
    5791002else
    5801003  if test -n "$CXX"; then
    5811004  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    5821005else
    583   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    584   ac_dummy="$PATH"
    585   for ac_dir in $ac_dummy; do
    586     test -z "$ac_dir" && ac_dir=.
    587     if test -f $ac_dir/$ac_word; then
    588       ac_cv_prog_CXX="$ac_prog"
    589       break
     1006  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1007ac_dummy="$PATH"
     1008for ac_dir in $ac_dummy; do
     1009  IFS=$ac_save_IFS
     1010  test -z "$ac_dir" && ac_dir=.
     1011  $as_executable_p "$ac_dir/$ac_word" || continue
     1012ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1013echo "$as_me:1013: found $ac_dir/$ac_word" >&5
     1014break
     1015done
     1016
     1017fi
     1018fi
     1019CXX=$ac_cv_prog_CXX
     1020if test -n "$CXX"; then
     1021  echo "$as_me:1021: result: $CXX" >&5
     1022echo "${ECHO_T}$CXX" >&6
     1023else
     1024  echo "$as_me:1024: result: no" >&5
     1025echo "${ECHO_T}no" >&6
     1026fi
     1027
     1028    test -n "$CXX" && break
     1029  done
     1030fi
     1031if test -z "$CXX"; then
     1032  ac_ct_CXX=$CXX
     1033  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1034do
     1035  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1036set dummy $ac_prog; ac_word=$2
     1037echo "$as_me:1037: checking for $ac_word" >&5
     1038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1039if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1040  echo $ECHO_N "(cached) $ECHO_C" >&6
     1041else
     1042  if test -n "$ac_ct_CXX"; then
     1043  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1044else
     1045  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1046ac_dummy="$PATH"
     1047for ac_dir in $ac_dummy; do
     1048  IFS=$ac_save_IFS
     1049  test -z "$ac_dir" && ac_dir=.
     1050  $as_executable_p "$ac_dir/$ac_word" || continue
     1051ac_cv_prog_ac_ct_CXX="$ac_prog"
     1052echo "$as_me:1052: found $ac_dir/$ac_word" >&5
     1053break
     1054done
     1055
     1056fi
     1057fi
     1058ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1059if test -n "$ac_ct_CXX"; then
     1060  echo "$as_me:1060: result: $ac_ct_CXX" >&5
     1061echo "${ECHO_T}$ac_ct_CXX" >&6
     1062else
     1063  echo "$as_me:1063: result: no" >&5
     1064echo "${ECHO_T}no" >&6
     1065fi
     1066
     1067  test -n "$ac_ct_CXX" && break
     1068done
     1069test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1070
     1071  CXX=$ac_ct_CXX
     1072fi
     1073
     1074cat >conftest.$ac_ext <<_ACEOF
     1075#line 1075 "configure"
     1076#include "confdefs.h"
     1077
     1078int
     1079main ()
     1080{
     1081
     1082  ;
     1083  return 0;
     1084}
     1085_ACEOF
     1086ac_clean_files_save=$ac_clean_files
     1087ac_clean_files="$ac_clean_files a.out a.exe"
     1088# Try to create an executable without -o first, disregard a.out.
     1089# It will help us diagnose broken compiler, and finding out an intuition
     1090# of exeext.
     1091echo "$as_me:1091: checking for C++ compiler default output" >&5
     1092echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
     1093ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1094if { (eval echo "$as_me:1094: \"$ac_link_default\"") >&5
     1095  (eval $ac_link_default) 2>&5
     1096  ac_status=$?
     1097  echo "$as_me:1097: \$? = $ac_status" >&5
     1098  (exit $ac_status); }; then
     1099  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
     1100  case $ac_file in
     1101    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1102    a.out ) # We found the default executable, but exeext='' is most
     1103            # certainly right.
     1104            break;;
     1105    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1106          export ac_cv_exeext
     1107          break;;
     1108    * ) break;;
     1109  esac
     1110done
     1111else
     1112  echo "$as_me: failed program was:" >&5
     1113cat conftest.$ac_ext >&5
     1114{ { echo "$as_me:1114: error: C++ compiler cannot create executables" >&5
     1115echo "$as_me: error: C++ compiler cannot create executables" >&2;}
     1116   { (exit 77); exit 77; }; }
     1117fi
     1118
     1119ac_exeext=$ac_cv_exeext
     1120echo "$as_me:1120: result: $ac_file" >&5
     1121echo "${ECHO_T}$ac_file" >&6
     1122
     1123# Check the compiler produces executables we can run.  If not, either
     1124# the compiler is broken, or we cross compile.
     1125echo "$as_me:1125: checking whether the C++ compiler works" >&5
     1126echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
     1127# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1128# If not cross compiling, check that we can run a simple program.
     1129if test "$cross_compiling" != yes; then
     1130  if { ac_try='./$ac_file'
     1131  { (eval echo "$as_me:1131: \"$ac_try\"") >&5
     1132  (eval $ac_try) 2>&5
     1133  ac_status=$?
     1134  echo "$as_me:1134: \$? = $ac_status" >&5
     1135  (exit $ac_status); }; }; then
     1136    cross_compiling=no
     1137  else
     1138    if test "$cross_compiling" = maybe; then
     1139    cross_compiling=yes
     1140    else
     1141    { { echo "$as_me:1141: error: cannot run C++ compiled programs.
     1142If you meant to cross compile, use \`--host'." >&5
     1143echo "$as_me: error: cannot run C++ compiled programs.
     1144If you meant to cross compile, use \`--host'." >&2;}
     1145   { (exit 1); exit 1; }; }
    5901146    fi
    591   done
    592   IFS="$ac_save_ifs"
    593 fi
    594 fi
    595 CXX="$ac_cv_prog_CXX"
    596 if test -n "$CXX"; then
    597   echo "$ac_t""$CXX" 1>&6
    598 else
    599   echo "$ac_t""no" 1>&6
    600 fi
    601 
    602 test -n "$CXX" && break
     1147  fi
     1148fi
     1149echo "$as_me:1149: result: yes" >&5
     1150echo "${ECHO_T}yes" >&6
     1151
     1152rm -f a.out a.exe conftest$ac_cv_exeext
     1153ac_clean_files=$ac_clean_files_save
     1154# Check the compiler produces executables we can run.  If not, either
     1155# the compiler is broken, or we cross compile.
     1156echo "$as_me:1156: checking whether we are cross compiling" >&5
     1157echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1158echo "$as_me:1158: result: $cross_compiling" >&5
     1159echo "${ECHO_T}$cross_compiling" >&6
     1160
     1161echo "$as_me:1161: checking for executable suffix" >&5
     1162echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
     1163if { (eval echo "$as_me:1163: \"$ac_link\"") >&5
     1164  (eval $ac_link) 2>&5
     1165  ac_status=$?
     1166  echo "$as_me:1166: \$? = $ac_status" >&5
     1167  (exit $ac_status); }; then
     1168  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1169# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1170# work properly (i.e., refer to `conftest.exe'), while it won't with
     1171# `rm'.
     1172for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     1173  case $ac_file in
     1174    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1175    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1176          export ac_cv_exeext
     1177          break;;
     1178    * ) break;;
     1179  esac
    6031180done
    604 test -n "$CXX" || CXX="gcc"
    605 
    606 
    607 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    608 echo "configure:609: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    609 
    610 ac_ext=C
    611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    612 ac_cpp='$CXXCPP $CPPFLAGS'
    613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    615 cross_compiling=$ac_cv_prog_cxx_cross
    616 
    617 cat > conftest.$ac_ext << EOF
    618 
    619 #line 620 "configure"
    620 #include "confdefs.h"
    621 
    622 int main(){return(0);}
    623 EOF
    624 if { (eval echo configure:625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    625   ac_cv_prog_cxx_works=yes
    626   # If we can't run a trivial program, we are probably using a cross compiler.
    627   if (./conftest; exit) 2>/dev/null; then
    628     ac_cv_prog_cxx_cross=no
    629   else
    630     ac_cv_prog_cxx_cross=yes
    631   fi
    632 else
    633   echo "configure: failed program was:" >&5
    634   cat conftest.$ac_ext >&5
    635   ac_cv_prog_cxx_works=no
    636 fi
    637 rm -fr conftest*
    638 ac_ext=c
    639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    640 ac_cpp='$CPP $CPPFLAGS'
    641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    643 cross_compiling=$ac_cv_prog_cc_cross
    644 
    645 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    646 if test $ac_cv_prog_cxx_works = no; then
    647   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    648 fi
    649 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    650 echo "configure:651: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    651 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    652 cross_compiling=$ac_cv_prog_cxx_cross
    653 
    654 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    655 echo "configure:656: checking whether we are using GNU C++" >&5
    656 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    657   echo $ac_n "(cached) $ac_c" 1>&6
    658 else
    659   cat > conftest.C <<EOF
    660 #ifdef __GNUC__
    661   yes;
     1181else
     1182  { { echo "$as_me:1182: error: cannot compute EXEEXT: cannot compile and link" >&5
     1183echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
     1184   { (exit 1); exit 1; }; }
     1185fi
     1186
     1187rm -f conftest$ac_cv_exeext
     1188echo "$as_me:1188: result: $ac_cv_exeext" >&5
     1189echo "${ECHO_T}$ac_cv_exeext" >&6
     1190
     1191rm -f conftest.$ac_ext
     1192EXEEXT=$ac_cv_exeext
     1193ac_exeext=$EXEEXT
     1194echo "$as_me:1194: checking for object suffix" >&5
     1195echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
     1196if test "${ac_cv_objext+set}" = set; then
     1197  echo $ECHO_N "(cached) $ECHO_C" >&6
     1198else
     1199  cat >conftest.$ac_ext <<_ACEOF
     1200#line 1200 "configure"
     1201#include "confdefs.h"
     1202
     1203int
     1204main ()
     1205{
     1206
     1207  ;
     1208  return 0;
     1209}
     1210_ACEOF
     1211rm -f conftest.o conftest.obj
     1212if { (eval echo "$as_me:1212: \"$ac_compile\"") >&5
     1213  (eval $ac_compile) 2>&5
     1214  ac_status=$?
     1215  echo "$as_me:1215: \$? = $ac_status" >&5
     1216  (exit $ac_status); }; then
     1217  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1218  case $ac_file in
     1219    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1220    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1221       break;;
     1222  esac
     1223done
     1224else
     1225  echo "$as_me: failed program was:" >&5
     1226cat conftest.$ac_ext >&5
     1227{ { echo "$as_me:1227: error: cannot compute OBJEXT: cannot compile" >&5
     1228echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
     1229   { (exit 1); exit 1; }; }
     1230fi
     1231
     1232rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1233fi
     1234echo "$as_me:1234: result: $ac_cv_objext" >&5
     1235echo "${ECHO_T}$ac_cv_objext" >&6
     1236OBJEXT=$ac_cv_objext
     1237ac_objext=$OBJEXT
     1238echo "$as_me:1238: checking whether we are using the GNU C++ compiler" >&5
     1239echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1240if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1241  echo $ECHO_N "(cached) $ECHO_C" >&6
     1242else
     1243  cat >conftest.$ac_ext <<_ACEOF
     1244#line 1244 "configure"
     1245#include "confdefs.h"
     1246
     1247int
     1248main ()
     1249{
     1250#ifndef __GNUC__
     1251       choke me
    6621252#endif
    663 EOF
    664 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    665   ac_cv_prog_gxx=yes
    666 else
    667   ac_cv_prog_gxx=no
    668 fi
    669 fi
    670 
    671 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    672 
    673 if test $ac_cv_prog_gxx = yes; then
    674   GXX=yes
    675 else
    676   GXX=
    677 fi
    678 
    679 ac_test_CXXFLAGS="${CXXFLAGS+set}"
    680 ac_save_CXXFLAGS="$CXXFLAGS"
    681 CXXFLAGS=
    682 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    683 echo "configure:684: checking whether ${CXX-g++} accepts -g" >&5
    684 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    685   echo $ac_n "(cached) $ac_c" 1>&6
    686 else
    687   echo 'void f(){}' > conftest.cc
    688 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     1253
     1254  ;
     1255  return 0;
     1256}
     1257_ACEOF
     1258rm -f conftest.$ac_objext
     1259if { (eval echo "$as_me:1259: \"$ac_compile\"") >&5
     1260  (eval $ac_compile) 2>&5
     1261  ac_status=$?
     1262  echo "$as_me:1262: \$? = $ac_status" >&5
     1263  (exit $ac_status); } &&
     1264         { ac_try='test -s conftest.$ac_objext'
     1265  { (eval echo "$as_me:1265: \"$ac_try\"") >&5
     1266  (eval $ac_try) 2>&5
     1267  ac_status=$?
     1268  echo "$as_me:1268: \$? = $ac_status" >&5
     1269  (exit $ac_status); }; }; then
     1270  ac_compiler_gnu=yes
     1271else
     1272  echo "$as_me: failed program was:" >&5
     1273cat conftest.$ac_ext >&5
     1274ac_compiler_gnu=no
     1275fi
     1276rm -f conftest.$ac_objext conftest.$ac_ext
     1277ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1278
     1279fi
     1280echo "$as_me:1280: result: $ac_cv_cxx_compiler_gnu" >&5
     1281echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1282GXX=`test $ac_compiler_gnu = yes && echo yes`
     1283ac_test_CXXFLAGS=${CXXFLAGS+set}
     1284ac_save_CXXFLAGS=$CXXFLAGS
     1285CXXFLAGS="-g"
     1286echo "$as_me:1286: checking whether $CXX accepts -g" >&5
     1287echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1288if test "${ac_cv_prog_cxx_g+set}" = set; then
     1289  echo $ECHO_N "(cached) $ECHO_C" >&6
     1290else
     1291  cat >conftest.$ac_ext <<_ACEOF
     1292#line 1292 "configure"
     1293#include "confdefs.h"
     1294
     1295int
     1296main ()
     1297{
     1298
     1299  ;
     1300  return 0;
     1301}
     1302_ACEOF
     1303rm -f conftest.$ac_objext
     1304if { (eval echo "$as_me:1304: \"$ac_compile\"") >&5
     1305  (eval $ac_compile) 2>&5
     1306  ac_status=$?
     1307  echo "$as_me:1307: \$? = $ac_status" >&5
     1308  (exit $ac_status); } &&
     1309         { ac_try='test -s conftest.$ac_objext'
     1310  { (eval echo "$as_me:1310: \"$ac_try\"") >&5
     1311  (eval $ac_try) 2>&5
     1312  ac_status=$?
     1313  echo "$as_me:1313: \$? = $ac_status" >&5
     1314  (exit $ac_status); }; }; then
    6891315  ac_cv_prog_cxx_g=yes
    6901316else
    691   ac_cv_prog_cxx_g=no
    692 fi
    693 rm -f conftest*
    694 
    695 fi
    696 
    697 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     1317  echo "$as_me: failed program was:" >&5
     1318cat conftest.$ac_ext >&5
     1319ac_cv_prog_cxx_g=no
     1320fi
     1321rm -f conftest.$ac_objext conftest.$ac_ext
     1322fi
     1323echo "$as_me:1323: result: $ac_cv_prog_cxx_g" >&5
     1324echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    6981325if test "$ac_test_CXXFLAGS" = set; then
    699   CXXFLAGS="$ac_save_CXXFLAGS"
     1326  CXXFLAGS=$ac_save_CXXFLAGS
    7001327elif test $ac_cv_prog_cxx_g = yes; then
    7011328  if test "$GXX" = yes; then
     
    7111338  fi
    7121339fi
     1340for ac_declaration in \
     1341   ''\
     1342   '#include <stdlib.h>' \
     1343   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1344   'extern "C" void std::exit (int); using std::exit;' \
     1345   'extern "C" void exit (int) throw ();' \
     1346   'extern "C" void exit (int);' \
     1347   'void exit (int);'
     1348do
     1349  cat >conftest.$ac_ext <<_ACEOF
     1350#line 1350 "configure"
     1351#include "confdefs.h"
     1352#include <stdlib.h>
     1353$ac_declaration
     1354int
     1355main ()
     1356{
     1357exit (42);
     1358  ;
     1359  return 0;
     1360}
     1361_ACEOF
     1362rm -f conftest.$ac_objext
     1363if { (eval echo "$as_me:1363: \"$ac_compile\"") >&5
     1364  (eval $ac_compile) 2>&5
     1365  ac_status=$?
     1366  echo "$as_me:1366: \$? = $ac_status" >&5
     1367  (exit $ac_status); } &&
     1368         { ac_try='test -s conftest.$ac_objext'
     1369  { (eval echo "$as_me:1369: \"$ac_try\"") >&5
     1370  (eval $ac_try) 2>&5
     1371  ac_status=$?
     1372  echo "$as_me:1372: \$? = $ac_status" >&5
     1373  (exit $ac_status); }; }; then
     1374  :
     1375else
     1376  echo "$as_me: failed program was:" >&5
     1377cat conftest.$ac_ext >&5
     1378continue
     1379fi
     1380rm -f conftest.$ac_objext conftest.$ac_ext
     1381  cat >conftest.$ac_ext <<_ACEOF
     1382#line 1382 "configure"
     1383#include "confdefs.h"
     1384$ac_declaration
     1385int
     1386main ()
     1387{
     1388exit (42);
     1389  ;
     1390  return 0;
     1391}
     1392_ACEOF
     1393rm -f conftest.$ac_objext
     1394if { (eval echo "$as_me:1394: \"$ac_compile\"") >&5
     1395  (eval $ac_compile) 2>&5
     1396  ac_status=$?
     1397  echo "$as_me:1397: \$? = $ac_status" >&5
     1398  (exit $ac_status); } &&
     1399         { ac_try='test -s conftest.$ac_objext'
     1400  { (eval echo "$as_me:1400: \"$ac_try\"") >&5
     1401  (eval $ac_try) 2>&5
     1402  ac_status=$?
     1403  echo "$as_me:1403: \$? = $ac_status" >&5
     1404  (exit $ac_status); }; }; then
     1405  break
     1406else
     1407  echo "$as_me: failed program was:" >&5
     1408cat conftest.$ac_ext >&5
     1409fi
     1410rm -f conftest.$ac_objext conftest.$ac_ext
     1411done
     1412echo '#ifdef __cplusplus' >>confdefs.h
     1413echo $ac_declaration      >>confdefs.h
     1414echo '#endif'             >>confdefs.h
     1415
     1416ac_ext=c
     1417ac_cpp='$CPP $CPPFLAGS'
     1418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1420ac_compiler_gnu=$ac_cv_c_compiler_gnu
    7131421
    7141422for ac_prog in mawk gawk nawk awk
    7151423do
    716 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1424  # Extract the first word of "$ac_prog", so it can be a program name with args.
    7171425set dummy $ac_prog; ac_word=$2
    718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    719 echo "configure:720: checking for $ac_word" >&5
    720 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    721   echo $ac_n "(cached) $ac_c" 1>&6
     1426echo "$as_me:1426: checking for $ac_word" >&5
     1427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1428if test "${ac_cv_prog_AWK+set}" = set; then
     1429  echo $ECHO_N "(cached) $ECHO_C" >&6
    7221430else
    7231431  if test -n "$AWK"; then
    7241432  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    7251433else
    726   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    727   ac_dummy="$PATH"
    728   for ac_dir in $ac_dummy; do
    729     test -z "$ac_dir" && ac_dir=.
    730     if test -f $ac_dir/$ac_word; then
    731       ac_cv_prog_AWK="$ac_prog"
    732       break
    733     fi
    734   done
    735   IFS="$ac_save_ifs"
    736 fi
    737 fi
    738 AWK="$ac_cv_prog_AWK"
     1434  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1435ac_dummy="$PATH"
     1436for ac_dir in $ac_dummy; do
     1437  IFS=$ac_save_IFS
     1438  test -z "$ac_dir" && ac_dir=.
     1439  $as_executable_p "$ac_dir/$ac_word" || continue
     1440ac_cv_prog_AWK="$ac_prog"
     1441echo "$as_me:1441: found $ac_dir/$ac_word" >&5
     1442break
     1443done
     1444
     1445fi
     1446fi
     1447AWK=$ac_cv_prog_AWK
    7391448if test -n "$AWK"; then
    740   echo "$ac_t""$AWK" 1>&6
    741 else
    742   echo "$ac_t""no" 1>&6
    743 fi
    744 
    745 test -n "$AWK" && break
     1449  echo "$as_me:1449: result: $AWK" >&5
     1450echo "${ECHO_T}$AWK" >&6
     1451else
     1452  echo "$as_me:1452: result: no" >&5
     1453echo "${ECHO_T}no" >&6
     1454fi
     1455
     1456  test -n "$AWK" && break
    7461457done
    7471458
    7481459for ac_prog in 'bison -y' byacc
    7491460do
    750 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1461  # Extract the first word of "$ac_prog", so it can be a program name with args.
    7511462set dummy $ac_prog; ac_word=$2
    752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    753 echo "configure:754: checking for $ac_word" >&5
    754 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    755   echo $ac_n "(cached) $ac_c" 1>&6
     1463echo "$as_me:1463: checking for $ac_word" >&5
     1464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1465if test "${ac_cv_prog_YACC+set}" = set; then
     1466  echo $ECHO_N "(cached) $ECHO_C" >&6
    7561467else
    7571468  if test -n "$YACC"; then
    7581469  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    7591470else
    760   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    761   ac_dummy="$PATH"
    762   for ac_dir in $ac_dummy; do
    763     test -z "$ac_dir" && ac_dir=.
    764     if test -f $ac_dir/$ac_word; then
    765       ac_cv_prog_YACC="$ac_prog"
    766       break
    767     fi
    768   done
    769   IFS="$ac_save_ifs"
    770 fi
    771 fi
    772 YACC="$ac_cv_prog_YACC"
     1471  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1472ac_dummy="$PATH"
     1473for ac_dir in $ac_dummy; do
     1474  IFS=$ac_save_IFS
     1475  test -z "$ac_dir" && ac_dir=.
     1476  $as_executable_p "$ac_dir/$ac_word" || continue
     1477ac_cv_prog_YACC="$ac_prog"
     1478echo "$as_me:1478: found $ac_dir/$ac_word" >&5
     1479break
     1480done
     1481
     1482fi
     1483fi
     1484YACC=$ac_cv_prog_YACC
    7731485if test -n "$YACC"; then
    774   echo "$ac_t""$YACC" 1>&6
    775 else
    776   echo "$ac_t""no" 1>&6
    777 fi
    778 
    779 test -n "$YACC" && break
     1486  echo "$as_me:1486: result: $YACC" >&5
     1487echo "${ECHO_T}$YACC" >&6
     1488else
     1489  echo "$as_me:1489: result: no" >&5
     1490echo "${ECHO_T}no" >&6
     1491fi
     1492
     1493  test -n "$YACC" && break
    7801494done
    7811495test -n "$YACC" || YACC="yacc"
    7821496
    783 # Extract the first word of "gcc", so it can be a program name with args.
    784 set dummy gcc; ac_word=$2
    785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    786 echo "configure:787: checking for $ac_word" >&5
    787 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    788   echo $ac_n "(cached) $ac_c" 1>&6
     1497ac_ext=c
     1498ac_cpp='$CPP $CPPFLAGS'
     1499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1501ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1502if test -n "$ac_tool_prefix"; then
     1503  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1504set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1505echo "$as_me:1505: checking for $ac_word" >&5
     1506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1507if test "${ac_cv_prog_CC+set}" = set; then
     1508  echo $ECHO_N "(cached) $ECHO_C" >&6
    7891509else
    7901510  if test -n "$CC"; then
    7911511  ac_cv_prog_CC="$CC" # Let the user override the test.
    7921512else
    793   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    794   ac_dummy="$PATH"
    795   for ac_dir in $ac_dummy; do
    796     test -z "$ac_dir" && ac_dir=.
    797     if test -f $ac_dir/$ac_word; then
    798       ac_cv_prog_CC="gcc"
    799       break
    800     fi
    801   done
    802   IFS="$ac_save_ifs"
    803 fi
    804 fi
    805 CC="$ac_cv_prog_CC"
     1513  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1514ac_dummy="$PATH"
     1515for ac_dir in $ac_dummy; do
     1516  IFS=$ac_save_IFS
     1517  test -z "$ac_dir" && ac_dir=.
     1518  $as_executable_p "$ac_dir/$ac_word" || continue
     1519ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1520echo "$as_me:1520: found $ac_dir/$ac_word" >&5
     1521break
     1522done
     1523
     1524fi
     1525fi
     1526CC=$ac_cv_prog_CC
    8061527if test -n "$CC"; then
    807   echo "$ac_t""$CC" 1>&6
    808 else
    809   echo "$ac_t""no" 1>&6
    810 fi
    811 
     1528  echo "$as_me:1528: result: $CC" >&5
     1529echo "${ECHO_T}$CC" >&6
     1530else
     1531  echo "$as_me:1531: result: no" >&5
     1532echo "${ECHO_T}no" >&6
     1533fi
     1534
     1535fi
     1536if test -z "$ac_cv_prog_CC"; then
     1537  ac_ct_CC=$CC
     1538  # Extract the first word of "gcc", so it can be a program name with args.
     1539set dummy gcc; ac_word=$2
     1540echo "$as_me:1540: checking for $ac_word" >&5
     1541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1542if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1543  echo $ECHO_N "(cached) $ECHO_C" >&6
     1544else
     1545  if test -n "$ac_ct_CC"; then
     1546  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1547else
     1548  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1549ac_dummy="$PATH"
     1550for ac_dir in $ac_dummy; do
     1551  IFS=$ac_save_IFS
     1552  test -z "$ac_dir" && ac_dir=.
     1553  $as_executable_p "$ac_dir/$ac_word" || continue
     1554ac_cv_prog_ac_ct_CC="gcc"
     1555echo "$as_me:1555: found $ac_dir/$ac_word" >&5
     1556break
     1557done
     1558
     1559fi
     1560fi
     1561ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1562if test -n "$ac_ct_CC"; then
     1563  echo "$as_me:1563: result: $ac_ct_CC" >&5
     1564echo "${ECHO_T}$ac_ct_CC" >&6
     1565else
     1566  echo "$as_me:1566: result: no" >&5
     1567echo "${ECHO_T}no" >&6
     1568fi
     1569
     1570  CC=$ac_ct_CC
     1571else
     1572  CC="$ac_cv_prog_CC"
     1573fi
     1574
     1575if test -z "$CC"; then
     1576  if test -n "$ac_tool_prefix"; then
     1577  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1578set dummy ${ac_tool_prefix}cc; ac_word=$2
     1579echo "$as_me:1579: checking for $ac_word" >&5
     1580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1581if test "${ac_cv_prog_CC+set}" = set; then
     1582  echo $ECHO_N "(cached) $ECHO_C" >&6
     1583else
     1584  if test -n "$CC"; then
     1585  ac_cv_prog_CC="$CC" # Let the user override the test.
     1586else
     1587  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1588ac_dummy="$PATH"
     1589for ac_dir in $ac_dummy; do
     1590  IFS=$ac_save_IFS
     1591  test -z "$ac_dir" && ac_dir=.
     1592  $as_executable_p "$ac_dir/$ac_word" || continue
     1593ac_cv_prog_CC="${ac_tool_prefix}cc"
     1594echo "$as_me:1594: found $ac_dir/$ac_word" >&5
     1595break
     1596done
     1597
     1598fi
     1599fi
     1600CC=$ac_cv_prog_CC
     1601if test -n "$CC"; then
     1602  echo "$as_me:1602: result: $CC" >&5
     1603echo "${ECHO_T}$CC" >&6
     1604else
     1605  echo "$as_me:1605: result: no" >&5
     1606echo "${ECHO_T}no" >&6
     1607fi
     1608
     1609fi
     1610if test -z "$ac_cv_prog_CC"; then
     1611  ac_ct_CC=$CC
     1612  # Extract the first word of "cc", so it can be a program name with args.
     1613set dummy cc; ac_word=$2
     1614echo "$as_me:1614: checking for $ac_word" >&5
     1615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1617  echo $ECHO_N "(cached) $ECHO_C" >&6
     1618else
     1619  if test -n "$ac_ct_CC"; then
     1620  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1621else
     1622  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1623ac_dummy="$PATH"
     1624for ac_dir in $ac_dummy; do
     1625  IFS=$ac_save_IFS
     1626  test -z "$ac_dir" && ac_dir=.
     1627  $as_executable_p "$ac_dir/$ac_word" || continue
     1628ac_cv_prog_ac_ct_CC="cc"
     1629echo "$as_me:1629: found $ac_dir/$ac_word" >&5
     1630break
     1631done
     1632
     1633fi
     1634fi
     1635ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1636if test -n "$ac_ct_CC"; then
     1637  echo "$as_me:1637: result: $ac_ct_CC" >&5
     1638echo "${ECHO_T}$ac_ct_CC" >&6
     1639else
     1640  echo "$as_me:1640: result: no" >&5
     1641echo "${ECHO_T}no" >&6
     1642fi
     1643
     1644  CC=$ac_ct_CC
     1645else
     1646  CC="$ac_cv_prog_CC"
     1647fi
     1648
     1649fi
    8121650if test -z "$CC"; then
    8131651  # Extract the first word of "cc", so it can be a program name with args.
    8141652set dummy cc; ac_word=$2
    815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    816 echo "configure:817: checking for $ac_word" >&5
    817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    818   echo $ac_n "(cached) $ac_c" 1>&6
     1653echo "$as_me:1653: checking for $ac_word" >&5
     1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1655if test "${ac_cv_prog_CC+set}" = set; then
     1656  echo $ECHO_N "(cached) $ECHO_C" >&6
    8191657else
    8201658  if test -n "$CC"; then
    8211659  ac_cv_prog_CC="$CC" # Let the user override the test.
    8221660else
    823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    8241661  ac_prog_rejected=no
    825   ac_dummy="$PATH"
    826   for ac_dir in $ac_dummy; do
    827     test -z "$ac_dir" && ac_dir=.
    828     if test -f $ac_dir/$ac_word; then
    829       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    830         ac_prog_rejected=yes
    831     continue
    832       fi
    833       ac_cv_prog_CC="cc"
    834       break
    835     fi
    836   done
    837   IFS="$ac_save_ifs"
     1662  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1663ac_dummy="$PATH"
     1664for ac_dir in $ac_dummy; do
     1665  IFS=$ac_save_IFS
     1666  test -z "$ac_dir" && ac_dir=.
     1667  $as_executable_p "$ac_dir/$ac_word" || continue
     1668if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     1669  ac_prog_rejected=yes
     1670  continue
     1671fi
     1672ac_cv_prog_CC="cc"
     1673echo "$as_me:1673: found $ac_dir/$ac_word" >&5
     1674break
     1675done
     1676
    8381677if test $ac_prog_rejected = yes; then
    8391678  # We found a bogon in the path, so make sure we never use it.
    8401679  set dummy $ac_cv_prog_CC
    8411680  shift
    842   if test $# -gt 0; then
     1681  if test $# != 0; then
    8431682    # We chose a different compiler from the bogus one.
    8441683    # However, it has the same basename, so the bogon will be chosen
    8451684    # first if we set CC to just the basename; use the full file name.
    8461685    shift
    847     set dummy "$ac_dir/$ac_word" "$@"
     1686    set dummy "$ac_dir/$ac_word" ${1+"$@"}
    8481687    shift
    8491688    ac_cv_prog_CC="$@"
     
    8521691fi
    8531692fi
    854 CC="$ac_cv_prog_CC"
     1693CC=$ac_cv_prog_CC
    8551694if test -n "$CC"; then
    856   echo "$ac_t""$CC" 1>&6
    857 else
    858   echo "$ac_t""no" 1>&6
    859 fi
    860 
    861   if test -z "$CC"; then
    862     case "`uname -s`" in
    863     *win32* | *WIN32*)
    864       # Extract the first word of "cl", so it can be a program name with args.
    865 set dummy cl; ac_word=$2
    866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    867 echo "configure:868: checking for $ac_word" >&5
    868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    869   echo $ac_n "(cached) $ac_c" 1>&6
     1695  echo "$as_me:1695: result: $CC" >&5
     1696echo "${ECHO_T}$CC" >&6
     1697else
     1698  echo "$as_me:1698: result: no" >&5
     1699echo "${ECHO_T}no" >&6
     1700fi
     1701
     1702fi
     1703if test -z "$CC"; then
     1704  if test -n "$ac_tool_prefix"; then
     1705  for ac_prog in cl
     1706  do
     1707    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1709echo "$as_me:1709: checking for $ac_word" >&5
     1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1711if test "${ac_cv_prog_CC+set}" = set; then
     1712  echo $ECHO_N "(cached) $ECHO_C" >&6
    8701713else
    8711714  if test -n "$CC"; then
    8721715  ac_cv_prog_CC="$CC" # Let the user override the test.
    8731716else
    874   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    875   ac_dummy="$PATH"
    876   for ac_dir in $ac_dummy; do
    877     test -z "$ac_dir" && ac_dir=.
    878     if test -f $ac_dir/$ac_word; then
    879       ac_cv_prog_CC="cl"
    880       break
    881     fi
     1717  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1718ac_dummy="$PATH"
     1719for ac_dir in $ac_dummy; do
     1720  IFS=$ac_save_IFS
     1721  test -z "$ac_dir" && ac_dir=.
     1722  $as_executable_p "$ac_dir/$ac_word" || continue
     1723ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1724echo "$as_me:1724: found $ac_dir/$ac_word" >&5
     1725break
     1726done
     1727
     1728fi
     1729fi
     1730CC=$ac_cv_prog_CC
     1731if test -n "$CC"; then
     1732  echo "$as_me:1732: result: $CC" >&5
     1733echo "${ECHO_T}$CC" >&6
     1734else
     1735  echo "$as_me:1735: result: no" >&5
     1736echo "${ECHO_T}no" >&6
     1737fi
     1738
     1739    test -n "$CC" && break
    8821740  done
    883   IFS="$ac_save_ifs"
    884 fi
    885 fi
    886 CC="$ac_cv_prog_CC"
    887 if test -n "$CC"; then
    888   echo "$ac_t""$CC" 1>&6
    889 else
    890   echo "$ac_t""no" 1>&6
    891 fi
    892  ;;
    893     esac
    894   fi
    895   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    896 fi
    897 
    898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    899 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    900 
    901 ac_ext=c
    902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    903 ac_cpp='$CPP $CPPFLAGS'
    904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    906 cross_compiling=$ac_cv_prog_cc_cross
    907 
    908 cat > conftest.$ac_ext << EOF
    909 
    910 #line 911 "configure"
    911 #include "confdefs.h"
    912 
    913 main(){return(0);}
    914 EOF
    915 if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    916   ac_cv_prog_cc_works=yes
    917   # If we can't run a trivial program, we are probably using a cross compiler.
    918   if (./conftest; exit) 2>/dev/null; then
    919     ac_cv_prog_cc_cross=no
    920   else
    921     ac_cv_prog_cc_cross=yes
    922   fi
    923 else
    924   echo "configure: failed program was:" >&5
    925   cat conftest.$ac_ext >&5
    926   ac_cv_prog_cc_works=no
    927 fi
    928 rm -fr conftest*
    929 ac_ext=c
    930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    931 ac_cpp='$CPP $CPPFLAGS'
    932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    934 cross_compiling=$ac_cv_prog_cc_cross
    935 
    936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    937 if test $ac_cv_prog_cc_works = no; then
    938   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    939 fi
    940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    943 cross_compiling=$ac_cv_prog_cc_cross
    944 
    945 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    946 echo "configure:947: checking whether we are using GNU C" >&5
    947 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    948   echo $ac_n "(cached) $ac_c" 1>&6
    949 else
    950   cat > conftest.c <<EOF
    951 #ifdef __GNUC__
    952   yes;
     1741fi
     1742if test -z "$CC"; then
     1743  ac_ct_CC=$CC
     1744  for ac_prog in cl
     1745do
     1746  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1747set dummy $ac_prog; ac_word=$2
     1748echo "$as_me:1748: checking for $ac_word" >&5
     1749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1751  echo $ECHO_N "(cached) $ECHO_C" >&6
     1752else
     1753  if test -n "$ac_ct_CC"; then
     1754  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1755else
     1756  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1757ac_dummy="$PATH"
     1758for ac_dir in $ac_dummy; do
     1759  IFS=$ac_save_IFS
     1760  test -z "$ac_dir" && ac_dir=.
     1761  $as_executable_p "$ac_dir/$ac_word" || continue
     1762ac_cv_prog_ac_ct_CC="$ac_prog"
     1763echo "$as_me:1763: found $ac_dir/$ac_word" >&5
     1764break
     1765done
     1766
     1767fi
     1768fi
     1769ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1770if test -n "$ac_ct_CC"; then
     1771  echo "$as_me:1771: result: $ac_ct_CC" >&5
     1772echo "${ECHO_T}$ac_ct_CC" >&6
     1773else
     1774  echo "$as_me:1774: result: no" >&5
     1775echo "${ECHO_T}no" >&6
     1776fi
     1777
     1778  test -n "$ac_ct_CC" && break
     1779done
     1780
     1781  CC=$ac_ct_CC
     1782fi
     1783
     1784fi
     1785
     1786test -z "$CC" && { { echo "$as_me:1786: error: no acceptable cc found in \$PATH" >&5
     1787echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
     1788   { (exit 1); exit 1; }; }
     1789
     1790echo "$as_me:1790: checking whether we are using the GNU C compiler" >&5
     1791echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1792if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1793  echo $ECHO_N "(cached) $ECHO_C" >&6
     1794else
     1795  cat >conftest.$ac_ext <<_ACEOF
     1796#line 1796 "configure"
     1797#include "confdefs.h"
     1798
     1799int
     1800main ()
     1801{
     1802#ifndef __GNUC__
     1803       choke me
    9531804#endif
    954 EOF
    955 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    956   ac_cv_prog_gcc=yes
    957 else
    958   ac_cv_prog_gcc=no
    959 fi
    960 fi
    961 
    962 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    963 
    964 if test $ac_cv_prog_gcc = yes; then
    965   GCC=yes
    966 else
    967   GCC=
    968 fi
    969 
    970 ac_test_CFLAGS="${CFLAGS+set}"
    971 ac_save_CFLAGS="$CFLAGS"
    972 CFLAGS=
    973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
    975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    976   echo $ac_n "(cached) $ac_c" 1>&6
    977 else
    978   echo 'void f(){}' > conftest.c
    979 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1805
     1806  ;
     1807  return 0;
     1808}
     1809_ACEOF
     1810rm -f conftest.$ac_objext
     1811if { (eval echo "$as_me:1811: \"$ac_compile\"") >&5
     1812  (eval $ac_compile) 2>&5
     1813  ac_status=$?
     1814  echo "$as_me:1814: \$? = $ac_status" >&5
     1815  (exit $ac_status); } &&
     1816         { ac_try='test -s conftest.$ac_objext'
     1817  { (eval echo "$as_me:1817: \"$ac_try\"") >&5
     1818  (eval $ac_try) 2>&5
     1819  ac_status=$?
     1820  echo "$as_me:1820: \$? = $ac_status" >&5
     1821  (exit $ac_status); }; }; then
     1822  ac_compiler_gnu=yes
     1823else
     1824  echo "$as_me: failed program was:" >&5
     1825cat conftest.$ac_ext >&5
     1826ac_compiler_gnu=no
     1827fi
     1828rm -f conftest.$ac_objext conftest.$ac_ext
     1829ac_cv_c_compiler_gnu=$ac_compiler_gnu
     1830
     1831fi
     1832echo "$as_me:1832: result: $ac_cv_c_compiler_gnu" >&5
     1833echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     1834GCC=`test $ac_compiler_gnu = yes && echo yes`
     1835ac_test_CFLAGS=${CFLAGS+set}
     1836ac_save_CFLAGS=$CFLAGS
     1837CFLAGS="-g"
     1838echo "$as_me:1838: checking whether $CC accepts -g" >&5
     1839echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     1840if test "${ac_cv_prog_cc_g+set}" = set; then
     1841  echo $ECHO_N "(cached) $ECHO_C" >&6
     1842else
     1843  cat >conftest.$ac_ext <<_ACEOF
     1844#line 1844 "configure"
     1845#include "confdefs.h"
     1846
     1847int
     1848main ()
     1849{
     1850
     1851  ;
     1852  return 0;
     1853}
     1854_ACEOF
     1855rm -f conftest.$ac_objext
     1856if { (eval echo "$as_me:1856: \"$ac_compile\"") >&5
     1857  (eval $ac_compile) 2>&5
     1858  ac_status=$?
     1859  echo "$as_me:1859: \$? = $ac_status" >&5
     1860  (exit $ac_status); } &&
     1861         { ac_try='test -s conftest.$ac_objext'
     1862  { (eval echo "$as_me:1862: \"$ac_try\"") >&5
     1863  (eval $ac_try) 2>&5
     1864  ac_status=$?
     1865  echo "$as_me:1865: \$? = $ac_status" >&5
     1866  (exit $ac_status); }; }; then
    9801867  ac_cv_prog_cc_g=yes
    9811868else
    982   ac_cv_prog_cc_g=no
    983 fi
    984 rm -f conftest*
    985 
    986 fi
    987 
    988 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     1869  echo "$as_me: failed program was:" >&5
     1870cat conftest.$ac_ext >&5
     1871ac_cv_prog_cc_g=no
     1872fi
     1873rm -f conftest.$ac_objext conftest.$ac_ext
     1874fi
     1875echo "$as_me:1875: result: $ac_cv_prog_cc_g" >&5
     1876echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    9891877if test "$ac_test_CFLAGS" = set; then
    990   CFLAGS="$ac_save_CFLAGS"
     1878  CFLAGS=$ac_save_CFLAGS
    9911879elif test $ac_cv_prog_cc_g = yes; then
    9921880  if test "$GCC" = yes; then
     
    10021890  fi
    10031891fi
     1892# Some people use a C++ compiler to compile C.  Since we use `exit',
     1893# in C++ we need to declare it.  In case someone uses the same compiler
     1894# for both compiling C and C++ we need to have the C++ compiler decide
     1895# the declaration of exit, since it's the most demanding environment.
     1896cat >conftest.$ac_ext <<_ACEOF
     1897#ifndef __cplusplus
     1898  choke me
     1899#endif
     1900_ACEOF
     1901rm -f conftest.$ac_objext
     1902if { (eval echo "$as_me:1902: \"$ac_compile\"") >&5
     1903  (eval $ac_compile) 2>&5
     1904  ac_status=$?
     1905  echo "$as_me:1905: \$? = $ac_status" >&5
     1906  (exit $ac_status); } &&
     1907         { ac_try='test -s conftest.$ac_objext'
     1908  { (eval echo "$as_me:1908: \"$ac_try\"") >&5
     1909  (eval $ac_try) 2>&5
     1910  ac_status=$?
     1911  echo "$as_me:1911: \$? = $ac_status" >&5
     1912  (exit $ac_status); }; }; then
     1913  for ac_declaration in \
     1914   ''\
     1915   '#include <stdlib.h>' \
     1916   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1917   'extern "C" void std::exit (int); using std::exit;' \
     1918   'extern "C" void exit (int) throw ();' \
     1919   'extern "C" void exit (int);' \
     1920   'void exit (int);'
     1921do
     1922  cat >conftest.$ac_ext <<_ACEOF
     1923#line 1923 "configure"
     1924#include "confdefs.h"
     1925#include <stdlib.h>
     1926$ac_declaration
     1927int
     1928main ()
     1929{
     1930exit (42);
     1931  ;
     1932  return 0;
     1933}
     1934_ACEOF
     1935rm -f conftest.$ac_objext
     1936if { (eval echo "$as_me:1936: \"$ac_compile\"") >&5
     1937  (eval $ac_compile) 2>&5
     1938  ac_status=$?
     1939  echo "$as_me:1939: \$? = $ac_status" >&5
     1940  (exit $ac_status); } &&
     1941         { ac_try='test -s conftest.$ac_objext'
     1942  { (eval echo "$as_me:1942: \"$ac_try\"") >&5
     1943  (eval $ac_try) 2>&5
     1944  ac_status=$?
     1945  echo "$as_me:1945: \$? = $ac_status" >&5
     1946  (exit $ac_status); }; }; then
     1947  :
     1948else
     1949  echo "$as_me: failed program was:" >&5
     1950cat conftest.$ac_ext >&5
     1951continue
     1952fi
     1953rm -f conftest.$ac_objext conftest.$ac_ext
     1954  cat >conftest.$ac_ext <<_ACEOF
     1955#line 1955 "configure"
     1956#include "confdefs.h"
     1957$ac_declaration
     1958int
     1959main ()
     1960{
     1961exit (42);
     1962  ;
     1963  return 0;
     1964}
     1965_ACEOF
     1966rm -f conftest.$ac_objext
     1967if { (eval echo "$as_me:1967: \"$ac_compile\"") >&5
     1968  (eval $ac_compile) 2>&5
     1969  ac_status=$?
     1970  echo "$as_me:1970: \$? = $ac_status" >&5
     1971  (exit $ac_status); } &&
     1972         { ac_try='test -s conftest.$ac_objext'
     1973  { (eval echo "$as_me:1973: \"$ac_try\"") >&5
     1974  (eval $ac_try) 2>&5
     1975  ac_status=$?
     1976  echo "$as_me:1976: \$? = $ac_status" >&5
     1977  (exit $ac_status); }; }; then
     1978  break
     1979else
     1980  echo "$as_me: failed program was:" >&5
     1981cat conftest.$ac_ext >&5
     1982fi
     1983rm -f conftest.$ac_objext conftest.$ac_ext
     1984done
     1985echo '#ifdef __cplusplus' >>confdefs.h
     1986echo $ac_declaration      >>confdefs.h
     1987echo '#endif'             >>confdefs.h
     1988
     1989else
     1990  echo "$as_me: failed program was:" >&5
     1991cat conftest.$ac_ext >&5
     1992fi
     1993rm -f conftest.$ac_objext conftest.$ac_ext
     1994ac_ext=c
     1995ac_cpp='$CPP $CPPFLAGS'
     1996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1998ac_compiler_gnu=$ac_cv_c_compiler_gnu
    10041999
    10052000ac_aux_dir=
     
    10132008    ac_install_sh="$ac_aux_dir/install.sh -c"
    10142009    break
     2010  elif test -f $ac_dir/shtool; then
     2011    ac_aux_dir=$ac_dir
     2012    ac_install_sh="$ac_aux_dir/shtool install -c"
     2013    break
    10152014  fi
    10162015done
    10172016if test -z "$ac_aux_dir"; then
    1018   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    1019 fi
    1020 ac_config_guess=$ac_aux_dir/config.guess
    1021 ac_config_sub=$ac_aux_dir/config.sub
    1022 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     2017  { { echo "$as_me:2017: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2018echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2019   { (exit 1); exit 1; }; }
     2020fi
     2021ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2022ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2023ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    10232024
    10242025# Find a good install program.  We prefer a C program (faster),
     
    10292030# IRIX /sbin/install
    10302031# AIX /bin/install
     2032# AmigaOS /C/install, which installs bootblocks on floppy discs
    10312033# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    10322034# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    10332035# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    10342036# ./install, which can be erroneously created by make from ./install.sh.
    1035 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1036 echo "configure:1037: checking for a BSD compatible install" >&5
     2037echo "$as_me:2037: checking for a BSD compatible install" >&5
     2038echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    10372039if test -z "$INSTALL"; then
    1038 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1039   echo $ac_n "(cached) $ac_c" 1>&6
    1040 else
    1041     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
     2040if test "${ac_cv_path_install+set}" = set; then
     2041  echo $ECHO_N "(cached) $ECHO_C" >&6
     2042else
     2043    ac_save_IFS=$IFS; IFS=$ac_path_separator
    10422044  for ac_dir in $PATH; do
     2045    IFS=$ac_save_IFS
    10432046    # Account for people who put trailing slashes in PATH elements.
    1044     case "$ac_dir/" in
    1045     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     2047    case $ac_dir/ in
     2048    / | ./ | .// | /cC/* \
     2049    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
     2050    | /usr/ucb/* ) ;;
    10462051    *)
    10472052      # OSF1 and SCO ODT 3.0 have their own names for install.
     
    10492054      # by default.
    10502055      for ac_prog in ginstall scoinst install; do
    1051         if test -f $ac_dir/$ac_prog; then
     2056        if $as_executable_p "$ac_dir/$ac_prog"; then
    10522057      if test $ac_prog = install &&
    1053             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     2058            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    10542059        # AIX install.  It has an incompatible calling convention.
     2060        :
     2061      elif test $ac_prog = install &&
     2062        grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
     2063        # program-specific install script used by HP pwplus--don't use.
    10552064        :
    10562065      else
     
    10632072    esac
    10642073  done
    1065   IFS="$ac_save_IFS"
    10662074
    10672075fi
    10682076  if test "${ac_cv_path_install+set}" = set; then
    1069     INSTALL="$ac_cv_path_install"
     2077    INSTALL=$ac_cv_path_install
    10702078  else
    10712079    # As a last resort, use the slow shell script.  We don't cache a
     
    10732081    # break other packages using the cache if that directory is
    10742082    # removed, or if the path is relative.
    1075     INSTALL="$ac_install_sh"
     2083    INSTALL=$ac_install_sh
    10762084  fi
    10772085fi
    1078 echo "$ac_t""$INSTALL" 1>&6
     2086echo "$as_me:2086: result: $INSTALL" >&5
     2087echo "${ECHO_T}$INSTALL" >&6
    10792088
    10802089# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    10822091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    10832092
    1084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     2093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    10852094
    10862095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    10872096
    1088 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1089 echo "configure:1090: checking whether ln -s works" >&5
    1090 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1091   echo $ac_n "(cached) $ac_c" 1>&6
    1092 else
    1093   rm -f conftestdata
    1094 if ln -s X conftestdata 2>/dev/null
    1095 then
    1096   rm -f conftestdata
    1097   ac_cv_prog_LN_S="ln -s"
    1098 else
    1099   ac_cv_prog_LN_S=ln
    1100 fi
    1101 fi
    1102 LN_S="$ac_cv_prog_LN_S"
    1103 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1104   echo "$ac_t""yes" 1>&6
    1105 else
    1106   echo "$ac_t""no" 1>&6
    1107 fi
    1108 
    1109 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1110 echo "configure:1111: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1111 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1112 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1113   echo $ac_n "(cached) $ac_c" 1>&6
    1114 else
    1115   cat > conftestmake <<\EOF
     2097echo "$as_me:2097: checking whether ln -s works" >&5
     2098echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2099LN_S=$as_ln_s
     2100if test "$LN_S" = "ln -s"; then
     2101  echo "$as_me:2101: result: yes" >&5
     2102echo "${ECHO_T}yes" >&6
     2103else
     2104  echo "$as_me:2104: result: no, using $LN_S" >&5
     2105echo "${ECHO_T}no, using $LN_S" >&6
     2106fi
     2107
     2108echo "$as_me:2108: checking whether ${MAKE-make} sets \${MAKE}" >&5
     2109echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
     2110set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
     2111if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2112  echo $ECHO_N "(cached) $ECHO_C" >&6
     2113else
     2114  cat >conftest.make <<\EOF
    11162115all:
    11172116    @echo 'ac_maketemp="${MAKE}"'
    11182117EOF
    11192118# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1120 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     2119eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    11212120if test -n "$ac_maketemp"; then
    11222121  eval ac_cv_prog_make_${ac_make}_set=yes
     
    11242123  eval ac_cv_prog_make_${ac_make}_set=no
    11252124fi
    1126 rm -f conftestmake
     2125rm -f conftest.make
    11272126fi
    11282127if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1129   echo "$ac_t""yes" 1>&6
     2128  echo "$as_me:2128: result: yes" >&5
     2129echo "${ECHO_T}yes" >&6
    11302130  SET_MAKE=
    11312131else
    1132   echo "$ac_t""no" 1>&6
     2132  echo "$as_me:2132: result: no" >&5
     2133echo "${ECHO_T}no" >&6
    11332134  SET_MAKE="MAKE=${MAKE-make}"
    11342135fi
    11352136
    1136 # Extract the first word of "ranlib", so it can be a program name with args.
    1137 set dummy ranlib; ac_word=$2
    1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1139 echo "configure:1140: checking for $ac_word" >&5
    1140 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    1141   echo $ac_n "(cached) $ac_c" 1>&6
     2137if test -n "$ac_tool_prefix"; then
     2138  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2139set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2140echo "$as_me:2140: checking for $ac_word" >&5
     2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2142if test "${ac_cv_prog_RANLIB+set}" = set; then
     2143  echo $ECHO_N "(cached) $ECHO_C" >&6
    11422144else
    11432145  if test -n "$RANLIB"; then
    11442146  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    11452147else
    1146   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1147   ac_dummy="$PATH"
    1148   for ac_dir in $ac_dummy; do
    1149     test -z "$ac_dir" && ac_dir=.
    1150     if test -f $ac_dir/$ac_word; then
    1151       ac_cv_prog_RANLIB="ranlib"
    1152       break
    1153     fi
    1154   done
    1155   IFS="$ac_save_ifs"
    1156   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    1157 fi
    1158 fi
    1159 RANLIB="$ac_cv_prog_RANLIB"
     2148  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2149ac_dummy="$PATH"
     2150for ac_dir in $ac_dummy; do
     2151  IFS=$ac_save_IFS
     2152  test -z "$ac_dir" && ac_dir=.
     2153  $as_executable_p "$ac_dir/$ac_word" || continue
     2154ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2155echo "$as_me:2155: found $ac_dir/$ac_word" >&5
     2156break
     2157done
     2158
     2159fi
     2160fi
     2161RANLIB=$ac_cv_prog_RANLIB
    11602162if test -n "$RANLIB"; then
    1161   echo "$ac_t""$RANLIB" 1>&6
    1162 else
    1163   echo "$ac_t""no" 1>&6
    1164 fi
    1165 
    1166 
    1167 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1168 echo "configure:1169: checking how to run the C preprocessor" >&5
     2163  echo "$as_me:2163: result: $RANLIB" >&5
     2164echo "${ECHO_T}$RANLIB" >&6
     2165else
     2166  echo "$as_me:2166: result: no" >&5
     2167echo "${ECHO_T}no" >&6
     2168fi
     2169
     2170fi
     2171if test -z "$ac_cv_prog_RANLIB"; then
     2172  ac_ct_RANLIB=$RANLIB
     2173  # Extract the first word of "ranlib", so it can be a program name with args.
     2174set dummy ranlib; ac_word=$2
     2175echo "$as_me:2175: checking for $ac_word" >&5
     2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2177if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2178  echo $ECHO_N "(cached) $ECHO_C" >&6
     2179else
     2180  if test -n "$ac_ct_RANLIB"; then
     2181  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2182else
     2183  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2184ac_dummy="$PATH"
     2185for ac_dir in $ac_dummy; do
     2186  IFS=$ac_save_IFS
     2187  test -z "$ac_dir" && ac_dir=.
     2188  $as_executable_p "$ac_dir/$ac_word" || continue
     2189ac_cv_prog_ac_ct_RANLIB="ranlib"
     2190echo "$as_me:2190: found $ac_dir/$ac_word" >&5
     2191break
     2192done
     2193
     2194  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2195fi
     2196fi
     2197ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2198if test -n "$ac_ct_RANLIB"; then
     2199  echo "$as_me:2199: result: $ac_ct_RANLIB" >&5
     2200echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2201else
     2202  echo "$as_me:2202: result: no" >&5
     2203echo "${ECHO_T}no" >&6
     2204fi
     2205
     2206  RANLIB=$ac_ct_RANLIB
     2207else
     2208  RANLIB="$ac_cv_prog_RANLIB"
     2209fi
     2210
     2211ac_ext=c
     2212ac_cpp='$CPP $CPPFLAGS'
     2213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2215ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2216echo "$as_me:2216: checking how to run the C preprocessor" >&5
     2217echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    11692218# On Suns, sometimes $CPP names a directory.
    11702219if test -n "$CPP" && test -d "$CPP"; then
     
    11722221fi
    11732222if test -z "$CPP"; then
    1174 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1175   echo $ac_n "(cached) $ac_c" 1>&6
    1176 else
    1177     # This must be in double quotes, not single quotes, because CPP may get
    1178   # substituted into the Makefile and "${CC-cc}" will confuse make.
    1179   CPP="${CC-cc} -E"
     2223  if test "${ac_cv_prog_CPP+set}" = set; then
     2224  echo $ECHO_N "(cached) $ECHO_C" >&6
     2225else
     2226      # Double quotes because CPP needs to be expanded
     2227    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2228    do
     2229      # break 2 since there is a loop in there.
     2230      ac_preproc_ok=false
     2231for ac_c_preproc_warn_flag in '' yes
     2232do
     2233  # Use a header file that comes with gcc, so configuring glibc
     2234  # with a fresh cross-compiler works.
    11802235  # On the NeXT, cc -E runs the code through the compiler's parser,
    1181   # not just through cpp.
    1182   cat > conftest.$ac_ext <<EOF
    1183 #line 1184 "configure"
     2236  # not just through cpp. "Syntax error" is here to catch this case.
     2237  cat >conftest.$ac_ext <<_ACEOF
     2238#line 2238 "configure"
    11842239#include "confdefs.h"
    11852240#include <assert.h>
    1186 Syntax Error
    1187 EOF
    1188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1191 if test -z "$ac_err"; then
     2241                     Syntax error
     2242_ACEOF
     2243if { (eval echo "$as_me:2243: \"$ac_cpp conftest.$ac_ext\"") >&5
     2244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2245  ac_status=$?
     2246  egrep -v '^ *\+' conftest.er1 >conftest.err
     2247  rm -f conftest.er1
     2248  cat conftest.err >&5
     2249  echo "$as_me:2249: \$? = $ac_status" >&5
     2250  (exit $ac_status); } >/dev/null; then
     2251  if test -s conftest.err; then
     2252    ac_cpp_err=$ac_c_preproc_warn_flag
     2253  else
     2254    ac_cpp_err=
     2255  fi
     2256else
     2257  ac_cpp_err=yes
     2258fi
     2259if test -z "$ac_cpp_err"; then
    11922260  :
    11932261else
    1194   echo "$ac_err" >&5
    1195   echo "configure: failed program was:" >&5
     2262  echo "$as_me: failed program was:" >&5
    11962263  cat conftest.$ac_ext >&5
    1197   rm -rf conftest*
    1198   CPP="${CC-cc} -E -traditional-cpp"
    1199   cat > conftest.$ac_ext <<EOF
    1200 #line 1201 "configure"
     2264  # Broken: fails on valid input.
     2265continue
     2266fi
     2267rm -f conftest.err conftest.$ac_ext
     2268
     2269  # OK, works on sane cases.  Now check whether non-existent headers
     2270  # can be detected and how.
     2271  cat >conftest.$ac_ext <<_ACEOF
     2272#line 2272 "configure"
     2273#include "confdefs.h"
     2274#include <ac_nonexistent.h>
     2275_ACEOF
     2276if { (eval echo "$as_me:2276: \"$ac_cpp conftest.$ac_ext\"") >&5
     2277  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2278  ac_status=$?
     2279  egrep -v '^ *\+' conftest.er1 >conftest.err
     2280  rm -f conftest.er1
     2281  cat conftest.err >&5
     2282  echo "$as_me:2282: \$? = $ac_status" >&5
     2283  (exit $ac_status); } >/dev/null; then
     2284  if test -s conftest.err; then
     2285    ac_cpp_err=$ac_c_preproc_warn_flag
     2286  else
     2287    ac_cpp_err=
     2288  fi
     2289else
     2290  ac_cpp_err=yes
     2291fi
     2292if test -z "$ac_cpp_err"; then
     2293  # Broken: success on invalid input.
     2294continue
     2295else
     2296  echo "$as_me: failed program was:" >&5
     2297  cat conftest.$ac_ext >&5
     2298  # Passes both tests.
     2299ac_preproc_ok=:
     2300break
     2301fi
     2302rm -f conftest.err conftest.$ac_ext
     2303
     2304done
     2305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2306rm -f conftest.err conftest.$ac_ext
     2307if $ac_preproc_ok; then
     2308  break 2
     2309fi
     2310
     2311    done
     2312    ac_cv_prog_CPP=$CPP
     2313
     2314fi
     2315  CPP=$ac_cv_prog_CPP
     2316else
     2317  ac_cv_prog_CPP=$CPP
     2318fi
     2319echo "$as_me:2319: result: $CPP" >&5
     2320echo "${ECHO_T}$CPP" >&6
     2321ac_preproc_ok=false
     2322for ac_c_preproc_warn_flag in '' yes
     2323do
     2324  # Use a header file that comes with gcc, so configuring glibc
     2325  # with a fresh cross-compiler works.
     2326  # On the NeXT, cc -E runs the code through the compiler's parser,
     2327  # not just through cpp. "Syntax error" is here to catch this case.
     2328  cat >conftest.$ac_ext <<_ACEOF
     2329#line 2329 "configure"
    12012330#include "confdefs.h"
    12022331#include <assert.h>
    1203 Syntax Error
    1204 EOF
    1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1208 if test -z "$ac_err"; then
     2332                     Syntax error
     2333_ACEOF
     2334if { (eval echo "$as_me:2334: \"$ac_cpp conftest.$ac_ext\"") >&5
     2335  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2336  ac_status=$?
     2337  egrep -v '^ *\+' conftest.er1 >conftest.err
     2338  rm -f conftest.er1
     2339  cat conftest.err >&5
     2340  echo "$as_me:2340: \$? = $ac_status" >&5
     2341  (exit $ac_status); } >/dev/null; then
     2342  if test -s conftest.err; then
     2343    ac_cpp_err=$ac_c_preproc_warn_flag
     2344  else
     2345    ac_cpp_err=
     2346  fi
     2347else
     2348  ac_cpp_err=yes
     2349fi
     2350if test -z "$ac_cpp_err"; then
    12092351  :
    12102352else
    1211   echo "$ac_err" >&5
    1212   echo "configure: failed program was:" >&5
     2353  echo "$as_me: failed program was:" >&5
    12132354  cat conftest.$ac_ext >&5
    1214   rm -rf conftest*
    1215   CPP="${CC-cc} -nologo -E"
    1216   cat > conftest.$ac_ext <<EOF
    1217 #line 1218 "configure"
    1218 #include "confdefs.h"
    1219 #include <assert.h>
    1220 Syntax Error
    1221 EOF
    1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1225 if test -z "$ac_err"; then
     2355  # Broken: fails on valid input.
     2356continue
     2357fi
     2358rm -f conftest.err conftest.$ac_ext
     2359
     2360  # OK, works on sane cases.  Now check whether non-existent headers
     2361  # can be detected and how.
     2362  cat >conftest.$ac_ext <<_ACEOF
     2363#line 2363 "configure"
     2364#include "confdefs.h"
     2365#include <ac_nonexistent.h>
     2366_ACEOF
     2367if { (eval echo "$as_me:2367: \"$ac_cpp conftest.$ac_ext\"") >&5
     2368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2369  ac_status=$?
     2370  egrep -v '^ *\+' conftest.er1 >conftest.err
     2371  rm -f conftest.er1
     2372  cat conftest.err >&5
     2373  echo "$as_me:2373: \$? = $ac_status" >&5
     2374  (exit $ac_status); } >/dev/null; then
     2375  if test -s conftest.err; then
     2376    ac_cpp_err=$ac_c_preproc_warn_flag
     2377  else
     2378    ac_cpp_err=
     2379  fi
     2380else
     2381  ac_cpp_err=yes
     2382fi
     2383if test -z "$ac_cpp_err"; then
     2384  # Broken: success on invalid input.
     2385continue
     2386else
     2387  echo "$as_me: failed program was:" >&5
     2388  cat conftest.$ac_ext >&5
     2389  # Passes both tests.
     2390ac_preproc_ok=:
     2391break
     2392fi
     2393rm -f conftest.err conftest.$ac_ext
     2394
     2395done
     2396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2397rm -f conftest.err conftest.$ac_ext
     2398if $ac_preproc_ok; then
    12262399  :
    12272400else
    1228   echo "$ac_err" >&5
    1229   echo "configure: failed program was:" >&5
    1230   cat conftest.$ac_ext >&5
    1231   rm -rf conftest*
    1232   CPP=/lib/cpp
    1233 fi
    1234 rm -f conftest*
    1235 fi
    1236 rm -f conftest*
    1237 fi
    1238 rm -f conftest*
    1239   ac_cv_prog_CPP="$CPP"
    1240 fi
    1241   CPP="$ac_cv_prog_CPP"
    1242 else
    1243   ac_cv_prog_CPP="$CPP"
    1244 fi
    1245 echo "$ac_t""$CPP" 1>&6
    1246 
    1247 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1248 echo "configure:1249: checking for AIX" >&5
    1249 cat > conftest.$ac_ext <<EOF
    1250 #line 1251 "configure"
     2401  { { echo "$as_me:2401: error: C preprocessor \"$CPP\" fails sanity check" >&5
     2402echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
     2403   { (exit 1); exit 1; }; }
     2404fi
     2405
     2406ac_ext=c
     2407ac_cpp='$CPP $CPPFLAGS'
     2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2411
     2412echo "$as_me:2412: checking for AIX" >&5
     2413echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     2414cat >conftest.$ac_ext <<_ACEOF
     2415#line 2415 "configure"
    12512416#include "confdefs.h"
    12522417#ifdef _AIX
     
    12542419#endif
    12552420
    1256 EOF
     2421_ACEOF
    12572422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    12582423  egrep "yes" >/dev/null 2>&1; then
    1259   rm -rf conftest*
    1260   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     2424  echo "$as_me:2424: result: yes" >&5
     2425echo "${ECHO_T}yes" >&6
     2426cat >>confdefs.h <<\EOF
    12612427#define _ALL_SOURCE 1
    12622428EOF
    12632429
    12642430else
    1265   rm -rf conftest*
    1266   echo "$ac_t""no" 1>&6
     2431  echo "$as_me:2431: result: no" >&5
     2432echo "${ECHO_T}no" >&6
    12672433fi
    12682434rm -f conftest*
    12692435
    1270 
    1271 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1272 echo "configure:1273: checking for POSIXized ISC" >&5
     2436echo "$as_me:2436: checking for POSIXized ISC" >&5
     2437echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
    12732438if test -d /etc/conf/kconfig.d &&
    1274   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     2439   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    12752440then
    1276   echo "$ac_t""yes" 1>&6
     2441  echo "$as_me:2441: result: yes" >&5
     2442echo "${ECHO_T}yes" >&6
    12772443  ISC=yes # If later tests want to check for ISC.
    1278   cat >> confdefs.h <<\EOF
     2444
     2445cat >>confdefs.h <<\EOF
    12792446#define _POSIX_SOURCE 1
    12802447EOF
     
    12862453  fi
    12872454else
    1288   echo "$ac_t""no" 1>&6
     2455  echo "$as_me:2455: result: no" >&5
     2456echo "${ECHO_T}no" >&6
    12892457  ISC=
    12902458fi
    12912459
    1292 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    1293 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    1294 echo "configure:1295: checking for minix/config.h" >&5
    1295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1296   echo $ac_n "(cached) $ac_c" 1>&6
    1297 else
    1298   cat > conftest.$ac_ext <<EOF
    1299 #line 1300 "configure"
     2460echo "$as_me:2460: checking for minix/config.h" >&5
     2461echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     2462if test "${ac_cv_header_minix_config_h+set}" = set; then
     2463  echo $ECHO_N "(cached) $ECHO_C" >&6
     2464else
     2465  cat >conftest.$ac_ext <<_ACEOF
     2466#line 2466 "configure"
    13002467#include "confdefs.h"
    13012468#include <minix/config.h>
    1302 EOF
    1303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1304 { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1306 if test -z "$ac_err"; then
    1307   rm -rf conftest*
    1308   eval "ac_cv_header_$ac_safe=yes"
    1309 else
    1310   echo "$ac_err" >&5
    1311   echo "configure: failed program was:" >&5
     2469_ACEOF
     2470if { (eval echo "$as_me:2470: \"$ac_cpp conftest.$ac_ext\"") >&5
     2471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2472  ac_status=$?
     2473  egrep -v '^ *\+' conftest.er1 >conftest.err
     2474  rm -f conftest.er1
     2475  cat conftest.err >&5
     2476  echo "$as_me:2476: \$? = $ac_status" >&5
     2477  (exit $ac_status); } >/dev/null; then
     2478  if test -s conftest.err; then
     2479    ac_cpp_err=$ac_c_preproc_warn_flag
     2480  else
     2481    ac_cpp_err=
     2482  fi
     2483else
     2484  ac_cpp_err=yes
     2485fi
     2486if test -z "$ac_cpp_err"; then
     2487  ac_cv_header_minix_config_h=yes
     2488else
     2489  echo "$as_me: failed program was:" >&5
    13122490  cat conftest.$ac_ext >&5
    1313   rm -rf conftest*
    1314   eval "ac_cv_header_$ac_safe=no"
    1315 fi
    1316 rm -f conftest*
    1317 fi
    1318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1319   echo "$ac_t""yes" 1>&6
     2491  ac_cv_header_minix_config_h=no
     2492fi
     2493rm -f conftest.err conftest.$ac_ext
     2494fi
     2495echo "$as_me:2495: result: $ac_cv_header_minix_config_h" >&5
     2496echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     2497if test $ac_cv_header_minix_config_h = yes; then
    13202498  MINIX=yes
    13212499else
    1322   echo "$ac_t""no" 1>&6
    1323 MINIX=
     2500  MINIX=
    13242501fi
    13252502
    13262503if test "$MINIX" = yes; then
    1327   cat >> confdefs.h <<\EOF
     2504
     2505cat >>confdefs.h <<\EOF
    13282506#define _POSIX_SOURCE 1
    13292507EOF
    13302508
    1331   cat >> confdefs.h <<\EOF
     2509cat >>confdefs.h <<\EOF
    13322510#define _POSIX_1_SOURCE 2
    13332511EOF
    13342512
    1335   cat >> confdefs.h <<\EOF
     2513cat >>confdefs.h <<\EOF
    13362514#define _MINIX 1
    13372515EOF
     
    13392517fi
    13402518
    1341 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    1342 echo "configure:1343: checking for ${CC-cc} option to accept ANSI C" >&5
    1343 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    1344   echo $ac_n "(cached) $ac_c" 1>&6
     2519echo "$as_me:2519: checking for ${CC-cc} option to accept ANSI C" >&5
     2520echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     2521if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2522  echo $ECHO_N "(cached) $ECHO_C" >&6
    13452523else
    13462524  ac_cv_prog_cc_stdc=no
     
    13552533do
    13562534  CFLAGS="$ac_save_CFLAGS $ac_arg"
    1357   cat > conftest.$ac_ext <<EOF
    1358 #line 1359 "configure"
     2535  cat >conftest.$ac_ext <<_ACEOF
     2536#line 2536 "configure"
    13592537#include "confdefs.h"
    13602538#if !defined(__STDC__) || __STDC__ != 1
    13612539choke me
    1362 #endif 
    1363 
    1364 int main() {
     2540#endif
     2541
     2542int
     2543main ()
     2544{
    13652545int test (int i, double x);
    13662546struct s1 {int (*f) (int a);};
    13672547struct s2 {int (*f) (double a);};
    1368 ; return 0; }
    1369 EOF
    1370 if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1371   rm -rf conftest*
     2548  ;
     2549  return 0;
     2550}
     2551_ACEOF
     2552rm -f conftest.$ac_objext
     2553if { (eval echo "$as_me:2553: \"$ac_compile\"") >&5
     2554  (eval $ac_compile) 2>&5
     2555  ac_status=$?
     2556  echo "$as_me:2556: \$? = $ac_status" >&5
     2557  (exit $ac_status); } &&
     2558         { ac_try='test -s conftest.$ac_objext'
     2559  { (eval echo "$as_me:2559: \"$ac_try\"") >&5
     2560  (eval $ac_try) 2>&5
     2561  ac_status=$?
     2562  echo "$as_me:2562: \$? = $ac_status" >&5
     2563  (exit $ac_status); }; }; then
    13722564  ac_cv_prog_cc_stdc="$ac_arg"; break
    13732565else
    1374   echo "configure: failed program was:" >&5
    1375   cat conftest.$ac_ext >&5
    1376 fi
    1377 rm -f conftest*
     2566  echo "$as_me: failed program was:" >&5
     2567cat conftest.$ac_ext >&5
     2568fi
     2569rm -f conftest.$ac_objext conftest.$ac_ext
    13782570done
    13792571CFLAGS="$ac_save_CFLAGS"
     
    13812573fi
    13822574
    1383 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
     2575echo "$as_me:2575: result: $ac_cv_prog_cc_stdc" >&5
     2576echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    13842577case "x$ac_cv_prog_cc_stdc" in
    13852578  x|xno) ;;
     
    13872580esac
    13882581
    1389 
    1390 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
    1391 echo "configure:1392: checking for function prototypes" >&5
     2582echo "$as_me:2582: checking for function prototypes" >&5
     2583echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    13922584if test "$ac_cv_prog_cc_stdc" != no; then
    1393   echo "$ac_t""yes" 1>&6
    1394   cat >> confdefs.h <<\EOF
     2585  echo "$as_me:2585: result: yes" >&5
     2586echo "${ECHO_T}yes" >&6
     2587  cat >>confdefs.h <<\EOF
    13952588#define PROTOTYPES 1
    13962589EOF
     
    13982591  U= ANSI2KNR=
    13992592else
    1400   echo "$ac_t""no" 1>&6
     2593  echo "$as_me:2593: result: no" >&5
     2594echo "${ECHO_T}no" >&6
    14012595  U=_ ANSI2KNR=ansi2knr
    14022596fi
    14032597
    1404 echo $ac_n "checking for working const""... $ac_c" 1>&6
    1405 echo "configure:1406: checking for working const" >&5
    1406 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    1407   echo $ac_n "(cached) $ac_c" 1>&6
    1408 else
    1409   cat > conftest.$ac_ext <<EOF
    1410 #line 1411 "configure"
    1411 #include "confdefs.h"
    1412 
    1413 int main() {
    1414 
    1415 /* Ultrix mips cc rejects this.  */
    1416 typedef int charset[2]; const charset x;
    1417 /* SunOS 4.1.1 cc rejects this.  */
    1418 char const *const *ccp;
    1419 char **p;
    1420 /* NEC SVR4.0.2 mips cc rejects this.  */
    1421 struct point {int x, y;};
    1422 static struct point const zero = {0,0};
    1423 /* AIX XL C 1.02.0.0 rejects this.
    1424    It does not let you subtract one const X* pointer from another in an arm
    1425    of an if-expression whose if-part is not a constant expression */
    1426 const char *g = "string";
    1427 ccp = &g + (g ? g-g : 0);
    1428 /* HPUX 7.0 cc rejects these. */
    1429 ++ccp;
    1430 p = (char**) ccp;
    1431 ccp = (char const *const *) p;
    1432 { /* SCO 3.2v4 cc rejects this.  */
    1433   char *t;
    1434   char const *s = 0 ? (char *) 0 : (char const *) 0;
    1435 
    1436   *t++ = 0;
     2598echo "$as_me:2598: checking for $CC option to accept ANSI C" >&5
     2599echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2600if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2601  echo $ECHO_N "(cached) $ECHO_C" >&6
     2602else
     2603  ac_cv_prog_cc_stdc=no
     2604ac_save_CC=$CC
     2605cat >conftest.$ac_ext <<_ACEOF
     2606#line 2606 "configure"
     2607#include "confdefs.h"
     2608#include <stdarg.h>
     2609#include <stdio.h>
     2610#include <sys/types.h>
     2611#include <sys/stat.h>
     2612/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2613struct buf { int x; };
     2614FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2615static char *e (p, i)
     2616     char **p;
     2617     int i;
     2618{
     2619  return p[i];
    14372620}
    1438 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    1439   int x[] = {25, 17};
    1440   const int *foo = &x[0];
    1441   ++foo;
     2621static char *f (char * (*g) (char **, int), char **p, ...)
     2622{
     2623  char *s;
     2624  va_list v;
     2625  va_start (v,p);
     2626  s = g (p, va_arg (v,int));
     2627  va_end (v);
     2628  return s;
    14422629}
    1443 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    1444   typedef const int *iptr;
    1445   iptr p = 0;
    1446   ++p;
     2630int test (int i, double x);
     2631struct s1 {int (*f) (int a);};
     2632struct s2 {int (*f) (double a);};
     2633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2634int argc;
     2635char **argv;
     2636int
     2637main ()
     2638{
     2639return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2640  ;
     2641  return 0;
    14472642}
    1448 { /* AIX XL C 1.02.0.0 rejects this saying
    1449      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    1450   struct s { int j; const int *ap[3]; };
    1451   struct s *b; b->j = 5;
     2643_ACEOF
     2644# Don't try gcc -ansi; that turns off useful extensions and
     2645# breaks some systems' header files.
     2646# AIX           -qlanglvl=ansi
     2647# Ultrix and OSF/1  -std1
     2648# HP-UX 10.20 and later -Ae
     2649# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2650# SVR4          -Xc -D__EXTENSIONS__
     2651for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2652do
     2653  CC="$ac_save_CC $ac_arg"
     2654  rm -f conftest.$ac_objext
     2655if { (eval echo "$as_me:2655: \"$ac_compile\"") >&5
     2656  (eval $ac_compile) 2>&5
     2657  ac_status=$?
     2658  echo "$as_me:2658: \$? = $ac_status" >&5
     2659  (exit $ac_status); } &&
     2660         { ac_try='test -s conftest.$ac_objext'
     2661  { (eval echo "$as_me:2661: \"$ac_try\"") >&5
     2662  (eval $ac_try) 2>&5
     2663  ac_status=$?
     2664  echo "$as_me:2664: \$? = $ac_status" >&5
     2665  (exit $ac_status); }; }; then
     2666  ac_cv_prog_cc_stdc=$ac_arg
     2667break
     2668else
     2669  echo "$as_me: failed program was:" >&5
     2670cat conftest.$ac_ext >&5
     2671fi
     2672rm -f conftest.$ac_objext
     2673done
     2674rm -f conftest.$ac_ext conftest.$ac_objext
     2675CC=$ac_save_CC
     2676
     2677fi
     2678
     2679case "x$ac_cv_prog_cc_stdc" in
     2680  x|xno)
     2681    echo "$as_me:2681: result: none needed" >&5
     2682echo "${ECHO_T}none needed" >&6 ;;
     2683  *)
     2684    echo "$as_me:2684: result: $ac_cv_prog_cc_stdc" >&5
     2685echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2686    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2687esac
     2688
     2689echo "$as_me:2689: checking for an ANSI C-conforming const" >&5
     2690echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     2691if test "${ac_cv_c_const+set}" = set; then
     2692  echo $ECHO_N "(cached) $ECHO_C" >&6
     2693else
     2694  cat >conftest.$ac_ext <<_ACEOF
     2695#line 2695 "configure"
     2696#include "confdefs.h"
     2697
     2698int
     2699main ()
     2700{
     2701/* FIXME: Include the comments suggested by Paul. */
     2702#ifndef __cplusplus
     2703  /* Ultrix mips cc rejects this.  */
     2704  typedef int charset[2];
     2705  const charset x;
     2706  /* SunOS 4.1.1 cc rejects this.  */
     2707  char const *const *ccp;
     2708  char **p;
     2709  /* NEC SVR4.0.2 mips cc rejects this.  */
     2710  struct point {int x, y;};
     2711  static struct point const zero = {0,0};
     2712  /* AIX XL C 1.02.0.0 rejects this.
     2713     It does not let you subtract one const X* pointer from another in
     2714     an arm of an if-expression whose if-part is not a constant
     2715     expression */
     2716  const char *g = "string";
     2717  ccp = &g + (g ? g-g : 0);
     2718  /* HPUX 7.0 cc rejects these. */
     2719  ++ccp;
     2720  p = (char**) ccp;
     2721  ccp = (char const *const *) p;
     2722  { /* SCO 3.2v4 cc rejects this.  */
     2723    char *t;
     2724    char const *s = 0 ? (char *) 0 : (char const *) 0;
     2725
     2726    *t++ = 0;
     2727  }
     2728  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     2729    int x[] = {25, 17};
     2730    const int *foo = &x[0];
     2731    ++foo;
     2732  }
     2733  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     2734    typedef const int *iptr;
     2735    iptr p = 0;
     2736    ++p;
     2737  }
     2738  { /* AIX XL C 1.02.0.0 rejects this saying
     2739       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     2740    struct s { int j; const int *ap[3]; };
     2741    struct s *b; b->j = 5;
     2742  }
     2743  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     2744    const int foo = 10;
     2745  }
     2746#endif
     2747
     2748  ;
     2749  return 0;
    14522750}
    1453 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    1454   const int foo = 10;
    1455 }
    1456 
    1457 ; return 0; }
    1458 EOF
    1459 if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1460   rm -rf conftest*
     2751_ACEOF
     2752rm -f conftest.$ac_objext
     2753if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5
     2754  (eval $ac_compile) 2>&5
     2755  ac_status=$?
     2756  echo "$as_me:2756: \$? = $ac_status" >&5
     2757  (exit $ac_status); } &&
     2758         { ac_try='test -s conftest.$ac_objext'
     2759  { (eval echo "$as_me:2759: \"$ac_try\"") >&5
     2760  (eval $ac_try) 2>&5
     2761  ac_status=$?
     2762  echo "$as_me:2762: \$? = $ac_status" >&5
     2763  (exit $ac_status); }; }; then
    14612764  ac_cv_c_const=yes
    14622765else
    1463   echo "configure: failed program was:" >&5
    1464   cat conftest.$ac_ext >&5
    1465   rm -rf conftest*
    1466   ac_cv_c_const=no
    1467 fi
    1468 rm -f conftest*
    1469 fi
    1470 
    1471 echo "$ac_t""$ac_cv_c_const" 1>&6
     2766  echo "$as_me: failed program was:" >&5
     2767cat conftest.$ac_ext >&5
     2768ac_cv_c_const=no
     2769fi
     2770rm -f conftest.$ac_objext conftest.$ac_ext
     2771fi
     2772echo "$as_me:2772: result: $ac_cv_c_const" >&5
     2773echo "${ECHO_T}$ac_cv_c_const" >&6
    14722774if test $ac_cv_c_const = no; then
    1473   cat >> confdefs.h <<\EOF
    1474 #define const
    1475 EOF
    1476 
    1477 fi
    1478 
    1479 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1480 echo "configure:1481: checking for ANSI C header files" >&5
    1481 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1482   echo $ac_n "(cached) $ac_c" 1>&6
    1483 else
    1484   cat > conftest.$ac_ext <<EOF
    1485 #line 1486 "configure"
     2775
     2776cat >>confdefs.h <<\EOF
     2777#define const
     2778EOF
     2779
     2780fi
     2781
     2782echo "$as_me:2782: checking for ANSI C header files" >&5
     2783echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     2784if test "${ac_cv_header_stdc+set}" = set; then
     2785  echo $ECHO_N "(cached) $ECHO_C" >&6
     2786else
     2787  cat >conftest.$ac_ext <<_ACEOF
     2788#line 2788 "configure"
    14862789#include "confdefs.h"
    14872790#include <stdlib.h>
     
    14892792#include <string.h>
    14902793#include <float.h>
    1491 EOF
    1492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1493 { (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1495 if test -z "$ac_err"; then
    1496   rm -rf conftest*
     2794
     2795_ACEOF
     2796if { (eval echo "$as_me:2796: \"$ac_cpp conftest.$ac_ext\"") >&5
     2797  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2798  ac_status=$?
     2799  egrep -v '^ *\+' conftest.er1 >conftest.err
     2800  rm -f conftest.er1
     2801  cat conftest.err >&5
     2802  echo "$as_me:2802: \$? = $ac_status" >&5
     2803  (exit $ac_status); } >/dev/null; then
     2804  if test -s conftest.err; then
     2805    ac_cpp_err=$ac_c_preproc_warn_flag
     2806  else
     2807    ac_cpp_err=
     2808  fi
     2809else
     2810  ac_cpp_err=yes
     2811fi
     2812if test -z "$ac_cpp_err"; then
    14972813  ac_cv_header_stdc=yes
    14982814else
    1499   echo "$ac_err" >&5
    1500   echo "configure: failed program was:" >&5
     2815  echo "$as_me: failed program was:" >&5
    15012816  cat conftest.$ac_ext >&5
    1502   rm -rf conftest*
    15032817  ac_cv_header_stdc=no
    15042818fi
    1505 rm -f conftest*
     2819rm -f conftest.err conftest.$ac_ext
    15062820
    15072821if test $ac_cv_header_stdc = yes; then
    15082822  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1509 cat > conftest.$ac_ext <<EOF
    1510 #line 1511 "configure"
     2823  cat >conftest.$ac_ext <<_ACEOF
     2824#line 2824 "configure"
    15112825#include "confdefs.h"
    15122826#include <string.h>
    1513 EOF
     2827
     2828_ACEOF
    15142829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    15152830  egrep "memchr" >/dev/null 2>&1; then
    15162831  :
    15172832else
    1518   rm -rf conftest*
    15192833  ac_cv_header_stdc=no
    15202834fi
     
    15252839if test $ac_cv_header_stdc = yes; then
    15262840  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1527 cat > conftest.$ac_ext <<EOF
    1528 #line 1529 "configure"
     2841  cat >conftest.$ac_ext <<_ACEOF
     2842#line 2842 "configure"
    15292843#include "confdefs.h"
    15302844#include <stdlib.h>
    1531 EOF
     2845
     2846_ACEOF
    15322847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    15332848  egrep "free" >/dev/null 2>&1; then
    15342849  :
    15352850else
    1536   rm -rf conftest*
    15372851  ac_cv_header_stdc=no
    15382852fi
     
    15432857if test $ac_cv_header_stdc = yes; then
    15442858  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1545 if test "$cross_compiling" = yes; then
     2859  if test "$cross_compiling" = yes; then
    15462860  :
    15472861else
    1548   cat > conftest.$ac_ext <<EOF
    1549 #line 1550 "configure"
     2862  cat >conftest.$ac_ext <<_ACEOF
     2863#line 2863 "configure"
    15502864#include "confdefs.h"
    15512865#include <ctype.h>
    1552 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1553 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2866#if ((' ' & 0x0FF) == 0x020)
     2867# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2868# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2869#else
     2870# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     2871                     || ('j' <= (c) && (c) <= 'r') \
     2872                     || ('s' <= (c) && (c) <= 'z'))
     2873# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     2874#endif
     2875
    15542876#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1555 int main () { int i; for (i = 0; i < 256; i++)
    1556 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1557 exit (0); }
    1558 
    1559 EOF
    1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1561 then
     2877int
     2878main ()
     2879{
     2880  int i;
     2881  for (i = 0; i < 256; i++)
     2882    if (XOR (islower (i), ISLOWER (i))
     2883        || toupper (i) != TOUPPER (i))
     2884      exit(2);
     2885  exit (0);
     2886}
     2887_ACEOF
     2888rm -f conftest$ac_exeext
     2889if { (eval echo "$as_me:2889: \"$ac_link\"") >&5
     2890  (eval $ac_link) 2>&5
     2891  ac_status=$?
     2892  echo "$as_me:2892: \$? = $ac_status" >&5
     2893  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     2894  { (eval echo "$as_me:2894: \"$ac_try\"") >&5
     2895  (eval $ac_try) 2>&5
     2896  ac_status=$?
     2897  echo "$as_me:2897: \$? = $ac_status" >&5
     2898  (exit $ac_status); }; }; then
    15622899  :
    15632900else
    1564   echo "configure: failed program was:" >&5
     2901  echo "$as_me: program exited with status $ac_status" >&5
     2902echo "$as_me: failed program was:" >&5
     2903cat conftest.$ac_ext >&5
     2904ac_cv_header_stdc=no
     2905fi
     2906rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     2907fi
     2908fi
     2909fi
     2910echo "$as_me:2910: result: $ac_cv_header_stdc" >&5
     2911echo "${ECHO_T}$ac_cv_header_stdc" >&6
     2912if test $ac_cv_header_stdc = yes; then
     2913
     2914cat >>confdefs.h <<\EOF
     2915#define STDC_HEADERS 1
     2916EOF
     2917
     2918fi
     2919
     2920for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
     2921do
     2922ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     2923echo "$as_me:2923: checking for $ac_header" >&5
     2924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2925if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     2926  echo $ECHO_N "(cached) $ECHO_C" >&6
     2927else
     2928  cat >conftest.$ac_ext <<_ACEOF
     2929#line 2929 "configure"
     2930#include "confdefs.h"
     2931#include <$ac_header>
     2932_ACEOF
     2933if { (eval echo "$as_me:2933: \"$ac_cpp conftest.$ac_ext\"") >&5
     2934  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2935  ac_status=$?
     2936  egrep -v '^ *\+' conftest.er1 >conftest.err
     2937  rm -f conftest.er1
     2938  cat conftest.err >&5
     2939  echo "$as_me:2939: \$? = $ac_status" >&5
     2940  (exit $ac_status); } >/dev/null; then
     2941  if test -s conftest.err; then
     2942    ac_cpp_err=$ac_c_preproc_warn_flag
     2943  else
     2944    ac_cpp_err=
     2945  fi
     2946else
     2947  ac_cpp_err=yes
     2948fi
     2949if test -z "$ac_cpp_err"; then
     2950  eval "$ac_ac_Header=yes"
     2951else
     2952  echo "$as_me: failed program was:" >&5
    15652953  cat conftest.$ac_ext >&5
    1566   rm -fr conftest*
    1567   ac_cv_header_stdc=no
    1568 fi
    1569 rm -fr conftest*
    1570 fi
    1571 
    1572 fi
    1573 fi
    1574 
    1575 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    1576 if test $ac_cv_header_stdc = yes; then
    1577   cat >> confdefs.h <<\EOF
    1578 #define STDC_HEADERS 1
    1579 EOF
    1580 
    1581 fi
    1582 
    1583 echo $ac_n "checking for off_t""... $ac_c" 1>&6
    1584 echo "configure:1585: checking for off_t" >&5
    1585 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    1586   echo $ac_n "(cached) $ac_c" 1>&6
    1587 else
    1588   cat > conftest.$ac_ext <<EOF
    1589 #line 1590 "configure"
    1590 #include "confdefs.h"
    1591 #include <sys/types.h>
    1592 #if STDC_HEADERS
    1593 #include <stdlib.h>
    1594 #include <stddef.h>
    1595 #endif
    1596 EOF
    1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1598   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1599   rm -rf conftest*
     2954  eval "$ac_ac_Header=no"
     2955fi
     2956rm -f conftest.err conftest.$ac_ext
     2957fi
     2958echo "$as_me:2958: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     2959echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     2960if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     2961  cat >>confdefs.h <<EOF
     2962#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
     2963EOF
     2964
     2965fi
     2966done
     2967
     2968echo "$as_me:2968: checking for off_t" >&5
     2969echo $ECHO_N "checking for off_t... $ECHO_C" >&6
     2970if test "${ac_cv_type_off_t+set}" = set; then
     2971  echo $ECHO_N "(cached) $ECHO_C" >&6
     2972else
     2973  cat >conftest.$ac_ext <<_ACEOF
     2974#line 2974 "configure"
     2975#include "confdefs.h"
     2976$ac_includes_default
     2977int
     2978main ()
     2979{
     2980if ((off_t *) 0)
     2981  return 0;
     2982if (sizeof (off_t))
     2983  return 0;
     2984  ;
     2985  return 0;
     2986}
     2987_ACEOF
     2988rm -f conftest.$ac_objext
     2989if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
     2990  (eval $ac_compile) 2>&5
     2991  ac_status=$?
     2992  echo "$as_me:2992: \$? = $ac_status" >&5
     2993  (exit $ac_status); } &&
     2994         { ac_try='test -s conftest.$ac_objext'
     2995  { (eval echo "$as_me:2995: \"$ac_try\"") >&5
     2996  (eval $ac_try) 2>&5
     2997  ac_status=$?
     2998  echo "$as_me:2998: \$? = $ac_status" >&5
     2999  (exit $ac_status); }; }; then
    16003000  ac_cv_type_off_t=yes
    16013001else
    1602   rm -rf conftest*
    1603   ac_cv_type_off_t=no
    1604 fi
    1605 rm -f conftest*
    1606 
    1607 fi
    1608 echo "$ac_t""$ac_cv_type_off_t" 1>&6
    1609 if test $ac_cv_type_off_t = no; then
    1610   cat >> confdefs.h <<\EOF
     3002  echo "$as_me: failed program was:" >&5
     3003cat conftest.$ac_ext >&5
     3004ac_cv_type_off_t=no
     3005fi
     3006rm -f conftest.$ac_objext conftest.$ac_ext
     3007fi
     3008echo "$as_me:3008: result: $ac_cv_type_off_t" >&5
     3009echo "${ECHO_T}$ac_cv_type_off_t" >&6
     3010if test $ac_cv_type_off_t = yes; then
     3011  :
     3012else
     3013
     3014cat >>confdefs.h <<EOF
    16113015#define off_t long
    16123016EOF
     
    16143018fi
    16153019
    1616 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1617 echo "configure:1618: checking for size_t" >&5
    1618 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    1619   echo $ac_n "(cached) $ac_c" 1>&6
    1620 else
    1621   cat > conftest.$ac_ext <<EOF
    1622 #line 1623 "configure"
    1623 #include "confdefs.h"
    1624 #include <sys/types.h>
    1625 #if STDC_HEADERS
    1626 #include <stdlib.h>
    1627 #include <stddef.h>
    1628 #endif
    1629 EOF
    1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1631   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1632   rm -rf conftest*
     3020echo "$as_me:3020: checking for size_t" >&5
     3021echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     3022if test "${ac_cv_type_size_t+set}" = set; then
     3023  echo $ECHO_N "(cached) $ECHO_C" >&6
     3024else
     3025  cat >conftest.$ac_ext <<_ACEOF
     3026#line 3026 "configure"
     3027#include "confdefs.h"
     3028$ac_includes_default
     3029int
     3030main ()
     3031{
     3032if ((size_t *) 0)
     3033  return 0;
     3034if (sizeof (size_t))
     3035  return 0;
     3036  ;
     3037  return 0;
     3038}
     3039_ACEOF
     3040rm -f conftest.$ac_objext
     3041if { (eval echo "$as_me:3041: \"$ac_compile\"") >&5
     3042  (eval $ac_compile) 2>&5
     3043  ac_status=$?
     3044  echo "$as_me:3044: \$? = $ac_status" >&5
     3045  (exit $ac_status); } &&
     3046         { ac_try='test -s conftest.$ac_objext'
     3047  { (eval echo "$as_me:3047: \"$ac_try\"") >&5
     3048  (eval $ac_try) 2>&5
     3049  ac_status=$?
     3050  echo "$as_me:3050: \$? = $ac_status" >&5
     3051  (exit $ac_status); }; }; then
    16333052  ac_cv_type_size_t=yes
    16343053else
    1635   rm -rf conftest*
    1636   ac_cv_type_size_t=no
    1637 fi
    1638 rm -f conftest*
    1639 
    1640 fi
    1641 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    1642 if test $ac_cv_type_size_t = no; then
    1643   cat >> confdefs.h <<\EOF
     3054  echo "$as_me: failed program was:" >&5
     3055cat conftest.$ac_ext >&5
     3056ac_cv_type_size_t=no
     3057fi
     3058rm -f conftest.$ac_objext conftest.$ac_ext
     3059fi
     3060echo "$as_me:3060: result: $ac_cv_type_size_t" >&5
     3061echo "${ECHO_T}$ac_cv_type_size_t" >&6
     3062if test $ac_cv_type_size_t = yes; then
     3063  :
     3064else
     3065
     3066cat >>confdefs.h <<EOF
    16443067#define size_t unsigned
    16453068EOF
     
    16473070fi
    16483071
    1649 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1650 echo "configure:1651: checking whether time.h and sys/time.h may both be included" >&5
    1651 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    1652   echo $ac_n "(cached) $ac_c" 1>&6
    1653 else
    1654   cat > conftest.$ac_ext <<EOF
    1655 #line 1656 "configure"
     3072echo "$as_me:3072: checking whether time.h and sys/time.h may both be included" >&5
     3073echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     3074if test "${ac_cv_header_time+set}" = set; then
     3075  echo $ECHO_N "(cached) $ECHO_C" >&6
     3076else
     3077  cat >conftest.$ac_ext <<_ACEOF
     3078#line 3078 "configure"
    16563079#include "confdefs.h"
    16573080#include <sys/types.h>
    16583081#include <sys/time.h>
    16593082#include <time.h>
    1660 int main() {
     3083
     3084int
     3085main ()
     3086{
    16613087struct tm *tp;
    1662 ; return 0; }
    1663 EOF
    1664 if { (eval echo configure:1665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1665   rm -rf conftest*
     3088  ;
     3089  return 0;
     3090}
     3091_ACEOF
     3092rm -f conftest.$ac_objext
     3093if { (eval echo "$as_me:3093: \"$ac_compile\"") >&5
     3094  (eval $ac_compile) 2>&5
     3095  ac_status=$?
     3096  echo "$as_me:3096: \$? = $ac_status" >&5
     3097  (exit $ac_status); } &&
     3098         { ac_try='test -s conftest.$ac_objext'
     3099  { (eval echo "$as_me:3099: \"$ac_try\"") >&5
     3100  (eval $ac_try) 2>&5
     3101  ac_status=$?
     3102  echo "$as_me:3102: \$? = $ac_status" >&5
     3103  (exit $ac_status); }; }; then
    16663104  ac_cv_header_time=yes
    16673105else
    1668   echo "configure: failed program was:" >&5
    1669   cat conftest.$ac_ext >&5
    1670   rm -rf conftest*
    1671   ac_cv_header_time=no
    1672 fi
    1673 rm -f conftest*
    1674 fi
    1675 
    1676 echo "$ac_t""$ac_cv_header_time" 1>&6
     3106  echo "$as_me: failed program was:" >&5
     3107cat conftest.$ac_ext >&5
     3108ac_cv_header_time=no
     3109fi
     3110rm -f conftest.$ac_objext conftest.$ac_ext
     3111fi
     3112echo "$as_me:3112: result: $ac_cv_header_time" >&5
     3113echo "${ECHO_T}$ac_cv_header_time" >&6
    16773114if test $ac_cv_header_time = yes; then
    1678   cat >> confdefs.h <<\EOF
     3115
     3116cat >>confdefs.h <<\EOF
    16793117#define TIME_WITH_SYS_TIME 1
    16803118EOF
     
    16823120fi
    16833121
    1684 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1685 echo "configure:1686: checking whether struct tm is in sys/time.h or time.h" >&5
    1686 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    1687   echo $ac_n "(cached) $ac_c" 1>&6
    1688 else
    1689   cat > conftest.$ac_ext <<EOF
    1690 #line 1691 "configure"
     3122echo "$as_me:3122: checking whether struct tm is in sys/time.h or time.h" >&5
     3123echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     3124if test "${ac_cv_struct_tm+set}" = set; then
     3125  echo $ECHO_N "(cached) $ECHO_C" >&6
     3126else
     3127  cat >conftest.$ac_ext <<_ACEOF
     3128#line 3128 "configure"
    16913129#include "confdefs.h"
    16923130#include <sys/types.h>
    16933131#include <time.h>
    1694 int main() {
     3132
     3133int
     3134main ()
     3135{
    16953136struct tm *tp; tp->tm_sec;
    1696 ; return 0; }
    1697 EOF
    1698 if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1699   rm -rf conftest*
     3137  ;
     3138  return 0;
     3139}
     3140_ACEOF
     3141rm -f conftest.$ac_objext
     3142if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5
     3143  (eval $ac_compile) 2>&5
     3144  ac_status=$?
     3145  echo "$as_me:3145: \$? = $ac_status" >&5
     3146  (exit $ac_status); } &&
     3147         { ac_try='test -s conftest.$ac_objext'
     3148  { (eval echo "$as_me:3148: \"$ac_try\"") >&5
     3149  (eval $ac_try) 2>&5
     3150  ac_status=$?
     3151  echo "$as_me:3151: \$? = $ac_status" >&5
     3152  (exit $ac_status); }; }; then
    17003153  ac_cv_struct_tm=time.h
    17013154else
    1702   echo "configure: failed program was:" >&5
    1703   cat conftest.$ac_ext >&5
    1704   rm -rf conftest*
    1705   ac_cv_struct_tm=sys/time.h
    1706 fi
    1707 rm -f conftest*
    1708 fi
    1709 
    1710 echo "$ac_t""$ac_cv_struct_tm" 1>&6
     3155  echo "$as_me: failed program was:" >&5
     3156cat conftest.$ac_ext >&5
     3157ac_cv_struct_tm=sys/time.h
     3158fi
     3159rm -f conftest.$ac_objext conftest.$ac_ext
     3160fi
     3161echo "$as_me:3161: result: $ac_cv_struct_tm" >&5
     3162echo "${ECHO_T}$ac_cv_struct_tm" >&6
    17113163if test $ac_cv_struct_tm = sys/time.h; then
    1712   cat >> confdefs.h <<\EOF
     3164
     3165cat >>confdefs.h <<\EOF
    17133166#define TM_IN_SYS_TIME 1
    17143167EOF
     
    17163169fi
    17173170
    1718 
    17193171if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    1720 cat > conftest.$ac_ext <<EOF
    1721 #line 1722 "configure"
     3172cat >conftest.$ac_ext <<_ACEOF
     3173#line 3173 "configure"
    17223174#include "confdefs.h"
    17233175#include <stdio.h>
    17243176
    1725 int main() {
    1726  FILE *rubbish = popen("yes", "r");
    1727 ; return 0; }
    1728 EOF
    1729 if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3177int
     3178main ()
     3179{
     3180 FILE *rubbish = popen("yes", "r");
     3181  ;
     3182  return 0;
     3183}
     3184_ACEOF
     3185rm -f conftest.$ac_objext
     3186if { (eval echo "$as_me:3186: \"$ac_compile\"") >&5
     3187  (eval $ac_compile) 2>&5
     3188  ac_status=$?
     3189  echo "$as_me:3189: \$? = $ac_status" >&5
     3190  (exit $ac_status); } &&
     3191         { ac_try='test -s conftest.$ac_objext'
     3192  { (eval echo "$as_me:3192: \"$ac_try\"") >&5
     3193  (eval $ac_try) 2>&5
     3194  ac_status=$?
     3195  echo "$as_me:3195: \$? = $ac_status" >&5
     3196  (exit $ac_status); }; }; then
    17303197  :
    17313198else
    1732   echo "configure: failed program was:" >&5
    1733   cat conftest.$ac_ext >&5
    1734   rm -rf conftest*
    1735   CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    1736 fi
    1737 rm -f conftest*
    1738 fi
    1739 
    1740 
    1741 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
    1742 echo "configure:1743: checking for main in -lg" >&5
    1743 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
    1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1745   echo $ac_n "(cached) $ac_c" 1>&6
    1746 else
    1747   ac_save_LIBS="$LIBS"
     3199  echo "$as_me: failed program was:" >&5
     3200cat conftest.$ac_ext >&5
     3201CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     3202fi
     3203rm -f conftest.$ac_objext conftest.$ac_ext
     3204fi
     3205
     3206echo "$as_me:3206: checking for main in -lg" >&5
     3207echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
     3208if test "${ac_cv_lib_g_main+set}" = set; then
     3209  echo $ECHO_N "(cached) $ECHO_C" >&6
     3210else
     3211  ac_check_lib_save_LIBS=$LIBS
    17483212LIBS="-lg  $LIBS"
    1749 cat > conftest.$ac_ext <<EOF
    1750 #line 1751 "configure"
    1751 #include "confdefs.h"
    1752 
    1753 int main() {
    1754 main()
    1755 ; return 0; }
    1756 EOF
    1757 if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1758   rm -rf conftest*
    1759   eval "ac_cv_lib_$ac_lib_var=yes"
    1760 else
    1761   echo "configure: failed program was:" >&5
    1762   cat conftest.$ac_ext >&5
    1763   rm -rf conftest*
    1764   eval "ac_cv_lib_$ac_lib_var=no"
    1765 fi
    1766 rm -f conftest*
    1767 LIBS="$ac_save_LIBS"
    1768 
    1769 fi
    1770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1771   echo "$ac_t""yes" 1>&6
    1772     ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1773     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1774   cat >> confdefs.h <<EOF
    1775 #define $ac_tr_lib 1
     3213cat >conftest.$ac_ext <<_ACEOF
     3214#line 3214 "configure"
     3215#include "confdefs.h"
     3216
     3217int
     3218main ()
     3219{
     3220main ();
     3221  ;
     3222  return 0;
     3223}
     3224_ACEOF
     3225rm -f conftest.$ac_objext conftest$ac_exeext
     3226if { (eval echo "$as_me:3226: \"$ac_link\"") >&5
     3227  (eval $ac_link) 2>&5
     3228  ac_status=$?
     3229  echo "$as_me:3229: \$? = $ac_status" >&5
     3230  (exit $ac_status); } &&
     3231         { ac_try='test -s conftest$ac_exeext'
     3232  { (eval echo "$as_me:3232: \"$ac_try\"") >&5
     3233  (eval $ac_try) 2>&5
     3234  ac_status=$?
     3235  echo "$as_me:3235: \$? = $ac_status" >&5
     3236  (exit $ac_status); }; }; then
     3237  ac_cv_lib_g_main=yes
     3238else
     3239  echo "$as_me: failed program was:" >&5
     3240cat conftest.$ac_ext >&5
     3241ac_cv_lib_g_main=no
     3242fi
     3243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3244LIBS=$ac_check_lib_save_LIBS
     3245fi
     3246echo "$as_me:3246: result: $ac_cv_lib_g_main" >&5
     3247echo "${ECHO_T}$ac_cv_lib_g_main" >&6
     3248if test $ac_cv_lib_g_main = yes; then
     3249  cat >>confdefs.h <<EOF
     3250#define HAVE_LIBG 1
    17763251EOF
    17773252
    17783253  LIBS="-lg $LIBS"
    17793254
    1780 else
    1781   echo "$ac_t""no" 1>&6
    1782 fi
    1783 
    1784 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    1785 echo "configure:1786: checking for main in -lm" >&5
    1786 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1788   echo $ac_n "(cached) $ac_c" 1>&6
    1789 else
    1790   ac_save_LIBS="$LIBS"
     3255fi
     3256
     3257echo "$as_me:3257: checking for main in -lm" >&5
     3258echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     3259if test "${ac_cv_lib_m_main+set}" = set; then
     3260  echo $ECHO_N "(cached) $ECHO_C" >&6
     3261else
     3262  ac_check_lib_save_LIBS=$LIBS
    17913263LIBS="-lm  $LIBS"
    1792 cat > conftest.$ac_ext <<EOF
    1793 #line 1794 "configure"
    1794 #include "confdefs.h"
    1795 
    1796 int main() {
    1797 main()
    1798 ; return 0; }
    1799 EOF
    1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1801   rm -rf conftest*
    1802   eval "ac_cv_lib_$ac_lib_var=yes"
    1803 else
    1804   echo "configure: failed program was:" >&5
    1805   cat conftest.$ac_ext >&5
    1806   rm -rf conftest*
    1807   eval "ac_cv_lib_$ac_lib_var=no"
    1808 fi
    1809 rm -f conftest*
    1810 LIBS="$ac_save_LIBS"
    1811 
    1812 fi
    1813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1814   echo "$ac_t""yes" 1>&6
    1815     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1816     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1817   cat >> confdefs.h <<EOF
    1818 #define $ac_tr_lib 1
     3264cat >conftest.$ac_ext <<_ACEOF
     3265#line 3265 "configure"
     3266#include "confdefs.h"
     3267
     3268int
     3269main ()
     3270{
     3271main ();
     3272  ;
     3273  return 0;
     3274}
     3275_ACEOF
     3276rm -f conftest.$ac_objext conftest$ac_exeext
     3277if { (eval echo "$as_me:3277: \"$ac_link\"") >&5
     3278  (eval $ac_link) 2>&5
     3279  ac_status=$?
     3280  echo "$as_me:3280: \$? = $ac_status" >&5
     3281  (exit $ac_status); } &&
     3282         { ac_try='test -s conftest$ac_exeext'
     3283  { (eval echo "$as_me:3283: \"$ac_try\"") >&5
     3284  (eval $ac_try) 2>&5
     3285  ac_status=$?
     3286  echo "$as_me:3286: \$? = $ac_status" >&5
     3287  (exit $ac_status); }; }; then
     3288  ac_cv_lib_m_main=yes
     3289else
     3290  echo "$as_me: failed program was:" >&5
     3291cat conftest.$ac_ext >&5
     3292ac_cv_lib_m_main=no
     3293fi
     3294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3295LIBS=$ac_check_lib_save_LIBS
     3296fi
     3297echo "$as_me:3297: result: $ac_cv_lib_m_main" >&5
     3298echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     3299if test $ac_cv_lib_m_main = yes; then
     3300  cat >>confdefs.h <<EOF
     3301#define HAVE_LIBM 1
    18193302EOF
    18203303
    18213304  LIBS="-lm $LIBS"
    18223305
    1823 else
    1824   echo "$ac_t""no" 1>&6
    1825 fi
    1826 
    1827 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
    1828 echo "configure:1829: checking for main in -lstdc++" >&5
    1829 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
    1830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1831   echo $ac_n "(cached) $ac_c" 1>&6
    1832 else
    1833   ac_save_LIBS="$LIBS"
     3306fi
     3307
     3308echo "$as_me:3308: checking for main in -lstdc++" >&5
     3309echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
     3310if test "${ac_cv_lib_stdcpp_main+set}" = set; then
     3311  echo $ECHO_N "(cached) $ECHO_C" >&6
     3312else
     3313  ac_check_lib_save_LIBS=$LIBS
    18343314LIBS="-lstdc++  $LIBS"
    1835 cat > conftest.$ac_ext <<EOF
    1836 #line 1837 "configure"
    1837 #include "confdefs.h"
    1838 
    1839 int main() {
    1840 main()
    1841 ; return 0; }
    1842 EOF
    1843 if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1844   rm -rf conftest*
    1845   eval "ac_cv_lib_$ac_lib_var=yes"
    1846 else
    1847   echo "configure: failed program was:" >&5
    1848   cat conftest.$ac_ext >&5
    1849   rm -rf conftest*
    1850   eval "ac_cv_lib_$ac_lib_var=no"
    1851 fi
    1852 rm -f conftest*
    1853 LIBS="$ac_save_LIBS"
    1854 
    1855 fi
    1856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1857   echo "$ac_t""yes" 1>&6
    1858     ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1859     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1860   cat >> confdefs.h <<EOF
    1861 #define $ac_tr_lib 1
     3315cat >conftest.$ac_ext <<_ACEOF
     3316#line 3316 "configure"
     3317#include "confdefs.h"
     3318
     3319int
     3320main ()
     3321{
     3322main ();
     3323  ;
     3324  return 0;
     3325}
     3326_ACEOF
     3327rm -f conftest.$ac_objext conftest$ac_exeext
     3328if { (eval echo "$as_me:3328: \"$ac_link\"") >&5
     3329  (eval $ac_link) 2>&5
     3330  ac_status=$?
     3331  echo "$as_me:3331: \$? = $ac_status" >&5
     3332  (exit $ac_status); } &&
     3333         { ac_try='test -s conftest$ac_exeext'
     3334  { (eval echo "$as_me:3334: \"$ac_try\"") >&5
     3335  (eval $ac_try) 2>&5
     3336  ac_status=$?
     3337  echo "$as_me:3337: \$? = $ac_status" >&5
     3338  (exit $ac_status); }; }; then
     3339  ac_cv_lib_stdcpp_main=yes
     3340else
     3341  echo "$as_me: failed program was:" >&5
     3342cat conftest.$ac_ext >&5
     3343ac_cv_lib_stdcpp_main=no
     3344fi
     3345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3346LIBS=$ac_check_lib_save_LIBS
     3347fi
     3348echo "$as_me:3348: result: $ac_cv_lib_stdcpp_main" >&5
     3349echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
     3350if test $ac_cv_lib_stdcpp_main = yes; then
     3351  cat >>confdefs.h <<EOF
     3352#define HAVE_LIBSTDC__ 1
    18623353EOF
    18633354
    18643355  LIBS="-lstdc++ $LIBS"
    18653356
    1866 else
    1867   echo "$ac_t""no" 1>&6
    1868 fi
    1869 
    1870 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
    1871 echo "configure:1872: checking for main in -lcrypt" >&5
    1872 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
    1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1874   echo $ac_n "(cached) $ac_c" 1>&6
    1875 else
    1876   ac_save_LIBS="$LIBS"
     3357fi
     3358
     3359echo "$as_me:3359: checking for main in -lcrypt" >&5
     3360echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
     3361if test "${ac_cv_lib_crypt_main+set}" = set; then
     3362  echo $ECHO_N "(cached) $ECHO_C" >&6
     3363else
     3364  ac_check_lib_save_LIBS=$LIBS
    18773365LIBS="-lcrypt  $LIBS"
    1878 cat > conftest.$ac_ext <<EOF
    1879 #line 1880 "configure"
    1880 #include "confdefs.h"
    1881 
    1882 int main() {
    1883 main()
    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     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1902     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1903   cat >> confdefs.h <<EOF
    1904 #define $ac_tr_lib 1
     3366cat >conftest.$ac_ext <<_ACEOF
     3367#line 3367 "configure"
     3368#include "confdefs.h"
     3369
     3370int
     3371main ()
     3372{
     3373main ();
     3374  ;
     3375  return 0;
     3376}
     3377_ACEOF
     3378rm -f conftest.$ac_objext conftest$ac_exeext
     3379if { (eval echo "$as_me:3379: \"$ac_link\"") >&5
     3380  (eval $ac_link) 2>&5
     3381  ac_status=$?
     3382  echo "$as_me:3382: \$? = $ac_status" >&5
     3383  (exit $ac_status); } &&
     3384         { ac_try='test -s conftest$ac_exeext'
     3385  { (eval echo "$as_me:3385: \"$ac_try\"") >&5
     3386  (eval $ac_try) 2>&5
     3387  ac_status=$?
     3388  echo "$as_me:3388: \$? = $ac_status" >&5
     3389  (exit $ac_status); }; }; then
     3390  ac_cv_lib_crypt_main=yes
     3391else
     3392  echo "$as_me: failed program was:" >&5
     3393cat conftest.$ac_ext >&5
     3394ac_cv_lib_crypt_main=no
     3395fi
     3396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3397LIBS=$ac_check_lib_save_LIBS
     3398fi
     3399echo "$as_me:3399: result: $ac_cv_lib_crypt_main" >&5
     3400echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
     3401if test $ac_cv_lib_crypt_main = yes; then
     3402  cat >>confdefs.h <<EOF
     3403#define HAVE_LIBCRYPT 1
    19053404EOF
    19063405
    19073406  LIBS="-lcrypt $LIBS"
    19083407
    1909 else
    1910   echo "$ac_t""no" 1>&6
    1911 fi
    1912 
     3408fi
    19133409
    19143410ac_header_dirent=no
    1915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
    1916 do
    1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1918 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    1919 echo "configure:1920: checking for $ac_hdr that defines DIR" >&5
    1920 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    1921   echo $ac_n "(cached) $ac_c" 1>&6
    1922 else
    1923   cat > conftest.$ac_ext <<EOF
    1924 #line 1925 "configure"
     3411for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
     3412  ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
     3413echo "$as_me:3413: checking for $ac_hdr that defines DIR" >&5
     3414echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
     3415if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     3416  echo $ECHO_N "(cached) $ECHO_C" >&6
     3417else
     3418  cat >conftest.$ac_ext <<_ACEOF
     3419#line 3419 "configure"
    19253420#include "confdefs.h"
    19263421#include <sys/types.h>
    19273422#include <$ac_hdr>
    1928 int main() {
     3423
     3424int
     3425main ()
     3426{
    19293427DIR *dirp = 0;
    1930 ; return 0; }
    1931 EOF
    1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1933   rm -rf conftest*
    1934   eval "ac_cv_header_dirent_$ac_safe=yes"
    1935 else
    1936   echo "configure: failed program was:" >&5
    1937   cat conftest.$ac_ext >&5
    1938   rm -rf conftest*
    1939   eval "ac_cv_header_dirent_$ac_safe=no"
    1940 fi
    1941 rm -f conftest*
    1942 fi
    1943 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    1944   echo "$ac_t""yes" 1>&6
    1945     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1946   cat >> confdefs.h <<EOF
    1947 #define $ac_tr_hdr 1
    1948 EOF
    1949  ac_header_dirent=$ac_hdr; break
    1950 else
    1951   echo "$ac_t""no" 1>&6
    1952 fi
     3428  ;
     3429  return 0;
     3430}
     3431_ACEOF
     3432rm -f conftest.$ac_objext
     3433if { (eval echo "$as_me:3433: \"$ac_compile\"") >&5
     3434  (eval $ac_compile) 2>&5
     3435  ac_status=$?
     3436  echo "$as_me:3436: \$? = $ac_status" >&5
     3437  (exit $ac_status); } &&
     3438         { ac_try='test -s conftest.$ac_objext'
     3439  { (eval echo "$as_me:3439: \"$ac_try\"") >&5
     3440  (eval $ac_try) 2>&5
     3441  ac_status=$?
     3442  echo "$as_me:3442: \$? = $ac_status" >&5
     3443  (exit $ac_status); }; }; then
     3444  eval "$ac_ac_Header=yes"
     3445else
     3446  echo "$as_me: failed program was:" >&5
     3447cat conftest.$ac_ext >&5
     3448eval "$ac_ac_Header=no"
     3449fi
     3450rm -f conftest.$ac_objext conftest.$ac_ext
     3451fi
     3452echo "$as_me:3452: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     3453echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     3454if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     3455  cat >>confdefs.h <<EOF
     3456#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
     3457EOF
     3458
     3459ac_header_dirent=$ac_hdr; break
     3460fi
     3461
    19533462done
    19543463# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    19553464if test $ac_header_dirent = dirent.h; then
    1956 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    1957 echo "configure:1958: checking for opendir in -ldir" >&5
    1958 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    1959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1960   echo $ac_n "(cached) $ac_c" 1>&6
    1961 else
    1962   ac_save_LIBS="$LIBS"
     3465  echo "$as_me:3465: checking for opendir in -ldir" >&5
     3466echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
     3467if test "${ac_cv_lib_dir_opendir+set}" = set; then
     3468  echo $ECHO_N "(cached) $ECHO_C" >&6
     3469else
     3470  ac_check_lib_save_LIBS=$LIBS
    19633471LIBS="-ldir  $LIBS"
    1964 cat > conftest.$ac_ext <<EOF
    1965 #line 1966 "configure"
    1966 #include "confdefs.h"
     3472cat >conftest.$ac_ext <<_ACEOF
     3473#line 3473 "configure"
     3474#include "confdefs.h"
     3475
    19673476/* Override any gcc2 internal prototype to avoid an error.  */
     3477#ifdef __cplusplus
     3478extern "C"
     3479#endif
    19683480/* We use char because int might match the return type of a gcc2
    1969     builtin and then its argument prototype would still apply.  */
    1970 char opendir();
    1971 
    1972 int main() {
    1973 opendir()
    1974 ; return 0; }
    1975 EOF
    1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1977   rm -rf conftest*
    1978   eval "ac_cv_lib_$ac_lib_var=yes"
    1979 else
    1980   echo "configure: failed program was:" >&5
    1981   cat conftest.$ac_ext >&5
    1982   rm -rf conftest*
    1983   eval "ac_cv_lib_$ac_lib_var=no"
    1984 fi
    1985 rm -f conftest*
    1986 LIBS="$ac_save_LIBS"
    1987 
    1988 fi
    1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1990   echo "$ac_t""yes" 1>&6
     3481   builtin and then its argument prototype would still apply.  */
     3482char opendir ();
     3483int
     3484main ()
     3485{
     3486opendir ();
     3487  ;
     3488  return 0;
     3489}
     3490_ACEOF
     3491rm -f conftest.$ac_objext conftest$ac_exeext
     3492if { (eval echo "$as_me:3492: \"$ac_link\"") >&5
     3493  (eval $ac_link) 2>&5
     3494  ac_status=$?
     3495  echo "$as_me:3495: \$? = $ac_status" >&5
     3496  (exit $ac_status); } &&
     3497         { ac_try='test -s conftest$ac_exeext'
     3498  { (eval echo "$as_me:3498: \"$ac_try\"") >&5
     3499  (eval $ac_try) 2>&5
     3500  ac_status=$?
     3501  echo "$as_me:3501: \$? = $ac_status" >&5
     3502  (exit $ac_status); }; }; then
     3503  ac_cv_lib_dir_opendir=yes
     3504else
     3505  echo "$as_me: failed program was:" >&5
     3506cat conftest.$ac_ext >&5
     3507ac_cv_lib_dir_opendir=no
     3508fi
     3509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3510LIBS=$ac_check_lib_save_LIBS
     3511fi
     3512echo "$as_me:3512: result: $ac_cv_lib_dir_opendir" >&5
     3513echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
     3514if test $ac_cv_lib_dir_opendir = yes; then
    19913515  LIBS="$LIBS -ldir"
    1992 else
    1993   echo "$ac_t""no" 1>&6
    1994 fi
    1995 
    1996 else
    1997 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
    1998 echo "configure:1999: checking for opendir in -lx" >&5
    1999 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
    2000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2001   echo $ac_n "(cached) $ac_c" 1>&6
    2002 else
    2003   ac_save_LIBS="$LIBS"
     3516fi
     3517
     3518else
     3519  echo "$as_me:3519: checking for opendir in -lx" >&5
     3520echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
     3521if test "${ac_cv_lib_x_opendir+set}" = set; then
     3522  echo $ECHO_N "(cached) $ECHO_C" >&6
     3523else
     3524  ac_check_lib_save_LIBS=$LIBS
    20043525LIBS="-lx  $LIBS"
    2005 cat > conftest.$ac_ext <<EOF
    2006 #line 2007 "configure"
    2007 #include "confdefs.h"
     3526cat >conftest.$ac_ext <<_ACEOF
     3527#line 3527 "configure"
     3528#include "confdefs.h"
     3529
    20083530/* Override any gcc2 internal prototype to avoid an error.  */
     3531#ifdef __cplusplus
     3532extern "C"
     3533#endif
    20093534/* We use char because int might match the return type of a gcc2
    2010     builtin and then its argument prototype would still apply.  */
    2011 char opendir();
    2012 
    2013 int main() {
    2014 opendir()
    2015 ; return 0; }
    2016 EOF
    2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2018   rm -rf conftest*
    2019   eval "ac_cv_lib_$ac_lib_var=yes"
    2020 else
    2021   echo "configure: failed program was:" >&5
    2022   cat conftest.$ac_ext >&5
    2023   rm -rf conftest*
    2024   eval "ac_cv_lib_$ac_lib_var=no"
    2025 fi
    2026 rm -f conftest*
    2027 LIBS="$ac_save_LIBS"
    2028 
    2029 fi
    2030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2031   echo "$ac_t""yes" 1>&6
     3535   builtin and then its argument prototype would still apply.  */
     3536char opendir ();
     3537int
     3538main ()
     3539{
     3540opendir ();
     3541  ;
     3542  return 0;
     3543}
     3544_ACEOF
     3545rm -f conftest.$ac_objext conftest$ac_exeext
     3546if { (eval echo "$as_me:3546: \"$ac_link\"") >&5
     3547  (eval $ac_link) 2>&5
     3548  ac_status=$?
     3549  echo "$as_me:3549: \$? = $ac_status" >&5
     3550  (exit $ac_status); } &&
     3551         { ac_try='test -s conftest$ac_exeext'
     3552  { (eval echo "$as_me:3552: \"$ac_try\"") >&5
     3553  (eval $ac_try) 2>&5
     3554  ac_status=$?
     3555  echo "$as_me:3555: \$? = $ac_status" >&5
     3556  (exit $ac_status); }; }; then
     3557  ac_cv_lib_x_opendir=yes
     3558else
     3559  echo "$as_me: failed program was:" >&5
     3560cat conftest.$ac_ext >&5
     3561ac_cv_lib_x_opendir=no
     3562fi
     3563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3564LIBS=$ac_check_lib_save_LIBS
     3565fi
     3566echo "$as_me:3566: result: $ac_cv_lib_x_opendir" >&5
     3567echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
     3568if test $ac_cv_lib_x_opendir = yes; then
    20323569  LIBS="$LIBS -lx"
    2033 else
    2034   echo "$ac_t""no" 1>&6
    2035 fi
    2036 
    2037 fi
    2038 
    2039 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    2040 echo "configure:2041: checking for ANSI C header files" >&5
    2041 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    2042   echo $ac_n "(cached) $ac_c" 1>&6
    2043 else
    2044   cat > conftest.$ac_ext <<EOF
    2045 #line 2046 "configure"
     3570fi
     3571
     3572fi
     3573
     3574echo "$as_me:3574: checking for ANSI C header files" >&5
     3575echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3576if test "${ac_cv_header_stdc+set}" = set; then
     3577  echo $ECHO_N "(cached) $ECHO_C" >&6
     3578else
     3579  cat >conftest.$ac_ext <<_ACEOF
     3580#line 3580 "configure"
    20463581#include "confdefs.h"
    20473582#include <stdlib.h>
     
    20493584#include <string.h>
    20503585#include <float.h>
    2051 EOF
    2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2055 if test -z "$ac_err"; then
    2056   rm -rf conftest*
     3586
     3587_ACEOF
     3588if { (eval echo "$as_me:3588: \"$ac_cpp conftest.$ac_ext\"") >&5
     3589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3590  ac_status=$?
     3591  egrep -v '^ *\+' conftest.er1 >conftest.err
     3592  rm -f conftest.er1
     3593  cat conftest.err >&5
     3594  echo "$as_me:3594: \$? = $ac_status" >&5
     3595  (exit $ac_status); } >/dev/null; then
     3596  if test -s conftest.err; then
     3597    ac_cpp_err=$ac_c_preproc_warn_flag
     3598  else
     3599    ac_cpp_err=
     3600  fi
     3601else
     3602  ac_cpp_err=yes
     3603fi
     3604if test -z "$ac_cpp_err"; then
    20573605  ac_cv_header_stdc=yes
    20583606else
    2059   echo "$ac_err" >&5
    2060   echo "configure: failed program was:" >&5
     3607  echo "$as_me: failed program was:" >&5
    20613608  cat conftest.$ac_ext >&5
    2062   rm -rf conftest*
    20633609  ac_cv_header_stdc=no
    20643610fi
    2065 rm -f conftest*
     3611rm -f conftest.err conftest.$ac_ext
    20663612
    20673613if test $ac_cv_header_stdc = yes; then
    20683614  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2069 cat > conftest.$ac_ext <<EOF
    2070 #line 2071 "configure"
     3615  cat >conftest.$ac_ext <<_ACEOF
     3616#line 3616 "configure"
    20713617#include "confdefs.h"
    20723618#include <string.h>
    2073 EOF
     3619
     3620_ACEOF
    20743621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    20753622  egrep "memchr" >/dev/null 2>&1; then
    20763623  :
    20773624else
    2078   rm -rf conftest*
    20793625  ac_cv_header_stdc=no
    20803626fi
     
    20853631if test $ac_cv_header_stdc = yes; then
    20863632  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2087 cat > conftest.$ac_ext <<EOF
    2088 #line 2089 "configure"
     3633  cat >conftest.$ac_ext <<_ACEOF
     3634#line 3634 "configure"
    20893635#include "confdefs.h"
    20903636#include <stdlib.h>
    2091 EOF
     3637
     3638_ACEOF
    20923639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    20933640  egrep "free" >/dev/null 2>&1; then
    20943641  :
    20953642else
    2096   rm -rf conftest*
    20973643  ac_cv_header_stdc=no
    20983644fi
     
    21033649if test $ac_cv_header_stdc = yes; then
    21043650  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2105 if test "$cross_compiling" = yes; then
     3651  if test "$cross_compiling" = yes; then
    21063652  :
    21073653else
    2108   cat > conftest.$ac_ext <<EOF
    2109 #line 2110 "configure"
     3654  cat >conftest.$ac_ext <<_ACEOF
     3655#line 3655 "configure"
    21103656#include "confdefs.h"
    21113657#include <ctype.h>
    2112 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2113 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3658#if ((' ' & 0x0FF) == 0x020)
     3659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3661#else
     3662# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     3663                     || ('j' <= (c) && (c) <= 'r') \
     3664                     || ('s' <= (c) && (c) <= 'z'))
     3665# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3666#endif
     3667
    21143668#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2115 int main () { int i; for (i = 0; i < 256; i++)
    2116 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    2117 exit (0); }
    2118 
    2119 EOF
    2120 if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2121 then
     3669int
     3670main ()
     3671{
     3672  int i;
     3673  for (i = 0; i < 256; i++)
     3674    if (XOR (islower (i), ISLOWER (i))
     3675        || toupper (i) != TOUPPER (i))
     3676      exit(2);
     3677  exit (0);
     3678}
     3679_ACEOF
     3680rm -f conftest$ac_exeext
     3681if { (eval echo "$as_me:3681: \"$ac_link\"") >&5
     3682  (eval $ac_link) 2>&5
     3683  ac_status=$?
     3684  echo "$as_me:3684: \$? = $ac_status" >&5
     3685  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3686  { (eval echo "$as_me:3686: \"$ac_try\"") >&5
     3687  (eval $ac_try) 2>&5
     3688  ac_status=$?
     3689  echo "$as_me:3689: \$? = $ac_status" >&5
     3690  (exit $ac_status); }; }; then
    21223691  :
    21233692else
    2124   echo "configure: failed program was:" >&5
     3693  echo "$as_me: program exited with status $ac_status" >&5
     3694echo "$as_me: failed program was:" >&5
     3695cat conftest.$ac_ext >&5
     3696ac_cv_header_stdc=no
     3697fi
     3698rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     3699fi
     3700fi
     3701fi
     3702echo "$as_me:3702: result: $ac_cv_header_stdc" >&5
     3703echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3704if test $ac_cv_header_stdc = yes; then
     3705
     3706cat >>confdefs.h <<\EOF
     3707#define STDC_HEADERS 1
     3708EOF
     3709
     3710fi
     3711
     3712for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
     3713do
     3714ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     3715echo "$as_me:3715: checking for $ac_header" >&5
     3716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3717if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     3718  echo $ECHO_N "(cached) $ECHO_C" >&6
     3719else
     3720  cat >conftest.$ac_ext <<_ACEOF
     3721#line 3721 "configure"
     3722#include "confdefs.h"
     3723#include <$ac_header>
     3724_ACEOF
     3725if { (eval echo "$as_me:3725: \"$ac_cpp conftest.$ac_ext\"") >&5
     3726  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3727  ac_status=$?
     3728  egrep -v '^ *\+' conftest.er1 >conftest.err
     3729  rm -f conftest.er1
     3730  cat conftest.err >&5
     3731  echo "$as_me:3731: \$? = $ac_status" >&5
     3732  (exit $ac_status); } >/dev/null; then
     3733  if test -s conftest.err; then
     3734    ac_cpp_err=$ac_c_preproc_warn_flag
     3735  else
     3736    ac_cpp_err=
     3737  fi
     3738else
     3739  ac_cpp_err=yes
     3740fi
     3741if test -z "$ac_cpp_err"; then
     3742  eval "$ac_ac_Header=yes"
     3743else
     3744  echo "$as_me: failed program was:" >&5
    21253745  cat conftest.$ac_ext >&5
    2126   rm -fr conftest*
    2127   ac_cv_header_stdc=no
    2128 fi
    2129 rm -fr conftest*
    2130 fi
    2131 
    2132 fi
    2133 fi
    2134 
    2135 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    2136 if test $ac_cv_header_stdc = yes; then
    2137   cat >> confdefs.h <<\EOF
    2138 #define STDC_HEADERS 1
    2139 EOF
    2140 
    2141 fi
    2142 
    2143 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
    2144 do
    2145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2147 echo "configure:2148: checking for $ac_hdr" >&5
    2148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2149   echo $ac_n "(cached) $ac_c" 1>&6
    2150 else
    2151   cat > conftest.$ac_ext <<EOF
    2152 #line 2153 "configure"
    2153 #include "confdefs.h"
    2154 #include <$ac_hdr>
    2155 EOF
    2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2159 if test -z "$ac_err"; then
    2160   rm -rf conftest*
    2161   eval "ac_cv_header_$ac_safe=yes"
    2162 else
    2163   echo "$ac_err" >&5
    2164   echo "configure: failed program was:" >&5
    2165   cat conftest.$ac_ext >&5
    2166   rm -rf conftest*
    2167   eval "ac_cv_header_$ac_safe=no"
    2168 fi
    2169 rm -f conftest*
    2170 fi
    2171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2172   echo "$ac_t""yes" 1>&6
    2173     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2174   cat >> confdefs.h <<EOF
    2175 #define $ac_tr_hdr 1
    2176 EOF
    2177  
    2178 else
    2179   echo "$ac_t""no" 1>&6
     3746  eval "$ac_ac_Header=no"
     3747fi
     3748rm -f conftest.err conftest.$ac_ext
     3749fi
     3750echo "$as_me:3750: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     3751echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     3752if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     3753  cat >>confdefs.h <<EOF
     3754#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
     3755EOF
     3756
    21803757fi
    21813758done
    21823759
    2183 cat > conftest.$ac_ext <<EOF
    2184 #line 2185 "configure"
     3760cat >conftest.$ac_ext <<_ACEOF
     3761#line 3761 "configure"
    21853762#include "confdefs.h"
    21863763#include <stdio.h>
    2187 EOF
     3764
     3765_ACEOF
    21883766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    21893767  egrep "fread" >/dev/null 2>&1; then
    2190   rm -rf conftest*
    2191   cat >> confdefs.h <<\EOF
     3768  cat >>confdefs.h <<\EOF
    21923769#define HAVE_FREAD_DECL 1
    21933770EOF
     
    21963773rm -f conftest*
    21973774
    2198 cat > conftest.$ac_ext <<EOF
    2199 #line 2200 "configure"
     3775cat >conftest.$ac_ext <<_ACEOF
     3776#line 3776 "configure"
    22003777#include "confdefs.h"
    22013778#include <stdio.h>
    2202 EOF
     3779
     3780_ACEOF
    22033781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    22043782  egrep "fgetc" >/dev/null 2>&1; then
    2205   rm -rf conftest*
    2206   cat >> confdefs.h <<\EOF
     3783  cat >>confdefs.h <<\EOF
    22073784#define HAVE_FGETC_DECL 1
    22083785EOF
     
    22113788rm -f conftest*
    22123789
    2213 cat > conftest.$ac_ext <<EOF
    2214 #line 2215 "configure"
     3790cat >conftest.$ac_ext <<_ACEOF
     3791#line 3791 "configure"
    22153792#include "confdefs.h"
    22163793#include <sys/procfs.h>
    2217 EOF
     3794
     3795_ACEOF
    22183796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    22193797  egrep "pr_brksize" >/dev/null 2>&1; then
    2220   rm -rf conftest*
    2221   cat >> confdefs.h <<\EOF
     3798  cat >>confdefs.h <<\EOF
    22223799#define HAVE_PR_BRKSIZE 1
    22233800EOF
     
    22253802fi
    22263803rm -f conftest*
    2227 
    22283804
    22293805# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    22303806# for constant arguments.  Useless!
    2231 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2232 echo "configure:2233: checking for working alloca.h" >&5
    2233 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2234   echo $ac_n "(cached) $ac_c" 1>&6
    2235 else
    2236   cat > conftest.$ac_ext <<EOF
    2237 #line 2238 "configure"
     3807echo "$as_me:3807: checking for working alloca.h" >&5
     3808echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     3809if test "${ac_cv_working_alloca_h+set}" = set; then
     3810  echo $ECHO_N "(cached) $ECHO_C" >&6
     3811else
     3812  cat >conftest.$ac_ext <<_ACEOF
     3813#line 3813 "configure"
    22383814#include "confdefs.h"
    22393815#include <alloca.h>
    2240 int main() {
    2241 char *p = alloca(2 * sizeof(int));
    2242 ; return 0; }
    2243 EOF
    2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2245   rm -rf conftest*
    2246   ac_cv_header_alloca_h=yes
    2247 else
    2248   echo "configure: failed program was:" >&5
    2249   cat conftest.$ac_ext >&5
    2250   rm -rf conftest*
    2251   ac_cv_header_alloca_h=no
    2252 fi
    2253 rm -f conftest*
    2254 fi
    2255 
    2256 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2257 if test $ac_cv_header_alloca_h = yes; then
    2258   cat >> confdefs.h <<\EOF
     3816int
     3817main ()
     3818{
     3819char *p = (char *) alloca (2 * sizeof (int));
     3820  ;
     3821  return 0;
     3822}
     3823_ACEOF
     3824rm -f conftest.$ac_objext conftest$ac_exeext
     3825if { (eval echo "$as_me:3825: \"$ac_link\"") >&5
     3826  (eval $ac_link) 2>&5
     3827  ac_status=$?
     3828  echo "$as_me:3828: \$? = $ac_status" >&5
     3829  (exit $ac_status); } &&
     3830         { ac_try='test -s conftest$ac_exeext'
     3831  { (eval echo "$as_me:3831: \"$ac_try\"") >&5
     3832  (eval $ac_try) 2>&5
     3833  ac_status=$?
     3834  echo "$as_me:3834: \$? = $ac_status" >&5
     3835  (exit $ac_status); }; }; then
     3836  ac_cv_working_alloca_h=yes
     3837else
     3838  echo "$as_me: failed program was:" >&5
     3839cat conftest.$ac_ext >&5
     3840ac_cv_working_alloca_h=no
     3841fi
     3842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3843fi
     3844echo "$as_me:3844: result: $ac_cv_working_alloca_h" >&5
     3845echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     3846if test $ac_cv_working_alloca_h = yes; then
     3847
     3848cat >>confdefs.h <<\EOF
    22593849#define HAVE_ALLOCA_H 1
    22603850EOF
     
    22623852fi
    22633853
    2264 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2265 echo "configure:2266: checking for alloca" >&5
    2266 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2267   echo $ac_n "(cached) $ac_c" 1>&6
    2268 else
    2269   cat > conftest.$ac_ext <<EOF
    2270 #line 2271 "configure"
    2271 #include "confdefs.h"
    2272 
     3854echo "$as_me:3854: checking for alloca" >&5
     3855echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     3856if test "${ac_cv_func_alloca_works+set}" = set; then
     3857  echo $ECHO_N "(cached) $ECHO_C" >&6
     3858else
     3859  cat >conftest.$ac_ext <<_ACEOF
     3860#line 3860 "configure"
     3861#include "confdefs.h"
    22733862#ifdef __GNUC__
    22743863# define alloca __builtin_alloca
     
    22923881#endif
    22933882
    2294 int main() {
    2295 char *p = (char *) alloca(1);
    2296 ; return 0; }
    2297 EOF
    2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2299   rm -rf conftest*
     3883int
     3884main ()
     3885{
     3886char *p = (char *) alloca (1);
     3887  ;
     3888  return 0;
     3889}
     3890_ACEOF
     3891rm -f conftest.$ac_objext conftest$ac_exeext
     3892if { (eval echo "$as_me:3892: \"$ac_link\"") >&5
     3893  (eval $ac_link) 2>&5
     3894  ac_status=$?
     3895  echo "$as_me:3895: \$? = $ac_status" >&5
     3896  (exit $ac_status); } &&
     3897         { ac_try='test -s conftest$ac_exeext'
     3898  { (eval echo "$as_me:3898: \"$ac_try\"") >&5
     3899  (eval $ac_try) 2>&5
     3900  ac_status=$?
     3901  echo "$as_me:3901: \$? = $ac_status" >&5
     3902  (exit $ac_status); }; }; then
    23003903  ac_cv_func_alloca_works=yes
    23013904else
    2302   echo "configure: failed program was:" >&5
    2303   cat conftest.$ac_ext >&5
    2304   rm -rf conftest*
    2305   ac_cv_func_alloca_works=no
    2306 fi
    2307 rm -f conftest*
    2308 fi
    2309 
    2310 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     3905  echo "$as_me: failed program was:" >&5
     3906cat conftest.$ac_ext >&5
     3907ac_cv_func_alloca_works=no
     3908fi
     3909rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3910fi
     3911echo "$as_me:3911: result: $ac_cv_func_alloca_works" >&5
     3912echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     3913
    23113914if test $ac_cv_func_alloca_works = yes; then
    2312   cat >> confdefs.h <<\EOF
     3915
     3916cat >>confdefs.h <<\EOF
    23133917#define HAVE_ALLOCA 1
    23143918EOF
    23153919
    2316 fi
    2317 
    2318 if test $ac_cv_func_alloca_works = no; then
     3920else
    23193921  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    2320   # that cause trouble.  Some versions do not even contain alloca or
    2321   # contain a buggy version.  If you still want to use their alloca,
    2322   # use ar to extract alloca.o from them instead of compiling alloca.c.
    2323   ALLOCA=alloca.${ac_objext}
    2324   cat >> confdefs.h <<\EOF
     3922# that cause trouble.  Some versions do not even contain alloca or
     3923# contain a buggy version.  If you still want to use their alloca,
     3924# use ar to extract alloca.o from them instead of compiling alloca.c.
     3925
     3926ALLOCA=alloca.$ac_objext
     3927
     3928cat >>confdefs.h <<\EOF
    23253929#define C_ALLOCA 1
    23263930EOF
    23273931
    2328 
    2329 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2330 echo "configure:2331: checking whether alloca needs Cray hooks" >&5
    2331 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2332   echo $ac_n "(cached) $ac_c" 1>&6
    2333 else
    2334   cat > conftest.$ac_ext <<EOF
    2335 #line 2336 "configure"
     3932echo "$as_me:3932: checking whether \`alloca.c' needs Cray hooks" >&5
     3933echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     3934if test "${ac_cv_os_cray+set}" = set; then
     3935  echo $ECHO_N "(cached) $ECHO_C" >&6
     3936else
     3937  cat >conftest.$ac_ext <<_ACEOF
     3938#line 3938 "configure"
    23363939#include "confdefs.h"
    23373940#if defined(CRAY) && ! defined(CRAY2)
     
    23413944#endif
    23423945
    2343 EOF
     3946_ACEOF
    23443947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    23453948  egrep "webecray" >/dev/null 2>&1; then
    2346   rm -rf conftest*
    23473949  ac_cv_os_cray=yes
    23483950else
    2349   rm -rf conftest*
    23503951  ac_cv_os_cray=no
    23513952fi
     
    23533954
    23543955fi
    2355 
    2356 echo "$ac_t""$ac_cv_os_cray" 1>&6
     3956echo "$as_me:3956: result: $ac_cv_os_cray" >&5
     3957echo "${ECHO_T}$ac_cv_os_cray" >&6
    23573958if test $ac_cv_os_cray = yes; then
    2358 for ac_func in _getb67 GETB67 getb67; do
    2359   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2360 echo "configure:2361: checking for $ac_func" >&5
    2361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2362   echo $ac_n "(cached) $ac_c" 1>&6
    2363 else
    2364   cat > conftest.$ac_ext <<EOF
    2365 #line 2366 "configure"
     3959  for ac_func in _getb67 GETB67 getb67; do
     3960    ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     3961echo "$as_me:3961: checking for $ac_func" >&5
     3962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     3963if eval "test \"\${$ac_ac_var+set}\" = set"; then
     3964  echo $ECHO_N "(cached) $ECHO_C" >&6
     3965else
     3966  cat >conftest.$ac_ext <<_ACEOF
     3967#line 3967 "configure"
    23663968#include "confdefs.h"
    23673969/* System header to define __stub macros and hopefully few prototypes,
    2368     which can conflict with char $ac_func(); below.  */
     3970    which can conflict with char $ac_func (); below.  */
    23693971#include <assert.h>
    23703972/* Override any gcc2 internal prototype to avoid an error.  */
     3973#ifdef __cplusplus
     3974extern "C"
     3975#endif
    23713976/* We use char because int might match the return type of a gcc2
    2372     builtin and then its argument prototype would still apply.  */
    2373 char $ac_func();
    2374 
    2375 int main() {
    2376 
     3977   builtin and then its argument prototype would still apply.  */
     3978char $ac_func ();
     3979char (*f) ();
     3980
     3981int
     3982main ()
     3983{
    23773984/* The GNU C library defines this for functions which it implements
    23783985    to always fail with ENOSYS.  Some functions are actually named
     
    23813988choke me
    23823989#else
    2383 $ac_func();
     3990f = $ac_func;
    23843991#endif
    23853992
    2386 ; return 0; }
    2387 EOF
    2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2389   rm -rf conftest*
    2390   eval "ac_cv_func_$ac_func=yes"
    2391 else
    2392   echo "configure: failed program was:" >&5
    2393   cat conftest.$ac_ext >&5
    2394   rm -rf conftest*
    2395   eval "ac_cv_func_$ac_func=no"
    2396 fi
    2397 rm -f conftest*
    2398 fi
    2399 
    2400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2401   echo "$ac_t""yes" 1>&6
    2402   cat >> confdefs.h <<EOF
     3993  ;
     3994  return 0;
     3995}
     3996_ACEOF
     3997rm -f conftest.$ac_objext conftest$ac_exeext
     3998if { (eval echo "$as_me:3998: \"$ac_link\"") >&5
     3999  (eval $ac_link) 2>&5
     4000  ac_status=$?
     4001  echo "$as_me:4001: \$? = $ac_status" >&5
     4002  (exit $ac_status); } &&
     4003         { ac_try='test -s conftest$ac_exeext'
     4004  { (eval echo "$as_me:4004: \"$ac_try\"") >&5
     4005  (eval $ac_try) 2>&5
     4006  ac_status=$?
     4007  echo "$as_me:4007: \$? = $ac_status" >&5
     4008  (exit $ac_status); }; }; then
     4009  eval "$ac_ac_var=yes"
     4010else
     4011  echo "$as_me: failed program was:" >&5
     4012cat conftest.$ac_ext >&5
     4013eval "$ac_ac_var=no"
     4014fi
     4015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4016fi
     4017echo "$as_me:4017: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4018echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4019if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4020
     4021cat >>confdefs.h <<EOF
    24034022#define CRAY_STACKSEG_END $ac_func
    24044023EOF
    24054024
    2406   break
    2407 else
    2408   echo "$ac_t""no" 1>&6
    2409 fi
    2410 
    2411 done
    2412 fi
    2413 
    2414 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2415 echo "configure:2416: checking stack direction for C alloca" >&5
    2416 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    2417   echo $ac_n "(cached) $ac_c" 1>&6
     4025    break
     4026fi
     4027
     4028  done
     4029fi
     4030
     4031echo "$as_me:4031: checking stack direction for C alloca" >&5
     4032echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
     4033if test "${ac_cv_c_stack_direction+set}" = set; then
     4034  echo $ECHO_N "(cached) $ECHO_C" >&6
    24184035else
    24194036  if test "$cross_compiling" = yes; then
    24204037  ac_cv_c_stack_direction=0
    24214038else
    2422   cat > conftest.$ac_ext <<EOF
    2423 #line 2424 "configure"
    2424 #include "confdefs.h"
     4039  cat >conftest.$ac_ext <<_ACEOF
     4040#line 4040 "configure"
     4041#include "confdefs.h"
     4042int
    24254043find_stack_direction ()
    24264044{
     
    24354053    return (&dummy > addr) ? 1 : -1;
    24364054}
     4055
     4056int
    24374057main ()
    24384058{
    2439   exit (find_stack_direction() < 0);
     4059  exit (find_stack_direction () < 0);
    24404060}
    2441 EOF
    2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2443 then
     4061_ACEOF
     4062rm -f conftest$ac_exeext
     4063if { (eval echo "$as_me:4063: \"$ac_link\"") >&5
     4064  (eval $ac_link) 2>&5
     4065  ac_status=$?
     4066  echo "$as_me:4066: \$? = $ac_status" >&5
     4067  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4068  { (eval echo "$as_me:4068: \"$ac_try\"") >&5
     4069  (eval $ac_try) 2>&5
     4070  ac_status=$?
     4071  echo "$as_me:4071: \$? = $ac_status" >&5
     4072  (exit $ac_status); }; }; then
    24444073  ac_cv_c_stack_direction=1
    24454074else
    2446   echo "configure: failed program was:" >&5
    2447   cat conftest.$ac_ext >&5
    2448   rm -fr conftest*
    2449   ac_cv_c_stack_direction=-1
    2450 fi
    2451 rm -fr conftest*
    2452 fi
    2453 
    2454 fi
    2455 
    2456 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
    2457 cat >> confdefs.h <<EOF
     4075  echo "$as_me: program exited with status $ac_status" >&5
     4076echo "$as_me: failed program was:" >&5
     4077cat conftest.$ac_ext >&5
     4078ac_cv_c_stack_direction=-1
     4079fi
     4080rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     4081fi
     4082fi
     4083echo "$as_me:4083: result: $ac_cv_c_stack_direction" >&5
     4084echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
     4085
     4086cat >>confdefs.h <<EOF
    24584087#define STACK_DIRECTION $ac_cv_c_stack_direction
    24594088EOF
     
    24614090fi
    24624091
    2463 if test $ac_cv_prog_gcc = yes; then
    2464     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2465 echo "configure:2466: checking whether ${CC-cc} needs -traditional" >&5
    2466 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    2467   echo $ac_n "(cached) $ac_c" 1>&6
     4092if test $ac_cv_c_compiler_gnu = yes; then
     4093    echo "$as_me:4093: checking whether $CC needs -traditional" >&5
     4094echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
     4095if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     4096  echo $ECHO_N "(cached) $ECHO_C" >&6
    24684097else
    24694098    ac_pattern="Autoconf.*'x'"
    2470   cat > conftest.$ac_ext <<EOF
    2471 #line 2472 "configure"
     4099  cat >conftest.$ac_ext <<_ACEOF
     4100#line 4100 "configure"
    24724101#include "confdefs.h"
    24734102#include <sgtty.h>
    24744103Autoconf TIOCGETP
    2475 EOF
     4104_ACEOF
    24764105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    24774106  egrep "$ac_pattern" >/dev/null 2>&1; then
    2478   rm -rf conftest*
    24794107  ac_cv_prog_gcc_traditional=yes
    24804108else
    2481   rm -rf conftest*
    24824109  ac_cv_prog_gcc_traditional=no
    24834110fi
    24844111rm -f conftest*
    24854112
    2486 
    24874113  if test $ac_cv_prog_gcc_traditional = no; then
    2488     cat > conftest.$ac_ext <<EOF
    2489 #line 2490 "configure"
     4114    cat >conftest.$ac_ext <<_ACEOF
     4115#line 4115 "configure"
    24904116#include "confdefs.h"
    24914117#include <termio.h>
    24924118Autoconf TCGETA
    2493 EOF
     4119_ACEOF
    24944120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    24954121  egrep "$ac_pattern" >/dev/null 2>&1; then
    2496   rm -rf conftest*
    24974122  ac_cv_prog_gcc_traditional=yes
    24984123fi
     
    25014126  fi
    25024127fi
    2503 
    2504 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
     4128echo "$as_me:4128: result: $ac_cv_prog_gcc_traditional" >&5
     4129echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    25054130  if test $ac_cv_prog_gcc_traditional = yes; then
    25064131    CC="$CC -traditional"
     
    25084133fi
    25094134
    2510 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2511 echo "configure:2512: checking return type of signal handlers" >&5
    2512 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    2513   echo $ac_n "(cached) $ac_c" 1>&6
    2514 else
    2515   cat > conftest.$ac_ext <<EOF
    2516 #line 2517 "configure"
     4135echo "$as_me:4135: checking return type of signal handlers" >&5
     4136echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
     4137if test "${ac_cv_type_signal+set}" = set; then
     4138  echo $ECHO_N "(cached) $ECHO_C" >&6
     4139else
     4140  cat >conftest.$ac_ext <<_ACEOF
     4141#line 4141 "configure"
    25174142#include "confdefs.h"
    25184143#include <sys/types.h>
    25194144#include <signal.h>
    25204145#ifdef signal
    2521 #undef signal
     4146# undef signal
    25224147#endif
    25234148#ifdef __cplusplus
     
    25274152#endif
    25284153
    2529 int main() {
     4154int
     4155main ()
     4156{
    25304157int i;
    2531 ; return 0; }
    2532 EOF
    2533 if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2534   rm -rf conftest*
     4158  ;
     4159  return 0;
     4160}
     4161_ACEOF
     4162rm -f conftest.$ac_objext
     4163if { (eval echo "$as_me:4163: \"$ac_compile\"") >&5
     4164  (eval $ac_compile) 2>&5
     4165  ac_status=$?
     4166  echo "$as_me:4166: \$? = $ac_status" >&5
     4167  (exit $ac_status); } &&
     4168         { ac_try='test -s conftest.$ac_objext'
     4169  { (eval echo "$as_me:4169: \"$ac_try\"") >&5
     4170  (eval $ac_try) 2>&5
     4171  ac_status=$?
     4172  echo "$as_me:4172: \$? = $ac_status" >&5
     4173  (exit $ac_status); }; }; then
    25354174  ac_cv_type_signal=void
    25364175else
    2537   echo "configure: failed program was:" >&5
    2538   cat conftest.$ac_ext >&5
    2539   rm -rf conftest*
    2540   ac_cv_type_signal=int
    2541 fi
    2542 rm -f conftest*
    2543 fi
    2544 
    2545 echo "$ac_t""$ac_cv_type_signal" 1>&6
    2546 cat >> confdefs.h <<EOF
     4176  echo "$as_me: failed program was:" >&5
     4177cat conftest.$ac_ext >&5
     4178ac_cv_type_signal=int
     4179fi
     4180rm -f conftest.$ac_objext conftest.$ac_ext
     4181fi
     4182echo "$as_me:4182: result: $ac_cv_type_signal" >&5
     4183echo "${ECHO_T}$ac_cv_type_signal" >&6
     4184
     4185cat >>confdefs.h <<EOF
    25474186#define RETSIGTYPE $ac_cv_type_signal
    25484187EOF
    25494188
    2550 
    2551 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2552 echo "configure:2553: checking for vprintf" >&5
    2553 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    2554   echo $ac_n "(cached) $ac_c" 1>&6
    2555 else
    2556   cat > conftest.$ac_ext <<EOF
    2557 #line 2558 "configure"
     4189for ac_func in vprintf
     4190do
     4191ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4192echo "$as_me:4192: checking for $ac_func" >&5
     4193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4194if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4195  echo $ECHO_N "(cached) $ECHO_C" >&6
     4196else
     4197  cat >conftest.$ac_ext <<_ACEOF
     4198#line 4198 "configure"
    25584199#include "confdefs.h"
    25594200/* System header to define __stub macros and hopefully few prototypes,
    2560     which can conflict with char vprintf(); below.  */
     4201    which can conflict with char $ac_func (); below.  */
    25614202#include <assert.h>
    25624203/* Override any gcc2 internal prototype to avoid an error.  */
     4204#ifdef __cplusplus
     4205extern "C"
     4206#endif
    25634207/* We use char because int might match the return type of a gcc2
    2564     builtin and then its argument prototype would still apply.  */
    2565 char vprintf();
    2566 
    2567 int main() {
    2568 
     4208   builtin and then its argument prototype would still apply.  */
     4209char $ac_func ();
     4210char (*f) ();
     4211
     4212int
     4213main ()
     4214{
    25694215/* The GNU C library defines this for functions which it implements
    25704216    to always fail with ENOSYS.  Some functions are actually named
    25714217    something starting with __ and the normal name is an alias.  */
    2572 #if defined (__stub_vprintf) || defined (__stub___vprintf)
     4218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    25734219choke me
    25744220#else
    2575 vprintf();
     4221f = $ac_func;
    25764222#endif
    25774223
    2578 ; return 0; }
    2579 EOF
    2580 if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2581   rm -rf conftest*
    2582   eval "ac_cv_func_vprintf=yes"
    2583 else
    2584   echo "configure: failed program was:" >&5
    2585   cat conftest.$ac_ext >&5
    2586   rm -rf conftest*
    2587   eval "ac_cv_func_vprintf=no"
    2588 fi
    2589 rm -f conftest*
    2590 fi
    2591 
    2592 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    2593   echo "$ac_t""yes" 1>&6
    2594   cat >> confdefs.h <<\EOF
    2595 #define HAVE_VPRINTF 1
    2596 EOF
    2597 
    2598 else
    2599   echo "$ac_t""no" 1>&6
    2600 fi
    2601 
    2602 if test "$ac_cv_func_vprintf" != yes; then
    2603 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2604 echo "configure:2605: checking for _doprnt" >&5
    2605 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    2606   echo $ac_n "(cached) $ac_c" 1>&6
    2607 else
    2608   cat > conftest.$ac_ext <<EOF
    2609 #line 2610 "configure"
     4224  ;
     4225  return 0;
     4226}
     4227_ACEOF
     4228rm -f conftest.$ac_objext conftest$ac_exeext
     4229if { (eval echo "$as_me:4229: \"$ac_link\"") >&5
     4230  (eval $ac_link) 2>&5
     4231  ac_status=$?
     4232  echo "$as_me:4232: \$? = $ac_status" >&5
     4233  (exit $ac_status); } &&
     4234         { ac_try='test -s conftest$ac_exeext'
     4235  { (eval echo "$as_me:4235: \"$ac_try\"") >&5
     4236  (eval $ac_try) 2>&5
     4237  ac_status=$?
     4238  echo "$as_me:4238: \$? = $ac_status" >&5
     4239  (exit $ac_status); }; }; then
     4240  eval "$ac_ac_var=yes"
     4241else
     4242  echo "$as_me: failed program was:" >&5
     4243cat conftest.$ac_ext >&5
     4244eval "$ac_ac_var=no"
     4245fi
     4246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4247fi
     4248echo "$as_me:4248: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4249echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4250if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4251  cat >>confdefs.h <<EOF
     4252#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4253EOF
     4254
     4255echo "$as_me:4255: checking for _doprnt" >&5
     4256echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
     4257if test "${ac_cv_func__doprnt+set}" = set; then
     4258  echo $ECHO_N "(cached) $ECHO_C" >&6
     4259else
     4260  cat >conftest.$ac_ext <<_ACEOF
     4261#line 4261 "configure"
    26104262#include "confdefs.h"
    26114263/* System header to define __stub macros and hopefully few prototypes,
    2612     which can conflict with char _doprnt(); below.  */
     4264    which can conflict with char _doprnt (); below.  */
    26134265#include <assert.h>
    26144266/* Override any gcc2 internal prototype to avoid an error.  */
     4267#ifdef __cplusplus
     4268extern "C"
     4269#endif
    26154270/* We use char because int might match the return type of a gcc2
    2616     builtin and then its argument prototype would still apply.  */
    2617 char _doprnt();
    2618 
    2619 int main() {
    2620 
     4271   builtin and then its argument prototype would still apply.  */
     4272char _doprnt ();
     4273char (*f) ();
     4274
     4275int
     4276main ()
     4277{
    26214278/* The GNU C library defines this for functions which it implements
    26224279    to always fail with ENOSYS.  Some functions are actually named
     
    26254282choke me
    26264283#else
    2627 _doprnt();
     4284f = _doprnt;
    26284285#endif
    26294286
    2630 ; return 0; }
    2631 EOF
    2632 if { (eval echo configure:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2633   rm -rf conftest*
    2634   eval "ac_cv_func__doprnt=yes"
    2635 else
    2636   echo "configure: failed program was:" >&5
    2637   cat conftest.$ac_ext >&5
    2638   rm -rf conftest*
    2639   eval "ac_cv_func__doprnt=no"
    2640 fi
    2641 rm -f conftest*
    2642 fi
    2643 
    2644 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    2645   echo "$ac_t""yes" 1>&6
    2646   cat >> confdefs.h <<\EOF
     4287  ;
     4288  return 0;
     4289}
     4290_ACEOF
     4291rm -f conftest.$ac_objext conftest$ac_exeext
     4292if { (eval echo "$as_me:4292: \"$ac_link\"") >&5
     4293  (eval $ac_link) 2>&5
     4294  ac_status=$?
     4295  echo "$as_me:4295: \$? = $ac_status" >&5
     4296  (exit $ac_status); } &&
     4297         { ac_try='test -s conftest$ac_exeext'
     4298  { (eval echo "$as_me:4298: \"$ac_try\"") >&5
     4299  (eval $ac_try) 2>&5
     4300  ac_status=$?
     4301  echo "$as_me:4301: \$? = $ac_status" >&5
     4302  (exit $ac_status); }; }; then
     4303  ac_cv_func__doprnt=yes
     4304else
     4305  echo "$as_me: failed program was:" >&5
     4306cat conftest.$ac_ext >&5
     4307ac_cv_func__doprnt=no
     4308fi
     4309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4310fi
     4311echo "$as_me:4311: result: $ac_cv_func__doprnt" >&5
     4312echo "${ECHO_T}$ac_cv_func__doprnt" >&6
     4313if test $ac_cv_func__doprnt = yes; then
     4314
     4315cat >>confdefs.h <<\EOF
    26474316#define HAVE_DOPRNT 1
    26484317EOF
    26494318
    2650 else
    2651   echo "$ac_t""no" 1>&6
    2652 fi
    2653 
    2654 fi
     4319fi
     4320
     4321fi
     4322done
    26554323
    26564324for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    26574325do
    2658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2659 echo "configure:2660: checking for $ac_func" >&5
    2660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2661   echo $ac_n "(cached) $ac_c" 1>&6
    2662 else
    2663   cat > conftest.$ac_ext <<EOF
    2664 #line 2665 "configure"
     4326ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4327echo "$as_me:4327: checking for $ac_func" >&5
     4328echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4329if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4330  echo $ECHO_N "(cached) $ECHO_C" >&6
     4331else
     4332  cat >conftest.$ac_ext <<_ACEOF
     4333#line 4333 "configure"
    26654334#include "confdefs.h"
    26664335/* System header to define __stub macros and hopefully few prototypes,
    2667     which can conflict with char $ac_func(); below.  */
     4336    which can conflict with char $ac_func (); below.  */
    26684337#include <assert.h>
    26694338/* Override any gcc2 internal prototype to avoid an error.  */
     4339#ifdef __cplusplus
     4340extern "C"
     4341#endif
    26704342/* We use char because int might match the return type of a gcc2
    2671     builtin and then its argument prototype would still apply.  */
    2672 char $ac_func();
    2673 
    2674 int main() {
    2675 
     4343   builtin and then its argument prototype would still apply.  */
     4344char $ac_func ();
     4345char (*f) ();
     4346
     4347int
     4348main ()
     4349{
    26764350/* The GNU C library defines this for functions which it implements
    26774351    to always fail with ENOSYS.  Some functions are actually named
     
    26804354choke me
    26814355#else
    2682 $ac_func();
     4356f = $ac_func;
    26834357#endif
    26844358
    2685 ; return 0; }
    2686 EOF
    2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2688   rm -rf conftest*
    2689   eval "ac_cv_func_$ac_func=yes"
    2690 else
    2691   echo "configure: failed program was:" >&5
    2692   cat conftest.$ac_ext >&5
    2693   rm -rf conftest*
    2694   eval "ac_cv_func_$ac_func=no"
    2695 fi
    2696 rm -f conftest*
    2697 fi
    2698 
    2699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2700   echo "$ac_t""yes" 1>&6
    2701     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2702   cat >> confdefs.h <<EOF
    2703 #define $ac_tr_func 1
    2704 EOF
    2705  
    2706 else
    2707   echo "$ac_t""no" 1>&6
     4359  ;
     4360  return 0;
     4361}
     4362_ACEOF
     4363rm -f conftest.$ac_objext conftest$ac_exeext
     4364if { (eval echo "$as_me:4364: \"$ac_link\"") >&5
     4365  (eval $ac_link) 2>&5
     4366  ac_status=$?
     4367  echo "$as_me:4367: \$? = $ac_status" >&5
     4368  (exit $ac_status); } &&
     4369         { ac_try='test -s conftest$ac_exeext'
     4370  { (eval echo "$as_me:4370: \"$ac_try\"") >&5
     4371  (eval $ac_try) 2>&5
     4372  ac_status=$?
     4373  echo "$as_me:4373: \$? = $ac_status" >&5
     4374  (exit $ac_status); }; }; then
     4375  eval "$ac_ac_var=yes"
     4376else
     4377  echo "$as_me: failed program was:" >&5
     4378cat conftest.$ac_ext >&5
     4379eval "$ac_ac_var=no"
     4380fi
     4381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4382fi
     4383echo "$as_me:4383: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4384echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4385if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4386  cat >>confdefs.h <<EOF
     4387#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4388EOF
     4389
    27084390fi
    27094391done
     
    27114393for ac_func in ftruncate strstr strcasecmp
    27124394do
    2713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2714 echo "configure:2715: checking for $ac_func" >&5
    2715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2716   echo $ac_n "(cached) $ac_c" 1>&6
    2717 else
    2718   cat > conftest.$ac_ext <<EOF
    2719 #line 2720 "configure"
     4395ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4396echo "$as_me:4396: checking for $ac_func" >&5
     4397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4398if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4399  echo $ECHO_N "(cached) $ECHO_C" >&6
     4400else
     4401  cat >conftest.$ac_ext <<_ACEOF
     4402#line 4402 "configure"
    27204403#include "confdefs.h"
    27214404/* System header to define __stub macros and hopefully few prototypes,
    2722     which can conflict with char $ac_func(); below.  */
     4405    which can conflict with char $ac_func (); below.  */
    27234406#include <assert.h>
    27244407/* Override any gcc2 internal prototype to avoid an error.  */
     4408#ifdef __cplusplus
     4409extern "C"
     4410#endif
    27254411/* We use char because int might match the return type of a gcc2
    2726     builtin and then its argument prototype would still apply.  */
    2727 char $ac_func();
    2728 
    2729 int main() {
    2730 
     4412   builtin and then its argument prototype would still apply.  */
     4413char $ac_func ();
     4414char (*f) ();
     4415
     4416int
     4417main ()
     4418{
    27314419/* The GNU C library defines this for functions which it implements
    27324420    to always fail with ENOSYS.  Some functions are actually named
     
    27354423choke me
    27364424#else
    2737 $ac_func();
     4425f = $ac_func;
    27384426#endif
    27394427
    2740 ; return 0; }
    2741 EOF
    2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2743   rm -rf conftest*
    2744   eval "ac_cv_func_$ac_func=yes"
    2745 else
    2746   echo "configure: failed program was:" >&5
    2747   cat conftest.$ac_ext >&5
    2748   rm -rf conftest*
    2749   eval "ac_cv_func_$ac_func=no"
    2750 fi
    2751 rm -f conftest*
    2752 fi
    2753 
    2754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2755   echo "$ac_t""yes" 1>&6
    2756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2757   cat >> confdefs.h <<EOF
    2758 #define $ac_tr_func 1
    2759 EOF
    2760  
    2761 else
    2762   echo "$ac_t""no" 1>&6
    2763 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
     4428  ;
     4429  return 0;
     4430}
     4431_ACEOF
     4432rm -f conftest.$ac_objext conftest$ac_exeext
     4433if { (eval echo "$as_me:4433: \"$ac_link\"") >&5
     4434  (eval $ac_link) 2>&5
     4435  ac_status=$?
     4436  echo "$as_me:4436: \$? = $ac_status" >&5
     4437  (exit $ac_status); } &&
     4438         { ac_try='test -s conftest$ac_exeext'
     4439  { (eval echo "$as_me:4439: \"$ac_try\"") >&5
     4440  (eval $ac_try) 2>&5
     4441  ac_status=$?
     4442  echo "$as_me:4442: \$? = $ac_status" >&5
     4443  (exit $ac_status); }; }; then
     4444  eval "$ac_ac_var=yes"
     4445else
     4446  echo "$as_me: failed program was:" >&5
     4447cat conftest.$ac_ext >&5
     4448eval "$ac_ac_var=no"
     4449fi
     4450rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4451fi
     4452echo "$as_me:4452: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4453echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4454if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4455  cat >>confdefs.h <<EOF
     4456#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4457EOF
     4458
     4459else
     4460  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
    27644461fi
    27654462done
    27664463
    2767 
    2768 
    2769 
    2770 echo $ac_n "checking for textdomain ""... $ac_c" 1>&6
    2771 echo "configure:2772: checking for textdomain " >&5
    2772 if eval "test \"`echo '$''{'ac_cv_func_textdomain '+set}'`\" = set"; then
    2773   echo $ac_n "(cached) $ac_c" 1>&6
    2774 else
    2775   cat > conftest.$ac_ext <<EOF
    2776 #line 2777 "configure"
     4464echo "$as_me:4464: checking for textdomain" >&5
     4465echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
     4466if test "${ac_cv_func_textdomain+set}" = set; then
     4467  echo $ECHO_N "(cached) $ECHO_C" >&6
     4468else
     4469  cat >conftest.$ac_ext <<_ACEOF
     4470#line 4470 "configure"
    27774471#include "confdefs.h"
    27784472/* System header to define __stub macros and hopefully few prototypes,
     
    27804474#include <assert.h>
    27814475/* Override any gcc2 internal prototype to avoid an error.  */
     4476#ifdef __cplusplus
     4477extern "C"
     4478#endif
    27824479/* We use char because int might match the return type of a gcc2
    2783     builtin and then its argument prototype would still apply.  */
     4480   builtin and then its argument prototype would still apply.  */
    27844481char textdomain ();
    2785 
    2786 int main() {
    2787 
     4482char (*f) ();
     4483
     4484int
     4485main ()
     4486{
    27884487/* The GNU C library defines this for functions which it implements
    27894488    to always fail with ENOSYS.  Some functions are actually named
    27904489    something starting with __ and the normal name is an alias.  */
    2791 #if defined (__stub_textdomain ) || defined (__stub___textdomain )
     4490#if defined (__stub_textdomain) || defined (__stub___textdomain)
    27924491choke me
    27934492#else
    2794 textdomain ();
     4493f = textdomain;
    27954494#endif
    27964495
    2797 ; return 0; }
    2798 EOF
    2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2800   rm -rf conftest*
    2801   eval "ac_cv_func_textdomain =yes"
    2802 else
    2803   echo "configure: failed program was:" >&5
    2804   cat conftest.$ac_ext >&5
    2805   rm -rf conftest*
    2806   eval "ac_cv_func_textdomain =no"
    2807 fi
    2808 rm -f conftest*
    2809 fi
    2810 
    2811 if eval "test \"`echo '$ac_cv_func_'textdomain `\" = yes"; then
    2812   echo "$ac_t""yes" 1>&6
    2813   cat >> confdefs.h <<\EOF
     4496  ;
     4497  return 0;
     4498}
     4499_ACEOF
     4500rm -f conftest.$ac_objext conftest$ac_exeext
     4501if { (eval echo "$as_me:4501: \"$ac_link\"") >&5
     4502  (eval $ac_link) 2>&5
     4503  ac_status=$?
     4504  echo "$as_me:4504: \$? = $ac_status" >&5
     4505  (exit $ac_status); } &&
     4506         { ac_try='test -s conftest$ac_exeext'
     4507  { (eval echo "$as_me:4507: \"$ac_try\"") >&5
     4508  (eval $ac_try) 2>&5
     4509  ac_status=$?
     4510  echo "$as_me:4510: \$? = $ac_status" >&5
     4511  (exit $ac_status); }; }; then
     4512  ac_cv_func_textdomain=yes
     4513else
     4514  echo "$as_me: failed program was:" >&5
     4515cat conftest.$ac_ext >&5
     4516ac_cv_func_textdomain=no
     4517fi
     4518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4519fi
     4520echo "$as_me:4520: result: $ac_cv_func_textdomain" >&5
     4521echo "${ECHO_T}$ac_cv_func_textdomain" >&6
     4522if test $ac_cv_func_textdomain = yes; then
     4523  cat >>confdefs.h <<\EOF
    28144524#define ENABLE_NLS  1
    28154525EOF
    2816  
    2817 else
    2818   echo "$ac_t""no" 1>&6
    2819 fi
    2820 
     4526
     4527fi
    28214528
    28224529# *** Custom checking (based on GNU tar configure.in) ***
    28234530# ---------------------------------------------------------------------------
    2824 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
    2825 echo "configure:2826: checking for HP-UX needing gmalloc" >&5
     4531echo "$as_me:4531: checking for HP-UX needing gmalloc" >&5
     4532echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    28264533if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    2827   echo "$ac_t""yes" 1>&6
     4534  echo "$as_me:4534: result: yes" >&5
     4535echo "${ECHO_T}yes" >&6
    28284536  LIBOBJS="$LIBOBJS gmalloc.o"
    2829   cat >> confdefs.h <<\EOF
     4537  cat >>confdefs.h <<\EOF
    28304538#define HAVE_VALLOC 1
    28314539EOF
    28324540
    28334541else
    2834   echo "$ac_t""no" 1>&6
    2835   for ac_func in valloc
     4542  echo "$as_me:4542: result: no" >&5
     4543echo "${ECHO_T}no" >&6
     4544
     4545for ac_func in valloc
    28364546do
    2837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2838 echo "configure:2839: checking for $ac_func" >&5
    2839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2840   echo $ac_n "(cached) $ac_c" 1>&6
    2841 else
    2842   cat > conftest.$ac_ext <<EOF
    2843 #line 2844 "configure"
     4547ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4548echo "$as_me:4548: checking for $ac_func" >&5
     4549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4550if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4551  echo $ECHO_N "(cached) $ECHO_C" >&6
     4552else
     4553  cat >conftest.$ac_ext <<_ACEOF
     4554#line 4554 "configure"
    28444555#include "confdefs.h"
    28454556/* System header to define __stub macros and hopefully few prototypes,
    2846     which can conflict with char $ac_func(); below.  */
     4557    which can conflict with char $ac_func (); below.  */
    28474558#include <assert.h>
    28484559/* Override any gcc2 internal prototype to avoid an error.  */
     4560#ifdef __cplusplus
     4561extern "C"
     4562#endif
    28494563/* We use char because int might match the return type of a gcc2
    2850     builtin and then its argument prototype would still apply.  */
    2851 char $ac_func();
    2852 
    2853 int main() {
    2854 
     4564   builtin and then its argument prototype would still apply.  */
     4565char $ac_func ();
     4566char (*f) ();
     4567
     4568int
     4569main ()
     4570{
    28554571/* The GNU C library defines this for functions which it implements
    28564572    to always fail with ENOSYS.  Some functions are actually named
     
    28594575choke me
    28604576#else
    2861 $ac_func();
     4577f = $ac_func;
    28624578#endif
    28634579
    2864 ; return 0; }
    2865 EOF
    2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2867   rm -rf conftest*
    2868   eval "ac_cv_func_$ac_func=yes"
    2869 else
    2870   echo "configure: failed program was:" >&5
    2871   cat conftest.$ac_ext >&5
    2872   rm -rf conftest*
    2873   eval "ac_cv_func_$ac_func=no"
    2874 fi
    2875 rm -f conftest*
    2876 fi
    2877 
    2878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2879   echo "$ac_t""yes" 1>&6
    2880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2881   cat >> confdefs.h <<EOF
    2882 #define $ac_tr_func 1
    2883 EOF
    2884  
    2885 else
    2886   echo "$ac_t""no" 1>&6
     4580  ;
     4581  return 0;
     4582}
     4583_ACEOF
     4584rm -f conftest.$ac_objext conftest$ac_exeext
     4585if { (eval echo "$as_me:4585: \"$ac_link\"") >&5
     4586  (eval $ac_link) 2>&5
     4587  ac_status=$?
     4588  echo "$as_me:4588: \$? = $ac_status" >&5
     4589  (exit $ac_status); } &&
     4590         { ac_try='test -s conftest$ac_exeext'
     4591  { (eval echo "$as_me:4591: \"$ac_try\"") >&5
     4592  (eval $ac_try) 2>&5
     4593  ac_status=$?
     4594  echo "$as_me:4594: \$? = $ac_status" >&5
     4595  (exit $ac_status); }; }; then
     4596  eval "$ac_ac_var=yes"
     4597else
     4598  echo "$as_me: failed program was:" >&5
     4599cat conftest.$ac_ext >&5
     4600eval "$ac_ac_var=no"
     4601fi
     4602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4603fi
     4604echo "$as_me:4604: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4605echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4606if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4607  cat >>confdefs.h <<EOF
     4608#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4609EOF
     4610
    28874611fi
    28884612done
     
    28904614fi
    28914615
    2892 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
    2893 echo "configure:2894: checking if malloc debugging is wanted" >&5
     4616echo "$as_me:4616: checking if malloc debugging is wanted" >&5
     4617echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
     4618
    28944619# Check whether --with-dmalloc or --without-dmalloc was given.
    28954620if test "${with_dmalloc+set}" = set; then
    28964621  withval="$with_dmalloc"
    28974622  if test "$withval" = yes; then
    2898   echo "$ac_t""yes" 1>&6
    2899   cat >> confdefs.h <<\EOF
     4623  echo "$as_me:4623: result: yes" >&5
     4624echo "${ECHO_T}yes" >&6
     4625  cat >>confdefs.h <<\EOF
    29004626#define WITH_DMALLOC 1
    29014627EOF
     
    29044630  LDFLAGS="$LDFLAGS -g"
    29054631else
    2906   echo "$ac_t""no" 1>&6
    2907 fi
    2908 else
    2909   echo "$ac_t""no" 1>&6
    2910 fi
    2911 
    2912 
    2913 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
    2914 echo "configure:2915: checking which of rx or regex is wanted" >&5
     4632  echo "$as_me:4632: result: no" >&5
     4633echo "${ECHO_T}no" >&6
     4634fi
     4635else
     4636  echo "$as_me:4636: result: no" >&5
     4637echo "${ECHO_T}no" >&6
     4638fi;
     4639
     4640echo "$as_me:4640: checking which of rx or regex is wanted" >&5
     4641echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
     4642
    29154643# Check whether --with-regex or --without-regex was given.
    29164644if test "${with_regex+set}" = set; then
     
    29184646  if test "$withval" = yes; then
    29194647  ac_with_regex=1
    2920   echo "$ac_t""regex" 1>&6
    2921   cat >> confdefs.h <<\EOF
     4648  echo "$as_me:4648: result: regex" >&5
     4649echo "${ECHO_T}regex" >&6
     4650  cat >>confdefs.h <<\EOF
    29224651#define WITH_REGEX 1
    29234652EOF
     
    29254654  LIBOBJS="$LIBOBJS regex.o"
    29264655fi
    2927 fi
    2928 
     4656fi;
    29294657if test -z "$ac_with_regex"; then
    2930   echo "$ac_t""rx" 1>&6
    2931   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
    2932 echo "configure:2933: checking for re_rx_search" >&5
    2933 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    2934   echo $ac_n "(cached) $ac_c" 1>&6
    2935 else
    2936   cat > conftest.$ac_ext <<EOF
    2937 #line 2938 "configure"
     4658  echo "$as_me:4658: result: rx" >&5
     4659echo "${ECHO_T}rx" >&6
     4660  echo "$as_me:4660: checking for re_rx_search" >&5
     4661echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
     4662if test "${ac_cv_func_re_rx_search+set}" = set; then
     4663  echo $ECHO_N "(cached) $ECHO_C" >&6
     4664else
     4665  cat >conftest.$ac_ext <<_ACEOF
     4666#line 4666 "configure"
    29384667#include "confdefs.h"
    29394668/* System header to define __stub macros and hopefully few prototypes,
    2940     which can conflict with char re_rx_search(); below.  */
     4669    which can conflict with char re_rx_search (); below.  */
    29414670#include <assert.h>
    29424671/* Override any gcc2 internal prototype to avoid an error.  */
     4672#ifdef __cplusplus
     4673extern "C"
     4674#endif
    29434675/* We use char because int might match the return type of a gcc2
    2944     builtin and then its argument prototype would still apply.  */
    2945 char re_rx_search();
    2946 
    2947 int main() {
    2948 
     4676   builtin and then its argument prototype would still apply.  */
     4677char re_rx_search ();
     4678char (*f) ();
     4679
     4680int
     4681main ()
     4682{
    29494683/* The GNU C library defines this for functions which it implements
    29504684    to always fail with ENOSYS.  Some functions are actually named
     
    29534687choke me
    29544688#else
    2955 re_rx_search();
     4689f = re_rx_search;
    29564690#endif
    29574691
    2958 ; return 0; }
    2959 EOF
    2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2961   rm -rf conftest*
    2962   eval "ac_cv_func_re_rx_search=yes"
    2963 else
    2964   echo "configure: failed program was:" >&5
    2965   cat conftest.$ac_ext >&5
    2966   rm -rf conftest*
    2967   eval "ac_cv_func_re_rx_search=no"
    2968 fi
    2969 rm -f conftest*
    2970 fi
    2971 
    2972 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
    2973   echo "$ac_t""yes" 1>&6
     4692  ;
     4693  return 0;
     4694}
     4695_ACEOF
     4696rm -f conftest.$ac_objext conftest$ac_exeext
     4697if { (eval echo "$as_me:4697: \"$ac_link\"") >&5
     4698  (eval $ac_link) 2>&5
     4699  ac_status=$?
     4700  echo "$as_me:4700: \$? = $ac_status" >&5
     4701  (exit $ac_status); } &&
     4702         { ac_try='test -s conftest$ac_exeext'
     4703  { (eval echo "$as_me:4703: \"$ac_try\"") >&5
     4704  (eval $ac_try) 2>&5
     4705  ac_status=$?
     4706  echo "$as_me:4706: \$? = $ac_status" >&5
     4707  (exit $ac_status); }; }; then
     4708  ac_cv_func_re_rx_search=yes
     4709else
     4710  echo "$as_me: failed program was:" >&5
     4711cat conftest.$ac_ext >&5
     4712ac_cv_func_re_rx_search=no
     4713fi
     4714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4715fi
     4716echo "$as_me:4716: result: $ac_cv_func_re_rx_search" >&5
     4717echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
     4718if test $ac_cv_func_re_rx_search = yes; then
    29744719  :
    29754720else
    2976   echo "$ac_t""no" 1>&6
    2977 echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6
    2978 echo "configure:2979: checking size of unsigned char *" >&5
    2979 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then
    2980   echo $ac_n "(cached) $ac_c" 1>&6
    2981 else
     4721  echo "$as_me:4721: checking for unsigned char *" >&5
     4722echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
     4723if test "${ac_cv_type_unsigned_char_p+set}" = set; then
     4724  echo $ECHO_N "(cached) $ECHO_C" >&6
     4725else
     4726  cat >conftest.$ac_ext <<_ACEOF
     4727#line 4727 "configure"
     4728#include "confdefs.h"
     4729$ac_includes_default
     4730int
     4731main ()
     4732{
     4733if ((unsigned char * *) 0)
     4734  return 0;
     4735if (sizeof (unsigned char *))
     4736  return 0;
     4737  ;
     4738  return 0;
     4739}
     4740_ACEOF
     4741rm -f conftest.$ac_objext
     4742if { (eval echo "$as_me:4742: \"$ac_compile\"") >&5
     4743  (eval $ac_compile) 2>&5
     4744  ac_status=$?
     4745  echo "$as_me:4745: \$? = $ac_status" >&5
     4746  (exit $ac_status); } &&
     4747         { ac_try='test -s conftest.$ac_objext'
     4748  { (eval echo "$as_me:4748: \"$ac_try\"") >&5
     4749  (eval $ac_try) 2>&5
     4750  ac_status=$?
     4751  echo "$as_me:4751: \$? = $ac_status" >&5
     4752  (exit $ac_status); }; }; then
     4753  ac_cv_type_unsigned_char_p=yes
     4754else
     4755  echo "$as_me: failed program was:" >&5
     4756cat conftest.$ac_ext >&5
     4757ac_cv_type_unsigned_char_p=no
     4758fi
     4759rm -f conftest.$ac_objext conftest.$ac_ext
     4760fi
     4761echo "$as_me:4761: result: $ac_cv_type_unsigned_char_p" >&5
     4762echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
     4763
     4764echo "$as_me:4764: checking size of unsigned char *" >&5
     4765echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
     4766if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
     4767  echo $ECHO_N "(cached) $ECHO_C" >&6
     4768else
     4769  if test "$ac_cv_type_unsigned_char_p" = yes; then
    29824770  if test "$cross_compiling" = yes; then
    2983   ac_cv_sizeof_unsigned_char_p=unsigned char *
    2984 else
    2985   cat > conftest.$ac_ext <<EOF
    2986 #line 2987 "configure"
    2987 #include "confdefs.h"
    2988 #include <stdio.h>
    2989 main()
     4771  # Depending upon the size, compute the lo and hi bounds.
     4772cat >conftest.$ac_ext <<_ACEOF
     4773#line 4773 "configure"
     4774#include "confdefs.h"
     4775$ac_includes_default
     4776int
     4777main ()
    29904778{
    2991   FILE *f=fopen("conftestval", "w");
    2992   if (!f) exit(1);
    2993   fprintf(f, "%d\n", sizeof(unsigned char *));
    2994   exit(0);
     4779int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= 0)]
     4780  ;
     4781  return 0;
    29954782}
    2996 EOF
    2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2998 then
    2999   ac_cv_sizeof_unsigned_char_p=`cat conftestval`
    3000 else
    3001   echo "configure: failed program was:" >&5
    3002   cat conftest.$ac_ext >&5
    3003   rm -fr conftest*
     4783_ACEOF
     4784rm -f conftest.$ac_objext
     4785if { (eval echo "$as_me:4785: \"$ac_compile\"") >&5
     4786  (eval $ac_compile) 2>&5
     4787  ac_status=$?
     4788  echo "$as_me:4788: \$? = $ac_status" >&5
     4789  (exit $ac_status); } &&
     4790         { ac_try='test -s conftest.$ac_objext'
     4791  { (eval echo "$as_me:4791: \"$ac_try\"") >&5
     4792  (eval $ac_try) 2>&5
     4793  ac_status=$?
     4794  echo "$as_me:4794: \$? = $ac_status" >&5
     4795  (exit $ac_status); }; }; then
     4796  ac_lo=0 ac_mid=0
     4797  while :; do
     4798    cat >conftest.$ac_ext <<_ACEOF
     4799#line 4799 "configure"
     4800#include "confdefs.h"
     4801$ac_includes_default
     4802int
     4803main ()
     4804{
     4805int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
     4806  ;
     4807  return 0;
     4808}
     4809_ACEOF
     4810rm -f conftest.$ac_objext
     4811if { (eval echo "$as_me:4811: \"$ac_compile\"") >&5
     4812  (eval $ac_compile) 2>&5
     4813  ac_status=$?
     4814  echo "$as_me:4814: \$? = $ac_status" >&5
     4815  (exit $ac_status); } &&
     4816         { ac_try='test -s conftest.$ac_objext'
     4817  { (eval echo "$as_me:4817: \"$ac_try\"") >&5
     4818  (eval $ac_try) 2>&5
     4819  ac_status=$?
     4820  echo "$as_me:4820: \$? = $ac_status" >&5
     4821  (exit $ac_status); }; }; then
     4822  ac_hi=$ac_mid; break
     4823else
     4824  echo "$as_me: failed program was:" >&5
     4825cat conftest.$ac_ext >&5
     4826ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
     4827fi
     4828rm -f conftest.$ac_objext conftest.$ac_ext
     4829  done
     4830else
     4831  echo "$as_me: failed program was:" >&5
     4832cat conftest.$ac_ext >&5
     4833ac_hi=-1 ac_mid=-1
     4834  while :; do
     4835    cat >conftest.$ac_ext <<_ACEOF
     4836#line 4836 "configure"
     4837#include "confdefs.h"
     4838$ac_includes_default
     4839int
     4840main ()
     4841{
     4842int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= $ac_mid)]
     4843  ;
     4844  return 0;
     4845}
     4846_ACEOF
     4847rm -f conftest.$ac_objext
     4848if { (eval echo "$as_me:4848: \"$ac_compile\"") >&5
     4849  (eval $ac_compile) 2>&5
     4850  ac_status=$?
     4851  echo "$as_me:4851: \$? = $ac_status" >&5
     4852  (exit $ac_status); } &&
     4853         { ac_try='test -s conftest.$ac_objext'
     4854  { (eval echo "$as_me:4854: \"$ac_try\"") >&5
     4855  (eval $ac_try) 2>&5
     4856  ac_status=$?
     4857  echo "$as_me:4857: \$? = $ac_status" >&5
     4858  (exit $ac_status); }; }; then
     4859  ac_lo=$ac_mid; break
     4860else
     4861  echo "$as_me: failed program was:" >&5
     4862cat conftest.$ac_ext >&5
     4863ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
     4864fi
     4865rm -f conftest.$ac_objext conftest.$ac_ext
     4866  done
     4867fi
     4868rm -f conftest.$ac_objext conftest.$ac_ext
     4869# Binary search between lo and hi bounds.
     4870while test "x$ac_lo" != "x$ac_hi"; do
     4871  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     4872  cat >conftest.$ac_ext <<_ACEOF
     4873#line 4873 "configure"
     4874#include "confdefs.h"
     4875$ac_includes_default
     4876int
     4877main ()
     4878{
     4879int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
     4880  ;
     4881  return 0;
     4882}
     4883_ACEOF
     4884rm -f conftest.$ac_objext
     4885if { (eval echo "$as_me:4885: \"$ac_compile\"") >&5
     4886  (eval $ac_compile) 2>&5
     4887  ac_status=$?
     4888  echo "$as_me:4888: \$? = $ac_status" >&5
     4889  (exit $ac_status); } &&
     4890         { ac_try='test -s conftest.$ac_objext'
     4891  { (eval echo "$as_me:4891: \"$ac_try\"") >&5
     4892  (eval $ac_try) 2>&5
     4893  ac_status=$?
     4894  echo "$as_me:4894: \$? = $ac_status" >&5
     4895  (exit $ac_status); }; }; then
     4896  ac_hi=$ac_mid
     4897else
     4898  echo "$as_me: failed program was:" >&5
     4899cat conftest.$ac_ext >&5
     4900ac_lo=`expr $ac_mid + 1`
     4901fi
     4902rm -f conftest.$ac_objext conftest.$ac_ext
     4903done
     4904ac_cv_sizeof_unsigned_char_p=$ac_lo
     4905else
     4906  if test "$cross_compiling" = yes; then
     4907  { { echo "$as_me:4907: error: cannot run test program while cross compiling" >&5
     4908echo "$as_me: error: cannot run test program while cross compiling" >&2;}
     4909   { (exit 1); exit 1; }; }
     4910else
     4911  cat >conftest.$ac_ext <<_ACEOF
     4912#line 4912 "configure"
     4913#include "confdefs.h"
     4914$ac_includes_default
     4915int
     4916main ()
     4917{
     4918FILE *f = fopen ("conftest.val", "w");
     4919if (!f)
     4920  exit (1);
     4921fprintf (f, "%d", (sizeof (unsigned char *)));
     4922fclose (f);
     4923  ;
     4924  return 0;
     4925}
     4926_ACEOF
     4927rm -f conftest$ac_exeext
     4928if { (eval echo "$as_me:4928: \"$ac_link\"") >&5
     4929  (eval $ac_link) 2>&5
     4930  ac_status=$?
     4931  echo "$as_me:4931: \$? = $ac_status" >&5
     4932  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4933  { (eval echo "$as_me:4933: \"$ac_try\"") >&5
     4934  (eval $ac_try) 2>&5
     4935  ac_status=$?
     4936  echo "$as_me:4936: \$? = $ac_status" >&5
     4937  (exit $ac_status); }; }; then
     4938  ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
     4939else
     4940  echo "$as_me: program exited with status $ac_status" >&5
     4941echo "$as_me: failed program was:" >&5
     4942cat conftest.$ac_ext >&5
     4943fi
     4944rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     4945fi
     4946fi
     4947rm -f conftest.val
     4948else
    30044949  ac_cv_sizeof_unsigned_char_p=0
    30054950fi
    3006 rm -fr conftest*
    3007 fi
    3008 
    3009 fi
    3010 echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6
    3011 cat >> confdefs.h <<EOF
     4951fi
     4952echo "$as_me:4952: result: $ac_cv_sizeof_unsigned_char_p" >&5
     4953echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
     4954cat >>confdefs.h <<EOF
    30124955#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
    30134956EOF
    30144957
    3015  
    30164958    if test "$ac_cv_sizeof_unsigned_char_p" = 8
    30174959    then
    3018       echo "configure: warning: I'm forcing you to use regex because I can't
    3019         find a local rx library and the one included with this
    3020         distribution doesn't work on 64-bit machines like yours" 1>&2
     4960      { echo "$as_me:4960: WARNING: I'm forcing you to use regex because I can't
     4961        find a local rx library and the one included with this
     4962        distribution doesn't work on 64-bit machines like yours" >&5
     4963echo "$as_me: WARNING: I'm forcing you to use regex because I can't
     4964        find a local rx library and the one included with this
     4965        distribution doesn't work on 64-bit machines like yours" >&2;}
    30214966      LIBOBJS="$LIBOBJS regex.o"
    30224967    else
    30234968      LIBOBJS="$LIBOBJS rx.o"
    30244969    fi
    3025  
    3026 fi
    3027 
    3028 fi
    3029 
    3030 echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6
    3031 echo "configure:3032: checking whether GNU readline requested" >&5
    3032   # Check whether --with-gnu_readline or --without-gnu_readline was given.
     4970
     4971fi
     4972
     4973fi
     4974
     4975echo "$as_me:4975: checking whether GNU readline requested" >&5
     4976echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
     4977
     4978# Check whether --with-gnu_readline or --without-gnu_readline was given.
    30334979if test "${with_gnu_readline+set}" = set; then
    30344980  withval="$with_gnu_readline"
    30354981  if test "$withval" = yes; then
    3036       echo "$ac_t""yes" 1>&6
     4982      echo "$as_me:4982: result: yes" >&5
     4983echo "${ECHO_T}yes" >&6
    30374984      ac_with_gnu_readline=1
    30384985    else
    3039       echo "$ac_t""no" 1>&6
     4986      echo "$as_me:4986: result: no" >&5
     4987echo "${ECHO_T}no" >&6
    30404988    fi
    30414989else
    3042   echo "$ac_t""no" 1>&6
    3043 fi
    3044 
     4990  echo "$as_me:4990: result: no" >&5
     4991echo "${ECHO_T}no" >&6
     4992fi;
    30454993
    30464994  if test -n "$ac_with_gnu_readline"; then
    3047     ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
    3048 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
    3049 echo "configure:3050: checking for readline/readline.h" >&5
    3050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    3051   echo $ac_n "(cached) $ac_c" 1>&6
    3052 else
    3053   cat > conftest.$ac_ext <<EOF
    3054 #line 3055 "configure"
     4995    echo "$as_me:4995: checking for readline/readline.h" >&5
     4996echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
     4997if test "${ac_cv_header_readline_readline_h+set}" = set; then
     4998  echo $ECHO_N "(cached) $ECHO_C" >&6
     4999else
     5000  cat >conftest.$ac_ext <<_ACEOF
     5001#line 5001 "configure"
    30555002#include "confdefs.h"
    30565003#include <readline/readline.h>
    3057 EOF
    3058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3059 { (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    3061 if test -z "$ac_err"; then
    3062   rm -rf conftest*
    3063   eval "ac_cv_header_$ac_safe=yes"
    3064 else
    3065   echo "$ac_err" >&5
    3066   echo "configure: failed program was:" >&5
     5004_ACEOF
     5005if { (eval echo "$as_me:5005: \"$ac_cpp conftest.$ac_ext\"") >&5
     5006  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5007  ac_status=$?
     5008  egrep -v '^ *\+' conftest.er1 >conftest.err
     5009  rm -f conftest.er1
     5010  cat conftest.err >&5
     5011  echo "$as_me:5011: \$? = $ac_status" >&5
     5012  (exit $ac_status); } >/dev/null; then
     5013  if test -s conftest.err; then
     5014    ac_cpp_err=$ac_c_preproc_warn_flag
     5015  else
     5016    ac_cpp_err=
     5017  fi
     5018else
     5019  ac_cpp_err=yes
     5020fi
     5021if test -z "$ac_cpp_err"; then
     5022  ac_cv_header_readline_readline_h=yes
     5023else
     5024  echo "$as_me: failed program was:" >&5
    30675025  cat conftest.$ac_ext >&5
    3068   rm -rf conftest*
    3069   eval "ac_cv_header_$ac_safe=no"
    3070 fi
    3071 rm -f conftest*
    3072 fi
    3073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    3074   echo "$ac_t""yes" 1>&6
     5026  ac_cv_header_readline_readline_h=no
     5027fi
     5028rm -f conftest.err conftest.$ac_ext
     5029fi
     5030echo "$as_me:5030: result: $ac_cv_header_readline_readline_h" >&5
     5031echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
     5032if test $ac_cv_header_readline_readline_h = yes; then
    30755033  ac_mg_readline_header_found=1
    30765034else
    3077   echo "$ac_t""no" 1>&6
    3078 echo "configure: warning: Can't find GNU readline headers; configuring without \
    3079 GNU readline support" 1>&2
     5035  { echo "$as_me:5035: WARNING: Can't find GNU readline headers; configuring without \
     5036GNU readline support" >&5
     5037echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
     5038GNU readline support" >&2;}
    30805039fi
    30815040
    30825041    if test -n "$ac_mg_readline_header_found"; then
    30835042      # first check whether we can find the readline library itself
    3084       echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
    3085 echo "configure:3086: checking for main in -lreadline" >&5
    3086 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
    3087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    3088   echo $ac_n "(cached) $ac_c" 1>&6
    3089 else
    3090   ac_save_LIBS="$LIBS"
     5043      echo "$as_me:5043: checking for main in -lreadline" >&5
     5044echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
     5045if test "${ac_cv_lib_readline_main+set}" = set; then
     5046  echo $ECHO_N "(cached) $ECHO_C" >&6
     5047else
     5048  ac_check_lib_save_LIBS=$LIBS
    30915049LIBS="-lreadline  $LIBS"
    3092 cat > conftest.$ac_ext <<EOF
    3093 #line 3094 "configure"
    3094 #include "confdefs.h"
    3095 
    3096 int main() {
    3097 main()
    3098 ; return 0; }
    3099 EOF
    3100 if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3101   rm -rf conftest*
    3102   eval "ac_cv_lib_$ac_lib_var=yes"
    3103 else
    3104   echo "configure: failed program was:" >&5
    3105   cat conftest.$ac_ext >&5
    3106   rm -rf conftest*
    3107   eval "ac_cv_lib_$ac_lib_var=no"
    3108 fi
    3109 rm -f conftest*
    3110 LIBS="$ac_save_LIBS"
    3111 
    3112 fi
    3113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    3114   echo "$ac_t""yes" 1>&6
     5050cat >conftest.$ac_ext <<_ACEOF
     5051#line 5051 "configure"
     5052#include "confdefs.h"
     5053
     5054int
     5055main ()
     5056{
     5057main ();
     5058  ;
     5059  return 0;
     5060}
     5061_ACEOF
     5062rm -f conftest.$ac_objext conftest$ac_exeext
     5063if { (eval echo "$as_me:5063: \"$ac_link\"") >&5
     5064  (eval $ac_link) 2>&5
     5065  ac_status=$?
     5066  echo "$as_me:5066: \$? = $ac_status" >&5
     5067  (exit $ac_status); } &&
     5068         { ac_try='test -s conftest$ac_exeext'
     5069  { (eval echo "$as_me:5069: \"$ac_try\"") >&5
     5070  (eval $ac_try) 2>&5
     5071  ac_status=$?
     5072  echo "$as_me:5072: \$? = $ac_status" >&5
     5073  (exit $ac_status); }; }; then
     5074  ac_cv_lib_readline_main=yes
     5075else
     5076  echo "$as_me: failed program was:" >&5
     5077cat conftest.$ac_ext >&5
     5078ac_cv_lib_readline_main=no
     5079fi
     5080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     5081LIBS=$ac_check_lib_save_LIBS
     5082fi
     5083echo "$as_me:5083: result: $ac_cv_lib_readline_main" >&5
     5084echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
     5085if test $ac_cv_lib_readline_main = yes; then
    31155086  ac_mg_readline_lib_found=1
    3116          cat >> confdefs.h <<\EOF
     5087         cat >>confdefs.h <<\EOF
    31175088#define WITH_GNU_READLINE 1
    31185089EOF
     
    31205091         LIBS="$LIBS -lreadline"
    31215092else
    3122   echo "$ac_t""no" 1>&6
    3123 echo "configure: warning: Can't find GNU readline library; configuring without \
    3124 GNU readline support" 1>&2
     5093  { echo "$as_me:5093: WARNING: Can't find GNU readline library; configuring without \
     5094GNU readline support" >&5
     5095echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
     5096GNU readline support" >&2;}
    31255097fi
    31265098
    31275099      if test -n "$ac_mg_readline_lib_found"; then
    3128         # on some systems, readline needs curses.  It is difficult to 
     5100        # on some systems, readline needs curses.  It is difficult to
    31295101        #  determine whether this is necessary on the current system,
    31305102        #  since other undefined symbols can be turned up by an
     
    31325104    #  by mg itself (e.g. xmalloc, xrealloc).  So, if we find libcurses,
    31335105    #  we just bung it on and hope for the best.
    3134     echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
    3135 echo "configure:3136: checking for main in -lcurses" >&5
    3136 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
    3137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    3138   echo $ac_n "(cached) $ac_c" 1>&6
    3139 else
    3140   ac_save_LIBS="$LIBS"
     5106    echo "$as_me:5106: checking for main in -lcurses" >&5
     5107echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
     5108if test "${ac_cv_lib_curses_main+set}" = set; then
     5109  echo $ECHO_N "(cached) $ECHO_C" >&6
     5110else
     5111  ac_check_lib_save_LIBS=$LIBS
    31415112LIBS="-lcurses  $LIBS"
    3142 cat > conftest.$ac_ext <<EOF
    3143 #line 3144 "configure"
    3144 #include "confdefs.h"
    3145 
    3146 int main() {
    3147 main()
    3148 ; return 0; }
    3149 EOF
    3150 if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3151   rm -rf conftest*
    3152   eval "ac_cv_lib_$ac_lib_var=yes"
    3153 else
    3154   echo "configure: failed program was:" >&5
    3155   cat conftest.$ac_ext >&5
    3156   rm -rf conftest*
    3157   eval "ac_cv_lib_$ac_lib_var=no"
    3158 fi
    3159 rm -f conftest*
    3160 LIBS="$ac_save_LIBS"
    3161 
    3162 fi
    3163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    3164   echo "$ac_t""yes" 1>&6
     5113cat >conftest.$ac_ext <<_ACEOF
     5114#line 5114 "configure"
     5115#include "confdefs.h"
     5116
     5117int
     5118main ()
     5119{
     5120main ();
     5121  ;
     5122  return 0;
     5123}
     5124_ACEOF
     5125rm -f conftest.$ac_objext conftest$ac_exeext
     5126if { (eval echo "$as_me:5126: \"$ac_link\"") >&5
     5127  (eval $ac_link) 2>&5
     5128  ac_status=$?
     5129  echo "$as_me:5129: \$? = $ac_status" >&5
     5130  (exit $ac_status); } &&
     5131         { ac_try='test -s conftest$ac_exeext'
     5132  { (eval echo "$as_me:5132: \"$ac_try\"") >&5
     5133  (eval $ac_try) 2>&5
     5134  ac_status=$?
     5135  echo "$as_me:5135: \$? = $ac_status" >&5
     5136  (exit $ac_status); }; }; then
     5137  ac_cv_lib_curses_main=yes
     5138else
     5139  echo "$as_me: failed program was:" >&5
     5140cat conftest.$ac_ext >&5
     5141ac_cv_lib_curses_main=no
     5142fi
     5143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     5144LIBS=$ac_check_lib_save_LIBS
     5145fi
     5146echo "$as_me:5146: result: $ac_cv_lib_curses_main" >&5
     5147echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
     5148if test $ac_cv_lib_curses_main = yes; then
    31655149  LIBS="$LIBS -lcurses"
    3166 else
    3167   echo "$ac_t""no" 1>&6
    31685150fi
    31695151
     
    31725154  fi
    31735155
    3174 
    31755156# ---------------------------------------------------------------------------
    31765157if test "$ac_cv_func_alloca" = 'no'; then
    31775158  LIBOBJS="$LIBOBJS xmalloc.o error.o"
    31785159fi
    3179 
    31805160
    31815161# ---------------------------------------------------------------------------
     
    31845164if test "${enable_override_longlong+set}" = set; then
    31855165  enableval="$enable_override_longlong"
    3186   cat >> confdefs.h <<\EOF
     5166  cat >>confdefs.h <<\EOF
    31875167#define DISABLE_LONG_LONG 1
    31885168EOF
    31895169
    3190 fi
    3191 
     5170fi;
    31925171
    31935172# ---------------------------------------------------------------------------
    31945173
    3195 trap '' 1 2 15
    3196 cat > confcache <<\EOF
     5174ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
     5175ac_config_commands="$ac_config_commands default"
     5176cat >confcache <<\_ACEOF
    31975177# This file is a shell script that caches the results of configure
    31985178# tests run on this system so they can be shared between configure
    3199 # scripts and configure runs.  It is not useful on other systems.
    3200 # If it contains results you don't want to keep, you may remove or edit it.
     5179# scripts and configure runs, see configure's option --config-cache.
     5180# It is not useful on other systems.  If it contains results you don't
     5181# want to keep, you may remove or edit it.
    32015182#
    3202 # By default, configure uses ./config.cache as the cache file,
    3203 # creating it if it does not exist already.  You can give configure
    3204 # the --cache-file=FILE option to use a different cache file; that is
    3205 # what configure does when it calls configure scripts in
    3206 # subdirectories, so they share the cache.
    3207 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    3208 # config.status only pays attention to the cache file if you give it the
    3209 # --recheck option to rerun configure.
     5183# config.status only pays attention to the cache file if you give it
     5184# the --recheck option to rerun configure.
    32105185#
    3211 EOF
     5186# `ac_cv_env_foo' variables (set or unset) will be overriden when
     5187# loading this file, other *unset* `ac_cv_foo' will be assigned the
     5188# following values.
     5189
     5190_ACEOF
     5191
    32125192# The following way of writing the cache mishandles newlines in values,
    32135193# but we know of no workaround that is simple, portable, and efficient.
     
    32155195# Ultrix sh set writes to stderr and can't be redirected directly,
    32165196# and sets the high bit in the cache file unless we assign to the vars.
    3217 (set) 2>&1 |
    3218   case `(ac_space=' '; set | grep ac_space) 2>&1` in
    3219   *ac_space=\ *)
    3220     # `set' does not quote correctly, so add quotes (double-quote substitution
    3221     # turns \\\\ into \\, and sed turns \\ into \).
    3222     sed -n \
    3223       -e "s/'/'\\\\''/g" \
    3224       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    3225     ;;
    3226   *)
    3227     # `set' quotes correctly as required by POSIX, so do not add quotes.
    3228     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    3229     ;;
    3230   esac >> confcache
    3231 if cmp -s $cache_file confcache; then
    3232   :
    3233 else
     5197{
     5198  (set) 2>&1 |
     5199    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     5200    *ac_space=\ *)
     5201      # `set' does not quote correctly, so add quotes (double-quote
     5202      # substitution turns \\\\ into \\, and sed turns \\ into \).
     5203      sed -n \
     5204        "s/'/'\\\\''/g;
     5205          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     5206      ;;
     5207    *)
     5208      # `set' quotes correctly as required by POSIX, so do not add quotes.
     5209      sed -n \
     5210        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     5211      ;;
     5212    esac;
     5213} |
     5214  sed '
     5215     t clear
     5216     : clear
     5217     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     5218     t end
     5219     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     5220     : end' >>confcache
     5221if cmp -s $cache_file confcache; then :; else
    32345222  if test -w $cache_file; then
    3235     echo "updating cache $cache_file"
    3236     cat confcache > $cache_file
     5223    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     5224    cat confcache >$cache_file
    32375225  else
    32385226    echo "not updating unwritable cache $cache_file"
     
    32415229rm -f confcache
    32425230
    3243 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    3244 
    32455231test "x$prefix" = xNONE && prefix=$ac_default_prefix
    32465232# Let make expand exec_prefix.
    32475233test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    32485234
    3249 # Any assignment to VPATH causes Sun make to only execute
    3250 # the first set of double-colon rules, so remove it if not needed.
    3251 # If there is a colon in the path, we need to keep it.
     5235# VPATH may cause trouble with some makes, so we remove $(srcdir),
     5236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     5237# trailing colons and then remove the whole line if VPATH becomes empty
     5238# (actually we leave an empty line to preserve line numbers).
    32525239if test "x$srcdir" = x.; then
    3253   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
    3254 fi
    3255 
    3256 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     5240  ac_vpsub='/^[     ]*VPATH[    ]*=/{
     5241s/:*\$(srcdir):*/:/;
     5242s/:*\${srcdir}:*/:/;
     5243s/:*@srcdir@:*/:/;
     5244s/^\([^=]*=[    ]*\):*/\1/;
     5245s/:*$//;
     5246s/^[^=]*=[  ]*$//;
     5247}'
     5248fi
    32575249
    32585250DEFS=-DHAVE_CONFIG_H
    32595251
    3260 # Without the "./", some shells look in PATH for config.status.
    32615252: ${CONFIG_STATUS=./config.status}
    3262 
    3263 echo creating $CONFIG_STATUS
    3264 rm -f $CONFIG_STATUS
    3265 cat > $CONFIG_STATUS <<EOF
    3266 #! /bin/sh
     5253ac_clean_files_save=$ac_clean_files
     5254ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     5255{ echo "$as_me:5255: creating $CONFIG_STATUS" >&5
     5256echo "$as_me: creating $CONFIG_STATUS" >&6;}
     5257cat >$CONFIG_STATUS <<_ACEOF
     5258#! $SHELL
    32675259# Generated automatically by configure.
    32685260# Run this file to recreate the current configuration.
    3269 # This directory was configured as follows,
    3270 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     5261# Compiler output produced by configure, useful for debugging
     5262# configure, is in config.log if it exists.
     5263
     5264debug=false
     5265SHELL=\${CONFIG_SHELL-$SHELL}
     5266ac_cs_invocation="\$0 \$@"
     5267
     5268_ACEOF
     5269
     5270cat >>$CONFIG_STATUS <<\_ACEOF
     5271# Be Bourne compatible
     5272if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     5273  emulate sh
     5274  NULLCMD=:
     5275elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     5276  set -o posix
     5277fi
     5278
     5279# Name of the executable.
     5280as_me=`echo "$0" |sed 's,.*[\\/],,'`
     5281
     5282if expr a : '\(a\)' >/dev/null 2>&1; then
     5283  as_expr=expr
     5284else
     5285  as_expr=false
     5286fi
     5287
     5288rm -f conf$$ conf$$.exe conf$$.file
     5289echo >conf$$.file
     5290if ln -s conf$$.file conf$$ 2>/dev/null; then
     5291  # We could just check for DJGPP; but this test a) works b) is more generic
     5292  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     5293  if test -f conf$$.exe; then
     5294    # Don't use ln at all; we don't have any links
     5295    as_ln_s='cp -p'
     5296  else
     5297    as_ln_s='ln -s'
     5298  fi
     5299elif ln conf$$.file conf$$ 2>/dev/null; then
     5300  as_ln_s=ln
     5301else
     5302  as_ln_s='cp -p'
     5303fi
     5304rm -f conf$$ conf$$.exe conf$$.file
     5305
     5306as_executable_p="test -f"
     5307
     5308# Support unset when possible.
     5309if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     5310  as_unset=unset
     5311else
     5312  as_unset=false
     5313fi
     5314
     5315# NLS nuisances.
     5316$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     5317$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     5318$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     5319$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     5320$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     5321$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     5322$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     5323$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     5324
     5325# IFS
     5326# We need space, tab and new line, in precisely that order.
     5327as_nl='
     5328'
     5329IFS="   $as_nl"
     5330
     5331# CDPATH.
     5332$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     5333
     5334exec 6>&1
     5335
     5336_ACEOF
     5337
     5338# Files that config.status was made for.
     5339if test -n "$ac_config_files"; then
     5340  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     5341fi
     5342
     5343if test -n "$ac_config_headers"; then
     5344  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     5345fi
     5346
     5347if test -n "$ac_config_links"; then
     5348  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     5349fi
     5350
     5351if test -n "$ac_config_commands"; then
     5352  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     5353fi
     5354
     5355cat >>$CONFIG_STATUS <<\EOF
     5356
     5357ac_cs_usage="\
     5358\`$as_me' instantiates files from templates according to the
     5359current configuration.
     5360
     5361Usage: $0 [OPTIONS] [FILE]...
     5362
     5363  -h, --help       print this help, then exit
     5364  -V, --version    print version number, then exit
     5365  -d, --debug      don't remove temporary files
     5366      --recheck    update $as_me by reconfiguring in the same conditions
     5367  --file=FILE[:TEMPLATE]
     5368                   instantiate the configuration file FILE
     5369  --header=FILE[:TEMPLATE]
     5370                   instantiate the configuration header FILE
     5371
     5372Configuration files:
     5373$config_files
     5374
     5375Configuration headers:
     5376$config_headers
     5377
     5378Configuration commands:
     5379$config_commands
     5380
     5381Report bugs to <[email protected]>."
     5382EOF
     5383
     5384cat >>$CONFIG_STATUS <<EOF
     5385ac_cs_version="\\
     5386config.status
     5387configured by $0, generated by GNU Autoconf 2.50,
     5388  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     5389
     5390Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     5391Free Software Foundation, Inc.
     5392This config.status script is free software; the Free Software Foundation
     5393gives unlimited permission to copy, distribute and modify it."
     5394srcdir=$srcdir
     5395INSTALL="$INSTALL"
     5396EOF
     5397
     5398cat >>$CONFIG_STATUS <<\EOF
     5399# If no file are specified by the user, then we need to provide default
     5400# value.  By we need to know if files were specified by the user.
     5401ac_need_defaults=:
     5402while test $# != 0
     5403do
     5404  case $1 in
     5405  --*=*)
     5406    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     5407    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     5408    shift
     5409    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
     5410    shift
     5411    ;;
     5412  -*);;
     5413  *) # This is not an option, so the user has probably given explicit
     5414     # arguments.
     5415     ac_need_defaults=false;;
     5416  esac
     5417
     5418  case $1 in
     5419  # Handling of the options.
     5420EOF
     5421cat >>$CONFIG_STATUS <<EOF
     5422  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     5423    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
     5424    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
     5425EOF
     5426cat >>$CONFIG_STATUS <<\EOF
     5427  --version | --vers* | -V )
     5428    echo "$ac_cs_version"; exit 0 ;;
     5429  --he | --h)
     5430    # Conflict between --help and --header
     5431    { { echo "$as_me:5431: error: ambiguous option: $1
     5432Try \`$0 --help' for more information." >&5
     5433echo "$as_me: error: ambiguous option: $1
     5434Try \`$0 --help' for more information." >&2;}
     5435   { (exit 1); exit 1; }; };;
     5436  --help | --hel | -h )
     5437    echo "$ac_cs_usage"; exit 0 ;;
     5438  --debug | --d* | -d )
     5439    debug=: ;;
     5440  --file | --fil | --fi | --f )
     5441    shift
     5442    CONFIG_FILES="$CONFIG_FILES $1"
     5443    ac_need_defaults=false;;
     5444  --header | --heade | --head | --hea )
     5445    shift
     5446    CONFIG_HEADERS="$CONFIG_HEADERS $1"
     5447    ac_need_defaults=false;;
     5448
     5449  # Handling of arguments.
     5450  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     5451  'text/Makefile' ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
     5452  'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     5453  'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
     5454  'java/org/greenstone/mgpp/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
     5455  'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     5456  'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     5457
     5458  # This is an error.
     5459  -*) { { echo "$as_me:5459: error: unrecognized option: $1
     5460Try \`$0 --help' for more information." >&5
     5461echo "$as_me: error: unrecognized option: $1
     5462Try \`$0 --help' for more information." >&2;}
     5463   { (exit 1); exit 1; }; } ;;
     5464  *) { { echo "$as_me:5464: error: invalid argument: $1" >&5
     5465echo "$as_me: error: invalid argument: $1" >&2;}
     5466   { (exit 1); exit 1; }; };;
     5467  esac
     5468  shift
     5469done
     5470
     5471exec 5>>config.log
     5472cat >&5 << _ACEOF
     5473
     5474## ----------------------- ##
     5475## Running config.status.  ##
     5476## ----------------------- ##
     5477
     5478This file was extended by $as_me 2.50, executed with
     5479  > $ac_cs_invocation
     5480on `(hostname || uname -n) 2>/dev/null | sed 1q`
     5481
     5482_ACEOF
     5483EOF
     5484
     5485cat >>$CONFIG_STATUS <<\EOF
     5486# If the user did not use the arguments to specify the items to instantiate,
     5487# then the envvar interface is used.  Set only those that are not.
     5488# We use the long form for the default assignment because of an extremely
     5489# bizarre bug on SunOS 4.1.3.
     5490if $ac_need_defaults; then
     5491  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     5492  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     5493  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
     5494fi
     5495
     5496# Create a temporary directory, and hook for its removal unless debugging.
     5497$debug ||
     5498{
     5499  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     5500  trap '{ (exit $?); exit $?; }' 1 2 13 15
     5501}
     5502
     5503# Create a (secure) tmp directory for tmp files.
     5504: ${TMPDIR=/tmp}
     5505{
     5506  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
     5507  test -n "$tmp" && test -d "$tmp"
     5508}  ||
     5509{
     5510  tmp=$TMPDIR/cs$$-$RANDOM
     5511  (umask 077 && mkdir $tmp)
     5512} ||
     5513{
     5514   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     5515   { (exit 1); exit 1; }
     5516}
     5517
     5518EOF
     5519
     5520cat >>$CONFIG_STATUS <<EOF
     5521
    32715522#
    3272 # $0 $ac_configure_args
     5523# CONFIG_FILES section.
    32735524#
    3274 # Compiler output produced by configure, useful for debugging
    3275 # configure, is in ./config.log if it exists.
    3276 
    3277 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    3278 for ac_option
    3279 do
    3280   case "\$ac_option" in
    3281   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    3282     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    3283     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    3284   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    3285     echo "$CONFIG_STATUS generated by autoconf version 2.13"
    3286     exit 0 ;;
    3287   -help | --help | --hel | --he | --h)
    3288     echo "\$ac_cs_usage"; exit 0 ;;
    3289   *) echo "\$ac_cs_usage"; exit 1 ;;
     5525
     5526# No need to generate the scripts if there are no CONFIG_FILES.
     5527# This happens for instance when ./config.status config.h
     5528if test -n "\$CONFIG_FILES"; then
     5529  # Protect against being on the right side of a sed subst in config.status.
     5530  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     5531   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     5532s,@SHELL@,$SHELL,;t t
     5533s,@exec_prefix@,$exec_prefix,;t t
     5534s,@prefix@,$prefix,;t t
     5535s,@program_transform_name@,$program_transform_name,;t t
     5536s,@bindir@,$bindir,;t t
     5537s,@sbindir@,$sbindir,;t t
     5538s,@libexecdir@,$libexecdir,;t t
     5539s,@datadir@,$datadir,;t t
     5540s,@sysconfdir@,$sysconfdir,;t t
     5541s,@sharedstatedir@,$sharedstatedir,;t t
     5542s,@localstatedir@,$localstatedir,;t t
     5543s,@libdir@,$libdir,;t t
     5544s,@includedir@,$includedir,;t t
     5545s,@oldincludedir@,$oldincludedir,;t t
     5546s,@infodir@,$infodir,;t t
     5547s,@mandir@,$mandir,;t t
     5548s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     5549s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     5550s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     5551s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     5552s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     5553s,@ECHO_C@,$ECHO_C,;t t
     5554s,@ECHO_N@,$ECHO_N,;t t
     5555s,@ECHO_T@,$ECHO_T,;t t
     5556s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     5557s,@DEFS@,$DEFS,;t t
     5558s,@LIBS@,$LIBS,;t t
     5559s,@PACKAGE@,$PACKAGE,;t t
     5560s,@VERSION@,$VERSION,;t t
     5561s,@CXX@,$CXX,;t t
     5562s,@CXXFLAGS@,$CXXFLAGS,;t t
     5563s,@LDFLAGS@,$LDFLAGS,;t t
     5564s,@CPPFLAGS@,$CPPFLAGS,;t t
     5565s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     5566s,@EXEEXT@,$EXEEXT,;t t
     5567s,@OBJEXT@,$OBJEXT,;t t
     5568s,@AWK@,$AWK,;t t
     5569s,@YACC@,$YACC,;t t
     5570s,@CC@,$CC,;t t
     5571s,@CFLAGS@,$CFLAGS,;t t
     5572s,@ac_ct_CC@,$ac_ct_CC,;t t
     5573s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     5574s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     5575s,@INSTALL_DATA@,$INSTALL_DATA,;t t
     5576s,@LN_S@,$LN_S,;t t
     5577s,@SET_MAKE@,$SET_MAKE,;t t
     5578s,@RANLIB@,$RANLIB,;t t
     5579s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
     5580s,@CPP@,$CPP,;t t
     5581s,@U@,$U,;t t
     5582s,@ANSI2KNR@,$ANSI2KNR,;t t
     5583s,@ALLOCA@,$ALLOCA,;t t
     5584s,@LIBOBJS@,$LIBOBJS,;t t
     5585CEOF
     5586
     5587EOF
     5588
     5589  cat >>$CONFIG_STATUS <<\EOF
     5590  # Split the substitutions into bite-sized pieces for seds with
     5591  # small command number limits, like on Digital OSF/1 and HP-UX.
     5592  ac_max_sed_lines=48
     5593  ac_sed_frag=1 # Number of current file.
     5594  ac_beg=1 # First line for current file.
     5595  ac_end=$ac_max_sed_lines # Line after last line for current file.
     5596  ac_more_lines=:
     5597  ac_sed_cmds=
     5598  while $ac_more_lines; do
     5599    if test $ac_beg -gt 1; then
     5600      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     5601    else
     5602      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     5603    fi
     5604    if test ! -s $tmp/subs.frag; then
     5605      ac_more_lines=false
     5606    else
     5607      # The purpose of the label and of the branching condition is to
     5608      # speed up the sed processing (if there are no `@' at all, there
     5609      # is no need to browse any of the substitutions).
     5610      # These are the two extra sed commands mentioned above.
     5611      (echo ':t
     5612  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     5613      if test -z "$ac_sed_cmds"; then
     5614    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     5615      else
     5616    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     5617      fi
     5618      ac_sed_frag=`expr $ac_sed_frag + 1`
     5619      ac_beg=$ac_end
     5620      ac_end=`expr $ac_end + $ac_max_sed_lines`
     5621    fi
     5622  done
     5623  if test -z "$ac_sed_cmds"; then
     5624    ac_sed_cmds=cat
     5625  fi
     5626fi # test -n "$CONFIG_FILES"
     5627
     5628EOF
     5629cat >>$CONFIG_STATUS <<\EOF
     5630for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     5631  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     5632  case $ac_file in
     5633  - | *:- | *:-:* ) # input from stdin
     5634        cat >$tmp/stdin
     5635        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5636        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5637  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5638        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5639  * )   ac_file_in=$ac_file.in ;;
    32905640  esac
    3291 done
    3292 
    3293 ac_given_srcdir=$srcdir
    3294 ac_given_INSTALL="$INSTALL"
    3295 
    3296 trap 'rm -fr `echo "Makefile text/Makefile lib/Makefile
    3297    jni/Makefile java/org/greenstone/mgpp/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    3298 EOF
    3299 cat >> $CONFIG_STATUS <<EOF
    3300 
    3301 # Protect against being on the right side of a sed subst in config.status.
    3302 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    3303  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    3304 $ac_vpsub
    3305 $extrasub
    3306 s%@SHELL@%$SHELL%g
    3307 s%@CFLAGS@%$CFLAGS%g
    3308 s%@CPPFLAGS@%$CPPFLAGS%g
    3309 s%@CXXFLAGS@%$CXXFLAGS%g
    3310 s%@FFLAGS@%$FFLAGS%g
    3311 s%@DEFS@%$DEFS%g
    3312 s%@LDFLAGS@%$LDFLAGS%g
    3313 s%@LIBS@%$LIBS%g
    3314 s%@exec_prefix@%$exec_prefix%g
    3315 s%@prefix@%$prefix%g
    3316 s%@program_transform_name@%$program_transform_name%g
    3317 s%@bindir@%$bindir%g
    3318 s%@sbindir@%$sbindir%g
    3319 s%@libexecdir@%$libexecdir%g
    3320 s%@datadir@%$datadir%g
    3321 s%@sysconfdir@%$sysconfdir%g
    3322 s%@sharedstatedir@%$sharedstatedir%g
    3323 s%@localstatedir@%$localstatedir%g
    3324 s%@libdir@%$libdir%g
    3325 s%@includedir@%$includedir%g
    3326 s%@oldincludedir@%$oldincludedir%g
    3327 s%@infodir@%$infodir%g
    3328 s%@mandir@%$mandir%g
    3329 s%@PACKAGE@%$PACKAGE%g
    3330 s%@VERSION@%$VERSION%g
    3331 s%@CXX@%$CXX%g
    3332 s%@AWK@%$AWK%g
    3333 s%@YACC@%$YACC%g
    3334 s%@CC@%$CC%g
    3335 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    3336 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    3337 s%@INSTALL_DATA@%$INSTALL_DATA%g
    3338 s%@LN_S@%$LN_S%g
    3339 s%@SET_MAKE@%$SET_MAKE%g
    3340 s%@RANLIB@%$RANLIB%g
    3341 s%@CPP@%$CPP%g
    3342 s%@U@%$U%g
    3343 s%@ANSI2KNR@%$ANSI2KNR%g
    3344 s%@ALLOCA@%$ALLOCA%g
    3345 s%@LIBOBJS@%$LIBOBJS%g
    3346 
    3347 CEOF
    3348 EOF
    3349 
    3350 cat >> $CONFIG_STATUS <<\EOF
    3351 
    3352 # Split the substitutions into bite-sized pieces for seds with
    3353 # small command number limits, like on Digital OSF/1 and HP-UX.
    3354 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    3355 ac_file=1 # Number of current file.
    3356 ac_beg=1 # First line for current file.
    3357 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    3358 ac_more_lines=:
    3359 ac_sed_cmds=""
    3360 while $ac_more_lines; do
    3361   if test $ac_beg -gt 1; then
    3362     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    3363   else
    3364     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    3365   fi
    3366   if test ! -s conftest.s$ac_file; then
    3367     ac_more_lines=false
    3368     rm -f conftest.s$ac_file
    3369   else
    3370     if test -z "$ac_sed_cmds"; then
    3371       ac_sed_cmds="sed -f conftest.s$ac_file"
    3372     else
    3373       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    3374     fi
    3375     ac_file=`expr $ac_file + 1`
    3376     ac_beg=$ac_end
    3377     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    3378   fi
    3379 done
    3380 if test -z "$ac_sed_cmds"; then
    3381   ac_sed_cmds=cat
    3382 fi
    3383 EOF
    3384 
    3385 cat >> $CONFIG_STATUS <<EOF
    3386 
    3387 CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile lib/Makefile
    3388    jni/Makefile java/org/greenstone/mgpp/Makefile"}
    3389 EOF
    3390 cat >> $CONFIG_STATUS <<\EOF
    3391 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    3392   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3393   case "$ac_file" in
    3394   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3395        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3396   *) ac_file_in="${ac_file}.in" ;;
     5641
     5642  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     5643  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     5644         X"$ac_file" : 'X\(//\)[^/]' \| \
     5645         X"$ac_file" : 'X\(//\)$' \| \
     5646         X"$ac_file" : 'X\(/\)' \| \
     5647         .     : '\(.\)' 2>/dev/null ||
     5648echo X"$ac_file" |
     5649    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     5650      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     5651      /^X\(\/\/\)$/{ s//\1/; q; }
     5652      /^X\(\/\).*/{ s//\1/; q; }
     5653      s/.*/./; q'`
     5654  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     5655    { case "$ac_dir" in
     5656  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     5657  *)                      as_incr_dir=.;;
     5658esac
     5659as_dummy="$ac_dir"
     5660for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     5661  case $as_mkdir_dir in
     5662    # Skip DOS drivespec
     5663    ?:) as_incr_dir=$as_mkdir_dir ;;
     5664    *)
     5665      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5666      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5667    ;;
    33975668  esac
    3398 
    3399   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    3400 
    3401   # Remove last slash and all that follows it.  Not all systems have dirname.
    3402   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    3403   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3404     # The file is in a subdirectory.
    3405     test ! -d "$ac_dir" && mkdir "$ac_dir"
    3406     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
     5669done; }
     5670
     5671    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    34075672    # A "../" for each directory in $ac_dir_suffix.
    3408     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
     5673    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
    34095674  else
    34105675    ac_dir_suffix= ac_dots=
    34115676  fi
    34125677
    3413   case "$ac_given_srcdir" in
    3414   .)  srcdir=.
    3415       if test -z "$ac_dots"; then top_srcdir=.
    3416       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    3417   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     5678  case $srcdir in
     5679  .)  ac_srcdir=.
     5680      if test -z "$ac_dots"; then
     5681         ac_top_srcdir=.
     5682      else
     5683         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
     5684      fi ;;
     5685  [\\/]* | ?:[\\/]* )
     5686      ac_srcdir=$srcdir$ac_dir_suffix;
     5687      ac_top_srcdir=$srcdir ;;
    34185688  *) # Relative path.
    3419     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    3420     top_srcdir="$ac_dots$ac_given_srcdir" ;;
     5689    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
     5690    ac_top_srcdir=$ac_dots$srcdir ;;
    34215691  esac
    34225692
    3423   case "$ac_given_INSTALL" in
    3424   [/$]*) INSTALL="$ac_given_INSTALL" ;;
    3425   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     5693  case $INSTALL in
     5694  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
     5695  *) ac_INSTALL=$ac_dots$INSTALL ;;
    34265696  esac
    34275697
    3428   echo creating "$ac_file"
    3429   rm -f "$ac_file"
    3430   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    3431   case "$ac_file" in
    3432   *Makefile*) ac_comsub="1i\\
    3433 # $configure_input" ;;
    3434   *) ac_comsub= ;;
    3435   esac
    3436 
    3437   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3438   sed -e "$ac_comsub
    3439 s%@configure_input@%$configure_input%g
    3440 s%@srcdir@%$srcdir%g
    3441 s%@top_srcdir@%$top_srcdir%g
    3442 s%@INSTALL@%$INSTALL%g
    3443 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    3444 fi; done
    3445 rm -f conftest.s*
     5698  if test x"$ac_file" != x-; then
     5699    { echo "$as_me:5699: creating $ac_file" >&5
     5700echo "$as_me: creating $ac_file" >&6;}
     5701    rm -f "$ac_file"
     5702  fi
     5703  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5704  # use $as_me), people would be surprised to read:
     5705  #    /* config.h.  Generated automatically by config.status.  */
     5706  configure_input="Generated automatically from `echo $ac_file_in |
     5707                                                 sed 's,.*/,,'` by configure."
     5708
     5709  # First look for the input files in the build tree, otherwise in the
     5710  # src tree.
     5711  ac_file_inputs=`IFS=:
     5712    for f in $ac_file_in; do
     5713      case $f in
     5714      -) echo $tmp/stdin ;;
     5715      [\\/$]*)
     5716         # Absolute (can't be DOS-style, as IFS=:)
     5717         test -f "$f" || { { echo "$as_me:5717: error: cannot find input file: $f" >&5
     5718echo "$as_me: error: cannot find input file: $f" >&2;}
     5719   { (exit 1); exit 1; }; }
     5720         echo $f;;
     5721      *) # Relative
     5722         if test -f "$f"; then
     5723           # Build tree
     5724           echo $f
     5725         elif test -f "$srcdir/$f"; then
     5726           # Source tree
     5727           echo $srcdir/$f
     5728         else
     5729           # /dev/null tree
     5730           { { echo "$as_me:5730: error: cannot find input file: $f" >&5
     5731echo "$as_me: error: cannot find input file: $f" >&2;}
     5732   { (exit 1); exit 1; }; }
     5733         fi;;
     5734      esac
     5735    done` || { (exit 1); exit 1; }
     5736EOF
     5737cat >>$CONFIG_STATUS <<EOF
     5738  sed "$ac_vpsub
     5739$extrasub
     5740EOF
     5741cat >>$CONFIG_STATUS <<\EOF
     5742:t
     5743/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     5744s,@configure_input@,$configure_input,;t t
     5745s,@srcdir@,$ac_srcdir,;t t
     5746s,@top_srcdir@,$ac_top_srcdir,;t t
     5747s,@INSTALL@,$ac_INSTALL,;t t
     5748" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     5749  rm -f $tmp/stdin
     5750  if test x"$ac_file" != x-; then
     5751    mv $tmp/out $ac_file
     5752  else
     5753    cat $tmp/out
     5754    rm -f $tmp/out
     5755  fi
     5756
     5757done
     5758EOF
     5759cat >>$CONFIG_STATUS <<\EOF
     5760
     5761#
     5762# CONFIG_HEADER section.
     5763#
    34465764
    34475765# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    34495767#
    34505768# ac_d sets the value in "#define NAME VALUE" lines.
    3451 ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    3452 ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
    3453 ac_dC='\3'
    3454 ac_dD='%g'
    3455 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    3456 ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3457 ac_uB='\([  ]\)%\1#\2define\3'
     5769ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
     5770ac_dB='[    ].*$,\1#\2'
     5771ac_dC=' '
     5772ac_dD=',;t'
     5773# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     5774ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     5775ac_uB='$,\1#\2define\3'
    34585776ac_uC=' '
    3459 ac_uD='\4%g'
    3460 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    3461 ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3462 ac_eB='$%\1#\2define\3'
    3463 ac_eC=' '
    3464 ac_eD='%g'
    3465 
    3466 if test "${CONFIG_HEADERS+set}" != set; then
    3467 EOF
    3468 cat >> $CONFIG_STATUS <<EOF
    3469   CONFIG_HEADERS="config.h"
    3470 EOF
    3471 cat >> $CONFIG_STATUS <<\EOF
    3472 fi
    3473 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     5777ac_uD=',;t'
     5778
     5779for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    34745780  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3475   case "$ac_file" in
    3476   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3477        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3478   *) ac_file_in="${ac_file}.in" ;;
     5781  case $ac_file in
     5782  - | *:- | *:-:* ) # input from stdin
     5783        cat >$tmp/stdin
     5784        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5785        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5786  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5787        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5788  * )   ac_file_in=$ac_file.in ;;
    34795789  esac
    34805790
    3481   echo creating $ac_file
    3482 
    3483   rm -f conftest.frag conftest.in conftest.out
    3484   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3485   cat $ac_file_inputs > conftest.in
    3486 
    3487 EOF
    3488 
    3489 # Transform confdefs.h into a sed script conftest.vals that substitutes
    3490 # the proper values into config.h.in to produce config.h.  And first:
    3491 # Protect against being on the right side of a sed subst in config.status.
    3492 # Protect against being in an unquoted here document in config.status.
    3493 rm -f conftest.vals
    3494 cat > conftest.hdr <<\EOF
    3495 s/[\\&%]/\\&/g
    3496 s%[\\$`]%\\&%g
    3497 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    3498 s%ac_d%ac_u%gp
    3499 s%ac_u%ac_e%gp
    3500 EOF
    3501 sed -n -f conftest.hdr confdefs.h > conftest.vals
    3502 rm -f conftest.hdr
     5791  test x"$ac_file" != x- && { echo "$as_me:5791: creating $ac_file" >&5
     5792echo "$as_me: creating $ac_file" >&6;}
     5793
     5794  # First look for the input files in the build tree, otherwise in the
     5795  # src tree.
     5796  ac_file_inputs=`IFS=:
     5797    for f in $ac_file_in; do
     5798      case $f in
     5799      -) echo $tmp/stdin ;;
     5800      [\\/$]*)
     5801         # Absolute (can't be DOS-style, as IFS=:)
     5802         test -f "$f" || { { echo "$as_me:5802: error: cannot find input file: $f" >&5
     5803echo "$as_me: error: cannot find input file: $f" >&2;}
     5804   { (exit 1); exit 1; }; }
     5805         echo $f;;
     5806      *) # Relative
     5807         if test -f "$f"; then
     5808           # Build tree
     5809           echo $f
     5810         elif test -f "$srcdir/$f"; then
     5811           # Source tree
     5812           echo $srcdir/$f
     5813         else
     5814           # /dev/null tree
     5815           { { echo "$as_me:5815: error: cannot find input file: $f" >&5
     5816echo "$as_me: error: cannot find input file: $f" >&2;}
     5817   { (exit 1); exit 1; }; }
     5818         fi;;
     5819      esac
     5820    done` || { (exit 1); exit 1; }
     5821  # Remove the trailing spaces.
     5822  sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
     5823
     5824EOF
     5825
     5826# Transform confdefs.h into two sed scripts, `conftest.defines' and
     5827# `conftest.undefs', that substitutes the proper values into
     5828# config.h.in to produce config.h.  The first handles `#define'
     5829# templates, and the second `#undef' templates.
     5830# And first: Protect against being on the right side of a sed subst in
     5831# config.status.  Protect against being in an unquoted here document
     5832# in config.status.
     5833rm -f conftest.defines conftest.undefs
     5834# Using a here document instead of a string reduces the quoting nightmare.
     5835# Putting comments in sed scripts is not portable.
     5836#
     5837# `end' is used to avoid that the second main sed command (meant for
     5838# 0-ary CPP macros) applies to n-ary macro definitions.
     5839# See the Autoconf documentation for `clear'.
     5840cat >confdef2sed.sed <<\EOF
     5841s/[\\&,]/\\&/g
     5842s,[\\$`],\\&,g
     5843t clear
     5844: clear
     5845s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
     5846t end
     5847s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     5848: end
     5849EOF
     5850# If some macros were called several times there might be several times
     5851# the same #defines, which is useless.  Nevertheless, we may not want to
     5852# sort them, since we want the *last* AC-DEFINE to be honored.
     5853uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     5854sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     5855rm -f confdef2sed.sed
    35035856
    35045857# This sed command replaces #undef with comments.  This is necessary, for
    35055858# example, in the case of _POSIX_SOURCE, which is predefined and required
    35065859# on some systems where configure will not decide to define it.
    3507 cat >> conftest.vals <<\EOF
    3508 s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
    3509 EOF
    3510 
    3511 # Break up conftest.vals because some shells have a limit on
    3512 # the size of here documents, and old seds have small limits too.
    3513 
     5860cat >>conftest.undefs <<\EOF
     5861s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     5862EOF
     5863
     5864# Break up conftest.defines because some shells have a limit on the size
     5865# of here documents, and old seds have small limits too (100 cmds).
     5866echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     5867echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     5868echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     5869echo '  :' >>$CONFIG_STATUS
    35145870rm -f conftest.tail
    3515 while :
     5871while grep . conftest.defines >/dev/null
    35165872do
    3517   ac_lines=`grep -c . conftest.vals`
    3518   # grep -c gives empty output for an empty file on some AIX systems.
    3519   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    3520   # Write a limited-size here document to conftest.frag.
    3521   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    3522   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     5873  # Write a limited-size here document to $tmp/defines.sed.
     5874  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     5875  # Speed up: don't consider the non `#define' lines.
     5876  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
     5877  # Work around the forget-to-reset-the-flag bug.
     5878  echo 't clr' >>$CONFIG_STATUS
     5879  echo ': clr' >>$CONFIG_STATUS
     5880  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    35235881  echo 'CEOF
    3524   sed -f conftest.frag conftest.in > conftest.out
    3525   rm -f conftest.in
    3526   mv conftest.out conftest.in
    3527 ' >> $CONFIG_STATUS
    3528   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    3529   rm -f conftest.vals
    3530   mv conftest.tail conftest.vals
     5882  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     5883  rm -f $tmp/in
     5884  mv $tmp/out $tmp/in
     5885' >>$CONFIG_STATUS
     5886  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     5887  rm -f conftest.defines
     5888  mv conftest.tail conftest.defines
    35315889done
    3532 rm -f conftest.vals
    3533 
    3534 cat >> $CONFIG_STATUS <<\EOF
    3535   rm -f conftest.frag conftest.h
    3536   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    3537   cat conftest.in >> conftest.h
    3538   rm -f conftest.in
    3539   if cmp -s $ac_file conftest.h 2>/dev/null; then
    3540     echo "$ac_file is unchanged"
    3541     rm -f conftest.h
     5890rm -f conftest.defines
     5891echo '  fi # egrep' >>$CONFIG_STATUS
     5892echo >>$CONFIG_STATUS
     5893
     5894# Break up conftest.undefs because some shells have a limit on the size
     5895# of here documents, and old seds have small limits too (100 cmds).
     5896echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     5897rm -f conftest.tail
     5898while grep . conftest.undefs >/dev/null
     5899do
     5900  # Write a limited-size here document to $tmp/undefs.sed.
     5901  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     5902  # Speed up: don't consider the non `#undef'
     5903  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     5904  # Work around the forget-to-reset-the-flag bug.
     5905  echo 't clr' >>$CONFIG_STATUS
     5906  echo ': clr' >>$CONFIG_STATUS
     5907  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     5908  echo 'CEOF
     5909  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     5910  rm -f $tmp/in
     5911  mv $tmp/out $tmp/in
     5912' >>$CONFIG_STATUS
     5913  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     5914  rm -f conftest.undefs
     5915  mv conftest.tail conftest.undefs
     5916done
     5917rm -f conftest.undefs
     5918
     5919cat >>$CONFIG_STATUS <<\EOF
     5920  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5921  # use $as_me), people would be surprised to read:
     5922  #    /* config.h.  Generated automatically by config.status.  */
     5923  if test x"$ac_file" = x-; then
     5924    echo "/* Generated automatically by configure.  */" >$tmp/config.h
    35425925  else
    3543     # Remove last slash and all that follows it.  Not all systems have dirname.
    3544       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     5926    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     5927  fi
     5928  cat $tmp/in >>$tmp/config.h
     5929  rm -f $tmp/in
     5930  if test x"$ac_file" != x-; then
     5931    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
     5932      { echo "$as_me:5932: $ac_file is unchanged" >&5
     5933echo "$as_me: $ac_file is unchanged" >&6;}
     5934    else
     5935      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     5936         X"$ac_file" : 'X\(//\)[^/]' \| \
     5937         X"$ac_file" : 'X\(//\)$' \| \
     5938         X"$ac_file" : 'X\(/\)' \| \
     5939         .     : '\(.\)' 2>/dev/null ||
     5940echo X"$ac_file" |
     5941    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     5942      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     5943      /^X\(\/\/\)$/{ s//\1/; q; }
     5944      /^X\(\/\).*/{ s//\1/; q; }
     5945      s/.*/./; q'`
    35455946      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3546       # The file is in a subdirectory.
    3547       test ! -d "$ac_dir" && mkdir "$ac_dir"
     5947        { case "$ac_dir" in
     5948  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     5949  *)                      as_incr_dir=.;;
     5950esac
     5951as_dummy="$ac_dir"
     5952for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     5953  case $as_mkdir_dir in
     5954    # Skip DOS drivespec
     5955    ?:) as_incr_dir=$as_mkdir_dir ;;
     5956    *)
     5957      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5958      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5959    ;;
     5960  esac
     5961done; }
     5962
     5963      fi
     5964      rm -f $ac_file
     5965      mv $tmp/config.h $ac_file
    35485966    fi
    3549     rm -f $ac_file
    3550     mv conftest.h $ac_file
     5967  else
     5968    cat $tmp/config.h
     5969    rm -f $tmp/config.h
    35515970  fi
    3552 fi; done
    3553 
    3554 EOF
    3555 cat >> $CONFIG_STATUS <<EOF
    3556 
    3557 EOF
    3558 cat >> $CONFIG_STATUS <<\EOF
    3559 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    3560 exit 0
     5971done
     5972EOF
     5973cat >>$CONFIG_STATUS <<\EOF
     5974
     5975#
     5976# CONFIG_COMMANDS section.
     5977#
     5978for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
     5979  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
     5980  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5981
     5982  case $ac_dest in
     5983    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
     5984  esac
     5985done
     5986EOF
     5987
     5988cat >>$CONFIG_STATUS <<\EOF
     5989
     5990{ (exit 0); exit 0; }
    35615991EOF
    35625992chmod +x $CONFIG_STATUS
    3563 rm -fr confdefs* $ac_clean_files
    3564 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    3565 
     5993ac_clean_files=$ac_clean_files_save
     5994
     5995# configure is writing to config.log, and then calls config.status.
     5996# config.status does its own redirection, appending to config.log.
     5997# Unfortunately, on DOS this fails, as config.log is still kept open
     5998# by configure, so config.status won't be able to write to it; its
     5999# output is simply discarded.  So we exec the FD to /dev/null,
     6000# effectively closing config.log, so it can be properly (re)opened and
     6001# appended to by config.status.  When coming back to configure, we
     6002# need to make the FD available again.
     6003if test "$no_create" != yes; then
     6004  ac_cs_success=:
     6005  exec 5>/dev/null
     6006  $SHELL $CONFIG_STATUS || ac_cs_success=false
     6007  exec 5>>config.log
     6008  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     6009  # would make configure fail if this is the last instruction.
     6010  $ac_cs_success || { (exit 1); exit 1; }
     6011fi
     6012
  • trunk/indexers/mgpp/configure.in

    r8059 r8063  
    7979
    8080dnl see if gettext is in libc. (try the textdomain() function).
    81 AC_CHECK_FUNC( textdomain , AC_DEFINE(ENABLE_NLS ,1) )
     81AC_CHECK_FUNC(textdomain, AC_DEFINE(ENABLE_NLS ,1) )
    8282
    8383# *** Custom checking (based on GNU tar configure.in) ***
  • trunk/mgpp/configure

    r8059 r8063  
    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 Autoconf 2.50.
    64#
     5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     6# Free Software Foundation, Inc.
    77# This configure script is free software; the Free Software Foundation
    88# gives unlimited permission to copy, distribute and modify it.
    99
    10 # Defaults:
    11 ac_help=
     10# Be Bourne compatible
     11if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     12  emulate sh
     13  NULLCMD=:
     14elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     15  set -o posix
     16fi
     17
     18# Name of the executable.
     19as_me=`echo "$0" |sed 's,.*[\\/],,'`
     20
     21if expr a : '\(a\)' >/dev/null 2>&1; then
     22  as_expr=expr
     23else
     24  as_expr=false
     25fi
     26
     27rm -f conf$$ conf$$.exe conf$$.file
     28echo >conf$$.file
     29if ln -s conf$$.file conf$$ 2>/dev/null; then
     30  # We could just check for DJGPP; but this test a) works b) is more generic
     31  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     32  if test -f conf$$.exe; then
     33    # Don't use ln at all; we don't have any links
     34    as_ln_s='cp -p'
     35  else
     36    as_ln_s='ln -s'
     37  fi
     38elif ln conf$$.file conf$$ 2>/dev/null; then
     39  as_ln_s=ln
     40else
     41  as_ln_s='cp -p'
     42fi
     43rm -f conf$$ conf$$.exe conf$$.file
     44
     45as_executable_p="test -f"
     46
     47# Support unset when possible.
     48if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     49  as_unset=unset
     50else
     51  as_unset=false
     52fi
     53
     54# NLS nuisances.
     55$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     56$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     57$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     58$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     59$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     60$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     61$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     62$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     63
     64# IFS
     65# We need space, tab and new line, in precisely that order.
     66as_nl='
     67'
     68IFS="   $as_nl"
     69
     70# CDPATH.
     71$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     72
     73# Name of the host.
     74# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     75# so uname gets run too.
     76ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     77
     78exec 6>&1
     79
     80#
     81# Initializations.
     82#
    1283ac_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"
     84cross_compiling=no
     85subdirs=
     86MFLAGS= MAKEFLAGS=
     87SHELL=${CONFIG_SHELL-/bin/sh}
     88
     89# Maximum number of lines to put in a shell here document.
     90# This variable seems obsolete.  It should probably be removed, and
     91# only ac_max_sed_lines should be used.
     92: ${ac_max_here_lines=38}
     93
     94# Avoid depending upon Character Ranges.
     95ac_cr_az='abcdefghijklmnopqrstuvwxyz'
     96ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     97ac_cr_09='0123456789'
     98ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
     99
     100# Sed expression to map a string onto a valid sh and CPP variable names.
     101ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
     102ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
     103
     104ac_unique_file="text/MGQuery.cpp"
     105# Factoring default headers for most tests.
     106ac_includes_default="\
     107#include <stdio.h>
     108#include <sys/types.h>
     109#include <sys/stat.h>
     110#if STDC_HEADERS
     111# include <stdlib.h>
     112# include <stddef.h>
     113#else
     114# if HAVE_STDLIB_H
     115#  include <stdlib.h>
     116# endif
     117#endif
     118#if HAVE_STRING_H
     119# if !STDC_HEADERS && HAVE_MEMORY_H
     120#  include <memory.h>
     121# endif
     122# include <string.h>
     123#else
     124# if HAVE_STRINGS_H
     125#  include <strings.h>
     126# endif
     127#endif
     128#if HAVE_INTTYPES_H
     129# include <inttypes.h>
     130#endif
     131#if HAVE_UNISTD_H
     132# include <unistd.h>
     133#endif"
    24134
    25135# Initialize some variables set by options.
     136ac_init_help=
     137ac_init_version=false
    26138# The variables have the same names as the options, with
    27139# dashes changed to underlines.
    28 build=NONE
    29 cache_file=./config.cache
     140cache_file=/dev/null
    30141exec_prefix=NONE
    31 host=NONE
    32142no_create=
    33 nonopt=NONE
    34143no_recursion=
    35144prefix=NONE
     
    40149site=
    41150srcdir=
    42 target=NONE
    43151verbose=
    44152x_includes=NONE
    45153x_libraries=NONE
     154
     155# Installation directory options.
     156# These are left unexpanded so users can "make install exec_prefix=/foo"
     157# and all the variables that are supposed to be based on exec_prefix
     158# by default will actually change.
     159# Use braces instead of parens because sh, perl, etc. also accept them.
    46160bindir='${exec_prefix}/bin'
    47161sbindir='${exec_prefix}/sbin'
     
    57171mandir='${prefix}/man'
    58172
    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
     173# Identity of this package.
     174PACKAGE_NAME=
     175PACKAGE_TARNAME=
     176PACKAGE_VERSION=
     177PACKAGE_STRING=
     178PACKAGE_BUGREPORT=
    65179
    66180ac_prev=
    67181for ac_option
    68182do
    69 
    70183  # If the previous option needs an argument, assign it.
    71184  if test -n "$ac_prev"; then
     
    75188  fi
    76189
    77   case "$ac_option" in
    78   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    79   *) ac_optarg= ;;
    80   esac
     190  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    81191
    82192  # Accept the important Cygnus configure options, so we can diagnose typos.
    83193
    84   case "$ac_option" in
     194  case $ac_option in
    85195
    86196  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    87197    ac_prev=bindir ;;
    88198  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    89     bindir="$ac_optarg" ;;
     199    bindir=$ac_optarg ;;
    90200
    91201  -build | --build | --buil | --bui | --bu)
    92     ac_prev=build ;;
     202    ac_prev=build_alias ;;
    93203  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    94     build="$ac_optarg" ;;
     204    build_alias=$ac_optarg ;;
    95205
    96206  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    99209  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    100210  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    101     cache_file="$ac_optarg" ;;
     211    cache_file=$ac_optarg ;;
     212
     213  --config-cache | -C)
     214    cache_file=config.cache ;;
    102215
    103216  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    105218  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    106219  | --da=*)
    107     datadir="$ac_optarg" ;;
     220    datadir=$ac_optarg ;;
    108221
    109222  -disable-* | --disable-*)
    110     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     223    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    111224    # 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" ;;
     225    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     226      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     227   { (exit 1); exit 1; }; }
     228    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     229    eval "enable_$ac_feature=no" ;;
    117230
    118231  -enable-* | --enable-*)
    119     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     232    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    120233    # 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       *=*) ;;
     234    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     235      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     236   { (exit 1); exit 1; }; }
     237    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     238    case $ac_option in
     239      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    127240      *) ac_optarg=yes ;;
    128241    esac
    129     eval "enable_${ac_feature}='$ac_optarg'" ;;
     242    eval "enable_$ac_feature='$ac_optarg'" ;;
    130243
    131244  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    136249  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    137250  | --exec=* | --exe=* | --ex=*)
    138     exec_prefix="$ac_optarg" ;;
     251    exec_prefix=$ac_optarg ;;
    139252
    140253  -gas | --gas | --ga | --g)
     
    142255    with_gas=yes ;;
    143256
    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 ;;
     257  -help | --help | --hel | --he | -h)
     258    ac_init_help=long ;;
     259  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     260    ac_init_help=recursive ;;
     261  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     262    ac_init_help=short ;;
    198263
    199264  -host | --host | --hos | --ho)
    200     ac_prev=host ;;
     265    ac_prev=host_alias ;;
    201266  -host=* | --host=* | --hos=* | --ho=*)
    202     host="$ac_optarg" ;;
     267    host_alias=$ac_optarg ;;
    203268
    204269  -includedir | --includedir | --includedi | --included | --include \
     
    207272  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    208273  | --includ=* | --inclu=* | --incl=* | --inc=*)
    209     includedir="$ac_optarg" ;;
     274    includedir=$ac_optarg ;;
    210275
    211276  -infodir | --infodir | --infodi | --infod | --info | --inf)
    212277    ac_prev=infodir ;;
    213278  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    214     infodir="$ac_optarg" ;;
     279    infodir=$ac_optarg ;;
    215280
    216281  -libdir | --libdir | --libdi | --libd)
    217282    ac_prev=libdir ;;
    218283  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    219     libdir="$ac_optarg" ;;
     284    libdir=$ac_optarg ;;
    220285
    221286  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    224289  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    225290  | --libexe=* | --libex=* | --libe=*)
    226     libexecdir="$ac_optarg" ;;
     291    libexecdir=$ac_optarg ;;
    227292
    228293  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    233298  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    234299  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    235     localstatedir="$ac_optarg" ;;
     300    localstatedir=$ac_optarg ;;
    236301
    237302  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    238303    ac_prev=mandir ;;
    239304  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    240     mandir="$ac_optarg" ;;
     305    mandir=$ac_optarg ;;
    241306
    242307  -nfp | --nfp | --nf)
     
    259324  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    260325  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    261     oldincludedir="$ac_optarg" ;;
     326    oldincludedir=$ac_optarg ;;
    262327
    263328  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    264329    ac_prev=prefix ;;
    265330  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    266     prefix="$ac_optarg" ;;
     331    prefix=$ac_optarg ;;
    267332
    268333  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    271336  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    272337  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    273     program_prefix="$ac_optarg" ;;
     338    program_prefix=$ac_optarg ;;
    274339
    275340  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    278343  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    279344  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    280     program_suffix="$ac_optarg" ;;
     345    program_suffix=$ac_optarg ;;
    281346
    282347  -program-transform-name | --program-transform-name \
     
    295360  | --program-trans=* | --program-tran=* \
    296361  | --progr-tra=* | --program-tr=* | --program-t=*)
    297     program_transform_name="$ac_optarg" ;;
     362    program_transform_name=$ac_optarg ;;
    298363
    299364  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    305370  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    306371  | --sbi=* | --sb=*)
    307     sbindir="$ac_optarg" ;;
     372    sbindir=$ac_optarg ;;
    308373
    309374  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    316381  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    317382  | --sha=* | --sh=*)
    318     sharedstatedir="$ac_optarg" ;;
     383    sharedstatedir=$ac_optarg ;;
    319384
    320385  -site | --site | --sit)
    321386    ac_prev=site ;;
    322387  -site=* | --site=* | --sit=*)
    323     site="$ac_optarg" ;;
     388    site=$ac_optarg ;;
    324389
    325390  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    326391    ac_prev=srcdir ;;
    327392  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    328     srcdir="$ac_optarg" ;;
     393    srcdir=$ac_optarg ;;
    329394
    330395  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    333398  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    334399  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    335     sysconfdir="$ac_optarg" ;;
     400    sysconfdir=$ac_optarg ;;
    336401
    337402  -target | --target | --targe | --targ | --tar | --ta | --t)
    338     ac_prev=target ;;
     403    ac_prev=target_alias ;;
    339404  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    340     target="$ac_optarg" ;;
     405    target_alias=$ac_optarg ;;
    341406
    342407  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    343408    verbose=yes ;;
    344409
    345   -version | --version | --versio | --versi | --vers)
    346     echo "configure generated by autoconf version 2.13"
    347     exit 0 ;;
     410  -version | --version | --versio | --versi | --vers | -V)
     411    ac_init_version=: ;;
    348412
    349413  -with-* | --with-*)
    350     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     414    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    351415    # 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
     416    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     417      { echo "$as_me: error: invalid package name: $ac_package" >&2
     418   { (exit 1); exit 1; }; }
    355419    ac_package=`echo $ac_package| sed 's/-/_/g'`
    356     case "$ac_option" in
    357       *=*) ;;
     420    case $ac_option in
     421      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    358422      *) ac_optarg=yes ;;
    359423    esac
    360     eval "with_${ac_package}='$ac_optarg'" ;;
     424    eval "with_$ac_package='$ac_optarg'" ;;
    361425
    362426  -without-* | --without-*)
    363     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     427    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    364428    # 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" ;;
     429    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     430      { echo "$as_me: error: invalid package name: $ac_package" >&2
     431   { (exit 1); exit 1; }; }
     432    ac_package=`echo $ac_package | sed 's/-/_/g'`
     433    eval "with_$ac_package=no" ;;
    370434
    371435  --x)
     
    378442  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    379443  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    380     x_includes="$ac_optarg" ;;
     444    x_includes=$ac_optarg ;;
    381445
    382446  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    385449  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    386450  | --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; }
     451    x_libraries=$ac_optarg ;;
     452
     453  -*) { echo "$as_me: error: unrecognized option: $ac_option
     454Try \`$0 --help' for more information." >&2
     455   { (exit 1); exit 1; }; }
    390456    ;;
    391457
     458  *=*)
     459    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     460    # Reject names that are not valid shell variable names.
     461    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
     462      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     463   { (exit 1); exit 1; }; }
     464    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     465    eval "$ac_envvar='$ac_optarg'"
     466    export $ac_envvar ;;
     467
    392468  *)
    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"
     469    # FIXME: should be removed in autoconf 3.0.
     470    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     471    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
     472      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     473    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    400474    ;;
    401475
     
    404478
    405479if 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
     480  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     481  { echo "$as_me: error: missing argument to $ac_option" >&2
     482   { (exit 1); exit 1; }; }
     483fi
     484
     485# Be sure to have absolute paths.
     486for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     487              localstatedir libdir includedir oldincludedir infodir mandir \
     488              exec_prefix prefix
    435489do
    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" ;;
     490  eval ac_val=$`echo $ac_var`
     491  case $ac_val in
     492    [\\/$]* | ?:[\\/]* ) ;;
     493    NONE ) ;;
     494    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
     495   { (exit 1); exit 1; }; };;
    444496  esac
    445497done
    446498
    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
     499# There might be people who depend on the old broken behavior: `$host'
     500# used to hold the argument of --host etc.
     501build=$build_alias
     502host=$host_alias
     503target=$target_alias
     504
     505# FIXME: should be removed in autoconf 3.0.
     506if test "x$host_alias" != x; then
     507  if test "x$build_alias" = x; then
     508    cross_compiling=maybe
     509    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     510    If a cross compiler is detected then cross compile mode will be used." >&2
     511  elif test "x$build_alias" != "x$host_alias"; then
     512    cross_compiling=yes
     513  fi
     514fi
     515
     516ac_tool_prefix=
     517test -n "$host_alias" && ac_tool_prefix=$host_alias-
     518
     519test "$silent" = yes && exec 6>/dev/null
    465520
    466521# Find the source files, if location was not specified.
     
    469524  # Try the directory containing this script, then its parent.
    470525  ac_prog=$0
    471   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
     526  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    472527  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    473528  srcdir=$ac_confdir
     
    480535if test ! -r $srcdir/$ac_unique_file; then
    481536  if test "$ac_srcdir_defaulted" = yes; then
    482     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     537    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
     538   { (exit 1); exit 1; }; }
    483539  else
    484     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     540    { echo "$as_me: error: cannot find sources in $srcdir" >&2
     541   { (exit 1); exit 1; }; }
    485542  fi
    486543fi
    487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    488 
     544srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     545ac_env_build_alias_set=${build_alias+set}
     546ac_env_build_alias_value=$build_alias
     547ac_cv_env_build_alias_set=${build_alias+set}
     548ac_cv_env_build_alias_value=$build_alias
     549ac_env_host_alias_set=${host_alias+set}
     550ac_env_host_alias_value=$host_alias
     551ac_cv_env_host_alias_set=${host_alias+set}
     552ac_cv_env_host_alias_value=$host_alias
     553ac_env_target_alias_set=${target_alias+set}
     554ac_env_target_alias_value=$target_alias
     555ac_cv_env_target_alias_set=${target_alias+set}
     556ac_cv_env_target_alias_value=$target_alias
     557ac_env_CXX_set=${CXX+set}
     558ac_env_CXX_value=$CXX
     559ac_cv_env_CXX_set=${CXX+set}
     560ac_cv_env_CXX_value=$CXX
     561ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     562ac_env_CXXFLAGS_value=$CXXFLAGS
     563ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     564ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     565ac_env_LDFLAGS_set=${LDFLAGS+set}
     566ac_env_LDFLAGS_value=$LDFLAGS
     567ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     568ac_cv_env_LDFLAGS_value=$LDFLAGS
     569ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     570ac_env_CPPFLAGS_value=$CPPFLAGS
     571ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     572ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     573ac_env_CC_set=${CC+set}
     574ac_env_CC_value=$CC
     575ac_cv_env_CC_set=${CC+set}
     576ac_cv_env_CC_value=$CC
     577ac_env_CFLAGS_set=${CFLAGS+set}
     578ac_env_CFLAGS_value=$CFLAGS
     579ac_cv_env_CFLAGS_set=${CFLAGS+set}
     580ac_cv_env_CFLAGS_value=$CFLAGS
     581ac_env_CPP_set=${CPP+set}
     582ac_env_CPP_value=$CPP
     583ac_cv_env_CPP_set=${CPP+set}
     584ac_cv_env_CPP_value=$CPP
     585
     586#
     587# Report the --help message.
     588#
     589if test "$ac_init_help" = "long"; then
     590  # Omit some internal or obsolete options to make the list less imposing.
     591  # This message is too long to be a string in the A/UX 3.1 sh.
     592  cat <<EOF
     593\`configure' configures this package to adapt to many kinds of systems.
     594
     595Usage: $0 [OPTION]... [VAR=VALUE]...
     596
     597To assign environment variables (e.g., CC, CFLAGS...), specify them as
     598VAR=VALUE.  See below for descriptions of some of the useful variables.
     599
     600Defaults for the options are specified in brackets.
     601
     602Configuration:
     603  -h, --help              display this help and exit
     604      --help=short        display options specific to this package
     605      --help=recursive    display the short help of all the included packages
     606  -V, --version           display version information and exit
     607  -q, --quiet, --silent   do not print \`checking...' messages
     608      --cache-file=FILE   cache test results in FILE [disabled]
     609  -C, --config-cache      alias for \`--cache-file=config.cache'
     610  -n, --no-create         do not create output files
     611      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     612
     613EOF
     614
     615  cat <<EOF
     616Installation directories:
     617  --prefix=PREFIX         install architecture-independent files in PREFIX
     618                          [$ac_default_prefix]
     619  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     620                          [PREFIX]
     621
     622By default, \`make install' will install all the files in
     623\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     624an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     625for instance \`--prefix=\$HOME'.
     626
     627For better control, use the options below.
     628
     629Fine tuning of the installation directories:
     630  --bindir=DIR           user executables [EPREFIX/bin]
     631  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     632  --libexecdir=DIR       program executables [EPREFIX/libexec]
     633  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     634  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     635  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     636  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     637  --libdir=DIR           object code libraries [EPREFIX/lib]
     638  --includedir=DIR       C header files [PREFIX/include]
     639  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     640  --infodir=DIR          info documentation [PREFIX/info]
     641  --mandir=DIR           man documentation [PREFIX/man]
     642EOF
     643
     644  cat <<\EOF
     645
     646Program names:
     647  --program-prefix=PREFIX            prepend PREFIX to installed program names
     648  --program-suffix=SUFFIX            append SUFFIX to installed program names
     649  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     650EOF
     651fi
     652
     653if test -n "$ac_init_help"; then
     654
     655  cat <<\EOF
     656
     657Optional Features:
     658  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     659  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     660  --enable-override-longlong
     661                          overide use of long long with GCC
     662
     663Optional Packages:
     664  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     665  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     666  --with-dmalloc          use dmalloc, as in
     667                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
     668  --with-regex            use older regex in lieu of GNU rx for matching
     669  --with-gnu-readline     compile with GNU readline support
     670
     671Some influential environment variables:
     672  CXX         C++ compiler command
     673  CXXFLAGS    C++ compiler flags
     674  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     675              nonstandard directory <lib dir>
     676  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     677              headers in a nonstandard directory <include dir>
     678  CC          C compiler command
     679  CFLAGS      C compiler flags
     680  CPP         C preprocessor
     681
     682Use these variables to override the choices made by `configure' or to help
     683it to find libraries and programs with nonstandard names/locations.
     684
     685EOF
     686fi
     687
     688if test "$ac_init_help" = "recursive"; then
     689  # If there are subdirs, report their specific --help.
     690  ac_popdir=`pwd`
     691  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
     692    cd $ac_subdir
     693    # A "../" for each directory in /$ac_subdir.
     694    ac_dots=`echo $ac_subdir |
     695             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
     696
     697    case $srcdir in
     698    .) # No --srcdir option.  We are building in place.
     699      ac_sub_srcdir=$srcdir ;;
     700    [\\/]* | ?:[\\/]* ) # Absolute path.
     701      ac_sub_srcdir=$srcdir/$ac_subdir ;;
     702    *) # Relative path.
     703      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
     704    esac
     705
     706    # Check for guested configure; otherwise get Cygnus style configure.
     707    if test -f $ac_sub_srcdir/configure.gnu; then
     708      echo
     709      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
     710    elif test -f $ac_sub_srcdir/configure; then
     711      echo
     712      $SHELL $ac_sub_srcdir/configure  --help=recursive
     713    elif test -f $ac_sub_srcdir/configure.ac ||
     714           test -f $ac_sub_srcdir/configure.in; then
     715      echo
     716      $ac_configure --help
     717    else
     718      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
     719    fi
     720    cd $ac_popdir
     721  done
     722fi
     723
     724test -n "$ac_init_help" && exit 0
     725if $ac_init_version; then
     726  cat <<\EOF
     727
     728Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     729Free Software Foundation, Inc.
     730This configure script is free software; the Free Software Foundation
     731gives unlimited permission to copy, distribute and modify it.
     732EOF
     733  exit 0
     734fi
     735exec 5>config.log
     736cat >&5 <<EOF
     737This file contains any messages produced by compilers while
     738running configure, to aid debugging if configure makes a mistake.
     739
     740It was created by $as_me, which was
     741generated by GNU Autoconf 2.50.  Invocation command line was
     742
     743  $ $0 $@
     744
     745EOF
     746{
     747cat <<_ASUNAME
     748## ---------- ##
     749## Platform.  ##
     750## ---------- ##
     751
     752hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     753uname -m = `(uname -m) 2>/dev/null || echo unknown`
     754uname -r = `(uname -r) 2>/dev/null || echo unknown`
     755uname -s = `(uname -s) 2>/dev/null || echo unknown`
     756uname -v = `(uname -v) 2>/dev/null || echo unknown`
     757
     758/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     759/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     760
     761/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     762/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     763/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     764hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     765/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     766/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     767/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     768
     769PATH = $PATH
     770
     771_ASUNAME
     772} >&5
     773
     774cat >&5 <<EOF
     775## ------------ ##
     776## Core tests.  ##
     777## ------------ ##
     778
     779EOF
     780
     781# Keep a trace of the command line.
     782# Strip out --no-create and --no-recursion so they do not pile up.
     783# Also quote any args containing shell meta-characters.
     784ac_configure_args=
     785ac_sep=
     786for ac_arg
     787do
     788  case $ac_arg in
     789  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     790  | --no-cr | --no-c) ;;
     791  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     792  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     793  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     794    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
     795    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     796    ac_sep=" " ;;
     797  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     798     ac_sep=" " ;;
     799  esac
     800  # Get rid of the leading space.
     801done
     802
     803# When interrupted or exit'd, cleanup temporary files, and complete
     804# config.log.  We remove comments because anyway the quotes in there
     805# would cause problems or look ugly.
     806trap 'exit_status=$?
     807  # Save into config.log some information that might help in debugging.
     808  echo >&5
     809  echo "## ----------------- ##" >&5
     810  echo "## Cache variables.  ##" >&5
     811  echo "## ----------------- ##" >&5
     812  echo >&5
     813  # The following way of writing the cache mishandles newlines in values,
     814{
     815  (set) 2>&1 |
     816    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     817    *ac_space=\ *)
     818      sed -n \
     819        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     820          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     821      ;;
     822    *)
     823      sed -n \
     824        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     825      ;;
     826    esac;
     827} >&5
     828  sed "/^$/d" confdefs.h >conftest.log
     829  if test -s conftest.log; then
     830    echo >&5
     831    echo "## ------------ ##" >&5
     832    echo "## confdefs.h.  ##" >&5
     833    echo "## ------------ ##" >&5
     834    echo >&5
     835    cat conftest.log >&5
     836  fi
     837  (echo; echo) >&5
     838  test "$ac_signal" != 0 &&
     839    echo "$as_me: caught signal $ac_signal" >&5
     840  echo "$as_me: exit $exit_status" >&5
     841  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
     842    exit $exit_status
     843     ' 0
     844for ac_signal in 1 2 13 15; do
     845  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
     846done
     847ac_signal=0
     848
     849# confdefs.h avoids OS command line length limits that DEFS can exceed.
     850rm -rf conftest* confdefs.h
     851# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     852echo >confdefs.h
     853
     854# Let the site file select an alternate cache file if it wants to.
    489855# Prefer explicitly selected file to automatically selected ones.
    490856if test -z "$CONFIG_SITE"; then
     
    497863for ac_site_file in $CONFIG_SITE; do
    498864  if test -r "$ac_site_file"; then
    499     echo "loading site script $ac_site_file"
     865    { echo "$as_me:865: loading site script $ac_site_file" >&5
     866echo "$as_me: loading site script $ac_site_file" >&6;}
     867    cat "$ac_site_file" >&5
    500868    . "$ac_site_file"
    501869  fi
     
    503871
    504872if 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
     873  # Some versions of bash will fail to source /dev/null (special
     874  # files actually), so we avoid doing that.
     875  if test -f "$cache_file"; then
     876    { echo "$as_me:876: loading cache $cache_file" >&5
     877echo "$as_me: loading cache $cache_file" >&6;}
     878    case $cache_file in
     879      [\\/]* | ?:[\\/]* ) . $cache_file;;
     880      *)                      . ./$cache_file;;
     881    esac
     882  fi
     883else
     884  { echo "$as_me:884: creating cache $cache_file" >&5
     885echo "$as_me: creating cache $cache_file" >&6;}
     886  >$cache_file
     887fi
     888
     889# Check that the precious variables saved in the cache have kept the same
     890# value.
     891ac_suggest_removing_cache=false
     892for ac_var in `(set) 2>&1 |
     893               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     894  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     895  eval ac_new_set=\$ac_env_${ac_var}_set
     896  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     897  eval ac_new_val="\$ac_env_${ac_var}_value"
     898  case $ac_old_set,$ac_new_set in
     899    set,)
     900      { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     901echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     902      ac_suggest_removing_cache=: ;;
     903    ,set)
     904      { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5
     905echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
     906      ac_suggest_removing_cache=: ;;
     907    ,);;
     908    *)
     909      if test "x$ac_old_val" != "x$ac_new_val"; then
     910        { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5
     911echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
     912        { echo "$as_me:912: WARNING:   former value:  $ac_old_val" >&5
     913echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
     914        { echo "$as_me:914: WARNING:   current value: $ac_new_val" >&5
     915echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
     916        ac_suggest_removing_cache=:
     917      fi;;
     918  esac
     919done
     920if $ac_suggest_removing_cache; then
     921  { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5
     922echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
     923  { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5
     924echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
    510925fi
    511926
    512927ac_ext=c
    513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    514928ac_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 
     929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     931ac_compiler_gnu=$ac_cv_c_compiler_gnu
     932
     933case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     934  *c*,-n*) ECHO_N= ECHO_C='
     935' ECHO_T='  ' ;;
     936  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     937  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
     938esac
     939echo "#! $SHELL" >conftest.sh
     940echo  "exit 0"   >>conftest.sh
     941chmod +x conftest.sh
     942if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5
     943  (PATH=".;."; conftest.sh) 2>&5
     944  ac_status=$?
     945  echo "$as_me:945: \$? = $ac_status" >&5
     946  (exit $ac_status); }; then
     947  ac_path_separator=';'
     948else
     949  ac_path_separator=:
     950fi
     951PATH_SEPARATOR="$ac_path_separator"
     952rm -f conftest.sh
     953
     954ac_config_headers="$ac_config_headers config.h"
    534955
    535956if test "$program_transform_name" = s,x,x,; then
     
    537958else
    538959  # Double any \ or $.  echo might interpret backslashes.
    539   cat <<\EOF_SED > conftestsed
     960  cat <<\EOF >conftest.sed
    540961s,\\,\\\\,g; s,\$,$$,g
    541 EOF_SED
    542   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
    543   rm -f conftestsed
     962EOF
     963  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     964  rm -f conftest.sed
    544965fi
    545966test "$program_prefix" != NONE &&
    546   program_transform_name="s,^,${program_prefix},; $program_transform_name"
     967  program_transform_name="s,^,${program_prefix},;$program_transform_name"
    547968# Use a double $ so make ignores it.
    548969test "$program_suffix" != NONE &&
    549   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
     970  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
    550971
    551972# sed with no file args requires a program.
    552 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
    553 
     973test -z "$program_transform_name" && program_transform_name="s,x,x,"
    554974
    555975PACKAGE=mgpp
     
    558978LDFLAGS=
    559979
    560 cat >> confdefs.h <<EOF
     980cat >>confdefs.h <<EOF
    561981#define PACKAGE "$PACKAGE"
    562982EOF
    563983
    564 cat >> confdefs.h <<EOF
     984cat >>confdefs.h <<EOF
    565985#define VERSION "$VERSION"
    566986EOF
    567987
    568 
    569 
    570 
    571 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    572 do
    573 # Extract the first word of "$ac_prog", so it can be a program name with args.
    574 set dummy $ac_prog; ac_word=$2
    575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    576 echo "configure:577: checking for $ac_word" >&5
    577 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    578   echo $ac_n "(cached) $ac_c" 1>&6
     988ac_ext=cc
     989ac_cpp='$CXXCPP $CPPFLAGS'
     990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     993if test -n "$ac_tool_prefix"; then
     994  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     995  do
     996    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     998echo "$as_me:998: checking for $ac_word" >&5
     999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1000if test "${ac_cv_prog_CXX+set}" = set; then
     1001  echo $ECHO_N "(cached) $ECHO_C" >&6
    5791002else
    5801003  if test -n "$CXX"; then
    5811004  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    5821005else
    583   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    584   ac_dummy="$PATH"
    585   for ac_dir in $ac_dummy; do
    586     test -z "$ac_dir" && ac_dir=.
    587     if test -f $ac_dir/$ac_word; then
    588       ac_cv_prog_CXX="$ac_prog"
    589       break
     1006  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1007ac_dummy="$PATH"
     1008for ac_dir in $ac_dummy; do
     1009  IFS=$ac_save_IFS
     1010  test -z "$ac_dir" && ac_dir=.
     1011  $as_executable_p "$ac_dir/$ac_word" || continue
     1012ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1013echo "$as_me:1013: found $ac_dir/$ac_word" >&5
     1014break
     1015done
     1016
     1017fi
     1018fi
     1019CXX=$ac_cv_prog_CXX
     1020if test -n "$CXX"; then
     1021  echo "$as_me:1021: result: $CXX" >&5
     1022echo "${ECHO_T}$CXX" >&6
     1023else
     1024  echo "$as_me:1024: result: no" >&5
     1025echo "${ECHO_T}no" >&6
     1026fi
     1027
     1028    test -n "$CXX" && break
     1029  done
     1030fi
     1031if test -z "$CXX"; then
     1032  ac_ct_CXX=$CXX
     1033  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1034do
     1035  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1036set dummy $ac_prog; ac_word=$2
     1037echo "$as_me:1037: checking for $ac_word" >&5
     1038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1039if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1040  echo $ECHO_N "(cached) $ECHO_C" >&6
     1041else
     1042  if test -n "$ac_ct_CXX"; then
     1043  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1044else
     1045  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1046ac_dummy="$PATH"
     1047for ac_dir in $ac_dummy; do
     1048  IFS=$ac_save_IFS
     1049  test -z "$ac_dir" && ac_dir=.
     1050  $as_executable_p "$ac_dir/$ac_word" || continue
     1051ac_cv_prog_ac_ct_CXX="$ac_prog"
     1052echo "$as_me:1052: found $ac_dir/$ac_word" >&5
     1053break
     1054done
     1055
     1056fi
     1057fi
     1058ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1059if test -n "$ac_ct_CXX"; then
     1060  echo "$as_me:1060: result: $ac_ct_CXX" >&5
     1061echo "${ECHO_T}$ac_ct_CXX" >&6
     1062else
     1063  echo "$as_me:1063: result: no" >&5
     1064echo "${ECHO_T}no" >&6
     1065fi
     1066
     1067  test -n "$ac_ct_CXX" && break
     1068done
     1069test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1070
     1071  CXX=$ac_ct_CXX
     1072fi
     1073
     1074cat >conftest.$ac_ext <<_ACEOF
     1075#line 1075 "configure"
     1076#include "confdefs.h"
     1077
     1078int
     1079main ()
     1080{
     1081
     1082  ;
     1083  return 0;
     1084}
     1085_ACEOF
     1086ac_clean_files_save=$ac_clean_files
     1087ac_clean_files="$ac_clean_files a.out a.exe"
     1088# Try to create an executable without -o first, disregard a.out.
     1089# It will help us diagnose broken compiler, and finding out an intuition
     1090# of exeext.
     1091echo "$as_me:1091: checking for C++ compiler default output" >&5
     1092echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
     1093ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1094if { (eval echo "$as_me:1094: \"$ac_link_default\"") >&5
     1095  (eval $ac_link_default) 2>&5
     1096  ac_status=$?
     1097  echo "$as_me:1097: \$? = $ac_status" >&5
     1098  (exit $ac_status); }; then
     1099  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
     1100  case $ac_file in
     1101    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1102    a.out ) # We found the default executable, but exeext='' is most
     1103            # certainly right.
     1104            break;;
     1105    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1106          export ac_cv_exeext
     1107          break;;
     1108    * ) break;;
     1109  esac
     1110done
     1111else
     1112  echo "$as_me: failed program was:" >&5
     1113cat conftest.$ac_ext >&5
     1114{ { echo "$as_me:1114: error: C++ compiler cannot create executables" >&5
     1115echo "$as_me: error: C++ compiler cannot create executables" >&2;}
     1116   { (exit 77); exit 77; }; }
     1117fi
     1118
     1119ac_exeext=$ac_cv_exeext
     1120echo "$as_me:1120: result: $ac_file" >&5
     1121echo "${ECHO_T}$ac_file" >&6
     1122
     1123# Check the compiler produces executables we can run.  If not, either
     1124# the compiler is broken, or we cross compile.
     1125echo "$as_me:1125: checking whether the C++ compiler works" >&5
     1126echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
     1127# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1128# If not cross compiling, check that we can run a simple program.
     1129if test "$cross_compiling" != yes; then
     1130  if { ac_try='./$ac_file'
     1131  { (eval echo "$as_me:1131: \"$ac_try\"") >&5
     1132  (eval $ac_try) 2>&5
     1133  ac_status=$?
     1134  echo "$as_me:1134: \$? = $ac_status" >&5
     1135  (exit $ac_status); }; }; then
     1136    cross_compiling=no
     1137  else
     1138    if test "$cross_compiling" = maybe; then
     1139    cross_compiling=yes
     1140    else
     1141    { { echo "$as_me:1141: error: cannot run C++ compiled programs.
     1142If you meant to cross compile, use \`--host'." >&5
     1143echo "$as_me: error: cannot run C++ compiled programs.
     1144If you meant to cross compile, use \`--host'." >&2;}
     1145   { (exit 1); exit 1; }; }
    5901146    fi
    591   done
    592   IFS="$ac_save_ifs"
    593 fi
    594 fi
    595 CXX="$ac_cv_prog_CXX"
    596 if test -n "$CXX"; then
    597   echo "$ac_t""$CXX" 1>&6
    598 else
    599   echo "$ac_t""no" 1>&6
    600 fi
    601 
    602 test -n "$CXX" && break
     1147  fi
     1148fi
     1149echo "$as_me:1149: result: yes" >&5
     1150echo "${ECHO_T}yes" >&6
     1151
     1152rm -f a.out a.exe conftest$ac_cv_exeext
     1153ac_clean_files=$ac_clean_files_save
     1154# Check the compiler produces executables we can run.  If not, either
     1155# the compiler is broken, or we cross compile.
     1156echo "$as_me:1156: checking whether we are cross compiling" >&5
     1157echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1158echo "$as_me:1158: result: $cross_compiling" >&5
     1159echo "${ECHO_T}$cross_compiling" >&6
     1160
     1161echo "$as_me:1161: checking for executable suffix" >&5
     1162echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
     1163if { (eval echo "$as_me:1163: \"$ac_link\"") >&5
     1164  (eval $ac_link) 2>&5
     1165  ac_status=$?
     1166  echo "$as_me:1166: \$? = $ac_status" >&5
     1167  (exit $ac_status); }; then
     1168  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1169# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1170# work properly (i.e., refer to `conftest.exe'), while it won't with
     1171# `rm'.
     1172for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     1173  case $ac_file in
     1174    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1175    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1176          export ac_cv_exeext
     1177          break;;
     1178    * ) break;;
     1179  esac
    6031180done
    604 test -n "$CXX" || CXX="gcc"
    605 
    606 
    607 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    608 echo "configure:609: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    609 
    610 ac_ext=C
    611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    612 ac_cpp='$CXXCPP $CPPFLAGS'
    613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    615 cross_compiling=$ac_cv_prog_cxx_cross
    616 
    617 cat > conftest.$ac_ext << EOF
    618 
    619 #line 620 "configure"
    620 #include "confdefs.h"
    621 
    622 int main(){return(0);}
    623 EOF
    624 if { (eval echo configure:625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    625   ac_cv_prog_cxx_works=yes
    626   # If we can't run a trivial program, we are probably using a cross compiler.
    627   if (./conftest; exit) 2>/dev/null; then
    628     ac_cv_prog_cxx_cross=no
    629   else
    630     ac_cv_prog_cxx_cross=yes
    631   fi
    632 else
    633   echo "configure: failed program was:" >&5
    634   cat conftest.$ac_ext >&5
    635   ac_cv_prog_cxx_works=no
    636 fi
    637 rm -fr conftest*
    638 ac_ext=c
    639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    640 ac_cpp='$CPP $CPPFLAGS'
    641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    643 cross_compiling=$ac_cv_prog_cc_cross
    644 
    645 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    646 if test $ac_cv_prog_cxx_works = no; then
    647   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    648 fi
    649 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    650 echo "configure:651: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    651 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    652 cross_compiling=$ac_cv_prog_cxx_cross
    653 
    654 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    655 echo "configure:656: checking whether we are using GNU C++" >&5
    656 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    657   echo $ac_n "(cached) $ac_c" 1>&6
    658 else
    659   cat > conftest.C <<EOF
    660 #ifdef __GNUC__
    661   yes;
     1181else
     1182  { { echo "$as_me:1182: error: cannot compute EXEEXT: cannot compile and link" >&5
     1183echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
     1184   { (exit 1); exit 1; }; }
     1185fi
     1186
     1187rm -f conftest$ac_cv_exeext
     1188echo "$as_me:1188: result: $ac_cv_exeext" >&5
     1189echo "${ECHO_T}$ac_cv_exeext" >&6
     1190
     1191rm -f conftest.$ac_ext
     1192EXEEXT=$ac_cv_exeext
     1193ac_exeext=$EXEEXT
     1194echo "$as_me:1194: checking for object suffix" >&5
     1195echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
     1196if test "${ac_cv_objext+set}" = set; then
     1197  echo $ECHO_N "(cached) $ECHO_C" >&6
     1198else
     1199  cat >conftest.$ac_ext <<_ACEOF
     1200#line 1200 "configure"
     1201#include "confdefs.h"
     1202
     1203int
     1204main ()
     1205{
     1206
     1207  ;
     1208  return 0;
     1209}
     1210_ACEOF
     1211rm -f conftest.o conftest.obj
     1212if { (eval echo "$as_me:1212: \"$ac_compile\"") >&5
     1213  (eval $ac_compile) 2>&5
     1214  ac_status=$?
     1215  echo "$as_me:1215: \$? = $ac_status" >&5
     1216  (exit $ac_status); }; then
     1217  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1218  case $ac_file in
     1219    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1220    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1221       break;;
     1222  esac
     1223done
     1224else
     1225  echo "$as_me: failed program was:" >&5
     1226cat conftest.$ac_ext >&5
     1227{ { echo "$as_me:1227: error: cannot compute OBJEXT: cannot compile" >&5
     1228echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
     1229   { (exit 1); exit 1; }; }
     1230fi
     1231
     1232rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1233fi
     1234echo "$as_me:1234: result: $ac_cv_objext" >&5
     1235echo "${ECHO_T}$ac_cv_objext" >&6
     1236OBJEXT=$ac_cv_objext
     1237ac_objext=$OBJEXT
     1238echo "$as_me:1238: checking whether we are using the GNU C++ compiler" >&5
     1239echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1240if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1241  echo $ECHO_N "(cached) $ECHO_C" >&6
     1242else
     1243  cat >conftest.$ac_ext <<_ACEOF
     1244#line 1244 "configure"
     1245#include "confdefs.h"
     1246
     1247int
     1248main ()
     1249{
     1250#ifndef __GNUC__
     1251       choke me
    6621252#endif
    663 EOF
    664 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    665   ac_cv_prog_gxx=yes
    666 else
    667   ac_cv_prog_gxx=no
    668 fi
    669 fi
    670 
    671 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    672 
    673 if test $ac_cv_prog_gxx = yes; then
    674   GXX=yes
    675 else
    676   GXX=
    677 fi
    678 
    679 ac_test_CXXFLAGS="${CXXFLAGS+set}"
    680 ac_save_CXXFLAGS="$CXXFLAGS"
    681 CXXFLAGS=
    682 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    683 echo "configure:684: checking whether ${CXX-g++} accepts -g" >&5
    684 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    685   echo $ac_n "(cached) $ac_c" 1>&6
    686 else
    687   echo 'void f(){}' > conftest.cc
    688 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     1253
     1254  ;
     1255  return 0;
     1256}
     1257_ACEOF
     1258rm -f conftest.$ac_objext
     1259if { (eval echo "$as_me:1259: \"$ac_compile\"") >&5
     1260  (eval $ac_compile) 2>&5
     1261  ac_status=$?
     1262  echo "$as_me:1262: \$? = $ac_status" >&5
     1263  (exit $ac_status); } &&
     1264         { ac_try='test -s conftest.$ac_objext'
     1265  { (eval echo "$as_me:1265: \"$ac_try\"") >&5
     1266  (eval $ac_try) 2>&5
     1267  ac_status=$?
     1268  echo "$as_me:1268: \$? = $ac_status" >&5
     1269  (exit $ac_status); }; }; then
     1270  ac_compiler_gnu=yes
     1271else
     1272  echo "$as_me: failed program was:" >&5
     1273cat conftest.$ac_ext >&5
     1274ac_compiler_gnu=no
     1275fi
     1276rm -f conftest.$ac_objext conftest.$ac_ext
     1277ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1278
     1279fi
     1280echo "$as_me:1280: result: $ac_cv_cxx_compiler_gnu" >&5
     1281echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1282GXX=`test $ac_compiler_gnu = yes && echo yes`
     1283ac_test_CXXFLAGS=${CXXFLAGS+set}
     1284ac_save_CXXFLAGS=$CXXFLAGS
     1285CXXFLAGS="-g"
     1286echo "$as_me:1286: checking whether $CXX accepts -g" >&5
     1287echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1288if test "${ac_cv_prog_cxx_g+set}" = set; then
     1289  echo $ECHO_N "(cached) $ECHO_C" >&6
     1290else
     1291  cat >conftest.$ac_ext <<_ACEOF
     1292#line 1292 "configure"
     1293#include "confdefs.h"
     1294
     1295int
     1296main ()
     1297{
     1298
     1299  ;
     1300  return 0;
     1301}
     1302_ACEOF
     1303rm -f conftest.$ac_objext
     1304if { (eval echo "$as_me:1304: \"$ac_compile\"") >&5
     1305  (eval $ac_compile) 2>&5
     1306  ac_status=$?
     1307  echo "$as_me:1307: \$? = $ac_status" >&5
     1308  (exit $ac_status); } &&
     1309         { ac_try='test -s conftest.$ac_objext'
     1310  { (eval echo "$as_me:1310: \"$ac_try\"") >&5
     1311  (eval $ac_try) 2>&5
     1312  ac_status=$?
     1313  echo "$as_me:1313: \$? = $ac_status" >&5
     1314  (exit $ac_status); }; }; then
    6891315  ac_cv_prog_cxx_g=yes
    6901316else
    691   ac_cv_prog_cxx_g=no
    692 fi
    693 rm -f conftest*
    694 
    695 fi
    696 
    697 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     1317  echo "$as_me: failed program was:" >&5
     1318cat conftest.$ac_ext >&5
     1319ac_cv_prog_cxx_g=no
     1320fi
     1321rm -f conftest.$ac_objext conftest.$ac_ext
     1322fi
     1323echo "$as_me:1323: result: $ac_cv_prog_cxx_g" >&5
     1324echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    6981325if test "$ac_test_CXXFLAGS" = set; then
    699   CXXFLAGS="$ac_save_CXXFLAGS"
     1326  CXXFLAGS=$ac_save_CXXFLAGS
    7001327elif test $ac_cv_prog_cxx_g = yes; then
    7011328  if test "$GXX" = yes; then
     
    7111338  fi
    7121339fi
     1340for ac_declaration in \
     1341   ''\
     1342   '#include <stdlib.h>' \
     1343   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1344   'extern "C" void std::exit (int); using std::exit;' \
     1345   'extern "C" void exit (int) throw ();' \
     1346   'extern "C" void exit (int);' \
     1347   'void exit (int);'
     1348do
     1349  cat >conftest.$ac_ext <<_ACEOF
     1350#line 1350 "configure"
     1351#include "confdefs.h"
     1352#include <stdlib.h>
     1353$ac_declaration
     1354int
     1355main ()
     1356{
     1357exit (42);
     1358  ;
     1359  return 0;
     1360}
     1361_ACEOF
     1362rm -f conftest.$ac_objext
     1363if { (eval echo "$as_me:1363: \"$ac_compile\"") >&5
     1364  (eval $ac_compile) 2>&5
     1365  ac_status=$?
     1366  echo "$as_me:1366: \$? = $ac_status" >&5
     1367  (exit $ac_status); } &&
     1368         { ac_try='test -s conftest.$ac_objext'
     1369  { (eval echo "$as_me:1369: \"$ac_try\"") >&5
     1370  (eval $ac_try) 2>&5
     1371  ac_status=$?
     1372  echo "$as_me:1372: \$? = $ac_status" >&5
     1373  (exit $ac_status); }; }; then
     1374  :
     1375else
     1376  echo "$as_me: failed program was:" >&5
     1377cat conftest.$ac_ext >&5
     1378continue
     1379fi
     1380rm -f conftest.$ac_objext conftest.$ac_ext
     1381  cat >conftest.$ac_ext <<_ACEOF
     1382#line 1382 "configure"
     1383#include "confdefs.h"
     1384$ac_declaration
     1385int
     1386main ()
     1387{
     1388exit (42);
     1389  ;
     1390  return 0;
     1391}
     1392_ACEOF
     1393rm -f conftest.$ac_objext
     1394if { (eval echo "$as_me:1394: \"$ac_compile\"") >&5
     1395  (eval $ac_compile) 2>&5
     1396  ac_status=$?
     1397  echo "$as_me:1397: \$? = $ac_status" >&5
     1398  (exit $ac_status); } &&
     1399         { ac_try='test -s conftest.$ac_objext'
     1400  { (eval echo "$as_me:1400: \"$ac_try\"") >&5
     1401  (eval $ac_try) 2>&5
     1402  ac_status=$?
     1403  echo "$as_me:1403: \$? = $ac_status" >&5
     1404  (exit $ac_status); }; }; then
     1405  break
     1406else
     1407  echo "$as_me: failed program was:" >&5
     1408cat conftest.$ac_ext >&5
     1409fi
     1410rm -f conftest.$ac_objext conftest.$ac_ext
     1411done
     1412echo '#ifdef __cplusplus' >>confdefs.h
     1413echo $ac_declaration      >>confdefs.h
     1414echo '#endif'             >>confdefs.h
     1415
     1416ac_ext=c
     1417ac_cpp='$CPP $CPPFLAGS'
     1418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1420ac_compiler_gnu=$ac_cv_c_compiler_gnu
    7131421
    7141422for ac_prog in mawk gawk nawk awk
    7151423do
    716 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1424  # Extract the first word of "$ac_prog", so it can be a program name with args.
    7171425set dummy $ac_prog; ac_word=$2
    718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    719 echo "configure:720: checking for $ac_word" >&5
    720 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    721   echo $ac_n "(cached) $ac_c" 1>&6
     1426echo "$as_me:1426: checking for $ac_word" >&5
     1427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1428if test "${ac_cv_prog_AWK+set}" = set; then
     1429  echo $ECHO_N "(cached) $ECHO_C" >&6
    7221430else
    7231431  if test -n "$AWK"; then
    7241432  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    7251433else
    726   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    727   ac_dummy="$PATH"
    728   for ac_dir in $ac_dummy; do
    729     test -z "$ac_dir" && ac_dir=.
    730     if test -f $ac_dir/$ac_word; then
    731       ac_cv_prog_AWK="$ac_prog"
    732       break
    733     fi
    734   done
    735   IFS="$ac_save_ifs"
    736 fi
    737 fi
    738 AWK="$ac_cv_prog_AWK"
     1434  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1435ac_dummy="$PATH"
     1436for ac_dir in $ac_dummy; do
     1437  IFS=$ac_save_IFS
     1438  test -z "$ac_dir" && ac_dir=.
     1439  $as_executable_p "$ac_dir/$ac_word" || continue
     1440ac_cv_prog_AWK="$ac_prog"
     1441echo "$as_me:1441: found $ac_dir/$ac_word" >&5
     1442break
     1443done
     1444
     1445fi
     1446fi
     1447AWK=$ac_cv_prog_AWK
    7391448if test -n "$AWK"; then
    740   echo "$ac_t""$AWK" 1>&6
    741 else
    742   echo "$ac_t""no" 1>&6
    743 fi
    744 
    745 test -n "$AWK" && break
     1449  echo "$as_me:1449: result: $AWK" >&5
     1450echo "${ECHO_T}$AWK" >&6
     1451else
     1452  echo "$as_me:1452: result: no" >&5
     1453echo "${ECHO_T}no" >&6
     1454fi
     1455
     1456  test -n "$AWK" && break
    7461457done
    7471458
    7481459for ac_prog in 'bison -y' byacc
    7491460do
    750 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1461  # Extract the first word of "$ac_prog", so it can be a program name with args.
    7511462set dummy $ac_prog; ac_word=$2
    752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    753 echo "configure:754: checking for $ac_word" >&5
    754 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    755   echo $ac_n "(cached) $ac_c" 1>&6
     1463echo "$as_me:1463: checking for $ac_word" >&5
     1464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1465if test "${ac_cv_prog_YACC+set}" = set; then
     1466  echo $ECHO_N "(cached) $ECHO_C" >&6
    7561467else
    7571468  if test -n "$YACC"; then
    7581469  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    7591470else
    760   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    761   ac_dummy="$PATH"
    762   for ac_dir in $ac_dummy; do
    763     test -z "$ac_dir" && ac_dir=.
    764     if test -f $ac_dir/$ac_word; then
    765       ac_cv_prog_YACC="$ac_prog"
    766       break
    767     fi
    768   done
    769   IFS="$ac_save_ifs"
    770 fi
    771 fi
    772 YACC="$ac_cv_prog_YACC"
     1471  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1472ac_dummy="$PATH"
     1473for ac_dir in $ac_dummy; do
     1474  IFS=$ac_save_IFS
     1475  test -z "$ac_dir" && ac_dir=.
     1476  $as_executable_p "$ac_dir/$ac_word" || continue
     1477ac_cv_prog_YACC="$ac_prog"
     1478echo "$as_me:1478: found $ac_dir/$ac_word" >&5
     1479break
     1480done
     1481
     1482fi
     1483fi
     1484YACC=$ac_cv_prog_YACC
    7731485if test -n "$YACC"; then
    774   echo "$ac_t""$YACC" 1>&6
    775 else
    776   echo "$ac_t""no" 1>&6
    777 fi
    778 
    779 test -n "$YACC" && break
     1486  echo "$as_me:1486: result: $YACC" >&5
     1487echo "${ECHO_T}$YACC" >&6
     1488else
     1489  echo "$as_me:1489: result: no" >&5
     1490echo "${ECHO_T}no" >&6
     1491fi
     1492
     1493  test -n "$YACC" && break
    7801494done
    7811495test -n "$YACC" || YACC="yacc"
    7821496
    783 # Extract the first word of "gcc", so it can be a program name with args.
    784 set dummy gcc; ac_word=$2
    785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    786 echo "configure:787: checking for $ac_word" >&5
    787 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    788   echo $ac_n "(cached) $ac_c" 1>&6
     1497ac_ext=c
     1498ac_cpp='$CPP $CPPFLAGS'
     1499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1501ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1502if test -n "$ac_tool_prefix"; then
     1503  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1504set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1505echo "$as_me:1505: checking for $ac_word" >&5
     1506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1507if test "${ac_cv_prog_CC+set}" = set; then
     1508  echo $ECHO_N "(cached) $ECHO_C" >&6
    7891509else
    7901510  if test -n "$CC"; then
    7911511  ac_cv_prog_CC="$CC" # Let the user override the test.
    7921512else
    793   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    794   ac_dummy="$PATH"
    795   for ac_dir in $ac_dummy; do
    796     test -z "$ac_dir" && ac_dir=.
    797     if test -f $ac_dir/$ac_word; then
    798       ac_cv_prog_CC="gcc"
    799       break
    800     fi
    801   done
    802   IFS="$ac_save_ifs"
    803 fi
    804 fi
    805 CC="$ac_cv_prog_CC"
     1513  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1514ac_dummy="$PATH"
     1515for ac_dir in $ac_dummy; do
     1516  IFS=$ac_save_IFS
     1517  test -z "$ac_dir" && ac_dir=.
     1518  $as_executable_p "$ac_dir/$ac_word" || continue
     1519ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1520echo "$as_me:1520: found $ac_dir/$ac_word" >&5
     1521break
     1522done
     1523
     1524fi
     1525fi
     1526CC=$ac_cv_prog_CC
    8061527if test -n "$CC"; then
    807   echo "$ac_t""$CC" 1>&6
    808 else
    809   echo "$ac_t""no" 1>&6
    810 fi
    811 
     1528  echo "$as_me:1528: result: $CC" >&5
     1529echo "${ECHO_T}$CC" >&6
     1530else
     1531  echo "$as_me:1531: result: no" >&5
     1532echo "${ECHO_T}no" >&6
     1533fi
     1534
     1535fi
     1536if test -z "$ac_cv_prog_CC"; then
     1537  ac_ct_CC=$CC
     1538  # Extract the first word of "gcc", so it can be a program name with args.
     1539set dummy gcc; ac_word=$2
     1540echo "$as_me:1540: checking for $ac_word" >&5
     1541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1542if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1543  echo $ECHO_N "(cached) $ECHO_C" >&6
     1544else
     1545  if test -n "$ac_ct_CC"; then
     1546  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1547else
     1548  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1549ac_dummy="$PATH"
     1550for ac_dir in $ac_dummy; do
     1551  IFS=$ac_save_IFS
     1552  test -z "$ac_dir" && ac_dir=.
     1553  $as_executable_p "$ac_dir/$ac_word" || continue
     1554ac_cv_prog_ac_ct_CC="gcc"
     1555echo "$as_me:1555: found $ac_dir/$ac_word" >&5
     1556break
     1557done
     1558
     1559fi
     1560fi
     1561ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1562if test -n "$ac_ct_CC"; then
     1563  echo "$as_me:1563: result: $ac_ct_CC" >&5
     1564echo "${ECHO_T}$ac_ct_CC" >&6
     1565else
     1566  echo "$as_me:1566: result: no" >&5
     1567echo "${ECHO_T}no" >&6
     1568fi
     1569
     1570  CC=$ac_ct_CC
     1571else
     1572  CC="$ac_cv_prog_CC"
     1573fi
     1574
     1575if test -z "$CC"; then
     1576  if test -n "$ac_tool_prefix"; then
     1577  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1578set dummy ${ac_tool_prefix}cc; ac_word=$2
     1579echo "$as_me:1579: checking for $ac_word" >&5
     1580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1581if test "${ac_cv_prog_CC+set}" = set; then
     1582  echo $ECHO_N "(cached) $ECHO_C" >&6
     1583else
     1584  if test -n "$CC"; then
     1585  ac_cv_prog_CC="$CC" # Let the user override the test.
     1586else
     1587  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1588ac_dummy="$PATH"
     1589for ac_dir in $ac_dummy; do
     1590  IFS=$ac_save_IFS
     1591  test -z "$ac_dir" && ac_dir=.
     1592  $as_executable_p "$ac_dir/$ac_word" || continue
     1593ac_cv_prog_CC="${ac_tool_prefix}cc"
     1594echo "$as_me:1594: found $ac_dir/$ac_word" >&5
     1595break
     1596done
     1597
     1598fi
     1599fi
     1600CC=$ac_cv_prog_CC
     1601if test -n "$CC"; then
     1602  echo "$as_me:1602: result: $CC" >&5
     1603echo "${ECHO_T}$CC" >&6
     1604else
     1605  echo "$as_me:1605: result: no" >&5
     1606echo "${ECHO_T}no" >&6
     1607fi
     1608
     1609fi
     1610if test -z "$ac_cv_prog_CC"; then
     1611  ac_ct_CC=$CC
     1612  # Extract the first word of "cc", so it can be a program name with args.
     1613set dummy cc; ac_word=$2
     1614echo "$as_me:1614: checking for $ac_word" >&5
     1615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1617  echo $ECHO_N "(cached) $ECHO_C" >&6
     1618else
     1619  if test -n "$ac_ct_CC"; then
     1620  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1621else
     1622  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1623ac_dummy="$PATH"
     1624for ac_dir in $ac_dummy; do
     1625  IFS=$ac_save_IFS
     1626  test -z "$ac_dir" && ac_dir=.
     1627  $as_executable_p "$ac_dir/$ac_word" || continue
     1628ac_cv_prog_ac_ct_CC="cc"
     1629echo "$as_me:1629: found $ac_dir/$ac_word" >&5
     1630break
     1631done
     1632
     1633fi
     1634fi
     1635ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1636if test -n "$ac_ct_CC"; then
     1637  echo "$as_me:1637: result: $ac_ct_CC" >&5
     1638echo "${ECHO_T}$ac_ct_CC" >&6
     1639else
     1640  echo "$as_me:1640: result: no" >&5
     1641echo "${ECHO_T}no" >&6
     1642fi
     1643
     1644  CC=$ac_ct_CC
     1645else
     1646  CC="$ac_cv_prog_CC"
     1647fi
     1648
     1649fi
    8121650if test -z "$CC"; then
    8131651  # Extract the first word of "cc", so it can be a program name with args.
    8141652set dummy cc; ac_word=$2
    815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    816 echo "configure:817: checking for $ac_word" >&5
    817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    818   echo $ac_n "(cached) $ac_c" 1>&6
     1653echo "$as_me:1653: checking for $ac_word" >&5
     1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1655if test "${ac_cv_prog_CC+set}" = set; then
     1656  echo $ECHO_N "(cached) $ECHO_C" >&6
    8191657else
    8201658  if test -n "$CC"; then
    8211659  ac_cv_prog_CC="$CC" # Let the user override the test.
    8221660else
    823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    8241661  ac_prog_rejected=no
    825   ac_dummy="$PATH"
    826   for ac_dir in $ac_dummy; do
    827     test -z "$ac_dir" && ac_dir=.
    828     if test -f $ac_dir/$ac_word; then
    829       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    830         ac_prog_rejected=yes
    831     continue
    832       fi
    833       ac_cv_prog_CC="cc"
    834       break
    835     fi
    836   done
    837   IFS="$ac_save_ifs"
     1662  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1663ac_dummy="$PATH"
     1664for ac_dir in $ac_dummy; do
     1665  IFS=$ac_save_IFS
     1666  test -z "$ac_dir" && ac_dir=.
     1667  $as_executable_p "$ac_dir/$ac_word" || continue
     1668if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     1669  ac_prog_rejected=yes
     1670  continue
     1671fi
     1672ac_cv_prog_CC="cc"
     1673echo "$as_me:1673: found $ac_dir/$ac_word" >&5
     1674break
     1675done
     1676
    8381677if test $ac_prog_rejected = yes; then
    8391678  # We found a bogon in the path, so make sure we never use it.
    8401679  set dummy $ac_cv_prog_CC
    8411680  shift
    842   if test $# -gt 0; then
     1681  if test $# != 0; then
    8431682    # We chose a different compiler from the bogus one.
    8441683    # However, it has the same basename, so the bogon will be chosen
    8451684    # first if we set CC to just the basename; use the full file name.
    8461685    shift
    847     set dummy "$ac_dir/$ac_word" "$@"
     1686    set dummy "$ac_dir/$ac_word" ${1+"$@"}
    8481687    shift
    8491688    ac_cv_prog_CC="$@"
     
    8521691fi
    8531692fi
    854 CC="$ac_cv_prog_CC"
     1693CC=$ac_cv_prog_CC
    8551694if test -n "$CC"; then
    856   echo "$ac_t""$CC" 1>&6
    857 else
    858   echo "$ac_t""no" 1>&6
    859 fi
    860 
    861   if test -z "$CC"; then
    862     case "`uname -s`" in
    863     *win32* | *WIN32*)
    864       # Extract the first word of "cl", so it can be a program name with args.
    865 set dummy cl; ac_word=$2
    866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    867 echo "configure:868: checking for $ac_word" >&5
    868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    869   echo $ac_n "(cached) $ac_c" 1>&6
     1695  echo "$as_me:1695: result: $CC" >&5
     1696echo "${ECHO_T}$CC" >&6
     1697else
     1698  echo "$as_me:1698: result: no" >&5
     1699echo "${ECHO_T}no" >&6
     1700fi
     1701
     1702fi
     1703if test -z "$CC"; then
     1704  if test -n "$ac_tool_prefix"; then
     1705  for ac_prog in cl
     1706  do
     1707    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1709echo "$as_me:1709: checking for $ac_word" >&5
     1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1711if test "${ac_cv_prog_CC+set}" = set; then
     1712  echo $ECHO_N "(cached) $ECHO_C" >&6
    8701713else
    8711714  if test -n "$CC"; then
    8721715  ac_cv_prog_CC="$CC" # Let the user override the test.
    8731716else
    874   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    875   ac_dummy="$PATH"
    876   for ac_dir in $ac_dummy; do
    877     test -z "$ac_dir" && ac_dir=.
    878     if test -f $ac_dir/$ac_word; then
    879       ac_cv_prog_CC="cl"
    880       break
    881     fi
     1717  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1718ac_dummy="$PATH"
     1719for ac_dir in $ac_dummy; do
     1720  IFS=$ac_save_IFS
     1721  test -z "$ac_dir" && ac_dir=.
     1722  $as_executable_p "$ac_dir/$ac_word" || continue
     1723ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1724echo "$as_me:1724: found $ac_dir/$ac_word" >&5
     1725break
     1726done
     1727
     1728fi
     1729fi
     1730CC=$ac_cv_prog_CC
     1731if test -n "$CC"; then
     1732  echo "$as_me:1732: result: $CC" >&5
     1733echo "${ECHO_T}$CC" >&6
     1734else
     1735  echo "$as_me:1735: result: no" >&5
     1736echo "${ECHO_T}no" >&6
     1737fi
     1738
     1739    test -n "$CC" && break
    8821740  done
    883   IFS="$ac_save_ifs"
    884 fi
    885 fi
    886 CC="$ac_cv_prog_CC"
    887 if test -n "$CC"; then
    888   echo "$ac_t""$CC" 1>&6
    889 else
    890   echo "$ac_t""no" 1>&6
    891 fi
    892  ;;
    893     esac
    894   fi
    895   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    896 fi
    897 
    898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    899 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    900 
    901 ac_ext=c
    902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    903 ac_cpp='$CPP $CPPFLAGS'
    904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    906 cross_compiling=$ac_cv_prog_cc_cross
    907 
    908 cat > conftest.$ac_ext << EOF
    909 
    910 #line 911 "configure"
    911 #include "confdefs.h"
    912 
    913 main(){return(0);}
    914 EOF
    915 if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    916   ac_cv_prog_cc_works=yes
    917   # If we can't run a trivial program, we are probably using a cross compiler.
    918   if (./conftest; exit) 2>/dev/null; then
    919     ac_cv_prog_cc_cross=no
    920   else
    921     ac_cv_prog_cc_cross=yes
    922   fi
    923 else
    924   echo "configure: failed program was:" >&5
    925   cat conftest.$ac_ext >&5
    926   ac_cv_prog_cc_works=no
    927 fi
    928 rm -fr conftest*
    929 ac_ext=c
    930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    931 ac_cpp='$CPP $CPPFLAGS'
    932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    934 cross_compiling=$ac_cv_prog_cc_cross
    935 
    936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    937 if test $ac_cv_prog_cc_works = no; then
    938   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    939 fi
    940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    943 cross_compiling=$ac_cv_prog_cc_cross
    944 
    945 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    946 echo "configure:947: checking whether we are using GNU C" >&5
    947 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    948   echo $ac_n "(cached) $ac_c" 1>&6
    949 else
    950   cat > conftest.c <<EOF
    951 #ifdef __GNUC__
    952   yes;
     1741fi
     1742if test -z "$CC"; then
     1743  ac_ct_CC=$CC
     1744  for ac_prog in cl
     1745do
     1746  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1747set dummy $ac_prog; ac_word=$2
     1748echo "$as_me:1748: checking for $ac_word" >&5
     1749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1751  echo $ECHO_N "(cached) $ECHO_C" >&6
     1752else
     1753  if test -n "$ac_ct_CC"; then
     1754  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1755else
     1756  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1757ac_dummy="$PATH"
     1758for ac_dir in $ac_dummy; do
     1759  IFS=$ac_save_IFS
     1760  test -z "$ac_dir" && ac_dir=.
     1761  $as_executable_p "$ac_dir/$ac_word" || continue
     1762ac_cv_prog_ac_ct_CC="$ac_prog"
     1763echo "$as_me:1763: found $ac_dir/$ac_word" >&5
     1764break
     1765done
     1766
     1767fi
     1768fi
     1769ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1770if test -n "$ac_ct_CC"; then
     1771  echo "$as_me:1771: result: $ac_ct_CC" >&5
     1772echo "${ECHO_T}$ac_ct_CC" >&6
     1773else
     1774  echo "$as_me:1774: result: no" >&5
     1775echo "${ECHO_T}no" >&6
     1776fi
     1777
     1778  test -n "$ac_ct_CC" && break
     1779done
     1780
     1781  CC=$ac_ct_CC
     1782fi
     1783
     1784fi
     1785
     1786test -z "$CC" && { { echo "$as_me:1786: error: no acceptable cc found in \$PATH" >&5
     1787echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
     1788   { (exit 1); exit 1; }; }
     1789
     1790echo "$as_me:1790: checking whether we are using the GNU C compiler" >&5
     1791echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1792if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1793  echo $ECHO_N "(cached) $ECHO_C" >&6
     1794else
     1795  cat >conftest.$ac_ext <<_ACEOF
     1796#line 1796 "configure"
     1797#include "confdefs.h"
     1798
     1799int
     1800main ()
     1801{
     1802#ifndef __GNUC__
     1803       choke me
    9531804#endif
    954 EOF
    955 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    956   ac_cv_prog_gcc=yes
    957 else
    958   ac_cv_prog_gcc=no
    959 fi
    960 fi
    961 
    962 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    963 
    964 if test $ac_cv_prog_gcc = yes; then
    965   GCC=yes
    966 else
    967   GCC=
    968 fi
    969 
    970 ac_test_CFLAGS="${CFLAGS+set}"
    971 ac_save_CFLAGS="$CFLAGS"
    972 CFLAGS=
    973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
    975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    976   echo $ac_n "(cached) $ac_c" 1>&6
    977 else
    978   echo 'void f(){}' > conftest.c
    979 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1805
     1806  ;
     1807  return 0;
     1808}
     1809_ACEOF
     1810rm -f conftest.$ac_objext
     1811if { (eval echo "$as_me:1811: \"$ac_compile\"") >&5
     1812  (eval $ac_compile) 2>&5
     1813  ac_status=$?
     1814  echo "$as_me:1814: \$? = $ac_status" >&5
     1815  (exit $ac_status); } &&
     1816         { ac_try='test -s conftest.$ac_objext'
     1817  { (eval echo "$as_me:1817: \"$ac_try\"") >&5
     1818  (eval $ac_try) 2>&5
     1819  ac_status=$?
     1820  echo "$as_me:1820: \$? = $ac_status" >&5
     1821  (exit $ac_status); }; }; then
     1822  ac_compiler_gnu=yes
     1823else
     1824  echo "$as_me: failed program was:" >&5
     1825cat conftest.$ac_ext >&5
     1826ac_compiler_gnu=no
     1827fi
     1828rm -f conftest.$ac_objext conftest.$ac_ext
     1829ac_cv_c_compiler_gnu=$ac_compiler_gnu
     1830
     1831fi
     1832echo "$as_me:1832: result: $ac_cv_c_compiler_gnu" >&5
     1833echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     1834GCC=`test $ac_compiler_gnu = yes && echo yes`
     1835ac_test_CFLAGS=${CFLAGS+set}
     1836ac_save_CFLAGS=$CFLAGS
     1837CFLAGS="-g"
     1838echo "$as_me:1838: checking whether $CC accepts -g" >&5
     1839echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     1840if test "${ac_cv_prog_cc_g+set}" = set; then
     1841  echo $ECHO_N "(cached) $ECHO_C" >&6
     1842else
     1843  cat >conftest.$ac_ext <<_ACEOF
     1844#line 1844 "configure"
     1845#include "confdefs.h"
     1846
     1847int
     1848main ()
     1849{
     1850
     1851  ;
     1852  return 0;
     1853}
     1854_ACEOF
     1855rm -f conftest.$ac_objext
     1856if { (eval echo "$as_me:1856: \"$ac_compile\"") >&5
     1857  (eval $ac_compile) 2>&5
     1858  ac_status=$?
     1859  echo "$as_me:1859: \$? = $ac_status" >&5
     1860  (exit $ac_status); } &&
     1861         { ac_try='test -s conftest.$ac_objext'
     1862  { (eval echo "$as_me:1862: \"$ac_try\"") >&5
     1863  (eval $ac_try) 2>&5
     1864  ac_status=$?
     1865  echo "$as_me:1865: \$? = $ac_status" >&5
     1866  (exit $ac_status); }; }; then
    9801867  ac_cv_prog_cc_g=yes
    9811868else
    982   ac_cv_prog_cc_g=no
    983 fi
    984 rm -f conftest*
    985 
    986 fi
    987 
    988 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     1869  echo "$as_me: failed program was:" >&5
     1870cat conftest.$ac_ext >&5
     1871ac_cv_prog_cc_g=no
     1872fi
     1873rm -f conftest.$ac_objext conftest.$ac_ext
     1874fi
     1875echo "$as_me:1875: result: $ac_cv_prog_cc_g" >&5
     1876echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    9891877if test "$ac_test_CFLAGS" = set; then
    990   CFLAGS="$ac_save_CFLAGS"
     1878  CFLAGS=$ac_save_CFLAGS
    9911879elif test $ac_cv_prog_cc_g = yes; then
    9921880  if test "$GCC" = yes; then
     
    10021890  fi
    10031891fi
     1892# Some people use a C++ compiler to compile C.  Since we use `exit',
     1893# in C++ we need to declare it.  In case someone uses the same compiler
     1894# for both compiling C and C++ we need to have the C++ compiler decide
     1895# the declaration of exit, since it's the most demanding environment.
     1896cat >conftest.$ac_ext <<_ACEOF
     1897#ifndef __cplusplus
     1898  choke me
     1899#endif
     1900_ACEOF
     1901rm -f conftest.$ac_objext
     1902if { (eval echo "$as_me:1902: \"$ac_compile\"") >&5
     1903  (eval $ac_compile) 2>&5
     1904  ac_status=$?
     1905  echo "$as_me:1905: \$? = $ac_status" >&5
     1906  (exit $ac_status); } &&
     1907         { ac_try='test -s conftest.$ac_objext'
     1908  { (eval echo "$as_me:1908: \"$ac_try\"") >&5
     1909  (eval $ac_try) 2>&5
     1910  ac_status=$?
     1911  echo "$as_me:1911: \$? = $ac_status" >&5
     1912  (exit $ac_status); }; }; then
     1913  for ac_declaration in \
     1914   ''\
     1915   '#include <stdlib.h>' \
     1916   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1917   'extern "C" void std::exit (int); using std::exit;' \
     1918   'extern "C" void exit (int) throw ();' \
     1919   'extern "C" void exit (int);' \
     1920   'void exit (int);'
     1921do
     1922  cat >conftest.$ac_ext <<_ACEOF
     1923#line 1923 "configure"
     1924#include "confdefs.h"
     1925#include <stdlib.h>
     1926$ac_declaration
     1927int
     1928main ()
     1929{
     1930exit (42);
     1931  ;
     1932  return 0;
     1933}
     1934_ACEOF
     1935rm -f conftest.$ac_objext
     1936if { (eval echo "$as_me:1936: \"$ac_compile\"") >&5
     1937  (eval $ac_compile) 2>&5
     1938  ac_status=$?
     1939  echo "$as_me:1939: \$? = $ac_status" >&5
     1940  (exit $ac_status); } &&
     1941         { ac_try='test -s conftest.$ac_objext'
     1942  { (eval echo "$as_me:1942: \"$ac_try\"") >&5
     1943  (eval $ac_try) 2>&5
     1944  ac_status=$?
     1945  echo "$as_me:1945: \$? = $ac_status" >&5
     1946  (exit $ac_status); }; }; then
     1947  :
     1948else
     1949  echo "$as_me: failed program was:" >&5
     1950cat conftest.$ac_ext >&5
     1951continue
     1952fi
     1953rm -f conftest.$ac_objext conftest.$ac_ext
     1954  cat >conftest.$ac_ext <<_ACEOF
     1955#line 1955 "configure"
     1956#include "confdefs.h"
     1957$ac_declaration
     1958int
     1959main ()
     1960{
     1961exit (42);
     1962  ;
     1963  return 0;
     1964}
     1965_ACEOF
     1966rm -f conftest.$ac_objext
     1967if { (eval echo "$as_me:1967: \"$ac_compile\"") >&5
     1968  (eval $ac_compile) 2>&5
     1969  ac_status=$?
     1970  echo "$as_me:1970: \$? = $ac_status" >&5
     1971  (exit $ac_status); } &&
     1972         { ac_try='test -s conftest.$ac_objext'
     1973  { (eval echo "$as_me:1973: \"$ac_try\"") >&5
     1974  (eval $ac_try) 2>&5
     1975  ac_status=$?
     1976  echo "$as_me:1976: \$? = $ac_status" >&5
     1977  (exit $ac_status); }; }; then
     1978  break
     1979else
     1980  echo "$as_me: failed program was:" >&5
     1981cat conftest.$ac_ext >&5
     1982fi
     1983rm -f conftest.$ac_objext conftest.$ac_ext
     1984done
     1985echo '#ifdef __cplusplus' >>confdefs.h
     1986echo $ac_declaration      >>confdefs.h
     1987echo '#endif'             >>confdefs.h
     1988
     1989else
     1990  echo "$as_me: failed program was:" >&5
     1991cat conftest.$ac_ext >&5
     1992fi
     1993rm -f conftest.$ac_objext conftest.$ac_ext
     1994ac_ext=c
     1995ac_cpp='$CPP $CPPFLAGS'
     1996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1998ac_compiler_gnu=$ac_cv_c_compiler_gnu
    10041999
    10052000ac_aux_dir=
     
    10132008    ac_install_sh="$ac_aux_dir/install.sh -c"
    10142009    break
     2010  elif test -f $ac_dir/shtool; then
     2011    ac_aux_dir=$ac_dir
     2012    ac_install_sh="$ac_aux_dir/shtool install -c"
     2013    break
    10152014  fi
    10162015done
    10172016if test -z "$ac_aux_dir"; then
    1018   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    1019 fi
    1020 ac_config_guess=$ac_aux_dir/config.guess
    1021 ac_config_sub=$ac_aux_dir/config.sub
    1022 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     2017  { { echo "$as_me:2017: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2018echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2019   { (exit 1); exit 1; }; }
     2020fi
     2021ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2022ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2023ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    10232024
    10242025# Find a good install program.  We prefer a C program (faster),
     
    10292030# IRIX /sbin/install
    10302031# AIX /bin/install
     2032# AmigaOS /C/install, which installs bootblocks on floppy discs
    10312033# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    10322034# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    10332035# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    10342036# ./install, which can be erroneously created by make from ./install.sh.
    1035 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1036 echo "configure:1037: checking for a BSD compatible install" >&5
     2037echo "$as_me:2037: checking for a BSD compatible install" >&5
     2038echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    10372039if test -z "$INSTALL"; then
    1038 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1039   echo $ac_n "(cached) $ac_c" 1>&6
    1040 else
    1041     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
     2040if test "${ac_cv_path_install+set}" = set; then
     2041  echo $ECHO_N "(cached) $ECHO_C" >&6
     2042else
     2043    ac_save_IFS=$IFS; IFS=$ac_path_separator
    10422044  for ac_dir in $PATH; do
     2045    IFS=$ac_save_IFS
    10432046    # Account for people who put trailing slashes in PATH elements.
    1044     case "$ac_dir/" in
    1045     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     2047    case $ac_dir/ in
     2048    / | ./ | .// | /cC/* \
     2049    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
     2050    | /usr/ucb/* ) ;;
    10462051    *)
    10472052      # OSF1 and SCO ODT 3.0 have their own names for install.
     
    10492054      # by default.
    10502055      for ac_prog in ginstall scoinst install; do
    1051         if test -f $ac_dir/$ac_prog; then
     2056        if $as_executable_p "$ac_dir/$ac_prog"; then
    10522057      if test $ac_prog = install &&
    1053             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     2058            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    10542059        # AIX install.  It has an incompatible calling convention.
     2060        :
     2061      elif test $ac_prog = install &&
     2062        grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
     2063        # program-specific install script used by HP pwplus--don't use.
    10552064        :
    10562065      else
     
    10632072    esac
    10642073  done
    1065   IFS="$ac_save_IFS"
    10662074
    10672075fi
    10682076  if test "${ac_cv_path_install+set}" = set; then
    1069     INSTALL="$ac_cv_path_install"
     2077    INSTALL=$ac_cv_path_install
    10702078  else
    10712079    # As a last resort, use the slow shell script.  We don't cache a
     
    10732081    # break other packages using the cache if that directory is
    10742082    # removed, or if the path is relative.
    1075     INSTALL="$ac_install_sh"
     2083    INSTALL=$ac_install_sh
    10762084  fi
    10772085fi
    1078 echo "$ac_t""$INSTALL" 1>&6
     2086echo "$as_me:2086: result: $INSTALL" >&5
     2087echo "${ECHO_T}$INSTALL" >&6
    10792088
    10802089# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    10822091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    10832092
    1084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     2093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    10852094
    10862095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    10872096
    1088 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1089 echo "configure:1090: checking whether ln -s works" >&5
    1090 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1091   echo $ac_n "(cached) $ac_c" 1>&6
    1092 else
    1093   rm -f conftestdata
    1094 if ln -s X conftestdata 2>/dev/null
    1095 then
    1096   rm -f conftestdata
    1097   ac_cv_prog_LN_S="ln -s"
    1098 else
    1099   ac_cv_prog_LN_S=ln
    1100 fi
    1101 fi
    1102 LN_S="$ac_cv_prog_LN_S"
    1103 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1104   echo "$ac_t""yes" 1>&6
    1105 else
    1106   echo "$ac_t""no" 1>&6
    1107 fi
    1108 
    1109 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1110 echo "configure:1111: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1111 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1112 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1113   echo $ac_n "(cached) $ac_c" 1>&6
    1114 else
    1115   cat > conftestmake <<\EOF
     2097echo "$as_me:2097: checking whether ln -s works" >&5
     2098echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2099LN_S=$as_ln_s
     2100if test "$LN_S" = "ln -s"; then
     2101  echo "$as_me:2101: result: yes" >&5
     2102echo "${ECHO_T}yes" >&6
     2103else
     2104  echo "$as_me:2104: result: no, using $LN_S" >&5
     2105echo "${ECHO_T}no, using $LN_S" >&6
     2106fi
     2107
     2108echo "$as_me:2108: checking whether ${MAKE-make} sets \${MAKE}" >&5
     2109echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
     2110set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
     2111if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2112  echo $ECHO_N "(cached) $ECHO_C" >&6
     2113else
     2114  cat >conftest.make <<\EOF
    11162115all:
    11172116    @echo 'ac_maketemp="${MAKE}"'
    11182117EOF
    11192118# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1120 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     2119eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    11212120if test -n "$ac_maketemp"; then
    11222121  eval ac_cv_prog_make_${ac_make}_set=yes
     
    11242123  eval ac_cv_prog_make_${ac_make}_set=no
    11252124fi
    1126 rm -f conftestmake
     2125rm -f conftest.make
    11272126fi
    11282127if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1129   echo "$ac_t""yes" 1>&6
     2128  echo "$as_me:2128: result: yes" >&5
     2129echo "${ECHO_T}yes" >&6
    11302130  SET_MAKE=
    11312131else
    1132   echo "$ac_t""no" 1>&6
     2132  echo "$as_me:2132: result: no" >&5
     2133echo "${ECHO_T}no" >&6
    11332134  SET_MAKE="MAKE=${MAKE-make}"
    11342135fi
    11352136
    1136 # Extract the first word of "ranlib", so it can be a program name with args.
    1137 set dummy ranlib; ac_word=$2
    1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1139 echo "configure:1140: checking for $ac_word" >&5
    1140 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    1141   echo $ac_n "(cached) $ac_c" 1>&6
     2137if test -n "$ac_tool_prefix"; then
     2138  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2139set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2140echo "$as_me:2140: checking for $ac_word" >&5
     2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2142if test "${ac_cv_prog_RANLIB+set}" = set; then
     2143  echo $ECHO_N "(cached) $ECHO_C" >&6
    11422144else
    11432145  if test -n "$RANLIB"; then
    11442146  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    11452147else
    1146   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1147   ac_dummy="$PATH"
    1148   for ac_dir in $ac_dummy; do
    1149     test -z "$ac_dir" && ac_dir=.
    1150     if test -f $ac_dir/$ac_word; then
    1151       ac_cv_prog_RANLIB="ranlib"
    1152       break
    1153     fi
    1154   done
    1155   IFS="$ac_save_ifs"
    1156   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    1157 fi
    1158 fi
    1159 RANLIB="$ac_cv_prog_RANLIB"
     2148  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2149ac_dummy="$PATH"
     2150for ac_dir in $ac_dummy; do
     2151  IFS=$ac_save_IFS
     2152  test -z "$ac_dir" && ac_dir=.
     2153  $as_executable_p "$ac_dir/$ac_word" || continue
     2154ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2155echo "$as_me:2155: found $ac_dir/$ac_word" >&5
     2156break
     2157done
     2158
     2159fi
     2160fi
     2161RANLIB=$ac_cv_prog_RANLIB
    11602162if test -n "$RANLIB"; then
    1161   echo "$ac_t""$RANLIB" 1>&6
    1162 else
    1163   echo "$ac_t""no" 1>&6
    1164 fi
    1165 
    1166 
    1167 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1168 echo "configure:1169: checking how to run the C preprocessor" >&5
     2163  echo "$as_me:2163: result: $RANLIB" >&5
     2164echo "${ECHO_T}$RANLIB" >&6
     2165else
     2166  echo "$as_me:2166: result: no" >&5
     2167echo "${ECHO_T}no" >&6
     2168fi
     2169
     2170fi
     2171if test -z "$ac_cv_prog_RANLIB"; then
     2172  ac_ct_RANLIB=$RANLIB
     2173  # Extract the first word of "ranlib", so it can be a program name with args.
     2174set dummy ranlib; ac_word=$2
     2175echo "$as_me:2175: checking for $ac_word" >&5
     2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2177if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2178  echo $ECHO_N "(cached) $ECHO_C" >&6
     2179else
     2180  if test -n "$ac_ct_RANLIB"; then
     2181  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2182else
     2183  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2184ac_dummy="$PATH"
     2185for ac_dir in $ac_dummy; do
     2186  IFS=$ac_save_IFS
     2187  test -z "$ac_dir" && ac_dir=.
     2188  $as_executable_p "$ac_dir/$ac_word" || continue
     2189ac_cv_prog_ac_ct_RANLIB="ranlib"
     2190echo "$as_me:2190: found $ac_dir/$ac_word" >&5
     2191break
     2192done
     2193
     2194  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2195fi
     2196fi
     2197ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2198if test -n "$ac_ct_RANLIB"; then
     2199  echo "$as_me:2199: result: $ac_ct_RANLIB" >&5
     2200echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2201else
     2202  echo "$as_me:2202: result: no" >&5
     2203echo "${ECHO_T}no" >&6
     2204fi
     2205
     2206  RANLIB=$ac_ct_RANLIB
     2207else
     2208  RANLIB="$ac_cv_prog_RANLIB"
     2209fi
     2210
     2211ac_ext=c
     2212ac_cpp='$CPP $CPPFLAGS'
     2213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2215ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2216echo "$as_me:2216: checking how to run the C preprocessor" >&5
     2217echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    11692218# On Suns, sometimes $CPP names a directory.
    11702219if test -n "$CPP" && test -d "$CPP"; then
     
    11722221fi
    11732222if test -z "$CPP"; then
    1174 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1175   echo $ac_n "(cached) $ac_c" 1>&6
    1176 else
    1177     # This must be in double quotes, not single quotes, because CPP may get
    1178   # substituted into the Makefile and "${CC-cc}" will confuse make.
    1179   CPP="${CC-cc} -E"
     2223  if test "${ac_cv_prog_CPP+set}" = set; then
     2224  echo $ECHO_N "(cached) $ECHO_C" >&6
     2225else
     2226      # Double quotes because CPP needs to be expanded
     2227    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2228    do
     2229      # break 2 since there is a loop in there.
     2230      ac_preproc_ok=false
     2231for ac_c_preproc_warn_flag in '' yes
     2232do
     2233  # Use a header file that comes with gcc, so configuring glibc
     2234  # with a fresh cross-compiler works.
    11802235  # On the NeXT, cc -E runs the code through the compiler's parser,
    1181   # not just through cpp.
    1182   cat > conftest.$ac_ext <<EOF
    1183 #line 1184 "configure"
     2236  # not just through cpp. "Syntax error" is here to catch this case.
     2237  cat >conftest.$ac_ext <<_ACEOF
     2238#line 2238 "configure"
    11842239#include "confdefs.h"
    11852240#include <assert.h>
    1186 Syntax Error
    1187 EOF
    1188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1191 if test -z "$ac_err"; then
     2241                     Syntax error
     2242_ACEOF
     2243if { (eval echo "$as_me:2243: \"$ac_cpp conftest.$ac_ext\"") >&5
     2244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2245  ac_status=$?
     2246  egrep -v '^ *\+' conftest.er1 >conftest.err
     2247  rm -f conftest.er1
     2248  cat conftest.err >&5
     2249  echo "$as_me:2249: \$? = $ac_status" >&5
     2250  (exit $ac_status); } >/dev/null; then
     2251  if test -s conftest.err; then
     2252    ac_cpp_err=$ac_c_preproc_warn_flag
     2253  else
     2254    ac_cpp_err=
     2255  fi
     2256else
     2257  ac_cpp_err=yes
     2258fi
     2259if test -z "$ac_cpp_err"; then
    11922260  :
    11932261else
    1194   echo "$ac_err" >&5
    1195   echo "configure: failed program was:" >&5
     2262  echo "$as_me: failed program was:" >&5
    11962263  cat conftest.$ac_ext >&5
    1197   rm -rf conftest*
    1198   CPP="${CC-cc} -E -traditional-cpp"
    1199   cat > conftest.$ac_ext <<EOF
    1200 #line 1201 "configure"
     2264  # Broken: fails on valid input.
     2265continue
     2266fi
     2267rm -f conftest.err conftest.$ac_ext
     2268
     2269  # OK, works on sane cases.  Now check whether non-existent headers
     2270  # can be detected and how.
     2271  cat >conftest.$ac_ext <<_ACEOF
     2272#line 2272 "configure"
     2273#include "confdefs.h"
     2274#include <ac_nonexistent.h>
     2275_ACEOF
     2276if { (eval echo "$as_me:2276: \"$ac_cpp conftest.$ac_ext\"") >&5
     2277  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2278  ac_status=$?
     2279  egrep -v '^ *\+' conftest.er1 >conftest.err
     2280  rm -f conftest.er1
     2281  cat conftest.err >&5
     2282  echo "$as_me:2282: \$? = $ac_status" >&5
     2283  (exit $ac_status); } >/dev/null; then
     2284  if test -s conftest.err; then
     2285    ac_cpp_err=$ac_c_preproc_warn_flag
     2286  else
     2287    ac_cpp_err=
     2288  fi
     2289else
     2290  ac_cpp_err=yes
     2291fi
     2292if test -z "$ac_cpp_err"; then
     2293  # Broken: success on invalid input.
     2294continue
     2295else
     2296  echo "$as_me: failed program was:" >&5
     2297  cat conftest.$ac_ext >&5
     2298  # Passes both tests.
     2299ac_preproc_ok=:
     2300break
     2301fi
     2302rm -f conftest.err conftest.$ac_ext
     2303
     2304done
     2305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2306rm -f conftest.err conftest.$ac_ext
     2307if $ac_preproc_ok; then
     2308  break 2
     2309fi
     2310
     2311    done
     2312    ac_cv_prog_CPP=$CPP
     2313
     2314fi
     2315  CPP=$ac_cv_prog_CPP
     2316else
     2317  ac_cv_prog_CPP=$CPP
     2318fi
     2319echo "$as_me:2319: result: $CPP" >&5
     2320echo "${ECHO_T}$CPP" >&6
     2321ac_preproc_ok=false
     2322for ac_c_preproc_warn_flag in '' yes
     2323do
     2324  # Use a header file that comes with gcc, so configuring glibc
     2325  # with a fresh cross-compiler works.
     2326  # On the NeXT, cc -E runs the code through the compiler's parser,
     2327  # not just through cpp. "Syntax error" is here to catch this case.
     2328  cat >conftest.$ac_ext <<_ACEOF
     2329#line 2329 "configure"
    12012330#include "confdefs.h"
    12022331#include <assert.h>
    1203 Syntax Error
    1204 EOF
    1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1208 if test -z "$ac_err"; then
     2332                     Syntax error
     2333_ACEOF
     2334if { (eval echo "$as_me:2334: \"$ac_cpp conftest.$ac_ext\"") >&5
     2335  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2336  ac_status=$?
     2337  egrep -v '^ *\+' conftest.er1 >conftest.err
     2338  rm -f conftest.er1
     2339  cat conftest.err >&5
     2340  echo "$as_me:2340: \$? = $ac_status" >&5
     2341  (exit $ac_status); } >/dev/null; then
     2342  if test -s conftest.err; then
     2343    ac_cpp_err=$ac_c_preproc_warn_flag
     2344  else
     2345    ac_cpp_err=
     2346  fi
     2347else
     2348  ac_cpp_err=yes
     2349fi
     2350if test -z "$ac_cpp_err"; then
    12092351  :
    12102352else
    1211   echo "$ac_err" >&5
    1212   echo "configure: failed program was:" >&5
     2353  echo "$as_me: failed program was:" >&5
    12132354  cat conftest.$ac_ext >&5
    1214   rm -rf conftest*
    1215   CPP="${CC-cc} -nologo -E"
    1216   cat > conftest.$ac_ext <<EOF
    1217 #line 1218 "configure"
    1218 #include "confdefs.h"
    1219 #include <assert.h>
    1220 Syntax Error
    1221 EOF
    1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1225 if test -z "$ac_err"; then
     2355  # Broken: fails on valid input.
     2356continue
     2357fi
     2358rm -f conftest.err conftest.$ac_ext
     2359
     2360  # OK, works on sane cases.  Now check whether non-existent headers
     2361  # can be detected and how.
     2362  cat >conftest.$ac_ext <<_ACEOF
     2363#line 2363 "configure"
     2364#include "confdefs.h"
     2365#include <ac_nonexistent.h>
     2366_ACEOF
     2367if { (eval echo "$as_me:2367: \"$ac_cpp conftest.$ac_ext\"") >&5
     2368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2369  ac_status=$?
     2370  egrep -v '^ *\+' conftest.er1 >conftest.err
     2371  rm -f conftest.er1
     2372  cat conftest.err >&5
     2373  echo "$as_me:2373: \$? = $ac_status" >&5
     2374  (exit $ac_status); } >/dev/null; then
     2375  if test -s conftest.err; then
     2376    ac_cpp_err=$ac_c_preproc_warn_flag
     2377  else
     2378    ac_cpp_err=
     2379  fi
     2380else
     2381  ac_cpp_err=yes
     2382fi
     2383if test -z "$ac_cpp_err"; then
     2384  # Broken: success on invalid input.
     2385continue
     2386else
     2387  echo "$as_me: failed program was:" >&5
     2388  cat conftest.$ac_ext >&5
     2389  # Passes both tests.
     2390ac_preproc_ok=:
     2391break
     2392fi
     2393rm -f conftest.err conftest.$ac_ext
     2394
     2395done
     2396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2397rm -f conftest.err conftest.$ac_ext
     2398if $ac_preproc_ok; then
    12262399  :
    12272400else
    1228   echo "$ac_err" >&5
    1229   echo "configure: failed program was:" >&5
    1230   cat conftest.$ac_ext >&5
    1231   rm -rf conftest*
    1232   CPP=/lib/cpp
    1233 fi
    1234 rm -f conftest*
    1235 fi
    1236 rm -f conftest*
    1237 fi
    1238 rm -f conftest*
    1239   ac_cv_prog_CPP="$CPP"
    1240 fi
    1241   CPP="$ac_cv_prog_CPP"
    1242 else
    1243   ac_cv_prog_CPP="$CPP"
    1244 fi
    1245 echo "$ac_t""$CPP" 1>&6
    1246 
    1247 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1248 echo "configure:1249: checking for AIX" >&5
    1249 cat > conftest.$ac_ext <<EOF
    1250 #line 1251 "configure"
     2401  { { echo "$as_me:2401: error: C preprocessor \"$CPP\" fails sanity check" >&5
     2402echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
     2403   { (exit 1); exit 1; }; }
     2404fi
     2405
     2406ac_ext=c
     2407ac_cpp='$CPP $CPPFLAGS'
     2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2411
     2412echo "$as_me:2412: checking for AIX" >&5
     2413echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     2414cat >conftest.$ac_ext <<_ACEOF
     2415#line 2415 "configure"
    12512416#include "confdefs.h"
    12522417#ifdef _AIX
     
    12542419#endif
    12552420
    1256 EOF
     2421_ACEOF
    12572422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    12582423  egrep "yes" >/dev/null 2>&1; then
    1259   rm -rf conftest*
    1260   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     2424  echo "$as_me:2424: result: yes" >&5
     2425echo "${ECHO_T}yes" >&6
     2426cat >>confdefs.h <<\EOF
    12612427#define _ALL_SOURCE 1
    12622428EOF
    12632429
    12642430else
    1265   rm -rf conftest*
    1266   echo "$ac_t""no" 1>&6
     2431  echo "$as_me:2431: result: no" >&5
     2432echo "${ECHO_T}no" >&6
    12672433fi
    12682434rm -f conftest*
    12692435
    1270 
    1271 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1272 echo "configure:1273: checking for POSIXized ISC" >&5
     2436echo "$as_me:2436: checking for POSIXized ISC" >&5
     2437echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
    12732438if test -d /etc/conf/kconfig.d &&
    1274   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     2439   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    12752440then
    1276   echo "$ac_t""yes" 1>&6
     2441  echo "$as_me:2441: result: yes" >&5
     2442echo "${ECHO_T}yes" >&6
    12772443  ISC=yes # If later tests want to check for ISC.
    1278   cat >> confdefs.h <<\EOF
     2444
     2445cat >>confdefs.h <<\EOF
    12792446#define _POSIX_SOURCE 1
    12802447EOF
     
    12862453  fi
    12872454else
    1288   echo "$ac_t""no" 1>&6
     2455  echo "$as_me:2455: result: no" >&5
     2456echo "${ECHO_T}no" >&6
    12892457  ISC=
    12902458fi
    12912459
    1292 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    1293 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    1294 echo "configure:1295: checking for minix/config.h" >&5
    1295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1296   echo $ac_n "(cached) $ac_c" 1>&6
    1297 else
    1298   cat > conftest.$ac_ext <<EOF
    1299 #line 1300 "configure"
     2460echo "$as_me:2460: checking for minix/config.h" >&5
     2461echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     2462if test "${ac_cv_header_minix_config_h+set}" = set; then
     2463  echo $ECHO_N "(cached) $ECHO_C" >&6
     2464else
     2465  cat >conftest.$ac_ext <<_ACEOF
     2466#line 2466 "configure"
    13002467#include "confdefs.h"
    13012468#include <minix/config.h>
    1302 EOF
    1303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1304 { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1306 if test -z "$ac_err"; then
    1307   rm -rf conftest*
    1308   eval "ac_cv_header_$ac_safe=yes"
    1309 else
    1310   echo "$ac_err" >&5
    1311   echo "configure: failed program was:" >&5
     2469_ACEOF
     2470if { (eval echo "$as_me:2470: \"$ac_cpp conftest.$ac_ext\"") >&5
     2471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2472  ac_status=$?
     2473  egrep -v '^ *\+' conftest.er1 >conftest.err
     2474  rm -f conftest.er1
     2475  cat conftest.err >&5
     2476  echo "$as_me:2476: \$? = $ac_status" >&5
     2477  (exit $ac_status); } >/dev/null; then
     2478  if test -s conftest.err; then
     2479    ac_cpp_err=$ac_c_preproc_warn_flag
     2480  else
     2481    ac_cpp_err=
     2482  fi
     2483else
     2484  ac_cpp_err=yes
     2485fi
     2486if test -z "$ac_cpp_err"; then
     2487  ac_cv_header_minix_config_h=yes
     2488else
     2489  echo "$as_me: failed program was:" >&5
    13122490  cat conftest.$ac_ext >&5
    1313   rm -rf conftest*
    1314   eval "ac_cv_header_$ac_safe=no"
    1315 fi
    1316 rm -f conftest*
    1317 fi
    1318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1319   echo "$ac_t""yes" 1>&6
     2491  ac_cv_header_minix_config_h=no
     2492fi
     2493rm -f conftest.err conftest.$ac_ext
     2494fi
     2495echo "$as_me:2495: result: $ac_cv_header_minix_config_h" >&5
     2496echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     2497if test $ac_cv_header_minix_config_h = yes; then
    13202498  MINIX=yes
    13212499else
    1322   echo "$ac_t""no" 1>&6
    1323 MINIX=
     2500  MINIX=
    13242501fi
    13252502
    13262503if test "$MINIX" = yes; then
    1327   cat >> confdefs.h <<\EOF
     2504
     2505cat >>confdefs.h <<\EOF
    13282506#define _POSIX_SOURCE 1
    13292507EOF
    13302508
    1331   cat >> confdefs.h <<\EOF
     2509cat >>confdefs.h <<\EOF
    13322510#define _POSIX_1_SOURCE 2
    13332511EOF
    13342512
    1335   cat >> confdefs.h <<\EOF
     2513cat >>confdefs.h <<\EOF
    13362514#define _MINIX 1
    13372515EOF
     
    13392517fi
    13402518
    1341 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    1342 echo "configure:1343: checking for ${CC-cc} option to accept ANSI C" >&5
    1343 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    1344   echo $ac_n "(cached) $ac_c" 1>&6
     2519echo "$as_me:2519: checking for ${CC-cc} option to accept ANSI C" >&5
     2520echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     2521if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2522  echo $ECHO_N "(cached) $ECHO_C" >&6
    13452523else
    13462524  ac_cv_prog_cc_stdc=no
     
    13552533do
    13562534  CFLAGS="$ac_save_CFLAGS $ac_arg"
    1357   cat > conftest.$ac_ext <<EOF
    1358 #line 1359 "configure"
     2535  cat >conftest.$ac_ext <<_ACEOF
     2536#line 2536 "configure"
    13592537#include "confdefs.h"
    13602538#if !defined(__STDC__) || __STDC__ != 1
    13612539choke me
    1362 #endif 
    1363 
    1364 int main() {
     2540#endif
     2541
     2542int
     2543main ()
     2544{
    13652545int test (int i, double x);
    13662546struct s1 {int (*f) (int a);};
    13672547struct s2 {int (*f) (double a);};
    1368 ; return 0; }
    1369 EOF
    1370 if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1371   rm -rf conftest*
     2548  ;
     2549  return 0;
     2550}
     2551_ACEOF
     2552rm -f conftest.$ac_objext
     2553if { (eval echo "$as_me:2553: \"$ac_compile\"") >&5
     2554  (eval $ac_compile) 2>&5
     2555  ac_status=$?
     2556  echo "$as_me:2556: \$? = $ac_status" >&5
     2557  (exit $ac_status); } &&
     2558         { ac_try='test -s conftest.$ac_objext'
     2559  { (eval echo "$as_me:2559: \"$ac_try\"") >&5
     2560  (eval $ac_try) 2>&5
     2561  ac_status=$?
     2562  echo "$as_me:2562: \$? = $ac_status" >&5
     2563  (exit $ac_status); }; }; then
    13722564  ac_cv_prog_cc_stdc="$ac_arg"; break
    13732565else
    1374   echo "configure: failed program was:" >&5
    1375   cat conftest.$ac_ext >&5
    1376 fi
    1377 rm -f conftest*
     2566  echo "$as_me: failed program was:" >&5
     2567cat conftest.$ac_ext >&5
     2568fi
     2569rm -f conftest.$ac_objext conftest.$ac_ext
    13782570done
    13792571CFLAGS="$ac_save_CFLAGS"
     
    13812573fi
    13822574
    1383 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
     2575echo "$as_me:2575: result: $ac_cv_prog_cc_stdc" >&5
     2576echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    13842577case "x$ac_cv_prog_cc_stdc" in
    13852578  x|xno) ;;
     
    13872580esac
    13882581
    1389 
    1390 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
    1391 echo "configure:1392: checking for function prototypes" >&5
     2582echo "$as_me:2582: checking for function prototypes" >&5
     2583echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    13922584if test "$ac_cv_prog_cc_stdc" != no; then
    1393   echo "$ac_t""yes" 1>&6
    1394   cat >> confdefs.h <<\EOF
     2585  echo "$as_me:2585: result: yes" >&5
     2586echo "${ECHO_T}yes" >&6
     2587  cat >>confdefs.h <<\EOF
    13952588#define PROTOTYPES 1
    13962589EOF
     
    13982591  U= ANSI2KNR=
    13992592else
    1400   echo "$ac_t""no" 1>&6
     2593  echo "$as_me:2593: result: no" >&5
     2594echo "${ECHO_T}no" >&6
    14012595  U=_ ANSI2KNR=ansi2knr
    14022596fi
    14032597
    1404 echo $ac_n "checking for working const""... $ac_c" 1>&6
    1405 echo "configure:1406: checking for working const" >&5
    1406 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    1407   echo $ac_n "(cached) $ac_c" 1>&6
    1408 else
    1409   cat > conftest.$ac_ext <<EOF
    1410 #line 1411 "configure"
    1411 #include "confdefs.h"
    1412 
    1413 int main() {
    1414 
    1415 /* Ultrix mips cc rejects this.  */
    1416 typedef int charset[2]; const charset x;
    1417 /* SunOS 4.1.1 cc rejects this.  */
    1418 char const *const *ccp;
    1419 char **p;
    1420 /* NEC SVR4.0.2 mips cc rejects this.  */
    1421 struct point {int x, y;};
    1422 static struct point const zero = {0,0};
    1423 /* AIX XL C 1.02.0.0 rejects this.
    1424    It does not let you subtract one const X* pointer from another in an arm
    1425    of an if-expression whose if-part is not a constant expression */
    1426 const char *g = "string";
    1427 ccp = &g + (g ? g-g : 0);
    1428 /* HPUX 7.0 cc rejects these. */
    1429 ++ccp;
    1430 p = (char**) ccp;
    1431 ccp = (char const *const *) p;
    1432 { /* SCO 3.2v4 cc rejects this.  */
    1433   char *t;
    1434   char const *s = 0 ? (char *) 0 : (char const *) 0;
    1435 
    1436   *t++ = 0;
     2598echo "$as_me:2598: checking for $CC option to accept ANSI C" >&5
     2599echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2600if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2601  echo $ECHO_N "(cached) $ECHO_C" >&6
     2602else
     2603  ac_cv_prog_cc_stdc=no
     2604ac_save_CC=$CC
     2605cat >conftest.$ac_ext <<_ACEOF
     2606#line 2606 "configure"
     2607#include "confdefs.h"
     2608#include <stdarg.h>
     2609#include <stdio.h>
     2610#include <sys/types.h>
     2611#include <sys/stat.h>
     2612/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2613struct buf { int x; };
     2614FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2615static char *e (p, i)
     2616     char **p;
     2617     int i;
     2618{
     2619  return p[i];
    14372620}
    1438 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    1439   int x[] = {25, 17};
    1440   const int *foo = &x[0];
    1441   ++foo;
     2621static char *f (char * (*g) (char **, int), char **p, ...)
     2622{
     2623  char *s;
     2624  va_list v;
     2625  va_start (v,p);
     2626  s = g (p, va_arg (v,int));
     2627  va_end (v);
     2628  return s;
    14422629}
    1443 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    1444   typedef const int *iptr;
    1445   iptr p = 0;
    1446   ++p;
     2630int test (int i, double x);
     2631struct s1 {int (*f) (int a);};
     2632struct s2 {int (*f) (double a);};
     2633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2634int argc;
     2635char **argv;
     2636int
     2637main ()
     2638{
     2639return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2640  ;
     2641  return 0;
    14472642}
    1448 { /* AIX XL C 1.02.0.0 rejects this saying
    1449      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    1450   struct s { int j; const int *ap[3]; };
    1451   struct s *b; b->j = 5;
     2643_ACEOF
     2644# Don't try gcc -ansi; that turns off useful extensions and
     2645# breaks some systems' header files.
     2646# AIX           -qlanglvl=ansi
     2647# Ultrix and OSF/1  -std1
     2648# HP-UX 10.20 and later -Ae
     2649# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2650# SVR4          -Xc -D__EXTENSIONS__
     2651for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2652do
     2653  CC="$ac_save_CC $ac_arg"
     2654  rm -f conftest.$ac_objext
     2655if { (eval echo "$as_me:2655: \"$ac_compile\"") >&5
     2656  (eval $ac_compile) 2>&5
     2657  ac_status=$?
     2658  echo "$as_me:2658: \$? = $ac_status" >&5
     2659  (exit $ac_status); } &&
     2660         { ac_try='test -s conftest.$ac_objext'
     2661  { (eval echo "$as_me:2661: \"$ac_try\"") >&5
     2662  (eval $ac_try) 2>&5
     2663  ac_status=$?
     2664  echo "$as_me:2664: \$? = $ac_status" >&5
     2665  (exit $ac_status); }; }; then
     2666  ac_cv_prog_cc_stdc=$ac_arg
     2667break
     2668else
     2669  echo "$as_me: failed program was:" >&5
     2670cat conftest.$ac_ext >&5
     2671fi
     2672rm -f conftest.$ac_objext
     2673done
     2674rm -f conftest.$ac_ext conftest.$ac_objext
     2675CC=$ac_save_CC
     2676
     2677fi
     2678
     2679case "x$ac_cv_prog_cc_stdc" in
     2680  x|xno)
     2681    echo "$as_me:2681: result: none needed" >&5
     2682echo "${ECHO_T}none needed" >&6 ;;
     2683  *)
     2684    echo "$as_me:2684: result: $ac_cv_prog_cc_stdc" >&5
     2685echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2686    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2687esac
     2688
     2689echo "$as_me:2689: checking for an ANSI C-conforming const" >&5
     2690echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     2691if test "${ac_cv_c_const+set}" = set; then
     2692  echo $ECHO_N "(cached) $ECHO_C" >&6
     2693else
     2694  cat >conftest.$ac_ext <<_ACEOF
     2695#line 2695 "configure"
     2696#include "confdefs.h"
     2697
     2698int
     2699main ()
     2700{
     2701/* FIXME: Include the comments suggested by Paul. */
     2702#ifndef __cplusplus
     2703  /* Ultrix mips cc rejects this.  */
     2704  typedef int charset[2];
     2705  const charset x;
     2706  /* SunOS 4.1.1 cc rejects this.  */
     2707  char const *const *ccp;
     2708  char **p;
     2709  /* NEC SVR4.0.2 mips cc rejects this.  */
     2710  struct point {int x, y;};
     2711  static struct point const zero = {0,0};
     2712  /* AIX XL C 1.02.0.0 rejects this.
     2713     It does not let you subtract one const X* pointer from another in
     2714     an arm of an if-expression whose if-part is not a constant
     2715     expression */
     2716  const char *g = "string";
     2717  ccp = &g + (g ? g-g : 0);
     2718  /* HPUX 7.0 cc rejects these. */
     2719  ++ccp;
     2720  p = (char**) ccp;
     2721  ccp = (char const *const *) p;
     2722  { /* SCO 3.2v4 cc rejects this.  */
     2723    char *t;
     2724    char const *s = 0 ? (char *) 0 : (char const *) 0;
     2725
     2726    *t++ = 0;
     2727  }
     2728  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     2729    int x[] = {25, 17};
     2730    const int *foo = &x[0];
     2731    ++foo;
     2732  }
     2733  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     2734    typedef const int *iptr;
     2735    iptr p = 0;
     2736    ++p;
     2737  }
     2738  { /* AIX XL C 1.02.0.0 rejects this saying
     2739       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     2740    struct s { int j; const int *ap[3]; };
     2741    struct s *b; b->j = 5;
     2742  }
     2743  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     2744    const int foo = 10;
     2745  }
     2746#endif
     2747
     2748  ;
     2749  return 0;
    14522750}
    1453 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    1454   const int foo = 10;
    1455 }
    1456 
    1457 ; return 0; }
    1458 EOF
    1459 if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1460   rm -rf conftest*
     2751_ACEOF
     2752rm -f conftest.$ac_objext
     2753if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5
     2754  (eval $ac_compile) 2>&5
     2755  ac_status=$?
     2756  echo "$as_me:2756: \$? = $ac_status" >&5
     2757  (exit $ac_status); } &&
     2758         { ac_try='test -s conftest.$ac_objext'
     2759  { (eval echo "$as_me:2759: \"$ac_try\"") >&5
     2760  (eval $ac_try) 2>&5
     2761  ac_status=$?
     2762  echo "$as_me:2762: \$? = $ac_status" >&5
     2763  (exit $ac_status); }; }; then
    14612764  ac_cv_c_const=yes
    14622765else
    1463   echo "configure: failed program was:" >&5
    1464   cat conftest.$ac_ext >&5
    1465   rm -rf conftest*
    1466   ac_cv_c_const=no
    1467 fi
    1468 rm -f conftest*
    1469 fi
    1470 
    1471 echo "$ac_t""$ac_cv_c_const" 1>&6
     2766  echo "$as_me: failed program was:" >&5
     2767cat conftest.$ac_ext >&5
     2768ac_cv_c_const=no
     2769fi
     2770rm -f conftest.$ac_objext conftest.$ac_ext
     2771fi
     2772echo "$as_me:2772: result: $ac_cv_c_const" >&5
     2773echo "${ECHO_T}$ac_cv_c_const" >&6
    14722774if test $ac_cv_c_const = no; then
    1473   cat >> confdefs.h <<\EOF
    1474 #define const
    1475 EOF
    1476 
    1477 fi
    1478 
    1479 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1480 echo "configure:1481: checking for ANSI C header files" >&5
    1481 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1482   echo $ac_n "(cached) $ac_c" 1>&6
    1483 else
    1484   cat > conftest.$ac_ext <<EOF
    1485 #line 1486 "configure"
     2775
     2776cat >>confdefs.h <<\EOF
     2777#define const
     2778EOF
     2779
     2780fi
     2781
     2782echo "$as_me:2782: checking for ANSI C header files" >&5
     2783echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     2784if test "${ac_cv_header_stdc+set}" = set; then
     2785  echo $ECHO_N "(cached) $ECHO_C" >&6
     2786else
     2787  cat >conftest.$ac_ext <<_ACEOF
     2788#line 2788 "configure"
    14862789#include "confdefs.h"
    14872790#include <stdlib.h>
     
    14892792#include <string.h>
    14902793#include <float.h>
    1491 EOF
    1492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1493 { (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1495 if test -z "$ac_err"; then
    1496   rm -rf conftest*
     2794
     2795_ACEOF
     2796if { (eval echo "$as_me:2796: \"$ac_cpp conftest.$ac_ext\"") >&5
     2797  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2798  ac_status=$?
     2799  egrep -v '^ *\+' conftest.er1 >conftest.err
     2800  rm -f conftest.er1
     2801  cat conftest.err >&5
     2802  echo "$as_me:2802: \$? = $ac_status" >&5
     2803  (exit $ac_status); } >/dev/null; then
     2804  if test -s conftest.err; then
     2805    ac_cpp_err=$ac_c_preproc_warn_flag
     2806  else
     2807    ac_cpp_err=
     2808  fi
     2809else
     2810  ac_cpp_err=yes
     2811fi
     2812if test -z "$ac_cpp_err"; then
    14972813  ac_cv_header_stdc=yes
    14982814else
    1499   echo "$ac_err" >&5
    1500   echo "configure: failed program was:" >&5
     2815  echo "$as_me: failed program was:" >&5
    15012816  cat conftest.$ac_ext >&5
    1502   rm -rf conftest*
    15032817  ac_cv_header_stdc=no
    15042818fi
    1505 rm -f conftest*
     2819rm -f conftest.err conftest.$ac_ext
    15062820
    15072821if test $ac_cv_header_stdc = yes; then
    15082822  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1509 cat > conftest.$ac_ext <<EOF
    1510 #line 1511 "configure"
     2823  cat >conftest.$ac_ext <<_ACEOF
     2824#line 2824 "configure"
    15112825#include "confdefs.h"
    15122826#include <string.h>
    1513 EOF
     2827
     2828_ACEOF
    15142829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    15152830  egrep "memchr" >/dev/null 2>&1; then
    15162831  :
    15172832else
    1518   rm -rf conftest*
    15192833  ac_cv_header_stdc=no
    15202834fi
     
    15252839if test $ac_cv_header_stdc = yes; then
    15262840  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1527 cat > conftest.$ac_ext <<EOF
    1528 #line 1529 "configure"
     2841  cat >conftest.$ac_ext <<_ACEOF
     2842#line 2842 "configure"
    15292843#include "confdefs.h"
    15302844#include <stdlib.h>
    1531 EOF
     2845
     2846_ACEOF
    15322847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    15332848  egrep "free" >/dev/null 2>&1; then
    15342849  :
    15352850else
    1536   rm -rf conftest*
    15372851  ac_cv_header_stdc=no
    15382852fi
     
    15432857if test $ac_cv_header_stdc = yes; then
    15442858  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1545 if test "$cross_compiling" = yes; then
     2859  if test "$cross_compiling" = yes; then
    15462860  :
    15472861else
    1548   cat > conftest.$ac_ext <<EOF
    1549 #line 1550 "configure"
     2862  cat >conftest.$ac_ext <<_ACEOF
     2863#line 2863 "configure"
    15502864#include "confdefs.h"
    15512865#include <ctype.h>
    1552 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1553 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2866#if ((' ' & 0x0FF) == 0x020)
     2867# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2868# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2869#else
     2870# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     2871                     || ('j' <= (c) && (c) <= 'r') \
     2872                     || ('s' <= (c) && (c) <= 'z'))
     2873# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     2874#endif
     2875
    15542876#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1555 int main () { int i; for (i = 0; i < 256; i++)
    1556 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1557 exit (0); }
    1558 
    1559 EOF
    1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1561 then
     2877int
     2878main ()
     2879{
     2880  int i;
     2881  for (i = 0; i < 256; i++)
     2882    if (XOR (islower (i), ISLOWER (i))
     2883        || toupper (i) != TOUPPER (i))
     2884      exit(2);
     2885  exit (0);
     2886}
     2887_ACEOF
     2888rm -f conftest$ac_exeext
     2889if { (eval echo "$as_me:2889: \"$ac_link\"") >&5
     2890  (eval $ac_link) 2>&5
     2891  ac_status=$?
     2892  echo "$as_me:2892: \$? = $ac_status" >&5
     2893  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     2894  { (eval echo "$as_me:2894: \"$ac_try\"") >&5
     2895  (eval $ac_try) 2>&5
     2896  ac_status=$?
     2897  echo "$as_me:2897: \$? = $ac_status" >&5
     2898  (exit $ac_status); }; }; then
    15622899  :
    15632900else
    1564   echo "configure: failed program was:" >&5
     2901  echo "$as_me: program exited with status $ac_status" >&5
     2902echo "$as_me: failed program was:" >&5
     2903cat conftest.$ac_ext >&5
     2904ac_cv_header_stdc=no
     2905fi
     2906rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     2907fi
     2908fi
     2909fi
     2910echo "$as_me:2910: result: $ac_cv_header_stdc" >&5
     2911echo "${ECHO_T}$ac_cv_header_stdc" >&6
     2912if test $ac_cv_header_stdc = yes; then
     2913
     2914cat >>confdefs.h <<\EOF
     2915#define STDC_HEADERS 1
     2916EOF
     2917
     2918fi
     2919
     2920for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
     2921do
     2922ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     2923echo "$as_me:2923: checking for $ac_header" >&5
     2924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2925if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     2926  echo $ECHO_N "(cached) $ECHO_C" >&6
     2927else
     2928  cat >conftest.$ac_ext <<_ACEOF
     2929#line 2929 "configure"
     2930#include "confdefs.h"
     2931#include <$ac_header>
     2932_ACEOF
     2933if { (eval echo "$as_me:2933: \"$ac_cpp conftest.$ac_ext\"") >&5
     2934  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2935  ac_status=$?
     2936  egrep -v '^ *\+' conftest.er1 >conftest.err
     2937  rm -f conftest.er1
     2938  cat conftest.err >&5
     2939  echo "$as_me:2939: \$? = $ac_status" >&5
     2940  (exit $ac_status); } >/dev/null; then
     2941  if test -s conftest.err; then
     2942    ac_cpp_err=$ac_c_preproc_warn_flag
     2943  else
     2944    ac_cpp_err=
     2945  fi
     2946else
     2947  ac_cpp_err=yes
     2948fi
     2949if test -z "$ac_cpp_err"; then
     2950  eval "$ac_ac_Header=yes"
     2951else
     2952  echo "$as_me: failed program was:" >&5
    15652953  cat conftest.$ac_ext >&5
    1566   rm -fr conftest*
    1567   ac_cv_header_stdc=no
    1568 fi
    1569 rm -fr conftest*
    1570 fi
    1571 
    1572 fi
    1573 fi
    1574 
    1575 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    1576 if test $ac_cv_header_stdc = yes; then
    1577   cat >> confdefs.h <<\EOF
    1578 #define STDC_HEADERS 1
    1579 EOF
    1580 
    1581 fi
    1582 
    1583 echo $ac_n "checking for off_t""... $ac_c" 1>&6
    1584 echo "configure:1585: checking for off_t" >&5
    1585 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    1586   echo $ac_n "(cached) $ac_c" 1>&6
    1587 else
    1588   cat > conftest.$ac_ext <<EOF
    1589 #line 1590 "configure"
    1590 #include "confdefs.h"
    1591 #include <sys/types.h>
    1592 #if STDC_HEADERS
    1593 #include <stdlib.h>
    1594 #include <stddef.h>
    1595 #endif
    1596 EOF
    1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1598   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1599   rm -rf conftest*
     2954  eval "$ac_ac_Header=no"
     2955fi
     2956rm -f conftest.err conftest.$ac_ext
     2957fi
     2958echo "$as_me:2958: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     2959echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     2960if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     2961  cat >>confdefs.h <<EOF
     2962#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
     2963EOF
     2964
     2965fi
     2966done
     2967
     2968echo "$as_me:2968: checking for off_t" >&5
     2969echo $ECHO_N "checking for off_t... $ECHO_C" >&6
     2970if test "${ac_cv_type_off_t+set}" = set; then
     2971  echo $ECHO_N "(cached) $ECHO_C" >&6
     2972else
     2973  cat >conftest.$ac_ext <<_ACEOF
     2974#line 2974 "configure"
     2975#include "confdefs.h"
     2976$ac_includes_default
     2977int
     2978main ()
     2979{
     2980if ((off_t *) 0)
     2981  return 0;
     2982if (sizeof (off_t))
     2983  return 0;
     2984  ;
     2985  return 0;
     2986}
     2987_ACEOF
     2988rm -f conftest.$ac_objext
     2989if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
     2990  (eval $ac_compile) 2>&5
     2991  ac_status=$?
     2992  echo "$as_me:2992: \$? = $ac_status" >&5
     2993  (exit $ac_status); } &&
     2994         { ac_try='test -s conftest.$ac_objext'
     2995  { (eval echo "$as_me:2995: \"$ac_try\"") >&5
     2996  (eval $ac_try) 2>&5
     2997  ac_status=$?
     2998  echo "$as_me:2998: \$? = $ac_status" >&5
     2999  (exit $ac_status); }; }; then
    16003000  ac_cv_type_off_t=yes
    16013001else
    1602   rm -rf conftest*
    1603   ac_cv_type_off_t=no
    1604 fi
    1605 rm -f conftest*
    1606 
    1607 fi
    1608 echo "$ac_t""$ac_cv_type_off_t" 1>&6
    1609 if test $ac_cv_type_off_t = no; then
    1610   cat >> confdefs.h <<\EOF
     3002  echo "$as_me: failed program was:" >&5
     3003cat conftest.$ac_ext >&5
     3004ac_cv_type_off_t=no
     3005fi
     3006rm -f conftest.$ac_objext conftest.$ac_ext
     3007fi
     3008echo "$as_me:3008: result: $ac_cv_type_off_t" >&5
     3009echo "${ECHO_T}$ac_cv_type_off_t" >&6
     3010if test $ac_cv_type_off_t = yes; then
     3011  :
     3012else
     3013
     3014cat >>confdefs.h <<EOF
    16113015#define off_t long
    16123016EOF
     
    16143018fi
    16153019
    1616 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1617 echo "configure:1618: checking for size_t" >&5
    1618 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    1619   echo $ac_n "(cached) $ac_c" 1>&6
    1620 else
    1621   cat > conftest.$ac_ext <<EOF
    1622 #line 1623 "configure"
    1623 #include "confdefs.h"
    1624 #include <sys/types.h>
    1625 #if STDC_HEADERS
    1626 #include <stdlib.h>
    1627 #include <stddef.h>
    1628 #endif
    1629 EOF
    1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1631   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1632   rm -rf conftest*
     3020echo "$as_me:3020: checking for size_t" >&5
     3021echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     3022if test "${ac_cv_type_size_t+set}" = set; then
     3023  echo $ECHO_N "(cached) $ECHO_C" >&6
     3024else
     3025  cat >conftest.$ac_ext <<_ACEOF
     3026#line 3026 "configure"
     3027#include "confdefs.h"
     3028$ac_includes_default
     3029int
     3030main ()
     3031{
     3032if ((size_t *) 0)
     3033  return 0;
     3034if (sizeof (size_t))
     3035  return 0;
     3036  ;
     3037  return 0;
     3038}
     3039_ACEOF
     3040rm -f conftest.$ac_objext
     3041if { (eval echo "$as_me:3041: \"$ac_compile\"") >&5
     3042  (eval $ac_compile) 2>&5
     3043  ac_status=$?
     3044  echo "$as_me:3044: \$? = $ac_status" >&5
     3045  (exit $ac_status); } &&
     3046         { ac_try='test -s conftest.$ac_objext'
     3047  { (eval echo "$as_me:3047: \"$ac_try\"") >&5
     3048  (eval $ac_try) 2>&5
     3049  ac_status=$?
     3050  echo "$as_me:3050: \$? = $ac_status" >&5
     3051  (exit $ac_status); }; }; then
    16333052  ac_cv_type_size_t=yes
    16343053else
    1635   rm -rf conftest*
    1636   ac_cv_type_size_t=no
    1637 fi
    1638 rm -f conftest*
    1639 
    1640 fi
    1641 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    1642 if test $ac_cv_type_size_t = no; then
    1643   cat >> confdefs.h <<\EOF
     3054  echo "$as_me: failed program was:" >&5
     3055cat conftest.$ac_ext >&5
     3056ac_cv_type_size_t=no
     3057fi
     3058rm -f conftest.$ac_objext conftest.$ac_ext
     3059fi
     3060echo "$as_me:3060: result: $ac_cv_type_size_t" >&5
     3061echo "${ECHO_T}$ac_cv_type_size_t" >&6
     3062if test $ac_cv_type_size_t = yes; then
     3063  :
     3064else
     3065
     3066cat >>confdefs.h <<EOF
    16443067#define size_t unsigned
    16453068EOF
     
    16473070fi
    16483071
    1649 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1650 echo "configure:1651: checking whether time.h and sys/time.h may both be included" >&5
    1651 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    1652   echo $ac_n "(cached) $ac_c" 1>&6
    1653 else
    1654   cat > conftest.$ac_ext <<EOF
    1655 #line 1656 "configure"
     3072echo "$as_me:3072: checking whether time.h and sys/time.h may both be included" >&5
     3073echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     3074if test "${ac_cv_header_time+set}" = set; then
     3075  echo $ECHO_N "(cached) $ECHO_C" >&6
     3076else
     3077  cat >conftest.$ac_ext <<_ACEOF
     3078#line 3078 "configure"
    16563079#include "confdefs.h"
    16573080#include <sys/types.h>
    16583081#include <sys/time.h>
    16593082#include <time.h>
    1660 int main() {
     3083
     3084int
     3085main ()
     3086{
    16613087struct tm *tp;
    1662 ; return 0; }
    1663 EOF
    1664 if { (eval echo configure:1665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1665   rm -rf conftest*
     3088  ;
     3089  return 0;
     3090}
     3091_ACEOF
     3092rm -f conftest.$ac_objext
     3093if { (eval echo "$as_me:3093: \"$ac_compile\"") >&5
     3094  (eval $ac_compile) 2>&5
     3095  ac_status=$?
     3096  echo "$as_me:3096: \$? = $ac_status" >&5
     3097  (exit $ac_status); } &&
     3098         { ac_try='test -s conftest.$ac_objext'
     3099  { (eval echo "$as_me:3099: \"$ac_try\"") >&5
     3100  (eval $ac_try) 2>&5
     3101  ac_status=$?
     3102  echo "$as_me:3102: \$? = $ac_status" >&5
     3103  (exit $ac_status); }; }; then
    16663104  ac_cv_header_time=yes
    16673105else
    1668   echo "configure: failed program was:" >&5
    1669   cat conftest.$ac_ext >&5
    1670   rm -rf conftest*
    1671   ac_cv_header_time=no
    1672 fi
    1673 rm -f conftest*
    1674 fi
    1675 
    1676 echo "$ac_t""$ac_cv_header_time" 1>&6
     3106  echo "$as_me: failed program was:" >&5
     3107cat conftest.$ac_ext >&5
     3108ac_cv_header_time=no
     3109fi
     3110rm -f conftest.$ac_objext conftest.$ac_ext
     3111fi
     3112echo "$as_me:3112: result: $ac_cv_header_time" >&5
     3113echo "${ECHO_T}$ac_cv_header_time" >&6
    16773114if test $ac_cv_header_time = yes; then
    1678   cat >> confdefs.h <<\EOF
     3115
     3116cat >>confdefs.h <<\EOF
    16793117#define TIME_WITH_SYS_TIME 1
    16803118EOF
     
    16823120fi
    16833121
    1684 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1685 echo "configure:1686: checking whether struct tm is in sys/time.h or time.h" >&5
    1686 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    1687   echo $ac_n "(cached) $ac_c" 1>&6
    1688 else
    1689   cat > conftest.$ac_ext <<EOF
    1690 #line 1691 "configure"
     3122echo "$as_me:3122: checking whether struct tm is in sys/time.h or time.h" >&5
     3123echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     3124if test "${ac_cv_struct_tm+set}" = set; then
     3125  echo $ECHO_N "(cached) $ECHO_C" >&6
     3126else
     3127  cat >conftest.$ac_ext <<_ACEOF
     3128#line 3128 "configure"
    16913129#include "confdefs.h"
    16923130#include <sys/types.h>
    16933131#include <time.h>
    1694 int main() {
     3132
     3133int
     3134main ()
     3135{
    16953136struct tm *tp; tp->tm_sec;
    1696 ; return 0; }
    1697 EOF
    1698 if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1699   rm -rf conftest*
     3137  ;
     3138  return 0;
     3139}
     3140_ACEOF
     3141rm -f conftest.$ac_objext
     3142if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5
     3143  (eval $ac_compile) 2>&5
     3144  ac_status=$?
     3145  echo "$as_me:3145: \$? = $ac_status" >&5
     3146  (exit $ac_status); } &&
     3147         { ac_try='test -s conftest.$ac_objext'
     3148  { (eval echo "$as_me:3148: \"$ac_try\"") >&5
     3149  (eval $ac_try) 2>&5
     3150  ac_status=$?
     3151  echo "$as_me:3151: \$? = $ac_status" >&5
     3152  (exit $ac_status); }; }; then
    17003153  ac_cv_struct_tm=time.h
    17013154else
    1702   echo "configure: failed program was:" >&5
    1703   cat conftest.$ac_ext >&5
    1704   rm -rf conftest*
    1705   ac_cv_struct_tm=sys/time.h
    1706 fi
    1707 rm -f conftest*
    1708 fi
    1709 
    1710 echo "$ac_t""$ac_cv_struct_tm" 1>&6
     3155  echo "$as_me: failed program was:" >&5
     3156cat conftest.$ac_ext >&5
     3157ac_cv_struct_tm=sys/time.h
     3158fi
     3159rm -f conftest.$ac_objext conftest.$ac_ext
     3160fi
     3161echo "$as_me:3161: result: $ac_cv_struct_tm" >&5
     3162echo "${ECHO_T}$ac_cv_struct_tm" >&6
    17113163if test $ac_cv_struct_tm = sys/time.h; then
    1712   cat >> confdefs.h <<\EOF
     3164
     3165cat >>confdefs.h <<\EOF
    17133166#define TM_IN_SYS_TIME 1
    17143167EOF
     
    17163169fi
    17173170
    1718 
    17193171if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    1720 cat > conftest.$ac_ext <<EOF
    1721 #line 1722 "configure"
     3172cat >conftest.$ac_ext <<_ACEOF
     3173#line 3173 "configure"
    17223174#include "confdefs.h"
    17233175#include <stdio.h>
    17243176
    1725 int main() {
    1726  FILE *rubbish = popen("yes", "r");
    1727 ; return 0; }
    1728 EOF
    1729 if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3177int
     3178main ()
     3179{
     3180 FILE *rubbish = popen("yes", "r");
     3181  ;
     3182  return 0;
     3183}
     3184_ACEOF
     3185rm -f conftest.$ac_objext
     3186if { (eval echo "$as_me:3186: \"$ac_compile\"") >&5
     3187  (eval $ac_compile) 2>&5
     3188  ac_status=$?
     3189  echo "$as_me:3189: \$? = $ac_status" >&5
     3190  (exit $ac_status); } &&
     3191         { ac_try='test -s conftest.$ac_objext'
     3192  { (eval echo "$as_me:3192: \"$ac_try\"") >&5
     3193  (eval $ac_try) 2>&5
     3194  ac_status=$?
     3195  echo "$as_me:3195: \$? = $ac_status" >&5
     3196  (exit $ac_status); }; }; then
    17303197  :
    17313198else
    1732   echo "configure: failed program was:" >&5
    1733   cat conftest.$ac_ext >&5
    1734   rm -rf conftest*
    1735   CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    1736 fi
    1737 rm -f conftest*
    1738 fi
    1739 
    1740 
    1741 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
    1742 echo "configure:1743: checking for main in -lg" >&5
    1743 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
    1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1745   echo $ac_n "(cached) $ac_c" 1>&6
    1746 else
    1747   ac_save_LIBS="$LIBS"
     3199  echo "$as_me: failed program was:" >&5
     3200cat conftest.$ac_ext >&5
     3201CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     3202fi
     3203rm -f conftest.$ac_objext conftest.$ac_ext
     3204fi
     3205
     3206echo "$as_me:3206: checking for main in -lg" >&5
     3207echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
     3208if test "${ac_cv_lib_g_main+set}" = set; then
     3209  echo $ECHO_N "(cached) $ECHO_C" >&6
     3210else
     3211  ac_check_lib_save_LIBS=$LIBS
    17483212LIBS="-lg  $LIBS"
    1749 cat > conftest.$ac_ext <<EOF
    1750 #line 1751 "configure"
    1751 #include "confdefs.h"
    1752 
    1753 int main() {
    1754 main()
    1755 ; return 0; }
    1756 EOF
    1757 if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1758   rm -rf conftest*
    1759   eval "ac_cv_lib_$ac_lib_var=yes"
    1760 else
    1761   echo "configure: failed program was:" >&5
    1762   cat conftest.$ac_ext >&5
    1763   rm -rf conftest*
    1764   eval "ac_cv_lib_$ac_lib_var=no"
    1765 fi
    1766 rm -f conftest*
    1767 LIBS="$ac_save_LIBS"
    1768 
    1769 fi
    1770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1771   echo "$ac_t""yes" 1>&6
    1772     ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1773     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1774   cat >> confdefs.h <<EOF
    1775 #define $ac_tr_lib 1
     3213cat >conftest.$ac_ext <<_ACEOF
     3214#line 3214 "configure"
     3215#include "confdefs.h"
     3216
     3217int
     3218main ()
     3219{
     3220main ();
     3221  ;
     3222  return 0;
     3223}
     3224_ACEOF
     3225rm -f conftest.$ac_objext conftest$ac_exeext
     3226if { (eval echo "$as_me:3226: \"$ac_link\"") >&5
     3227  (eval $ac_link) 2>&5
     3228  ac_status=$?
     3229  echo "$as_me:3229: \$? = $ac_status" >&5
     3230  (exit $ac_status); } &&
     3231         { ac_try='test -s conftest$ac_exeext'
     3232  { (eval echo "$as_me:3232: \"$ac_try\"") >&5
     3233  (eval $ac_try) 2>&5
     3234  ac_status=$?
     3235  echo "$as_me:3235: \$? = $ac_status" >&5
     3236  (exit $ac_status); }; }; then
     3237  ac_cv_lib_g_main=yes
     3238else
     3239  echo "$as_me: failed program was:" >&5
     3240cat conftest.$ac_ext >&5
     3241ac_cv_lib_g_main=no
     3242fi
     3243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3244LIBS=$ac_check_lib_save_LIBS
     3245fi
     3246echo "$as_me:3246: result: $ac_cv_lib_g_main" >&5
     3247echo "${ECHO_T}$ac_cv_lib_g_main" >&6
     3248if test $ac_cv_lib_g_main = yes; then
     3249  cat >>confdefs.h <<EOF
     3250#define HAVE_LIBG 1
    17763251EOF
    17773252
    17783253  LIBS="-lg $LIBS"
    17793254
    1780 else
    1781   echo "$ac_t""no" 1>&6
    1782 fi
    1783 
    1784 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    1785 echo "configure:1786: checking for main in -lm" >&5
    1786 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1788   echo $ac_n "(cached) $ac_c" 1>&6
    1789 else
    1790   ac_save_LIBS="$LIBS"
     3255fi
     3256
     3257echo "$as_me:3257: checking for main in -lm" >&5
     3258echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     3259if test "${ac_cv_lib_m_main+set}" = set; then
     3260  echo $ECHO_N "(cached) $ECHO_C" >&6
     3261else
     3262  ac_check_lib_save_LIBS=$LIBS
    17913263LIBS="-lm  $LIBS"
    1792 cat > conftest.$ac_ext <<EOF
    1793 #line 1794 "configure"
    1794 #include "confdefs.h"
    1795 
    1796 int main() {
    1797 main()
    1798 ; return 0; }
    1799 EOF
    1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1801   rm -rf conftest*
    1802   eval "ac_cv_lib_$ac_lib_var=yes"
    1803 else
    1804   echo "configure: failed program was:" >&5
    1805   cat conftest.$ac_ext >&5
    1806   rm -rf conftest*
    1807   eval "ac_cv_lib_$ac_lib_var=no"
    1808 fi
    1809 rm -f conftest*
    1810 LIBS="$ac_save_LIBS"
    1811 
    1812 fi
    1813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1814   echo "$ac_t""yes" 1>&6
    1815     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1816     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1817   cat >> confdefs.h <<EOF
    1818 #define $ac_tr_lib 1
     3264cat >conftest.$ac_ext <<_ACEOF
     3265#line 3265 "configure"
     3266#include "confdefs.h"
     3267
     3268int
     3269main ()
     3270{
     3271main ();
     3272  ;
     3273  return 0;
     3274}
     3275_ACEOF
     3276rm -f conftest.$ac_objext conftest$ac_exeext
     3277if { (eval echo "$as_me:3277: \"$ac_link\"") >&5
     3278  (eval $ac_link) 2>&5
     3279  ac_status=$?
     3280  echo "$as_me:3280: \$? = $ac_status" >&5
     3281  (exit $ac_status); } &&
     3282         { ac_try='test -s conftest$ac_exeext'
     3283  { (eval echo "$as_me:3283: \"$ac_try\"") >&5
     3284  (eval $ac_try) 2>&5
     3285  ac_status=$?
     3286  echo "$as_me:3286: \$? = $ac_status" >&5
     3287  (exit $ac_status); }; }; then
     3288  ac_cv_lib_m_main=yes
     3289else
     3290  echo "$as_me: failed program was:" >&5
     3291cat conftest.$ac_ext >&5
     3292ac_cv_lib_m_main=no
     3293fi
     3294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3295LIBS=$ac_check_lib_save_LIBS
     3296fi
     3297echo "$as_me:3297: result: $ac_cv_lib_m_main" >&5
     3298echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     3299if test $ac_cv_lib_m_main = yes; then
     3300  cat >>confdefs.h <<EOF
     3301#define HAVE_LIBM 1
    18193302EOF
    18203303
    18213304  LIBS="-lm $LIBS"
    18223305
    1823 else
    1824   echo "$ac_t""no" 1>&6
    1825 fi
    1826 
    1827 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
    1828 echo "configure:1829: checking for main in -lstdc++" >&5
    1829 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
    1830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1831   echo $ac_n "(cached) $ac_c" 1>&6
    1832 else
    1833   ac_save_LIBS="$LIBS"
     3306fi
     3307
     3308echo "$as_me:3308: checking for main in -lstdc++" >&5
     3309echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
     3310if test "${ac_cv_lib_stdcpp_main+set}" = set; then
     3311  echo $ECHO_N "(cached) $ECHO_C" >&6
     3312else
     3313  ac_check_lib_save_LIBS=$LIBS
    18343314LIBS="-lstdc++  $LIBS"
    1835 cat > conftest.$ac_ext <<EOF
    1836 #line 1837 "configure"
    1837 #include "confdefs.h"
    1838 
    1839 int main() {
    1840 main()
    1841 ; return 0; }
    1842 EOF
    1843 if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1844   rm -rf conftest*
    1845   eval "ac_cv_lib_$ac_lib_var=yes"
    1846 else
    1847   echo "configure: failed program was:" >&5
    1848   cat conftest.$ac_ext >&5
    1849   rm -rf conftest*
    1850   eval "ac_cv_lib_$ac_lib_var=no"
    1851 fi
    1852 rm -f conftest*
    1853 LIBS="$ac_save_LIBS"
    1854 
    1855 fi
    1856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1857   echo "$ac_t""yes" 1>&6
    1858     ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1859     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1860   cat >> confdefs.h <<EOF
    1861 #define $ac_tr_lib 1
     3315cat >conftest.$ac_ext <<_ACEOF
     3316#line 3316 "configure"
     3317#include "confdefs.h"
     3318
     3319int
     3320main ()
     3321{
     3322main ();
     3323  ;
     3324  return 0;
     3325}
     3326_ACEOF
     3327rm -f conftest.$ac_objext conftest$ac_exeext
     3328if { (eval echo "$as_me:3328: \"$ac_link\"") >&5
     3329  (eval $ac_link) 2>&5
     3330  ac_status=$?
     3331  echo "$as_me:3331: \$? = $ac_status" >&5
     3332  (exit $ac_status); } &&
     3333         { ac_try='test -s conftest$ac_exeext'
     3334  { (eval echo "$as_me:3334: \"$ac_try\"") >&5
     3335  (eval $ac_try) 2>&5
     3336  ac_status=$?
     3337  echo "$as_me:3337: \$? = $ac_status" >&5
     3338  (exit $ac_status); }; }; then
     3339  ac_cv_lib_stdcpp_main=yes
     3340else
     3341  echo "$as_me: failed program was:" >&5
     3342cat conftest.$ac_ext >&5
     3343ac_cv_lib_stdcpp_main=no
     3344fi
     3345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3346LIBS=$ac_check_lib_save_LIBS
     3347fi
     3348echo "$as_me:3348: result: $ac_cv_lib_stdcpp_main" >&5
     3349echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
     3350if test $ac_cv_lib_stdcpp_main = yes; then
     3351  cat >>confdefs.h <<EOF
     3352#define HAVE_LIBSTDC__ 1
    18623353EOF
    18633354
    18643355  LIBS="-lstdc++ $LIBS"
    18653356
    1866 else
    1867   echo "$ac_t""no" 1>&6
    1868 fi
    1869 
    1870 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
    1871 echo "configure:1872: checking for main in -lcrypt" >&5
    1872 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
    1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1874   echo $ac_n "(cached) $ac_c" 1>&6
    1875 else
    1876   ac_save_LIBS="$LIBS"
     3357fi
     3358
     3359echo "$as_me:3359: checking for main in -lcrypt" >&5
     3360echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
     3361if test "${ac_cv_lib_crypt_main+set}" = set; then
     3362  echo $ECHO_N "(cached) $ECHO_C" >&6
     3363else
     3364  ac_check_lib_save_LIBS=$LIBS
    18773365LIBS="-lcrypt  $LIBS"
    1878 cat > conftest.$ac_ext <<EOF
    1879 #line 1880 "configure"
    1880 #include "confdefs.h"
    1881 
    1882 int main() {
    1883 main()
    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     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1902     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1903   cat >> confdefs.h <<EOF
    1904 #define $ac_tr_lib 1
     3366cat >conftest.$ac_ext <<_ACEOF
     3367#line 3367 "configure"
     3368#include "confdefs.h"
     3369
     3370int
     3371main ()
     3372{
     3373main ();
     3374  ;
     3375  return 0;
     3376}
     3377_ACEOF
     3378rm -f conftest.$ac_objext conftest$ac_exeext
     3379if { (eval echo "$as_me:3379: \"$ac_link\"") >&5
     3380  (eval $ac_link) 2>&5
     3381  ac_status=$?
     3382  echo "$as_me:3382: \$? = $ac_status" >&5
     3383  (exit $ac_status); } &&
     3384         { ac_try='test -s conftest$ac_exeext'
     3385  { (eval echo "$as_me:3385: \"$ac_try\"") >&5
     3386  (eval $ac_try) 2>&5
     3387  ac_status=$?
     3388  echo "$as_me:3388: \$? = $ac_status" >&5
     3389  (exit $ac_status); }; }; then
     3390  ac_cv_lib_crypt_main=yes
     3391else
     3392  echo "$as_me: failed program was:" >&5
     3393cat conftest.$ac_ext >&5
     3394ac_cv_lib_crypt_main=no
     3395fi
     3396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3397LIBS=$ac_check_lib_save_LIBS
     3398fi
     3399echo "$as_me:3399: result: $ac_cv_lib_crypt_main" >&5
     3400echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
     3401if test $ac_cv_lib_crypt_main = yes; then
     3402  cat >>confdefs.h <<EOF
     3403#define HAVE_LIBCRYPT 1
    19053404EOF
    19063405
    19073406  LIBS="-lcrypt $LIBS"
    19083407
    1909 else
    1910   echo "$ac_t""no" 1>&6
    1911 fi
    1912 
     3408fi
    19133409
    19143410ac_header_dirent=no
    1915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
    1916 do
    1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1918 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    1919 echo "configure:1920: checking for $ac_hdr that defines DIR" >&5
    1920 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    1921   echo $ac_n "(cached) $ac_c" 1>&6
    1922 else
    1923   cat > conftest.$ac_ext <<EOF
    1924 #line 1925 "configure"
     3411for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
     3412  ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
     3413echo "$as_me:3413: checking for $ac_hdr that defines DIR" >&5
     3414echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
     3415if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     3416  echo $ECHO_N "(cached) $ECHO_C" >&6
     3417else
     3418  cat >conftest.$ac_ext <<_ACEOF
     3419#line 3419 "configure"
    19253420#include "confdefs.h"
    19263421#include <sys/types.h>
    19273422#include <$ac_hdr>
    1928 int main() {
     3423
     3424int
     3425main ()
     3426{
    19293427DIR *dirp = 0;
    1930 ; return 0; }
    1931 EOF
    1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1933   rm -rf conftest*
    1934   eval "ac_cv_header_dirent_$ac_safe=yes"
    1935 else
    1936   echo "configure: failed program was:" >&5
    1937   cat conftest.$ac_ext >&5
    1938   rm -rf conftest*
    1939   eval "ac_cv_header_dirent_$ac_safe=no"
    1940 fi
    1941 rm -f conftest*
    1942 fi
    1943 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    1944   echo "$ac_t""yes" 1>&6
    1945     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1946   cat >> confdefs.h <<EOF
    1947 #define $ac_tr_hdr 1
    1948 EOF
    1949  ac_header_dirent=$ac_hdr; break
    1950 else
    1951   echo "$ac_t""no" 1>&6
    1952 fi
     3428  ;
     3429  return 0;
     3430}
     3431_ACEOF
     3432rm -f conftest.$ac_objext
     3433if { (eval echo "$as_me:3433: \"$ac_compile\"") >&5
     3434  (eval $ac_compile) 2>&5
     3435  ac_status=$?
     3436  echo "$as_me:3436: \$? = $ac_status" >&5
     3437  (exit $ac_status); } &&
     3438         { ac_try='test -s conftest.$ac_objext'
     3439  { (eval echo "$as_me:3439: \"$ac_try\"") >&5
     3440  (eval $ac_try) 2>&5
     3441  ac_status=$?
     3442  echo "$as_me:3442: \$? = $ac_status" >&5
     3443  (exit $ac_status); }; }; then
     3444  eval "$ac_ac_Header=yes"
     3445else
     3446  echo "$as_me: failed program was:" >&5
     3447cat conftest.$ac_ext >&5
     3448eval "$ac_ac_Header=no"
     3449fi
     3450rm -f conftest.$ac_objext conftest.$ac_ext
     3451fi
     3452echo "$as_me:3452: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     3453echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     3454if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     3455  cat >>confdefs.h <<EOF
     3456#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
     3457EOF
     3458
     3459ac_header_dirent=$ac_hdr; break
     3460fi
     3461
    19533462done
    19543463# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    19553464if test $ac_header_dirent = dirent.h; then
    1956 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    1957 echo "configure:1958: checking for opendir in -ldir" >&5
    1958 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    1959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1960   echo $ac_n "(cached) $ac_c" 1>&6
    1961 else
    1962   ac_save_LIBS="$LIBS"
     3465  echo "$as_me:3465: checking for opendir in -ldir" >&5
     3466echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
     3467if test "${ac_cv_lib_dir_opendir+set}" = set; then
     3468  echo $ECHO_N "(cached) $ECHO_C" >&6
     3469else
     3470  ac_check_lib_save_LIBS=$LIBS
    19633471LIBS="-ldir  $LIBS"
    1964 cat > conftest.$ac_ext <<EOF
    1965 #line 1966 "configure"
    1966 #include "confdefs.h"
     3472cat >conftest.$ac_ext <<_ACEOF
     3473#line 3473 "configure"
     3474#include "confdefs.h"
     3475
    19673476/* Override any gcc2 internal prototype to avoid an error.  */
     3477#ifdef __cplusplus
     3478extern "C"
     3479#endif
    19683480/* We use char because int might match the return type of a gcc2
    1969     builtin and then its argument prototype would still apply.  */
    1970 char opendir();
    1971 
    1972 int main() {
    1973 opendir()
    1974 ; return 0; }
    1975 EOF
    1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1977   rm -rf conftest*
    1978   eval "ac_cv_lib_$ac_lib_var=yes"
    1979 else
    1980   echo "configure: failed program was:" >&5
    1981   cat conftest.$ac_ext >&5
    1982   rm -rf conftest*
    1983   eval "ac_cv_lib_$ac_lib_var=no"
    1984 fi
    1985 rm -f conftest*
    1986 LIBS="$ac_save_LIBS"
    1987 
    1988 fi
    1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1990   echo "$ac_t""yes" 1>&6
     3481   builtin and then its argument prototype would still apply.  */
     3482char opendir ();
     3483int
     3484main ()
     3485{
     3486opendir ();
     3487  ;
     3488  return 0;
     3489}
     3490_ACEOF
     3491rm -f conftest.$ac_objext conftest$ac_exeext
     3492if { (eval echo "$as_me:3492: \"$ac_link\"") >&5
     3493  (eval $ac_link) 2>&5
     3494  ac_status=$?
     3495  echo "$as_me:3495: \$? = $ac_status" >&5
     3496  (exit $ac_status); } &&
     3497         { ac_try='test -s conftest$ac_exeext'
     3498  { (eval echo "$as_me:3498: \"$ac_try\"") >&5
     3499  (eval $ac_try) 2>&5
     3500  ac_status=$?
     3501  echo "$as_me:3501: \$? = $ac_status" >&5
     3502  (exit $ac_status); }; }; then
     3503  ac_cv_lib_dir_opendir=yes
     3504else
     3505  echo "$as_me: failed program was:" >&5
     3506cat conftest.$ac_ext >&5
     3507ac_cv_lib_dir_opendir=no
     3508fi
     3509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3510LIBS=$ac_check_lib_save_LIBS
     3511fi
     3512echo "$as_me:3512: result: $ac_cv_lib_dir_opendir" >&5
     3513echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
     3514if test $ac_cv_lib_dir_opendir = yes; then
    19913515  LIBS="$LIBS -ldir"
    1992 else
    1993   echo "$ac_t""no" 1>&6
    1994 fi
    1995 
    1996 else
    1997 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
    1998 echo "configure:1999: checking for opendir in -lx" >&5
    1999 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
    2000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2001   echo $ac_n "(cached) $ac_c" 1>&6
    2002 else
    2003   ac_save_LIBS="$LIBS"
     3516fi
     3517
     3518else
     3519  echo "$as_me:3519: checking for opendir in -lx" >&5
     3520echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
     3521if test "${ac_cv_lib_x_opendir+set}" = set; then
     3522  echo $ECHO_N "(cached) $ECHO_C" >&6
     3523else
     3524  ac_check_lib_save_LIBS=$LIBS
    20043525LIBS="-lx  $LIBS"
    2005 cat > conftest.$ac_ext <<EOF
    2006 #line 2007 "configure"
    2007 #include "confdefs.h"
     3526cat >conftest.$ac_ext <<_ACEOF
     3527#line 3527 "configure"
     3528#include "confdefs.h"
     3529
    20083530/* Override any gcc2 internal prototype to avoid an error.  */
     3531#ifdef __cplusplus
     3532extern "C"
     3533#endif
    20093534/* We use char because int might match the return type of a gcc2
    2010     builtin and then its argument prototype would still apply.  */
    2011 char opendir();
    2012 
    2013 int main() {
    2014 opendir()
    2015 ; return 0; }
    2016 EOF
    2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2018   rm -rf conftest*
    2019   eval "ac_cv_lib_$ac_lib_var=yes"
    2020 else
    2021   echo "configure: failed program was:" >&5
    2022   cat conftest.$ac_ext >&5
    2023   rm -rf conftest*
    2024   eval "ac_cv_lib_$ac_lib_var=no"
    2025 fi
    2026 rm -f conftest*
    2027 LIBS="$ac_save_LIBS"
    2028 
    2029 fi
    2030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2031   echo "$ac_t""yes" 1>&6
     3535   builtin and then its argument prototype would still apply.  */
     3536char opendir ();
     3537int
     3538main ()
     3539{
     3540opendir ();
     3541  ;
     3542  return 0;
     3543}
     3544_ACEOF
     3545rm -f conftest.$ac_objext conftest$ac_exeext
     3546if { (eval echo "$as_me:3546: \"$ac_link\"") >&5
     3547  (eval $ac_link) 2>&5
     3548  ac_status=$?
     3549  echo "$as_me:3549: \$? = $ac_status" >&5
     3550  (exit $ac_status); } &&
     3551         { ac_try='test -s conftest$ac_exeext'
     3552  { (eval echo "$as_me:3552: \"$ac_try\"") >&5
     3553  (eval $ac_try) 2>&5
     3554  ac_status=$?
     3555  echo "$as_me:3555: \$? = $ac_status" >&5
     3556  (exit $ac_status); }; }; then
     3557  ac_cv_lib_x_opendir=yes
     3558else
     3559  echo "$as_me: failed program was:" >&5
     3560cat conftest.$ac_ext >&5
     3561ac_cv_lib_x_opendir=no
     3562fi
     3563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3564LIBS=$ac_check_lib_save_LIBS
     3565fi
     3566echo "$as_me:3566: result: $ac_cv_lib_x_opendir" >&5
     3567echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
     3568if test $ac_cv_lib_x_opendir = yes; then
    20323569  LIBS="$LIBS -lx"
    2033 else
    2034   echo "$ac_t""no" 1>&6
    2035 fi
    2036 
    2037 fi
    2038 
    2039 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    2040 echo "configure:2041: checking for ANSI C header files" >&5
    2041 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    2042   echo $ac_n "(cached) $ac_c" 1>&6
    2043 else
    2044   cat > conftest.$ac_ext <<EOF
    2045 #line 2046 "configure"
     3570fi
     3571
     3572fi
     3573
     3574echo "$as_me:3574: checking for ANSI C header files" >&5
     3575echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3576if test "${ac_cv_header_stdc+set}" = set; then
     3577  echo $ECHO_N "(cached) $ECHO_C" >&6
     3578else
     3579  cat >conftest.$ac_ext <<_ACEOF
     3580#line 3580 "configure"
    20463581#include "confdefs.h"
    20473582#include <stdlib.h>
     
    20493584#include <string.h>
    20503585#include <float.h>
    2051 EOF
    2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2055 if test -z "$ac_err"; then
    2056   rm -rf conftest*
     3586
     3587_ACEOF
     3588if { (eval echo "$as_me:3588: \"$ac_cpp conftest.$ac_ext\"") >&5
     3589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3590  ac_status=$?
     3591  egrep -v '^ *\+' conftest.er1 >conftest.err
     3592  rm -f conftest.er1
     3593  cat conftest.err >&5
     3594  echo "$as_me:3594: \$? = $ac_status" >&5
     3595  (exit $ac_status); } >/dev/null; then
     3596  if test -s conftest.err; then
     3597    ac_cpp_err=$ac_c_preproc_warn_flag
     3598  else
     3599    ac_cpp_err=
     3600  fi
     3601else
     3602  ac_cpp_err=yes
     3603fi
     3604if test -z "$ac_cpp_err"; then
    20573605  ac_cv_header_stdc=yes
    20583606else
    2059   echo "$ac_err" >&5
    2060   echo "configure: failed program was:" >&5
     3607  echo "$as_me: failed program was:" >&5
    20613608  cat conftest.$ac_ext >&5
    2062   rm -rf conftest*
    20633609  ac_cv_header_stdc=no
    20643610fi
    2065 rm -f conftest*
     3611rm -f conftest.err conftest.$ac_ext
    20663612
    20673613if test $ac_cv_header_stdc = yes; then
    20683614  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2069 cat > conftest.$ac_ext <<EOF
    2070 #line 2071 "configure"
     3615  cat >conftest.$ac_ext <<_ACEOF
     3616#line 3616 "configure"
    20713617#include "confdefs.h"
    20723618#include <string.h>
    2073 EOF
     3619
     3620_ACEOF
    20743621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    20753622  egrep "memchr" >/dev/null 2>&1; then
    20763623  :
    20773624else
    2078   rm -rf conftest*
    20793625  ac_cv_header_stdc=no
    20803626fi
     
    20853631if test $ac_cv_header_stdc = yes; then
    20863632  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2087 cat > conftest.$ac_ext <<EOF
    2088 #line 2089 "configure"
     3633  cat >conftest.$ac_ext <<_ACEOF
     3634#line 3634 "configure"
    20893635#include "confdefs.h"
    20903636#include <stdlib.h>
    2091 EOF
     3637
     3638_ACEOF
    20923639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    20933640  egrep "free" >/dev/null 2>&1; then
    20943641  :
    20953642else
    2096   rm -rf conftest*
    20973643  ac_cv_header_stdc=no
    20983644fi
     
    21033649if test $ac_cv_header_stdc = yes; then
    21043650  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2105 if test "$cross_compiling" = yes; then
     3651  if test "$cross_compiling" = yes; then
    21063652  :
    21073653else
    2108   cat > conftest.$ac_ext <<EOF
    2109 #line 2110 "configure"
     3654  cat >conftest.$ac_ext <<_ACEOF
     3655#line 3655 "configure"
    21103656#include "confdefs.h"
    21113657#include <ctype.h>
    2112 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2113 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3658#if ((' ' & 0x0FF) == 0x020)
     3659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3661#else
     3662# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     3663                     || ('j' <= (c) && (c) <= 'r') \
     3664                     || ('s' <= (c) && (c) <= 'z'))
     3665# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3666#endif
     3667
    21143668#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2115 int main () { int i; for (i = 0; i < 256; i++)
    2116 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    2117 exit (0); }
    2118 
    2119 EOF
    2120 if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2121 then
     3669int
     3670main ()
     3671{
     3672  int i;
     3673  for (i = 0; i < 256; i++)
     3674    if (XOR (islower (i), ISLOWER (i))
     3675        || toupper (i) != TOUPPER (i))
     3676      exit(2);
     3677  exit (0);
     3678}
     3679_ACEOF
     3680rm -f conftest$ac_exeext
     3681if { (eval echo "$as_me:3681: \"$ac_link\"") >&5
     3682  (eval $ac_link) 2>&5
     3683  ac_status=$?
     3684  echo "$as_me:3684: \$? = $ac_status" >&5
     3685  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3686  { (eval echo "$as_me:3686: \"$ac_try\"") >&5
     3687  (eval $ac_try) 2>&5
     3688  ac_status=$?
     3689  echo "$as_me:3689: \$? = $ac_status" >&5
     3690  (exit $ac_status); }; }; then
    21223691  :
    21233692else
    2124   echo "configure: failed program was:" >&5
     3693  echo "$as_me: program exited with status $ac_status" >&5
     3694echo "$as_me: failed program was:" >&5
     3695cat conftest.$ac_ext >&5
     3696ac_cv_header_stdc=no
     3697fi
     3698rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     3699fi
     3700fi
     3701fi
     3702echo "$as_me:3702: result: $ac_cv_header_stdc" >&5
     3703echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3704if test $ac_cv_header_stdc = yes; then
     3705
     3706cat >>confdefs.h <<\EOF
     3707#define STDC_HEADERS 1
     3708EOF
     3709
     3710fi
     3711
     3712for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
     3713do
     3714ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     3715echo "$as_me:3715: checking for $ac_header" >&5
     3716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3717if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     3718  echo $ECHO_N "(cached) $ECHO_C" >&6
     3719else
     3720  cat >conftest.$ac_ext <<_ACEOF
     3721#line 3721 "configure"
     3722#include "confdefs.h"
     3723#include <$ac_header>
     3724_ACEOF
     3725if { (eval echo "$as_me:3725: \"$ac_cpp conftest.$ac_ext\"") >&5
     3726  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3727  ac_status=$?
     3728  egrep -v '^ *\+' conftest.er1 >conftest.err
     3729  rm -f conftest.er1
     3730  cat conftest.err >&5
     3731  echo "$as_me:3731: \$? = $ac_status" >&5
     3732  (exit $ac_status); } >/dev/null; then
     3733  if test -s conftest.err; then
     3734    ac_cpp_err=$ac_c_preproc_warn_flag
     3735  else
     3736    ac_cpp_err=
     3737  fi
     3738else
     3739  ac_cpp_err=yes
     3740fi
     3741if test -z "$ac_cpp_err"; then
     3742  eval "$ac_ac_Header=yes"
     3743else
     3744  echo "$as_me: failed program was:" >&5
    21253745  cat conftest.$ac_ext >&5
    2126   rm -fr conftest*
    2127   ac_cv_header_stdc=no
    2128 fi
    2129 rm -fr conftest*
    2130 fi
    2131 
    2132 fi
    2133 fi
    2134 
    2135 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    2136 if test $ac_cv_header_stdc = yes; then
    2137   cat >> confdefs.h <<\EOF
    2138 #define STDC_HEADERS 1
    2139 EOF
    2140 
    2141 fi
    2142 
    2143 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
    2144 do
    2145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2147 echo "configure:2148: checking for $ac_hdr" >&5
    2148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2149   echo $ac_n "(cached) $ac_c" 1>&6
    2150 else
    2151   cat > conftest.$ac_ext <<EOF
    2152 #line 2153 "configure"
    2153 #include "confdefs.h"
    2154 #include <$ac_hdr>
    2155 EOF
    2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2159 if test -z "$ac_err"; then
    2160   rm -rf conftest*
    2161   eval "ac_cv_header_$ac_safe=yes"
    2162 else
    2163   echo "$ac_err" >&5
    2164   echo "configure: failed program was:" >&5
    2165   cat conftest.$ac_ext >&5
    2166   rm -rf conftest*
    2167   eval "ac_cv_header_$ac_safe=no"
    2168 fi
    2169 rm -f conftest*
    2170 fi
    2171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2172   echo "$ac_t""yes" 1>&6
    2173     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2174   cat >> confdefs.h <<EOF
    2175 #define $ac_tr_hdr 1
    2176 EOF
    2177  
    2178 else
    2179   echo "$ac_t""no" 1>&6
     3746  eval "$ac_ac_Header=no"
     3747fi
     3748rm -f conftest.err conftest.$ac_ext
     3749fi
     3750echo "$as_me:3750: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     3751echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     3752if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     3753  cat >>confdefs.h <<EOF
     3754#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
     3755EOF
     3756
    21803757fi
    21813758done
    21823759
    2183 cat > conftest.$ac_ext <<EOF
    2184 #line 2185 "configure"
     3760cat >conftest.$ac_ext <<_ACEOF
     3761#line 3761 "configure"
    21853762#include "confdefs.h"
    21863763#include <stdio.h>
    2187 EOF
     3764
     3765_ACEOF
    21883766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    21893767  egrep "fread" >/dev/null 2>&1; then
    2190   rm -rf conftest*
    2191   cat >> confdefs.h <<\EOF
     3768  cat >>confdefs.h <<\EOF
    21923769#define HAVE_FREAD_DECL 1
    21933770EOF
     
    21963773rm -f conftest*
    21973774
    2198 cat > conftest.$ac_ext <<EOF
    2199 #line 2200 "configure"
     3775cat >conftest.$ac_ext <<_ACEOF
     3776#line 3776 "configure"
    22003777#include "confdefs.h"
    22013778#include <stdio.h>
    2202 EOF
     3779
     3780_ACEOF
    22033781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    22043782  egrep "fgetc" >/dev/null 2>&1; then
    2205   rm -rf conftest*
    2206   cat >> confdefs.h <<\EOF
     3783  cat >>confdefs.h <<\EOF
    22073784#define HAVE_FGETC_DECL 1
    22083785EOF
     
    22113788rm -f conftest*
    22123789
    2213 cat > conftest.$ac_ext <<EOF
    2214 #line 2215 "configure"
     3790cat >conftest.$ac_ext <<_ACEOF
     3791#line 3791 "configure"
    22153792#include "confdefs.h"
    22163793#include <sys/procfs.h>
    2217 EOF
     3794
     3795_ACEOF
    22183796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    22193797  egrep "pr_brksize" >/dev/null 2>&1; then
    2220   rm -rf conftest*
    2221   cat >> confdefs.h <<\EOF
     3798  cat >>confdefs.h <<\EOF
    22223799#define HAVE_PR_BRKSIZE 1
    22233800EOF
     
    22253802fi
    22263803rm -f conftest*
    2227 
    22283804
    22293805# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    22303806# for constant arguments.  Useless!
    2231 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2232 echo "configure:2233: checking for working alloca.h" >&5
    2233 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2234   echo $ac_n "(cached) $ac_c" 1>&6
    2235 else
    2236   cat > conftest.$ac_ext <<EOF
    2237 #line 2238 "configure"
     3807echo "$as_me:3807: checking for working alloca.h" >&5
     3808echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     3809if test "${ac_cv_working_alloca_h+set}" = set; then
     3810  echo $ECHO_N "(cached) $ECHO_C" >&6
     3811else
     3812  cat >conftest.$ac_ext <<_ACEOF
     3813#line 3813 "configure"
    22383814#include "confdefs.h"
    22393815#include <alloca.h>
    2240 int main() {
    2241 char *p = alloca(2 * sizeof(int));
    2242 ; return 0; }
    2243 EOF
    2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2245   rm -rf conftest*
    2246   ac_cv_header_alloca_h=yes
    2247 else
    2248   echo "configure: failed program was:" >&5
    2249   cat conftest.$ac_ext >&5
    2250   rm -rf conftest*
    2251   ac_cv_header_alloca_h=no
    2252 fi
    2253 rm -f conftest*
    2254 fi
    2255 
    2256 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2257 if test $ac_cv_header_alloca_h = yes; then
    2258   cat >> confdefs.h <<\EOF
     3816int
     3817main ()
     3818{
     3819char *p = (char *) alloca (2 * sizeof (int));
     3820  ;
     3821  return 0;
     3822}
     3823_ACEOF
     3824rm -f conftest.$ac_objext conftest$ac_exeext
     3825if { (eval echo "$as_me:3825: \"$ac_link\"") >&5
     3826  (eval $ac_link) 2>&5
     3827  ac_status=$?
     3828  echo "$as_me:3828: \$? = $ac_status" >&5
     3829  (exit $ac_status); } &&
     3830         { ac_try='test -s conftest$ac_exeext'
     3831  { (eval echo "$as_me:3831: \"$ac_try\"") >&5
     3832  (eval $ac_try) 2>&5
     3833  ac_status=$?
     3834  echo "$as_me:3834: \$? = $ac_status" >&5
     3835  (exit $ac_status); }; }; then
     3836  ac_cv_working_alloca_h=yes
     3837else
     3838  echo "$as_me: failed program was:" >&5
     3839cat conftest.$ac_ext >&5
     3840ac_cv_working_alloca_h=no
     3841fi
     3842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3843fi
     3844echo "$as_me:3844: result: $ac_cv_working_alloca_h" >&5
     3845echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     3846if test $ac_cv_working_alloca_h = yes; then
     3847
     3848cat >>confdefs.h <<\EOF
    22593849#define HAVE_ALLOCA_H 1
    22603850EOF
     
    22623852fi
    22633853
    2264 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2265 echo "configure:2266: checking for alloca" >&5
    2266 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2267   echo $ac_n "(cached) $ac_c" 1>&6
    2268 else
    2269   cat > conftest.$ac_ext <<EOF
    2270 #line 2271 "configure"
    2271 #include "confdefs.h"
    2272 
     3854echo "$as_me:3854: checking for alloca" >&5
     3855echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     3856if test "${ac_cv_func_alloca_works+set}" = set; then
     3857  echo $ECHO_N "(cached) $ECHO_C" >&6
     3858else
     3859  cat >conftest.$ac_ext <<_ACEOF
     3860#line 3860 "configure"
     3861#include "confdefs.h"
    22733862#ifdef __GNUC__
    22743863# define alloca __builtin_alloca
     
    22923881#endif
    22933882
    2294 int main() {
    2295 char *p = (char *) alloca(1);
    2296 ; return 0; }
    2297 EOF
    2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2299   rm -rf conftest*
     3883int
     3884main ()
     3885{
     3886char *p = (char *) alloca (1);
     3887  ;
     3888  return 0;
     3889}
     3890_ACEOF
     3891rm -f conftest.$ac_objext conftest$ac_exeext
     3892if { (eval echo "$as_me:3892: \"$ac_link\"") >&5
     3893  (eval $ac_link) 2>&5
     3894  ac_status=$?
     3895  echo "$as_me:3895: \$? = $ac_status" >&5
     3896  (exit $ac_status); } &&
     3897         { ac_try='test -s conftest$ac_exeext'
     3898  { (eval echo "$as_me:3898: \"$ac_try\"") >&5
     3899  (eval $ac_try) 2>&5
     3900  ac_status=$?
     3901  echo "$as_me:3901: \$? = $ac_status" >&5
     3902  (exit $ac_status); }; }; then
    23003903  ac_cv_func_alloca_works=yes
    23013904else
    2302   echo "configure: failed program was:" >&5
    2303   cat conftest.$ac_ext >&5
    2304   rm -rf conftest*
    2305   ac_cv_func_alloca_works=no
    2306 fi
    2307 rm -f conftest*
    2308 fi
    2309 
    2310 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     3905  echo "$as_me: failed program was:" >&5
     3906cat conftest.$ac_ext >&5
     3907ac_cv_func_alloca_works=no
     3908fi
     3909rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3910fi
     3911echo "$as_me:3911: result: $ac_cv_func_alloca_works" >&5
     3912echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     3913
    23113914if test $ac_cv_func_alloca_works = yes; then
    2312   cat >> confdefs.h <<\EOF
     3915
     3916cat >>confdefs.h <<\EOF
    23133917#define HAVE_ALLOCA 1
    23143918EOF
    23153919
    2316 fi
    2317 
    2318 if test $ac_cv_func_alloca_works = no; then
     3920else
    23193921  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    2320   # that cause trouble.  Some versions do not even contain alloca or
    2321   # contain a buggy version.  If you still want to use their alloca,
    2322   # use ar to extract alloca.o from them instead of compiling alloca.c.
    2323   ALLOCA=alloca.${ac_objext}
    2324   cat >> confdefs.h <<\EOF
     3922# that cause trouble.  Some versions do not even contain alloca or
     3923# contain a buggy version.  If you still want to use their alloca,
     3924# use ar to extract alloca.o from them instead of compiling alloca.c.
     3925
     3926ALLOCA=alloca.$ac_objext
     3927
     3928cat >>confdefs.h <<\EOF
    23253929#define C_ALLOCA 1
    23263930EOF
    23273931
    2328 
    2329 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2330 echo "configure:2331: checking whether alloca needs Cray hooks" >&5
    2331 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2332   echo $ac_n "(cached) $ac_c" 1>&6
    2333 else
    2334   cat > conftest.$ac_ext <<EOF
    2335 #line 2336 "configure"
     3932echo "$as_me:3932: checking whether \`alloca.c' needs Cray hooks" >&5
     3933echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     3934if test "${ac_cv_os_cray+set}" = set; then
     3935  echo $ECHO_N "(cached) $ECHO_C" >&6
     3936else
     3937  cat >conftest.$ac_ext <<_ACEOF
     3938#line 3938 "configure"
    23363939#include "confdefs.h"
    23373940#if defined(CRAY) && ! defined(CRAY2)
     
    23413944#endif
    23423945
    2343 EOF
     3946_ACEOF
    23443947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    23453948  egrep "webecray" >/dev/null 2>&1; then
    2346   rm -rf conftest*
    23473949  ac_cv_os_cray=yes
    23483950else
    2349   rm -rf conftest*
    23503951  ac_cv_os_cray=no
    23513952fi
     
    23533954
    23543955fi
    2355 
    2356 echo "$ac_t""$ac_cv_os_cray" 1>&6
     3956echo "$as_me:3956: result: $ac_cv_os_cray" >&5
     3957echo "${ECHO_T}$ac_cv_os_cray" >&6
    23573958if test $ac_cv_os_cray = yes; then
    2358 for ac_func in _getb67 GETB67 getb67; do
    2359   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2360 echo "configure:2361: checking for $ac_func" >&5
    2361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2362   echo $ac_n "(cached) $ac_c" 1>&6
    2363 else
    2364   cat > conftest.$ac_ext <<EOF
    2365 #line 2366 "configure"
     3959  for ac_func in _getb67 GETB67 getb67; do
     3960    ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     3961echo "$as_me:3961: checking for $ac_func" >&5
     3962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     3963if eval "test \"\${$ac_ac_var+set}\" = set"; then
     3964  echo $ECHO_N "(cached) $ECHO_C" >&6
     3965else
     3966  cat >conftest.$ac_ext <<_ACEOF
     3967#line 3967 "configure"
    23663968#include "confdefs.h"
    23673969/* System header to define __stub macros and hopefully few prototypes,
    2368     which can conflict with char $ac_func(); below.  */
     3970    which can conflict with char $ac_func (); below.  */
    23693971#include <assert.h>
    23703972/* Override any gcc2 internal prototype to avoid an error.  */
     3973#ifdef __cplusplus
     3974extern "C"
     3975#endif
    23713976/* We use char because int might match the return type of a gcc2
    2372     builtin and then its argument prototype would still apply.  */
    2373 char $ac_func();
    2374 
    2375 int main() {
    2376 
     3977   builtin and then its argument prototype would still apply.  */
     3978char $ac_func ();
     3979char (*f) ();
     3980
     3981int
     3982main ()
     3983{
    23773984/* The GNU C library defines this for functions which it implements
    23783985    to always fail with ENOSYS.  Some functions are actually named
     
    23813988choke me
    23823989#else
    2383 $ac_func();
     3990f = $ac_func;
    23843991#endif
    23853992
    2386 ; return 0; }
    2387 EOF
    2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2389   rm -rf conftest*
    2390   eval "ac_cv_func_$ac_func=yes"
    2391 else
    2392   echo "configure: failed program was:" >&5
    2393   cat conftest.$ac_ext >&5
    2394   rm -rf conftest*
    2395   eval "ac_cv_func_$ac_func=no"
    2396 fi
    2397 rm -f conftest*
    2398 fi
    2399 
    2400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2401   echo "$ac_t""yes" 1>&6
    2402   cat >> confdefs.h <<EOF
     3993  ;
     3994  return 0;
     3995}
     3996_ACEOF
     3997rm -f conftest.$ac_objext conftest$ac_exeext
     3998if { (eval echo "$as_me:3998: \"$ac_link\"") >&5
     3999  (eval $ac_link) 2>&5
     4000  ac_status=$?
     4001  echo "$as_me:4001: \$? = $ac_status" >&5
     4002  (exit $ac_status); } &&
     4003         { ac_try='test -s conftest$ac_exeext'
     4004  { (eval echo "$as_me:4004: \"$ac_try\"") >&5
     4005  (eval $ac_try) 2>&5
     4006  ac_status=$?
     4007  echo "$as_me:4007: \$? = $ac_status" >&5
     4008  (exit $ac_status); }; }; then
     4009  eval "$ac_ac_var=yes"
     4010else
     4011  echo "$as_me: failed program was:" >&5
     4012cat conftest.$ac_ext >&5
     4013eval "$ac_ac_var=no"
     4014fi
     4015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4016fi
     4017echo "$as_me:4017: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4018echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4019if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4020
     4021cat >>confdefs.h <<EOF
    24034022#define CRAY_STACKSEG_END $ac_func
    24044023EOF
    24054024
    2406   break
    2407 else
    2408   echo "$ac_t""no" 1>&6
    2409 fi
    2410 
    2411 done
    2412 fi
    2413 
    2414 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2415 echo "configure:2416: checking stack direction for C alloca" >&5
    2416 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    2417   echo $ac_n "(cached) $ac_c" 1>&6
     4025    break
     4026fi
     4027
     4028  done
     4029fi
     4030
     4031echo "$as_me:4031: checking stack direction for C alloca" >&5
     4032echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
     4033if test "${ac_cv_c_stack_direction+set}" = set; then
     4034  echo $ECHO_N "(cached) $ECHO_C" >&6
    24184035else
    24194036  if test "$cross_compiling" = yes; then
    24204037  ac_cv_c_stack_direction=0
    24214038else
    2422   cat > conftest.$ac_ext <<EOF
    2423 #line 2424 "configure"
    2424 #include "confdefs.h"
     4039  cat >conftest.$ac_ext <<_ACEOF
     4040#line 4040 "configure"
     4041#include "confdefs.h"
     4042int
    24254043find_stack_direction ()
    24264044{
     
    24354053    return (&dummy > addr) ? 1 : -1;
    24364054}
     4055
     4056int
    24374057main ()
    24384058{
    2439   exit (find_stack_direction() < 0);
     4059  exit (find_stack_direction () < 0);
    24404060}
    2441 EOF
    2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2443 then
     4061_ACEOF
     4062rm -f conftest$ac_exeext
     4063if { (eval echo "$as_me:4063: \"$ac_link\"") >&5
     4064  (eval $ac_link) 2>&5
     4065  ac_status=$?
     4066  echo "$as_me:4066: \$? = $ac_status" >&5
     4067  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4068  { (eval echo "$as_me:4068: \"$ac_try\"") >&5
     4069  (eval $ac_try) 2>&5
     4070  ac_status=$?
     4071  echo "$as_me:4071: \$? = $ac_status" >&5
     4072  (exit $ac_status); }; }; then
    24444073  ac_cv_c_stack_direction=1
    24454074else
    2446   echo "configure: failed program was:" >&5
    2447   cat conftest.$ac_ext >&5
    2448   rm -fr conftest*
    2449   ac_cv_c_stack_direction=-1
    2450 fi
    2451 rm -fr conftest*
    2452 fi
    2453 
    2454 fi
    2455 
    2456 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
    2457 cat >> confdefs.h <<EOF
     4075  echo "$as_me: program exited with status $ac_status" >&5
     4076echo "$as_me: failed program was:" >&5
     4077cat conftest.$ac_ext >&5
     4078ac_cv_c_stack_direction=-1
     4079fi
     4080rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     4081fi
     4082fi
     4083echo "$as_me:4083: result: $ac_cv_c_stack_direction" >&5
     4084echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
     4085
     4086cat >>confdefs.h <<EOF
    24584087#define STACK_DIRECTION $ac_cv_c_stack_direction
    24594088EOF
     
    24614090fi
    24624091
    2463 if test $ac_cv_prog_gcc = yes; then
    2464     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2465 echo "configure:2466: checking whether ${CC-cc} needs -traditional" >&5
    2466 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    2467   echo $ac_n "(cached) $ac_c" 1>&6
     4092if test $ac_cv_c_compiler_gnu = yes; then
     4093    echo "$as_me:4093: checking whether $CC needs -traditional" >&5
     4094echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
     4095if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     4096  echo $ECHO_N "(cached) $ECHO_C" >&6
    24684097else
    24694098    ac_pattern="Autoconf.*'x'"
    2470   cat > conftest.$ac_ext <<EOF
    2471 #line 2472 "configure"
     4099  cat >conftest.$ac_ext <<_ACEOF
     4100#line 4100 "configure"
    24724101#include "confdefs.h"
    24734102#include <sgtty.h>
    24744103Autoconf TIOCGETP
    2475 EOF
     4104_ACEOF
    24764105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    24774106  egrep "$ac_pattern" >/dev/null 2>&1; then
    2478   rm -rf conftest*
    24794107  ac_cv_prog_gcc_traditional=yes
    24804108else
    2481   rm -rf conftest*
    24824109  ac_cv_prog_gcc_traditional=no
    24834110fi
    24844111rm -f conftest*
    24854112
    2486 
    24874113  if test $ac_cv_prog_gcc_traditional = no; then
    2488     cat > conftest.$ac_ext <<EOF
    2489 #line 2490 "configure"
     4114    cat >conftest.$ac_ext <<_ACEOF
     4115#line 4115 "configure"
    24904116#include "confdefs.h"
    24914117#include <termio.h>
    24924118Autoconf TCGETA
    2493 EOF
     4119_ACEOF
    24944120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    24954121  egrep "$ac_pattern" >/dev/null 2>&1; then
    2496   rm -rf conftest*
    24974122  ac_cv_prog_gcc_traditional=yes
    24984123fi
     
    25014126  fi
    25024127fi
    2503 
    2504 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
     4128echo "$as_me:4128: result: $ac_cv_prog_gcc_traditional" >&5
     4129echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    25054130  if test $ac_cv_prog_gcc_traditional = yes; then
    25064131    CC="$CC -traditional"
     
    25084133fi
    25094134
    2510 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2511 echo "configure:2512: checking return type of signal handlers" >&5
    2512 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    2513   echo $ac_n "(cached) $ac_c" 1>&6
    2514 else
    2515   cat > conftest.$ac_ext <<EOF
    2516 #line 2517 "configure"
     4135echo "$as_me:4135: checking return type of signal handlers" >&5
     4136echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
     4137if test "${ac_cv_type_signal+set}" = set; then
     4138  echo $ECHO_N "(cached) $ECHO_C" >&6
     4139else
     4140  cat >conftest.$ac_ext <<_ACEOF
     4141#line 4141 "configure"
    25174142#include "confdefs.h"
    25184143#include <sys/types.h>
    25194144#include <signal.h>
    25204145#ifdef signal
    2521 #undef signal
     4146# undef signal
    25224147#endif
    25234148#ifdef __cplusplus
     
    25274152#endif
    25284153
    2529 int main() {
     4154int
     4155main ()
     4156{
    25304157int i;
    2531 ; return 0; }
    2532 EOF
    2533 if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2534   rm -rf conftest*
     4158  ;
     4159  return 0;
     4160}
     4161_ACEOF
     4162rm -f conftest.$ac_objext
     4163if { (eval echo "$as_me:4163: \"$ac_compile\"") >&5
     4164  (eval $ac_compile) 2>&5
     4165  ac_status=$?
     4166  echo "$as_me:4166: \$? = $ac_status" >&5
     4167  (exit $ac_status); } &&
     4168         { ac_try='test -s conftest.$ac_objext'
     4169  { (eval echo "$as_me:4169: \"$ac_try\"") >&5
     4170  (eval $ac_try) 2>&5
     4171  ac_status=$?
     4172  echo "$as_me:4172: \$? = $ac_status" >&5
     4173  (exit $ac_status); }; }; then
    25354174  ac_cv_type_signal=void
    25364175else
    2537   echo "configure: failed program was:" >&5
    2538   cat conftest.$ac_ext >&5
    2539   rm -rf conftest*
    2540   ac_cv_type_signal=int
    2541 fi
    2542 rm -f conftest*
    2543 fi
    2544 
    2545 echo "$ac_t""$ac_cv_type_signal" 1>&6
    2546 cat >> confdefs.h <<EOF
     4176  echo "$as_me: failed program was:" >&5
     4177cat conftest.$ac_ext >&5
     4178ac_cv_type_signal=int
     4179fi
     4180rm -f conftest.$ac_objext conftest.$ac_ext
     4181fi
     4182echo "$as_me:4182: result: $ac_cv_type_signal" >&5
     4183echo "${ECHO_T}$ac_cv_type_signal" >&6
     4184
     4185cat >>confdefs.h <<EOF
    25474186#define RETSIGTYPE $ac_cv_type_signal
    25484187EOF
    25494188
    2550 
    2551 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2552 echo "configure:2553: checking for vprintf" >&5
    2553 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    2554   echo $ac_n "(cached) $ac_c" 1>&6
    2555 else
    2556   cat > conftest.$ac_ext <<EOF
    2557 #line 2558 "configure"
     4189for ac_func in vprintf
     4190do
     4191ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4192echo "$as_me:4192: checking for $ac_func" >&5
     4193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4194if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4195  echo $ECHO_N "(cached) $ECHO_C" >&6
     4196else
     4197  cat >conftest.$ac_ext <<_ACEOF
     4198#line 4198 "configure"
    25584199#include "confdefs.h"
    25594200/* System header to define __stub macros and hopefully few prototypes,
    2560     which can conflict with char vprintf(); below.  */
     4201    which can conflict with char $ac_func (); below.  */
    25614202#include <assert.h>
    25624203/* Override any gcc2 internal prototype to avoid an error.  */
     4204#ifdef __cplusplus
     4205extern "C"
     4206#endif
    25634207/* We use char because int might match the return type of a gcc2
    2564     builtin and then its argument prototype would still apply.  */
    2565 char vprintf();
    2566 
    2567 int main() {
    2568 
     4208   builtin and then its argument prototype would still apply.  */
     4209char $ac_func ();
     4210char (*f) ();
     4211
     4212int
     4213main ()
     4214{
    25694215/* The GNU C library defines this for functions which it implements
    25704216    to always fail with ENOSYS.  Some functions are actually named
    25714217    something starting with __ and the normal name is an alias.  */
    2572 #if defined (__stub_vprintf) || defined (__stub___vprintf)
     4218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    25734219choke me
    25744220#else
    2575 vprintf();
     4221f = $ac_func;
    25764222#endif
    25774223
    2578 ; return 0; }
    2579 EOF
    2580 if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2581   rm -rf conftest*
    2582   eval "ac_cv_func_vprintf=yes"
    2583 else
    2584   echo "configure: failed program was:" >&5
    2585   cat conftest.$ac_ext >&5
    2586   rm -rf conftest*
    2587   eval "ac_cv_func_vprintf=no"
    2588 fi
    2589 rm -f conftest*
    2590 fi
    2591 
    2592 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    2593   echo "$ac_t""yes" 1>&6
    2594   cat >> confdefs.h <<\EOF
    2595 #define HAVE_VPRINTF 1
    2596 EOF
    2597 
    2598 else
    2599   echo "$ac_t""no" 1>&6
    2600 fi
    2601 
    2602 if test "$ac_cv_func_vprintf" != yes; then
    2603 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2604 echo "configure:2605: checking for _doprnt" >&5
    2605 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    2606   echo $ac_n "(cached) $ac_c" 1>&6
    2607 else
    2608   cat > conftest.$ac_ext <<EOF
    2609 #line 2610 "configure"
     4224  ;
     4225  return 0;
     4226}
     4227_ACEOF
     4228rm -f conftest.$ac_objext conftest$ac_exeext
     4229if { (eval echo "$as_me:4229: \"$ac_link\"") >&5
     4230  (eval $ac_link) 2>&5
     4231  ac_status=$?
     4232  echo "$as_me:4232: \$? = $ac_status" >&5
     4233  (exit $ac_status); } &&
     4234         { ac_try='test -s conftest$ac_exeext'
     4235  { (eval echo "$as_me:4235: \"$ac_try\"") >&5
     4236  (eval $ac_try) 2>&5
     4237  ac_status=$?
     4238  echo "$as_me:4238: \$? = $ac_status" >&5
     4239  (exit $ac_status); }; }; then
     4240  eval "$ac_ac_var=yes"
     4241else
     4242  echo "$as_me: failed program was:" >&5
     4243cat conftest.$ac_ext >&5
     4244eval "$ac_ac_var=no"
     4245fi
     4246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4247fi
     4248echo "$as_me:4248: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4249echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4250if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4251  cat >>confdefs.h <<EOF
     4252#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4253EOF
     4254
     4255echo "$as_me:4255: checking for _doprnt" >&5
     4256echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
     4257if test "${ac_cv_func__doprnt+set}" = set; then
     4258  echo $ECHO_N "(cached) $ECHO_C" >&6
     4259else
     4260  cat >conftest.$ac_ext <<_ACEOF
     4261#line 4261 "configure"
    26104262#include "confdefs.h"
    26114263/* System header to define __stub macros and hopefully few prototypes,
    2612     which can conflict with char _doprnt(); below.  */
     4264    which can conflict with char _doprnt (); below.  */
    26134265#include <assert.h>
    26144266/* Override any gcc2 internal prototype to avoid an error.  */
     4267#ifdef __cplusplus
     4268extern "C"
     4269#endif
    26154270/* We use char because int might match the return type of a gcc2
    2616     builtin and then its argument prototype would still apply.  */
    2617 char _doprnt();
    2618 
    2619 int main() {
    2620 
     4271   builtin and then its argument prototype would still apply.  */
     4272char _doprnt ();
     4273char (*f) ();
     4274
     4275int
     4276main ()
     4277{
    26214278/* The GNU C library defines this for functions which it implements
    26224279    to always fail with ENOSYS.  Some functions are actually named
     
    26254282choke me
    26264283#else
    2627 _doprnt();
     4284f = _doprnt;
    26284285#endif
    26294286
    2630 ; return 0; }
    2631 EOF
    2632 if { (eval echo configure:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2633   rm -rf conftest*
    2634   eval "ac_cv_func__doprnt=yes"
    2635 else
    2636   echo "configure: failed program was:" >&5
    2637   cat conftest.$ac_ext >&5
    2638   rm -rf conftest*
    2639   eval "ac_cv_func__doprnt=no"
    2640 fi
    2641 rm -f conftest*
    2642 fi
    2643 
    2644 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    2645   echo "$ac_t""yes" 1>&6
    2646   cat >> confdefs.h <<\EOF
     4287  ;
     4288  return 0;
     4289}
     4290_ACEOF
     4291rm -f conftest.$ac_objext conftest$ac_exeext
     4292if { (eval echo "$as_me:4292: \"$ac_link\"") >&5
     4293  (eval $ac_link) 2>&5
     4294  ac_status=$?
     4295  echo "$as_me:4295: \$? = $ac_status" >&5
     4296  (exit $ac_status); } &&
     4297         { ac_try='test -s conftest$ac_exeext'
     4298  { (eval echo "$as_me:4298: \"$ac_try\"") >&5
     4299  (eval $ac_try) 2>&5
     4300  ac_status=$?
     4301  echo "$as_me:4301: \$? = $ac_status" >&5
     4302  (exit $ac_status); }; }; then
     4303  ac_cv_func__doprnt=yes
     4304else
     4305  echo "$as_me: failed program was:" >&5
     4306cat conftest.$ac_ext >&5
     4307ac_cv_func__doprnt=no
     4308fi
     4309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4310fi
     4311echo "$as_me:4311: result: $ac_cv_func__doprnt" >&5
     4312echo "${ECHO_T}$ac_cv_func__doprnt" >&6
     4313if test $ac_cv_func__doprnt = yes; then
     4314
     4315cat >>confdefs.h <<\EOF
    26474316#define HAVE_DOPRNT 1
    26484317EOF
    26494318
    2650 else
    2651   echo "$ac_t""no" 1>&6
    2652 fi
    2653 
    2654 fi
     4319fi
     4320
     4321fi
     4322done
    26554323
    26564324for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    26574325do
    2658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2659 echo "configure:2660: checking for $ac_func" >&5
    2660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2661   echo $ac_n "(cached) $ac_c" 1>&6
    2662 else
    2663   cat > conftest.$ac_ext <<EOF
    2664 #line 2665 "configure"
     4326ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4327echo "$as_me:4327: checking for $ac_func" >&5
     4328echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4329if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4330  echo $ECHO_N "(cached) $ECHO_C" >&6
     4331else
     4332  cat >conftest.$ac_ext <<_ACEOF
     4333#line 4333 "configure"
    26654334#include "confdefs.h"
    26664335/* System header to define __stub macros and hopefully few prototypes,
    2667     which can conflict with char $ac_func(); below.  */
     4336    which can conflict with char $ac_func (); below.  */
    26684337#include <assert.h>
    26694338/* Override any gcc2 internal prototype to avoid an error.  */
     4339#ifdef __cplusplus
     4340extern "C"
     4341#endif
    26704342/* We use char because int might match the return type of a gcc2
    2671     builtin and then its argument prototype would still apply.  */
    2672 char $ac_func();
    2673 
    2674 int main() {
    2675 
     4343   builtin and then its argument prototype would still apply.  */
     4344char $ac_func ();
     4345char (*f) ();
     4346
     4347int
     4348main ()
     4349{
    26764350/* The GNU C library defines this for functions which it implements
    26774351    to always fail with ENOSYS.  Some functions are actually named
     
    26804354choke me
    26814355#else
    2682 $ac_func();
     4356f = $ac_func;
    26834357#endif
    26844358
    2685 ; return 0; }
    2686 EOF
    2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2688   rm -rf conftest*
    2689   eval "ac_cv_func_$ac_func=yes"
    2690 else
    2691   echo "configure: failed program was:" >&5
    2692   cat conftest.$ac_ext >&5
    2693   rm -rf conftest*
    2694   eval "ac_cv_func_$ac_func=no"
    2695 fi
    2696 rm -f conftest*
    2697 fi
    2698 
    2699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2700   echo "$ac_t""yes" 1>&6
    2701     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2702   cat >> confdefs.h <<EOF
    2703 #define $ac_tr_func 1
    2704 EOF
    2705  
    2706 else
    2707   echo "$ac_t""no" 1>&6
     4359  ;
     4360  return 0;
     4361}
     4362_ACEOF
     4363rm -f conftest.$ac_objext conftest$ac_exeext
     4364if { (eval echo "$as_me:4364: \"$ac_link\"") >&5
     4365  (eval $ac_link) 2>&5
     4366  ac_status=$?
     4367  echo "$as_me:4367: \$? = $ac_status" >&5
     4368  (exit $ac_status); } &&
     4369         { ac_try='test -s conftest$ac_exeext'
     4370  { (eval echo "$as_me:4370: \"$ac_try\"") >&5
     4371  (eval $ac_try) 2>&5
     4372  ac_status=$?
     4373  echo "$as_me:4373: \$? = $ac_status" >&5
     4374  (exit $ac_status); }; }; then
     4375  eval "$ac_ac_var=yes"
     4376else
     4377  echo "$as_me: failed program was:" >&5
     4378cat conftest.$ac_ext >&5
     4379eval "$ac_ac_var=no"
     4380fi
     4381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4382fi
     4383echo "$as_me:4383: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4384echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4385if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4386  cat >>confdefs.h <<EOF
     4387#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4388EOF
     4389
    27084390fi
    27094391done
     
    27114393for ac_func in ftruncate strstr strcasecmp
    27124394do
    2713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2714 echo "configure:2715: checking for $ac_func" >&5
    2715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2716   echo $ac_n "(cached) $ac_c" 1>&6
    2717 else
    2718   cat > conftest.$ac_ext <<EOF
    2719 #line 2720 "configure"
     4395ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4396echo "$as_me:4396: checking for $ac_func" >&5
     4397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4398if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4399  echo $ECHO_N "(cached) $ECHO_C" >&6
     4400else
     4401  cat >conftest.$ac_ext <<_ACEOF
     4402#line 4402 "configure"
    27204403#include "confdefs.h"
    27214404/* System header to define __stub macros and hopefully few prototypes,
    2722     which can conflict with char $ac_func(); below.  */
     4405    which can conflict with char $ac_func (); below.  */
    27234406#include <assert.h>
    27244407/* Override any gcc2 internal prototype to avoid an error.  */
     4408#ifdef __cplusplus
     4409extern "C"
     4410#endif
    27254411/* We use char because int might match the return type of a gcc2
    2726     builtin and then its argument prototype would still apply.  */
    2727 char $ac_func();
    2728 
    2729 int main() {
    2730 
     4412   builtin and then its argument prototype would still apply.  */
     4413char $ac_func ();
     4414char (*f) ();
     4415
     4416int
     4417main ()
     4418{
    27314419/* The GNU C library defines this for functions which it implements
    27324420    to always fail with ENOSYS.  Some functions are actually named
     
    27354423choke me
    27364424#else
    2737 $ac_func();
     4425f = $ac_func;
    27384426#endif
    27394427
    2740 ; return 0; }
    2741 EOF
    2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2743   rm -rf conftest*
    2744   eval "ac_cv_func_$ac_func=yes"
    2745 else
    2746   echo "configure: failed program was:" >&5
    2747   cat conftest.$ac_ext >&5
    2748   rm -rf conftest*
    2749   eval "ac_cv_func_$ac_func=no"
    2750 fi
    2751 rm -f conftest*
    2752 fi
    2753 
    2754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2755   echo "$ac_t""yes" 1>&6
    2756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2757   cat >> confdefs.h <<EOF
    2758 #define $ac_tr_func 1
    2759 EOF
    2760  
    2761 else
    2762   echo "$ac_t""no" 1>&6
    2763 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
     4428  ;
     4429  return 0;
     4430}
     4431_ACEOF
     4432rm -f conftest.$ac_objext conftest$ac_exeext
     4433if { (eval echo "$as_me:4433: \"$ac_link\"") >&5
     4434  (eval $ac_link) 2>&5
     4435  ac_status=$?
     4436  echo "$as_me:4436: \$? = $ac_status" >&5
     4437  (exit $ac_status); } &&
     4438         { ac_try='test -s conftest$ac_exeext'
     4439  { (eval echo "$as_me:4439: \"$ac_try\"") >&5
     4440  (eval $ac_try) 2>&5
     4441  ac_status=$?
     4442  echo "$as_me:4442: \$? = $ac_status" >&5
     4443  (exit $ac_status); }; }; then
     4444  eval "$ac_ac_var=yes"
     4445else
     4446  echo "$as_me: failed program was:" >&5
     4447cat conftest.$ac_ext >&5
     4448eval "$ac_ac_var=no"
     4449fi
     4450rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4451fi
     4452echo "$as_me:4452: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4453echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4454if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4455  cat >>confdefs.h <<EOF
     4456#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4457EOF
     4458
     4459else
     4460  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
    27644461fi
    27654462done
    27664463
    2767 
    2768 
    2769 
    2770 echo $ac_n "checking for textdomain ""... $ac_c" 1>&6
    2771 echo "configure:2772: checking for textdomain " >&5
    2772 if eval "test \"`echo '$''{'ac_cv_func_textdomain '+set}'`\" = set"; then
    2773   echo $ac_n "(cached) $ac_c" 1>&6
    2774 else
    2775   cat > conftest.$ac_ext <<EOF
    2776 #line 2777 "configure"
     4464echo "$as_me:4464: checking for textdomain" >&5
     4465echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
     4466if test "${ac_cv_func_textdomain+set}" = set; then
     4467  echo $ECHO_N "(cached) $ECHO_C" >&6
     4468else
     4469  cat >conftest.$ac_ext <<_ACEOF
     4470#line 4470 "configure"
    27774471#include "confdefs.h"
    27784472/* System header to define __stub macros and hopefully few prototypes,
     
    27804474#include <assert.h>
    27814475/* Override any gcc2 internal prototype to avoid an error.  */
     4476#ifdef __cplusplus
     4477extern "C"
     4478#endif
    27824479/* We use char because int might match the return type of a gcc2
    2783     builtin and then its argument prototype would still apply.  */
     4480   builtin and then its argument prototype would still apply.  */
    27844481char textdomain ();
    2785 
    2786 int main() {
    2787 
     4482char (*f) ();
     4483
     4484int
     4485main ()
     4486{
    27884487/* The GNU C library defines this for functions which it implements
    27894488    to always fail with ENOSYS.  Some functions are actually named
    27904489    something starting with __ and the normal name is an alias.  */
    2791 #if defined (__stub_textdomain ) || defined (__stub___textdomain )
     4490#if defined (__stub_textdomain) || defined (__stub___textdomain)
    27924491choke me
    27934492#else
    2794 textdomain ();
     4493f = textdomain;
    27954494#endif
    27964495
    2797 ; return 0; }
    2798 EOF
    2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2800   rm -rf conftest*
    2801   eval "ac_cv_func_textdomain =yes"
    2802 else
    2803   echo "configure: failed program was:" >&5
    2804   cat conftest.$ac_ext >&5
    2805   rm -rf conftest*
    2806   eval "ac_cv_func_textdomain =no"
    2807 fi
    2808 rm -f conftest*
    2809 fi
    2810 
    2811 if eval "test \"`echo '$ac_cv_func_'textdomain `\" = yes"; then
    2812   echo "$ac_t""yes" 1>&6
    2813   cat >> confdefs.h <<\EOF
     4496  ;
     4497  return 0;
     4498}
     4499_ACEOF
     4500rm -f conftest.$ac_objext conftest$ac_exeext
     4501if { (eval echo "$as_me:4501: \"$ac_link\"") >&5
     4502  (eval $ac_link) 2>&5
     4503  ac_status=$?
     4504  echo "$as_me:4504: \$? = $ac_status" >&5
     4505  (exit $ac_status); } &&
     4506         { ac_try='test -s conftest$ac_exeext'
     4507  { (eval echo "$as_me:4507: \"$ac_try\"") >&5
     4508  (eval $ac_try) 2>&5
     4509  ac_status=$?
     4510  echo "$as_me:4510: \$? = $ac_status" >&5
     4511  (exit $ac_status); }; }; then
     4512  ac_cv_func_textdomain=yes
     4513else
     4514  echo "$as_me: failed program was:" >&5
     4515cat conftest.$ac_ext >&5
     4516ac_cv_func_textdomain=no
     4517fi
     4518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4519fi
     4520echo "$as_me:4520: result: $ac_cv_func_textdomain" >&5
     4521echo "${ECHO_T}$ac_cv_func_textdomain" >&6
     4522if test $ac_cv_func_textdomain = yes; then
     4523  cat >>confdefs.h <<\EOF
    28144524#define ENABLE_NLS  1
    28154525EOF
    2816  
    2817 else
    2818   echo "$ac_t""no" 1>&6
    2819 fi
    2820 
     4526
     4527fi
    28214528
    28224529# *** Custom checking (based on GNU tar configure.in) ***
    28234530# ---------------------------------------------------------------------------
    2824 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
    2825 echo "configure:2826: checking for HP-UX needing gmalloc" >&5
     4531echo "$as_me:4531: checking for HP-UX needing gmalloc" >&5
     4532echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    28264533if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    2827   echo "$ac_t""yes" 1>&6
     4534  echo "$as_me:4534: result: yes" >&5
     4535echo "${ECHO_T}yes" >&6
    28284536  LIBOBJS="$LIBOBJS gmalloc.o"
    2829   cat >> confdefs.h <<\EOF
     4537  cat >>confdefs.h <<\EOF
    28304538#define HAVE_VALLOC 1
    28314539EOF
    28324540
    28334541else
    2834   echo "$ac_t""no" 1>&6
    2835   for ac_func in valloc
     4542  echo "$as_me:4542: result: no" >&5
     4543echo "${ECHO_T}no" >&6
     4544
     4545for ac_func in valloc
    28364546do
    2837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2838 echo "configure:2839: checking for $ac_func" >&5
    2839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2840   echo $ac_n "(cached) $ac_c" 1>&6
    2841 else
    2842   cat > conftest.$ac_ext <<EOF
    2843 #line 2844 "configure"
     4547ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4548echo "$as_me:4548: checking for $ac_func" >&5
     4549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4550if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4551  echo $ECHO_N "(cached) $ECHO_C" >&6
     4552else
     4553  cat >conftest.$ac_ext <<_ACEOF
     4554#line 4554 "configure"
    28444555#include "confdefs.h"
    28454556/* System header to define __stub macros and hopefully few prototypes,
    2846     which can conflict with char $ac_func(); below.  */
     4557    which can conflict with char $ac_func (); below.  */
    28474558#include <assert.h>
    28484559/* Override any gcc2 internal prototype to avoid an error.  */
     4560#ifdef __cplusplus
     4561extern "C"
     4562#endif
    28494563/* We use char because int might match the return type of a gcc2
    2850     builtin and then its argument prototype would still apply.  */
    2851 char $ac_func();
    2852 
    2853 int main() {
    2854 
     4564   builtin and then its argument prototype would still apply.  */
     4565char $ac_func ();
     4566char (*f) ();
     4567
     4568int
     4569main ()
     4570{
    28554571/* The GNU C library defines this for functions which it implements
    28564572    to always fail with ENOSYS.  Some functions are actually named
     
    28594575choke me
    28604576#else
    2861 $ac_func();
     4577f = $ac_func;
    28624578#endif
    28634579
    2864 ; return 0; }
    2865 EOF
    2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2867   rm -rf conftest*
    2868   eval "ac_cv_func_$ac_func=yes"
    2869 else
    2870   echo "configure: failed program was:" >&5
    2871   cat conftest.$ac_ext >&5
    2872   rm -rf conftest*
    2873   eval "ac_cv_func_$ac_func=no"
    2874 fi
    2875 rm -f conftest*
    2876 fi
    2877 
    2878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2879   echo "$ac_t""yes" 1>&6
    2880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2881   cat >> confdefs.h <<EOF
    2882 #define $ac_tr_func 1
    2883 EOF
    2884  
    2885 else
    2886   echo "$ac_t""no" 1>&6
     4580  ;
     4581  return 0;
     4582}
     4583_ACEOF
     4584rm -f conftest.$ac_objext conftest$ac_exeext
     4585if { (eval echo "$as_me:4585: \"$ac_link\"") >&5
     4586  (eval $ac_link) 2>&5
     4587  ac_status=$?
     4588  echo "$as_me:4588: \$? = $ac_status" >&5
     4589  (exit $ac_status); } &&
     4590         { ac_try='test -s conftest$ac_exeext'
     4591  { (eval echo "$as_me:4591: \"$ac_try\"") >&5
     4592  (eval $ac_try) 2>&5
     4593  ac_status=$?
     4594  echo "$as_me:4594: \$? = $ac_status" >&5
     4595  (exit $ac_status); }; }; then
     4596  eval "$ac_ac_var=yes"
     4597else
     4598  echo "$as_me: failed program was:" >&5
     4599cat conftest.$ac_ext >&5
     4600eval "$ac_ac_var=no"
     4601fi
     4602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4603fi
     4604echo "$as_me:4604: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4605echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4606if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4607  cat >>confdefs.h <<EOF
     4608#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4609EOF
     4610
    28874611fi
    28884612done
     
    28904614fi
    28914615
    2892 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
    2893 echo "configure:2894: checking if malloc debugging is wanted" >&5
     4616echo "$as_me:4616: checking if malloc debugging is wanted" >&5
     4617echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
     4618
    28944619# Check whether --with-dmalloc or --without-dmalloc was given.
    28954620if test "${with_dmalloc+set}" = set; then
    28964621  withval="$with_dmalloc"
    28974622  if test "$withval" = yes; then
    2898   echo "$ac_t""yes" 1>&6
    2899   cat >> confdefs.h <<\EOF
     4623  echo "$as_me:4623: result: yes" >&5
     4624echo "${ECHO_T}yes" >&6
     4625  cat >>confdefs.h <<\EOF
    29004626#define WITH_DMALLOC 1
    29014627EOF
     
    29044630  LDFLAGS="$LDFLAGS -g"
    29054631else
    2906   echo "$ac_t""no" 1>&6
    2907 fi
    2908 else
    2909   echo "$ac_t""no" 1>&6
    2910 fi
    2911 
    2912 
    2913 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
    2914 echo "configure:2915: checking which of rx or regex is wanted" >&5
     4632  echo "$as_me:4632: result: no" >&5
     4633echo "${ECHO_T}no" >&6
     4634fi
     4635else
     4636  echo "$as_me:4636: result: no" >&5
     4637echo "${ECHO_T}no" >&6
     4638fi;
     4639
     4640echo "$as_me:4640: checking which of rx or regex is wanted" >&5
     4641echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
     4642
    29154643# Check whether --with-regex or --without-regex was given.
    29164644if test "${with_regex+set}" = set; then
     
    29184646  if test "$withval" = yes; then
    29194647  ac_with_regex=1
    2920   echo "$ac_t""regex" 1>&6
    2921   cat >> confdefs.h <<\EOF
     4648  echo "$as_me:4648: result: regex" >&5
     4649echo "${ECHO_T}regex" >&6
     4650  cat >>confdefs.h <<\EOF
    29224651#define WITH_REGEX 1
    29234652EOF
     
    29254654  LIBOBJS="$LIBOBJS regex.o"
    29264655fi
    2927 fi
    2928 
     4656fi;
    29294657if test -z "$ac_with_regex"; then
    2930   echo "$ac_t""rx" 1>&6
    2931   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
    2932 echo "configure:2933: checking for re_rx_search" >&5
    2933 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    2934   echo $ac_n "(cached) $ac_c" 1>&6
    2935 else
    2936   cat > conftest.$ac_ext <<EOF
    2937 #line 2938 "configure"
     4658  echo "$as_me:4658: result: rx" >&5
     4659echo "${ECHO_T}rx" >&6
     4660  echo "$as_me:4660: checking for re_rx_search" >&5
     4661echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
     4662if test "${ac_cv_func_re_rx_search+set}" = set; then
     4663  echo $ECHO_N "(cached) $ECHO_C" >&6
     4664else
     4665  cat >conftest.$ac_ext <<_ACEOF
     4666#line 4666 "configure"
    29384667#include "confdefs.h"
    29394668/* System header to define __stub macros and hopefully few prototypes,
    2940     which can conflict with char re_rx_search(); below.  */
     4669    which can conflict with char re_rx_search (); below.  */
    29414670#include <assert.h>
    29424671/* Override any gcc2 internal prototype to avoid an error.  */
     4672#ifdef __cplusplus
     4673extern "C"
     4674#endif
    29434675/* We use char because int might match the return type of a gcc2
    2944     builtin and then its argument prototype would still apply.  */
    2945 char re_rx_search();
    2946 
    2947 int main() {
    2948 
     4676   builtin and then its argument prototype would still apply.  */
     4677char re_rx_search ();
     4678char (*f) ();
     4679
     4680int
     4681main ()
     4682{
    29494683/* The GNU C library defines this for functions which it implements
    29504684    to always fail with ENOSYS.  Some functions are actually named
     
    29534687choke me
    29544688#else
    2955 re_rx_search();
     4689f = re_rx_search;
    29564690#endif
    29574691
    2958 ; return 0; }
    2959 EOF
    2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2961   rm -rf conftest*
    2962   eval "ac_cv_func_re_rx_search=yes"
    2963 else
    2964   echo "configure: failed program was:" >&5
    2965   cat conftest.$ac_ext >&5
    2966   rm -rf conftest*
    2967   eval "ac_cv_func_re_rx_search=no"
    2968 fi
    2969 rm -f conftest*
    2970 fi
    2971 
    2972 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
    2973   echo "$ac_t""yes" 1>&6
     4692  ;
     4693  return 0;
     4694}
     4695_ACEOF
     4696rm -f conftest.$ac_objext conftest$ac_exeext
     4697if { (eval echo "$as_me:4697: \"$ac_link\"") >&5
     4698  (eval $ac_link) 2>&5
     4699  ac_status=$?
     4700  echo "$as_me:4700: \$? = $ac_status" >&5
     4701  (exit $ac_status); } &&
     4702         { ac_try='test -s conftest$ac_exeext'
     4703  { (eval echo "$as_me:4703: \"$ac_try\"") >&5
     4704  (eval $ac_try) 2>&5
     4705  ac_status=$?
     4706  echo "$as_me:4706: \$? = $ac_status" >&5
     4707  (exit $ac_status); }; }; then
     4708  ac_cv_func_re_rx_search=yes
     4709else
     4710  echo "$as_me: failed program was:" >&5
     4711cat conftest.$ac_ext >&5
     4712ac_cv_func_re_rx_search=no
     4713fi
     4714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4715fi
     4716echo "$as_me:4716: result: $ac_cv_func_re_rx_search" >&5
     4717echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
     4718if test $ac_cv_func_re_rx_search = yes; then
    29744719  :
    29754720else
    2976   echo "$ac_t""no" 1>&6
    2977 echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6
    2978 echo "configure:2979: checking size of unsigned char *" >&5
    2979 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then
    2980   echo $ac_n "(cached) $ac_c" 1>&6
    2981 else
     4721  echo "$as_me:4721: checking for unsigned char *" >&5
     4722echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
     4723if test "${ac_cv_type_unsigned_char_p+set}" = set; then
     4724  echo $ECHO_N "(cached) $ECHO_C" >&6
     4725else
     4726  cat >conftest.$ac_ext <<_ACEOF
     4727#line 4727 "configure"
     4728#include "confdefs.h"
     4729$ac_includes_default
     4730int
     4731main ()
     4732{
     4733if ((unsigned char * *) 0)
     4734  return 0;
     4735if (sizeof (unsigned char *))
     4736  return 0;
     4737  ;
     4738  return 0;
     4739}
     4740_ACEOF
     4741rm -f conftest.$ac_objext
     4742if { (eval echo "$as_me:4742: \"$ac_compile\"") >&5
     4743  (eval $ac_compile) 2>&5
     4744  ac_status=$?
     4745  echo "$as_me:4745: \$? = $ac_status" >&5
     4746  (exit $ac_status); } &&
     4747         { ac_try='test -s conftest.$ac_objext'
     4748  { (eval echo "$as_me:4748: \"$ac_try\"") >&5
     4749  (eval $ac_try) 2>&5
     4750  ac_status=$?
     4751  echo "$as_me:4751: \$? = $ac_status" >&5
     4752  (exit $ac_status); }; }; then
     4753  ac_cv_type_unsigned_char_p=yes
     4754else
     4755  echo "$as_me: failed program was:" >&5
     4756cat conftest.$ac_ext >&5
     4757ac_cv_type_unsigned_char_p=no
     4758fi
     4759rm -f conftest.$ac_objext conftest.$ac_ext
     4760fi
     4761echo "$as_me:4761: result: $ac_cv_type_unsigned_char_p" >&5
     4762echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
     4763
     4764echo "$as_me:4764: checking size of unsigned char *" >&5
     4765echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
     4766if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
     4767  echo $ECHO_N "(cached) $ECHO_C" >&6
     4768else
     4769  if test "$ac_cv_type_unsigned_char_p" = yes; then
    29824770  if test "$cross_compiling" = yes; then
    2983   ac_cv_sizeof_unsigned_char_p=unsigned char *
    2984 else
    2985   cat > conftest.$ac_ext <<EOF
    2986 #line 2987 "configure"
    2987 #include "confdefs.h"
    2988 #include <stdio.h>
    2989 main()
     4771  # Depending upon the size, compute the lo and hi bounds.
     4772cat >conftest.$ac_ext <<_ACEOF
     4773#line 4773 "configure"
     4774#include "confdefs.h"
     4775$ac_includes_default
     4776int
     4777main ()
    29904778{
    2991   FILE *f=fopen("conftestval", "w");
    2992   if (!f) exit(1);
    2993   fprintf(f, "%d\n", sizeof(unsigned char *));
    2994   exit(0);
     4779int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= 0)]
     4780  ;
     4781  return 0;
    29954782}
    2996 EOF
    2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2998 then
    2999   ac_cv_sizeof_unsigned_char_p=`cat conftestval`
    3000 else
    3001   echo "configure: failed program was:" >&5
    3002   cat conftest.$ac_ext >&5
    3003   rm -fr conftest*
     4783_ACEOF
     4784rm -f conftest.$ac_objext
     4785if { (eval echo "$as_me:4785: \"$ac_compile\"") >&5
     4786  (eval $ac_compile) 2>&5
     4787  ac_status=$?
     4788  echo "$as_me:4788: \$? = $ac_status" >&5
     4789  (exit $ac_status); } &&
     4790         { ac_try='test -s conftest.$ac_objext'
     4791  { (eval echo "$as_me:4791: \"$ac_try\"") >&5
     4792  (eval $ac_try) 2>&5
     4793  ac_status=$?
     4794  echo "$as_me:4794: \$? = $ac_status" >&5
     4795  (exit $ac_status); }; }; then
     4796  ac_lo=0 ac_mid=0
     4797  while :; do
     4798    cat >conftest.$ac_ext <<_ACEOF
     4799#line 4799 "configure"
     4800#include "confdefs.h"
     4801$ac_includes_default
     4802int
     4803main ()
     4804{
     4805int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
     4806  ;
     4807  return 0;
     4808}
     4809_ACEOF
     4810rm -f conftest.$ac_objext
     4811if { (eval echo "$as_me:4811: \"$ac_compile\"") >&5
     4812  (eval $ac_compile) 2>&5
     4813  ac_status=$?
     4814  echo "$as_me:4814: \$? = $ac_status" >&5
     4815  (exit $ac_status); } &&
     4816         { ac_try='test -s conftest.$ac_objext'
     4817  { (eval echo "$as_me:4817: \"$ac_try\"") >&5
     4818  (eval $ac_try) 2>&5
     4819  ac_status=$?
     4820  echo "$as_me:4820: \$? = $ac_status" >&5
     4821  (exit $ac_status); }; }; then
     4822  ac_hi=$ac_mid; break
     4823else
     4824  echo "$as_me: failed program was:" >&5
     4825cat conftest.$ac_ext >&5
     4826ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
     4827fi
     4828rm -f conftest.$ac_objext conftest.$ac_ext
     4829  done
     4830else
     4831  echo "$as_me: failed program was:" >&5
     4832cat conftest.$ac_ext >&5
     4833ac_hi=-1 ac_mid=-1
     4834  while :; do
     4835    cat >conftest.$ac_ext <<_ACEOF
     4836#line 4836 "configure"
     4837#include "confdefs.h"
     4838$ac_includes_default
     4839int
     4840main ()
     4841{
     4842int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= $ac_mid)]
     4843  ;
     4844  return 0;
     4845}
     4846_ACEOF
     4847rm -f conftest.$ac_objext
     4848if { (eval echo "$as_me:4848: \"$ac_compile\"") >&5
     4849  (eval $ac_compile) 2>&5
     4850  ac_status=$?
     4851  echo "$as_me:4851: \$? = $ac_status" >&5
     4852  (exit $ac_status); } &&
     4853         { ac_try='test -s conftest.$ac_objext'
     4854  { (eval echo "$as_me:4854: \"$ac_try\"") >&5
     4855  (eval $ac_try) 2>&5
     4856  ac_status=$?
     4857  echo "$as_me:4857: \$? = $ac_status" >&5
     4858  (exit $ac_status); }; }; then
     4859  ac_lo=$ac_mid; break
     4860else
     4861  echo "$as_me: failed program was:" >&5
     4862cat conftest.$ac_ext >&5
     4863ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
     4864fi
     4865rm -f conftest.$ac_objext conftest.$ac_ext
     4866  done
     4867fi
     4868rm -f conftest.$ac_objext conftest.$ac_ext
     4869# Binary search between lo and hi bounds.
     4870while test "x$ac_lo" != "x$ac_hi"; do
     4871  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     4872  cat >conftest.$ac_ext <<_ACEOF
     4873#line 4873 "configure"
     4874#include "confdefs.h"
     4875$ac_includes_default
     4876int
     4877main ()
     4878{
     4879int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
     4880  ;
     4881  return 0;
     4882}
     4883_ACEOF
     4884rm -f conftest.$ac_objext
     4885if { (eval echo "$as_me:4885: \"$ac_compile\"") >&5
     4886  (eval $ac_compile) 2>&5
     4887  ac_status=$?
     4888  echo "$as_me:4888: \$? = $ac_status" >&5
     4889  (exit $ac_status); } &&
     4890         { ac_try='test -s conftest.$ac_objext'
     4891  { (eval echo "$as_me:4891: \"$ac_try\"") >&5
     4892  (eval $ac_try) 2>&5
     4893  ac_status=$?
     4894  echo "$as_me:4894: \$? = $ac_status" >&5
     4895  (exit $ac_status); }; }; then
     4896  ac_hi=$ac_mid
     4897else
     4898  echo "$as_me: failed program was:" >&5
     4899cat conftest.$ac_ext >&5
     4900ac_lo=`expr $ac_mid + 1`
     4901fi
     4902rm -f conftest.$ac_objext conftest.$ac_ext
     4903done
     4904ac_cv_sizeof_unsigned_char_p=$ac_lo
     4905else
     4906  if test "$cross_compiling" = yes; then
     4907  { { echo "$as_me:4907: error: cannot run test program while cross compiling" >&5
     4908echo "$as_me: error: cannot run test program while cross compiling" >&2;}
     4909   { (exit 1); exit 1; }; }
     4910else
     4911  cat >conftest.$ac_ext <<_ACEOF
     4912#line 4912 "configure"
     4913#include "confdefs.h"
     4914$ac_includes_default
     4915int
     4916main ()
     4917{
     4918FILE *f = fopen ("conftest.val", "w");
     4919if (!f)
     4920  exit (1);
     4921fprintf (f, "%d", (sizeof (unsigned char *)));
     4922fclose (f);
     4923  ;
     4924  return 0;
     4925}
     4926_ACEOF
     4927rm -f conftest$ac_exeext
     4928if { (eval echo "$as_me:4928: \"$ac_link\"") >&5
     4929  (eval $ac_link) 2>&5
     4930  ac_status=$?
     4931  echo "$as_me:4931: \$? = $ac_status" >&5
     4932  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4933  { (eval echo "$as_me:4933: \"$ac_try\"") >&5
     4934  (eval $ac_try) 2>&5
     4935  ac_status=$?
     4936  echo "$as_me:4936: \$? = $ac_status" >&5
     4937  (exit $ac_status); }; }; then
     4938  ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
     4939else
     4940  echo "$as_me: program exited with status $ac_status" >&5
     4941echo "$as_me: failed program was:" >&5
     4942cat conftest.$ac_ext >&5
     4943fi
     4944rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     4945fi
     4946fi
     4947rm -f conftest.val
     4948else
    30044949  ac_cv_sizeof_unsigned_char_p=0
    30054950fi
    3006 rm -fr conftest*
    3007 fi
    3008 
    3009 fi
    3010 echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6
    3011 cat >> confdefs.h <<EOF
     4951fi
     4952echo "$as_me:4952: result: $ac_cv_sizeof_unsigned_char_p" >&5
     4953echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
     4954cat >>confdefs.h <<EOF
    30124955#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
    30134956EOF
    30144957
    3015  
    30164958    if test "$ac_cv_sizeof_unsigned_char_p" = 8
    30174959    then
    3018       echo "configure: warning: I'm forcing you to use regex because I can't
    3019         find a local rx library and the one included with this
    3020         distribution doesn't work on 64-bit machines like yours" 1>&2
     4960      { echo "$as_me:4960: WARNING: I'm forcing you to use regex because I can't
     4961        find a local rx library and the one included with this
     4962        distribution doesn't work on 64-bit machines like yours" >&5
     4963echo "$as_me: WARNING: I'm forcing you to use regex because I can't
     4964        find a local rx library and the one included with this
     4965        distribution doesn't work on 64-bit machines like yours" >&2;}
    30214966      LIBOBJS="$LIBOBJS regex.o"
    30224967    else
    30234968      LIBOBJS="$LIBOBJS rx.o"
    30244969    fi
    3025  
    3026 fi
    3027 
    3028 fi
    3029 
    3030 echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6
    3031 echo "configure:3032: checking whether GNU readline requested" >&5
    3032   # Check whether --with-gnu_readline or --without-gnu_readline was given.
     4970
     4971fi
     4972
     4973fi
     4974
     4975echo "$as_me:4975: checking whether GNU readline requested" >&5
     4976echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
     4977
     4978# Check whether --with-gnu_readline or --without-gnu_readline was given.
    30334979if test "${with_gnu_readline+set}" = set; then
    30344980  withval="$with_gnu_readline"
    30354981  if test "$withval" = yes; then
    3036       echo "$ac_t""yes" 1>&6
     4982      echo "$as_me:4982: result: yes" >&5
     4983echo "${ECHO_T}yes" >&6
    30374984      ac_with_gnu_readline=1
    30384985    else
    3039       echo "$ac_t""no" 1>&6
     4986      echo "$as_me:4986: result: no" >&5
     4987echo "${ECHO_T}no" >&6
    30404988    fi
    30414989else
    3042   echo "$ac_t""no" 1>&6
    3043 fi
    3044 
     4990  echo "$as_me:4990: result: no" >&5
     4991echo "${ECHO_T}no" >&6
     4992fi;
    30454993
    30464994  if test -n "$ac_with_gnu_readline"; then
    3047     ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
    3048 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
    3049 echo "configure:3050: checking for readline/readline.h" >&5
    3050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    3051   echo $ac_n "(cached) $ac_c" 1>&6
    3052 else
    3053   cat > conftest.$ac_ext <<EOF
    3054 #line 3055 "configure"
     4995    echo "$as_me:4995: checking for readline/readline.h" >&5
     4996echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
     4997if test "${ac_cv_header_readline_readline_h+set}" = set; then
     4998  echo $ECHO_N "(cached) $ECHO_C" >&6
     4999else
     5000  cat >conftest.$ac_ext <<_ACEOF
     5001#line 5001 "configure"
    30555002#include "confdefs.h"
    30565003#include <readline/readline.h>
    3057 EOF
    3058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3059 { (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    3061 if test -z "$ac_err"; then
    3062   rm -rf conftest*
    3063   eval "ac_cv_header_$ac_safe=yes"
    3064 else
    3065   echo "$ac_err" >&5
    3066   echo "configure: failed program was:" >&5
     5004_ACEOF
     5005if { (eval echo "$as_me:5005: \"$ac_cpp conftest.$ac_ext\"") >&5
     5006  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5007  ac_status=$?
     5008  egrep -v '^ *\+' conftest.er1 >conftest.err
     5009  rm -f conftest.er1
     5010  cat conftest.err >&5
     5011  echo "$as_me:5011: \$? = $ac_status" >&5
     5012  (exit $ac_status); } >/dev/null; then
     5013  if test -s conftest.err; then
     5014    ac_cpp_err=$ac_c_preproc_warn_flag
     5015  else
     5016    ac_cpp_err=
     5017  fi
     5018else
     5019  ac_cpp_err=yes
     5020fi
     5021if test -z "$ac_cpp_err"; then
     5022  ac_cv_header_readline_readline_h=yes
     5023else
     5024  echo "$as_me: failed program was:" >&5
    30675025  cat conftest.$ac_ext >&5
    3068   rm -rf conftest*
    3069   eval "ac_cv_header_$ac_safe=no"
    3070 fi
    3071 rm -f conftest*
    3072 fi
    3073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    3074   echo "$ac_t""yes" 1>&6
     5026  ac_cv_header_readline_readline_h=no
     5027fi
     5028rm -f conftest.err conftest.$ac_ext
     5029fi
     5030echo "$as_me:5030: result: $ac_cv_header_readline_readline_h" >&5
     5031echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
     5032if test $ac_cv_header_readline_readline_h = yes; then
    30755033  ac_mg_readline_header_found=1
    30765034else
    3077   echo "$ac_t""no" 1>&6
    3078 echo "configure: warning: Can't find GNU readline headers; configuring without \
    3079 GNU readline support" 1>&2
     5035  { echo "$as_me:5035: WARNING: Can't find GNU readline headers; configuring without \
     5036GNU readline support" >&5
     5037echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
     5038GNU readline support" >&2;}
    30805039fi
    30815040
    30825041    if test -n "$ac_mg_readline_header_found"; then
    30835042      # first check whether we can find the readline library itself
    3084       echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
    3085 echo "configure:3086: checking for main in -lreadline" >&5
    3086 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
    3087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    3088   echo $ac_n "(cached) $ac_c" 1>&6
    3089 else
    3090   ac_save_LIBS="$LIBS"
     5043      echo "$as_me:5043: checking for main in -lreadline" >&5
     5044echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
     5045if test "${ac_cv_lib_readline_main+set}" = set; then
     5046  echo $ECHO_N "(cached) $ECHO_C" >&6
     5047else
     5048  ac_check_lib_save_LIBS=$LIBS
    30915049LIBS="-lreadline  $LIBS"
    3092 cat > conftest.$ac_ext <<EOF
    3093 #line 3094 "configure"
    3094 #include "confdefs.h"
    3095 
    3096 int main() {
    3097 main()
    3098 ; return 0; }
    3099 EOF
    3100 if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3101   rm -rf conftest*
    3102   eval "ac_cv_lib_$ac_lib_var=yes"
    3103 else
    3104   echo "configure: failed program was:" >&5
    3105   cat conftest.$ac_ext >&5
    3106   rm -rf conftest*
    3107   eval "ac_cv_lib_$ac_lib_var=no"
    3108 fi
    3109 rm -f conftest*
    3110 LIBS="$ac_save_LIBS"
    3111 
    3112 fi
    3113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    3114   echo "$ac_t""yes" 1>&6
     5050cat >conftest.$ac_ext <<_ACEOF
     5051#line 5051 "configure"
     5052#include "confdefs.h"
     5053
     5054int
     5055main ()
     5056{
     5057main ();
     5058  ;
     5059  return 0;
     5060}
     5061_ACEOF
     5062rm -f conftest.$ac_objext conftest$ac_exeext
     5063if { (eval echo "$as_me:5063: \"$ac_link\"") >&5
     5064  (eval $ac_link) 2>&5
     5065  ac_status=$?
     5066  echo "$as_me:5066: \$? = $ac_status" >&5
     5067  (exit $ac_status); } &&
     5068         { ac_try='test -s conftest$ac_exeext'
     5069  { (eval echo "$as_me:5069: \"$ac_try\"") >&5
     5070  (eval $ac_try) 2>&5
     5071  ac_status=$?
     5072  echo "$as_me:5072: \$? = $ac_status" >&5
     5073  (exit $ac_status); }; }; then
     5074  ac_cv_lib_readline_main=yes
     5075else
     5076  echo "$as_me: failed program was:" >&5
     5077cat conftest.$ac_ext >&5
     5078ac_cv_lib_readline_main=no
     5079fi
     5080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     5081LIBS=$ac_check_lib_save_LIBS
     5082fi
     5083echo "$as_me:5083: result: $ac_cv_lib_readline_main" >&5
     5084echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
     5085if test $ac_cv_lib_readline_main = yes; then
    31155086  ac_mg_readline_lib_found=1
    3116          cat >> confdefs.h <<\EOF
     5087         cat >>confdefs.h <<\EOF
    31175088#define WITH_GNU_READLINE 1
    31185089EOF
     
    31205091         LIBS="$LIBS -lreadline"
    31215092else
    3122   echo "$ac_t""no" 1>&6
    3123 echo "configure: warning: Can't find GNU readline library; configuring without \
    3124 GNU readline support" 1>&2
     5093  { echo "$as_me:5093: WARNING: Can't find GNU readline library; configuring without \
     5094GNU readline support" >&5
     5095echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
     5096GNU readline support" >&2;}
    31255097fi
    31265098
    31275099      if test -n "$ac_mg_readline_lib_found"; then
    3128         # on some systems, readline needs curses.  It is difficult to 
     5100        # on some systems, readline needs curses.  It is difficult to
    31295101        #  determine whether this is necessary on the current system,
    31305102        #  since other undefined symbols can be turned up by an
     
    31325104    #  by mg itself (e.g. xmalloc, xrealloc).  So, if we find libcurses,
    31335105    #  we just bung it on and hope for the best.
    3134     echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
    3135 echo "configure:3136: checking for main in -lcurses" >&5
    3136 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
    3137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    3138   echo $ac_n "(cached) $ac_c" 1>&6
    3139 else
    3140   ac_save_LIBS="$LIBS"
     5106    echo "$as_me:5106: checking for main in -lcurses" >&5
     5107echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
     5108if test "${ac_cv_lib_curses_main+set}" = set; then
     5109  echo $ECHO_N "(cached) $ECHO_C" >&6
     5110else
     5111  ac_check_lib_save_LIBS=$LIBS
    31415112LIBS="-lcurses  $LIBS"
    3142 cat > conftest.$ac_ext <<EOF
    3143 #line 3144 "configure"
    3144 #include "confdefs.h"
    3145 
    3146 int main() {
    3147 main()
    3148 ; return 0; }
    3149 EOF
    3150 if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3151   rm -rf conftest*
    3152   eval "ac_cv_lib_$ac_lib_var=yes"
    3153 else
    3154   echo "configure: failed program was:" >&5
    3155   cat conftest.$ac_ext >&5
    3156   rm -rf conftest*
    3157   eval "ac_cv_lib_$ac_lib_var=no"
    3158 fi
    3159 rm -f conftest*
    3160 LIBS="$ac_save_LIBS"
    3161 
    3162 fi
    3163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    3164   echo "$ac_t""yes" 1>&6
     5113cat >conftest.$ac_ext <<_ACEOF
     5114#line 5114 "configure"
     5115#include "confdefs.h"
     5116
     5117int
     5118main ()
     5119{
     5120main ();
     5121  ;
     5122  return 0;
     5123}
     5124_ACEOF
     5125rm -f conftest.$ac_objext conftest$ac_exeext
     5126if { (eval echo "$as_me:5126: \"$ac_link\"") >&5
     5127  (eval $ac_link) 2>&5
     5128  ac_status=$?
     5129  echo "$as_me:5129: \$? = $ac_status" >&5
     5130  (exit $ac_status); } &&
     5131         { ac_try='test -s conftest$ac_exeext'
     5132  { (eval echo "$as_me:5132: \"$ac_try\"") >&5
     5133  (eval $ac_try) 2>&5
     5134  ac_status=$?
     5135  echo "$as_me:5135: \$? = $ac_status" >&5
     5136  (exit $ac_status); }; }; then
     5137  ac_cv_lib_curses_main=yes
     5138else
     5139  echo "$as_me: failed program was:" >&5
     5140cat conftest.$ac_ext >&5
     5141ac_cv_lib_curses_main=no
     5142fi
     5143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     5144LIBS=$ac_check_lib_save_LIBS
     5145fi
     5146echo "$as_me:5146: result: $ac_cv_lib_curses_main" >&5
     5147echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
     5148if test $ac_cv_lib_curses_main = yes; then
    31655149  LIBS="$LIBS -lcurses"
    3166 else
    3167   echo "$ac_t""no" 1>&6
    31685150fi
    31695151
     
    31725154  fi
    31735155
    3174 
    31755156# ---------------------------------------------------------------------------
    31765157if test "$ac_cv_func_alloca" = 'no'; then
    31775158  LIBOBJS="$LIBOBJS xmalloc.o error.o"
    31785159fi
    3179 
    31805160
    31815161# ---------------------------------------------------------------------------
     
    31845164if test "${enable_override_longlong+set}" = set; then
    31855165  enableval="$enable_override_longlong"
    3186   cat >> confdefs.h <<\EOF
     5166  cat >>confdefs.h <<\EOF
    31875167#define DISABLE_LONG_LONG 1
    31885168EOF
    31895169
    3190 fi
    3191 
     5170fi;
    31925171
    31935172# ---------------------------------------------------------------------------
    31945173
    3195 trap '' 1 2 15
    3196 cat > confcache <<\EOF
     5174ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
     5175ac_config_commands="$ac_config_commands default"
     5176cat >confcache <<\_ACEOF
    31975177# This file is a shell script that caches the results of configure
    31985178# tests run on this system so they can be shared between configure
    3199 # scripts and configure runs.  It is not useful on other systems.
    3200 # If it contains results you don't want to keep, you may remove or edit it.
     5179# scripts and configure runs, see configure's option --config-cache.
     5180# It is not useful on other systems.  If it contains results you don't
     5181# want to keep, you may remove or edit it.
    32015182#
    3202 # By default, configure uses ./config.cache as the cache file,
    3203 # creating it if it does not exist already.  You can give configure
    3204 # the --cache-file=FILE option to use a different cache file; that is
    3205 # what configure does when it calls configure scripts in
    3206 # subdirectories, so they share the cache.
    3207 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    3208 # config.status only pays attention to the cache file if you give it the
    3209 # --recheck option to rerun configure.
     5183# config.status only pays attention to the cache file if you give it
     5184# the --recheck option to rerun configure.
    32105185#
    3211 EOF
     5186# `ac_cv_env_foo' variables (set or unset) will be overriden when
     5187# loading this file, other *unset* `ac_cv_foo' will be assigned the
     5188# following values.
     5189
     5190_ACEOF
     5191
    32125192# The following way of writing the cache mishandles newlines in values,
    32135193# but we know of no workaround that is simple, portable, and efficient.
     
    32155195# Ultrix sh set writes to stderr and can't be redirected directly,
    32165196# and sets the high bit in the cache file unless we assign to the vars.
    3217 (set) 2>&1 |
    3218   case `(ac_space=' '; set | grep ac_space) 2>&1` in
    3219   *ac_space=\ *)
    3220     # `set' does not quote correctly, so add quotes (double-quote substitution
    3221     # turns \\\\ into \\, and sed turns \\ into \).
    3222     sed -n \
    3223       -e "s/'/'\\\\''/g" \
    3224       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    3225     ;;
    3226   *)
    3227     # `set' quotes correctly as required by POSIX, so do not add quotes.
    3228     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    3229     ;;
    3230   esac >> confcache
    3231 if cmp -s $cache_file confcache; then
    3232   :
    3233 else
     5197{
     5198  (set) 2>&1 |
     5199    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     5200    *ac_space=\ *)
     5201      # `set' does not quote correctly, so add quotes (double-quote
     5202      # substitution turns \\\\ into \\, and sed turns \\ into \).
     5203      sed -n \
     5204        "s/'/'\\\\''/g;
     5205          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     5206      ;;
     5207    *)
     5208      # `set' quotes correctly as required by POSIX, so do not add quotes.
     5209      sed -n \
     5210        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     5211      ;;
     5212    esac;
     5213} |
     5214  sed '
     5215     t clear
     5216     : clear
     5217     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     5218     t end
     5219     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     5220     : end' >>confcache
     5221if cmp -s $cache_file confcache; then :; else
    32345222  if test -w $cache_file; then
    3235     echo "updating cache $cache_file"
    3236     cat confcache > $cache_file
     5223    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     5224    cat confcache >$cache_file
    32375225  else
    32385226    echo "not updating unwritable cache $cache_file"
     
    32415229rm -f confcache
    32425230
    3243 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    3244 
    32455231test "x$prefix" = xNONE && prefix=$ac_default_prefix
    32465232# Let make expand exec_prefix.
    32475233test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    32485234
    3249 # Any assignment to VPATH causes Sun make to only execute
    3250 # the first set of double-colon rules, so remove it if not needed.
    3251 # If there is a colon in the path, we need to keep it.
     5235# VPATH may cause trouble with some makes, so we remove $(srcdir),
     5236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     5237# trailing colons and then remove the whole line if VPATH becomes empty
     5238# (actually we leave an empty line to preserve line numbers).
    32525239if test "x$srcdir" = x.; then
    3253   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
    3254 fi
    3255 
    3256 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     5240  ac_vpsub='/^[     ]*VPATH[    ]*=/{
     5241s/:*\$(srcdir):*/:/;
     5242s/:*\${srcdir}:*/:/;
     5243s/:*@srcdir@:*/:/;
     5244s/^\([^=]*=[    ]*\):*/\1/;
     5245s/:*$//;
     5246s/^[^=]*=[  ]*$//;
     5247}'
     5248fi
    32575249
    32585250DEFS=-DHAVE_CONFIG_H
    32595251
    3260 # Without the "./", some shells look in PATH for config.status.
    32615252: ${CONFIG_STATUS=./config.status}
    3262 
    3263 echo creating $CONFIG_STATUS
    3264 rm -f $CONFIG_STATUS
    3265 cat > $CONFIG_STATUS <<EOF
    3266 #! /bin/sh
     5253ac_clean_files_save=$ac_clean_files
     5254ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     5255{ echo "$as_me:5255: creating $CONFIG_STATUS" >&5
     5256echo "$as_me: creating $CONFIG_STATUS" >&6;}
     5257cat >$CONFIG_STATUS <<_ACEOF
     5258#! $SHELL
    32675259# Generated automatically by configure.
    32685260# Run this file to recreate the current configuration.
    3269 # This directory was configured as follows,
    3270 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     5261# Compiler output produced by configure, useful for debugging
     5262# configure, is in config.log if it exists.
     5263
     5264debug=false
     5265SHELL=\${CONFIG_SHELL-$SHELL}
     5266ac_cs_invocation="\$0 \$@"
     5267
     5268_ACEOF
     5269
     5270cat >>$CONFIG_STATUS <<\_ACEOF
     5271# Be Bourne compatible
     5272if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     5273  emulate sh
     5274  NULLCMD=:
     5275elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     5276  set -o posix
     5277fi
     5278
     5279# Name of the executable.
     5280as_me=`echo "$0" |sed 's,.*[\\/],,'`
     5281
     5282if expr a : '\(a\)' >/dev/null 2>&1; then
     5283  as_expr=expr
     5284else
     5285  as_expr=false
     5286fi
     5287
     5288rm -f conf$$ conf$$.exe conf$$.file
     5289echo >conf$$.file
     5290if ln -s conf$$.file conf$$ 2>/dev/null; then
     5291  # We could just check for DJGPP; but this test a) works b) is more generic
     5292  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     5293  if test -f conf$$.exe; then
     5294    # Don't use ln at all; we don't have any links
     5295    as_ln_s='cp -p'
     5296  else
     5297    as_ln_s='ln -s'
     5298  fi
     5299elif ln conf$$.file conf$$ 2>/dev/null; then
     5300  as_ln_s=ln
     5301else
     5302  as_ln_s='cp -p'
     5303fi
     5304rm -f conf$$ conf$$.exe conf$$.file
     5305
     5306as_executable_p="test -f"
     5307
     5308# Support unset when possible.
     5309if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     5310  as_unset=unset
     5311else
     5312  as_unset=false
     5313fi
     5314
     5315# NLS nuisances.
     5316$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     5317$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     5318$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     5319$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     5320$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     5321$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     5322$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     5323$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     5324
     5325# IFS
     5326# We need space, tab and new line, in precisely that order.
     5327as_nl='
     5328'
     5329IFS="   $as_nl"
     5330
     5331# CDPATH.
     5332$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     5333
     5334exec 6>&1
     5335
     5336_ACEOF
     5337
     5338# Files that config.status was made for.
     5339if test -n "$ac_config_files"; then
     5340  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     5341fi
     5342
     5343if test -n "$ac_config_headers"; then
     5344  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     5345fi
     5346
     5347if test -n "$ac_config_links"; then
     5348  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     5349fi
     5350
     5351if test -n "$ac_config_commands"; then
     5352  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     5353fi
     5354
     5355cat >>$CONFIG_STATUS <<\EOF
     5356
     5357ac_cs_usage="\
     5358\`$as_me' instantiates files from templates according to the
     5359current configuration.
     5360
     5361Usage: $0 [OPTIONS] [FILE]...
     5362
     5363  -h, --help       print this help, then exit
     5364  -V, --version    print version number, then exit
     5365  -d, --debug      don't remove temporary files
     5366      --recheck    update $as_me by reconfiguring in the same conditions
     5367  --file=FILE[:TEMPLATE]
     5368                   instantiate the configuration file FILE
     5369  --header=FILE[:TEMPLATE]
     5370                   instantiate the configuration header FILE
     5371
     5372Configuration files:
     5373$config_files
     5374
     5375Configuration headers:
     5376$config_headers
     5377
     5378Configuration commands:
     5379$config_commands
     5380
     5381Report bugs to <[email protected]>."
     5382EOF
     5383
     5384cat >>$CONFIG_STATUS <<EOF
     5385ac_cs_version="\\
     5386config.status
     5387configured by $0, generated by GNU Autoconf 2.50,
     5388  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     5389
     5390Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     5391Free Software Foundation, Inc.
     5392This config.status script is free software; the Free Software Foundation
     5393gives unlimited permission to copy, distribute and modify it."
     5394srcdir=$srcdir
     5395INSTALL="$INSTALL"
     5396EOF
     5397
     5398cat >>$CONFIG_STATUS <<\EOF
     5399# If no file are specified by the user, then we need to provide default
     5400# value.  By we need to know if files were specified by the user.
     5401ac_need_defaults=:
     5402while test $# != 0
     5403do
     5404  case $1 in
     5405  --*=*)
     5406    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     5407    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     5408    shift
     5409    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
     5410    shift
     5411    ;;
     5412  -*);;
     5413  *) # This is not an option, so the user has probably given explicit
     5414     # arguments.
     5415     ac_need_defaults=false;;
     5416  esac
     5417
     5418  case $1 in
     5419  # Handling of the options.
     5420EOF
     5421cat >>$CONFIG_STATUS <<EOF
     5422  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     5423    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
     5424    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
     5425EOF
     5426cat >>$CONFIG_STATUS <<\EOF
     5427  --version | --vers* | -V )
     5428    echo "$ac_cs_version"; exit 0 ;;
     5429  --he | --h)
     5430    # Conflict between --help and --header
     5431    { { echo "$as_me:5431: error: ambiguous option: $1
     5432Try \`$0 --help' for more information." >&5
     5433echo "$as_me: error: ambiguous option: $1
     5434Try \`$0 --help' for more information." >&2;}
     5435   { (exit 1); exit 1; }; };;
     5436  --help | --hel | -h )
     5437    echo "$ac_cs_usage"; exit 0 ;;
     5438  --debug | --d* | -d )
     5439    debug=: ;;
     5440  --file | --fil | --fi | --f )
     5441    shift
     5442    CONFIG_FILES="$CONFIG_FILES $1"
     5443    ac_need_defaults=false;;
     5444  --header | --heade | --head | --hea )
     5445    shift
     5446    CONFIG_HEADERS="$CONFIG_HEADERS $1"
     5447    ac_need_defaults=false;;
     5448
     5449  # Handling of arguments.
     5450  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     5451  'text/Makefile' ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
     5452  'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     5453  'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
     5454  'java/org/greenstone/mgpp/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
     5455  'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     5456  'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     5457
     5458  # This is an error.
     5459  -*) { { echo "$as_me:5459: error: unrecognized option: $1
     5460Try \`$0 --help' for more information." >&5
     5461echo "$as_me: error: unrecognized option: $1
     5462Try \`$0 --help' for more information." >&2;}
     5463   { (exit 1); exit 1; }; } ;;
     5464  *) { { echo "$as_me:5464: error: invalid argument: $1" >&5
     5465echo "$as_me: error: invalid argument: $1" >&2;}
     5466   { (exit 1); exit 1; }; };;
     5467  esac
     5468  shift
     5469done
     5470
     5471exec 5>>config.log
     5472cat >&5 << _ACEOF
     5473
     5474## ----------------------- ##
     5475## Running config.status.  ##
     5476## ----------------------- ##
     5477
     5478This file was extended by $as_me 2.50, executed with
     5479  > $ac_cs_invocation
     5480on `(hostname || uname -n) 2>/dev/null | sed 1q`
     5481
     5482_ACEOF
     5483EOF
     5484
     5485cat >>$CONFIG_STATUS <<\EOF
     5486# If the user did not use the arguments to specify the items to instantiate,
     5487# then the envvar interface is used.  Set only those that are not.
     5488# We use the long form for the default assignment because of an extremely
     5489# bizarre bug on SunOS 4.1.3.
     5490if $ac_need_defaults; then
     5491  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     5492  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     5493  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
     5494fi
     5495
     5496# Create a temporary directory, and hook for its removal unless debugging.
     5497$debug ||
     5498{
     5499  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     5500  trap '{ (exit $?); exit $?; }' 1 2 13 15
     5501}
     5502
     5503# Create a (secure) tmp directory for tmp files.
     5504: ${TMPDIR=/tmp}
     5505{
     5506  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
     5507  test -n "$tmp" && test -d "$tmp"
     5508}  ||
     5509{
     5510  tmp=$TMPDIR/cs$$-$RANDOM
     5511  (umask 077 && mkdir $tmp)
     5512} ||
     5513{
     5514   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     5515   { (exit 1); exit 1; }
     5516}
     5517
     5518EOF
     5519
     5520cat >>$CONFIG_STATUS <<EOF
     5521
    32715522#
    3272 # $0 $ac_configure_args
     5523# CONFIG_FILES section.
    32735524#
    3274 # Compiler output produced by configure, useful for debugging
    3275 # configure, is in ./config.log if it exists.
    3276 
    3277 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    3278 for ac_option
    3279 do
    3280   case "\$ac_option" in
    3281   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    3282     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    3283     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    3284   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    3285     echo "$CONFIG_STATUS generated by autoconf version 2.13"
    3286     exit 0 ;;
    3287   -help | --help | --hel | --he | --h)
    3288     echo "\$ac_cs_usage"; exit 0 ;;
    3289   *) echo "\$ac_cs_usage"; exit 1 ;;
     5525
     5526# No need to generate the scripts if there are no CONFIG_FILES.
     5527# This happens for instance when ./config.status config.h
     5528if test -n "\$CONFIG_FILES"; then
     5529  # Protect against being on the right side of a sed subst in config.status.
     5530  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     5531   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     5532s,@SHELL@,$SHELL,;t t
     5533s,@exec_prefix@,$exec_prefix,;t t
     5534s,@prefix@,$prefix,;t t
     5535s,@program_transform_name@,$program_transform_name,;t t
     5536s,@bindir@,$bindir,;t t
     5537s,@sbindir@,$sbindir,;t t
     5538s,@libexecdir@,$libexecdir,;t t
     5539s,@datadir@,$datadir,;t t
     5540s,@sysconfdir@,$sysconfdir,;t t
     5541s,@sharedstatedir@,$sharedstatedir,;t t
     5542s,@localstatedir@,$localstatedir,;t t
     5543s,@libdir@,$libdir,;t t
     5544s,@includedir@,$includedir,;t t
     5545s,@oldincludedir@,$oldincludedir,;t t
     5546s,@infodir@,$infodir,;t t
     5547s,@mandir@,$mandir,;t t
     5548s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     5549s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     5550s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     5551s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     5552s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     5553s,@ECHO_C@,$ECHO_C,;t t
     5554s,@ECHO_N@,$ECHO_N,;t t
     5555s,@ECHO_T@,$ECHO_T,;t t
     5556s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     5557s,@DEFS@,$DEFS,;t t
     5558s,@LIBS@,$LIBS,;t t
     5559s,@PACKAGE@,$PACKAGE,;t t
     5560s,@VERSION@,$VERSION,;t t
     5561s,@CXX@,$CXX,;t t
     5562s,@CXXFLAGS@,$CXXFLAGS,;t t
     5563s,@LDFLAGS@,$LDFLAGS,;t t
     5564s,@CPPFLAGS@,$CPPFLAGS,;t t
     5565s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     5566s,@EXEEXT@,$EXEEXT,;t t
     5567s,@OBJEXT@,$OBJEXT,;t t
     5568s,@AWK@,$AWK,;t t
     5569s,@YACC@,$YACC,;t t
     5570s,@CC@,$CC,;t t
     5571s,@CFLAGS@,$CFLAGS,;t t
     5572s,@ac_ct_CC@,$ac_ct_CC,;t t
     5573s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     5574s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     5575s,@INSTALL_DATA@,$INSTALL_DATA,;t t
     5576s,@LN_S@,$LN_S,;t t
     5577s,@SET_MAKE@,$SET_MAKE,;t t
     5578s,@RANLIB@,$RANLIB,;t t
     5579s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
     5580s,@CPP@,$CPP,;t t
     5581s,@U@,$U,;t t
     5582s,@ANSI2KNR@,$ANSI2KNR,;t t
     5583s,@ALLOCA@,$ALLOCA,;t t
     5584s,@LIBOBJS@,$LIBOBJS,;t t
     5585CEOF
     5586
     5587EOF
     5588
     5589  cat >>$CONFIG_STATUS <<\EOF
     5590  # Split the substitutions into bite-sized pieces for seds with
     5591  # small command number limits, like on Digital OSF/1 and HP-UX.
     5592  ac_max_sed_lines=48
     5593  ac_sed_frag=1 # Number of current file.
     5594  ac_beg=1 # First line for current file.
     5595  ac_end=$ac_max_sed_lines # Line after last line for current file.
     5596  ac_more_lines=:
     5597  ac_sed_cmds=
     5598  while $ac_more_lines; do
     5599    if test $ac_beg -gt 1; then
     5600      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     5601    else
     5602      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     5603    fi
     5604    if test ! -s $tmp/subs.frag; then
     5605      ac_more_lines=false
     5606    else
     5607      # The purpose of the label and of the branching condition is to
     5608      # speed up the sed processing (if there are no `@' at all, there
     5609      # is no need to browse any of the substitutions).
     5610      # These are the two extra sed commands mentioned above.
     5611      (echo ':t
     5612  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     5613      if test -z "$ac_sed_cmds"; then
     5614    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     5615      else
     5616    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     5617      fi
     5618      ac_sed_frag=`expr $ac_sed_frag + 1`
     5619      ac_beg=$ac_end
     5620      ac_end=`expr $ac_end + $ac_max_sed_lines`
     5621    fi
     5622  done
     5623  if test -z "$ac_sed_cmds"; then
     5624    ac_sed_cmds=cat
     5625  fi
     5626fi # test -n "$CONFIG_FILES"
     5627
     5628EOF
     5629cat >>$CONFIG_STATUS <<\EOF
     5630for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     5631  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     5632  case $ac_file in
     5633  - | *:- | *:-:* ) # input from stdin
     5634        cat >$tmp/stdin
     5635        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5636        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5637  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5638        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5639  * )   ac_file_in=$ac_file.in ;;
    32905640  esac
    3291 done
    3292 
    3293 ac_given_srcdir=$srcdir
    3294 ac_given_INSTALL="$INSTALL"
    3295 
    3296 trap 'rm -fr `echo "Makefile text/Makefile lib/Makefile
    3297    jni/Makefile java/org/greenstone/mgpp/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    3298 EOF
    3299 cat >> $CONFIG_STATUS <<EOF
    3300 
    3301 # Protect against being on the right side of a sed subst in config.status.
    3302 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    3303  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    3304 $ac_vpsub
    3305 $extrasub
    3306 s%@SHELL@%$SHELL%g
    3307 s%@CFLAGS@%$CFLAGS%g
    3308 s%@CPPFLAGS@%$CPPFLAGS%g
    3309 s%@CXXFLAGS@%$CXXFLAGS%g
    3310 s%@FFLAGS@%$FFLAGS%g
    3311 s%@DEFS@%$DEFS%g
    3312 s%@LDFLAGS@%$LDFLAGS%g
    3313 s%@LIBS@%$LIBS%g
    3314 s%@exec_prefix@%$exec_prefix%g
    3315 s%@prefix@%$prefix%g
    3316 s%@program_transform_name@%$program_transform_name%g
    3317 s%@bindir@%$bindir%g
    3318 s%@sbindir@%$sbindir%g
    3319 s%@libexecdir@%$libexecdir%g
    3320 s%@datadir@%$datadir%g
    3321 s%@sysconfdir@%$sysconfdir%g
    3322 s%@sharedstatedir@%$sharedstatedir%g
    3323 s%@localstatedir@%$localstatedir%g
    3324 s%@libdir@%$libdir%g
    3325 s%@includedir@%$includedir%g
    3326 s%@oldincludedir@%$oldincludedir%g
    3327 s%@infodir@%$infodir%g
    3328 s%@mandir@%$mandir%g
    3329 s%@PACKAGE@%$PACKAGE%g
    3330 s%@VERSION@%$VERSION%g
    3331 s%@CXX@%$CXX%g
    3332 s%@AWK@%$AWK%g
    3333 s%@YACC@%$YACC%g
    3334 s%@CC@%$CC%g
    3335 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    3336 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    3337 s%@INSTALL_DATA@%$INSTALL_DATA%g
    3338 s%@LN_S@%$LN_S%g
    3339 s%@SET_MAKE@%$SET_MAKE%g
    3340 s%@RANLIB@%$RANLIB%g
    3341 s%@CPP@%$CPP%g
    3342 s%@U@%$U%g
    3343 s%@ANSI2KNR@%$ANSI2KNR%g
    3344 s%@ALLOCA@%$ALLOCA%g
    3345 s%@LIBOBJS@%$LIBOBJS%g
    3346 
    3347 CEOF
    3348 EOF
    3349 
    3350 cat >> $CONFIG_STATUS <<\EOF
    3351 
    3352 # Split the substitutions into bite-sized pieces for seds with
    3353 # small command number limits, like on Digital OSF/1 and HP-UX.
    3354 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    3355 ac_file=1 # Number of current file.
    3356 ac_beg=1 # First line for current file.
    3357 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    3358 ac_more_lines=:
    3359 ac_sed_cmds=""
    3360 while $ac_more_lines; do
    3361   if test $ac_beg -gt 1; then
    3362     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    3363   else
    3364     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    3365   fi
    3366   if test ! -s conftest.s$ac_file; then
    3367     ac_more_lines=false
    3368     rm -f conftest.s$ac_file
    3369   else
    3370     if test -z "$ac_sed_cmds"; then
    3371       ac_sed_cmds="sed -f conftest.s$ac_file"
    3372     else
    3373       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    3374     fi
    3375     ac_file=`expr $ac_file + 1`
    3376     ac_beg=$ac_end
    3377     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    3378   fi
    3379 done
    3380 if test -z "$ac_sed_cmds"; then
    3381   ac_sed_cmds=cat
    3382 fi
    3383 EOF
    3384 
    3385 cat >> $CONFIG_STATUS <<EOF
    3386 
    3387 CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile lib/Makefile
    3388    jni/Makefile java/org/greenstone/mgpp/Makefile"}
    3389 EOF
    3390 cat >> $CONFIG_STATUS <<\EOF
    3391 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    3392   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3393   case "$ac_file" in
    3394   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3395        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3396   *) ac_file_in="${ac_file}.in" ;;
     5641
     5642  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     5643  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     5644         X"$ac_file" : 'X\(//\)[^/]' \| \
     5645         X"$ac_file" : 'X\(//\)$' \| \
     5646         X"$ac_file" : 'X\(/\)' \| \
     5647         .     : '\(.\)' 2>/dev/null ||
     5648echo X"$ac_file" |
     5649    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     5650      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     5651      /^X\(\/\/\)$/{ s//\1/; q; }
     5652      /^X\(\/\).*/{ s//\1/; q; }
     5653      s/.*/./; q'`
     5654  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     5655    { case "$ac_dir" in
     5656  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     5657  *)                      as_incr_dir=.;;
     5658esac
     5659as_dummy="$ac_dir"
     5660for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     5661  case $as_mkdir_dir in
     5662    # Skip DOS drivespec
     5663    ?:) as_incr_dir=$as_mkdir_dir ;;
     5664    *)
     5665      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5666      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5667    ;;
    33975668  esac
    3398 
    3399   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    3400 
    3401   # Remove last slash and all that follows it.  Not all systems have dirname.
    3402   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    3403   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3404     # The file is in a subdirectory.
    3405     test ! -d "$ac_dir" && mkdir "$ac_dir"
    3406     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
     5669done; }
     5670
     5671    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    34075672    # A "../" for each directory in $ac_dir_suffix.
    3408     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
     5673    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
    34095674  else
    34105675    ac_dir_suffix= ac_dots=
    34115676  fi
    34125677
    3413   case "$ac_given_srcdir" in
    3414   .)  srcdir=.
    3415       if test -z "$ac_dots"; then top_srcdir=.
    3416       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    3417   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     5678  case $srcdir in
     5679  .)  ac_srcdir=.
     5680      if test -z "$ac_dots"; then
     5681         ac_top_srcdir=.
     5682      else
     5683         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
     5684      fi ;;
     5685  [\\/]* | ?:[\\/]* )
     5686      ac_srcdir=$srcdir$ac_dir_suffix;
     5687      ac_top_srcdir=$srcdir ;;
    34185688  *) # Relative path.
    3419     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    3420     top_srcdir="$ac_dots$ac_given_srcdir" ;;
     5689    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
     5690    ac_top_srcdir=$ac_dots$srcdir ;;
    34215691  esac
    34225692
    3423   case "$ac_given_INSTALL" in
    3424   [/$]*) INSTALL="$ac_given_INSTALL" ;;
    3425   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     5693  case $INSTALL in
     5694  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
     5695  *) ac_INSTALL=$ac_dots$INSTALL ;;
    34265696  esac
    34275697
    3428   echo creating "$ac_file"
    3429   rm -f "$ac_file"
    3430   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    3431   case "$ac_file" in
    3432   *Makefile*) ac_comsub="1i\\
    3433 # $configure_input" ;;
    3434   *) ac_comsub= ;;
    3435   esac
    3436 
    3437   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3438   sed -e "$ac_comsub
    3439 s%@configure_input@%$configure_input%g
    3440 s%@srcdir@%$srcdir%g
    3441 s%@top_srcdir@%$top_srcdir%g
    3442 s%@INSTALL@%$INSTALL%g
    3443 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    3444 fi; done
    3445 rm -f conftest.s*
     5698  if test x"$ac_file" != x-; then
     5699    { echo "$as_me:5699: creating $ac_file" >&5
     5700echo "$as_me: creating $ac_file" >&6;}
     5701    rm -f "$ac_file"
     5702  fi
     5703  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5704  # use $as_me), people would be surprised to read:
     5705  #    /* config.h.  Generated automatically by config.status.  */
     5706  configure_input="Generated automatically from `echo $ac_file_in |
     5707                                                 sed 's,.*/,,'` by configure."
     5708
     5709  # First look for the input files in the build tree, otherwise in the
     5710  # src tree.
     5711  ac_file_inputs=`IFS=:
     5712    for f in $ac_file_in; do
     5713      case $f in
     5714      -) echo $tmp/stdin ;;
     5715      [\\/$]*)
     5716         # Absolute (can't be DOS-style, as IFS=:)
     5717         test -f "$f" || { { echo "$as_me:5717: error: cannot find input file: $f" >&5
     5718echo "$as_me: error: cannot find input file: $f" >&2;}
     5719   { (exit 1); exit 1; }; }
     5720         echo $f;;
     5721      *) # Relative
     5722         if test -f "$f"; then
     5723           # Build tree
     5724           echo $f
     5725         elif test -f "$srcdir/$f"; then
     5726           # Source tree
     5727           echo $srcdir/$f
     5728         else
     5729           # /dev/null tree
     5730           { { echo "$as_me:5730: error: cannot find input file: $f" >&5
     5731echo "$as_me: error: cannot find input file: $f" >&2;}
     5732   { (exit 1); exit 1; }; }
     5733         fi;;
     5734      esac
     5735    done` || { (exit 1); exit 1; }
     5736EOF
     5737cat >>$CONFIG_STATUS <<EOF
     5738  sed "$ac_vpsub
     5739$extrasub
     5740EOF
     5741cat >>$CONFIG_STATUS <<\EOF
     5742:t
     5743/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     5744s,@configure_input@,$configure_input,;t t
     5745s,@srcdir@,$ac_srcdir,;t t
     5746s,@top_srcdir@,$ac_top_srcdir,;t t
     5747s,@INSTALL@,$ac_INSTALL,;t t
     5748" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     5749  rm -f $tmp/stdin
     5750  if test x"$ac_file" != x-; then
     5751    mv $tmp/out $ac_file
     5752  else
     5753    cat $tmp/out
     5754    rm -f $tmp/out
     5755  fi
     5756
     5757done
     5758EOF
     5759cat >>$CONFIG_STATUS <<\EOF
     5760
     5761#
     5762# CONFIG_HEADER section.
     5763#
    34465764
    34475765# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    34495767#
    34505768# ac_d sets the value in "#define NAME VALUE" lines.
    3451 ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    3452 ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
    3453 ac_dC='\3'
    3454 ac_dD='%g'
    3455 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    3456 ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3457 ac_uB='\([  ]\)%\1#\2define\3'
     5769ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
     5770ac_dB='[    ].*$,\1#\2'
     5771ac_dC=' '
     5772ac_dD=',;t'
     5773# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     5774ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     5775ac_uB='$,\1#\2define\3'
    34585776ac_uC=' '
    3459 ac_uD='\4%g'
    3460 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    3461 ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3462 ac_eB='$%\1#\2define\3'
    3463 ac_eC=' '
    3464 ac_eD='%g'
    3465 
    3466 if test "${CONFIG_HEADERS+set}" != set; then
    3467 EOF
    3468 cat >> $CONFIG_STATUS <<EOF
    3469   CONFIG_HEADERS="config.h"
    3470 EOF
    3471 cat >> $CONFIG_STATUS <<\EOF
    3472 fi
    3473 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     5777ac_uD=',;t'
     5778
     5779for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    34745780  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3475   case "$ac_file" in
    3476   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3477        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3478   *) ac_file_in="${ac_file}.in" ;;
     5781  case $ac_file in
     5782  - | *:- | *:-:* ) # input from stdin
     5783        cat >$tmp/stdin
     5784        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5785        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5786  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5787        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5788  * )   ac_file_in=$ac_file.in ;;
    34795789  esac
    34805790
    3481   echo creating $ac_file
    3482 
    3483   rm -f conftest.frag conftest.in conftest.out
    3484   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3485   cat $ac_file_inputs > conftest.in
    3486 
    3487 EOF
    3488 
    3489 # Transform confdefs.h into a sed script conftest.vals that substitutes
    3490 # the proper values into config.h.in to produce config.h.  And first:
    3491 # Protect against being on the right side of a sed subst in config.status.
    3492 # Protect against being in an unquoted here document in config.status.
    3493 rm -f conftest.vals
    3494 cat > conftest.hdr <<\EOF
    3495 s/[\\&%]/\\&/g
    3496 s%[\\$`]%\\&%g
    3497 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    3498 s%ac_d%ac_u%gp
    3499 s%ac_u%ac_e%gp
    3500 EOF
    3501 sed -n -f conftest.hdr confdefs.h > conftest.vals
    3502 rm -f conftest.hdr
     5791  test x"$ac_file" != x- && { echo "$as_me:5791: creating $ac_file" >&5
     5792echo "$as_me: creating $ac_file" >&6;}
     5793
     5794  # First look for the input files in the build tree, otherwise in the
     5795  # src tree.
     5796  ac_file_inputs=`IFS=:
     5797    for f in $ac_file_in; do
     5798      case $f in
     5799      -) echo $tmp/stdin ;;
     5800      [\\/$]*)
     5801         # Absolute (can't be DOS-style, as IFS=:)
     5802         test -f "$f" || { { echo "$as_me:5802: error: cannot find input file: $f" >&5
     5803echo "$as_me: error: cannot find input file: $f" >&2;}
     5804   { (exit 1); exit 1; }; }
     5805         echo $f;;
     5806      *) # Relative
     5807         if test -f "$f"; then
     5808           # Build tree
     5809           echo $f
     5810         elif test -f "$srcdir/$f"; then
     5811           # Source tree
     5812           echo $srcdir/$f
     5813         else
     5814           # /dev/null tree
     5815           { { echo "$as_me:5815: error: cannot find input file: $f" >&5
     5816echo "$as_me: error: cannot find input file: $f" >&2;}
     5817   { (exit 1); exit 1; }; }
     5818         fi;;
     5819      esac
     5820    done` || { (exit 1); exit 1; }
     5821  # Remove the trailing spaces.
     5822  sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
     5823
     5824EOF
     5825
     5826# Transform confdefs.h into two sed scripts, `conftest.defines' and
     5827# `conftest.undefs', that substitutes the proper values into
     5828# config.h.in to produce config.h.  The first handles `#define'
     5829# templates, and the second `#undef' templates.
     5830# And first: Protect against being on the right side of a sed subst in
     5831# config.status.  Protect against being in an unquoted here document
     5832# in config.status.
     5833rm -f conftest.defines conftest.undefs
     5834# Using a here document instead of a string reduces the quoting nightmare.
     5835# Putting comments in sed scripts is not portable.
     5836#
     5837# `end' is used to avoid that the second main sed command (meant for
     5838# 0-ary CPP macros) applies to n-ary macro definitions.
     5839# See the Autoconf documentation for `clear'.
     5840cat >confdef2sed.sed <<\EOF
     5841s/[\\&,]/\\&/g
     5842s,[\\$`],\\&,g
     5843t clear
     5844: clear
     5845s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
     5846t end
     5847s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     5848: end
     5849EOF
     5850# If some macros were called several times there might be several times
     5851# the same #defines, which is useless.  Nevertheless, we may not want to
     5852# sort them, since we want the *last* AC-DEFINE to be honored.
     5853uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     5854sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     5855rm -f confdef2sed.sed
    35035856
    35045857# This sed command replaces #undef with comments.  This is necessary, for
    35055858# example, in the case of _POSIX_SOURCE, which is predefined and required
    35065859# on some systems where configure will not decide to define it.
    3507 cat >> conftest.vals <<\EOF
    3508 s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
    3509 EOF
    3510 
    3511 # Break up conftest.vals because some shells have a limit on
    3512 # the size of here documents, and old seds have small limits too.
    3513 
     5860cat >>conftest.undefs <<\EOF
     5861s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     5862EOF
     5863
     5864# Break up conftest.defines because some shells have a limit on the size
     5865# of here documents, and old seds have small limits too (100 cmds).
     5866echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     5867echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     5868echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     5869echo '  :' >>$CONFIG_STATUS
    35145870rm -f conftest.tail
    3515 while :
     5871while grep . conftest.defines >/dev/null
    35165872do
    3517   ac_lines=`grep -c . conftest.vals`
    3518   # grep -c gives empty output for an empty file on some AIX systems.
    3519   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    3520   # Write a limited-size here document to conftest.frag.
    3521   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    3522   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     5873  # Write a limited-size here document to $tmp/defines.sed.
     5874  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     5875  # Speed up: don't consider the non `#define' lines.
     5876  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
     5877  # Work around the forget-to-reset-the-flag bug.
     5878  echo 't clr' >>$CONFIG_STATUS
     5879  echo ': clr' >>$CONFIG_STATUS
     5880  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    35235881  echo 'CEOF
    3524   sed -f conftest.frag conftest.in > conftest.out
    3525   rm -f conftest.in
    3526   mv conftest.out conftest.in
    3527 ' >> $CONFIG_STATUS
    3528   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    3529   rm -f conftest.vals
    3530   mv conftest.tail conftest.vals
     5882  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     5883  rm -f $tmp/in
     5884  mv $tmp/out $tmp/in
     5885' >>$CONFIG_STATUS
     5886  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     5887  rm -f conftest.defines
     5888  mv conftest.tail conftest.defines
    35315889done
    3532 rm -f conftest.vals
    3533 
    3534 cat >> $CONFIG_STATUS <<\EOF
    3535   rm -f conftest.frag conftest.h
    3536   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    3537   cat conftest.in >> conftest.h
    3538   rm -f conftest.in
    3539   if cmp -s $ac_file conftest.h 2>/dev/null; then
    3540     echo "$ac_file is unchanged"
    3541     rm -f conftest.h
     5890rm -f conftest.defines
     5891echo '  fi # egrep' >>$CONFIG_STATUS
     5892echo >>$CONFIG_STATUS
     5893
     5894# Break up conftest.undefs because some shells have a limit on the size
     5895# of here documents, and old seds have small limits too (100 cmds).
     5896echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     5897rm -f conftest.tail
     5898while grep . conftest.undefs >/dev/null
     5899do
     5900  # Write a limited-size here document to $tmp/undefs.sed.
     5901  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     5902  # Speed up: don't consider the non `#undef'
     5903  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     5904  # Work around the forget-to-reset-the-flag bug.
     5905  echo 't clr' >>$CONFIG_STATUS
     5906  echo ': clr' >>$CONFIG_STATUS
     5907  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     5908  echo 'CEOF
     5909  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     5910  rm -f $tmp/in
     5911  mv $tmp/out $tmp/in
     5912' >>$CONFIG_STATUS
     5913  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     5914  rm -f conftest.undefs
     5915  mv conftest.tail conftest.undefs
     5916done
     5917rm -f conftest.undefs
     5918
     5919cat >>$CONFIG_STATUS <<\EOF
     5920  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5921  # use $as_me), people would be surprised to read:
     5922  #    /* config.h.  Generated automatically by config.status.  */
     5923  if test x"$ac_file" = x-; then
     5924    echo "/* Generated automatically by configure.  */" >$tmp/config.h
    35425925  else
    3543     # Remove last slash and all that follows it.  Not all systems have dirname.
    3544       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     5926    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     5927  fi
     5928  cat $tmp/in >>$tmp/config.h
     5929  rm -f $tmp/in
     5930  if test x"$ac_file" != x-; then
     5931    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
     5932      { echo "$as_me:5932: $ac_file is unchanged" >&5
     5933echo "$as_me: $ac_file is unchanged" >&6;}
     5934    else
     5935      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     5936         X"$ac_file" : 'X\(//\)[^/]' \| \
     5937         X"$ac_file" : 'X\(//\)$' \| \
     5938         X"$ac_file" : 'X\(/\)' \| \
     5939         .     : '\(.\)' 2>/dev/null ||
     5940echo X"$ac_file" |
     5941    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     5942      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     5943      /^X\(\/\/\)$/{ s//\1/; q; }
     5944      /^X\(\/\).*/{ s//\1/; q; }
     5945      s/.*/./; q'`
    35455946      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3546       # The file is in a subdirectory.
    3547       test ! -d "$ac_dir" && mkdir "$ac_dir"
     5947        { case "$ac_dir" in
     5948  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     5949  *)                      as_incr_dir=.;;
     5950esac
     5951as_dummy="$ac_dir"
     5952for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     5953  case $as_mkdir_dir in
     5954    # Skip DOS drivespec
     5955    ?:) as_incr_dir=$as_mkdir_dir ;;
     5956    *)
     5957      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5958      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5959    ;;
     5960  esac
     5961done; }
     5962
     5963      fi
     5964      rm -f $ac_file
     5965      mv $tmp/config.h $ac_file
    35485966    fi
    3549     rm -f $ac_file
    3550     mv conftest.h $ac_file
     5967  else
     5968    cat $tmp/config.h
     5969    rm -f $tmp/config.h
    35515970  fi
    3552 fi; done
    3553 
    3554 EOF
    3555 cat >> $CONFIG_STATUS <<EOF
    3556 
    3557 EOF
    3558 cat >> $CONFIG_STATUS <<\EOF
    3559 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    3560 exit 0
     5971done
     5972EOF
     5973cat >>$CONFIG_STATUS <<\EOF
     5974
     5975#
     5976# CONFIG_COMMANDS section.
     5977#
     5978for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
     5979  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
     5980  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5981
     5982  case $ac_dest in
     5983    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
     5984  esac
     5985done
     5986EOF
     5987
     5988cat >>$CONFIG_STATUS <<\EOF
     5989
     5990{ (exit 0); exit 0; }
    35615991EOF
    35625992chmod +x $CONFIG_STATUS
    3563 rm -fr confdefs* $ac_clean_files
    3564 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    3565 
     5993ac_clean_files=$ac_clean_files_save
     5994
     5995# configure is writing to config.log, and then calls config.status.
     5996# config.status does its own redirection, appending to config.log.
     5997# Unfortunately, on DOS this fails, as config.log is still kept open
     5998# by configure, so config.status won't be able to write to it; its
     5999# output is simply discarded.  So we exec the FD to /dev/null,
     6000# effectively closing config.log, so it can be properly (re)opened and
     6001# appended to by config.status.  When coming back to configure, we
     6002# need to make the FD available again.
     6003if test "$no_create" != yes; then
     6004  ac_cs_success=:
     6005  exec 5>/dev/null
     6006  $SHELL $CONFIG_STATUS || ac_cs_success=false
     6007  exec 5>>config.log
     6008  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     6009  # would make configure fail if this is the last instruction.
     6010  $ac_cs_success || { (exit 1); exit 1; }
     6011fi
     6012
  • trunk/mgpp/configure.in

    r8059 r8063  
    7979
    8080dnl see if gettext is in libc. (try the textdomain() function).
    81 AC_CHECK_FUNC( textdomain , AC_DEFINE(ENABLE_NLS ,1) )
     81AC_CHECK_FUNC(textdomain, AC_DEFINE(ENABLE_NLS ,1) )
    8282
    8383# *** Custom checking (based on GNU tar configure.in) ***
Note: See TracChangeset for help on using the changeset viewer.