Changeset 3739


Ignore:
Timestamp:
2003-02-20T15:48:51+13:00 (21 years ago)
Author:
mdewsnip
Message:

Added MG package to support search and retrieval using MG.

Location:
trunk/gsdl/packages/mg
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/packages/mg/Makefile.in

    r1752 r3739  
    4646#infodir='$(infodir)' infodir='$(infodir)' libexecdir='$(libexecdir)'
    4747
    48 #SUBDIRS = lib src/text src/images src/scripts
    49 SUBDIRS = lib src/text
     48SUBDIRS = lib src/text src/images src/scripts jni java/org/greenstone/mg
     49#SUBDIRS = lib src/text
    5050
    5151
    5252.SUFFIXES:
    5353
    54 all install uninstall execinstall execuninstall maninstall manuninstall: ../../config.h
     54all install uninstall execinstall execuninstall maninstall manuninstall: config.h
    5555    for subdir in $(SUBDIRS); do \
    5656      echo making $@ in $$subdir; \
  • trunk/gsdl/packages/mg/configure

    r439 r3739  
    11#! /bin/sh
    2 
    32# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.12
    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"
     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="src/text/mgquery.c"
     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"
    19134
    20135# Initialize some variables set by options.
     136ac_init_help=
     137ac_init_version=false
    21138# The variables have the same names as the options, with
    22139# dashes changed to underlines.
    23 build=NONE
    24 cache_file=./config.cache
     140cache_file=/dev/null
    25141exec_prefix=NONE
    26 host=NONE
    27142no_create=
    28 nonopt=NONE
    29143no_recursion=
    30144prefix=NONE
     
    35149site=
    36150srcdir=
    37 target=NONE
    38151verbose=
    39152x_includes=NONE
    40153x_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.
    41160bindir='${exec_prefix}/bin'
    42161sbindir='${exec_prefix}/sbin'
     
    52171mandir='${prefix}/man'
    53172
    54 # Initialize some other variables.
    55 subdirs=
    56 MFLAGS= MAKEFLAGS=
    57 # Maximum number of lines to put in a shell here document.
    58 ac_max_here_lines=12
     173# Identity of this package.
     174PACKAGE_NAME=
     175PACKAGE_TARNAME=
     176PACKAGE_VERSION=
     177PACKAGE_STRING=
     178PACKAGE_BUGREPORT=
    59179
    60180ac_prev=
    61181for ac_option
    62182do
    63 
    64183  # If the previous option needs an argument, assign it.
    65184  if test -n "$ac_prev"; then
     
    69188  fi
    70189
    71   case "$ac_option" in
    72   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    73   *) ac_optarg= ;;
    74   esac
     190  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    75191
    76192  # Accept the important Cygnus configure options, so we can diagnose typos.
    77193
    78   case "$ac_option" in
     194  case $ac_option in
    79195
    80196  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    81197    ac_prev=bindir ;;
    82198  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    83     bindir="$ac_optarg" ;;
     199    bindir=$ac_optarg ;;
    84200
    85201  -build | --build | --buil | --bui | --bu)
    86     ac_prev=build ;;
     202    ac_prev=build_alias ;;
    87203  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    88     build="$ac_optarg" ;;
     204    build_alias=$ac_optarg ;;
    89205
    90206  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    93209  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    94210  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    95     cache_file="$ac_optarg" ;;
     211    cache_file=$ac_optarg ;;
     212
     213  --config-cache | -C)
     214    cache_file=config.cache ;;
    96215
    97216  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    99218  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    100219  | --da=*)
    101     datadir="$ac_optarg" ;;
     220    datadir=$ac_optarg ;;
    102221
    103222  -disable-* | --disable-*)
    104     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     223    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    105224    # Reject names that are not valid shell variable names.
    106     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    107       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    108     fi
    109     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    110     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" ;;
    111230
    112231  -enable-* | --enable-*)
    113     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     232    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    114233    # Reject names that are not valid shell variable names.
    115     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    116       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    117     fi
    118     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    119     case "$ac_option" in
    120       *=*) ;;
     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"`;;
    121240      *) ac_optarg=yes ;;
    122241    esac
    123     eval "enable_${ac_feature}='$ac_optarg'" ;;
     242    eval "enable_$ac_feature='$ac_optarg'" ;;
    124243
    125244  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    130249  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    131250  | --exec=* | --exe=* | --ex=*)
    132     exec_prefix="$ac_optarg" ;;
     251    exec_prefix=$ac_optarg ;;
    133252
    134253  -gas | --gas | --ga | --g)
     
    136255    with_gas=yes ;;
    137256
    138   -help | --help | --hel | --he)
    139     # Omit some internal or obsolete options to make the list less imposing.
    140     # This message is too long to be a string in the A/UX 3.1 sh.
    141     cat << EOF
    142 Usage: configure [options] [host]
    143 Options: [defaults in brackets after descriptions]
    144 Configuration:
    145   --cache-file=FILE       cache test results in FILE
    146   --help                  print this message
    147   --no-create             do not create output files
    148   --quiet, --silent       do not print \`checking...' messages
    149   --version               print the version of autoconf that created configure
    150 Directory and file names:
    151   --prefix=PREFIX         install architecture-independent files in PREFIX
    152                           [$ac_default_prefix]
    153   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    154                           [same as prefix]
    155   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    156   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    157   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    158   --datadir=DIR           read-only architecture-independent data in DIR
    159                           [PREFIX/share]
    160   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    161   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    162                           [PREFIX/com]
    163   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    164   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    165   --includedir=DIR        C header files in DIR [PREFIX/include]
    166   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    167   --infodir=DIR           info documentation in DIR [PREFIX/info]
    168   --mandir=DIR            man documentation in DIR [PREFIX/man]
    169   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    170   --program-prefix=PREFIX prepend PREFIX to installed program names
    171   --program-suffix=SUFFIX append SUFFIX to installed program names
    172   --program-transform-name=PROGRAM
    173                           run sed PROGRAM on installed program names
    174 EOF
    175     cat << EOF
    176 Host type:
    177   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    178   --host=HOST             configure for HOST [guessed]
    179   --target=TARGET         configure for TARGET [TARGET=HOST]
    180 Features and packages:
    181   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    182   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    183   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    184   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    185   --x-includes=DIR        X include files are in DIR
    186   --x-libraries=DIR       X library files are in DIR
    187 EOF
    188     if test -n "$ac_help"; then
    189       echo "--enable and --with options recognized:$ac_help"
    190     fi
    191     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 ;;
    192263
    193264  -host | --host | --hos | --ho)
    194     ac_prev=host ;;
     265    ac_prev=host_alias ;;
    195266  -host=* | --host=* | --hos=* | --ho=*)
    196     host="$ac_optarg" ;;
     267    host_alias=$ac_optarg ;;
    197268
    198269  -includedir | --includedir | --includedi | --included | --include \
     
    201272  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    202273  | --includ=* | --inclu=* | --incl=* | --inc=*)
    203     includedir="$ac_optarg" ;;
     274    includedir=$ac_optarg ;;
    204275
    205276  -infodir | --infodir | --infodi | --infod | --info | --inf)
    206277    ac_prev=infodir ;;
    207278  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    208     infodir="$ac_optarg" ;;
     279    infodir=$ac_optarg ;;
    209280
    210281  -libdir | --libdir | --libdi | --libd)
    211282    ac_prev=libdir ;;
    212283  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    213     libdir="$ac_optarg" ;;
     284    libdir=$ac_optarg ;;
    214285
    215286  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    218289  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    219290  | --libexe=* | --libex=* | --libe=*)
    220     libexecdir="$ac_optarg" ;;
     291    libexecdir=$ac_optarg ;;
    221292
    222293  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    227298  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    228299  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    229     localstatedir="$ac_optarg" ;;
     300    localstatedir=$ac_optarg ;;
    230301
    231302  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    232303    ac_prev=mandir ;;
    233304  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    234     mandir="$ac_optarg" ;;
     305    mandir=$ac_optarg ;;
    235306
    236307  -nfp | --nfp | --nf)
     
    253324  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    254325  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    255     oldincludedir="$ac_optarg" ;;
     326    oldincludedir=$ac_optarg ;;
    256327
    257328  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    258329    ac_prev=prefix ;;
    259330  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    260     prefix="$ac_optarg" ;;
     331    prefix=$ac_optarg ;;
    261332
    262333  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    265336  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    266337  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    267     program_prefix="$ac_optarg" ;;
     338    program_prefix=$ac_optarg ;;
    268339
    269340  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    272343  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    273344  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    274     program_suffix="$ac_optarg" ;;
     345    program_suffix=$ac_optarg ;;
    275346
    276347  -program-transform-name | --program-transform-name \
     
    289360  | --program-trans=* | --program-tran=* \
    290361  | --progr-tra=* | --program-tr=* | --program-t=*)
    291     program_transform_name="$ac_optarg" ;;
     362    program_transform_name=$ac_optarg ;;
    292363
    293364  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    299370  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    300371  | --sbi=* | --sb=*)
    301     sbindir="$ac_optarg" ;;
     372    sbindir=$ac_optarg ;;
    302373
    303374  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    310381  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    311382  | --sha=* | --sh=*)
    312     sharedstatedir="$ac_optarg" ;;
     383    sharedstatedir=$ac_optarg ;;
    313384
    314385  -site | --site | --sit)
    315386    ac_prev=site ;;
    316387  -site=* | --site=* | --sit=*)
    317     site="$ac_optarg" ;;
     388    site=$ac_optarg ;;
    318389
    319390  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    320391    ac_prev=srcdir ;;
    321392  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    322     srcdir="$ac_optarg" ;;
     393    srcdir=$ac_optarg ;;
    323394
    324395  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    327398  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    328399  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    329     sysconfdir="$ac_optarg" ;;
     400    sysconfdir=$ac_optarg ;;
    330401
    331402  -target | --target | --targe | --targ | --tar | --ta | --t)
    332     ac_prev=target ;;
     403    ac_prev=target_alias ;;
    333404  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    334     target="$ac_optarg" ;;
     405    target_alias=$ac_optarg ;;
    335406
    336407  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    337408    verbose=yes ;;
    338409
    339   -version | --version | --versio | --versi | --vers)
    340     echo "configure generated by autoconf version 2.12"
    341     exit 0 ;;
     410  -version | --version | --versio | --versi | --vers | -V)
     411    ac_init_version=: ;;
    342412
    343413  -with-* | --with-*)
    344     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     414    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    345415    # Reject names that are not valid shell variable names.
    346     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    347       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    348     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; }; }
    349419    ac_package=`echo $ac_package| sed 's/-/_/g'`
    350     case "$ac_option" in
    351       *=*) ;;
     420    case $ac_option in
     421      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    352422      *) ac_optarg=yes ;;
    353423    esac
    354     eval "with_${ac_package}='$ac_optarg'" ;;
     424    eval "with_$ac_package='$ac_optarg'" ;;
    355425
    356426  -without-* | --without-*)
    357     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     427    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    358428    # Reject names that are not valid shell variable names.
    359     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    360       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    361     fi
    362     ac_package=`echo $ac_package| sed 's/-/_/g'`
    363     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" ;;
    364434
    365435  --x)
     
    372442  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    373443  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    374     x_includes="$ac_optarg" ;;
     444    x_includes=$ac_optarg ;;
    375445
    376446  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    379449  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    380450  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    381     x_libraries="$ac_optarg" ;;
    382 
    383   -*) { 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; }; }
    384456    ;;
    385457
     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
    386468  *)
    387     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    388       echo "configure: warning: $ac_option: invalid host type" 1>&2
    389     fi
    390     if test "x$nonopt" != xNONE; then
    391       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    392     fi
    393     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}
    394474    ;;
    395475
     
    398478
    399479if test -n "$ac_prev"; then
    400   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    401 fi
    402 
    403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    404 
    405 # File descriptor usage:
    406 # 0 standard input
    407 # 1 file creation
    408 # 2 errors and warnings
    409 # 3 some systems may open it to /dev/tty
    410 # 4 used on the Kubota Titan
    411 # 6 checking for... messages and results
    412 # 5 compiler messages saved in config.log
    413 if test "$silent" = yes; then
    414   exec 6>/dev/null
    415 else
    416   exec 6>&1
    417 fi
    418 exec 5>./config.log
    419 
    420 echo "\
    421 This file contains any messages produced by compilers while
    422 running configure, to aid debugging if configure makes a mistake.
    423 " 1>&5
    424 
    425 # Strip out --no-create and --no-recursion so they do not pile up.
    426 # Also quote any args containing shell metacharacters.
    427 ac_configure_args=
    428 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
    429489do
    430   case "$ac_arg" in
    431   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    432   | --no-cr | --no-c) ;;
    433   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    434   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    435   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    436   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    437   *) 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; }; };;
    438496  esac
    439497done
    440498
    441 # NLS nuisances.
    442 # Only set these to C if already set.  These must not be set unconditionally
    443 # because not all systems understand e.g. LANG=C (notably SCO).
    444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    445 # Non-C LC_CTYPE values break the ctype check.
    446 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    449 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    450 
    451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    452 rm -rf conftest* confdefs.h
    453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    454 echo > confdefs.h
    455 
    456 # A filename unique to this package, relative to the directory that
    457 # configure is in, which we can look for to find out if srcdir is correct.
    458 ac_unique_file=src/text/mgquery.c
     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
    459520
    460521# Find the source files, if location was not specified.
     
    463524  # Try the directory containing this script, then its parent.
    464525  ac_prog=$0
    465   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
     526  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    466527  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    467528  srcdir=$ac_confdir
     
    474535if test ! -r $srcdir/$ac_unique_file; then
    475536  if test "$ac_srcdir_defaulted" = yes; then
    476     { 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; }; }
    477539  else
    478     { 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; }; }
    479542  fi
    480543fi
    481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    482 
     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 Packages:
     658  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     659  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     660  --with-dmalloc          use dmalloc, as in
     661                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
     662  --with-regex            use older regex in lieu of GNU rx for matching
     663
     664Some influential environment variables:
     665  CXX         C++ compiler command
     666  CXXFLAGS    C++ compiler flags
     667  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     668              nonstandard directory <lib dir>
     669  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     670              headers in a nonstandard directory <include dir>
     671  CC          C compiler command
     672  CFLAGS      C compiler flags
     673  CPP         C preprocessor
     674
     675Use these variables to override the choices made by `configure' or to help
     676it to find libraries and programs with nonstandard names/locations.
     677
     678EOF
     679fi
     680
     681if test "$ac_init_help" = "recursive"; then
     682  # If there are subdirs, report their specific --help.
     683  ac_popdir=`pwd`
     684  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
     685    cd $ac_subdir
     686    # A "../" for each directory in /$ac_subdir.
     687    ac_dots=`echo $ac_subdir |
     688             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
     689
     690    case $srcdir in
     691    .) # No --srcdir option.  We are building in place.
     692      ac_sub_srcdir=$srcdir ;;
     693    [\\/]* | ?:[\\/]* ) # Absolute path.
     694      ac_sub_srcdir=$srcdir/$ac_subdir ;;
     695    *) # Relative path.
     696      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
     697    esac
     698
     699    # Check for guested configure; otherwise get Cygnus style configure.
     700    if test -f $ac_sub_srcdir/configure.gnu; then
     701      echo
     702      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
     703    elif test -f $ac_sub_srcdir/configure; then
     704      echo
     705      $SHELL $ac_sub_srcdir/configure  --help=recursive
     706    elif test -f $ac_sub_srcdir/configure.ac ||
     707           test -f $ac_sub_srcdir/configure.in; then
     708      echo
     709      $ac_configure --help
     710    else
     711      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
     712    fi
     713    cd $ac_popdir
     714  done
     715fi
     716
     717test -n "$ac_init_help" && exit 0
     718if $ac_init_version; then
     719  cat <<\EOF
     720
     721Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     722Free Software Foundation, Inc.
     723This configure script is free software; the Free Software Foundation
     724gives unlimited permission to copy, distribute and modify it.
     725EOF
     726  exit 0
     727fi
     728exec 5>config.log
     729cat >&5 <<EOF
     730This file contains any messages produced by compilers while
     731running configure, to aid debugging if configure makes a mistake.
     732
     733It was created by $as_me, which was
     734generated by GNU Autoconf 2.50.  Invocation command line was
     735
     736  $ $0 $@
     737
     738EOF
     739{
     740cat <<_ASUNAME
     741## ---------- ##
     742## Platform.  ##
     743## ---------- ##
     744
     745hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     746uname -m = `(uname -m) 2>/dev/null || echo unknown`
     747uname -r = `(uname -r) 2>/dev/null || echo unknown`
     748uname -s = `(uname -s) 2>/dev/null || echo unknown`
     749uname -v = `(uname -v) 2>/dev/null || echo unknown`
     750
     751/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     752/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     753
     754/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     755/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     756/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     757hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     758/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     759/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     760/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     761
     762PATH = $PATH
     763
     764_ASUNAME
     765} >&5
     766
     767cat >&5 <<EOF
     768## ------------ ##
     769## Core tests.  ##
     770## ------------ ##
     771
     772EOF
     773
     774# Keep a trace of the command line.
     775# Strip out --no-create and --no-recursion so they do not pile up.
     776# Also quote any args containing shell meta-characters.
     777ac_configure_args=
     778ac_sep=
     779for ac_arg
     780do
     781  case $ac_arg in
     782  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     783  | --no-cr | --no-c) ;;
     784  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     785  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     786  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     787    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
     788    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     789    ac_sep=" " ;;
     790  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     791     ac_sep=" " ;;
     792  esac
     793  # Get rid of the leading space.
     794done
     795
     796# When interrupted or exit'd, cleanup temporary files, and complete
     797# config.log.  We remove comments because anyway the quotes in there
     798# would cause problems or look ugly.
     799trap 'exit_status=$?
     800  # Save into config.log some information that might help in debugging.
     801  echo >&5
     802  echo "## ----------------- ##" >&5
     803  echo "## Cache variables.  ##" >&5
     804  echo "## ----------------- ##" >&5
     805  echo >&5
     806  # The following way of writing the cache mishandles newlines in values,
     807{
     808  (set) 2>&1 |
     809    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     810    *ac_space=\ *)
     811      sed -n \
     812        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     813          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     814      ;;
     815    *)
     816      sed -n \
     817        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     818      ;;
     819    esac;
     820} >&5
     821  sed "/^$/d" confdefs.h >conftest.log
     822  if test -s conftest.log; then
     823    echo >&5
     824    echo "## ------------ ##" >&5
     825    echo "## confdefs.h.  ##" >&5
     826    echo "## ------------ ##" >&5
     827    echo >&5
     828    cat conftest.log >&5
     829  fi
     830  (echo; echo) >&5
     831  test "$ac_signal" != 0 &&
     832    echo "$as_me: caught signal $ac_signal" >&5
     833  echo "$as_me: exit $exit_status" >&5
     834  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
     835    exit $exit_status
     836     ' 0
     837for ac_signal in 1 2 13 15; do
     838  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
     839done
     840ac_signal=0
     841
     842# confdefs.h avoids OS command line length limits that DEFS can exceed.
     843rm -rf conftest* confdefs.h
     844# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     845echo >confdefs.h
     846
     847# Let the site file select an alternate cache file if it wants to.
    483848# Prefer explicitly selected file to automatically selected ones.
    484849if test -z "$CONFIG_SITE"; then
     
    491856for ac_site_file in $CONFIG_SITE; do
    492857  if test -r "$ac_site_file"; then
    493     echo "loading site script $ac_site_file"
     858    { echo "$as_me:858: loading site script $ac_site_file" >&5
     859echo "$as_me: loading site script $ac_site_file" >&6;}
     860    cat "$ac_site_file" >&5
    494861    . "$ac_site_file"
    495862  fi
     
    497864
    498865if test -r "$cache_file"; then
    499   echo "loading cache $cache_file"
    500   . $cache_file
    501 else
    502   echo "creating cache $cache_file"
    503   > $cache_file
     866  # Some versions of bash will fail to source /dev/null (special
     867  # files actually), so we avoid doing that.
     868  if test -f "$cache_file"; then
     869    { echo "$as_me:869: loading cache $cache_file" >&5
     870echo "$as_me: loading cache $cache_file" >&6;}
     871    case $cache_file in
     872      [\\/]* | ?:[\\/]* ) . $cache_file;;
     873      *)                      . ./$cache_file;;
     874    esac
     875  fi
     876else
     877  { echo "$as_me:877: creating cache $cache_file" >&5
     878echo "$as_me: creating cache $cache_file" >&6;}
     879  >$cache_file
     880fi
     881
     882# Check that the precious variables saved in the cache have kept the same
     883# value.
     884ac_suggest_removing_cache=false
     885for ac_var in `(set) 2>&1 |
     886               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     887  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     888  eval ac_new_set=\$ac_env_${ac_var}_set
     889  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     890  eval ac_new_val="\$ac_env_${ac_var}_value"
     891  case $ac_old_set,$ac_new_set in
     892    set,)
     893      { echo "$as_me:893: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     894echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     895      ac_suggest_removing_cache=: ;;
     896    ,set)
     897      { echo "$as_me:897: WARNING: \`$ac_var' was not set in the previous run" >&5
     898echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
     899      ac_suggest_removing_cache=: ;;
     900    ,);;
     901    *)
     902      if test "x$ac_old_val" != "x$ac_new_val"; then
     903        { echo "$as_me:903: WARNING: \`$ac_var' has changed since the previous run:" >&5
     904echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
     905        { echo "$as_me:905: WARNING:   former value:  $ac_old_val" >&5
     906echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
     907        { echo "$as_me:907: WARNING:   current value: $ac_new_val" >&5
     908echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
     909        ac_suggest_removing_cache=:
     910      fi;;
     911  esac
     912done
     913if $ac_suggest_removing_cache; then
     914  { echo "$as_me:914: WARNING: changes in the environment can compromise the build" >&5
     915echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
     916  { echo "$as_me:916: WARNING: consider removing $cache_file and starting over" >&5
     917echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
    504918fi
    505919
    506920ac_ext=c
    507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    508921ac_cpp='$CPP $CPPFLAGS'
    509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    510 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    511 cross_compiling=$ac_cv_prog_cc_cross
    512 
    513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    514   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
    515   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    516     ac_n= ac_c='
    517 ' ac_t='    '
    518   else
    519     ac_n=-n ac_c= ac_t=
    520   fi
    521 else
    522   ac_n= ac_c='\c' ac_t=
    523 fi
    524 
    525 
     922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     924ac_compiler_gnu=$ac_cv_c_compiler_gnu
     925
     926case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     927  *c*,-n*) ECHO_N= ECHO_C='
     928' ECHO_T='  ' ;;
     929  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     930  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
     931esac
     932echo "#! $SHELL" >conftest.sh
     933echo  "exit 0"   >>conftest.sh
     934chmod +x conftest.sh
     935if { (echo "$as_me:935: PATH=\".;.\"; conftest.sh") >&5
     936  (PATH=".;."; conftest.sh) 2>&5
     937  ac_status=$?
     938  echo "$as_me:938: \$? = $ac_status" >&5
     939  (exit $ac_status); }; then
     940  ac_path_separator=';'
     941else
     942  ac_path_separator=:
     943fi
     944PATH_SEPARATOR="$ac_path_separator"
     945rm -f conftest.sh
     946
     947ac_config_headers="$ac_config_headers config.h"
    526948
    527949if test "$program_transform_name" = s,x,x,; then
     
    529951else
    530952  # Double any \ or $.  echo might interpret backslashes.
    531   cat <<\EOF_SED > conftestsed
     953  cat <<\EOF >conftest.sed
    532954s,\\,\\\\,g; s,\$,$$,g
    533 EOF_SED
    534   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
    535   rm -f conftestsed
     955EOF
     956  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     957  rm -f conftest.sed
    536958fi
    537959test "$program_prefix" != NONE &&
    538   program_transform_name="s,^,${program_prefix},; $program_transform_name"
     960  program_transform_name="s,^,${program_prefix},;$program_transform_name"
    539961# Use a double $ so make ignores it.
    540962test "$program_suffix" != NONE &&
    541   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
     963  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
    542964
    543965# sed with no file args requires a program.
    544 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
    545 
     966test -z "$program_transform_name" && program_transform_name="s,x,x,"
    546967
    547968PACKAGE=mg
    548 VERSION=1.3e
    549 
    550 cat >> confdefs.h <<EOF
     969VERSION=1.2
     970
     971cat >>confdefs.h <<EOF
    551972#define PACKAGE "$PACKAGE"
    552973EOF
    553974
    554 cat >> confdefs.h <<EOF
     975cat >>confdefs.h <<EOF
    555976#define VERSION "$VERSION"
    556977EOF
    557978
    558 
    559 
    560 
    561 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
    562 do
    563 # Extract the first word of "$ac_prog", so it can be a program name with args.
    564 set dummy $ac_prog; ac_word=$2
    565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    566 echo "configure:567: checking for $ac_word" >&5
    567 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    568   echo $ac_n "(cached) $ac_c" 1>&6
     979ac_ext=cc
     980ac_cpp='$CXXCPP $CPPFLAGS'
     981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     984if test -n "$ac_tool_prefix"; then
     985  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     986  do
     987    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     989echo "$as_me:989: checking for $ac_word" >&5
     990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     991if test "${ac_cv_prog_CXX+set}" = set; then
     992  echo $ECHO_N "(cached) $ECHO_C" >&6
    569993else
    570994  if test -n "$CXX"; then
    571995  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    572996else
    573   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    574   for ac_dir in $PATH; do
    575     test -z "$ac_dir" && ac_dir=.
    576     if test -f $ac_dir/$ac_word; then
    577       ac_cv_prog_CXX="$ac_prog"
    578       break
     997  ac_save_IFS=$IFS; IFS=$ac_path_separator
     998ac_dummy="$PATH"
     999for ac_dir in $ac_dummy; do
     1000  IFS=$ac_save_IFS
     1001  test -z "$ac_dir" && ac_dir=.
     1002  $as_executable_p "$ac_dir/$ac_word" || continue
     1003ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1004echo "$as_me:1004: found $ac_dir/$ac_word" >&5
     1005break
     1006done
     1007
     1008fi
     1009fi
     1010CXX=$ac_cv_prog_CXX
     1011if test -n "$CXX"; then
     1012  echo "$as_me:1012: result: $CXX" >&5
     1013echo "${ECHO_T}$CXX" >&6
     1014else
     1015  echo "$as_me:1015: result: no" >&5
     1016echo "${ECHO_T}no" >&6
     1017fi
     1018
     1019    test -n "$CXX" && break
     1020  done
     1021fi
     1022if test -z "$CXX"; then
     1023  ac_ct_CXX=$CXX
     1024  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1025do
     1026  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1027set dummy $ac_prog; ac_word=$2
     1028echo "$as_me:1028: checking for $ac_word" >&5
     1029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1030if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1031  echo $ECHO_N "(cached) $ECHO_C" >&6
     1032else
     1033  if test -n "$ac_ct_CXX"; then
     1034  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1035else
     1036  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1037ac_dummy="$PATH"
     1038for ac_dir in $ac_dummy; do
     1039  IFS=$ac_save_IFS
     1040  test -z "$ac_dir" && ac_dir=.
     1041  $as_executable_p "$ac_dir/$ac_word" || continue
     1042ac_cv_prog_ac_ct_CXX="$ac_prog"
     1043echo "$as_me:1043: found $ac_dir/$ac_word" >&5
     1044break
     1045done
     1046
     1047fi
     1048fi
     1049ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1050if test -n "$ac_ct_CXX"; then
     1051  echo "$as_me:1051: result: $ac_ct_CXX" >&5
     1052echo "${ECHO_T}$ac_ct_CXX" >&6
     1053else
     1054  echo "$as_me:1054: result: no" >&5
     1055echo "${ECHO_T}no" >&6
     1056fi
     1057
     1058  test -n "$ac_ct_CXX" && break
     1059done
     1060test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1061
     1062  CXX=$ac_ct_CXX
     1063fi
     1064
     1065cat >conftest.$ac_ext <<_ACEOF
     1066#line 1066 "configure"
     1067#include "confdefs.h"
     1068
     1069int
     1070main ()
     1071{
     1072
     1073  ;
     1074  return 0;
     1075}
     1076_ACEOF
     1077ac_clean_files_save=$ac_clean_files
     1078ac_clean_files="$ac_clean_files a.out a.exe"
     1079# Try to create an executable without -o first, disregard a.out.
     1080# It will help us diagnose broken compiler, and finding out an intuition
     1081# of exeext.
     1082echo "$as_me:1082: checking for C++ compiler default output" >&5
     1083echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
     1084ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1085if { (eval echo "$as_me:1085: \"$ac_link_default\"") >&5
     1086  (eval $ac_link_default) 2>&5
     1087  ac_status=$?
     1088  echo "$as_me:1088: \$? = $ac_status" >&5
     1089  (exit $ac_status); }; then
     1090  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
     1091  case $ac_file in
     1092    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1093    a.out ) # We found the default executable, but exeext='' is most
     1094            # certainly right.
     1095            break;;
     1096    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1097          export ac_cv_exeext
     1098          break;;
     1099    * ) break;;
     1100  esac
     1101done
     1102else
     1103  echo "$as_me: failed program was:" >&5
     1104cat conftest.$ac_ext >&5
     1105{ { echo "$as_me:1105: error: C++ compiler cannot create executables" >&5
     1106echo "$as_me: error: C++ compiler cannot create executables" >&2;}
     1107   { (exit 77); exit 77; }; }
     1108fi
     1109
     1110ac_exeext=$ac_cv_exeext
     1111echo "$as_me:1111: result: $ac_file" >&5
     1112echo "${ECHO_T}$ac_file" >&6
     1113
     1114# Check the compiler produces executables we can run.  If not, either
     1115# the compiler is broken, or we cross compile.
     1116echo "$as_me:1116: checking whether the C++ compiler works" >&5
     1117echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
     1118# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1119# If not cross compiling, check that we can run a simple program.
     1120if test "$cross_compiling" != yes; then
     1121  if { ac_try='./$ac_file'
     1122  { (eval echo "$as_me:1122: \"$ac_try\"") >&5
     1123  (eval $ac_try) 2>&5
     1124  ac_status=$?
     1125  echo "$as_me:1125: \$? = $ac_status" >&5
     1126  (exit $ac_status); }; }; then
     1127    cross_compiling=no
     1128  else
     1129    if test "$cross_compiling" = maybe; then
     1130    cross_compiling=yes
     1131    else
     1132    { { echo "$as_me:1132: error: cannot run C++ compiled programs.
     1133If you meant to cross compile, use \`--host'." >&5
     1134echo "$as_me: error: cannot run C++ compiled programs.
     1135If you meant to cross compile, use \`--host'." >&2;}
     1136   { (exit 1); exit 1; }; }
    5791137    fi
    580   done
    581   IFS="$ac_save_ifs"
    582 fi
    583 fi
    584 CXX="$ac_cv_prog_CXX"
    585 if test -n "$CXX"; then
    586   echo "$ac_t""$CXX" 1>&6
    587 else
    588   echo "$ac_t""no" 1>&6
    589 fi
    590 
    591 test -n "$CXX" && break
     1138  fi
     1139fi
     1140echo "$as_me:1140: result: yes" >&5
     1141echo "${ECHO_T}yes" >&6
     1142
     1143rm -f a.out a.exe conftest$ac_cv_exeext
     1144ac_clean_files=$ac_clean_files_save
     1145# Check the compiler produces executables we can run.  If not, either
     1146# the compiler is broken, or we cross compile.
     1147echo "$as_me:1147: checking whether we are cross compiling" >&5
     1148echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1149echo "$as_me:1149: result: $cross_compiling" >&5
     1150echo "${ECHO_T}$cross_compiling" >&6
     1151
     1152echo "$as_me:1152: checking for executable suffix" >&5
     1153echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
     1154if { (eval echo "$as_me:1154: \"$ac_link\"") >&5
     1155  (eval $ac_link) 2>&5
     1156  ac_status=$?
     1157  echo "$as_me:1157: \$? = $ac_status" >&5
     1158  (exit $ac_status); }; then
     1159  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1160# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1161# work properly (i.e., refer to `conftest.exe'), while it won't with
     1162# `rm'.
     1163for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     1164  case $ac_file in
     1165    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1166    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1167          export ac_cv_exeext
     1168          break;;
     1169    * ) break;;
     1170  esac
    5921171done
    593 test -n "$CXX" || CXX="gcc"
    594 
    595 
    596 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    597 echo "configure:598: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    598 
    599 ac_ext=C
    600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    601 ac_cpp='$CXXCPP $CPPFLAGS'
    602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    603 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    604 cross_compiling=$ac_cv_prog_cxx_cross
    605 
    606 cat > conftest.$ac_ext <<EOF
    607 #line 608 "configure"
    608 #include "confdefs.h"
    609 main(){return(0);}
    610 EOF
    611 if { (eval echo configure:612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    612   ac_cv_prog_cxx_works=yes
    613   # If we can't run a trivial program, we are probably using a cross compiler.
    614   if (./conftest; exit) 2>/dev/null; then
    615     ac_cv_prog_cxx_cross=no
    616   else
    617     ac_cv_prog_cxx_cross=yes
    618   fi
    619 else
    620   echo "configure: failed program was:" >&5
    621   cat conftest.$ac_ext >&5
    622   ac_cv_prog_cxx_works=no
    623 fi
    624 rm -fr conftest*
    625 ac_ext=c
    626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    627 ac_cpp='$CPP $CPPFLAGS'
    628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    629 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    630 cross_compiling=$ac_cv_prog_cc_cross
    631 
    632 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    633 if test $ac_cv_prog_cxx_works = no; then
    634   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    635 fi
    636 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    637 echo "configure:638: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    638 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    639 cross_compiling=$ac_cv_prog_cxx_cross
    640 
    641 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    642 echo "configure:643: checking whether we are using GNU C++" >&5
    643 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    644   echo $ac_n "(cached) $ac_c" 1>&6
    645 else
    646   cat > conftest.C <<EOF
    647 #ifdef __GNUC__
    648   yes;
     1172else
     1173  { { echo "$as_me:1173: error: cannot compute EXEEXT: cannot compile and link" >&5
     1174echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
     1175   { (exit 1); exit 1; }; }
     1176fi
     1177
     1178rm -f conftest$ac_cv_exeext
     1179echo "$as_me:1179: result: $ac_cv_exeext" >&5
     1180echo "${ECHO_T}$ac_cv_exeext" >&6
     1181
     1182rm -f conftest.$ac_ext
     1183EXEEXT=$ac_cv_exeext
     1184ac_exeext=$EXEEXT
     1185echo "$as_me:1185: checking for object suffix" >&5
     1186echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
     1187if test "${ac_cv_objext+set}" = set; then
     1188  echo $ECHO_N "(cached) $ECHO_C" >&6
     1189else
     1190  cat >conftest.$ac_ext <<_ACEOF
     1191#line 1191 "configure"
     1192#include "confdefs.h"
     1193
     1194int
     1195main ()
     1196{
     1197
     1198  ;
     1199  return 0;
     1200}
     1201_ACEOF
     1202rm -f conftest.o conftest.obj
     1203if { (eval echo "$as_me:1203: \"$ac_compile\"") >&5
     1204  (eval $ac_compile) 2>&5
     1205  ac_status=$?
     1206  echo "$as_me:1206: \$? = $ac_status" >&5
     1207  (exit $ac_status); }; then
     1208  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1209  case $ac_file in
     1210    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1211    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1212       break;;
     1213  esac
     1214done
     1215else
     1216  echo "$as_me: failed program was:" >&5
     1217cat conftest.$ac_ext >&5
     1218{ { echo "$as_me:1218: error: cannot compute OBJEXT: cannot compile" >&5
     1219echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
     1220   { (exit 1); exit 1; }; }
     1221fi
     1222
     1223rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1224fi
     1225echo "$as_me:1225: result: $ac_cv_objext" >&5
     1226echo "${ECHO_T}$ac_cv_objext" >&6
     1227OBJEXT=$ac_cv_objext
     1228ac_objext=$OBJEXT
     1229echo "$as_me:1229: checking whether we are using the GNU C++ compiler" >&5
     1230echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1231if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1232  echo $ECHO_N "(cached) $ECHO_C" >&6
     1233else
     1234  cat >conftest.$ac_ext <<_ACEOF
     1235#line 1235 "configure"
     1236#include "confdefs.h"
     1237
     1238int
     1239main ()
     1240{
     1241#ifndef __GNUC__
     1242       choke me
    6491243#endif
    650 EOF
    651 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    652   ac_cv_prog_gxx=yes
    653 else
    654   ac_cv_prog_gxx=no
    655 fi
    656 fi
    657 
    658 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    659 
    660 if test $ac_cv_prog_gxx = yes; then
    661   GXX=yes
    662   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    663   ac_save_CXXFLAGS="$CXXFLAGS"
    664   CXXFLAGS=
    665   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    666 echo "configure:667: checking whether ${CXX-g++} accepts -g" >&5
    667 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    668   echo $ac_n "(cached) $ac_c" 1>&6
    669 else
    670   echo 'void f(){}' > conftest.cc
    671 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     1244
     1245  ;
     1246  return 0;
     1247}
     1248_ACEOF
     1249rm -f conftest.$ac_objext
     1250if { (eval echo "$as_me:1250: \"$ac_compile\"") >&5
     1251  (eval $ac_compile) 2>&5
     1252  ac_status=$?
     1253  echo "$as_me:1253: \$? = $ac_status" >&5
     1254  (exit $ac_status); } &&
     1255         { ac_try='test -s conftest.$ac_objext'
     1256  { (eval echo "$as_me:1256: \"$ac_try\"") >&5
     1257  (eval $ac_try) 2>&5
     1258  ac_status=$?
     1259  echo "$as_me:1259: \$? = $ac_status" >&5
     1260  (exit $ac_status); }; }; then
     1261  ac_compiler_gnu=yes
     1262else
     1263  echo "$as_me: failed program was:" >&5
     1264cat conftest.$ac_ext >&5
     1265ac_compiler_gnu=no
     1266fi
     1267rm -f conftest.$ac_objext conftest.$ac_ext
     1268ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1269
     1270fi
     1271echo "$as_me:1271: result: $ac_cv_cxx_compiler_gnu" >&5
     1272echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1273GXX=`test $ac_compiler_gnu = yes && echo yes`
     1274ac_test_CXXFLAGS=${CXXFLAGS+set}
     1275ac_save_CXXFLAGS=$CXXFLAGS
     1276CXXFLAGS="-g"
     1277echo "$as_me:1277: checking whether $CXX accepts -g" >&5
     1278echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1279if test "${ac_cv_prog_cxx_g+set}" = set; then
     1280  echo $ECHO_N "(cached) $ECHO_C" >&6
     1281else
     1282  cat >conftest.$ac_ext <<_ACEOF
     1283#line 1283 "configure"
     1284#include "confdefs.h"
     1285
     1286int
     1287main ()
     1288{
     1289
     1290  ;
     1291  return 0;
     1292}
     1293_ACEOF
     1294rm -f conftest.$ac_objext
     1295if { (eval echo "$as_me:1295: \"$ac_compile\"") >&5
     1296  (eval $ac_compile) 2>&5
     1297  ac_status=$?
     1298  echo "$as_me:1298: \$? = $ac_status" >&5
     1299  (exit $ac_status); } &&
     1300         { ac_try='test -s conftest.$ac_objext'
     1301  { (eval echo "$as_me:1301: \"$ac_try\"") >&5
     1302  (eval $ac_try) 2>&5
     1303  ac_status=$?
     1304  echo "$as_me:1304: \$? = $ac_status" >&5
     1305  (exit $ac_status); }; }; then
    6721306  ac_cv_prog_cxx_g=yes
    6731307else
    674   ac_cv_prog_cxx_g=no
    675 fi
    676 rm -f conftest*
    677 
    678 fi
    679 
    680 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    681   if test "$ac_test_CXXFLAGS" = set; then
    682     CXXFLAGS="$ac_save_CXXFLAGS"
    683   elif test $ac_cv_prog_cxx_g = yes; then
     1308  echo "$as_me: failed program was:" >&5
     1309cat conftest.$ac_ext >&5
     1310ac_cv_prog_cxx_g=no
     1311fi
     1312rm -f conftest.$ac_objext conftest.$ac_ext
     1313fi
     1314echo "$as_me:1314: result: $ac_cv_prog_cxx_g" >&5
     1315echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     1316if test "$ac_test_CXXFLAGS" = set; then
     1317  CXXFLAGS=$ac_save_CXXFLAGS
     1318elif test $ac_cv_prog_cxx_g = yes; then
     1319  if test "$GXX" = yes; then
    6841320    CXXFLAGS="-g -O2"
    6851321  else
     1322    CXXFLAGS="-g"
     1323  fi
     1324else
     1325  if test "$GXX" = yes; then
    6861326    CXXFLAGS="-O2"
     1327  else
     1328    CXXFLAGS=
    6871329  fi
    688 else
    689   GXX=
    690   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    691 fi
     1330fi
     1331for ac_declaration in \
     1332   ''\
     1333   '#include <stdlib.h>' \
     1334   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1335   'extern "C" void std::exit (int); using std::exit;' \
     1336   'extern "C" void exit (int) throw ();' \
     1337   'extern "C" void exit (int);' \
     1338   'void exit (int);'
     1339do
     1340  cat >conftest.$ac_ext <<_ACEOF
     1341#line 1341 "configure"
     1342#include "confdefs.h"
     1343#include <stdlib.h>
     1344$ac_declaration
     1345int
     1346main ()
     1347{
     1348exit (42);
     1349  ;
     1350  return 0;
     1351}
     1352_ACEOF
     1353rm -f conftest.$ac_objext
     1354if { (eval echo "$as_me:1354: \"$ac_compile\"") >&5
     1355  (eval $ac_compile) 2>&5
     1356  ac_status=$?
     1357  echo "$as_me:1357: \$? = $ac_status" >&5
     1358  (exit $ac_status); } &&
     1359         { ac_try='test -s conftest.$ac_objext'
     1360  { (eval echo "$as_me:1360: \"$ac_try\"") >&5
     1361  (eval $ac_try) 2>&5
     1362  ac_status=$?
     1363  echo "$as_me:1363: \$? = $ac_status" >&5
     1364  (exit $ac_status); }; }; then
     1365  :
     1366else
     1367  echo "$as_me: failed program was:" >&5
     1368cat conftest.$ac_ext >&5
     1369continue
     1370fi
     1371rm -f conftest.$ac_objext conftest.$ac_ext
     1372  cat >conftest.$ac_ext <<_ACEOF
     1373#line 1373 "configure"
     1374#include "confdefs.h"
     1375$ac_declaration
     1376int
     1377main ()
     1378{
     1379exit (42);
     1380  ;
     1381  return 0;
     1382}
     1383_ACEOF
     1384rm -f conftest.$ac_objext
     1385if { (eval echo "$as_me:1385: \"$ac_compile\"") >&5
     1386  (eval $ac_compile) 2>&5
     1387  ac_status=$?
     1388  echo "$as_me:1388: \$? = $ac_status" >&5
     1389  (exit $ac_status); } &&
     1390         { ac_try='test -s conftest.$ac_objext'
     1391  { (eval echo "$as_me:1391: \"$ac_try\"") >&5
     1392  (eval $ac_try) 2>&5
     1393  ac_status=$?
     1394  echo "$as_me:1394: \$? = $ac_status" >&5
     1395  (exit $ac_status); }; }; then
     1396  break
     1397else
     1398  echo "$as_me: failed program was:" >&5
     1399cat conftest.$ac_ext >&5
     1400fi
     1401rm -f conftest.$ac_objext conftest.$ac_ext
     1402done
     1403echo '#ifdef __cplusplus' >>confdefs.h
     1404echo $ac_declaration      >>confdefs.h
     1405echo '#endif'             >>confdefs.h
     1406
     1407ac_ext=c
     1408ac_cpp='$CPP $CPPFLAGS'
     1409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1411ac_compiler_gnu=$ac_cv_c_compiler_gnu
    6921412
    6931413for ac_prog in mawk gawk nawk awk
    6941414do
    695 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1415  # Extract the first word of "$ac_prog", so it can be a program name with args.
    6961416set dummy $ac_prog; ac_word=$2
    697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    698 echo "configure:699: checking for $ac_word" >&5
    699 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    700   echo $ac_n "(cached) $ac_c" 1>&6
     1417echo "$as_me:1417: checking for $ac_word" >&5
     1418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1419if test "${ac_cv_prog_AWK+set}" = set; then
     1420  echo $ECHO_N "(cached) $ECHO_C" >&6
    7011421else
    7021422  if test -n "$AWK"; then
    7031423  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    7041424else
    705   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    706   for ac_dir in $PATH; do
    707     test -z "$ac_dir" && ac_dir=.
    708     if test -f $ac_dir/$ac_word; then
    709       ac_cv_prog_AWK="$ac_prog"
    710       break
    711     fi
    712   done
    713   IFS="$ac_save_ifs"
    714 fi
    715 fi
    716 AWK="$ac_cv_prog_AWK"
     1425  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1426ac_dummy="$PATH"
     1427for ac_dir in $ac_dummy; do
     1428  IFS=$ac_save_IFS
     1429  test -z "$ac_dir" && ac_dir=.
     1430  $as_executable_p "$ac_dir/$ac_word" || continue
     1431ac_cv_prog_AWK="$ac_prog"
     1432echo "$as_me:1432: found $ac_dir/$ac_word" >&5
     1433break
     1434done
     1435
     1436fi
     1437fi
     1438AWK=$ac_cv_prog_AWK
    7171439if test -n "$AWK"; then
    718   echo "$ac_t""$AWK" 1>&6
    719 else
    720   echo "$ac_t""no" 1>&6
    721 fi
    722 
    723 test -n "$AWK" && break
     1440  echo "$as_me:1440: result: $AWK" >&5
     1441echo "${ECHO_T}$AWK" >&6
     1442else
     1443  echo "$as_me:1443: result: no" >&5
     1444echo "${ECHO_T}no" >&6
     1445fi
     1446
     1447  test -n "$AWK" && break
    7241448done
    7251449
    7261450for ac_prog in 'bison -y' byacc
    7271451do
    728 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1452  # Extract the first word of "$ac_prog", so it can be a program name with args.
    7291453set dummy $ac_prog; ac_word=$2
    730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    731 echo "configure:732: checking for $ac_word" >&5
    732 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    733   echo $ac_n "(cached) $ac_c" 1>&6
     1454echo "$as_me:1454: checking for $ac_word" >&5
     1455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1456if test "${ac_cv_prog_YACC+set}" = set; then
     1457  echo $ECHO_N "(cached) $ECHO_C" >&6
    7341458else
    7351459  if test -n "$YACC"; then
    7361460  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    7371461else
    738   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    739   for ac_dir in $PATH; do
    740     test -z "$ac_dir" && ac_dir=.
    741     if test -f $ac_dir/$ac_word; then
    742       ac_cv_prog_YACC="$ac_prog"
    743       break
    744     fi
    745   done
    746   IFS="$ac_save_ifs"
    747 fi
    748 fi
    749 YACC="$ac_cv_prog_YACC"
     1462  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1463ac_dummy="$PATH"
     1464for ac_dir in $ac_dummy; do
     1465  IFS=$ac_save_IFS
     1466  test -z "$ac_dir" && ac_dir=.
     1467  $as_executable_p "$ac_dir/$ac_word" || continue
     1468ac_cv_prog_YACC="$ac_prog"
     1469echo "$as_me:1469: found $ac_dir/$ac_word" >&5
     1470break
     1471done
     1472
     1473fi
     1474fi
     1475YACC=$ac_cv_prog_YACC
    7501476if test -n "$YACC"; then
    751   echo "$ac_t""$YACC" 1>&6
    752 else
    753   echo "$ac_t""no" 1>&6
    754 fi
    755 
    756 test -n "$YACC" && break
     1477  echo "$as_me:1477: result: $YACC" >&5
     1478echo "${ECHO_T}$YACC" >&6
     1479else
     1480  echo "$as_me:1480: result: no" >&5
     1481echo "${ECHO_T}no" >&6
     1482fi
     1483
     1484  test -n "$YACC" && break
    7571485done
    7581486test -n "$YACC" || YACC="yacc"
    7591487
    760 # Extract the first word of "gcc", so it can be a program name with args.
    761 set dummy gcc; ac_word=$2
    762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    763 echo "configure:764: checking for $ac_word" >&5
    764 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    765   echo $ac_n "(cached) $ac_c" 1>&6
     1488ac_ext=c
     1489ac_cpp='$CPP $CPPFLAGS'
     1490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1492ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1493if test -n "$ac_tool_prefix"; then
     1494  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1495set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1496echo "$as_me:1496: checking for $ac_word" >&5
     1497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1498if test "${ac_cv_prog_CC+set}" = set; then
     1499  echo $ECHO_N "(cached) $ECHO_C" >&6
    7661500else
    7671501  if test -n "$CC"; then
    7681502  ac_cv_prog_CC="$CC" # Let the user override the test.
    7691503else
    770   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    771   for ac_dir in $PATH; do
    772     test -z "$ac_dir" && ac_dir=.
    773     if test -f $ac_dir/$ac_word; then
    774       ac_cv_prog_CC="gcc"
    775       break
    776     fi
    777   done
    778   IFS="$ac_save_ifs"
    779 fi
    780 fi
    781 CC="$ac_cv_prog_CC"
     1504  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1505ac_dummy="$PATH"
     1506for ac_dir in $ac_dummy; do
     1507  IFS=$ac_save_IFS
     1508  test -z "$ac_dir" && ac_dir=.
     1509  $as_executable_p "$ac_dir/$ac_word" || continue
     1510ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1511echo "$as_me:1511: found $ac_dir/$ac_word" >&5
     1512break
     1513done
     1514
     1515fi
     1516fi
     1517CC=$ac_cv_prog_CC
    7821518if test -n "$CC"; then
    783   echo "$ac_t""$CC" 1>&6
    784 else
    785   echo "$ac_t""no" 1>&6
    786 fi
    787 
     1519  echo "$as_me:1519: result: $CC" >&5
     1520echo "${ECHO_T}$CC" >&6
     1521else
     1522  echo "$as_me:1522: result: no" >&5
     1523echo "${ECHO_T}no" >&6
     1524fi
     1525
     1526fi
     1527if test -z "$ac_cv_prog_CC"; then
     1528  ac_ct_CC=$CC
     1529  # Extract the first word of "gcc", so it can be a program name with args.
     1530set dummy gcc; ac_word=$2
     1531echo "$as_me:1531: checking for $ac_word" >&5
     1532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1533if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1534  echo $ECHO_N "(cached) $ECHO_C" >&6
     1535else
     1536  if test -n "$ac_ct_CC"; then
     1537  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1538else
     1539  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1540ac_dummy="$PATH"
     1541for ac_dir in $ac_dummy; do
     1542  IFS=$ac_save_IFS
     1543  test -z "$ac_dir" && ac_dir=.
     1544  $as_executable_p "$ac_dir/$ac_word" || continue
     1545ac_cv_prog_ac_ct_CC="gcc"
     1546echo "$as_me:1546: found $ac_dir/$ac_word" >&5
     1547break
     1548done
     1549
     1550fi
     1551fi
     1552ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1553if test -n "$ac_ct_CC"; then
     1554  echo "$as_me:1554: result: $ac_ct_CC" >&5
     1555echo "${ECHO_T}$ac_ct_CC" >&6
     1556else
     1557  echo "$as_me:1557: result: no" >&5
     1558echo "${ECHO_T}no" >&6
     1559fi
     1560
     1561  CC=$ac_ct_CC
     1562else
     1563  CC="$ac_cv_prog_CC"
     1564fi
     1565
     1566if test -z "$CC"; then
     1567  if test -n "$ac_tool_prefix"; then
     1568  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1569set dummy ${ac_tool_prefix}cc; ac_word=$2
     1570echo "$as_me:1570: checking for $ac_word" >&5
     1571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1572if test "${ac_cv_prog_CC+set}" = set; then
     1573  echo $ECHO_N "(cached) $ECHO_C" >&6
     1574else
     1575  if test -n "$CC"; then
     1576  ac_cv_prog_CC="$CC" # Let the user override the test.
     1577else
     1578  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1579ac_dummy="$PATH"
     1580for ac_dir in $ac_dummy; do
     1581  IFS=$ac_save_IFS
     1582  test -z "$ac_dir" && ac_dir=.
     1583  $as_executable_p "$ac_dir/$ac_word" || continue
     1584ac_cv_prog_CC="${ac_tool_prefix}cc"
     1585echo "$as_me:1585: found $ac_dir/$ac_word" >&5
     1586break
     1587done
     1588
     1589fi
     1590fi
     1591CC=$ac_cv_prog_CC
     1592if test -n "$CC"; then
     1593  echo "$as_me:1593: result: $CC" >&5
     1594echo "${ECHO_T}$CC" >&6
     1595else
     1596  echo "$as_me:1596: result: no" >&5
     1597echo "${ECHO_T}no" >&6
     1598fi
     1599
     1600fi
     1601if test -z "$ac_cv_prog_CC"; then
     1602  ac_ct_CC=$CC
     1603  # Extract the first word of "cc", so it can be a program name with args.
     1604set dummy cc; ac_word=$2
     1605echo "$as_me:1605: checking for $ac_word" >&5
     1606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1607if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1608  echo $ECHO_N "(cached) $ECHO_C" >&6
     1609else
     1610  if test -n "$ac_ct_CC"; then
     1611  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1612else
     1613  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1614ac_dummy="$PATH"
     1615for ac_dir in $ac_dummy; do
     1616  IFS=$ac_save_IFS
     1617  test -z "$ac_dir" && ac_dir=.
     1618  $as_executable_p "$ac_dir/$ac_word" || continue
     1619ac_cv_prog_ac_ct_CC="cc"
     1620echo "$as_me:1620: found $ac_dir/$ac_word" >&5
     1621break
     1622done
     1623
     1624fi
     1625fi
     1626ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1627if test -n "$ac_ct_CC"; then
     1628  echo "$as_me:1628: result: $ac_ct_CC" >&5
     1629echo "${ECHO_T}$ac_ct_CC" >&6
     1630else
     1631  echo "$as_me:1631: result: no" >&5
     1632echo "${ECHO_T}no" >&6
     1633fi
     1634
     1635  CC=$ac_ct_CC
     1636else
     1637  CC="$ac_cv_prog_CC"
     1638fi
     1639
     1640fi
    7881641if test -z "$CC"; then
    7891642  # Extract the first word of "cc", so it can be a program name with args.
    7901643set dummy cc; ac_word=$2
    791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    792 echo "configure:793: checking for $ac_word" >&5
    793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    794   echo $ac_n "(cached) $ac_c" 1>&6
     1644echo "$as_me:1644: checking for $ac_word" >&5
     1645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1646if test "${ac_cv_prog_CC+set}" = set; then
     1647  echo $ECHO_N "(cached) $ECHO_C" >&6
    7951648else
    7961649  if test -n "$CC"; then
    7971650  ac_cv_prog_CC="$CC" # Let the user override the test.
    7981651else
    799   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    8001652  ac_prog_rejected=no
    801   for ac_dir in $PATH; do
    802     test -z "$ac_dir" && ac_dir=.
    803     if test -f $ac_dir/$ac_word; then
    804       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    805         ac_prog_rejected=yes
    806     continue
    807       fi
    808       ac_cv_prog_CC="cc"
    809       break
    810     fi
    811   done
    812   IFS="$ac_save_ifs"
     1653  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1654ac_dummy="$PATH"
     1655for ac_dir in $ac_dummy; do
     1656  IFS=$ac_save_IFS
     1657  test -z "$ac_dir" && ac_dir=.
     1658  $as_executable_p "$ac_dir/$ac_word" || continue
     1659if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     1660  ac_prog_rejected=yes
     1661  continue
     1662fi
     1663ac_cv_prog_CC="cc"
     1664echo "$as_me:1664: found $ac_dir/$ac_word" >&5
     1665break
     1666done
     1667
    8131668if test $ac_prog_rejected = yes; then
    8141669  # We found a bogon in the path, so make sure we never use it.
    8151670  set dummy $ac_cv_prog_CC
    8161671  shift
    817   if test $# -gt 0; then
     1672  if test $# != 0; then
    8181673    # We chose a different compiler from the bogus one.
    8191674    # However, it has the same basename, so the bogon will be chosen
    8201675    # first if we set CC to just the basename; use the full file name.
    8211676    shift
    822     set dummy "$ac_dir/$ac_word" "$@"
     1677    set dummy "$ac_dir/$ac_word" ${1+"$@"}
    8231678    shift
    8241679    ac_cv_prog_CC="$@"
     
    8271682fi
    8281683fi
    829 CC="$ac_cv_prog_CC"
     1684CC=$ac_cv_prog_CC
    8301685if test -n "$CC"; then
    831   echo "$ac_t""$CC" 1>&6
    832 else
    833   echo "$ac_t""no" 1>&6
    834 fi
    835 
    836   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    837 fi
    838 
    839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    841 
    842 ac_ext=c
    843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    844 ac_cpp='$CPP $CPPFLAGS'
    845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    846 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    847 cross_compiling=$ac_cv_prog_cc_cross
    848 
    849 cat > conftest.$ac_ext <<EOF
    850 #line 851 "configure"
    851 #include "confdefs.h"
    852 main(){return(0);}
    853 EOF
    854 if { (eval echo configure:855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    855   ac_cv_prog_cc_works=yes
    856   # If we can't run a trivial program, we are probably using a cross compiler.
    857   if (./conftest; exit) 2>/dev/null; then
    858     ac_cv_prog_cc_cross=no
    859   else
    860     ac_cv_prog_cc_cross=yes
    861   fi
    862 else
    863   echo "configure: failed program was:" >&5
    864   cat conftest.$ac_ext >&5
    865   ac_cv_prog_cc_works=no
    866 fi
    867 rm -fr conftest*
    868 
    869 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    870 if test $ac_cv_prog_cc_works = no; then
    871   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    872 fi
    873 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    874 echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    875 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    876 cross_compiling=$ac_cv_prog_cc_cross
    877 
    878 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    879 echo "configure:880: checking whether we are using GNU C" >&5
    880 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    881   echo $ac_n "(cached) $ac_c" 1>&6
    882 else
    883   cat > conftest.c <<EOF
    884 #ifdef __GNUC__
    885   yes;
     1686  echo "$as_me:1686: result: $CC" >&5
     1687echo "${ECHO_T}$CC" >&6
     1688else
     1689  echo "$as_me:1689: result: no" >&5
     1690echo "${ECHO_T}no" >&6
     1691fi
     1692
     1693fi
     1694if test -z "$CC"; then
     1695  if test -n "$ac_tool_prefix"; then
     1696  for ac_prog in cl
     1697  do
     1698    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1700echo "$as_me:1700: checking for $ac_word" >&5
     1701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1702if test "${ac_cv_prog_CC+set}" = set; then
     1703  echo $ECHO_N "(cached) $ECHO_C" >&6
     1704else
     1705  if test -n "$CC"; then
     1706  ac_cv_prog_CC="$CC" # Let the user override the test.
     1707else
     1708  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1709ac_dummy="$PATH"
     1710for ac_dir in $ac_dummy; do
     1711  IFS=$ac_save_IFS
     1712  test -z "$ac_dir" && ac_dir=.
     1713  $as_executable_p "$ac_dir/$ac_word" || continue
     1714ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1715echo "$as_me:1715: found $ac_dir/$ac_word" >&5
     1716break
     1717done
     1718
     1719fi
     1720fi
     1721CC=$ac_cv_prog_CC
     1722if test -n "$CC"; then
     1723  echo "$as_me:1723: result: $CC" >&5
     1724echo "${ECHO_T}$CC" >&6
     1725else
     1726  echo "$as_me:1726: result: no" >&5
     1727echo "${ECHO_T}no" >&6
     1728fi
     1729
     1730    test -n "$CC" && break
     1731  done
     1732fi
     1733if test -z "$CC"; then
     1734  ac_ct_CC=$CC
     1735  for ac_prog in cl
     1736do
     1737  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1738set dummy $ac_prog; ac_word=$2
     1739echo "$as_me:1739: checking for $ac_word" >&5
     1740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1741if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1742  echo $ECHO_N "(cached) $ECHO_C" >&6
     1743else
     1744  if test -n "$ac_ct_CC"; then
     1745  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1746else
     1747  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1748ac_dummy="$PATH"
     1749for ac_dir in $ac_dummy; do
     1750  IFS=$ac_save_IFS
     1751  test -z "$ac_dir" && ac_dir=.
     1752  $as_executable_p "$ac_dir/$ac_word" || continue
     1753ac_cv_prog_ac_ct_CC="$ac_prog"
     1754echo "$as_me:1754: found $ac_dir/$ac_word" >&5
     1755break
     1756done
     1757
     1758fi
     1759fi
     1760ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1761if test -n "$ac_ct_CC"; then
     1762  echo "$as_me:1762: result: $ac_ct_CC" >&5
     1763echo "${ECHO_T}$ac_ct_CC" >&6
     1764else
     1765  echo "$as_me:1765: result: no" >&5
     1766echo "${ECHO_T}no" >&6
     1767fi
     1768
     1769  test -n "$ac_ct_CC" && break
     1770done
     1771
     1772  CC=$ac_ct_CC
     1773fi
     1774
     1775fi
     1776
     1777test -z "$CC" && { { echo "$as_me:1777: error: no acceptable cc found in \$PATH" >&5
     1778echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
     1779   { (exit 1); exit 1; }; }
     1780
     1781echo "$as_me:1781: checking whether we are using the GNU C compiler" >&5
     1782echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1783if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1784  echo $ECHO_N "(cached) $ECHO_C" >&6
     1785else
     1786  cat >conftest.$ac_ext <<_ACEOF
     1787#line 1787 "configure"
     1788#include "confdefs.h"
     1789
     1790int
     1791main ()
     1792{
     1793#ifndef __GNUC__
     1794       choke me
    8861795#endif
    887 EOF
    888 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    889   ac_cv_prog_gcc=yes
    890 else
    891   ac_cv_prog_gcc=no
    892 fi
    893 fi
    894 
    895 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    896 
    897 if test $ac_cv_prog_gcc = yes; then
    898   GCC=yes
    899   ac_test_CFLAGS="${CFLAGS+set}"
    900   ac_save_CFLAGS="$CFLAGS"
    901   CFLAGS=
    902   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    903 echo "configure:904: checking whether ${CC-cc} accepts -g" >&5
    904 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    905   echo $ac_n "(cached) $ac_c" 1>&6
    906 else
    907   echo 'void f(){}' > conftest.c
    908 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1796
     1797  ;
     1798  return 0;
     1799}
     1800_ACEOF
     1801rm -f conftest.$ac_objext
     1802if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5
     1803  (eval $ac_compile) 2>&5
     1804  ac_status=$?
     1805  echo "$as_me:1805: \$? = $ac_status" >&5
     1806  (exit $ac_status); } &&
     1807         { ac_try='test -s conftest.$ac_objext'
     1808  { (eval echo "$as_me:1808: \"$ac_try\"") >&5
     1809  (eval $ac_try) 2>&5
     1810  ac_status=$?
     1811  echo "$as_me:1811: \$? = $ac_status" >&5
     1812  (exit $ac_status); }; }; then
     1813  ac_compiler_gnu=yes
     1814else
     1815  echo "$as_me: failed program was:" >&5
     1816cat conftest.$ac_ext >&5
     1817ac_compiler_gnu=no
     1818fi
     1819rm -f conftest.$ac_objext conftest.$ac_ext
     1820ac_cv_c_compiler_gnu=$ac_compiler_gnu
     1821
     1822fi
     1823echo "$as_me:1823: result: $ac_cv_c_compiler_gnu" >&5
     1824echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     1825GCC=`test $ac_compiler_gnu = yes && echo yes`
     1826ac_test_CFLAGS=${CFLAGS+set}
     1827ac_save_CFLAGS=$CFLAGS
     1828CFLAGS="-g"
     1829echo "$as_me:1829: checking whether $CC accepts -g" >&5
     1830echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     1831if test "${ac_cv_prog_cc_g+set}" = set; then
     1832  echo $ECHO_N "(cached) $ECHO_C" >&6
     1833else
     1834  cat >conftest.$ac_ext <<_ACEOF
     1835#line 1835 "configure"
     1836#include "confdefs.h"
     1837
     1838int
     1839main ()
     1840{
     1841
     1842  ;
     1843  return 0;
     1844}
     1845_ACEOF
     1846rm -f conftest.$ac_objext
     1847if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5
     1848  (eval $ac_compile) 2>&5
     1849  ac_status=$?
     1850  echo "$as_me:1850: \$? = $ac_status" >&5
     1851  (exit $ac_status); } &&
     1852         { ac_try='test -s conftest.$ac_objext'
     1853  { (eval echo "$as_me:1853: \"$ac_try\"") >&5
     1854  (eval $ac_try) 2>&5
     1855  ac_status=$?
     1856  echo "$as_me:1856: \$? = $ac_status" >&5
     1857  (exit $ac_status); }; }; then
    9091858  ac_cv_prog_cc_g=yes
    9101859else
    911   ac_cv_prog_cc_g=no
    912 fi
    913 rm -f conftest*
    914 
    915 fi
    916 
    917 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    918   if test "$ac_test_CFLAGS" = set; then
    919     CFLAGS="$ac_save_CFLAGS"
    920   elif test $ac_cv_prog_cc_g = yes; then
     1860  echo "$as_me: failed program was:" >&5
     1861cat conftest.$ac_ext >&5
     1862ac_cv_prog_cc_g=no
     1863fi
     1864rm -f conftest.$ac_objext conftest.$ac_ext
     1865fi
     1866echo "$as_me:1866: result: $ac_cv_prog_cc_g" >&5
     1867echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     1868if test "$ac_test_CFLAGS" = set; then
     1869  CFLAGS=$ac_save_CFLAGS
     1870elif test $ac_cv_prog_cc_g = yes; then
     1871  if test "$GCC" = yes; then
    9211872    CFLAGS="-g -O2"
    9221873  else
     1874    CFLAGS="-g"
     1875  fi
     1876else
     1877  if test "$GCC" = yes; then
    9231878    CFLAGS="-O2"
     1879  else
     1880    CFLAGS=
    9241881  fi
    925 else
    926   GCC=
    927   test "${CFLAGS+set}" = set || CFLAGS="-g"
    928 fi
     1882fi
     1883# Some people use a C++ compiler to compile C.  Since we use `exit',
     1884# in C++ we need to declare it.  In case someone uses the same compiler
     1885# for both compiling C and C++ we need to have the C++ compiler decide
     1886# the declaration of exit, since it's the most demanding environment.
     1887cat >conftest.$ac_ext <<_ACEOF
     1888#ifndef __cplusplus
     1889  choke me
     1890#endif
     1891_ACEOF
     1892rm -f conftest.$ac_objext
     1893if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5
     1894  (eval $ac_compile) 2>&5
     1895  ac_status=$?
     1896  echo "$as_me:1896: \$? = $ac_status" >&5
     1897  (exit $ac_status); } &&
     1898         { ac_try='test -s conftest.$ac_objext'
     1899  { (eval echo "$as_me:1899: \"$ac_try\"") >&5
     1900  (eval $ac_try) 2>&5
     1901  ac_status=$?
     1902  echo "$as_me:1902: \$? = $ac_status" >&5
     1903  (exit $ac_status); }; }; then
     1904  for ac_declaration in \
     1905   ''\
     1906   '#include <stdlib.h>' \
     1907   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1908   'extern "C" void std::exit (int); using std::exit;' \
     1909   'extern "C" void exit (int) throw ();' \
     1910   'extern "C" void exit (int);' \
     1911   'void exit (int);'
     1912do
     1913  cat >conftest.$ac_ext <<_ACEOF
     1914#line 1914 "configure"
     1915#include "confdefs.h"
     1916#include <stdlib.h>
     1917$ac_declaration
     1918int
     1919main ()
     1920{
     1921exit (42);
     1922  ;
     1923  return 0;
     1924}
     1925_ACEOF
     1926rm -f conftest.$ac_objext
     1927if { (eval echo "$as_me:1927: \"$ac_compile\"") >&5
     1928  (eval $ac_compile) 2>&5
     1929  ac_status=$?
     1930  echo "$as_me:1930: \$? = $ac_status" >&5
     1931  (exit $ac_status); } &&
     1932         { ac_try='test -s conftest.$ac_objext'
     1933  { (eval echo "$as_me:1933: \"$ac_try\"") >&5
     1934  (eval $ac_try) 2>&5
     1935  ac_status=$?
     1936  echo "$as_me:1936: \$? = $ac_status" >&5
     1937  (exit $ac_status); }; }; then
     1938  :
     1939else
     1940  echo "$as_me: failed program was:" >&5
     1941cat conftest.$ac_ext >&5
     1942continue
     1943fi
     1944rm -f conftest.$ac_objext conftest.$ac_ext
     1945  cat >conftest.$ac_ext <<_ACEOF
     1946#line 1946 "configure"
     1947#include "confdefs.h"
     1948$ac_declaration
     1949int
     1950main ()
     1951{
     1952exit (42);
     1953  ;
     1954  return 0;
     1955}
     1956_ACEOF
     1957rm -f conftest.$ac_objext
     1958if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
     1959  (eval $ac_compile) 2>&5
     1960  ac_status=$?
     1961  echo "$as_me:1961: \$? = $ac_status" >&5
     1962  (exit $ac_status); } &&
     1963         { ac_try='test -s conftest.$ac_objext'
     1964  { (eval echo "$as_me:1964: \"$ac_try\"") >&5
     1965  (eval $ac_try) 2>&5
     1966  ac_status=$?
     1967  echo "$as_me:1967: \$? = $ac_status" >&5
     1968  (exit $ac_status); }; }; then
     1969  break
     1970else
     1971  echo "$as_me: failed program was:" >&5
     1972cat conftest.$ac_ext >&5
     1973fi
     1974rm -f conftest.$ac_objext conftest.$ac_ext
     1975done
     1976echo '#ifdef __cplusplus' >>confdefs.h
     1977echo $ac_declaration      >>confdefs.h
     1978echo '#endif'             >>confdefs.h
     1979
     1980else
     1981  echo "$as_me: failed program was:" >&5
     1982cat conftest.$ac_ext >&5
     1983fi
     1984rm -f conftest.$ac_objext conftest.$ac_ext
     1985ac_ext=c
     1986ac_cpp='$CPP $CPPFLAGS'
     1987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1989ac_compiler_gnu=$ac_cv_c_compiler_gnu
    9291990
    9301991ac_aux_dir=
     
    9381999    ac_install_sh="$ac_aux_dir/install.sh -c"
    9392000    break
     2001  elif test -f $ac_dir/shtool; then
     2002    ac_aux_dir=$ac_dir
     2003    ac_install_sh="$ac_aux_dir/shtool install -c"
     2004    break
    9402005  fi
    9412006done
    9422007if test -z "$ac_aux_dir"; then
    943   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    944 fi
    945 ac_config_guess=$ac_aux_dir/config.guess
    946 ac_config_sub=$ac_aux_dir/config.sub
    947 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     2008  { { echo "$as_me:2008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2009echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2010   { (exit 1); exit 1; }; }
     2011fi
     2012ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2013ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2014ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    9482015
    9492016# Find a good install program.  We prefer a C program (faster),
     
    9542021# IRIX /sbin/install
    9552022# AIX /bin/install
     2023# AmigaOS /C/install, which installs bootblocks on floppy discs
     2024# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    9562025# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    9572026# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    9582027# ./install, which can be erroneously created by make from ./install.sh.
    959 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    960 echo "configure:961: checking for a BSD compatible install" >&5
     2028echo "$as_me:2028: checking for a BSD compatible install" >&5
     2029echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    9612030if test -z "$INSTALL"; then
    962 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    963   echo $ac_n "(cached) $ac_c" 1>&6
    964 else
    965     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
     2031if test "${ac_cv_path_install+set}" = set; then
     2032  echo $ECHO_N "(cached) $ECHO_C" >&6
     2033else
     2034    ac_save_IFS=$IFS; IFS=$ac_path_separator
    9662035  for ac_dir in $PATH; do
     2036    IFS=$ac_save_IFS
    9672037    # Account for people who put trailing slashes in PATH elements.
    968     case "$ac_dir/" in
    969     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     2038    case $ac_dir/ in
     2039    / | ./ | .// | /cC/* \
     2040    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
     2041    | /usr/ucb/* ) ;;
    9702042    *)
    9712043      # OSF1 and SCO ODT 3.0 have their own names for install.
    972       for ac_prog in ginstall installbsd scoinst install; do
    973         if test -f $ac_dir/$ac_prog; then
     2044      # Don't use installbsd from OSF since it installs stuff as root
     2045      # by default.
     2046      for ac_prog in ginstall scoinst install; do
     2047        if $as_executable_p "$ac_dir/$ac_prog"; then
    9742048      if test $ac_prog = install &&
    975             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     2049            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    9762050        # AIX install.  It has an incompatible calling convention.
    977         # OSF/1 installbsd also uses dspmsg, but is usable.
     2051        :
     2052      elif test $ac_prog = install &&
     2053        grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
     2054        # program-specific install script used by HP pwplus--don't use.
    9782055        :
    9792056      else
     
    9862063    esac
    9872064  done
    988   IFS="$ac_save_IFS"
    9892065
    9902066fi
    9912067  if test "${ac_cv_path_install+set}" = set; then
    992     INSTALL="$ac_cv_path_install"
     2068    INSTALL=$ac_cv_path_install
    9932069  else
    9942070    # As a last resort, use the slow shell script.  We don't cache a
     
    9962072    # break other packages using the cache if that directory is
    9972073    # removed, or if the path is relative.
    998     INSTALL="$ac_install_sh"
     2074    INSTALL=$ac_install_sh
    9992075  fi
    10002076fi
    1001 echo "$ac_t""$INSTALL" 1>&6
     2077echo "$as_me:2077: result: $INSTALL" >&5
     2078echo "${ECHO_T}$INSTALL" >&6
    10022079
    10032080# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    10052082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    10062083
     2084test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     2085
    10072086test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    10082087
    1009 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1010 echo "configure:1011: checking whether ln -s works" >&5
    1011 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1012   echo $ac_n "(cached) $ac_c" 1>&6
    1013 else
    1014   rm -f conftestdata
    1015 if ln -s X conftestdata 2>/dev/null
    1016 then
    1017   rm -f conftestdata
    1018   ac_cv_prog_LN_S="ln -s"
    1019 else
    1020   ac_cv_prog_LN_S=ln
    1021 fi
    1022 fi
    1023 LN_S="$ac_cv_prog_LN_S"
    1024 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1025   echo "$ac_t""yes" 1>&6
    1026 else
    1027   echo "$ac_t""no" 1>&6
    1028 fi
    1029 
    1030 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1031 echo "configure:1032: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1032 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1033 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1034   echo $ac_n "(cached) $ac_c" 1>&6
    1035 else
    1036   cat > conftestmake <<\EOF
     2088echo "$as_me:2088: checking whether ln -s works" >&5
     2089echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2090LN_S=$as_ln_s
     2091if test "$LN_S" = "ln -s"; then
     2092  echo "$as_me:2092: result: yes" >&5
     2093echo "${ECHO_T}yes" >&6
     2094else
     2095  echo "$as_me:2095: result: no, using $LN_S" >&5
     2096echo "${ECHO_T}no, using $LN_S" >&6
     2097fi
     2098
     2099echo "$as_me:2099: checking whether ${MAKE-make} sets \${MAKE}" >&5
     2100echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
     2101set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
     2102if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2103  echo $ECHO_N "(cached) $ECHO_C" >&6
     2104else
     2105  cat >conftest.make <<\EOF
    10372106all:
    10382107    @echo 'ac_maketemp="${MAKE}"'
    10392108EOF
    10402109# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1041 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     2110eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    10422111if test -n "$ac_maketemp"; then
    10432112  eval ac_cv_prog_make_${ac_make}_set=yes
     
    10452114  eval ac_cv_prog_make_${ac_make}_set=no
    10462115fi
    1047 rm -f conftestmake
     2116rm -f conftest.make
    10482117fi
    10492118if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1050   echo "$ac_t""yes" 1>&6
     2119  echo "$as_me:2119: result: yes" >&5
     2120echo "${ECHO_T}yes" >&6
    10512121  SET_MAKE=
    10522122else
    1053   echo "$ac_t""no" 1>&6
     2123  echo "$as_me:2123: result: no" >&5
     2124echo "${ECHO_T}no" >&6
    10542125  SET_MAKE="MAKE=${MAKE-make}"
    10552126fi
    10562127
    1057 # Extract the first word of "ranlib", so it can be a program name with args.
    1058 set dummy ranlib; ac_word=$2
    1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1060 echo "configure:1061: checking for $ac_word" >&5
    1061 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    1062   echo $ac_n "(cached) $ac_c" 1>&6
     2128if test -n "$ac_tool_prefix"; then
     2129  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2130set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2131echo "$as_me:2131: checking for $ac_word" >&5
     2132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2133if test "${ac_cv_prog_RANLIB+set}" = set; then
     2134  echo $ECHO_N "(cached) $ECHO_C" >&6
    10632135else
    10642136  if test -n "$RANLIB"; then
    10652137  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    10662138else
    1067   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1068   for ac_dir in $PATH; do
    1069     test -z "$ac_dir" && ac_dir=.
    1070     if test -f $ac_dir/$ac_word; then
    1071       ac_cv_prog_RANLIB="ranlib"
    1072       break
    1073     fi
    1074   done
    1075   IFS="$ac_save_ifs"
    1076   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    1077 fi
    1078 fi
    1079 RANLIB="$ac_cv_prog_RANLIB"
     2139  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2140ac_dummy="$PATH"
     2141for ac_dir in $ac_dummy; do
     2142  IFS=$ac_save_IFS
     2143  test -z "$ac_dir" && ac_dir=.
     2144  $as_executable_p "$ac_dir/$ac_word" || continue
     2145ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2146echo "$as_me:2146: found $ac_dir/$ac_word" >&5
     2147break
     2148done
     2149
     2150fi
     2151fi
     2152RANLIB=$ac_cv_prog_RANLIB
    10802153if test -n "$RANLIB"; then
    1081   echo "$ac_t""$RANLIB" 1>&6
    1082 else
    1083   echo "$ac_t""no" 1>&6
    1084 fi
    1085 
    1086 
    1087 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1088 echo "configure:1089: checking how to run the C preprocessor" >&5
     2154  echo "$as_me:2154: result: $RANLIB" >&5
     2155echo "${ECHO_T}$RANLIB" >&6
     2156else
     2157  echo "$as_me:2157: result: no" >&5
     2158echo "${ECHO_T}no" >&6
     2159fi
     2160
     2161fi
     2162if test -z "$ac_cv_prog_RANLIB"; then
     2163  ac_ct_RANLIB=$RANLIB
     2164  # Extract the first word of "ranlib", so it can be a program name with args.
     2165set dummy ranlib; ac_word=$2
     2166echo "$as_me:2166: checking for $ac_word" >&5
     2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2168if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2169  echo $ECHO_N "(cached) $ECHO_C" >&6
     2170else
     2171  if test -n "$ac_ct_RANLIB"; then
     2172  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2173else
     2174  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2175ac_dummy="$PATH"
     2176for ac_dir in $ac_dummy; do
     2177  IFS=$ac_save_IFS
     2178  test -z "$ac_dir" && ac_dir=.
     2179  $as_executable_p "$ac_dir/$ac_word" || continue
     2180ac_cv_prog_ac_ct_RANLIB="ranlib"
     2181echo "$as_me:2181: found $ac_dir/$ac_word" >&5
     2182break
     2183done
     2184
     2185  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2186fi
     2187fi
     2188ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2189if test -n "$ac_ct_RANLIB"; then
     2190  echo "$as_me:2190: result: $ac_ct_RANLIB" >&5
     2191echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2192else
     2193  echo "$as_me:2193: result: no" >&5
     2194echo "${ECHO_T}no" >&6
     2195fi
     2196
     2197  RANLIB=$ac_ct_RANLIB
     2198else
     2199  RANLIB="$ac_cv_prog_RANLIB"
     2200fi
     2201
     2202ac_ext=c
     2203ac_cpp='$CPP $CPPFLAGS'
     2204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2206ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2207echo "$as_me:2207: checking how to run the C preprocessor" >&5
     2208echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    10892209# On Suns, sometimes $CPP names a directory.
    10902210if test -n "$CPP" && test -d "$CPP"; then
     
    10922212fi
    10932213if test -z "$CPP"; then
    1094 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1095   echo $ac_n "(cached) $ac_c" 1>&6
    1096 else
    1097     # This must be in double quotes, not single quotes, because CPP may get
    1098   # substituted into the Makefile and "${CC-cc}" will confuse make.
    1099   CPP="${CC-cc} -E"
     2214  if test "${ac_cv_prog_CPP+set}" = set; then
     2215  echo $ECHO_N "(cached) $ECHO_C" >&6
     2216else
     2217      # Double quotes because CPP needs to be expanded
     2218    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2219    do
     2220      # break 2 since there is a loop in there.
     2221      ac_preproc_ok=false
     2222for ac_c_preproc_warn_flag in '' yes
     2223do
     2224  # Use a header file that comes with gcc, so configuring glibc
     2225  # with a fresh cross-compiler works.
    11002226  # On the NeXT, cc -E runs the code through the compiler's parser,
    1101   # not just through cpp.
    1102   cat > conftest.$ac_ext <<EOF
    1103 #line 1104 "configure"
     2227  # not just through cpp. "Syntax error" is here to catch this case.
     2228  cat >conftest.$ac_ext <<_ACEOF
     2229#line 2229 "configure"
    11042230#include "confdefs.h"
    11052231#include <assert.h>
    1106 Syntax Error
    1107 EOF
    1108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1109 { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1110 ac_err=`grep -v '^ *+' conftest.out`
    1111 if test -z "$ac_err"; then
     2232                     Syntax error
     2233_ACEOF
     2234if { (eval echo "$as_me:2234: \"$ac_cpp conftest.$ac_ext\"") >&5
     2235  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2236  ac_status=$?
     2237  egrep -v '^ *\+' conftest.er1 >conftest.err
     2238  rm -f conftest.er1
     2239  cat conftest.err >&5
     2240  echo "$as_me:2240: \$? = $ac_status" >&5
     2241  (exit $ac_status); } >/dev/null; then
     2242  if test -s conftest.err; then
     2243    ac_cpp_err=$ac_c_preproc_warn_flag
     2244  else
     2245    ac_cpp_err=
     2246  fi
     2247else
     2248  ac_cpp_err=yes
     2249fi
     2250if test -z "$ac_cpp_err"; then
    11122251  :
    11132252else
    1114   echo "$ac_err" >&5
    1115   echo "configure: failed program was:" >&5
     2253  echo "$as_me: failed program was:" >&5
    11162254  cat conftest.$ac_ext >&5
    1117   rm -rf conftest*
    1118   CPP="${CC-cc} -E -traditional-cpp"
    1119   cat > conftest.$ac_ext <<EOF
    1120 #line 1121 "configure"
     2255  # Broken: fails on valid input.
     2256continue
     2257fi
     2258rm -f conftest.err conftest.$ac_ext
     2259
     2260  # OK, works on sane cases.  Now check whether non-existent headers
     2261  # can be detected and how.
     2262  cat >conftest.$ac_ext <<_ACEOF
     2263#line 2263 "configure"
     2264#include "confdefs.h"
     2265#include <ac_nonexistent.h>
     2266_ACEOF
     2267if { (eval echo "$as_me:2267: \"$ac_cpp conftest.$ac_ext\"") >&5
     2268  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2269  ac_status=$?
     2270  egrep -v '^ *\+' conftest.er1 >conftest.err
     2271  rm -f conftest.er1
     2272  cat conftest.err >&5
     2273  echo "$as_me:2273: \$? = $ac_status" >&5
     2274  (exit $ac_status); } >/dev/null; then
     2275  if test -s conftest.err; then
     2276    ac_cpp_err=$ac_c_preproc_warn_flag
     2277  else
     2278    ac_cpp_err=
     2279  fi
     2280else
     2281  ac_cpp_err=yes
     2282fi
     2283if test -z "$ac_cpp_err"; then
     2284  # Broken: success on invalid input.
     2285continue
     2286else
     2287  echo "$as_me: failed program was:" >&5
     2288  cat conftest.$ac_ext >&5
     2289  # Passes both tests.
     2290ac_preproc_ok=:
     2291break
     2292fi
     2293rm -f conftest.err conftest.$ac_ext
     2294
     2295done
     2296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2297rm -f conftest.err conftest.$ac_ext
     2298if $ac_preproc_ok; then
     2299  break 2
     2300fi
     2301
     2302    done
     2303    ac_cv_prog_CPP=$CPP
     2304
     2305fi
     2306  CPP=$ac_cv_prog_CPP
     2307else
     2308  ac_cv_prog_CPP=$CPP
     2309fi
     2310echo "$as_me:2310: result: $CPP" >&5
     2311echo "${ECHO_T}$CPP" >&6
     2312ac_preproc_ok=false
     2313for ac_c_preproc_warn_flag in '' yes
     2314do
     2315  # Use a header file that comes with gcc, so configuring glibc
     2316  # with a fresh cross-compiler works.
     2317  # On the NeXT, cc -E runs the code through the compiler's parser,
     2318  # not just through cpp. "Syntax error" is here to catch this case.
     2319  cat >conftest.$ac_ext <<_ACEOF
     2320#line 2320 "configure"
    11212321#include "confdefs.h"
    11222322#include <assert.h>
    1123 Syntax Error
    1124 EOF
    1125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1126 { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1127 ac_err=`grep -v '^ *+' conftest.out`
    1128 if test -z "$ac_err"; then
     2323                     Syntax error
     2324_ACEOF
     2325if { (eval echo "$as_me:2325: \"$ac_cpp conftest.$ac_ext\"") >&5
     2326  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2327  ac_status=$?
     2328  egrep -v '^ *\+' conftest.er1 >conftest.err
     2329  rm -f conftest.er1
     2330  cat conftest.err >&5
     2331  echo "$as_me:2331: \$? = $ac_status" >&5
     2332  (exit $ac_status); } >/dev/null; then
     2333  if test -s conftest.err; then
     2334    ac_cpp_err=$ac_c_preproc_warn_flag
     2335  else
     2336    ac_cpp_err=
     2337  fi
     2338else
     2339  ac_cpp_err=yes
     2340fi
     2341if test -z "$ac_cpp_err"; then
    11292342  :
    11302343else
    1131   echo "$ac_err" >&5
    1132   echo "configure: failed program was:" >&5
     2344  echo "$as_me: failed program was:" >&5
    11332345  cat conftest.$ac_ext >&5
    1134   rm -rf conftest*
    1135   CPP=/lib/cpp
    1136 fi
    1137 rm -f conftest*
    1138 fi
    1139 rm -f conftest*
    1140   ac_cv_prog_CPP="$CPP"
    1141 fi
    1142   CPP="$ac_cv_prog_CPP"
    1143 else
    1144   ac_cv_prog_CPP="$CPP"
    1145 fi
    1146 echo "$ac_t""$CPP" 1>&6
    1147 
    1148 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1149 echo "configure:1150: checking for AIX" >&5
    1150 cat > conftest.$ac_ext <<EOF
    1151 #line 1152 "configure"
     2346  # Broken: fails on valid input.
     2347continue
     2348fi
     2349rm -f conftest.err conftest.$ac_ext
     2350
     2351  # OK, works on sane cases.  Now check whether non-existent headers
     2352  # can be detected and how.
     2353  cat >conftest.$ac_ext <<_ACEOF
     2354#line 2354 "configure"
     2355#include "confdefs.h"
     2356#include <ac_nonexistent.h>
     2357_ACEOF
     2358if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5
     2359  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2360  ac_status=$?
     2361  egrep -v '^ *\+' conftest.er1 >conftest.err
     2362  rm -f conftest.er1
     2363  cat conftest.err >&5
     2364  echo "$as_me:2364: \$? = $ac_status" >&5
     2365  (exit $ac_status); } >/dev/null; then
     2366  if test -s conftest.err; then
     2367    ac_cpp_err=$ac_c_preproc_warn_flag
     2368  else
     2369    ac_cpp_err=
     2370  fi
     2371else
     2372  ac_cpp_err=yes
     2373fi
     2374if test -z "$ac_cpp_err"; then
     2375  # Broken: success on invalid input.
     2376continue
     2377else
     2378  echo "$as_me: failed program was:" >&5
     2379  cat conftest.$ac_ext >&5
     2380  # Passes both tests.
     2381ac_preproc_ok=:
     2382break
     2383fi
     2384rm -f conftest.err conftest.$ac_ext
     2385
     2386done
     2387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2388rm -f conftest.err conftest.$ac_ext
     2389if $ac_preproc_ok; then
     2390  :
     2391else
     2392  { { echo "$as_me:2392: error: C preprocessor \"$CPP\" fails sanity check" >&5
     2393echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
     2394   { (exit 1); exit 1; }; }
     2395fi
     2396
     2397ac_ext=c
     2398ac_cpp='$CPP $CPPFLAGS'
     2399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2402
     2403echo "$as_me:2403: checking for AIX" >&5
     2404echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     2405cat >conftest.$ac_ext <<_ACEOF
     2406#line 2406 "configure"
    11522407#include "confdefs.h"
    11532408#ifdef _AIX
     
    11552410#endif
    11562411
    1157 EOF
     2412_ACEOF
    11582413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    11592414  egrep "yes" >/dev/null 2>&1; then
    1160   rm -rf conftest*
    1161   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     2415  echo "$as_me:2415: result: yes" >&5
     2416echo "${ECHO_T}yes" >&6
     2417cat >>confdefs.h <<\EOF
    11622418#define _ALL_SOURCE 1
    11632419EOF
    11642420
    11652421else
    1166   rm -rf conftest*
    1167   echo "$ac_t""no" 1>&6
     2422  echo "$as_me:2422: result: no" >&5
     2423echo "${ECHO_T}no" >&6
    11682424fi
    11692425rm -f conftest*
    11702426
    1171 
    1172 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1173 echo "configure:1174: checking for POSIXized ISC" >&5
     2427echo "$as_me:2427: checking for POSIXized ISC" >&5
     2428echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
    11742429if test -d /etc/conf/kconfig.d &&
    1175   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     2430   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    11762431then
    1177   echo "$ac_t""yes" 1>&6
     2432  echo "$as_me:2432: result: yes" >&5
     2433echo "${ECHO_T}yes" >&6
    11782434  ISC=yes # If later tests want to check for ISC.
    1179   cat >> confdefs.h <<\EOF
     2435
     2436cat >>confdefs.h <<\EOF
    11802437#define _POSIX_SOURCE 1
    11812438EOF
     
    11872444  fi
    11882445else
    1189   echo "$ac_t""no" 1>&6
     2446  echo "$as_me:2446: result: no" >&5
     2447echo "${ECHO_T}no" >&6
    11902448  ISC=
    11912449fi
    11922450
    1193 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    1194 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    1195 echo "configure:1196: checking for minix/config.h" >&5
    1196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1197   echo $ac_n "(cached) $ac_c" 1>&6
    1198 else
    1199   cat > conftest.$ac_ext <<EOF
    1200 #line 1201 "configure"
     2451echo "$as_me:2451: checking for minix/config.h" >&5
     2452echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     2453if test "${ac_cv_header_minix_config_h+set}" = set; then
     2454  echo $ECHO_N "(cached) $ECHO_C" >&6
     2455else
     2456  cat >conftest.$ac_ext <<_ACEOF
     2457#line 2457 "configure"
    12012458#include "confdefs.h"
    12022459#include <minix/config.h>
    1203 EOF
    1204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1205 { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1206 ac_err=`grep -v '^ *+' conftest.out`
    1207 if test -z "$ac_err"; then
    1208   rm -rf conftest*
    1209   eval "ac_cv_header_$ac_safe=yes"
    1210 else
    1211   echo "$ac_err" >&5
    1212   echo "configure: failed program was:" >&5
     2460_ACEOF
     2461if { (eval echo "$as_me:2461: \"$ac_cpp conftest.$ac_ext\"") >&5
     2462  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2463  ac_status=$?
     2464  egrep -v '^ *\+' conftest.er1 >conftest.err
     2465  rm -f conftest.er1
     2466  cat conftest.err >&5
     2467  echo "$as_me:2467: \$? = $ac_status" >&5
     2468  (exit $ac_status); } >/dev/null; then
     2469  if test -s conftest.err; then
     2470    ac_cpp_err=$ac_c_preproc_warn_flag
     2471  else
     2472    ac_cpp_err=
     2473  fi
     2474else
     2475  ac_cpp_err=yes
     2476fi
     2477if test -z "$ac_cpp_err"; then
     2478  ac_cv_header_minix_config_h=yes
     2479else
     2480  echo "$as_me: failed program was:" >&5
    12132481  cat conftest.$ac_ext >&5
    1214   rm -rf conftest*
    1215   eval "ac_cv_header_$ac_safe=no"
    1216 fi
    1217 rm -f conftest*
    1218 fi
    1219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1220   echo "$ac_t""yes" 1>&6
     2482  ac_cv_header_minix_config_h=no
     2483fi
     2484rm -f conftest.err conftest.$ac_ext
     2485fi
     2486echo "$as_me:2486: result: $ac_cv_header_minix_config_h" >&5
     2487echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     2488if test $ac_cv_header_minix_config_h = yes; then
    12212489  MINIX=yes
    12222490else
    1223   echo "$ac_t""no" 1>&6
    1224 MINIX=
     2491  MINIX=
    12252492fi
    12262493
    12272494if test "$MINIX" = yes; then
    1228   cat >> confdefs.h <<\EOF
     2495
     2496cat >>confdefs.h <<\EOF
    12292497#define _POSIX_SOURCE 1
    12302498EOF
    12312499
    1232   cat >> confdefs.h <<\EOF
     2500cat >>confdefs.h <<\EOF
    12332501#define _POSIX_1_SOURCE 2
    12342502EOF
    12352503
    1236   cat >> confdefs.h <<\EOF
     2504cat >>confdefs.h <<\EOF
    12372505#define _MINIX 1
    12382506EOF
     
    12402508fi
    12412509
    1242 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    1243 echo "configure:1244: checking for ${CC-cc} option to accept ANSI C" >&5
    1244 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    1245   echo $ac_n "(cached) $ac_c" 1>&6
     2510echo "$as_me:2510: checking for ${CC-cc} option to accept ANSI C" >&5
     2511echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     2512if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2513  echo $ECHO_N "(cached) $ECHO_C" >&6
    12462514else
    12472515  ac_cv_prog_cc_stdc=no
     
    12562524do
    12572525  CFLAGS="$ac_save_CFLAGS $ac_arg"
    1258   cat > conftest.$ac_ext <<EOF
    1259 #line 1260 "configure"
     2526  cat >conftest.$ac_ext <<_ACEOF
     2527#line 2527 "configure"
    12602528#include "confdefs.h"
    12612529#if !defined(__STDC__) || __STDC__ != 1
    12622530choke me
    1263 #endif 
    1264 
    1265 int main() {
     2531#endif
     2532
     2533int
     2534main ()
     2535{
    12662536int test (int i, double x);
    12672537struct s1 {int (*f) (int a);};
    12682538struct s2 {int (*f) (double a);};
    1269 ; return 0; }
    1270 EOF
    1271 if { (eval echo configure:1272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1272   rm -rf conftest*
     2539  ;
     2540  return 0;
     2541}
     2542_ACEOF
     2543rm -f conftest.$ac_objext
     2544if { (eval echo "$as_me:2544: \"$ac_compile\"") >&5
     2545  (eval $ac_compile) 2>&5
     2546  ac_status=$?
     2547  echo "$as_me:2547: \$? = $ac_status" >&5
     2548  (exit $ac_status); } &&
     2549         { ac_try='test -s conftest.$ac_objext'
     2550  { (eval echo "$as_me:2550: \"$ac_try\"") >&5
     2551  (eval $ac_try) 2>&5
     2552  ac_status=$?
     2553  echo "$as_me:2553: \$? = $ac_status" >&5
     2554  (exit $ac_status); }; }; then
    12732555  ac_cv_prog_cc_stdc="$ac_arg"; break
    12742556else
    1275   echo "configure: failed program was:" >&5
    1276   cat conftest.$ac_ext >&5
    1277 fi
    1278 rm -f conftest*
     2557  echo "$as_me: failed program was:" >&5
     2558cat conftest.$ac_ext >&5
     2559fi
     2560rm -f conftest.$ac_objext conftest.$ac_ext
    12792561done
    12802562CFLAGS="$ac_save_CFLAGS"
     
    12822564fi
    12832565
    1284 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
     2566echo "$as_me:2566: result: $ac_cv_prog_cc_stdc" >&5
     2567echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    12852568case "x$ac_cv_prog_cc_stdc" in
    12862569  x|xno) ;;
     
    12882571esac
    12892572
    1290 
    1291 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
    1292 echo "configure:1293: checking for function prototypes" >&5
     2573echo "$as_me:2573: checking for function prototypes" >&5
     2574echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    12932575if test "$ac_cv_prog_cc_stdc" != no; then
    1294   echo "$ac_t""yes" 1>&6
    1295   cat >> confdefs.h <<\EOF
     2576  echo "$as_me:2576: result: yes" >&5
     2577echo "${ECHO_T}yes" >&6
     2578  cat >>confdefs.h <<\EOF
    12962579#define PROTOTYPES 1
    12972580EOF
     
    12992582  U= ANSI2KNR=
    13002583else
    1301   echo "$ac_t""no" 1>&6
     2584  echo "$as_me:2584: result: no" >&5
     2585echo "${ECHO_T}no" >&6
    13022586  U=_ ANSI2KNR=ansi2knr
    13032587fi
    13042588
    1305 echo $ac_n "checking for working const""... $ac_c" 1>&6
    1306 echo "configure:1307: checking for working const" >&5
    1307 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    1308   echo $ac_n "(cached) $ac_c" 1>&6
    1309 else
    1310   cat > conftest.$ac_ext <<EOF
    1311 #line 1312 "configure"
    1312 #include "confdefs.h"
    1313 
    1314 int main() {
    1315 
    1316 /* Ultrix mips cc rejects this.  */
    1317 typedef int charset[2]; const charset x;
    1318 /* SunOS 4.1.1 cc rejects this.  */
    1319 char const *const *ccp;
    1320 char **p;
    1321 /* NEC SVR4.0.2 mips cc rejects this.  */
    1322 struct point {int x, y;};
    1323 static struct point const zero = {0,0};
    1324 /* AIX XL C 1.02.0.0 rejects this.
    1325    It does not let you subtract one const X* pointer from another in an arm
    1326    of an if-expression whose if-part is not a constant expression */
    1327 const char *g = "string";
    1328 ccp = &g + (g ? g-g : 0);
    1329 /* HPUX 7.0 cc rejects these. */
    1330 ++ccp;
    1331 p = (char**) ccp;
    1332 ccp = (char const *const *) p;
    1333 { /* SCO 3.2v4 cc rejects this.  */
    1334   char *t;
    1335   char const *s = 0 ? (char *) 0 : (char const *) 0;
    1336 
    1337   *t++ = 0;
     2589echo "$as_me:2589: checking for $CC option to accept ANSI C" >&5
     2590echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2591if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2592  echo $ECHO_N "(cached) $ECHO_C" >&6
     2593else
     2594  ac_cv_prog_cc_stdc=no
     2595ac_save_CC=$CC
     2596cat >conftest.$ac_ext <<_ACEOF
     2597#line 2597 "configure"
     2598#include "confdefs.h"
     2599#include <stdarg.h>
     2600#include <stdio.h>
     2601#include <sys/types.h>
     2602#include <sys/stat.h>
     2603/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2604struct buf { int x; };
     2605FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2606static char *e (p, i)
     2607     char **p;
     2608     int i;
     2609{
     2610  return p[i];
    13382611}
    1339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    1340   int x[] = {25, 17};
    1341   const int *foo = &x[0];
    1342   ++foo;
     2612static char *f (char * (*g) (char **, int), char **p, ...)
     2613{
     2614  char *s;
     2615  va_list v;
     2616  va_start (v,p);
     2617  s = g (p, va_arg (v,int));
     2618  va_end (v);
     2619  return s;
    13432620}
    1344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    1345   typedef const int *iptr;
    1346   iptr p = 0;
    1347   ++p;
     2621int test (int i, double x);
     2622struct s1 {int (*f) (int a);};
     2623struct s2 {int (*f) (double a);};
     2624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2625int argc;
     2626char **argv;
     2627int
     2628main ()
     2629{
     2630return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2631  ;
     2632  return 0;
    13482633}
    1349 { /* AIX XL C 1.02.0.0 rejects this saying
    1350      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    1351   struct s { int j; const int *ap[3]; };
    1352   struct s *b; b->j = 5;
     2634_ACEOF
     2635# Don't try gcc -ansi; that turns off useful extensions and
     2636# breaks some systems' header files.
     2637# AIX           -qlanglvl=ansi
     2638# Ultrix and OSF/1  -std1
     2639# HP-UX 10.20 and later -Ae
     2640# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2641# SVR4          -Xc -D__EXTENSIONS__
     2642for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2643do
     2644  CC="$ac_save_CC $ac_arg"
     2645  rm -f conftest.$ac_objext
     2646if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5
     2647  (eval $ac_compile) 2>&5
     2648  ac_status=$?
     2649  echo "$as_me:2649: \$? = $ac_status" >&5
     2650  (exit $ac_status); } &&
     2651         { ac_try='test -s conftest.$ac_objext'
     2652  { (eval echo "$as_me:2652: \"$ac_try\"") >&5
     2653  (eval $ac_try) 2>&5
     2654  ac_status=$?
     2655  echo "$as_me:2655: \$? = $ac_status" >&5
     2656  (exit $ac_status); }; }; then
     2657  ac_cv_prog_cc_stdc=$ac_arg
     2658break
     2659else
     2660  echo "$as_me: failed program was:" >&5
     2661cat conftest.$ac_ext >&5
     2662fi
     2663rm -f conftest.$ac_objext
     2664done
     2665rm -f conftest.$ac_ext conftest.$ac_objext
     2666CC=$ac_save_CC
     2667
     2668fi
     2669
     2670case "x$ac_cv_prog_cc_stdc" in
     2671  x|xno)
     2672    echo "$as_me:2672: result: none needed" >&5
     2673echo "${ECHO_T}none needed" >&6 ;;
     2674  *)
     2675    echo "$as_me:2675: result: $ac_cv_prog_cc_stdc" >&5
     2676echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2677    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2678esac
     2679
     2680echo "$as_me:2680: checking for an ANSI C-conforming const" >&5
     2681echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     2682if test "${ac_cv_c_const+set}" = set; then
     2683  echo $ECHO_N "(cached) $ECHO_C" >&6
     2684else
     2685  cat >conftest.$ac_ext <<_ACEOF
     2686#line 2686 "configure"
     2687#include "confdefs.h"
     2688
     2689int
     2690main ()
     2691{
     2692/* FIXME: Include the comments suggested by Paul. */
     2693#ifndef __cplusplus
     2694  /* Ultrix mips cc rejects this.  */
     2695  typedef int charset[2];
     2696  const charset x;
     2697  /* SunOS 4.1.1 cc rejects this.  */
     2698  char const *const *ccp;
     2699  char **p;
     2700  /* NEC SVR4.0.2 mips cc rejects this.  */
     2701  struct point {int x, y;};
     2702  static struct point const zero = {0,0};
     2703  /* AIX XL C 1.02.0.0 rejects this.
     2704     It does not let you subtract one const X* pointer from another in
     2705     an arm of an if-expression whose if-part is not a constant
     2706     expression */
     2707  const char *g = "string";
     2708  ccp = &g + (g ? g-g : 0);
     2709  /* HPUX 7.0 cc rejects these. */
     2710  ++ccp;
     2711  p = (char**) ccp;
     2712  ccp = (char const *const *) p;
     2713  { /* SCO 3.2v4 cc rejects this.  */
     2714    char *t;
     2715    char const *s = 0 ? (char *) 0 : (char const *) 0;
     2716
     2717    *t++ = 0;
     2718  }
     2719  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     2720    int x[] = {25, 17};
     2721    const int *foo = &x[0];
     2722    ++foo;
     2723  }
     2724  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     2725    typedef const int *iptr;
     2726    iptr p = 0;
     2727    ++p;
     2728  }
     2729  { /* AIX XL C 1.02.0.0 rejects this saying
     2730       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     2731    struct s { int j; const int *ap[3]; };
     2732    struct s *b; b->j = 5;
     2733  }
     2734  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     2735    const int foo = 10;
     2736  }
     2737#endif
     2738
     2739  ;
     2740  return 0;
    13532741}
    1354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    1355   const int foo = 10;
    1356 }
    1357 
    1358 ; return 0; }
    1359 EOF
    1360 if { (eval echo configure:1361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1361   rm -rf conftest*
     2742_ACEOF
     2743rm -f conftest.$ac_objext
     2744if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5
     2745  (eval $ac_compile) 2>&5
     2746  ac_status=$?
     2747  echo "$as_me:2747: \$? = $ac_status" >&5
     2748  (exit $ac_status); } &&
     2749         { ac_try='test -s conftest.$ac_objext'
     2750  { (eval echo "$as_me:2750: \"$ac_try\"") >&5
     2751  (eval $ac_try) 2>&5
     2752  ac_status=$?
     2753  echo "$as_me:2753: \$? = $ac_status" >&5
     2754  (exit $ac_status); }; }; then
    13622755  ac_cv_c_const=yes
    13632756else
    1364   echo "configure: failed program was:" >&5
    1365   cat conftest.$ac_ext >&5
    1366   rm -rf conftest*
    1367   ac_cv_c_const=no
    1368 fi
    1369 rm -f conftest*
    1370 fi
    1371 
    1372 echo "$ac_t""$ac_cv_c_const" 1>&6
     2757  echo "$as_me: failed program was:" >&5
     2758cat conftest.$ac_ext >&5
     2759ac_cv_c_const=no
     2760fi
     2761rm -f conftest.$ac_objext conftest.$ac_ext
     2762fi
     2763echo "$as_me:2763: result: $ac_cv_c_const" >&5
     2764echo "${ECHO_T}$ac_cv_c_const" >&6
    13732765if test $ac_cv_c_const = no; then
    1374   cat >> confdefs.h <<\EOF
    1375 #define const
    1376 EOF
    1377 
    1378 fi
    1379 
    1380 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1381 echo "configure:1382: checking for ANSI C header files" >&5
    1382 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1383   echo $ac_n "(cached) $ac_c" 1>&6
    1384 else
    1385   cat > conftest.$ac_ext <<EOF
    1386 #line 1387 "configure"
     2766
     2767cat >>confdefs.h <<\EOF
     2768#define const
     2769EOF
     2770
     2771fi
     2772
     2773echo "$as_me:2773: checking for ANSI C header files" >&5
     2774echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     2775if test "${ac_cv_header_stdc+set}" = set; then
     2776  echo $ECHO_N "(cached) $ECHO_C" >&6
     2777else
     2778  cat >conftest.$ac_ext <<_ACEOF
     2779#line 2779 "configure"
    13872780#include "confdefs.h"
    13882781#include <stdlib.h>
     
    13902783#include <string.h>
    13912784#include <float.h>
    1392 EOF
    1393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1394 { (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1395 ac_err=`grep -v '^ *+' conftest.out`
    1396 if test -z "$ac_err"; then
    1397   rm -rf conftest*
     2785
     2786_ACEOF
     2787if { (eval echo "$as_me:2787: \"$ac_cpp conftest.$ac_ext\"") >&5
     2788  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2789  ac_status=$?
     2790  egrep -v '^ *\+' conftest.er1 >conftest.err
     2791  rm -f conftest.er1
     2792  cat conftest.err >&5
     2793  echo "$as_me:2793: \$? = $ac_status" >&5
     2794  (exit $ac_status); } >/dev/null; then
     2795  if test -s conftest.err; then
     2796    ac_cpp_err=$ac_c_preproc_warn_flag
     2797  else
     2798    ac_cpp_err=
     2799  fi
     2800else
     2801  ac_cpp_err=yes
     2802fi
     2803if test -z "$ac_cpp_err"; then
    13982804  ac_cv_header_stdc=yes
    13992805else
    1400   echo "$ac_err" >&5
    1401   echo "configure: failed program was:" >&5
     2806  echo "$as_me: failed program was:" >&5
    14022807  cat conftest.$ac_ext >&5
    1403   rm -rf conftest*
    14042808  ac_cv_header_stdc=no
    14052809fi
    1406 rm -f conftest*
     2810rm -f conftest.err conftest.$ac_ext
    14072811
    14082812if test $ac_cv_header_stdc = yes; then
    14092813  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1410 cat > conftest.$ac_ext <<EOF
    1411 #line 1412 "configure"
     2814  cat >conftest.$ac_ext <<_ACEOF
     2815#line 2815 "configure"
    14122816#include "confdefs.h"
    14132817#include <string.h>
    1414 EOF
     2818
     2819_ACEOF
    14152820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    14162821  egrep "memchr" >/dev/null 2>&1; then
    14172822  :
    14182823else
    1419   rm -rf conftest*
    14202824  ac_cv_header_stdc=no
    14212825fi
     
    14262830if test $ac_cv_header_stdc = yes; then
    14272831  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1428 cat > conftest.$ac_ext <<EOF
    1429 #line 1430 "configure"
     2832  cat >conftest.$ac_ext <<_ACEOF
     2833#line 2833 "configure"
    14302834#include "confdefs.h"
    14312835#include <stdlib.h>
    1432 EOF
     2836
     2837_ACEOF
    14332838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    14342839  egrep "free" >/dev/null 2>&1; then
    14352840  :
    14362841else
    1437   rm -rf conftest*
    14382842  ac_cv_header_stdc=no
    14392843fi
     
    14442848if test $ac_cv_header_stdc = yes; then
    14452849  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1446 if test "$cross_compiling" = yes; then
     2850  if test "$cross_compiling" = yes; then
    14472851  :
    14482852else
    1449   cat > conftest.$ac_ext <<EOF
    1450 #line 1451 "configure"
     2853  cat >conftest.$ac_ext <<_ACEOF
     2854#line 2854 "configure"
    14512855#include "confdefs.h"
    14522856#include <ctype.h>
    1453 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1454 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2857#if ((' ' & 0x0FF) == 0x020)
     2858# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2859# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2860#else
     2861# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     2862                     || ('j' <= (c) && (c) <= 'r') \
     2863                     || ('s' <= (c) && (c) <= 'z'))
     2864# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     2865#endif
     2866
    14552867#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1456 int main () { int i; for (i = 0; i < 256; i++)
    1457 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1458 exit (0); }
    1459 
    1460 EOF
    1461 if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1462 then
     2868int
     2869main ()
     2870{
     2871  int i;
     2872  for (i = 0; i < 256; i++)
     2873    if (XOR (islower (i), ISLOWER (i))
     2874        || toupper (i) != TOUPPER (i))
     2875      exit(2);
     2876  exit (0);
     2877}
     2878_ACEOF
     2879rm -f conftest$ac_exeext
     2880if { (eval echo "$as_me:2880: \"$ac_link\"") >&5
     2881  (eval $ac_link) 2>&5
     2882  ac_status=$?
     2883  echo "$as_me:2883: \$? = $ac_status" >&5
     2884  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     2885  { (eval echo "$as_me:2885: \"$ac_try\"") >&5
     2886  (eval $ac_try) 2>&5
     2887  ac_status=$?
     2888  echo "$as_me:2888: \$? = $ac_status" >&5
     2889  (exit $ac_status); }; }; then
    14632890  :
    14642891else
    1465   echo "configure: failed program was:" >&5
     2892  echo "$as_me: program exited with status $ac_status" >&5
     2893echo "$as_me: failed program was:" >&5
     2894cat conftest.$ac_ext >&5
     2895ac_cv_header_stdc=no
     2896fi
     2897rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     2898fi
     2899fi
     2900fi
     2901echo "$as_me:2901: result: $ac_cv_header_stdc" >&5
     2902echo "${ECHO_T}$ac_cv_header_stdc" >&6
     2903if test $ac_cv_header_stdc = yes; then
     2904
     2905cat >>confdefs.h <<\EOF
     2906#define STDC_HEADERS 1
     2907EOF
     2908
     2909fi
     2910
     2911for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
     2912do
     2913ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     2914echo "$as_me:2914: checking for $ac_header" >&5
     2915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2916if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     2917  echo $ECHO_N "(cached) $ECHO_C" >&6
     2918else
     2919  cat >conftest.$ac_ext <<_ACEOF
     2920#line 2920 "configure"
     2921#include "confdefs.h"
     2922#include <$ac_header>
     2923_ACEOF
     2924if { (eval echo "$as_me:2924: \"$ac_cpp conftest.$ac_ext\"") >&5
     2925  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2926  ac_status=$?
     2927  egrep -v '^ *\+' conftest.er1 >conftest.err
     2928  rm -f conftest.er1
     2929  cat conftest.err >&5
     2930  echo "$as_me:2930: \$? = $ac_status" >&5
     2931  (exit $ac_status); } >/dev/null; then
     2932  if test -s conftest.err; then
     2933    ac_cpp_err=$ac_c_preproc_warn_flag
     2934  else
     2935    ac_cpp_err=
     2936  fi
     2937else
     2938  ac_cpp_err=yes
     2939fi
     2940if test -z "$ac_cpp_err"; then
     2941  eval "$ac_ac_Header=yes"
     2942else
     2943  echo "$as_me: failed program was:" >&5
    14662944  cat conftest.$ac_ext >&5
    1467   rm -fr conftest*
    1468   ac_cv_header_stdc=no
    1469 fi
    1470 rm -fr conftest*
    1471 fi
    1472 
    1473 fi
    1474 fi
    1475 
    1476 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    1477 if test $ac_cv_header_stdc = yes; then
    1478   cat >> confdefs.h <<\EOF
    1479 #define STDC_HEADERS 1
    1480 EOF
    1481 
    1482 fi
    1483 
    1484 echo $ac_n "checking for off_t""... $ac_c" 1>&6
    1485 echo "configure:1486: checking for off_t" >&5
    1486 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    1487   echo $ac_n "(cached) $ac_c" 1>&6
    1488 else
    1489   cat > conftest.$ac_ext <<EOF
    1490 #line 1491 "configure"
    1491 #include "confdefs.h"
    1492 #include <sys/types.h>
    1493 #if STDC_HEADERS
    1494 #include <stdlib.h>
    1495 #include <stddef.h>
    1496 #endif
    1497 EOF
    1498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1499   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1500   rm -rf conftest*
     2945  eval "$ac_ac_Header=no"
     2946fi
     2947rm -f conftest.err conftest.$ac_ext
     2948fi
     2949echo "$as_me:2949: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     2950echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     2951if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     2952  cat >>confdefs.h <<EOF
     2953#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
     2954EOF
     2955
     2956fi
     2957done
     2958
     2959echo "$as_me:2959: checking for off_t" >&5
     2960echo $ECHO_N "checking for off_t... $ECHO_C" >&6
     2961if test "${ac_cv_type_off_t+set}" = set; then
     2962  echo $ECHO_N "(cached) $ECHO_C" >&6
     2963else
     2964  cat >conftest.$ac_ext <<_ACEOF
     2965#line 2965 "configure"
     2966#include "confdefs.h"
     2967$ac_includes_default
     2968int
     2969main ()
     2970{
     2971if ((off_t *) 0)
     2972  return 0;
     2973if (sizeof (off_t))
     2974  return 0;
     2975  ;
     2976  return 0;
     2977}
     2978_ACEOF
     2979rm -f conftest.$ac_objext
     2980if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5
     2981  (eval $ac_compile) 2>&5
     2982  ac_status=$?
     2983  echo "$as_me:2983: \$? = $ac_status" >&5
     2984  (exit $ac_status); } &&
     2985         { ac_try='test -s conftest.$ac_objext'
     2986  { (eval echo "$as_me:2986: \"$ac_try\"") >&5
     2987  (eval $ac_try) 2>&5
     2988  ac_status=$?
     2989  echo "$as_me:2989: \$? = $ac_status" >&5
     2990  (exit $ac_status); }; }; then
    15012991  ac_cv_type_off_t=yes
    15022992else
    1503   rm -rf conftest*
    1504   ac_cv_type_off_t=no
    1505 fi
    1506 rm -f conftest*
    1507 
    1508 fi
    1509 echo "$ac_t""$ac_cv_type_off_t" 1>&6
    1510 if test $ac_cv_type_off_t = no; then
    1511   cat >> confdefs.h <<\EOF
     2993  echo "$as_me: failed program was:" >&5
     2994cat conftest.$ac_ext >&5
     2995ac_cv_type_off_t=no
     2996fi
     2997rm -f conftest.$ac_objext conftest.$ac_ext
     2998fi
     2999echo "$as_me:2999: result: $ac_cv_type_off_t" >&5
     3000echo "${ECHO_T}$ac_cv_type_off_t" >&6
     3001if test $ac_cv_type_off_t = yes; then
     3002  :
     3003else
     3004
     3005cat >>confdefs.h <<EOF
    15123006#define off_t long
    15133007EOF
     
    15153009fi
    15163010
    1517 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1518 echo "configure:1519: checking for size_t" >&5
    1519 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    1520   echo $ac_n "(cached) $ac_c" 1>&6
    1521 else
    1522   cat > conftest.$ac_ext <<EOF
    1523 #line 1524 "configure"
    1524 #include "confdefs.h"
    1525 #include <sys/types.h>
    1526 #if STDC_HEADERS
    1527 #include <stdlib.h>
    1528 #include <stddef.h>
    1529 #endif
    1530 EOF
    1531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1532   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1533   rm -rf conftest*
     3011echo "$as_me:3011: checking for size_t" >&5
     3012echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     3013if test "${ac_cv_type_size_t+set}" = set; then
     3014  echo $ECHO_N "(cached) $ECHO_C" >&6
     3015else
     3016  cat >conftest.$ac_ext <<_ACEOF
     3017#line 3017 "configure"
     3018#include "confdefs.h"
     3019$ac_includes_default
     3020int
     3021main ()
     3022{
     3023if ((size_t *) 0)
     3024  return 0;
     3025if (sizeof (size_t))
     3026  return 0;
     3027  ;
     3028  return 0;
     3029}
     3030_ACEOF
     3031rm -f conftest.$ac_objext
     3032if { (eval echo "$as_me:3032: \"$ac_compile\"") >&5
     3033  (eval $ac_compile) 2>&5
     3034  ac_status=$?
     3035  echo "$as_me:3035: \$? = $ac_status" >&5
     3036  (exit $ac_status); } &&
     3037         { ac_try='test -s conftest.$ac_objext'
     3038  { (eval echo "$as_me:3038: \"$ac_try\"") >&5
     3039  (eval $ac_try) 2>&5
     3040  ac_status=$?
     3041  echo "$as_me:3041: \$? = $ac_status" >&5
     3042  (exit $ac_status); }; }; then
    15343043  ac_cv_type_size_t=yes
    15353044else
    1536   rm -rf conftest*
    1537   ac_cv_type_size_t=no
    1538 fi
    1539 rm -f conftest*
    1540 
    1541 fi
    1542 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    1543 if test $ac_cv_type_size_t = no; then
    1544   cat >> confdefs.h <<\EOF
     3045  echo "$as_me: failed program was:" >&5
     3046cat conftest.$ac_ext >&5
     3047ac_cv_type_size_t=no
     3048fi
     3049rm -f conftest.$ac_objext conftest.$ac_ext
     3050fi
     3051echo "$as_me:3051: result: $ac_cv_type_size_t" >&5
     3052echo "${ECHO_T}$ac_cv_type_size_t" >&6
     3053if test $ac_cv_type_size_t = yes; then
     3054  :
     3055else
     3056
     3057cat >>confdefs.h <<EOF
    15453058#define size_t unsigned
    15463059EOF
     
    15483061fi
    15493062
    1550 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1551 echo "configure:1552: checking whether time.h and sys/time.h may both be included" >&5
    1552 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    1553   echo $ac_n "(cached) $ac_c" 1>&6
    1554 else
    1555   cat > conftest.$ac_ext <<EOF
    1556 #line 1557 "configure"
     3063echo "$as_me:3063: checking whether time.h and sys/time.h may both be included" >&5
     3064echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     3065if test "${ac_cv_header_time+set}" = set; then
     3066  echo $ECHO_N "(cached) $ECHO_C" >&6
     3067else
     3068  cat >conftest.$ac_ext <<_ACEOF
     3069#line 3069 "configure"
    15573070#include "confdefs.h"
    15583071#include <sys/types.h>
    15593072#include <sys/time.h>
    15603073#include <time.h>
    1561 int main() {
     3074
     3075int
     3076main ()
     3077{
    15623078struct tm *tp;
    1563 ; return 0; }
    1564 EOF
    1565 if { (eval echo configure:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1566   rm -rf conftest*
     3079  ;
     3080  return 0;
     3081}
     3082_ACEOF
     3083rm -f conftest.$ac_objext
     3084if { (eval echo "$as_me:3084: \"$ac_compile\"") >&5
     3085  (eval $ac_compile) 2>&5
     3086  ac_status=$?
     3087  echo "$as_me:3087: \$? = $ac_status" >&5
     3088  (exit $ac_status); } &&
     3089         { ac_try='test -s conftest.$ac_objext'
     3090  { (eval echo "$as_me:3090: \"$ac_try\"") >&5
     3091  (eval $ac_try) 2>&5
     3092  ac_status=$?
     3093  echo "$as_me:3093: \$? = $ac_status" >&5
     3094  (exit $ac_status); }; }; then
    15673095  ac_cv_header_time=yes
    15683096else
    1569   echo "configure: failed program was:" >&5
    1570   cat conftest.$ac_ext >&5
    1571   rm -rf conftest*
    1572   ac_cv_header_time=no
    1573 fi
    1574 rm -f conftest*
    1575 fi
    1576 
    1577 echo "$ac_t""$ac_cv_header_time" 1>&6
     3097  echo "$as_me: failed program was:" >&5
     3098cat conftest.$ac_ext >&5
     3099ac_cv_header_time=no
     3100fi
     3101rm -f conftest.$ac_objext conftest.$ac_ext
     3102fi
     3103echo "$as_me:3103: result: $ac_cv_header_time" >&5
     3104echo "${ECHO_T}$ac_cv_header_time" >&6
    15783105if test $ac_cv_header_time = yes; then
    1579   cat >> confdefs.h <<\EOF
     3106
     3107cat >>confdefs.h <<\EOF
    15803108#define TIME_WITH_SYS_TIME 1
    15813109EOF
     
    15833111fi
    15843112
    1585 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1586 echo "configure:1587: checking whether struct tm is in sys/time.h or time.h" >&5
    1587 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    1588   echo $ac_n "(cached) $ac_c" 1>&6
    1589 else
    1590   cat > conftest.$ac_ext <<EOF
    1591 #line 1592 "configure"
     3113echo "$as_me:3113: checking whether struct tm is in sys/time.h or time.h" >&5
     3114echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     3115if test "${ac_cv_struct_tm+set}" = set; then
     3116  echo $ECHO_N "(cached) $ECHO_C" >&6
     3117else
     3118  cat >conftest.$ac_ext <<_ACEOF
     3119#line 3119 "configure"
    15923120#include "confdefs.h"
    15933121#include <sys/types.h>
    15943122#include <time.h>
    1595 int main() {
     3123
     3124int
     3125main ()
     3126{
    15963127struct tm *tp; tp->tm_sec;
    1597 ; return 0; }
    1598 EOF
    1599 if { (eval echo configure:1600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1600   rm -rf conftest*
     3128  ;
     3129  return 0;
     3130}
     3131_ACEOF
     3132rm -f conftest.$ac_objext
     3133if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5
     3134  (eval $ac_compile) 2>&5
     3135  ac_status=$?
     3136  echo "$as_me:3136: \$? = $ac_status" >&5
     3137  (exit $ac_status); } &&
     3138         { ac_try='test -s conftest.$ac_objext'
     3139  { (eval echo "$as_me:3139: \"$ac_try\"") >&5
     3140  (eval $ac_try) 2>&5
     3141  ac_status=$?
     3142  echo "$as_me:3142: \$? = $ac_status" >&5
     3143  (exit $ac_status); }; }; then
    16013144  ac_cv_struct_tm=time.h
    16023145else
    1603   echo "configure: failed program was:" >&5
    1604   cat conftest.$ac_ext >&5
    1605   rm -rf conftest*
    1606   ac_cv_struct_tm=sys/time.h
    1607 fi
    1608 rm -f conftest*
    1609 fi
    1610 
    1611 echo "$ac_t""$ac_cv_struct_tm" 1>&6
     3146  echo "$as_me: failed program was:" >&5
     3147cat conftest.$ac_ext >&5
     3148ac_cv_struct_tm=sys/time.h
     3149fi
     3150rm -f conftest.$ac_objext conftest.$ac_ext
     3151fi
     3152echo "$as_me:3152: result: $ac_cv_struct_tm" >&5
     3153echo "${ECHO_T}$ac_cv_struct_tm" >&6
    16123154if test $ac_cv_struct_tm = sys/time.h; then
    1613   cat >> confdefs.h <<\EOF
     3155
     3156cat >>confdefs.h <<\EOF
    16143157#define TM_IN_SYS_TIME 1
    16153158EOF
     
    16173160fi
    16183161
    1619 
    16203162if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    1621 cat > conftest.$ac_ext <<EOF
    1622 #line 1623 "configure"
     3163cat >conftest.$ac_ext <<_ACEOF
     3164#line 3164 "configure"
    16233165#include "confdefs.h"
    16243166#include <stdio.h>
    16253167
    1626 int main() {
    1627  FILE *rubbish = popen("yes", "r");
    1628 ; return 0; }
    1629 EOF
    1630 if { (eval echo configure:1631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3168int
     3169main ()
     3170{
     3171 FILE *rubbish = popen("yes", "r");
     3172  ;
     3173  return 0;
     3174}
     3175_ACEOF
     3176rm -f conftest.$ac_objext
     3177if { (eval echo "$as_me:3177: \"$ac_compile\"") >&5
     3178  (eval $ac_compile) 2>&5
     3179  ac_status=$?
     3180  echo "$as_me:3180: \$? = $ac_status" >&5
     3181  (exit $ac_status); } &&
     3182         { ac_try='test -s conftest.$ac_objext'
     3183  { (eval echo "$as_me:3183: \"$ac_try\"") >&5
     3184  (eval $ac_try) 2>&5
     3185  ac_status=$?
     3186  echo "$as_me:3186: \$? = $ac_status" >&5
     3187  (exit $ac_status); }; }; then
    16313188  :
    16323189else
    1633   echo "configure: failed program was:" >&5
    1634   cat conftest.$ac_ext >&5
    1635   rm -rf conftest*
    1636   CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    1637 fi
    1638 rm -f conftest*
    1639 fi
    1640 
    1641 
    1642 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    1643 echo "configure:1644: checking for main in -lm" >&5
    1644 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    1645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1646   echo $ac_n "(cached) $ac_c" 1>&6
    1647 else
    1648   ac_save_LIBS="$LIBS"
     3190  echo "$as_me: failed program was:" >&5
     3191cat conftest.$ac_ext >&5
     3192CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     3193fi
     3194rm -f conftest.$ac_objext conftest.$ac_ext
     3195fi
     3196
     3197echo "$as_me:3197: checking for main in -lm" >&5
     3198echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     3199if test "${ac_cv_lib_m_main+set}" = set; then
     3200  echo $ECHO_N "(cached) $ECHO_C" >&6
     3201else
     3202  ac_check_lib_save_LIBS=$LIBS
    16493203LIBS="-lm  $LIBS"
    1650 cat > conftest.$ac_ext <<EOF
    1651 #line 1652 "configure"
    1652 #include "confdefs.h"
    1653 
    1654 int main() {
    1655 main()
    1656 ; return 0; }
    1657 EOF
    1658 if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1659   rm -rf conftest*
    1660   eval "ac_cv_lib_$ac_lib_var=yes"
    1661 else
    1662   echo "configure: failed program was:" >&5
    1663   cat conftest.$ac_ext >&5
    1664   rm -rf conftest*
    1665   eval "ac_cv_lib_$ac_lib_var=no"
    1666 fi
    1667 rm -f conftest*
    1668 LIBS="$ac_save_LIBS"
    1669 
    1670 fi
    1671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1672   echo "$ac_t""yes" 1>&6
    1673     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1674     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1675   cat >> confdefs.h <<EOF
    1676 #define $ac_tr_lib 1
     3204cat >conftest.$ac_ext <<_ACEOF
     3205#line 3205 "configure"
     3206#include "confdefs.h"
     3207
     3208int
     3209main ()
     3210{
     3211main ();
     3212  ;
     3213  return 0;
     3214}
     3215_ACEOF
     3216rm -f conftest.$ac_objext conftest$ac_exeext
     3217if { (eval echo "$as_me:3217: \"$ac_link\"") >&5
     3218  (eval $ac_link) 2>&5
     3219  ac_status=$?
     3220  echo "$as_me:3220: \$? = $ac_status" >&5
     3221  (exit $ac_status); } &&
     3222         { ac_try='test -s conftest$ac_exeext'
     3223  { (eval echo "$as_me:3223: \"$ac_try\"") >&5
     3224  (eval $ac_try) 2>&5
     3225  ac_status=$?
     3226  echo "$as_me:3226: \$? = $ac_status" >&5
     3227  (exit $ac_status); }; }; then
     3228  ac_cv_lib_m_main=yes
     3229else
     3230  echo "$as_me: failed program was:" >&5
     3231cat conftest.$ac_ext >&5
     3232ac_cv_lib_m_main=no
     3233fi
     3234rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3235LIBS=$ac_check_lib_save_LIBS
     3236fi
     3237echo "$as_me:3237: result: $ac_cv_lib_m_main" >&5
     3238echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     3239if test $ac_cv_lib_m_main = yes; then
     3240  cat >>confdefs.h <<EOF
     3241#define HAVE_LIBM 1
    16773242EOF
    16783243
    16793244  LIBS="-lm $LIBS"
    16803245
    1681 else
    1682   echo "$ac_t""no" 1>&6
    1683 fi
    1684 
     3246fi
    16853247
    16863248ac_header_dirent=no
    1687 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
    1688 do
    1689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1690 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    1691 echo "configure:1692: checking for $ac_hdr that defines DIR" >&5
    1692 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    1693   echo $ac_n "(cached) $ac_c" 1>&6
    1694 else
    1695   cat > conftest.$ac_ext <<EOF
    1696 #line 1697 "configure"
     3249for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
     3250  ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
     3251echo "$as_me:3251: checking for $ac_hdr that defines DIR" >&5
     3252echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
     3253if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     3254  echo $ECHO_N "(cached) $ECHO_C" >&6
     3255else
     3256  cat >conftest.$ac_ext <<_ACEOF
     3257#line 3257 "configure"
    16973258#include "confdefs.h"
    16983259#include <sys/types.h>
    16993260#include <$ac_hdr>
    1700 int main() {
     3261
     3262int
     3263main ()
     3264{
    17013265DIR *dirp = 0;
    1702 ; return 0; }
    1703 EOF
    1704 if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1705   rm -rf conftest*
    1706   eval "ac_cv_header_dirent_$ac_safe=yes"
    1707 else
    1708   echo "configure: failed program was:" >&5
    1709   cat conftest.$ac_ext >&5
    1710   rm -rf conftest*
    1711   eval "ac_cv_header_dirent_$ac_safe=no"
    1712 fi
    1713 rm -f conftest*
    1714 fi
    1715 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    1716   echo "$ac_t""yes" 1>&6
    1717     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1718   cat >> confdefs.h <<EOF
    1719 #define $ac_tr_hdr 1
    1720 EOF
    1721  ac_header_dirent=$ac_hdr; break
    1722 else
    1723   echo "$ac_t""no" 1>&6
    1724 fi
     3266  ;
     3267  return 0;
     3268}
     3269_ACEOF
     3270rm -f conftest.$ac_objext
     3271if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5
     3272  (eval $ac_compile) 2>&5
     3273  ac_status=$?
     3274  echo "$as_me:3274: \$? = $ac_status" >&5
     3275  (exit $ac_status); } &&
     3276         { ac_try='test -s conftest.$ac_objext'
     3277  { (eval echo "$as_me:3277: \"$ac_try\"") >&5
     3278  (eval $ac_try) 2>&5
     3279  ac_status=$?
     3280  echo "$as_me:3280: \$? = $ac_status" >&5
     3281  (exit $ac_status); }; }; then
     3282  eval "$ac_ac_Header=yes"
     3283else
     3284  echo "$as_me: failed program was:" >&5
     3285cat conftest.$ac_ext >&5
     3286eval "$ac_ac_Header=no"
     3287fi
     3288rm -f conftest.$ac_objext conftest.$ac_ext
     3289fi
     3290echo "$as_me:3290: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     3291echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     3292if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     3293  cat >>confdefs.h <<EOF
     3294#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
     3295EOF
     3296
     3297ac_header_dirent=$ac_hdr; break
     3298fi
     3299
    17253300done
    17263301# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    17273302if test $ac_header_dirent = dirent.h; then
    1728 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    1729 echo "configure:1730: checking for opendir in -ldir" >&5
    1730 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    1731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1732   echo $ac_n "(cached) $ac_c" 1>&6
    1733 else
    1734   ac_save_LIBS="$LIBS"
     3303  echo "$as_me:3303: checking for opendir in -ldir" >&5
     3304echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
     3305if test "${ac_cv_lib_dir_opendir+set}" = set; then
     3306  echo $ECHO_N "(cached) $ECHO_C" >&6
     3307else
     3308  ac_check_lib_save_LIBS=$LIBS
    17353309LIBS="-ldir  $LIBS"
    1736 cat > conftest.$ac_ext <<EOF
    1737 #line 1738 "configure"
    1738 #include "confdefs.h"
     3310cat >conftest.$ac_ext <<_ACEOF
     3311#line 3311 "configure"
     3312#include "confdefs.h"
     3313
    17393314/* Override any gcc2 internal prototype to avoid an error.  */
     3315#ifdef __cplusplus
     3316extern "C"
     3317#endif
    17403318/* We use char because int might match the return type of a gcc2
    1741     builtin and then its argument prototype would still apply.  */
    1742 char opendir();
    1743 
    1744 int main() {
    1745 opendir()
    1746 ; return 0; }
    1747 EOF
    1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1749   rm -rf conftest*
    1750   eval "ac_cv_lib_$ac_lib_var=yes"
    1751 else
    1752   echo "configure: failed program was:" >&5
    1753   cat conftest.$ac_ext >&5
    1754   rm -rf conftest*
    1755   eval "ac_cv_lib_$ac_lib_var=no"
    1756 fi
    1757 rm -f conftest*
    1758 LIBS="$ac_save_LIBS"
    1759 
    1760 fi
    1761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1762   echo "$ac_t""yes" 1>&6
     3319   builtin and then its argument prototype would still apply.  */
     3320char opendir ();
     3321int
     3322main ()
     3323{
     3324opendir ();
     3325  ;
     3326  return 0;
     3327}
     3328_ACEOF
     3329rm -f conftest.$ac_objext conftest$ac_exeext
     3330if { (eval echo "$as_me:3330: \"$ac_link\"") >&5
     3331  (eval $ac_link) 2>&5
     3332  ac_status=$?
     3333  echo "$as_me:3333: \$? = $ac_status" >&5
     3334  (exit $ac_status); } &&
     3335         { ac_try='test -s conftest$ac_exeext'
     3336  { (eval echo "$as_me:3336: \"$ac_try\"") >&5
     3337  (eval $ac_try) 2>&5
     3338  ac_status=$?
     3339  echo "$as_me:3339: \$? = $ac_status" >&5
     3340  (exit $ac_status); }; }; then
     3341  ac_cv_lib_dir_opendir=yes
     3342else
     3343  echo "$as_me: failed program was:" >&5
     3344cat conftest.$ac_ext >&5
     3345ac_cv_lib_dir_opendir=no
     3346fi
     3347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3348LIBS=$ac_check_lib_save_LIBS
     3349fi
     3350echo "$as_me:3350: result: $ac_cv_lib_dir_opendir" >&5
     3351echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
     3352if test $ac_cv_lib_dir_opendir = yes; then
    17633353  LIBS="$LIBS -ldir"
    1764 else
    1765   echo "$ac_t""no" 1>&6
    1766 fi
    1767 
    1768 else
    1769 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
    1770 echo "configure:1771: checking for opendir in -lx" >&5
    1771 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
    1772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1773   echo $ac_n "(cached) $ac_c" 1>&6
    1774 else
    1775   ac_save_LIBS="$LIBS"
     3354fi
     3355
     3356else
     3357  echo "$as_me:3357: checking for opendir in -lx" >&5
     3358echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
     3359if test "${ac_cv_lib_x_opendir+set}" = set; then
     3360  echo $ECHO_N "(cached) $ECHO_C" >&6
     3361else
     3362  ac_check_lib_save_LIBS=$LIBS
    17763363LIBS="-lx  $LIBS"
    1777 cat > conftest.$ac_ext <<EOF
    1778 #line 1779 "configure"
    1779 #include "confdefs.h"
     3364cat >conftest.$ac_ext <<_ACEOF
     3365#line 3365 "configure"
     3366#include "confdefs.h"
     3367
    17803368/* Override any gcc2 internal prototype to avoid an error.  */
     3369#ifdef __cplusplus
     3370extern "C"
     3371#endif
    17813372/* We use char because int might match the return type of a gcc2
    1782     builtin and then its argument prototype would still apply.  */
    1783 char opendir();
    1784 
    1785 int main() {
    1786 opendir()
    1787 ; return 0; }
    1788 EOF
    1789 if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1790   rm -rf conftest*
    1791   eval "ac_cv_lib_$ac_lib_var=yes"
    1792 else
    1793   echo "configure: failed program was:" >&5
    1794   cat conftest.$ac_ext >&5
    1795   rm -rf conftest*
    1796   eval "ac_cv_lib_$ac_lib_var=no"
    1797 fi
    1798 rm -f conftest*
    1799 LIBS="$ac_save_LIBS"
    1800 
    1801 fi
    1802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1803   echo "$ac_t""yes" 1>&6
     3373   builtin and then its argument prototype would still apply.  */
     3374char opendir ();
     3375int
     3376main ()
     3377{
     3378opendir ();
     3379  ;
     3380  return 0;
     3381}
     3382_ACEOF
     3383rm -f conftest.$ac_objext conftest$ac_exeext
     3384if { (eval echo "$as_me:3384: \"$ac_link\"") >&5
     3385  (eval $ac_link) 2>&5
     3386  ac_status=$?
     3387  echo "$as_me:3387: \$? = $ac_status" >&5
     3388  (exit $ac_status); } &&
     3389         { ac_try='test -s conftest$ac_exeext'
     3390  { (eval echo "$as_me:3390: \"$ac_try\"") >&5
     3391  (eval $ac_try) 2>&5
     3392  ac_status=$?
     3393  echo "$as_me:3393: \$? = $ac_status" >&5
     3394  (exit $ac_status); }; }; then
     3395  ac_cv_lib_x_opendir=yes
     3396else
     3397  echo "$as_me: failed program was:" >&5
     3398cat conftest.$ac_ext >&5
     3399ac_cv_lib_x_opendir=no
     3400fi
     3401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3402LIBS=$ac_check_lib_save_LIBS
     3403fi
     3404echo "$as_me:3404: result: $ac_cv_lib_x_opendir" >&5
     3405echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
     3406if test $ac_cv_lib_x_opendir = yes; then
    18043407  LIBS="$LIBS -lx"
    1805 else
    1806   echo "$ac_t""no" 1>&6
    1807 fi
    1808 
    1809 fi
    1810 
    1811 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1812 echo "configure:1813: checking for ANSI C header files" >&5
    1813 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1814   echo $ac_n "(cached) $ac_c" 1>&6
    1815 else
    1816   cat > conftest.$ac_ext <<EOF
    1817 #line 1818 "configure"
     3408fi
     3409
     3410fi
     3411
     3412echo "$as_me:3412: checking for ANSI C header files" >&5
     3413echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3414if test "${ac_cv_header_stdc+set}" = set; then
     3415  echo $ECHO_N "(cached) $ECHO_C" >&6
     3416else
     3417  cat >conftest.$ac_ext <<_ACEOF
     3418#line 3418 "configure"
    18183419#include "confdefs.h"
    18193420#include <stdlib.h>
     
    18213422#include <string.h>
    18223423#include <float.h>
    1823 EOF
    1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1826 ac_err=`grep -v '^ *+' conftest.out`
    1827 if test -z "$ac_err"; then
    1828   rm -rf conftest*
     3424
     3425_ACEOF
     3426if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5
     3427  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3428  ac_status=$?
     3429  egrep -v '^ *\+' conftest.er1 >conftest.err
     3430  rm -f conftest.er1
     3431  cat conftest.err >&5
     3432  echo "$as_me:3432: \$? = $ac_status" >&5
     3433  (exit $ac_status); } >/dev/null; then
     3434  if test -s conftest.err; then
     3435    ac_cpp_err=$ac_c_preproc_warn_flag
     3436  else
     3437    ac_cpp_err=
     3438  fi
     3439else
     3440  ac_cpp_err=yes
     3441fi
     3442if test -z "$ac_cpp_err"; then
    18293443  ac_cv_header_stdc=yes
    18303444else
    1831   echo "$ac_err" >&5
    1832   echo "configure: failed program was:" >&5
     3445  echo "$as_me: failed program was:" >&5
    18333446  cat conftest.$ac_ext >&5
    1834   rm -rf conftest*
    18353447  ac_cv_header_stdc=no
    18363448fi
    1837 rm -f conftest*
     3449rm -f conftest.err conftest.$ac_ext
    18383450
    18393451if test $ac_cv_header_stdc = yes; then
    18403452  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1841 cat > conftest.$ac_ext <<EOF
    1842 #line 1843 "configure"
     3453  cat >conftest.$ac_ext <<_ACEOF
     3454#line 3454 "configure"
    18433455#include "confdefs.h"
    18443456#include <string.h>
    1845 EOF
     3457
     3458_ACEOF
    18463459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    18473460  egrep "memchr" >/dev/null 2>&1; then
    18483461  :
    18493462else
    1850   rm -rf conftest*
    18513463  ac_cv_header_stdc=no
    18523464fi
     
    18573469if test $ac_cv_header_stdc = yes; then
    18583470  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1859 cat > conftest.$ac_ext <<EOF
    1860 #line 1861 "configure"
     3471  cat >conftest.$ac_ext <<_ACEOF
     3472#line 3472 "configure"
    18613473#include "confdefs.h"
    18623474#include <stdlib.h>
    1863 EOF
     3475
     3476_ACEOF
    18643477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    18653478  egrep "free" >/dev/null 2>&1; then
    18663479  :
    18673480else
    1868   rm -rf conftest*
    18693481  ac_cv_header_stdc=no
    18703482fi
     
    18753487if test $ac_cv_header_stdc = yes; then
    18763488  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1877 if test "$cross_compiling" = yes; then
     3489  if test "$cross_compiling" = yes; then
    18783490  :
    18793491else
    1880   cat > conftest.$ac_ext <<EOF
    1881 #line 1882 "configure"
     3492  cat >conftest.$ac_ext <<_ACEOF
     3493#line 3493 "configure"
    18823494#include "confdefs.h"
    18833495#include <ctype.h>
    1884 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1885 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3496#if ((' ' & 0x0FF) == 0x020)
     3497# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3498# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3499#else
     3500# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     3501                     || ('j' <= (c) && (c) <= 'r') \
     3502                     || ('s' <= (c) && (c) <= 'z'))
     3503# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3504#endif
     3505
    18863506#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1887 int main () { int i; for (i = 0; i < 256; i++)
    1888 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1889 exit (0); }
    1890 
    1891 EOF
    1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1893 then
     3507int
     3508main ()
     3509{
     3510  int i;
     3511  for (i = 0; i < 256; i++)
     3512    if (XOR (islower (i), ISLOWER (i))
     3513        || toupper (i) != TOUPPER (i))
     3514      exit(2);
     3515  exit (0);
     3516}
     3517_ACEOF
     3518rm -f conftest$ac_exeext
     3519if { (eval echo "$as_me:3519: \"$ac_link\"") >&5
     3520  (eval $ac_link) 2>&5
     3521  ac_status=$?
     3522  echo "$as_me:3522: \$? = $ac_status" >&5
     3523  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3524  { (eval echo "$as_me:3524: \"$ac_try\"") >&5
     3525  (eval $ac_try) 2>&5
     3526  ac_status=$?
     3527  echo "$as_me:3527: \$? = $ac_status" >&5
     3528  (exit $ac_status); }; }; then
    18943529  :
    18953530else
    1896   echo "configure: failed program was:" >&5
     3531  echo "$as_me: program exited with status $ac_status" >&5
     3532echo "$as_me: failed program was:" >&5
     3533cat conftest.$ac_ext >&5
     3534ac_cv_header_stdc=no
     3535fi
     3536rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     3537fi
     3538fi
     3539fi
     3540echo "$as_me:3540: result: $ac_cv_header_stdc" >&5
     3541echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3542if test $ac_cv_header_stdc = yes; then
     3543
     3544cat >>confdefs.h <<\EOF
     3545#define STDC_HEADERS 1
     3546EOF
     3547
     3548fi
     3549
     3550for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
     3551do
     3552ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     3553echo "$as_me:3553: checking for $ac_header" >&5
     3554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3555if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     3556  echo $ECHO_N "(cached) $ECHO_C" >&6
     3557else
     3558  cat >conftest.$ac_ext <<_ACEOF
     3559#line 3559 "configure"
     3560#include "confdefs.h"
     3561#include <$ac_header>
     3562_ACEOF
     3563if { (eval echo "$as_me:3563: \"$ac_cpp conftest.$ac_ext\"") >&5
     3564  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3565  ac_status=$?
     3566  egrep -v '^ *\+' conftest.er1 >conftest.err
     3567  rm -f conftest.er1
     3568  cat conftest.err >&5
     3569  echo "$as_me:3569: \$? = $ac_status" >&5
     3570  (exit $ac_status); } >/dev/null; then
     3571  if test -s conftest.err; then
     3572    ac_cpp_err=$ac_c_preproc_warn_flag
     3573  else
     3574    ac_cpp_err=
     3575  fi
     3576else
     3577  ac_cpp_err=yes
     3578fi
     3579if test -z "$ac_cpp_err"; then
     3580  eval "$ac_ac_Header=yes"
     3581else
     3582  echo "$as_me: failed program was:" >&5
    18973583  cat conftest.$ac_ext >&5
    1898   rm -fr conftest*
    1899   ac_cv_header_stdc=no
    1900 fi
    1901 rm -fr conftest*
    1902 fi
    1903 
    1904 fi
    1905 fi
    1906 
    1907 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    1908 if test $ac_cv_header_stdc = yes; then
    1909   cat >> confdefs.h <<\EOF
    1910 #define STDC_HEADERS 1
    1911 EOF
    1912 
    1913 fi
    1914 
    1915 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
    1916 do
    1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1919 echo "configure:1920: checking for $ac_hdr" >&5
    1920 if eval "test \"`echo '$''{'ac_cv_header_$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"
    1925 #include "confdefs.h"
    1926 #include <$ac_hdr>
    1927 EOF
    1928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1929 { (eval echo configure:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1930 ac_err=`grep -v '^ *+' conftest.out`
    1931 if test -z "$ac_err"; then
    1932   rm -rf conftest*
    1933   eval "ac_cv_header_$ac_safe=yes"
    1934 else
    1935   echo "$ac_err" >&5
    1936   echo "configure: failed program was:" >&5
    1937   cat conftest.$ac_ext >&5
    1938   rm -rf conftest*
    1939   eval "ac_cv_header_$ac_safe=no"
    1940 fi
    1941 rm -f conftest*
    1942 fi
    1943 if eval "test \"`echo '$ac_cv_header_'$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  
    1950 else
    1951   echo "$ac_t""no" 1>&6
     3584  eval "$ac_ac_Header=no"
     3585fi
     3586rm -f conftest.err conftest.$ac_ext
     3587fi
     3588echo "$as_me:3588: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     3589echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     3590if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     3591  cat >>confdefs.h <<EOF
     3592#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
     3593EOF
     3594
    19523595fi
    19533596done
    19543597
    1955 cat > conftest.$ac_ext <<EOF
    1956 #line 1957 "configure"
     3598cat >conftest.$ac_ext <<_ACEOF
     3599#line 3599 "configure"
    19573600#include "confdefs.h"
    19583601#include <stdio.h>
    1959 EOF
     3602
     3603_ACEOF
    19603604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    19613605  egrep "fread" >/dev/null 2>&1; then
    1962   rm -rf conftest*
    1963   cat >> confdefs.h <<\EOF
     3606  cat >>confdefs.h <<\EOF
    19643607#define HAVE_FREAD_DECL 1
    19653608EOF
     
    19683611rm -f conftest*
    19693612
    1970 cat > conftest.$ac_ext <<EOF
    1971 #line 1972 "configure"
     3613cat >conftest.$ac_ext <<_ACEOF
     3614#line 3614 "configure"
    19723615#include "confdefs.h"
    19733616#include <stdio.h>
    1974 EOF
     3617
     3618_ACEOF
    19753619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    19763620  egrep "fgetc" >/dev/null 2>&1; then
    1977   rm -rf conftest*
    1978   cat >> confdefs.h <<\EOF
     3621  cat >>confdefs.h <<\EOF
    19793622#define HAVE_FGETC_DECL 1
    19803623EOF
     
    19833626rm -f conftest*
    19843627
    1985 cat > conftest.$ac_ext <<EOF
    1986 #line 1987 "configure"
     3628cat >conftest.$ac_ext <<_ACEOF
     3629#line 3629 "configure"
    19873630#include "confdefs.h"
    19883631#include <sys/procfs.h>
    1989 EOF
     3632
     3633_ACEOF
    19903634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    19913635  egrep "pr_brksize" >/dev/null 2>&1; then
    1992   rm -rf conftest*
    1993   cat >> confdefs.h <<\EOF
     3636  cat >>confdefs.h <<\EOF
    19943637#define HAVE_PR_BRKSIZE 1
    19953638EOF
     
    19973640fi
    19983641rm -f conftest*
    1999 
    20003642
    20013643# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    20023644# for constant arguments.  Useless!
    2003 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2004 echo "configure:2005: checking for working alloca.h" >&5
    2005 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2006   echo $ac_n "(cached) $ac_c" 1>&6
    2007 else
    2008   cat > conftest.$ac_ext <<EOF
    2009 #line 2010 "configure"
     3645echo "$as_me:3645: checking for working alloca.h" >&5
     3646echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     3647if test "${ac_cv_working_alloca_h+set}" = set; then
     3648  echo $ECHO_N "(cached) $ECHO_C" >&6
     3649else
     3650  cat >conftest.$ac_ext <<_ACEOF
     3651#line 3651 "configure"
    20103652#include "confdefs.h"
    20113653#include <alloca.h>
    2012 int main() {
    2013 char *p = alloca(2 * sizeof(int));
    2014 ; return 0; }
    2015 EOF
    2016 if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2017   rm -rf conftest*
    2018   ac_cv_header_alloca_h=yes
    2019 else
    2020   echo "configure: failed program was:" >&5
    2021   cat conftest.$ac_ext >&5
    2022   rm -rf conftest*
    2023   ac_cv_header_alloca_h=no
    2024 fi
    2025 rm -f conftest*
    2026 fi
    2027 
    2028 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2029 if test $ac_cv_header_alloca_h = yes; then
    2030   cat >> confdefs.h <<\EOF
     3654int
     3655main ()
     3656{
     3657char *p = (char *) alloca (2 * sizeof (int));
     3658  ;
     3659  return 0;
     3660}
     3661_ACEOF
     3662rm -f conftest.$ac_objext conftest$ac_exeext
     3663if { (eval echo "$as_me:3663: \"$ac_link\"") >&5
     3664  (eval $ac_link) 2>&5
     3665  ac_status=$?
     3666  echo "$as_me:3666: \$? = $ac_status" >&5
     3667  (exit $ac_status); } &&
     3668         { ac_try='test -s conftest$ac_exeext'
     3669  { (eval echo "$as_me:3669: \"$ac_try\"") >&5
     3670  (eval $ac_try) 2>&5
     3671  ac_status=$?
     3672  echo "$as_me:3672: \$? = $ac_status" >&5
     3673  (exit $ac_status); }; }; then
     3674  ac_cv_working_alloca_h=yes
     3675else
     3676  echo "$as_me: failed program was:" >&5
     3677cat conftest.$ac_ext >&5
     3678ac_cv_working_alloca_h=no
     3679fi
     3680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3681fi
     3682echo "$as_me:3682: result: $ac_cv_working_alloca_h" >&5
     3683echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     3684if test $ac_cv_working_alloca_h = yes; then
     3685
     3686cat >>confdefs.h <<\EOF
    20313687#define HAVE_ALLOCA_H 1
    20323688EOF
     
    20343690fi
    20353691
    2036 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2037 echo "configure:2038: checking for alloca" >&5
    2038 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2039   echo $ac_n "(cached) $ac_c" 1>&6
    2040 else
    2041   cat > conftest.$ac_ext <<EOF
    2042 #line 2043 "configure"
    2043 #include "confdefs.h"
    2044 
     3692echo "$as_me:3692: checking for alloca" >&5
     3693echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     3694if test "${ac_cv_func_alloca_works+set}" = set; then
     3695  echo $ECHO_N "(cached) $ECHO_C" >&6
     3696else
     3697  cat >conftest.$ac_ext <<_ACEOF
     3698#line 3698 "configure"
     3699#include "confdefs.h"
    20453700#ifdef __GNUC__
    20463701# define alloca __builtin_alloca
    20473702#else
    2048 # if HAVE_ALLOCA_H
    2049 #  include <alloca.h>
     3703# ifdef _MSC_VER
     3704#  include <malloc.h>
     3705#  define alloca _alloca
    20503706# else
    2051 #  ifdef _AIX
     3707#  if HAVE_ALLOCA_H
     3708#   include <alloca.h>
     3709#  else
     3710#   ifdef _AIX
    20523711 #pragma alloca
    2053 else
    2054 #   ifndef alloca /* predefined by HP cc +Olibcalls */
     3712 else
     3713#    ifndef alloca /* predefined by HP cc +Olibcalls */
    20553714char *alloca ();
     3715#    endif
    20563716#   endif
    20573717#  endif
     
    20593719#endif
    20603720
    2061 int main() {
    2062 char *p = (char *) alloca(1);
    2063 ; return 0; }
    2064 EOF
    2065 if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2066   rm -rf conftest*
     3721int
     3722main ()
     3723{
     3724char *p = (char *) alloca (1);
     3725  ;
     3726  return 0;
     3727}
     3728_ACEOF
     3729rm -f conftest.$ac_objext conftest$ac_exeext
     3730if { (eval echo "$as_me:3730: \"$ac_link\"") >&5
     3731  (eval $ac_link) 2>&5
     3732  ac_status=$?
     3733  echo "$as_me:3733: \$? = $ac_status" >&5
     3734  (exit $ac_status); } &&
     3735         { ac_try='test -s conftest$ac_exeext'
     3736  { (eval echo "$as_me:3736: \"$ac_try\"") >&5
     3737  (eval $ac_try) 2>&5
     3738  ac_status=$?
     3739  echo "$as_me:3739: \$? = $ac_status" >&5
     3740  (exit $ac_status); }; }; then
    20673741  ac_cv_func_alloca_works=yes
    20683742else
    2069   echo "configure: failed program was:" >&5
    2070   cat conftest.$ac_ext >&5
    2071   rm -rf conftest*
    2072   ac_cv_func_alloca_works=no
    2073 fi
    2074 rm -f conftest*
    2075 fi
    2076 
    2077 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     3743  echo "$as_me: failed program was:" >&5
     3744cat conftest.$ac_ext >&5
     3745ac_cv_func_alloca_works=no
     3746fi
     3747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3748fi
     3749echo "$as_me:3749: result: $ac_cv_func_alloca_works" >&5
     3750echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     3751
    20783752if test $ac_cv_func_alloca_works = yes; then
    2079   cat >> confdefs.h <<\EOF
     3753
     3754cat >>confdefs.h <<\EOF
    20803755#define HAVE_ALLOCA 1
    20813756EOF
    20823757
    2083 fi
    2084 
    2085 if test $ac_cv_func_alloca_works = no; then
     3758else
    20863759  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    2087   # that cause trouble.  Some versions do not even contain alloca or
    2088   # contain a buggy version.  If you still want to use their alloca,
    2089   # use ar to extract alloca.o from them instead of compiling alloca.c.
    2090   ALLOCA=alloca.o
    2091   cat >> confdefs.h <<\EOF
     3760# that cause trouble.  Some versions do not even contain alloca or
     3761# contain a buggy version.  If you still want to use their alloca,
     3762# use ar to extract alloca.o from them instead of compiling alloca.c.
     3763
     3764ALLOCA=alloca.$ac_objext
     3765
     3766cat >>confdefs.h <<\EOF
    20923767#define C_ALLOCA 1
    20933768EOF
    20943769
    2095 
    2096 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2097 echo "configure:2098: checking whether alloca needs Cray hooks" >&5
    2098 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2099   echo $ac_n "(cached) $ac_c" 1>&6
    2100 else
    2101   cat > conftest.$ac_ext <<EOF
    2102 #line 2103 "configure"
     3770echo "$as_me:3770: checking whether \`alloca.c' needs Cray hooks" >&5
     3771echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     3772if test "${ac_cv_os_cray+set}" = set; then
     3773  echo $ECHO_N "(cached) $ECHO_C" >&6
     3774else
     3775  cat >conftest.$ac_ext <<_ACEOF
     3776#line 3776 "configure"
    21033777#include "confdefs.h"
    21043778#if defined(CRAY) && ! defined(CRAY2)
     
    21083782#endif
    21093783
    2110 EOF
     3784_ACEOF
    21113785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    21123786  egrep "webecray" >/dev/null 2>&1; then
    2113   rm -rf conftest*
    21143787  ac_cv_os_cray=yes
    21153788else
    2116   rm -rf conftest*
    21173789  ac_cv_os_cray=no
    21183790fi
     
    21203792
    21213793fi
    2122 
    2123 echo "$ac_t""$ac_cv_os_cray" 1>&6
     3794echo "$as_me:3794: result: $ac_cv_os_cray" >&5
     3795echo "${ECHO_T}$ac_cv_os_cray" >&6
    21243796if test $ac_cv_os_cray = yes; then
    2125 for ac_func in _getb67 GETB67 getb67; do
    2126   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2127 echo "configure:2128: checking for $ac_func" >&5
    2128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2129   echo $ac_n "(cached) $ac_c" 1>&6
    2130 else
    2131   cat > conftest.$ac_ext <<EOF
    2132 #line 2133 "configure"
     3797  for ac_func in _getb67 GETB67 getb67; do
     3798    ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     3799echo "$as_me:3799: checking for $ac_func" >&5
     3800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     3801if eval "test \"\${$ac_ac_var+set}\" = set"; then
     3802  echo $ECHO_N "(cached) $ECHO_C" >&6
     3803else
     3804  cat >conftest.$ac_ext <<_ACEOF
     3805#line 3805 "configure"
    21333806#include "confdefs.h"
    21343807/* System header to define __stub macros and hopefully few prototypes,
    2135     which can conflict with char $ac_func(); below.  */
     3808    which can conflict with char $ac_func (); below.  */
    21363809#include <assert.h>
    21373810/* Override any gcc2 internal prototype to avoid an error.  */
     3811#ifdef __cplusplus
     3812extern "C"
     3813#endif
    21383814/* We use char because int might match the return type of a gcc2
    2139     builtin and then its argument prototype would still apply.  */
    2140 char $ac_func();
    2141 
    2142 int main() {
    2143 
     3815   builtin and then its argument prototype would still apply.  */
     3816char $ac_func ();
     3817char (*f) ();
     3818
     3819int
     3820main ()
     3821{
    21443822/* The GNU C library defines this for functions which it implements
    21453823    to always fail with ENOSYS.  Some functions are actually named
     
    21483826choke me
    21493827#else
    2150 $ac_func();
     3828f = $ac_func;
    21513829#endif
    21523830
    2153 ; return 0; }
    2154 EOF
    2155 if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2156   rm -rf conftest*
    2157   eval "ac_cv_func_$ac_func=yes"
    2158 else
    2159   echo "configure: failed program was:" >&5
    2160   cat conftest.$ac_ext >&5
    2161   rm -rf conftest*
    2162   eval "ac_cv_func_$ac_func=no"
    2163 fi
    2164 rm -f conftest*
    2165 fi
    2166 
    2167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2168   echo "$ac_t""yes" 1>&6
    2169   cat >> confdefs.h <<EOF
     3831  ;
     3832  return 0;
     3833}
     3834_ACEOF
     3835rm -f conftest.$ac_objext conftest$ac_exeext
     3836if { (eval echo "$as_me:3836: \"$ac_link\"") >&5
     3837  (eval $ac_link) 2>&5
     3838  ac_status=$?
     3839  echo "$as_me:3839: \$? = $ac_status" >&5
     3840  (exit $ac_status); } &&
     3841         { ac_try='test -s conftest$ac_exeext'
     3842  { (eval echo "$as_me:3842: \"$ac_try\"") >&5
     3843  (eval $ac_try) 2>&5
     3844  ac_status=$?
     3845  echo "$as_me:3845: \$? = $ac_status" >&5
     3846  (exit $ac_status); }; }; then
     3847  eval "$ac_ac_var=yes"
     3848else
     3849  echo "$as_me: failed program was:" >&5
     3850cat conftest.$ac_ext >&5
     3851eval "$ac_ac_var=no"
     3852fi
     3853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3854fi
     3855echo "$as_me:3855: result: `eval echo '${'$ac_ac_var'}'`" >&5
     3856echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     3857if test `eval echo '${'$ac_ac_var'}'` = yes; then
     3858
     3859cat >>confdefs.h <<EOF
    21703860#define CRAY_STACKSEG_END $ac_func
    21713861EOF
    21723862
    2173   break
    2174 else
    2175   echo "$ac_t""no" 1>&6
    2176 fi
    2177 
    2178 done
    2179 fi
    2180 
    2181 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2182 echo "configure:2183: checking stack direction for C alloca" >&5
    2183 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    2184   echo $ac_n "(cached) $ac_c" 1>&6
     3863    break
     3864fi
     3865
     3866  done
     3867fi
     3868
     3869echo "$as_me:3869: checking stack direction for C alloca" >&5
     3870echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
     3871if test "${ac_cv_c_stack_direction+set}" = set; then
     3872  echo $ECHO_N "(cached) $ECHO_C" >&6
    21853873else
    21863874  if test "$cross_compiling" = yes; then
    21873875  ac_cv_c_stack_direction=0
    21883876else
    2189   cat > conftest.$ac_ext <<EOF
    2190 #line 2191 "configure"
    2191 #include "confdefs.h"
     3877  cat >conftest.$ac_ext <<_ACEOF
     3878#line 3878 "configure"
     3879#include "confdefs.h"
     3880int
    21923881find_stack_direction ()
    21933882{
     
    22023891    return (&dummy > addr) ? 1 : -1;
    22033892}
     3893
     3894int
    22043895main ()
    22053896{
    2206   exit (find_stack_direction() < 0);
     3897  exit (find_stack_direction () < 0);
    22073898}
    2208 EOF
    2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    2210 then
     3899_ACEOF
     3900rm -f conftest$ac_exeext
     3901if { (eval echo "$as_me:3901: \"$ac_link\"") >&5
     3902  (eval $ac_link) 2>&5
     3903  ac_status=$?
     3904  echo "$as_me:3904: \$? = $ac_status" >&5
     3905  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3906  { (eval echo "$as_me:3906: \"$ac_try\"") >&5
     3907  (eval $ac_try) 2>&5
     3908  ac_status=$?
     3909  echo "$as_me:3909: \$? = $ac_status" >&5
     3910  (exit $ac_status); }; }; then
    22113911  ac_cv_c_stack_direction=1
    22123912else
    2213   echo "configure: failed program was:" >&5
    2214   cat conftest.$ac_ext >&5
    2215   rm -fr conftest*
    2216   ac_cv_c_stack_direction=-1
    2217 fi
    2218 rm -fr conftest*
    2219 fi
    2220 
    2221 fi
    2222 
    2223 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
    2224 cat >> confdefs.h <<EOF
     3913  echo "$as_me: program exited with status $ac_status" >&5
     3914echo "$as_me: failed program was:" >&5
     3915cat conftest.$ac_ext >&5
     3916ac_cv_c_stack_direction=-1
     3917fi
     3918rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     3919fi
     3920fi
     3921echo "$as_me:3921: result: $ac_cv_c_stack_direction" >&5
     3922echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
     3923
     3924cat >>confdefs.h <<EOF
    22253925#define STACK_DIRECTION $ac_cv_c_stack_direction
    22263926EOF
     
    22283928fi
    22293929
    2230 if test $ac_cv_prog_gcc = yes; then
    2231     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2232 echo "configure:2233: checking whether ${CC-cc} needs -traditional" >&5
    2233 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    2234   echo $ac_n "(cached) $ac_c" 1>&6
     3930if test $ac_cv_c_compiler_gnu = yes; then
     3931    echo "$as_me:3931: checking whether $CC needs -traditional" >&5
     3932echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
     3933if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     3934  echo $ECHO_N "(cached) $ECHO_C" >&6
    22353935else
    22363936    ac_pattern="Autoconf.*'x'"
    2237   cat > conftest.$ac_ext <<EOF
    2238 #line 2239 "configure"
     3937  cat >conftest.$ac_ext <<_ACEOF
     3938#line 3938 "configure"
    22393939#include "confdefs.h"
    22403940#include <sgtty.h>
    22413941Autoconf TIOCGETP
    2242 EOF
     3942_ACEOF
    22433943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    22443944  egrep "$ac_pattern" >/dev/null 2>&1; then
    2245   rm -rf conftest*
    22463945  ac_cv_prog_gcc_traditional=yes
    22473946else
    2248   rm -rf conftest*
    22493947  ac_cv_prog_gcc_traditional=no
    22503948fi
    22513949rm -f conftest*
    22523950
    2253 
    22543951  if test $ac_cv_prog_gcc_traditional = no; then
    2255     cat > conftest.$ac_ext <<EOF
    2256 #line 2257 "configure"
     3952    cat >conftest.$ac_ext <<_ACEOF
     3953#line 3953 "configure"
    22573954#include "confdefs.h"
    22583955#include <termio.h>
    22593956Autoconf TCGETA
    2260 EOF
     3957_ACEOF
    22613958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    22623959  egrep "$ac_pattern" >/dev/null 2>&1; then
    2263   rm -rf conftest*
    22643960  ac_cv_prog_gcc_traditional=yes
    22653961fi
     
    22683964  fi
    22693965fi
    2270 
    2271 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
     3966echo "$as_me:3966: result: $ac_cv_prog_gcc_traditional" >&5
     3967echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    22723968  if test $ac_cv_prog_gcc_traditional = yes; then
    22733969    CC="$CC -traditional"
     
    22753971fi
    22763972
    2277 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2278 echo "configure:2279: checking return type of signal handlers" >&5
    2279 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    2280   echo $ac_n "(cached) $ac_c" 1>&6
    2281 else
    2282   cat > conftest.$ac_ext <<EOF
    2283 #line 2284 "configure"
     3973echo "$as_me:3973: checking return type of signal handlers" >&5
     3974echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
     3975if test "${ac_cv_type_signal+set}" = set; then
     3976  echo $ECHO_N "(cached) $ECHO_C" >&6
     3977else
     3978  cat >conftest.$ac_ext <<_ACEOF
     3979#line 3979 "configure"
    22843980#include "confdefs.h"
    22853981#include <sys/types.h>
    22863982#include <signal.h>
    22873983#ifdef signal
    2288 #undef signal
     3984# undef signal
    22893985#endif
    22903986#ifdef __cplusplus
     
    22943990#endif
    22953991
    2296 int main() {
     3992int
     3993main ()
     3994{
    22973995int i;
    2298 ; return 0; }
    2299 EOF
    2300 if { (eval echo configure:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2301   rm -rf conftest*
     3996  ;
     3997  return 0;
     3998}
     3999_ACEOF
     4000rm -f conftest.$ac_objext
     4001if { (eval echo "$as_me:4001: \"$ac_compile\"") >&5
     4002  (eval $ac_compile) 2>&5
     4003  ac_status=$?
     4004  echo "$as_me:4004: \$? = $ac_status" >&5
     4005  (exit $ac_status); } &&
     4006         { ac_try='test -s conftest.$ac_objext'
     4007  { (eval echo "$as_me:4007: \"$ac_try\"") >&5
     4008  (eval $ac_try) 2>&5
     4009  ac_status=$?
     4010  echo "$as_me:4010: \$? = $ac_status" >&5
     4011  (exit $ac_status); }; }; then
    23024012  ac_cv_type_signal=void
    23034013else
    2304   echo "configure: failed program was:" >&5
    2305   cat conftest.$ac_ext >&5
    2306   rm -rf conftest*
    2307   ac_cv_type_signal=int
    2308 fi
    2309 rm -f conftest*
    2310 fi
    2311 
    2312 echo "$ac_t""$ac_cv_type_signal" 1>&6
    2313 cat >> confdefs.h <<EOF
     4014  echo "$as_me: failed program was:" >&5
     4015cat conftest.$ac_ext >&5
     4016ac_cv_type_signal=int
     4017fi
     4018rm -f conftest.$ac_objext conftest.$ac_ext
     4019fi
     4020echo "$as_me:4020: result: $ac_cv_type_signal" >&5
     4021echo "${ECHO_T}$ac_cv_type_signal" >&6
     4022
     4023cat >>confdefs.h <<EOF
    23144024#define RETSIGTYPE $ac_cv_type_signal
    23154025EOF
    23164026
    2317 
    2318 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2319 echo "configure:2320: checking for vprintf" >&5
    2320 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    2321   echo $ac_n "(cached) $ac_c" 1>&6
    2322 else
    2323   cat > conftest.$ac_ext <<EOF
    2324 #line 2325 "configure"
     4027for ac_func in vprintf
     4028do
     4029ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4030echo "$as_me:4030: checking for $ac_func" >&5
     4031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4032if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4033  echo $ECHO_N "(cached) $ECHO_C" >&6
     4034else
     4035  cat >conftest.$ac_ext <<_ACEOF
     4036#line 4036 "configure"
    23254037#include "confdefs.h"
    23264038/* System header to define __stub macros and hopefully few prototypes,
    2327     which can conflict with char vprintf(); below.  */
     4039    which can conflict with char $ac_func (); below.  */
    23284040#include <assert.h>
    23294041/* Override any gcc2 internal prototype to avoid an error.  */
     4042#ifdef __cplusplus
     4043extern "C"
     4044#endif
    23304045/* We use char because int might match the return type of a gcc2
    2331     builtin and then its argument prototype would still apply.  */
    2332 char vprintf();
    2333 
    2334 int main() {
    2335 
     4046   builtin and then its argument prototype would still apply.  */
     4047char $ac_func ();
     4048char (*f) ();
     4049
     4050int
     4051main ()
     4052{
    23364053/* The GNU C library defines this for functions which it implements
    23374054    to always fail with ENOSYS.  Some functions are actually named
    23384055    something starting with __ and the normal name is an alias.  */
    2339 #if defined (__stub_vprintf) || defined (__stub___vprintf)
     4056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    23404057choke me
    23414058#else
    2342 vprintf();
     4059f = $ac_func;
    23434060#endif
    23444061
    2345 ; return 0; }
    2346 EOF
    2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2348   rm -rf conftest*
    2349   eval "ac_cv_func_vprintf=yes"
    2350 else
    2351   echo "configure: failed program was:" >&5
    2352   cat conftest.$ac_ext >&5
    2353   rm -rf conftest*
    2354   eval "ac_cv_func_vprintf=no"
    2355 fi
    2356 rm -f conftest*
    2357 fi
    2358 
    2359 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    2360   echo "$ac_t""yes" 1>&6
    2361   cat >> confdefs.h <<\EOF
    2362 #define HAVE_VPRINTF 1
    2363 EOF
    2364 
    2365 else
    2366   echo "$ac_t""no" 1>&6
    2367 fi
    2368 
    2369 if test "$ac_cv_func_vprintf" != yes; then
    2370 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2371 echo "configure:2372: checking for _doprnt" >&5
    2372 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    2373   echo $ac_n "(cached) $ac_c" 1>&6
    2374 else
    2375   cat > conftest.$ac_ext <<EOF
    2376 #line 2377 "configure"
     4062  ;
     4063  return 0;
     4064}
     4065_ACEOF
     4066rm -f conftest.$ac_objext conftest$ac_exeext
     4067if { (eval echo "$as_me:4067: \"$ac_link\"") >&5
     4068  (eval $ac_link) 2>&5
     4069  ac_status=$?
     4070  echo "$as_me:4070: \$? = $ac_status" >&5
     4071  (exit $ac_status); } &&
     4072         { ac_try='test -s conftest$ac_exeext'
     4073  { (eval echo "$as_me:4073: \"$ac_try\"") >&5
     4074  (eval $ac_try) 2>&5
     4075  ac_status=$?
     4076  echo "$as_me:4076: \$? = $ac_status" >&5
     4077  (exit $ac_status); }; }; then
     4078  eval "$ac_ac_var=yes"
     4079else
     4080  echo "$as_me: failed program was:" >&5
     4081cat conftest.$ac_ext >&5
     4082eval "$ac_ac_var=no"
     4083fi
     4084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4085fi
     4086echo "$as_me:4086: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4087echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4088if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4089  cat >>confdefs.h <<EOF
     4090#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4091EOF
     4092
     4093echo "$as_me:4093: checking for _doprnt" >&5
     4094echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
     4095if test "${ac_cv_func__doprnt+set}" = set; then
     4096  echo $ECHO_N "(cached) $ECHO_C" >&6
     4097else
     4098  cat >conftest.$ac_ext <<_ACEOF
     4099#line 4099 "configure"
    23774100#include "confdefs.h"
    23784101/* System header to define __stub macros and hopefully few prototypes,
    2379     which can conflict with char _doprnt(); below.  */
     4102    which can conflict with char _doprnt (); below.  */
    23804103#include <assert.h>
    23814104/* Override any gcc2 internal prototype to avoid an error.  */
     4105#ifdef __cplusplus
     4106extern "C"
     4107#endif
    23824108/* We use char because int might match the return type of a gcc2
    2383     builtin and then its argument prototype would still apply.  */
    2384 char _doprnt();
    2385 
    2386 int main() {
    2387 
     4109   builtin and then its argument prototype would still apply.  */
     4110char _doprnt ();
     4111char (*f) ();
     4112
     4113int
     4114main ()
     4115{
    23884116/* The GNU C library defines this for functions which it implements
    23894117    to always fail with ENOSYS.  Some functions are actually named
     
    23924120choke me
    23934121#else
    2394 _doprnt();
     4122f = _doprnt;
    23954123#endif
    23964124
    2397 ; return 0; }
    2398 EOF
    2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2400   rm -rf conftest*
    2401   eval "ac_cv_func__doprnt=yes"
    2402 else
    2403   echo "configure: failed program was:" >&5
    2404   cat conftest.$ac_ext >&5
    2405   rm -rf conftest*
    2406   eval "ac_cv_func__doprnt=no"
    2407 fi
    2408 rm -f conftest*
    2409 fi
    2410 
    2411 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    2412   echo "$ac_t""yes" 1>&6
    2413   cat >> confdefs.h <<\EOF
     4125  ;
     4126  return 0;
     4127}
     4128_ACEOF
     4129rm -f conftest.$ac_objext conftest$ac_exeext
     4130if { (eval echo "$as_me:4130: \"$ac_link\"") >&5
     4131  (eval $ac_link) 2>&5
     4132  ac_status=$?
     4133  echo "$as_me:4133: \$? = $ac_status" >&5
     4134  (exit $ac_status); } &&
     4135         { ac_try='test -s conftest$ac_exeext'
     4136  { (eval echo "$as_me:4136: \"$ac_try\"") >&5
     4137  (eval $ac_try) 2>&5
     4138  ac_status=$?
     4139  echo "$as_me:4139: \$? = $ac_status" >&5
     4140  (exit $ac_status); }; }; then
     4141  ac_cv_func__doprnt=yes
     4142else
     4143  echo "$as_me: failed program was:" >&5
     4144cat conftest.$ac_ext >&5
     4145ac_cv_func__doprnt=no
     4146fi
     4147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4148fi
     4149echo "$as_me:4149: result: $ac_cv_func__doprnt" >&5
     4150echo "${ECHO_T}$ac_cv_func__doprnt" >&6
     4151if test $ac_cv_func__doprnt = yes; then
     4152
     4153cat >>confdefs.h <<\EOF
    24144154#define HAVE_DOPRNT 1
    24154155EOF
    24164156
    2417 else
    2418   echo "$ac_t""no" 1>&6
    2419 fi
    2420 
    2421 fi
     4157fi
     4158
     4159fi
     4160done
    24224161
    24234162for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
    24244163do
    2425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2426 echo "configure:2427: checking for $ac_func" >&5
    2427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2428   echo $ac_n "(cached) $ac_c" 1>&6
    2429 else
    2430   cat > conftest.$ac_ext <<EOF
    2431 #line 2432 "configure"
     4164ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4165echo "$as_me:4165: checking for $ac_func" >&5
     4166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4167if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4168  echo $ECHO_N "(cached) $ECHO_C" >&6
     4169else
     4170  cat >conftest.$ac_ext <<_ACEOF
     4171#line 4171 "configure"
    24324172#include "confdefs.h"
    24334173/* System header to define __stub macros and hopefully few prototypes,
    2434     which can conflict with char $ac_func(); below.  */
     4174    which can conflict with char $ac_func (); below.  */
    24354175#include <assert.h>
    24364176/* Override any gcc2 internal prototype to avoid an error.  */
     4177#ifdef __cplusplus
     4178extern "C"
     4179#endif
    24374180/* We use char because int might match the return type of a gcc2
    2438     builtin and then its argument prototype would still apply.  */
    2439 char $ac_func();
    2440 
    2441 int main() {
    2442 
     4181   builtin and then its argument prototype would still apply.  */
     4182char $ac_func ();
     4183char (*f) ();
     4184
     4185int
     4186main ()
     4187{
    24434188/* The GNU C library defines this for functions which it implements
    24444189    to always fail with ENOSYS.  Some functions are actually named
     
    24474192choke me
    24484193#else
    2449 $ac_func();
     4194f = $ac_func;
    24504195#endif
    24514196
    2452 ; return 0; }
    2453 EOF
    2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2455   rm -rf conftest*
    2456   eval "ac_cv_func_$ac_func=yes"
    2457 else
    2458   echo "configure: failed program was:" >&5
    2459   cat conftest.$ac_ext >&5
    2460   rm -rf conftest*
    2461   eval "ac_cv_func_$ac_func=no"
    2462 fi
    2463 rm -f conftest*
    2464 fi
    2465 
    2466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2467   echo "$ac_t""yes" 1>&6
    2468     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2469   cat >> confdefs.h <<EOF
    2470 #define $ac_tr_func 1
    2471 EOF
    2472  
    2473 else
    2474   echo "$ac_t""no" 1>&6
     4197  ;
     4198  return 0;
     4199}
     4200_ACEOF
     4201rm -f conftest.$ac_objext conftest$ac_exeext
     4202if { (eval echo "$as_me:4202: \"$ac_link\"") >&5
     4203  (eval $ac_link) 2>&5
     4204  ac_status=$?
     4205  echo "$as_me:4205: \$? = $ac_status" >&5
     4206  (exit $ac_status); } &&
     4207         { ac_try='test -s conftest$ac_exeext'
     4208  { (eval echo "$as_me:4208: \"$ac_try\"") >&5
     4209  (eval $ac_try) 2>&5
     4210  ac_status=$?
     4211  echo "$as_me:4211: \$? = $ac_status" >&5
     4212  (exit $ac_status); }; }; then
     4213  eval "$ac_ac_var=yes"
     4214else
     4215  echo "$as_me: failed program was:" >&5
     4216cat conftest.$ac_ext >&5
     4217eval "$ac_ac_var=no"
     4218fi
     4219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4220fi
     4221echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4222echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4223if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4224  cat >>confdefs.h <<EOF
     4225#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4226EOF
     4227
    24754228fi
    24764229done
     
    24784231for ac_func in ftruncate strstr strcasecmp
    24794232do
    2480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2481 echo "configure:2482: checking for $ac_func" >&5
    2482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2483   echo $ac_n "(cached) $ac_c" 1>&6
    2484 else
    2485   cat > conftest.$ac_ext <<EOF
    2486 #line 2487 "configure"
     4233ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4234echo "$as_me:4234: checking for $ac_func" >&5
     4235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4236if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4237  echo $ECHO_N "(cached) $ECHO_C" >&6
     4238else
     4239  cat >conftest.$ac_ext <<_ACEOF
     4240#line 4240 "configure"
    24874241#include "confdefs.h"
    24884242/* System header to define __stub macros and hopefully few prototypes,
    2489     which can conflict with char $ac_func(); below.  */
     4243    which can conflict with char $ac_func (); below.  */
    24904244#include <assert.h>
    24914245/* Override any gcc2 internal prototype to avoid an error.  */
     4246#ifdef __cplusplus
     4247extern "C"
     4248#endif
    24924249/* We use char because int might match the return type of a gcc2
    2493     builtin and then its argument prototype would still apply.  */
    2494 char $ac_func();
    2495 
    2496 int main() {
    2497 
     4250   builtin and then its argument prototype would still apply.  */
     4251char $ac_func ();
     4252char (*f) ();
     4253
     4254int
     4255main ()
     4256{
    24984257/* The GNU C library defines this for functions which it implements
    24994258    to always fail with ENOSYS.  Some functions are actually named
     
    25024261choke me
    25034262#else
    2504 $ac_func();
     4263f = $ac_func;
    25054264#endif
    25064265
    2507 ; return 0; }
    2508 EOF
    2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2510   rm -rf conftest*
    2511   eval "ac_cv_func_$ac_func=yes"
    2512 else
    2513   echo "configure: failed program was:" >&5
    2514   cat conftest.$ac_ext >&5
    2515   rm -rf conftest*
    2516   eval "ac_cv_func_$ac_func=no"
    2517 fi
    2518 rm -f conftest*
    2519 fi
    2520 
    2521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2522   echo "$ac_t""yes" 1>&6
    2523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2524   cat >> confdefs.h <<EOF
    2525 #define $ac_tr_func 1
    2526 EOF
    2527  
    2528 else
    2529   echo "$ac_t""no" 1>&6
    2530 LIBOBJS="$LIBOBJS ${ac_func}.o"
     4266  ;
     4267  return 0;
     4268}
     4269_ACEOF
     4270rm -f conftest.$ac_objext conftest$ac_exeext
     4271if { (eval echo "$as_me:4271: \"$ac_link\"") >&5
     4272  (eval $ac_link) 2>&5
     4273  ac_status=$?
     4274  echo "$as_me:4274: \$? = $ac_status" >&5
     4275  (exit $ac_status); } &&
     4276         { ac_try='test -s conftest$ac_exeext'
     4277  { (eval echo "$as_me:4277: \"$ac_try\"") >&5
     4278  (eval $ac_try) 2>&5
     4279  ac_status=$?
     4280  echo "$as_me:4280: \$? = $ac_status" >&5
     4281  (exit $ac_status); }; }; then
     4282  eval "$ac_ac_var=yes"
     4283else
     4284  echo "$as_me: failed program was:" >&5
     4285cat conftest.$ac_ext >&5
     4286eval "$ac_ac_var=no"
     4287fi
     4288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4289fi
     4290echo "$as_me:4290: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4291echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4292if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4293  cat >>confdefs.h <<EOF
     4294#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4295EOF
     4296
     4297else
     4298  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
    25314299fi
    25324300done
    2533 
    2534 
    2535 
    25364301
    25374302# *** Custom checking (based on GNU tar configure.in) ***
    25384303# ---------------------------------------------------------------------------
    2539 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
    2540 echo "configure:2541: checking for HP-UX needing gmalloc" >&5
     4304echo "$as_me:4304: checking for HP-UX needing gmalloc" >&5
     4305echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    25414306if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    2542   echo "$ac_t""yes" 1>&6
     4307  echo "$as_me:4307: result: yes" >&5
     4308echo "${ECHO_T}yes" >&6
    25434309  LIBOBJS="$LIBOBJS gmalloc.o"
    2544   cat >> confdefs.h <<\EOF
     4310  cat >>confdefs.h <<\EOF
    25454311#define HAVE_VALLOC 1
    25464312EOF
    25474313
    25484314else
    2549   echo "$ac_t""no" 1>&6
    2550   for ac_func in valloc
     4315  echo "$as_me:4315: result: no" >&5
     4316echo "${ECHO_T}no" >&6
     4317
     4318for ac_func in valloc
    25514319do
    2552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2553 echo "configure:2554: checking for $ac_func" >&5
    2554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2555   echo $ac_n "(cached) $ac_c" 1>&6
    2556 else
    2557   cat > conftest.$ac_ext <<EOF
    2558 #line 2559 "configure"
     4320ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4321echo "$as_me:4321: checking for $ac_func" >&5
     4322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4323if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4324  echo $ECHO_N "(cached) $ECHO_C" >&6
     4325else
     4326  cat >conftest.$ac_ext <<_ACEOF
     4327#line 4327 "configure"
    25594328#include "confdefs.h"
    25604329/* System header to define __stub macros and hopefully few prototypes,
    2561     which can conflict with char $ac_func(); below.  */
     4330    which can conflict with char $ac_func (); below.  */
    25624331#include <assert.h>
    25634332/* Override any gcc2 internal prototype to avoid an error.  */
     4333#ifdef __cplusplus
     4334extern "C"
     4335#endif
    25644336/* We use char because int might match the return type of a gcc2
    2565     builtin and then its argument prototype would still apply.  */
    2566 char $ac_func();
    2567 
    2568 int main() {
    2569 
     4337   builtin and then its argument prototype would still apply.  */
     4338char $ac_func ();
     4339char (*f) ();
     4340
     4341int
     4342main ()
     4343{
    25704344/* The GNU C library defines this for functions which it implements
    25714345    to always fail with ENOSYS.  Some functions are actually named
     
    25744348choke me
    25754349#else
    2576 $ac_func();
     4350f = $ac_func;
    25774351#endif
    25784352
    2579 ; return 0; }
    2580 EOF
    2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2582   rm -rf conftest*
    2583   eval "ac_cv_func_$ac_func=yes"
    2584 else
    2585   echo "configure: failed program was:" >&5
    2586   cat conftest.$ac_ext >&5
    2587   rm -rf conftest*
    2588   eval "ac_cv_func_$ac_func=no"
    2589 fi
    2590 rm -f conftest*
    2591 fi
    2592 
    2593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2594   echo "$ac_t""yes" 1>&6
    2595     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2596   cat >> confdefs.h <<EOF
    2597 #define $ac_tr_func 1
    2598 EOF
    2599  
    2600 else
    2601   echo "$ac_t""no" 1>&6
     4353  ;
     4354  return 0;
     4355}
     4356_ACEOF
     4357rm -f conftest.$ac_objext conftest$ac_exeext
     4358if { (eval echo "$as_me:4358: \"$ac_link\"") >&5
     4359  (eval $ac_link) 2>&5
     4360  ac_status=$?
     4361  echo "$as_me:4361: \$? = $ac_status" >&5
     4362  (exit $ac_status); } &&
     4363         { ac_try='test -s conftest$ac_exeext'
     4364  { (eval echo "$as_me:4364: \"$ac_try\"") >&5
     4365  (eval $ac_try) 2>&5
     4366  ac_status=$?
     4367  echo "$as_me:4367: \$? = $ac_status" >&5
     4368  (exit $ac_status); }; }; then
     4369  eval "$ac_ac_var=yes"
     4370else
     4371  echo "$as_me: failed program was:" >&5
     4372cat conftest.$ac_ext >&5
     4373eval "$ac_ac_var=no"
     4374fi
     4375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4376fi
     4377echo "$as_me:4377: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4378echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4379if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4380  cat >>confdefs.h <<EOF
     4381#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4382EOF
     4383
    26024384fi
    26034385done
     
    26054387fi
    26064388
    2607 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
    2608 echo "configure:2609: checking if malloc debugging is wanted" >&5
     4389echo "$as_me:4389: checking if malloc debugging is wanted" >&5
     4390echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
     4391
    26094392# Check whether --with-dmalloc or --without-dmalloc was given.
    26104393if test "${with_dmalloc+set}" = set; then
    26114394  withval="$with_dmalloc"
    26124395  if test "$withval" = yes; then
    2613   echo "$ac_t""yes" 1>&6
    2614   cat >> confdefs.h <<\EOF
     4396  echo "$as_me:4396: result: yes" >&5
     4397echo "${ECHO_T}yes" >&6
     4398  cat >>confdefs.h <<\EOF
    26154399#define WITH_DMALLOC 1
    26164400EOF
     
    26194403  LDFLAGS="$LDFLAGS -g"
    26204404else
    2621   echo "$ac_t""no" 1>&6
    2622 fi
    2623 else
    2624   echo "$ac_t""no" 1>&6
    2625 fi
    2626 
    2627 
    2628 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
    2629 echo "configure:2630: checking which of rx or regex is wanted" >&5
     4405  echo "$as_me:4405: result: no" >&5
     4406echo "${ECHO_T}no" >&6
     4407fi
     4408else
     4409  echo "$as_me:4409: result: no" >&5
     4410echo "${ECHO_T}no" >&6
     4411fi;
     4412
     4413echo "$as_me:4413: checking which of rx or regex is wanted" >&5
     4414echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
     4415
    26304416# Check whether --with-regex or --without-regex was given.
    26314417if test "${with_regex+set}" = set; then
     
    26334419  if test "$withval" = yes; then
    26344420  ac_with_regex=1
    2635   echo "$ac_t""regex" 1>&6
    2636   cat >> confdefs.h <<\EOF
     4421  echo "$as_me:4421: result: regex" >&5
     4422echo "${ECHO_T}regex" >&6
     4423  cat >>confdefs.h <<\EOF
    26374424#define WITH_REGEX 1
    26384425EOF
     
    26404427  LIBOBJS="$LIBOBJS regex.o"
    26414428fi
    2642 fi
    2643 
     4429fi;
    26444430if test -z "$ac_with_regex"; then
    2645   echo "$ac_t""rx" 1>&6
    2646   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
    2647 echo "configure:2648: checking for re_rx_search" >&5
    2648 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    2649   echo $ac_n "(cached) $ac_c" 1>&6
    2650 else
    2651   cat > conftest.$ac_ext <<EOF
    2652 #line 2653 "configure"
     4431  echo "$as_me:4431: result: rx" >&5
     4432echo "${ECHO_T}rx" >&6
     4433  echo "$as_me:4433: checking for re_rx_search" >&5
     4434echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
     4435if test "${ac_cv_func_re_rx_search+set}" = set; then
     4436  echo $ECHO_N "(cached) $ECHO_C" >&6
     4437else
     4438  cat >conftest.$ac_ext <<_ACEOF
     4439#line 4439 "configure"
    26534440#include "confdefs.h"
    26544441/* System header to define __stub macros and hopefully few prototypes,
    2655     which can conflict with char re_rx_search(); below.  */
     4442    which can conflict with char re_rx_search (); below.  */
    26564443#include <assert.h>
    26574444/* Override any gcc2 internal prototype to avoid an error.  */
     4445#ifdef __cplusplus
     4446extern "C"
     4447#endif
    26584448/* We use char because int might match the return type of a gcc2
    2659     builtin and then its argument prototype would still apply.  */
    2660 char re_rx_search();
    2661 
    2662 int main() {
    2663 
     4449   builtin and then its argument prototype would still apply.  */
     4450char re_rx_search ();
     4451char (*f) ();
     4452
     4453int
     4454main ()
     4455{
    26644456/* The GNU C library defines this for functions which it implements
    26654457    to always fail with ENOSYS.  Some functions are actually named
     
    26684460choke me
    26694461#else
    2670 re_rx_search();
     4462f = re_rx_search;
    26714463#endif
    26724464
    2673 ; return 0; }
    2674 EOF
    2675 if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2676   rm -rf conftest*
    2677   eval "ac_cv_func_re_rx_search=yes"
    2678 else
    2679   echo "configure: failed program was:" >&5
    2680   cat conftest.$ac_ext >&5
    2681   rm -rf conftest*
    2682   eval "ac_cv_func_re_rx_search=no"
    2683 fi
    2684 rm -f conftest*
    2685 fi
    2686 
    2687 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
    2688   echo "$ac_t""yes" 1>&6
     4465  ;
     4466  return 0;
     4467}
     4468_ACEOF
     4469rm -f conftest.$ac_objext conftest$ac_exeext
     4470if { (eval echo "$as_me:4470: \"$ac_link\"") >&5
     4471  (eval $ac_link) 2>&5
     4472  ac_status=$?
     4473  echo "$as_me:4473: \$? = $ac_status" >&5
     4474  (exit $ac_status); } &&
     4475         { ac_try='test -s conftest$ac_exeext'
     4476  { (eval echo "$as_me:4476: \"$ac_try\"") >&5
     4477  (eval $ac_try) 2>&5
     4478  ac_status=$?
     4479  echo "$as_me:4479: \$? = $ac_status" >&5
     4480  (exit $ac_status); }; }; then
     4481  ac_cv_func_re_rx_search=yes
     4482else
     4483  echo "$as_me: failed program was:" >&5
     4484cat conftest.$ac_ext >&5
     4485ac_cv_func_re_rx_search=no
     4486fi
     4487rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4488fi
     4489echo "$as_me:4489: result: $ac_cv_func_re_rx_search" >&5
     4490echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
     4491if test $ac_cv_func_re_rx_search = yes; then
    26894492  :
    26904493else
    2691   echo "$ac_t""no" 1>&6
    2692 LIBOBJS="$LIBOBJS rx.o"
    2693 fi
    2694 
    2695 fi
    2696 
     4494  LIBOBJS="$LIBOBJS rx.o"
     4495fi
     4496
     4497fi
    26974498
    26984499# ---------------------------------------------------------------------------
     
    27014502fi
    27024503
    2703 
    27044504# ---------------------------------------------------------------------------
    27054505
    2706 trap '' 1 2 15
    2707 cat > confcache <<\EOF
     4506ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
     4507ac_config_commands="$ac_config_commands default"
     4508cat >confcache <<\_ACEOF
    27084509# This file is a shell script that caches the results of configure
    27094510# tests run on this system so they can be shared between configure
    2710 # scripts and configure runs.  It is not useful on other systems.
    2711 # If it contains results you don't want to keep, you may remove or edit it.
     4511# scripts and configure runs, see configure's option --config-cache.
     4512# It is not useful on other systems.  If it contains results you don't
     4513# want to keep, you may remove or edit it.
    27124514#
    2713 # By default, configure uses ./config.cache as the cache file,
    2714 # creating it if it does not exist already.  You can give configure
    2715 # the --cache-file=FILE option to use a different cache file; that is
    2716 # what configure does when it calls configure scripts in
    2717 # subdirectories, so they share the cache.
    2718 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    2719 # config.status only pays attention to the cache file if you give it the
    2720 # --recheck option to rerun configure.
     4515# config.status only pays attention to the cache file if you give it
     4516# the --recheck option to rerun configure.
    27214517#
    2722 EOF
     4518# `ac_cv_env_foo' variables (set or unset) will be overriden when
     4519# loading this file, other *unset* `ac_cv_foo' will be assigned the
     4520# following values.
     4521
     4522_ACEOF
     4523
    27234524# The following way of writing the cache mishandles newlines in values,
    27244525# but we know of no workaround that is simple, portable, and efficient.
     
    27264527# Ultrix sh set writes to stderr and can't be redirected directly,
    27274528# and sets the high bit in the cache file unless we assign to the vars.
    2728 (set) 2>&1 |
    2729   case `(ac_space=' '; set) 2>&1` in
    2730   *ac_space=\ *)
    2731     # `set' does not quote correctly, so add quotes (double-quote substitution
    2732     # turns \\\\ into \\, and sed turns \\ into \).
    2733     sed -n \
    2734       -e "s/'/'\\\\''/g" \
    2735       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    2736     ;;
    2737   *)
    2738     # `set' quotes correctly as required by POSIX, so do not add quotes.
    2739     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    2740     ;;
    2741   esac >> confcache
    2742 if cmp -s $cache_file confcache; then
    2743   :
    2744 else
     4529{
     4530  (set) 2>&1 |
     4531    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     4532    *ac_space=\ *)
     4533      # `set' does not quote correctly, so add quotes (double-quote
     4534      # substitution turns \\\\ into \\, and sed turns \\ into \).
     4535      sed -n \
     4536        "s/'/'\\\\''/g;
     4537          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     4538      ;;
     4539    *)
     4540      # `set' quotes correctly as required by POSIX, so do not add quotes.
     4541      sed -n \
     4542        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     4543      ;;
     4544    esac;
     4545} |
     4546  sed '
     4547     t clear
     4548     : clear
     4549     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     4550     t end
     4551     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     4552     : end' >>confcache
     4553if cmp -s $cache_file confcache; then :; else
    27454554  if test -w $cache_file; then
    2746     echo "updating cache $cache_file"
    2747     cat confcache > $cache_file
     4555    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     4556    cat confcache >$cache_file
    27484557  else
    27494558    echo "not updating unwritable cache $cache_file"
     
    27524561rm -f confcache
    27534562
    2754 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    2755 
    27564563test "x$prefix" = xNONE && prefix=$ac_default_prefix
    27574564# Let make expand exec_prefix.
    27584565test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    27594566
    2760 # Any assignment to VPATH causes Sun make to only execute
    2761 # the first set of double-colon rules, so remove it if not needed.
    2762 # If there is a colon in the path, we need to keep it.
     4567# VPATH may cause trouble with some makes, so we remove $(srcdir),
     4568# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     4569# trailing colons and then remove the whole line if VPATH becomes empty
     4570# (actually we leave an empty line to preserve line numbers).
    27634571if test "x$srcdir" = x.; then
    2764   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
    2765 fi
    2766 
    2767 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     4572  ac_vpsub='/^[     ]*VPATH[    ]*=/{
     4573s/:*\$(srcdir):*/:/;
     4574s/:*\${srcdir}:*/:/;
     4575s/:*@srcdir@:*/:/;
     4576s/^\([^=]*=[    ]*\):*/\1/;
     4577s/:*$//;
     4578s/^[^=]*=[  ]*$//;
     4579}'
     4580fi
    27684581
    27694582DEFS=-DHAVE_CONFIG_H
    27704583
    2771 # Without the "./", some shells look in PATH for config.status.
    27724584: ${CONFIG_STATUS=./config.status}
    2773 
    2774 echo creating $CONFIG_STATUS
    2775 rm -f $CONFIG_STATUS
    2776 cat > $CONFIG_STATUS <<EOF
    2777 #! /bin/sh
     4585ac_clean_files_save=$ac_clean_files
     4586ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     4587{ echo "$as_me:4587: creating $CONFIG_STATUS" >&5
     4588echo "$as_me: creating $CONFIG_STATUS" >&6;}
     4589cat >$CONFIG_STATUS <<_ACEOF
     4590#! $SHELL
    27784591# Generated automatically by configure.
    27794592# Run this file to recreate the current configuration.
    2780 # This directory was configured as follows,
    2781 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     4593# Compiler output produced by configure, useful for debugging
     4594# configure, is in config.log if it exists.
     4595
     4596debug=false
     4597SHELL=\${CONFIG_SHELL-$SHELL}
     4598ac_cs_invocation="\$0 \$@"
     4599
     4600_ACEOF
     4601
     4602cat >>$CONFIG_STATUS <<\_ACEOF
     4603# Be Bourne compatible
     4604if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     4605  emulate sh
     4606  NULLCMD=:
     4607elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     4608  set -o posix
     4609fi
     4610
     4611# Name of the executable.
     4612as_me=`echo "$0" |sed 's,.*[\\/],,'`
     4613
     4614if expr a : '\(a\)' >/dev/null 2>&1; then
     4615  as_expr=expr
     4616else
     4617  as_expr=false
     4618fi
     4619
     4620rm -f conf$$ conf$$.exe conf$$.file
     4621echo >conf$$.file
     4622if ln -s conf$$.file conf$$ 2>/dev/null; then
     4623  # We could just check for DJGPP; but this test a) works b) is more generic
     4624  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     4625  if test -f conf$$.exe; then
     4626    # Don't use ln at all; we don't have any links
     4627    as_ln_s='cp -p'
     4628  else
     4629    as_ln_s='ln -s'
     4630  fi
     4631elif ln conf$$.file conf$$ 2>/dev/null; then
     4632  as_ln_s=ln
     4633else
     4634  as_ln_s='cp -p'
     4635fi
     4636rm -f conf$$ conf$$.exe conf$$.file
     4637
     4638as_executable_p="test -f"
     4639
     4640# Support unset when possible.
     4641if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     4642  as_unset=unset
     4643else
     4644  as_unset=false
     4645fi
     4646
     4647# NLS nuisances.
     4648$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     4649$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     4650$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     4651$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     4652$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     4653$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     4654$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     4655$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     4656
     4657# IFS
     4658# We need space, tab and new line, in precisely that order.
     4659as_nl='
     4660'
     4661IFS="   $as_nl"
     4662
     4663# CDPATH.
     4664$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     4665
     4666exec 6>&1
     4667
     4668_ACEOF
     4669
     4670# Files that config.status was made for.
     4671if test -n "$ac_config_files"; then
     4672  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     4673fi
     4674
     4675if test -n "$ac_config_headers"; then
     4676  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     4677fi
     4678
     4679if test -n "$ac_config_links"; then
     4680  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     4681fi
     4682
     4683if test -n "$ac_config_commands"; then
     4684  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     4685fi
     4686
     4687cat >>$CONFIG_STATUS <<\EOF
     4688
     4689ac_cs_usage="\
     4690\`$as_me' instantiates files from templates according to the
     4691current configuration.
     4692
     4693Usage: $0 [OPTIONS] [FILE]...
     4694
     4695  -h, --help       print this help, then exit
     4696  -V, --version    print version number, then exit
     4697  -d, --debug      don't remove temporary files
     4698      --recheck    update $as_me by reconfiguring in the same conditions
     4699  --file=FILE[:TEMPLATE]
     4700                   instantiate the configuration file FILE
     4701  --header=FILE[:TEMPLATE]
     4702                   instantiate the configuration header FILE
     4703
     4704Configuration files:
     4705$config_files
     4706
     4707Configuration headers:
     4708$config_headers
     4709
     4710Configuration commands:
     4711$config_commands
     4712
     4713Report bugs to <[email protected]>."
     4714EOF
     4715
     4716cat >>$CONFIG_STATUS <<EOF
     4717ac_cs_version="\\
     4718config.status
     4719configured by $0, generated by GNU Autoconf 2.50,
     4720  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     4721
     4722Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     4723Free Software Foundation, Inc.
     4724This config.status script is free software; the Free Software Foundation
     4725gives unlimited permission to copy, distribute and modify it."
     4726srcdir=$srcdir
     4727INSTALL="$INSTALL"
     4728EOF
     4729
     4730cat >>$CONFIG_STATUS <<\EOF
     4731# If no file are specified by the user, then we need to provide default
     4732# value.  By we need to know if files were specified by the user.
     4733ac_need_defaults=:
     4734while test $# != 0
     4735do
     4736  case $1 in
     4737  --*=*)
     4738    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     4739    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     4740    shift
     4741    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
     4742    shift
     4743    ;;
     4744  -*);;
     4745  *) # This is not an option, so the user has probably given explicit
     4746     # arguments.
     4747     ac_need_defaults=false;;
     4748  esac
     4749
     4750  case $1 in
     4751  # Handling of the options.
     4752EOF
     4753cat >>$CONFIG_STATUS <<EOF
     4754  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     4755    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
     4756    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
     4757EOF
     4758cat >>$CONFIG_STATUS <<\EOF
     4759  --version | --vers* | -V )
     4760    echo "$ac_cs_version"; exit 0 ;;
     4761  --he | --h)
     4762    # Conflict between --help and --header
     4763    { { echo "$as_me:4763: error: ambiguous option: $1
     4764Try \`$0 --help' for more information." >&5
     4765echo "$as_me: error: ambiguous option: $1
     4766Try \`$0 --help' for more information." >&2;}
     4767   { (exit 1); exit 1; }; };;
     4768  --help | --hel | -h )
     4769    echo "$ac_cs_usage"; exit 0 ;;
     4770  --debug | --d* | -d )
     4771    debug=: ;;
     4772  --file | --fil | --fi | --f )
     4773    shift
     4774    CONFIG_FILES="$CONFIG_FILES $1"
     4775    ac_need_defaults=false;;
     4776  --header | --heade | --head | --hea )
     4777    shift
     4778    CONFIG_HEADERS="$CONFIG_HEADERS $1"
     4779    ac_need_defaults=false;;
     4780
     4781  # Handling of arguments.
     4782  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     4783  'src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
     4784  'src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
     4785  'src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
     4786  'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     4787  'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
     4788  'java/org/greenstone/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
     4789  'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     4790  'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     4791
     4792  # This is an error.
     4793  -*) { { echo "$as_me:4793: error: unrecognized option: $1
     4794Try \`$0 --help' for more information." >&5
     4795echo "$as_me: error: unrecognized option: $1
     4796Try \`$0 --help' for more information." >&2;}
     4797   { (exit 1); exit 1; }; } ;;
     4798  *) { { echo "$as_me:4798: error: invalid argument: $1" >&5
     4799echo "$as_me: error: invalid argument: $1" >&2;}
     4800   { (exit 1); exit 1; }; };;
     4801  esac
     4802  shift
     4803done
     4804
     4805exec 5>>config.log
     4806cat >&5 << _ACEOF
     4807
     4808## ----------------------- ##
     4809## Running config.status.  ##
     4810## ----------------------- ##
     4811
     4812This file was extended by $as_me 2.50, executed with
     4813  > $ac_cs_invocation
     4814on `(hostname || uname -n) 2>/dev/null | sed 1q`
     4815
     4816_ACEOF
     4817EOF
     4818
     4819cat >>$CONFIG_STATUS <<\EOF
     4820# If the user did not use the arguments to specify the items to instantiate,
     4821# then the envvar interface is used.  Set only those that are not.
     4822# We use the long form for the default assignment because of an extremely
     4823# bizarre bug on SunOS 4.1.3.
     4824if $ac_need_defaults; then
     4825  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     4826  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     4827  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
     4828fi
     4829
     4830# Create a temporary directory, and hook for its removal unless debugging.
     4831$debug ||
     4832{
     4833  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     4834  trap '{ (exit $?); exit $?; }' 1 2 13 15
     4835}
     4836
     4837# Create a (secure) tmp directory for tmp files.
     4838: ${TMPDIR=/tmp}
     4839{
     4840  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
     4841  test -n "$tmp" && test -d "$tmp"
     4842}  ||
     4843{
     4844  tmp=$TMPDIR/cs$$-$RANDOM
     4845  (umask 077 && mkdir $tmp)
     4846} ||
     4847{
     4848   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     4849   { (exit 1); exit 1; }
     4850}
     4851
     4852EOF
     4853
     4854cat >>$CONFIG_STATUS <<EOF
     4855
    27824856#
    2783 # $0 $ac_configure_args
     4857# CONFIG_FILES section.
    27844858#
    2785 # Compiler output produced by configure, useful for debugging
    2786 # configure, is in ./config.log if it exists.
    2787 
    2788 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    2789 for ac_option
    2790 do
    2791   case "\$ac_option" in
    2792   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    2793     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    2794     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    2795   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    2796     echo "$CONFIG_STATUS generated by autoconf version 2.12"
    2797     exit 0 ;;
    2798   -help | --help | --hel | --he | --h)
    2799     echo "\$ac_cs_usage"; exit 0 ;;
    2800   *) echo "\$ac_cs_usage"; exit 1 ;;
     4859
     4860# No need to generate the scripts if there are no CONFIG_FILES.
     4861# This happens for instance when ./config.status config.h
     4862if test -n "\$CONFIG_FILES"; then
     4863  # Protect against being on the right side of a sed subst in config.status.
     4864  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     4865   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     4866s,@SHELL@,$SHELL,;t t
     4867s,@exec_prefix@,$exec_prefix,;t t
     4868s,@prefix@,$prefix,;t t
     4869s,@program_transform_name@,$program_transform_name,;t t
     4870s,@bindir@,$bindir,;t t
     4871s,@sbindir@,$sbindir,;t t
     4872s,@libexecdir@,$libexecdir,;t t
     4873s,@datadir@,$datadir,;t t
     4874s,@sysconfdir@,$sysconfdir,;t t
     4875s,@sharedstatedir@,$sharedstatedir,;t t
     4876s,@localstatedir@,$localstatedir,;t t
     4877s,@libdir@,$libdir,;t t
     4878s,@includedir@,$includedir,;t t
     4879s,@oldincludedir@,$oldincludedir,;t t
     4880s,@infodir@,$infodir,;t t
     4881s,@mandir@,$mandir,;t t
     4882s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     4883s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     4884s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     4885s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     4886s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     4887s,@ECHO_C@,$ECHO_C,;t t
     4888s,@ECHO_N@,$ECHO_N,;t t
     4889s,@ECHO_T@,$ECHO_T,;t t
     4890s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     4891s,@DEFS@,$DEFS,;t t
     4892s,@LIBS@,$LIBS,;t t
     4893s,@PACKAGE@,$PACKAGE,;t t
     4894s,@VERSION@,$VERSION,;t t
     4895s,@CXX@,$CXX,;t t
     4896s,@CXXFLAGS@,$CXXFLAGS,;t t
     4897s,@LDFLAGS@,$LDFLAGS,;t t
     4898s,@CPPFLAGS@,$CPPFLAGS,;t t
     4899s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     4900s,@EXEEXT@,$EXEEXT,;t t
     4901s,@OBJEXT@,$OBJEXT,;t t
     4902s,@AWK@,$AWK,;t t
     4903s,@YACC@,$YACC,;t t
     4904s,@CC@,$CC,;t t
     4905s,@CFLAGS@,$CFLAGS,;t t
     4906s,@ac_ct_CC@,$ac_ct_CC,;t t
     4907s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     4908s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     4909s,@INSTALL_DATA@,$INSTALL_DATA,;t t
     4910s,@LN_S@,$LN_S,;t t
     4911s,@SET_MAKE@,$SET_MAKE,;t t
     4912s,@RANLIB@,$RANLIB,;t t
     4913s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
     4914s,@CPP@,$CPP,;t t
     4915s,@U@,$U,;t t
     4916s,@ANSI2KNR@,$ANSI2KNR,;t t
     4917s,@ALLOCA@,$ALLOCA,;t t
     4918s,@LIBOBJS@,$LIBOBJS,;t t
     4919CEOF
     4920
     4921EOF
     4922
     4923  cat >>$CONFIG_STATUS <<\EOF
     4924  # Split the substitutions into bite-sized pieces for seds with
     4925  # small command number limits, like on Digital OSF/1 and HP-UX.
     4926  ac_max_sed_lines=48
     4927  ac_sed_frag=1 # Number of current file.
     4928  ac_beg=1 # First line for current file.
     4929  ac_end=$ac_max_sed_lines # Line after last line for current file.
     4930  ac_more_lines=:
     4931  ac_sed_cmds=
     4932  while $ac_more_lines; do
     4933    if test $ac_beg -gt 1; then
     4934      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     4935    else
     4936      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     4937    fi
     4938    if test ! -s $tmp/subs.frag; then
     4939      ac_more_lines=false
     4940    else
     4941      # The purpose of the label and of the branching condition is to
     4942      # speed up the sed processing (if there are no `@' at all, there
     4943      # is no need to browse any of the substitutions).
     4944      # These are the two extra sed commands mentioned above.
     4945      (echo ':t
     4946  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     4947      if test -z "$ac_sed_cmds"; then
     4948    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     4949      else
     4950    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     4951      fi
     4952      ac_sed_frag=`expr $ac_sed_frag + 1`
     4953      ac_beg=$ac_end
     4954      ac_end=`expr $ac_end + $ac_max_sed_lines`
     4955    fi
     4956  done
     4957  if test -z "$ac_sed_cmds"; then
     4958    ac_sed_cmds=cat
     4959  fi
     4960fi # test -n "$CONFIG_FILES"
     4961
     4962EOF
     4963cat >>$CONFIG_STATUS <<\EOF
     4964for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     4965  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     4966  case $ac_file in
     4967  - | *:- | *:-:* ) # input from stdin
     4968        cat >$tmp/stdin
     4969        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     4970        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     4971  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     4972        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     4973  * )   ac_file_in=$ac_file.in ;;
    28014974  esac
    2802 done
    2803 
    2804 ac_given_srcdir=$srcdir
    2805 ac_given_INSTALL="$INSTALL"
    2806 
    2807 trap 'rm -fr `echo "Makefile src/text/Makefile src/images/Makefile
    2808           src/scripts/Makefile lib/Makefile  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    2809 EOF
    2810 cat >> $CONFIG_STATUS <<EOF
    2811 
    2812 # Protect against being on the right side of a sed subst in config.status.
    2813 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    2814  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    2815 $ac_vpsub
    2816 $extrasub
    2817 s%@CFLAGS@%$CFLAGS%g
    2818 s%@CPPFLAGS@%$CPPFLAGS%g
    2819 s%@CXXFLAGS@%$CXXFLAGS%g
    2820 s%@DEFS@%$DEFS%g
    2821 s%@LDFLAGS@%$LDFLAGS%g
    2822 s%@LIBS@%$LIBS%g
    2823 s%@exec_prefix@%$exec_prefix%g
    2824 s%@prefix@%$prefix%g
    2825 s%@program_transform_name@%$program_transform_name%g
    2826 s%@bindir@%$bindir%g
    2827 s%@sbindir@%$sbindir%g
    2828 s%@libexecdir@%$libexecdir%g
    2829 s%@datadir@%$datadir%g
    2830 s%@sysconfdir@%$sysconfdir%g
    2831 s%@sharedstatedir@%$sharedstatedir%g
    2832 s%@localstatedir@%$localstatedir%g
    2833 s%@libdir@%$libdir%g
    2834 s%@includedir@%$includedir%g
    2835 s%@oldincludedir@%$oldincludedir%g
    2836 s%@infodir@%$infodir%g
    2837 s%@mandir@%$mandir%g
    2838 s%@PACKAGE@%$PACKAGE%g
    2839 s%@VERSION@%$VERSION%g
    2840 s%@CXX@%$CXX%g
    2841 s%@AWK@%$AWK%g
    2842 s%@YACC@%$YACC%g
    2843 s%@CC@%$CC%g
    2844 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    2845 s%@INSTALL_DATA@%$INSTALL_DATA%g
    2846 s%@LN_S@%$LN_S%g
    2847 s%@SET_MAKE@%$SET_MAKE%g
    2848 s%@RANLIB@%$RANLIB%g
    2849 s%@CPP@%$CPP%g
    2850 s%@U@%$U%g
    2851 s%@ANSI2KNR@%$ANSI2KNR%g
    2852 s%@ALLOCA@%$ALLOCA%g
    2853 s%@LIBOBJS@%$LIBOBJS%g
    2854 
    2855 CEOF
    2856 EOF
    2857 
    2858 cat >> $CONFIG_STATUS <<\EOF
    2859 
    2860 # Split the substitutions into bite-sized pieces for seds with
    2861 # small command number limits, like on Digital OSF/1 and HP-UX.
    2862 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    2863 ac_file=1 # Number of current file.
    2864 ac_beg=1 # First line for current file.
    2865 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    2866 ac_more_lines=:
    2867 ac_sed_cmds=""
    2868 while $ac_more_lines; do
    2869   if test $ac_beg -gt 1; then
    2870     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    2871   else
    2872     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    2873   fi
    2874   if test ! -s conftest.s$ac_file; then
    2875     ac_more_lines=false
    2876     rm -f conftest.s$ac_file
    2877   else
    2878     if test -z "$ac_sed_cmds"; then
    2879       ac_sed_cmds="sed -f conftest.s$ac_file"
    2880     else
    2881       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    2882     fi
    2883     ac_file=`expr $ac_file + 1`
    2884     ac_beg=$ac_end
    2885     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    2886   fi
    2887 done
    2888 if test -z "$ac_sed_cmds"; then
    2889   ac_sed_cmds=cat
    2890 fi
    2891 EOF
    2892 
    2893 cat >> $CONFIG_STATUS <<EOF
    2894 
    2895 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/text/Makefile src/images/Makefile
    2896           src/scripts/Makefile lib/Makefile "}
    2897 EOF
    2898 cat >> $CONFIG_STATUS <<\EOF
    2899 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    2900   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    2901   case "$ac_file" in
    2902   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    2903        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    2904   *) ac_file_in="${ac_file}.in" ;;
     4975
     4976  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     4977  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     4978         X"$ac_file" : 'X\(//\)[^/]' \| \
     4979         X"$ac_file" : 'X\(//\)$' \| \
     4980         X"$ac_file" : 'X\(/\)' \| \
     4981         .     : '\(.\)' 2>/dev/null ||
     4982echo X"$ac_file" |
     4983    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     4984      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     4985      /^X\(\/\/\)$/{ s//\1/; q; }
     4986      /^X\(\/\).*/{ s//\1/; q; }
     4987      s/.*/./; q'`
     4988  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     4989    { case "$ac_dir" in
     4990  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     4991  *)                      as_incr_dir=.;;
     4992esac
     4993as_dummy="$ac_dir"
     4994for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     4995  case $as_mkdir_dir in
     4996    # Skip DOS drivespec
     4997    ?:) as_incr_dir=$as_mkdir_dir ;;
     4998    *)
     4999      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5000      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5001    ;;
    29055002  esac
    2906 
    2907   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    2908 
    2909   # Remove last slash and all that follows it.  Not all systems have dirname.
    2910   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    2911   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    2912     # The file is in a subdirectory.
    2913     test ! -d "$ac_dir" && mkdir "$ac_dir"
    2914     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
     5003done; }
     5004
     5005    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    29155006    # A "../" for each directory in $ac_dir_suffix.
    2916     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
     5007    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
    29175008  else
    29185009    ac_dir_suffix= ac_dots=
    29195010  fi
    29205011
    2921   case "$ac_given_srcdir" in
    2922   .)  srcdir=.
    2923       if test -z "$ac_dots"; then top_srcdir=.
    2924       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    2925   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     5012  case $srcdir in
     5013  .)  ac_srcdir=.
     5014      if test -z "$ac_dots"; then
     5015         ac_top_srcdir=.
     5016      else
     5017         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
     5018      fi ;;
     5019  [\\/]* | ?:[\\/]* )
     5020      ac_srcdir=$srcdir$ac_dir_suffix;
     5021      ac_top_srcdir=$srcdir ;;
    29265022  *) # Relative path.
    2927     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    2928     top_srcdir="$ac_dots$ac_given_srcdir" ;;
     5023    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
     5024    ac_top_srcdir=$ac_dots$srcdir ;;
    29295025  esac
    29305026
    2931   case "$ac_given_INSTALL" in
    2932   [/$]*) INSTALL="$ac_given_INSTALL" ;;
    2933   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     5027  case $INSTALL in
     5028  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
     5029  *) ac_INSTALL=$ac_dots$INSTALL ;;
    29345030  esac
    29355031
    2936   echo creating "$ac_file"
    2937   rm -f "$ac_file"
    2938   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    2939   case "$ac_file" in
    2940   *Makefile*) ac_comsub="1i\\
    2941 # $configure_input" ;;
    2942   *) ac_comsub= ;;
    2943   esac
    2944 
    2945   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    2946   sed -e "$ac_comsub
    2947 s%@configure_input@%$configure_input%g
    2948 s%@srcdir@%$srcdir%g
    2949 s%@top_srcdir@%$top_srcdir%g
    2950 s%@INSTALL@%$INSTALL%g
    2951 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    2952 fi; done
    2953 rm -f conftest.s*
     5032  if test x"$ac_file" != x-; then
     5033    { echo "$as_me:5033: creating $ac_file" >&5
     5034echo "$as_me: creating $ac_file" >&6;}
     5035    rm -f "$ac_file"
     5036  fi
     5037  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5038  # use $as_me), people would be surprised to read:
     5039  #    /* config.h.  Generated automatically by config.status.  */
     5040  configure_input="Generated automatically from `echo $ac_file_in |
     5041                                                 sed 's,.*/,,'` by configure."
     5042
     5043  # First look for the input files in the build tree, otherwise in the
     5044  # src tree.
     5045  ac_file_inputs=`IFS=:
     5046    for f in $ac_file_in; do
     5047      case $f in
     5048      -) echo $tmp/stdin ;;
     5049      [\\/$]*)
     5050         # Absolute (can't be DOS-style, as IFS=:)
     5051         test -f "$f" || { { echo "$as_me:5051: error: cannot find input file: $f" >&5
     5052echo "$as_me: error: cannot find input file: $f" >&2;}
     5053   { (exit 1); exit 1; }; }
     5054         echo $f;;
     5055      *) # Relative
     5056         if test -f "$f"; then
     5057           # Build tree
     5058           echo $f
     5059         elif test -f "$srcdir/$f"; then
     5060           # Source tree
     5061           echo $srcdir/$f
     5062         else
     5063           # /dev/null tree
     5064           { { echo "$as_me:5064: error: cannot find input file: $f" >&5
     5065echo "$as_me: error: cannot find input file: $f" >&2;}
     5066   { (exit 1); exit 1; }; }
     5067         fi;;
     5068      esac
     5069    done` || { (exit 1); exit 1; }
     5070EOF
     5071cat >>$CONFIG_STATUS <<EOF
     5072  sed "$ac_vpsub
     5073$extrasub
     5074EOF
     5075cat >>$CONFIG_STATUS <<\EOF
     5076:t
     5077/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     5078s,@configure_input@,$configure_input,;t t
     5079s,@srcdir@,$ac_srcdir,;t t
     5080s,@top_srcdir@,$ac_top_srcdir,;t t
     5081s,@INSTALL@,$ac_INSTALL,;t t
     5082" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     5083  rm -f $tmp/stdin
     5084  if test x"$ac_file" != x-; then
     5085    mv $tmp/out $ac_file
     5086  else
     5087    cat $tmp/out
     5088    rm -f $tmp/out
     5089  fi
     5090
     5091done
     5092EOF
     5093cat >>$CONFIG_STATUS <<\EOF
     5094
     5095#
     5096# CONFIG_HEADER section.
     5097#
    29545098
    29555099# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    29575101#
    29585102# ac_d sets the value in "#define NAME VALUE" lines.
    2959 ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    2960 ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
    2961 ac_dC='\3'
    2962 ac_dD='%g'
    2963 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    2964 ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    2965 ac_uB='\([  ]\)%\1#\2define\3'
     5103ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
     5104ac_dB='[    ].*$,\1#\2'
     5105ac_dC=' '
     5106ac_dD=',;t'
     5107# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     5108ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     5109ac_uB='$,\1#\2define\3'
    29665110ac_uC=' '
    2967 ac_uD='\4%g'
    2968 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    2969 ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    2970 ac_eB='$%\1#\2define\3'
    2971 ac_eC=' '
    2972 ac_eD='%g'
    2973 
    2974 if test "${CONFIG_HEADERS+set}" != set; then
    2975 EOF
    2976 cat >> $CONFIG_STATUS <<EOF
    2977   CONFIG_HEADERS="config.h"
    2978 EOF
    2979 cat >> $CONFIG_STATUS <<\EOF
    2980 fi
    2981 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     5111ac_uD=',;t'
     5112
     5113for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    29825114  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    2983   case "$ac_file" in
    2984   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    2985        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    2986   *) ac_file_in="${ac_file}.in" ;;
     5115  case $ac_file in
     5116  - | *:- | *:-:* ) # input from stdin
     5117        cat >$tmp/stdin
     5118        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5119        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5120  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5121        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5122  * )   ac_file_in=$ac_file.in ;;
    29875123  esac
    29885124
    2989   echo creating $ac_file
    2990 
    2991   rm -f conftest.frag conftest.in conftest.out
    2992   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    2993   cat $ac_file_inputs > conftest.in
    2994 
    2995 EOF
    2996 
    2997 # Transform confdefs.h into a sed script conftest.vals that substitutes
    2998 # the proper values into config.h.in to produce config.h.  And first:
    2999 # Protect against being on the right side of a sed subst in config.status.
    3000 # Protect against being in an unquoted here document in config.status.
    3001 rm -f conftest.vals
    3002 cat > conftest.hdr <<\EOF
    3003 s/[\\&%]/\\&/g
    3004 s%[\\$`]%\\&%g
    3005 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    3006 s%ac_d%ac_u%gp
    3007 s%ac_u%ac_e%gp
    3008 EOF
    3009 sed -n -f conftest.hdr confdefs.h > conftest.vals
    3010 rm -f conftest.hdr
     5125  test x"$ac_file" != x- && { echo "$as_me:5125: creating $ac_file" >&5
     5126echo "$as_me: creating $ac_file" >&6;}
     5127
     5128  # First look for the input files in the build tree, otherwise in the
     5129  # src tree.
     5130  ac_file_inputs=`IFS=:
     5131    for f in $ac_file_in; do
     5132      case $f in
     5133      -) echo $tmp/stdin ;;
     5134      [\\/$]*)
     5135         # Absolute (can't be DOS-style, as IFS=:)
     5136         test -f "$f" || { { echo "$as_me:5136: error: cannot find input file: $f" >&5
     5137echo "$as_me: error: cannot find input file: $f" >&2;}
     5138   { (exit 1); exit 1; }; }
     5139         echo $f;;
     5140      *) # Relative
     5141         if test -f "$f"; then
     5142           # Build tree
     5143           echo $f
     5144         elif test -f "$srcdir/$f"; then
     5145           # Source tree
     5146           echo $srcdir/$f
     5147         else
     5148           # /dev/null tree
     5149           { { echo "$as_me:5149: error: cannot find input file: $f" >&5
     5150echo "$as_me: error: cannot find input file: $f" >&2;}
     5151   { (exit 1); exit 1; }; }
     5152         fi;;
     5153      esac
     5154    done` || { (exit 1); exit 1; }
     5155  # Remove the trailing spaces.
     5156  sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
     5157
     5158EOF
     5159
     5160# Transform confdefs.h into two sed scripts, `conftest.defines' and
     5161# `conftest.undefs', that substitutes the proper values into
     5162# config.h.in to produce config.h.  The first handles `#define'
     5163# templates, and the second `#undef' templates.
     5164# And first: Protect against being on the right side of a sed subst in
     5165# config.status.  Protect against being in an unquoted here document
     5166# in config.status.
     5167rm -f conftest.defines conftest.undefs
     5168# Using a here document instead of a string reduces the quoting nightmare.
     5169# Putting comments in sed scripts is not portable.
     5170#
     5171# `end' is used to avoid that the second main sed command (meant for
     5172# 0-ary CPP macros) applies to n-ary macro definitions.
     5173# See the Autoconf documentation for `clear'.
     5174cat >confdef2sed.sed <<\EOF
     5175s/[\\&,]/\\&/g
     5176s,[\\$`],\\&,g
     5177t clear
     5178: clear
     5179s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
     5180t end
     5181s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     5182: end
     5183EOF
     5184# If some macros were called several times there might be several times
     5185# the same #defines, which is useless.  Nevertheless, we may not want to
     5186# sort them, since we want the *last* AC-DEFINE to be honored.
     5187uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     5188sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     5189rm -f confdef2sed.sed
    30115190
    30125191# This sed command replaces #undef with comments.  This is necessary, for
    30135192# example, in the case of _POSIX_SOURCE, which is predefined and required
    30145193# on some systems where configure will not decide to define it.
    3015 cat >> conftest.vals <<\EOF
    3016 s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
    3017 EOF
    3018 
    3019 # Break up conftest.vals because some shells have a limit on
    3020 # the size of here documents, and old seds have small limits too.
    3021 
     5194cat >>conftest.undefs <<\EOF
     5195s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     5196EOF
     5197
     5198# Break up conftest.defines because some shells have a limit on the size
     5199# of here documents, and old seds have small limits too (100 cmds).
     5200echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     5201echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     5202echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     5203echo '  :' >>$CONFIG_STATUS
    30225204rm -f conftest.tail
    3023 while :
     5205while grep . conftest.defines >/dev/null
    30245206do
    3025   ac_lines=`grep -c . conftest.vals`
    3026   # grep -c gives empty output for an empty file on some AIX systems.
    3027   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    3028   # Write a limited-size here document to conftest.frag.
    3029   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    3030   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     5207  # Write a limited-size here document to $tmp/defines.sed.
     5208  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     5209  # Speed up: don't consider the non `#define' lines.
     5210  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
     5211  # Work around the forget-to-reset-the-flag bug.
     5212  echo 't clr' >>$CONFIG_STATUS
     5213  echo ': clr' >>$CONFIG_STATUS
     5214  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    30315215  echo 'CEOF
    3032   sed -f conftest.frag conftest.in > conftest.out
    3033   rm -f conftest.in
    3034   mv conftest.out conftest.in
    3035 ' >> $CONFIG_STATUS
    3036   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    3037   rm -f conftest.vals
    3038   mv conftest.tail conftest.vals
     5216  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     5217  rm -f $tmp/in
     5218  mv $tmp/out $tmp/in
     5219' >>$CONFIG_STATUS
     5220  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     5221  rm -f conftest.defines
     5222  mv conftest.tail conftest.defines
    30395223done
    3040 rm -f conftest.vals
    3041 
    3042 cat >> $CONFIG_STATUS <<\EOF
    3043   rm -f conftest.frag conftest.h
    3044   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    3045   cat conftest.in >> conftest.h
    3046   rm -f conftest.in
    3047   if cmp -s $ac_file conftest.h 2>/dev/null; then
    3048     echo "$ac_file is unchanged"
    3049     rm -f conftest.h
     5224rm -f conftest.defines
     5225echo '  fi # egrep' >>$CONFIG_STATUS
     5226echo >>$CONFIG_STATUS
     5227
     5228# Break up conftest.undefs because some shells have a limit on the size
     5229# of here documents, and old seds have small limits too (100 cmds).
     5230echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     5231rm -f conftest.tail
     5232while grep . conftest.undefs >/dev/null
     5233do
     5234  # Write a limited-size here document to $tmp/undefs.sed.
     5235  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     5236  # Speed up: don't consider the non `#undef'
     5237  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     5238  # Work around the forget-to-reset-the-flag bug.
     5239  echo 't clr' >>$CONFIG_STATUS
     5240  echo ': clr' >>$CONFIG_STATUS
     5241  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     5242  echo 'CEOF
     5243  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     5244  rm -f $tmp/in
     5245  mv $tmp/out $tmp/in
     5246' >>$CONFIG_STATUS
     5247  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     5248  rm -f conftest.undefs
     5249  mv conftest.tail conftest.undefs
     5250done
     5251rm -f conftest.undefs
     5252
     5253cat >>$CONFIG_STATUS <<\EOF
     5254  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5255  # use $as_me), people would be surprised to read:
     5256  #    /* config.h.  Generated automatically by config.status.  */
     5257  if test x"$ac_file" = x-; then
     5258    echo "/* Generated automatically by configure.  */" >$tmp/config.h
    30505259  else
    3051     # Remove last slash and all that follows it.  Not all systems have dirname.
    3052       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     5260    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     5261  fi
     5262  cat $tmp/in >>$tmp/config.h
     5263  rm -f $tmp/in
     5264  if test x"$ac_file" != x-; then
     5265    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
     5266      { echo "$as_me:5266: $ac_file is unchanged" >&5
     5267echo "$as_me: $ac_file is unchanged" >&6;}
     5268    else
     5269      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     5270         X"$ac_file" : 'X\(//\)[^/]' \| \
     5271         X"$ac_file" : 'X\(//\)$' \| \
     5272         X"$ac_file" : 'X\(/\)' \| \
     5273         .     : '\(.\)' 2>/dev/null ||
     5274echo X"$ac_file" |
     5275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     5276      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     5277      /^X\(\/\/\)$/{ s//\1/; q; }
     5278      /^X\(\/\).*/{ s//\1/; q; }
     5279      s/.*/./; q'`
    30535280      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3054       # The file is in a subdirectory.
    3055       test ! -d "$ac_dir" && mkdir "$ac_dir"
     5281        { case "$ac_dir" in
     5282  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     5283  *)                      as_incr_dir=.;;
     5284esac
     5285as_dummy="$ac_dir"
     5286for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     5287  case $as_mkdir_dir in
     5288    # Skip DOS drivespec
     5289    ?:) as_incr_dir=$as_mkdir_dir ;;
     5290    *)
     5291      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5292      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5293    ;;
     5294  esac
     5295done; }
     5296
     5297      fi
     5298      rm -f $ac_file
     5299      mv $tmp/config.h $ac_file
    30565300    fi
    3057     rm -f $ac_file
    3058     mv conftest.h $ac_file
     5301  else
     5302    cat $tmp/config.h
     5303    rm -f $tmp/config.h
    30595304  fi
    3060 fi; done
    3061 
    3062 EOF
    3063 cat >> $CONFIG_STATUS <<EOF
    3064 
    3065 EOF
    3066 cat >> $CONFIG_STATUS <<\EOF
    3067 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    3068 exit 0
     5305done
     5306EOF
     5307cat >>$CONFIG_STATUS <<\EOF
     5308
     5309#
     5310# CONFIG_COMMANDS section.
     5311#
     5312for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
     5313  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
     5314  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5315
     5316  case $ac_dest in
     5317    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
     5318  esac
     5319done
     5320EOF
     5321
     5322cat >>$CONFIG_STATUS <<\EOF
     5323
     5324{ (exit 0); exit 0; }
    30695325EOF
    30705326chmod +x $CONFIG_STATUS
    3071 rm -fr confdefs* $ac_clean_files
    3072 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    3073 
     5327ac_clean_files=$ac_clean_files_save
     5328
     5329# configure is writing to config.log, and then calls config.status.
     5330# config.status does its own redirection, appending to config.log.
     5331# Unfortunately, on DOS this fails, as config.log is still kept open
     5332# by configure, so config.status won't be able to write to it; its
     5333# output is simply discarded.  So we exec the FD to /dev/null,
     5334# effectively closing config.log, so it can be properly (re)opened and
     5335# appended to by config.status.  When coming back to configure, we
     5336# need to make the FD available again.
     5337if test "$no_create" != yes; then
     5338  ac_cs_success=:
     5339  exec 5>/dev/null
     5340  $SHELL $CONFIG_STATUS || ac_cs_success=false
     5341  exec 5>>config.log
     5342  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     5343  # would make configure fail if this is the last instruction.
     5344  $ac_cs_success || { (exit 1); exit 1; }
     5345fi
     5346
  • trunk/gsdl/packages/mg/configure.in

    r439 r3739  
    9595
    9696AC_OUTPUT([Makefile src/text/Makefile src/images/Makefile
    97           src/scripts/Makefile lib/Makefile ],
     97          src/scripts/Makefile lib/Makefile
     98      jni/Makefile java/org/greenstone/mg/Makefile ],
    9899[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])
  • trunk/gsdl/packages/mg/lib/Makefile.in

    r2741 r3739  
    132132    $(RANLIB) libmg.a
    133133
    134 $(OBJECTS): ../../../config.h
     134$(OBJECTS): ../config.h
    135135
    136136gsdllibmg.a: $(LIB_OBJECTS)
  • trunk/gsdl/packages/mg/src/images/Makefile.in

    r1518 r3739  
    4646TOUCH = echo timestamp >
    4747 
    48 bindir = ../../../../bin/$(GSDLOS)
     48bindir = ../../../../bin
    4949datadir = $(prefix)/share
    5050libexecdir = $(exec_prefix)/libexec
  • trunk/gsdl/packages/mg/src/scripts/Makefile.in

    r1518 r3739  
    4141TOUCH = echo timestamp >
    4242 
    43 bindir = ../../../../bin/$(GSDLOS)
     43bindir = ../../../../bin
    4444datadir = $(prefix)/share
    4545libexecdir = $(exec_prefix)/libexec
  • trunk/gsdl/packages/mg/src/text/Makefile.in

    r1598 r3739  
    5858
    5959 
    60 bindir = ../../../../bin/$(GSDLOS)
     60bindir = ../../../../bin
    6161datadir = $(prefix)/share
    6262libexecdir = $(exec_prefix)/libexec
     
    345345    read_line$o mg_errors$o backend$o invf_get$o \
    346346    term_lists$o bool_tree$o bool_parser$o bool_optimiser$o \
    347     bool_query$o
     347    bool_query$o words$o
    348348
    349349libtextin.a: $(LIB_OBJS)
Note: See TracChangeset for help on using the changeset viewer.