Changeset 8059 for trunk/indexers


Ignore:
Timestamp:
2004-08-26T05:55:40+12:00 (20 years ago)
Author:
kjdon
Message:

added in some new library checks to match the things that were added to config.h.in

Location:
trunk/indexers/mgpp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mgpp/configure

    r3365 r8059  
    11#! /bin/sh
     2
    23# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by Autoconf 2.50.
     4# Generated automatically using autoconf version 2.13
     5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    46#
    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 # Be Bourne compatible
    11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    12   emulate sh
    13   NULLCMD=:
    14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    15   set -o posix
    16 fi
    17 
    18 # Name of the executable.
    19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
    20 
    21 if expr a : '\(a\)' >/dev/null 2>&1; then
    22   as_expr=expr
    23 else
    24   as_expr=false
    25 fi
    26 
    27 rm -f conf$$ conf$$.exe conf$$.file
    28 echo >conf$$.file
    29 if 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
    38 elif ln conf$$.file conf$$ 2>/dev/null; then
    39   as_ln_s=ln
    40 else
    41   as_ln_s='cp -p'
    42 fi
    43 rm -f conf$$ conf$$.exe conf$$.file
    44 
    45 as_executable_p="test -f"
    46 
    47 # Support unset when possible.
    48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    49   as_unset=unset
    50 else
    51   as_unset=false
    52 fi
    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.
    66 as_nl='
    67 '
    68 IFS="   $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.
    76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    77 
    78 exec 6>&1
    79 
    80 #
    81 # Initializations.
    82 #
     10# Defaults:
     11ac_help=
    8312ac_default_prefix=/usr/local
    84 cross_compiling=no
    85 subdirs=
    86 MFLAGS= MAKEFLAGS=
    87 SHELL=${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.
    95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
    96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    97 ac_cr_09='0123456789'
    98 ac_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.
    101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
    102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
    103 
    104 ac_unique_file="text/MGQuery.cpp"
    105 # Factoring default headers for most tests.
    106 ac_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"
     13# Any additions from configure.in:
     14ac_help="$ac_help
     15  --with-dmalloc          use dmalloc, as in
     16                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
     17ac_help="$ac_help
     18  --with-regex            use older regex in lieu of GNU rx for matching"
     19ac_help="$ac_help
     20  --with-gnu-readline     compile with GNU readline support"
     21ac_help="$ac_help
     22  --enable-override-longlong
     23                          overide use of long long with GCC"
    13424
    13525# Initialize some variables set by options.
    136 ac_init_help=
    137 ac_init_version=false
    13826# The variables have the same names as the options, with
    13927# dashes changed to underlines.
    140 cache_file=/dev/null
     28build=NONE
     29cache_file=./config.cache
    14130exec_prefix=NONE
     31host=NONE
    14232no_create=
     33nonopt=NONE
    14334no_recursion=
    14435prefix=NONE
     
    14940site=
    15041srcdir=
     42target=NONE
    15143verbose=
    15244x_includes=NONE
    15345x_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.
    16046bindir='${exec_prefix}/bin'
    16147sbindir='${exec_prefix}/sbin'
     
    17157mandir='${prefix}/man'
    17258
    173 # Identity of this package.
    174 PACKAGE_NAME=
    175 PACKAGE_TARNAME=
    176 PACKAGE_VERSION=
    177 PACKAGE_STRING=
    178 PACKAGE_BUGREPORT=
     59# Initialize some other variables.
     60subdirs=
     61MFLAGS= MAKEFLAGS=
     62SHELL=${CONFIG_SHELL-/bin/sh}
     63# Maximum number of lines to put in a shell here document.
     64ac_max_here_lines=12
    17965
    18066ac_prev=
    18167for ac_option
    18268do
     69
    18370  # If the previous option needs an argument, assign it.
    18471  if test -n "$ac_prev"; then
     
    18875  fi
    18976
    190   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     77  case "$ac_option" in
     78  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
     79  *) ac_optarg= ;;
     80  esac
    19181
    19282  # Accept the important Cygnus configure options, so we can diagnose typos.
    19383
    194   case $ac_option in
     84  case "$ac_option" in
    19585
    19686  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    19787    ac_prev=bindir ;;
    19888  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    199     bindir=$ac_optarg ;;
     89    bindir="$ac_optarg" ;;
    20090
    20191  -build | --build | --buil | --bui | --bu)
    202     ac_prev=build_alias ;;
     92    ac_prev=build ;;
    20393  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    204     build_alias=$ac_optarg ;;
     94    build="$ac_optarg" ;;
    20595
    20696  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    20999  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    210100  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    211     cache_file=$ac_optarg ;;
    212 
    213   --config-cache | -C)
    214     cache_file=config.cache ;;
     101    cache_file="$ac_optarg" ;;
    215102
    216103  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    218105  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    219106  | --da=*)
    220     datadir=$ac_optarg ;;
     107    datadir="$ac_optarg" ;;
    221108
    222109  -disable-* | --disable-*)
    223     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     110    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    224111    # Reject names that are not valid shell variable names.
    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" ;;
     112    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
     113      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
     114    fi
     115    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     116    eval "enable_${ac_feature}=no" ;;
    230117
    231118  -enable-* | --enable-*)
    232     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     119    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    233120    # Reject names that are not valid shell variable names.
    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"`;;
     121    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
     122      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
     123    fi
     124    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     125    case "$ac_option" in
     126      *=*) ;;
    240127      *) ac_optarg=yes ;;
    241128    esac
    242     eval "enable_$ac_feature='$ac_optarg'" ;;
     129    eval "enable_${ac_feature}='$ac_optarg'" ;;
    243130
    244131  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    249136  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    250137  | --exec=* | --exe=* | --ex=*)
    251     exec_prefix=$ac_optarg ;;
     138    exec_prefix="$ac_optarg" ;;
    252139
    253140  -gas | --gas | --ga | --g)
     
    255142    with_gas=yes ;;
    256143
    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 ;;
     144  -help | --help | --hel | --he)
     145    # Omit some internal or obsolete options to make the list less imposing.
     146    # This message is too long to be a string in the A/UX 3.1 sh.
     147    cat << EOF
     148Usage: configure [options] [host]
     149Options: [defaults in brackets after descriptions]
     150Configuration:
     151  --cache-file=FILE       cache test results in FILE
     152  --help                  print this message
     153  --no-create             do not create output files
     154  --quiet, --silent       do not print \`checking...' messages
     155  --version               print the version of autoconf that created configure
     156Directory and file names:
     157  --prefix=PREFIX         install architecture-independent files in PREFIX
     158                          [$ac_default_prefix]
     159  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     160                          [same as prefix]
     161  --bindir=DIR            user executables in DIR [EPREFIX/bin]
     162  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
     163  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
     164  --datadir=DIR           read-only architecture-independent data in DIR
     165                          [PREFIX/share]
     166  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
     167  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
     168                          [PREFIX/com]
     169  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
     170  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
     171  --includedir=DIR        C header files in DIR [PREFIX/include]
     172  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
     173  --infodir=DIR           info documentation in DIR [PREFIX/info]
     174  --mandir=DIR            man documentation in DIR [PREFIX/man]
     175  --srcdir=DIR            find the sources in DIR [configure dir or ..]
     176  --program-prefix=PREFIX prepend PREFIX to installed program names
     177  --program-suffix=SUFFIX append SUFFIX to installed program names
     178  --program-transform-name=PROGRAM
     179                          run sed PROGRAM on installed program names
     180EOF
     181    cat << EOF
     182Host type:
     183  --build=BUILD           configure for building on BUILD [BUILD=HOST]
     184  --host=HOST             configure for HOST [guessed]
     185  --target=TARGET         configure for TARGET [TARGET=HOST]
     186Features and packages:
     187  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     188  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     189  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     190  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     191  --x-includes=DIR        X include files are in DIR
     192  --x-libraries=DIR       X library files are in DIR
     193EOF
     194    if test -n "$ac_help"; then
     195      echo "--enable and --with options recognized:$ac_help"
     196    fi
     197    exit 0 ;;
    263198
    264199  -host | --host | --hos | --ho)
    265     ac_prev=host_alias ;;
     200    ac_prev=host ;;
    266201  -host=* | --host=* | --hos=* | --ho=*)
    267     host_alias=$ac_optarg ;;
     202    host="$ac_optarg" ;;
    268203
    269204  -includedir | --includedir | --includedi | --included | --include \
     
    272207  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    273208  | --includ=* | --inclu=* | --incl=* | --inc=*)
    274     includedir=$ac_optarg ;;
     209    includedir="$ac_optarg" ;;
    275210
    276211  -infodir | --infodir | --infodi | --infod | --info | --inf)
    277212    ac_prev=infodir ;;
    278213  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    279     infodir=$ac_optarg ;;
     214    infodir="$ac_optarg" ;;
    280215
    281216  -libdir | --libdir | --libdi | --libd)
    282217    ac_prev=libdir ;;
    283218  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    284     libdir=$ac_optarg ;;
     219    libdir="$ac_optarg" ;;
    285220
    286221  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    289224  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    290225  | --libexe=* | --libex=* | --libe=*)
    291     libexecdir=$ac_optarg ;;
     226    libexecdir="$ac_optarg" ;;
    292227
    293228  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    298233  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    299234  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    300     localstatedir=$ac_optarg ;;
     235    localstatedir="$ac_optarg" ;;
    301236
    302237  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    303238    ac_prev=mandir ;;
    304239  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    305     mandir=$ac_optarg ;;
     240    mandir="$ac_optarg" ;;
    306241
    307242  -nfp | --nfp | --nf)
     
    324259  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    325260  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    326     oldincludedir=$ac_optarg ;;
     261    oldincludedir="$ac_optarg" ;;
    327262
    328263  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    329264    ac_prev=prefix ;;
    330265  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    331     prefix=$ac_optarg ;;
     266    prefix="$ac_optarg" ;;
    332267
    333268  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    336271  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    337272  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    338     program_prefix=$ac_optarg ;;
     273    program_prefix="$ac_optarg" ;;
    339274
    340275  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    343278  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    344279  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    345     program_suffix=$ac_optarg ;;
     280    program_suffix="$ac_optarg" ;;
    346281
    347282  -program-transform-name | --program-transform-name \
     
    360295  | --program-trans=* | --program-tran=* \
    361296  | --progr-tra=* | --program-tr=* | --program-t=*)
    362     program_transform_name=$ac_optarg ;;
     297    program_transform_name="$ac_optarg" ;;
    363298
    364299  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    370305  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    371306  | --sbi=* | --sb=*)
    372     sbindir=$ac_optarg ;;
     307    sbindir="$ac_optarg" ;;
    373308
    374309  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    381316  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    382317  | --sha=* | --sh=*)
    383     sharedstatedir=$ac_optarg ;;
     318    sharedstatedir="$ac_optarg" ;;
    384319
    385320  -site | --site | --sit)
    386321    ac_prev=site ;;
    387322  -site=* | --site=* | --sit=*)
    388     site=$ac_optarg ;;
     323    site="$ac_optarg" ;;
    389324
    390325  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    391326    ac_prev=srcdir ;;
    392327  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    393     srcdir=$ac_optarg ;;
     328    srcdir="$ac_optarg" ;;
    394329
    395330  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    398333  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    399334  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    400     sysconfdir=$ac_optarg ;;
     335    sysconfdir="$ac_optarg" ;;
    401336
    402337  -target | --target | --targe | --targ | --tar | --ta | --t)
    403     ac_prev=target_alias ;;
     338    ac_prev=target ;;
    404339  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    405     target_alias=$ac_optarg ;;
     340    target="$ac_optarg" ;;
    406341
    407342  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    408343    verbose=yes ;;
    409344
    410   -version | --version | --versio | --versi | --vers | -V)
    411     ac_init_version=: ;;
     345  -version | --version | --versio | --versi | --vers)
     346    echo "configure generated by autoconf version 2.13"
     347    exit 0 ;;
    412348
    413349  -with-* | --with-*)
    414     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     350    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    415351    # Reject names that are not valid shell variable names.
    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; }; }
     352    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
     353      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
     354    fi
    419355    ac_package=`echo $ac_package| sed 's/-/_/g'`
    420     case $ac_option in
    421       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     356    case "$ac_option" in
     357      *=*) ;;
    422358      *) ac_optarg=yes ;;
    423359    esac
    424     eval "with_$ac_package='$ac_optarg'" ;;
     360    eval "with_${ac_package}='$ac_optarg'" ;;
    425361
    426362  -without-* | --without-*)
    427     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     363    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    428364    # Reject names that are not valid shell variable names.
    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" ;;
     365    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
     366      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
     367    fi
     368    ac_package=`echo $ac_package| sed 's/-/_/g'`
     369    eval "with_${ac_package}=no" ;;
    434370
    435371  --x)
     
    442378  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    443379  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    444     x_includes=$ac_optarg ;;
     380    x_includes="$ac_optarg" ;;
    445381
    446382  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    449385  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    450386  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    451     x_libraries=$ac_optarg ;;
    452 
    453   -*) { echo "$as_me: error: unrecognized option: $ac_option
    454 Try \`$0 --help' for more information." >&2
    455    { (exit 1); exit 1; }; }
     387    x_libraries="$ac_optarg" ;;
     388
     389  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    456390    ;;
    457391
    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 
    468392  *)
    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}
     393    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
     394      echo "configure: warning: $ac_option: invalid host type" 1>&2
     395    fi
     396    if test "x$nonopt" != xNONE; then
     397      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
     398    fi
     399    nonopt="$ac_option"
    474400    ;;
    475401
     
    478404
    479405if test -n "$ac_prev"; then
    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; }; }
    483 fi
    484 
    485 # Be sure to have absolute paths.
    486 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    487               localstatedir libdir includedir oldincludedir infodir mandir \
    488               exec_prefix prefix
     406  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
     407fi
     408
     409trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     410
     411# File descriptor usage:
     412# 0 standard input
     413# 1 file creation
     414# 2 errors and warnings
     415# 3 some systems may open it to /dev/tty
     416# 4 used on the Kubota Titan
     417# 6 checking for... messages and results
     418# 5 compiler messages saved in config.log
     419if test "$silent" = yes; then
     420  exec 6>/dev/null
     421else
     422  exec 6>&1
     423fi
     424exec 5>./config.log
     425
     426echo "\
     427This file contains any messages produced by compilers while
     428running configure, to aid debugging if configure makes a mistake.
     429" 1>&5
     430
     431# Strip out --no-create and --no-recursion so they do not pile up.
     432# Also quote any args containing shell metacharacters.
     433ac_configure_args=
     434for ac_arg
    489435do
    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; }; };;
     436  case "$ac_arg" in
     437  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     438  | --no-cr | --no-c) ;;
     439  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     440  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     441  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
     442  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     443  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
    496444  esac
    497445done
    498446
    499 # There might be people who depend on the old broken behavior: `$host'
    500 # used to hold the argument of --host etc.
    501 build=$build_alias
    502 host=$host_alias
    503 target=$target_alias
    504 
    505 # FIXME: should be removed in autoconf 3.0.
    506 if 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
    514 fi
    515 
    516 ac_tool_prefix=
    517 test -n "$host_alias" && ac_tool_prefix=$host_alias-
    518 
    519 test "$silent" = yes && exec 6>/dev/null
     447# NLS nuisances.
     448# Only set these to C if already set.  These must not be set unconditionally
     449# because not all systems understand e.g. LANG=C (notably SCO).
     450# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
     451# Non-C LC_CTYPE values break the ctype check.
     452if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
     453if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
     454if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
     455if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
     456
     457# confdefs.h avoids OS command line length limits that DEFS can exceed.
     458rm -rf conftest* confdefs.h
     459# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     460echo > confdefs.h
     461
     462# A filename unique to this package, relative to the directory that
     463# configure is in, which we can look for to find out if srcdir is correct.
     464ac_unique_file=text/MGQuery.cpp
    520465
    521466# Find the source files, if location was not specified.
     
    524469  # Try the directory containing this script, then its parent.
    525470  ac_prog=$0
    526   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
     471  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
    527472  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    528473  srcdir=$ac_confdir
     
    535480if test ! -r $srcdir/$ac_unique_file; then
    536481  if test "$ac_srcdir_defaulted" = yes; then
    537     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
    538    { (exit 1); exit 1; }; }
     482    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
    539483  else
    540     { echo "$as_me: error: cannot find sources in $srcdir" >&2
    541    { (exit 1); exit 1; }; }
     484    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
    542485  fi
    543486fi
    544 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    545 ac_env_build_alias_set=${build_alias+set}
    546 ac_env_build_alias_value=$build_alias
    547 ac_cv_env_build_alias_set=${build_alias+set}
    548 ac_cv_env_build_alias_value=$build_alias
    549 ac_env_host_alias_set=${host_alias+set}
    550 ac_env_host_alias_value=$host_alias
    551 ac_cv_env_host_alias_set=${host_alias+set}
    552 ac_cv_env_host_alias_value=$host_alias
    553 ac_env_target_alias_set=${target_alias+set}
    554 ac_env_target_alias_value=$target_alias
    555 ac_cv_env_target_alias_set=${target_alias+set}
    556 ac_cv_env_target_alias_value=$target_alias
    557 ac_env_CXX_set=${CXX+set}
    558 ac_env_CXX_value=$CXX
    559 ac_cv_env_CXX_set=${CXX+set}
    560 ac_cv_env_CXX_value=$CXX
    561 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    562 ac_env_CXXFLAGS_value=$CXXFLAGS
    563 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    564 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    565 ac_env_LDFLAGS_set=${LDFLAGS+set}
    566 ac_env_LDFLAGS_value=$LDFLAGS
    567 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    568 ac_cv_env_LDFLAGS_value=$LDFLAGS
    569 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    570 ac_env_CPPFLAGS_value=$CPPFLAGS
    571 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    572 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    573 ac_env_CC_set=${CC+set}
    574 ac_env_CC_value=$CC
    575 ac_cv_env_CC_set=${CC+set}
    576 ac_cv_env_CC_value=$CC
    577 ac_env_CFLAGS_set=${CFLAGS+set}
    578 ac_env_CFLAGS_value=$CFLAGS
    579 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    580 ac_cv_env_CFLAGS_value=$CFLAGS
    581 ac_env_CPP_set=${CPP+set}
    582 ac_env_CPP_value=$CPP
    583 ac_cv_env_CPP_set=${CPP+set}
    584 ac_cv_env_CPP_value=$CPP
    585 
    586 #
    587 # Report the --help message.
    588 #
    589 if 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 
    595 Usage: $0 [OPTION]... [VAR=VALUE]...
    596 
    597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
    598 VAR=VALUE.  See below for descriptions of some of the useful variables.
    599 
    600 Defaults for the options are specified in brackets.
    601 
    602 Configuration:
    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 
    613 EOF
    614 
    615   cat <<EOF
    616 Installation 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 
    622 By default, \`make install' will install all the files in
    623 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    624 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    625 for instance \`--prefix=\$HOME'.
    626 
    627 For better control, use the options below.
    628 
    629 Fine 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]
    642 EOF
    643 
    644   cat <<\EOF
    645 
    646 Program 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
    650 EOF
    651 fi
    652 
    653 if test -n "$ac_init_help"; then
    654 
    655   cat <<\EOF
    656 
    657 Optional Features:
    658   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    659   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    660   --enable-override-longlong
    661                           overide use of long long with GCC
    662 
    663 Optional Packages:
    664   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    665   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    666   --with-dmalloc          use dmalloc, as in
    667                           ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
    668   --with-regex            use older regex in lieu of GNU rx for matching
    669   --with-gnu-readline     compile with GNU readline support
    670 
    671 Some influential environment variables:
    672   CXX         C++ compiler command
    673   CXXFLAGS    C++ compiler flags
    674   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    675               nonstandard directory <lib dir>
    676   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    677               headers in a nonstandard directory <include dir>
    678   CC          C compiler command
    679   CFLAGS      C compiler flags
    680   CPP         C preprocessor
    681 
    682 Use these variables to override the choices made by `configure' or to help
    683 it to find libraries and programs with nonstandard names/locations.
    684 
    685 EOF
    686 fi
    687 
    688 if test "$ac_init_help" = "recursive"; then
    689   # If there are subdirs, report their specific --help.
    690   ac_popdir=`pwd`
    691   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    692     cd $ac_subdir
    693     # A "../" for each directory in /$ac_subdir.
    694     ac_dots=`echo $ac_subdir |
    695              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    696 
    697     case $srcdir in
    698     .) # No --srcdir option.  We are building in place.
    699       ac_sub_srcdir=$srcdir ;;
    700     [\\/]* | ?:[\\/]* ) # Absolute path.
    701       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    702     *) # Relative path.
    703       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    704     esac
    705 
    706     # Check for guested configure; otherwise get Cygnus style configure.
    707     if test -f $ac_sub_srcdir/configure.gnu; then
    708       echo
    709       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    710     elif test -f $ac_sub_srcdir/configure; then
    711       echo
    712       $SHELL $ac_sub_srcdir/configure  --help=recursive
    713     elif test -f $ac_sub_srcdir/configure.ac ||
    714            test -f $ac_sub_srcdir/configure.in; then
    715       echo
    716       $ac_configure --help
    717     else
    718       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    719     fi
    720     cd $ac_popdir
    721   done
    722 fi
    723 
    724 test -n "$ac_init_help" && exit 0
    725 if $ac_init_version; then
    726   cat <<\EOF
    727 
    728 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    729 Free Software Foundation, Inc.
    730 This configure script is free software; the Free Software Foundation
    731 gives unlimited permission to copy, distribute and modify it.
    732 EOF
    733   exit 0
    734 fi
    735 exec 5>config.log
    736 cat >&5 <<EOF
    737 This file contains any messages produced by compilers while
    738 running configure, to aid debugging if configure makes a mistake.
    739 
    740 It was created by $as_me, which was
    741 generated by GNU Autoconf 2.50.  Invocation command line was
    742 
    743   $ $0 $@
    744 
    745 EOF
    746 {
    747 cat <<_ASUNAME
    748 ## ---------- ##
    749 ## Platform.  ##
    750 ## ---------- ##
    751 
    752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
    754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
    755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
    756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
    757 
    758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    759 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    760 
    761 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    762 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    764 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    765 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    766 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    767 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    768 
    769 PATH = $PATH
    770 
    771 _ASUNAME
    772 } >&5
    773 
    774 cat >&5 <<EOF
    775 ## ------------ ##
    776 ## Core tests.  ##
    777 ## ------------ ##
    778 
    779 EOF
    780 
    781 # Keep a trace of the command line.
    782 # Strip out --no-create and --no-recursion so they do not pile up.
    783 # Also quote any args containing shell meta-characters.
    784 ac_configure_args=
    785 ac_sep=
    786 for ac_arg
    787 do
    788   case $ac_arg in
    789   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    790   | --no-cr | --no-c) ;;
    791   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    792   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    793   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    794     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    795     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    796     ac_sep=" " ;;
    797   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    798      ac_sep=" " ;;
    799   esac
    800   # Get rid of the leading space.
    801 done
    802 
    803 # When interrupted or exit'd, cleanup temporary files, and complete
    804 # config.log.  We remove comments because anyway the quotes in there
    805 # would cause problems or look ugly.
    806 trap 'exit_status=$?
    807   # Save into config.log some information that might help in debugging.
    808   echo >&5
    809   echo "## ----------------- ##" >&5
    810   echo "## Cache variables.  ##" >&5
    811   echo "## ----------------- ##" >&5
    812   echo >&5
    813   # The following way of writing the cache mishandles newlines in values,
    814 {
    815   (set) 2>&1 |
    816     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    817     *ac_space=\ *)
    818       sed -n \
    819         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    820           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    821       ;;
    822     *)
    823       sed -n \
    824         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    825       ;;
    826     esac;
    827 } >&5
    828   sed "/^$/d" confdefs.h >conftest.log
    829   if test -s conftest.log; then
    830     echo >&5
    831     echo "## ------------ ##" >&5
    832     echo "## confdefs.h.  ##" >&5
    833     echo "## ------------ ##" >&5
    834     echo >&5
    835     cat conftest.log >&5
    836   fi
    837   (echo; echo) >&5
    838   test "$ac_signal" != 0 &&
    839     echo "$as_me: caught signal $ac_signal" >&5
    840   echo "$as_me: exit $exit_status" >&5
    841   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    842     exit $exit_status
    843      ' 0
    844 for ac_signal in 1 2 13 15; do
    845   trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
    846 done
    847 ac_signal=0
    848 
    849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    850 rm -rf conftest* confdefs.h
    851 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    852 echo >confdefs.h
    853 
    854 # Let the site file select an alternate cache file if it wants to.
     487srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
     488
    855489# Prefer explicitly selected file to automatically selected ones.
    856490if test -z "$CONFIG_SITE"; then
     
    863497for ac_site_file in $CONFIG_SITE; do
    864498  if test -r "$ac_site_file"; then
    865     { echo "$as_me:865: loading site script $ac_site_file" >&5
    866 echo "$as_me: loading site script $ac_site_file" >&6;}
    867     cat "$ac_site_file" >&5
     499    echo "loading site script $ac_site_file"
    868500    . "$ac_site_file"
    869501  fi
     
    871503
    872504if test -r "$cache_file"; then
    873   # Some versions of bash will fail to source /dev/null (special
    874   # files actually), so we avoid doing that.
    875   if test -f "$cache_file"; then
    876     { echo "$as_me:876: loading cache $cache_file" >&5
    877 echo "$as_me: loading cache $cache_file" >&6;}
    878     case $cache_file in
    879       [\\/]* | ?:[\\/]* ) . $cache_file;;
    880       *)                      . ./$cache_file;;
    881     esac
     505  echo "loading cache $cache_file"
     506  . $cache_file
     507else
     508  echo "creating cache $cache_file"
     509  > $cache_file
     510fi
     511
     512ac_ext=c
     513# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     514ac_cpp='$CPP $CPPFLAGS'
     515ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     516ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     517cross_compiling=$ac_cv_prog_cc_cross
     518
     519ac_exeext=
     520ac_objext=o
     521if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
     522  # Stardent Vistra SVR4 grep lacks -e, says [email protected].
     523  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
     524    ac_n= ac_c='
     525' ac_t='    '
     526  else
     527    ac_n=-n ac_c= ac_t=
    882528  fi
    883529else
    884   { echo "$as_me:884: creating cache $cache_file" >&5
    885 echo "$as_me: creating cache $cache_file" >&6;}
    886   >$cache_file
    887 fi
    888 
    889 # Check that the precious variables saved in the cache have kept the same
    890 # value.
    891 ac_suggest_removing_cache=false
    892 for ac_var in `(set) 2>&1 |
    893                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    894   eval ac_old_set=\$ac_cv_env_${ac_var}_set
    895   eval ac_new_set=\$ac_env_${ac_var}_set
    896   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    897   eval ac_new_val="\$ac_env_${ac_var}_value"
    898   case $ac_old_set,$ac_new_set in
    899     set,)
    900       { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    901 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    902       ac_suggest_removing_cache=: ;;
    903     ,set)
    904       { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5
    905 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
    906       ac_suggest_removing_cache=: ;;
    907     ,);;
    908     *)
    909       if test "x$ac_old_val" != "x$ac_new_val"; then
    910         { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5
    911 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
    912         { echo "$as_me:912: WARNING:   former value:  $ac_old_val" >&5
    913 echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
    914         { echo "$as_me:914: WARNING:   current value: $ac_new_val" >&5
    915 echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
    916         ac_suggest_removing_cache=:
    917       fi;;
    918   esac
    919 done
    920 if $ac_suggest_removing_cache; then
    921   { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5
    922 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
    923   { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5
    924 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
    925 fi
    926 
    927 ac_ext=c
    928 ac_cpp='$CPP $CPPFLAGS'
    929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    932 
    933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    934   *c*,-n*) ECHO_N= ECHO_C='
    935 ' ECHO_T='  ' ;;
    936   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    937   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
    938 esac
    939 echo "#! $SHELL" >conftest.sh
    940 echo  "exit 0"   >>conftest.sh
    941 chmod +x conftest.sh
    942 if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5
    943   (PATH=".;."; conftest.sh) 2>&5
    944   ac_status=$?
    945   echo "$as_me:945: \$? = $ac_status" >&5
    946   (exit $ac_status); }; then
    947   ac_path_separator=';'
    948 else
    949   ac_path_separator=:
    950 fi
    951 PATH_SEPARATOR="$ac_path_separator"
    952 rm -f conftest.sh
    953 
    954 ac_config_headers="$ac_config_headers config.h"
     530  ac_n= ac_c='\c' ac_t=
     531fi
     532
     533
    955534
    956535if test "$program_transform_name" = s,x,x,; then
     
    958537else
    959538  # Double any \ or $.  echo might interpret backslashes.
    960   cat <<\EOF >conftest.sed
     539  cat <<\EOF_SED > conftestsed
    961540s,\\,\\\\,g; s,\$,$$,g
    962 EOF
    963   program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    964   rm -f conftest.sed
     541EOF_SED
     542  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
     543  rm -f conftestsed
    965544fi
    966545test "$program_prefix" != NONE &&
    967   program_transform_name="s,^,${program_prefix},;$program_transform_name"
     546  program_transform_name="s,^,${program_prefix},; $program_transform_name"
    968547# Use a double $ so make ignores it.
    969548test "$program_suffix" != NONE &&
    970   program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
     549  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
    971550
    972551# sed with no file args requires a program.
    973 test -z "$program_transform_name" && program_transform_name="s,x,x,"
     552test "$program_transform_name" = "" && program_transform_name="s,x,x,"
     553
    974554
    975555PACKAGE=mgpp
    976556VERSION=1.3
    977557
    978 cat >>confdefs.h <<EOF
     558LDFLAGS=
     559
     560cat >> confdefs.h <<EOF
    979561#define PACKAGE "$PACKAGE"
    980562EOF
    981563
    982 cat >>confdefs.h <<EOF
     564cat >> confdefs.h <<EOF
    983565#define VERSION "$VERSION"
    984566EOF
    985567
    986 ac_ext=cc
    987 ac_cpp='$CXXCPP $CPPFLAGS'
    988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    991 if test -n "$ac_tool_prefix"; then
    992   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
    993   do
    994     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    996 echo "$as_me:996: checking for $ac_word" >&5
    997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    998 if test "${ac_cv_prog_CXX+set}" = set; then
    999   echo $ECHO_N "(cached) $ECHO_C" >&6
     568
     569
     570
     571for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
     572do
     573# Extract the first word of "$ac_prog", so it can be a program name with args.
     574set dummy $ac_prog; ac_word=$2
     575echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     576echo "configure:577: checking for $ac_word" >&5
     577if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
     578  echo $ac_n "(cached) $ac_c" 1>&6
    1000579else
    1001580  if test -n "$CXX"; then
    1002581  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    1003582else
    1004   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1005 ac_dummy="$PATH"
    1006 for ac_dir in $ac_dummy; do
    1007   IFS=$ac_save_IFS
    1008   test -z "$ac_dir" && ac_dir=.
    1009   $as_executable_p "$ac_dir/$ac_word" || continue
    1010 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    1011 echo "$as_me:1011: found $ac_dir/$ac_word" >&5
    1012 break
     583  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     584  ac_dummy="$PATH"
     585  for ac_dir in $ac_dummy; do
     586    test -z "$ac_dir" && ac_dir=.
     587    if test -f $ac_dir/$ac_word; then
     588      ac_cv_prog_CXX="$ac_prog"
     589      break
     590    fi
     591  done
     592  IFS="$ac_save_ifs"
     593fi
     594fi
     595CXX="$ac_cv_prog_CXX"
     596if test -n "$CXX"; then
     597  echo "$ac_t""$CXX" 1>&6
     598else
     599  echo "$ac_t""no" 1>&6
     600fi
     601
     602test -n "$CXX" && break
    1013603done
    1014 
    1015 fi
    1016 fi
    1017 CXX=$ac_cv_prog_CXX
    1018 if test -n "$CXX"; then
    1019   echo "$as_me:1019: result: $CXX" >&5
    1020 echo "${ECHO_T}$CXX" >&6
    1021 else
    1022   echo "$as_me:1022: result: no" >&5
    1023 echo "${ECHO_T}no" >&6
    1024 fi
    1025 
    1026     test -n "$CXX" && break
    1027   done
    1028 fi
    1029 if test -z "$CXX"; then
    1030   ac_ct_CXX=$CXX
    1031   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
    1032 do
    1033   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1034 set dummy $ac_prog; ac_word=$2
    1035 echo "$as_me:1035: checking for $ac_word" >&5
    1036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1037 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    1038   echo $ECHO_N "(cached) $ECHO_C" >&6
    1039 else
    1040   if test -n "$ac_ct_CXX"; then
    1041   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    1042 else
    1043   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1044 ac_dummy="$PATH"
    1045 for ac_dir in $ac_dummy; do
    1046   IFS=$ac_save_IFS
    1047   test -z "$ac_dir" && ac_dir=.
    1048   $as_executable_p "$ac_dir/$ac_word" || continue
    1049 ac_cv_prog_ac_ct_CXX="$ac_prog"
    1050 echo "$as_me:1050: found $ac_dir/$ac_word" >&5
    1051 break
    1052 done
    1053 
    1054 fi
    1055 fi
    1056 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    1057 if test -n "$ac_ct_CXX"; then
    1058   echo "$as_me:1058: result: $ac_ct_CXX" >&5
    1059 echo "${ECHO_T}$ac_ct_CXX" >&6
    1060 else
    1061   echo "$as_me:1061: result: no" >&5
    1062 echo "${ECHO_T}no" >&6
    1063 fi
    1064 
    1065   test -n "$ac_ct_CXX" && break
    1066 done
    1067 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    1068 
    1069   CXX=$ac_ct_CXX
    1070 fi
    1071 
    1072 cat >conftest.$ac_ext <<_ACEOF
    1073 #line 1073 "configure"
    1074 #include "confdefs.h"
    1075 
    1076 int
    1077 main ()
    1078 {
    1079 
    1080   ;
    1081   return 0;
    1082 }
    1083 _ACEOF
    1084 ac_clean_files_save=$ac_clean_files
    1085 ac_clean_files="$ac_clean_files a.out a.exe"
    1086 # Try to create an executable without -o first, disregard a.out.
    1087 # It will help us diagnose broken compiler, and finding out an intuition
    1088 # of exeext.
    1089 echo "$as_me:1089: checking for C++ compiler default output" >&5
    1090 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
    1091 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1092 if { (eval echo "$as_me:1092: \"$ac_link_default\"") >&5
    1093   (eval $ac_link_default) 2>&5
    1094   ac_status=$?
    1095   echo "$as_me:1095: \$? = $ac_status" >&5
    1096   (exit $ac_status); }; then
    1097   for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
    1098   case $ac_file in
    1099     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    1100     a.out ) # We found the default executable, but exeext='' is most
    1101             # certainly right.
    1102             break;;
    1103     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1104           export ac_cv_exeext
    1105           break;;
    1106     * ) break;;
    1107   esac
    1108 done
    1109 else
    1110   echo "$as_me: failed program was:" >&5
    1111 cat conftest.$ac_ext >&5
    1112 { { echo "$as_me:1112: error: C++ compiler cannot create executables" >&5
    1113 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
    1114    { (exit 77); exit 77; }; }
    1115 fi
    1116 
    1117 ac_exeext=$ac_cv_exeext
    1118 echo "$as_me:1118: result: $ac_file" >&5
    1119 echo "${ECHO_T}$ac_file" >&6
    1120 
    1121 # Check the compiler produces executables we can run.  If not, either
    1122 # the compiler is broken, or we cross compile.
    1123 echo "$as_me:1123: checking whether the C++ compiler works" >&5
    1124 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
    1125 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    1126 # If not cross compiling, check that we can run a simple program.
    1127 if test "$cross_compiling" != yes; then
    1128   if { ac_try='./$ac_file'
    1129   { (eval echo "$as_me:1129: \"$ac_try\"") >&5
    1130   (eval $ac_try) 2>&5
    1131   ac_status=$?
    1132   echo "$as_me:1132: \$? = $ac_status" >&5
    1133   (exit $ac_status); }; }; then
    1134     cross_compiling=no
     604test -n "$CXX" || CXX="gcc"
     605
     606
     607echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     608echo "configure:609: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     609
     610ac_ext=C
     611# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     612ac_cpp='$CXXCPP $CPPFLAGS'
     613ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     614ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     615cross_compiling=$ac_cv_prog_cxx_cross
     616
     617cat > conftest.$ac_ext << EOF
     618
     619#line 620 "configure"
     620#include "confdefs.h"
     621
     622int main(){return(0);}
     623EOF
     624if { (eval echo configure:625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     625  ac_cv_prog_cxx_works=yes
     626  # If we can't run a trivial program, we are probably using a cross compiler.
     627  if (./conftest; exit) 2>/dev/null; then
     628    ac_cv_prog_cxx_cross=no
    1135629  else
    1136     if test "$cross_compiling" = maybe; then
    1137     cross_compiling=yes
    1138     else
    1139     { { echo "$as_me:1139: error: cannot run C++ compiled programs.
    1140 If you meant to cross compile, use \`--host'." >&5
    1141 echo "$as_me: error: cannot run C++ compiled programs.
    1142 If you meant to cross compile, use \`--host'." >&2;}
    1143    { (exit 1); exit 1; }; }
    1144     fi
     630    ac_cv_prog_cxx_cross=yes
    1145631  fi
    1146 fi
    1147 echo "$as_me:1147: result: yes" >&5
    1148 echo "${ECHO_T}yes" >&6
    1149 
    1150 rm -f a.out a.exe conftest$ac_cv_exeext
    1151 ac_clean_files=$ac_clean_files_save
    1152 # Check the compiler produces executables we can run.  If not, either
    1153 # the compiler is broken, or we cross compile.
    1154 echo "$as_me:1154: checking whether we are cross compiling" >&5
    1155 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1156 echo "$as_me:1156: result: $cross_compiling" >&5
    1157 echo "${ECHO_T}$cross_compiling" >&6
    1158 
    1159 echo "$as_me:1159: checking for executable suffix" >&5
    1160 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
    1161 if { (eval echo "$as_me:1161: \"$ac_link\"") >&5
    1162   (eval $ac_link) 2>&5
    1163   ac_status=$?
    1164   echo "$as_me:1164: \$? = $ac_status" >&5
    1165   (exit $ac_status); }; then
    1166   # If both `conftest.exe' and `conftest' are `present' (well, observable)
    1167 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    1168 # work properly (i.e., refer to `conftest.exe'), while it won't with
    1169 # `rm'.
    1170 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
    1171   case $ac_file in
    1172     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    1173     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1174           export ac_cv_exeext
    1175           break;;
    1176     * ) break;;
    1177   esac
    1178 done
    1179 else
    1180   { { echo "$as_me:1180: error: cannot compute EXEEXT: cannot compile and link" >&5
    1181 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
    1182    { (exit 1); exit 1; }; }
    1183 fi
    1184 
    1185 rm -f conftest$ac_cv_exeext
    1186 echo "$as_me:1186: result: $ac_cv_exeext" >&5
    1187 echo "${ECHO_T}$ac_cv_exeext" >&6
    1188 
    1189 rm -f conftest.$ac_ext
    1190 EXEEXT=$ac_cv_exeext
    1191 ac_exeext=$EXEEXT
    1192 echo "$as_me:1192: checking for object suffix" >&5
    1193 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
    1194 if test "${ac_cv_objext+set}" = set; then
    1195   echo $ECHO_N "(cached) $ECHO_C" >&6
    1196 else
    1197   cat >conftest.$ac_ext <<_ACEOF
    1198 #line 1198 "configure"
    1199 #include "confdefs.h"
    1200 
    1201 int
    1202 main ()
    1203 {
    1204 
    1205   ;
    1206   return 0;
    1207 }
    1208 _ACEOF
    1209 rm -f conftest.o conftest.obj
    1210 if { (eval echo "$as_me:1210: \"$ac_compile\"") >&5
    1211   (eval $ac_compile) 2>&5
    1212   ac_status=$?
    1213   echo "$as_me:1213: \$? = $ac_status" >&5
    1214   (exit $ac_status); }; then
    1215   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    1216   case $ac_file in
    1217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    1218     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    1219        break;;
    1220   esac
    1221 done
    1222 else
    1223   echo "$as_me: failed program was:" >&5
    1224 cat conftest.$ac_ext >&5
    1225 { { echo "$as_me:1225: error: cannot compute OBJEXT: cannot compile" >&5
    1226 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
    1227    { (exit 1); exit 1; }; }
    1228 fi
    1229 
    1230 rm -f conftest.$ac_cv_objext conftest.$ac_ext
    1231 fi
    1232 echo "$as_me:1232: result: $ac_cv_objext" >&5
    1233 echo "${ECHO_T}$ac_cv_objext" >&6
    1234 OBJEXT=$ac_cv_objext
    1235 ac_objext=$OBJEXT
    1236 echo "$as_me:1236: checking whether we are using the GNU C++ compiler" >&5
    1237 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    1238 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    1239   echo $ECHO_N "(cached) $ECHO_C" >&6
    1240 else
    1241   cat >conftest.$ac_ext <<_ACEOF
    1242 #line 1242 "configure"
    1243 #include "confdefs.h"
    1244 
    1245 int
    1246 main ()
    1247 {
    1248 #ifndef __GNUC__
    1249        choke me
     632else
     633  echo "configure: failed program was:" >&5
     634  cat conftest.$ac_ext >&5
     635  ac_cv_prog_cxx_works=no
     636fi
     637rm -fr conftest*
     638ac_ext=c
     639# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     640ac_cpp='$CPP $CPPFLAGS'
     641ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     642ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     643cross_compiling=$ac_cv_prog_cc_cross
     644
     645echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
     646if test $ac_cv_prog_cxx_works = no; then
     647  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
     648fi
     649echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     650echo "configure:651: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     651echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
     652cross_compiling=$ac_cv_prog_cxx_cross
     653
     654echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
     655echo "configure:656: checking whether we are using GNU C++" >&5
     656if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
     657  echo $ac_n "(cached) $ac_c" 1>&6
     658else
     659  cat > conftest.C <<EOF
     660#ifdef __GNUC__
     661  yes;
    1250662#endif
    1251 
    1252   ;
    1253   return 0;
    1254 }
    1255 _ACEOF
    1256 rm -f conftest.$ac_objext
    1257 if { (eval echo "$as_me:1257: \"$ac_compile\"") >&5
    1258   (eval $ac_compile) 2>&5
    1259   ac_status=$?
    1260   echo "$as_me:1260: \$? = $ac_status" >&5
    1261   (exit $ac_status); } &&
    1262          { ac_try='test -s conftest.$ac_objext'
    1263   { (eval echo "$as_me:1263: \"$ac_try\"") >&5
    1264   (eval $ac_try) 2>&5
    1265   ac_status=$?
    1266   echo "$as_me:1266: \$? = $ac_status" >&5
    1267   (exit $ac_status); }; }; then
    1268   ac_compiler_gnu=yes
    1269 else
    1270   echo "$as_me: failed program was:" >&5
    1271 cat conftest.$ac_ext >&5
    1272 ac_compiler_gnu=no
    1273 fi
    1274 rm -f conftest.$ac_objext conftest.$ac_ext
    1275 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    1276 
    1277 fi
    1278 echo "$as_me:1278: result: $ac_cv_cxx_compiler_gnu" >&5
    1279 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    1280 GXX=`test $ac_compiler_gnu = yes && echo yes`
    1281 ac_test_CXXFLAGS=${CXXFLAGS+set}
    1282 ac_save_CXXFLAGS=$CXXFLAGS
    1283 CXXFLAGS="-g"
    1284 echo "$as_me:1284: checking whether $CXX accepts -g" >&5
    1285 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    1286 if test "${ac_cv_prog_cxx_g+set}" = set; then
    1287   echo $ECHO_N "(cached) $ECHO_C" >&6
    1288 else
    1289   cat >conftest.$ac_ext <<_ACEOF
    1290 #line 1290 "configure"
    1291 #include "confdefs.h"
    1292 
    1293 int
    1294 main ()
    1295 {
    1296 
    1297   ;
    1298   return 0;
    1299 }
    1300 _ACEOF
    1301 rm -f conftest.$ac_objext
    1302 if { (eval echo "$as_me:1302: \"$ac_compile\"") >&5
    1303   (eval $ac_compile) 2>&5
    1304   ac_status=$?
    1305   echo "$as_me:1305: \$? = $ac_status" >&5
    1306   (exit $ac_status); } &&
    1307          { ac_try='test -s conftest.$ac_objext'
    1308   { (eval echo "$as_me:1308: \"$ac_try\"") >&5
    1309   (eval $ac_try) 2>&5
    1310   ac_status=$?
    1311   echo "$as_me:1311: \$? = $ac_status" >&5
    1312   (exit $ac_status); }; }; then
     663EOF
     664if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     665  ac_cv_prog_gxx=yes
     666else
     667  ac_cv_prog_gxx=no
     668fi
     669fi
     670
     671echo "$ac_t""$ac_cv_prog_gxx" 1>&6
     672
     673if test $ac_cv_prog_gxx = yes; then
     674  GXX=yes
     675else
     676  GXX=
     677fi
     678
     679ac_test_CXXFLAGS="${CXXFLAGS+set}"
     680ac_save_CXXFLAGS="$CXXFLAGS"
     681CXXFLAGS=
     682echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     683echo "configure:684: checking whether ${CXX-g++} accepts -g" >&5
     684if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
     685  echo $ac_n "(cached) $ac_c" 1>&6
     686else
     687  echo 'void f(){}' > conftest.cc
     688if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
    1313689  ac_cv_prog_cxx_g=yes
    1314690else
    1315   echo "$as_me: failed program was:" >&5
    1316 cat conftest.$ac_ext >&5
    1317 ac_cv_prog_cxx_g=no
    1318 fi
    1319 rm -f conftest.$ac_objext conftest.$ac_ext
    1320 fi
    1321 echo "$as_me:1321: result: $ac_cv_prog_cxx_g" >&5
    1322 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     691  ac_cv_prog_cxx_g=no
     692fi
     693rm -f conftest*
     694
     695fi
     696
     697echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    1323698if test "$ac_test_CXXFLAGS" = set; then
    1324   CXXFLAGS=$ac_save_CXXFLAGS
     699  CXXFLAGS="$ac_save_CXXFLAGS"
    1325700elif test $ac_cv_prog_cxx_g = yes; then
    1326701  if test "$GXX" = yes; then
     
    1336711  fi
    1337712fi
    1338 for ac_declaration in \
    1339    ''\
    1340    '#include <stdlib.h>' \
    1341    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1342    'extern "C" void std::exit (int); using std::exit;' \
    1343    'extern "C" void exit (int) throw ();' \
    1344    'extern "C" void exit (int);' \
    1345    'void exit (int);'
    1346 do
    1347   cat >conftest.$ac_ext <<_ACEOF
    1348 #line 1348 "configure"
    1349 #include "confdefs.h"
    1350 #include <stdlib.h>
    1351 $ac_declaration
    1352 int
    1353 main ()
    1354 {
    1355 exit (42);
    1356   ;
    1357   return 0;
    1358 }
    1359 _ACEOF
    1360 rm -f conftest.$ac_objext
    1361 if { (eval echo "$as_me:1361: \"$ac_compile\"") >&5
    1362   (eval $ac_compile) 2>&5
    1363   ac_status=$?
    1364   echo "$as_me:1364: \$? = $ac_status" >&5
    1365   (exit $ac_status); } &&
    1366          { ac_try='test -s conftest.$ac_objext'
    1367   { (eval echo "$as_me:1367: \"$ac_try\"") >&5
    1368   (eval $ac_try) 2>&5
    1369   ac_status=$?
    1370   echo "$as_me:1370: \$? = $ac_status" >&5
    1371   (exit $ac_status); }; }; then
    1372   :
    1373 else
    1374   echo "$as_me: failed program was:" >&5
    1375 cat conftest.$ac_ext >&5
    1376 continue
    1377 fi
    1378 rm -f conftest.$ac_objext conftest.$ac_ext
    1379   cat >conftest.$ac_ext <<_ACEOF
    1380 #line 1380 "configure"
    1381 #include "confdefs.h"
    1382 $ac_declaration
    1383 int
    1384 main ()
    1385 {
    1386 exit (42);
    1387   ;
    1388   return 0;
    1389 }
    1390 _ACEOF
    1391 rm -f conftest.$ac_objext
    1392 if { (eval echo "$as_me:1392: \"$ac_compile\"") >&5
    1393   (eval $ac_compile) 2>&5
    1394   ac_status=$?
    1395   echo "$as_me:1395: \$? = $ac_status" >&5
    1396   (exit $ac_status); } &&
    1397          { ac_try='test -s conftest.$ac_objext'
    1398   { (eval echo "$as_me:1398: \"$ac_try\"") >&5
    1399   (eval $ac_try) 2>&5
    1400   ac_status=$?
    1401   echo "$as_me:1401: \$? = $ac_status" >&5
    1402   (exit $ac_status); }; }; then
    1403   break
    1404 else
    1405   echo "$as_me: failed program was:" >&5
    1406 cat conftest.$ac_ext >&5
    1407 fi
    1408 rm -f conftest.$ac_objext conftest.$ac_ext
    1409 done
    1410 echo '#ifdef __cplusplus' >>confdefs.h
    1411 echo $ac_declaration      >>confdefs.h
    1412 echo '#endif'             >>confdefs.h
    1413 
    1414 ac_ext=c
    1415 ac_cpp='$CPP $CPPFLAGS'
    1416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1419713
    1420714for ac_prog in mawk gawk nawk awk
    1421715do
    1422   # Extract the first word of "$ac_prog", so it can be a program name with args.
     716# Extract the first word of "$ac_prog", so it can be a program name with args.
    1423717set dummy $ac_prog; ac_word=$2
    1424 echo "$as_me:1424: checking for $ac_word" >&5
    1425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1426 if test "${ac_cv_prog_AWK+set}" = set; then
    1427   echo $ECHO_N "(cached) $ECHO_C" >&6
     718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     719echo "configure:720: checking for $ac_word" >&5
     720if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
     721  echo $ac_n "(cached) $ac_c" 1>&6
    1428722else
    1429723  if test -n "$AWK"; then
    1430724  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    1431725else
    1432   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1433 ac_dummy="$PATH"
    1434 for ac_dir in $ac_dummy; do
    1435   IFS=$ac_save_IFS
    1436   test -z "$ac_dir" && ac_dir=.
    1437   $as_executable_p "$ac_dir/$ac_word" || continue
    1438 ac_cv_prog_AWK="$ac_prog"
    1439 echo "$as_me:1439: found $ac_dir/$ac_word" >&5
    1440 break
    1441 done
    1442 
    1443 fi
    1444 fi
    1445 AWK=$ac_cv_prog_AWK
     726  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     727  ac_dummy="$PATH"
     728  for ac_dir in $ac_dummy; do
     729    test -z "$ac_dir" && ac_dir=.
     730    if test -f $ac_dir/$ac_word; then
     731      ac_cv_prog_AWK="$ac_prog"
     732      break
     733    fi
     734  done
     735  IFS="$ac_save_ifs"
     736fi
     737fi
     738AWK="$ac_cv_prog_AWK"
    1446739if test -n "$AWK"; then
    1447   echo "$as_me:1447: result: $AWK" >&5
    1448 echo "${ECHO_T}$AWK" >&6
    1449 else
    1450   echo "$as_me:1450: result: no" >&5
    1451 echo "${ECHO_T}no" >&6
    1452 fi
    1453 
    1454   test -n "$AWK" && break
     740  echo "$ac_t""$AWK" 1>&6
     741else
     742  echo "$ac_t""no" 1>&6
     743fi
     744
     745test -n "$AWK" && break
    1455746done
    1456747
    1457748for ac_prog in 'bison -y' byacc
    1458749do
    1459   # Extract the first word of "$ac_prog", so it can be a program name with args.
     750# Extract the first word of "$ac_prog", so it can be a program name with args.
    1460751set dummy $ac_prog; ac_word=$2
    1461 echo "$as_me:1461: checking for $ac_word" >&5
    1462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1463 if test "${ac_cv_prog_YACC+set}" = set; then
    1464   echo $ECHO_N "(cached) $ECHO_C" >&6
     752echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     753echo "configure:754: checking for $ac_word" >&5
     754if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
     755  echo $ac_n "(cached) $ac_c" 1>&6
    1465756else
    1466757  if test -n "$YACC"; then
    1467758  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    1468759else
    1469   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1470 ac_dummy="$PATH"
    1471 for ac_dir in $ac_dummy; do
    1472   IFS=$ac_save_IFS
    1473   test -z "$ac_dir" && ac_dir=.
    1474   $as_executable_p "$ac_dir/$ac_word" || continue
    1475 ac_cv_prog_YACC="$ac_prog"
    1476 echo "$as_me:1476: found $ac_dir/$ac_word" >&5
    1477 break
    1478 done
    1479 
    1480 fi
    1481 fi
    1482 YACC=$ac_cv_prog_YACC
     760  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     761  ac_dummy="$PATH"
     762  for ac_dir in $ac_dummy; do
     763    test -z "$ac_dir" && ac_dir=.
     764    if test -f $ac_dir/$ac_word; then
     765      ac_cv_prog_YACC="$ac_prog"
     766      break
     767    fi
     768  done
     769  IFS="$ac_save_ifs"
     770fi
     771fi
     772YACC="$ac_cv_prog_YACC"
    1483773if test -n "$YACC"; then
    1484   echo "$as_me:1484: result: $YACC" >&5
    1485 echo "${ECHO_T}$YACC" >&6
    1486 else
    1487   echo "$as_me:1487: result: no" >&5
    1488 echo "${ECHO_T}no" >&6
    1489 fi
    1490 
    1491   test -n "$YACC" && break
     774  echo "$ac_t""$YACC" 1>&6
     775else
     776  echo "$ac_t""no" 1>&6
     777fi
     778
     779test -n "$YACC" && break
    1492780done
    1493781test -n "$YACC" || YACC="yacc"
    1494782
    1495 ac_ext=c
    1496 ac_cpp='$CPP $CPPFLAGS'
    1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1500 if test -n "$ac_tool_prefix"; then
    1501   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    1502 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1503 echo "$as_me:1503: checking for $ac_word" >&5
    1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1505 if test "${ac_cv_prog_CC+set}" = set; then
    1506   echo $ECHO_N "(cached) $ECHO_C" >&6
     783# Extract the first word of "gcc", so it can be a program name with args.
     784set dummy gcc; ac_word=$2
     785echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     786echo "configure:787: checking for $ac_word" >&5
     787if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     788  echo $ac_n "(cached) $ac_c" 1>&6
    1507789else
    1508790  if test -n "$CC"; then
    1509791  ac_cv_prog_CC="$CC" # Let the user override the test.
    1510792else
    1511   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1512 ac_dummy="$PATH"
    1513 for ac_dir in $ac_dummy; do
    1514   IFS=$ac_save_IFS
    1515   test -z "$ac_dir" && ac_dir=.
    1516   $as_executable_p "$ac_dir/$ac_word" || continue
    1517 ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1518 echo "$as_me:1518: found $ac_dir/$ac_word" >&5
    1519 break
    1520 done
    1521 
    1522 fi
    1523 fi
    1524 CC=$ac_cv_prog_CC
     793  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     794  ac_dummy="$PATH"
     795  for ac_dir in $ac_dummy; do
     796    test -z "$ac_dir" && ac_dir=.
     797    if test -f $ac_dir/$ac_word; then
     798      ac_cv_prog_CC="gcc"
     799      break
     800    fi
     801  done
     802  IFS="$ac_save_ifs"
     803fi
     804fi
     805CC="$ac_cv_prog_CC"
    1525806if test -n "$CC"; then
    1526   echo "$as_me:1526: result: $CC" >&5
    1527 echo "${ECHO_T}$CC" >&6
    1528 else
    1529   echo "$as_me:1529: result: no" >&5
    1530 echo "${ECHO_T}no" >&6
    1531 fi
    1532 
    1533 fi
    1534 if test -z "$ac_cv_prog_CC"; then
    1535   ac_ct_CC=$CC
    1536   # Extract the first word of "gcc", so it can be a program name with args.
    1537 set dummy gcc; ac_word=$2
    1538 echo "$as_me:1538: checking for $ac_word" >&5
    1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1541   echo $ECHO_N "(cached) $ECHO_C" >&6
    1542 else
    1543   if test -n "$ac_ct_CC"; then
    1544   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1545 else
    1546   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1547 ac_dummy="$PATH"
    1548 for ac_dir in $ac_dummy; do
    1549   IFS=$ac_save_IFS
    1550   test -z "$ac_dir" && ac_dir=.
    1551   $as_executable_p "$ac_dir/$ac_word" || continue
    1552 ac_cv_prog_ac_ct_CC="gcc"
    1553 echo "$as_me:1553: found $ac_dir/$ac_word" >&5
    1554 break
    1555 done
    1556 
    1557 fi
    1558 fi
    1559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1560 if test -n "$ac_ct_CC"; then
    1561   echo "$as_me:1561: result: $ac_ct_CC" >&5
    1562 echo "${ECHO_T}$ac_ct_CC" >&6
    1563 else
    1564   echo "$as_me:1564: result: no" >&5
    1565 echo "${ECHO_T}no" >&6
    1566 fi
    1567 
    1568   CC=$ac_ct_CC
    1569 else
    1570   CC="$ac_cv_prog_CC"
    1571 fi
    1572 
    1573 if test -z "$CC"; then
    1574   if test -n "$ac_tool_prefix"; then
    1575   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    1576 set dummy ${ac_tool_prefix}cc; ac_word=$2
    1577 echo "$as_me:1577: checking for $ac_word" >&5
    1578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1579 if test "${ac_cv_prog_CC+set}" = set; then
    1580   echo $ECHO_N "(cached) $ECHO_C" >&6
    1581 else
    1582   if test -n "$CC"; then
    1583   ac_cv_prog_CC="$CC" # Let the user override the test.
    1584 else
    1585   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1586 ac_dummy="$PATH"
    1587 for ac_dir in $ac_dummy; do
    1588   IFS=$ac_save_IFS
    1589   test -z "$ac_dir" && ac_dir=.
    1590   $as_executable_p "$ac_dir/$ac_word" || continue
    1591 ac_cv_prog_CC="${ac_tool_prefix}cc"
    1592 echo "$as_me:1592: found $ac_dir/$ac_word" >&5
    1593 break
    1594 done
    1595 
    1596 fi
    1597 fi
    1598 CC=$ac_cv_prog_CC
    1599 if test -n "$CC"; then
    1600   echo "$as_me:1600: result: $CC" >&5
    1601 echo "${ECHO_T}$CC" >&6
    1602 else
    1603   echo "$as_me:1603: result: no" >&5
    1604 echo "${ECHO_T}no" >&6
    1605 fi
    1606 
    1607 fi
    1608 if test -z "$ac_cv_prog_CC"; then
    1609   ac_ct_CC=$CC
    1610   # Extract the first word of "cc", so it can be a program name with args.
    1611 set dummy cc; ac_word=$2
    1612 echo "$as_me:1612: checking for $ac_word" >&5
    1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1615   echo $ECHO_N "(cached) $ECHO_C" >&6
    1616 else
    1617   if test -n "$ac_ct_CC"; then
    1618   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1619 else
    1620   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1621 ac_dummy="$PATH"
    1622 for ac_dir in $ac_dummy; do
    1623   IFS=$ac_save_IFS
    1624   test -z "$ac_dir" && ac_dir=.
    1625   $as_executable_p "$ac_dir/$ac_word" || continue
    1626 ac_cv_prog_ac_ct_CC="cc"
    1627 echo "$as_me:1627: found $ac_dir/$ac_word" >&5
    1628 break
    1629 done
    1630 
    1631 fi
    1632 fi
    1633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1634 if test -n "$ac_ct_CC"; then
    1635   echo "$as_me:1635: result: $ac_ct_CC" >&5
    1636 echo "${ECHO_T}$ac_ct_CC" >&6
    1637 else
    1638   echo "$as_me:1638: result: no" >&5
    1639 echo "${ECHO_T}no" >&6
    1640 fi
    1641 
    1642   CC=$ac_ct_CC
    1643 else
    1644   CC="$ac_cv_prog_CC"
    1645 fi
    1646 
    1647 fi
     807  echo "$ac_t""$CC" 1>&6
     808else
     809  echo "$ac_t""no" 1>&6
     810fi
     811
    1648812if test -z "$CC"; then
    1649813  # Extract the first word of "cc", so it can be a program name with args.
    1650814set dummy cc; ac_word=$2
    1651 echo "$as_me:1651: checking for $ac_word" >&5
    1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1653 if test "${ac_cv_prog_CC+set}" = set; then
    1654   echo $ECHO_N "(cached) $ECHO_C" >&6
     815echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     816echo "configure:817: checking for $ac_word" >&5
     817if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     818  echo $ac_n "(cached) $ac_c" 1>&6
    1655819else
    1656820  if test -n "$CC"; then
    1657821  ac_cv_prog_CC="$CC" # Let the user override the test.
    1658822else
     823  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1659824  ac_prog_rejected=no
    1660   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1661 ac_dummy="$PATH"
    1662 for ac_dir in $ac_dummy; do
    1663   IFS=$ac_save_IFS
    1664   test -z "$ac_dir" && ac_dir=.
    1665   $as_executable_p "$ac_dir/$ac_word" || continue
    1666 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    1667   ac_prog_rejected=yes
    1668   continue
    1669 fi
    1670 ac_cv_prog_CC="cc"
    1671 echo "$as_me:1671: found $ac_dir/$ac_word" >&5
    1672 break
    1673 done
    1674 
     825  ac_dummy="$PATH"
     826  for ac_dir in $ac_dummy; do
     827    test -z "$ac_dir" && ac_dir=.
     828    if test -f $ac_dir/$ac_word; then
     829      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     830        ac_prog_rejected=yes
     831    continue
     832      fi
     833      ac_cv_prog_CC="cc"
     834      break
     835    fi
     836  done
     837  IFS="$ac_save_ifs"
    1675838if test $ac_prog_rejected = yes; then
    1676839  # We found a bogon in the path, so make sure we never use it.
    1677840  set dummy $ac_cv_prog_CC
    1678841  shift
    1679   if test $# != 0; then
     842  if test $# -gt 0; then
    1680843    # We chose a different compiler from the bogus one.
    1681844    # However, it has the same basename, so the bogon will be chosen
    1682845    # first if we set CC to just the basename; use the full file name.
    1683846    shift
    1684     set dummy "$ac_dir/$ac_word" ${1+"$@"}
     847    set dummy "$ac_dir/$ac_word" "$@"
    1685848    shift
    1686849    ac_cv_prog_CC="$@"
     
    1689852fi
    1690853fi
    1691 CC=$ac_cv_prog_CC
     854CC="$ac_cv_prog_CC"
    1692855if test -n "$CC"; then
    1693   echo "$as_me:1693: result: $CC" >&5
    1694 echo "${ECHO_T}$CC" >&6
    1695 else
    1696   echo "$as_me:1696: result: no" >&5
    1697 echo "${ECHO_T}no" >&6
    1698 fi
    1699 
    1700 fi
    1701 if test -z "$CC"; then
    1702   if test -n "$ac_tool_prefix"; then
    1703   for ac_prog in cl
    1704   do
    1705     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    1706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1707 echo "$as_me:1707: checking for $ac_word" >&5
    1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1709 if test "${ac_cv_prog_CC+set}" = set; then
    1710   echo $ECHO_N "(cached) $ECHO_C" >&6
     856  echo "$ac_t""$CC" 1>&6
     857else
     858  echo "$ac_t""no" 1>&6
     859fi
     860
     861  if test -z "$CC"; then
     862    case "`uname -s`" in
     863    *win32* | *WIN32*)
     864      # Extract the first word of "cl", so it can be a program name with args.
     865set dummy cl; ac_word=$2
     866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     867echo "configure:868: checking for $ac_word" >&5
     868if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     869  echo $ac_n "(cached) $ac_c" 1>&6
    1711870else
    1712871  if test -n "$CC"; then
    1713872  ac_cv_prog_CC="$CC" # Let the user override the test.
    1714873else
    1715   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1716 ac_dummy="$PATH"
    1717 for ac_dir in $ac_dummy; do
    1718   IFS=$ac_save_IFS
    1719   test -z "$ac_dir" && ac_dir=.
    1720   $as_executable_p "$ac_dir/$ac_word" || continue
    1721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1722 echo "$as_me:1722: found $ac_dir/$ac_word" >&5
    1723 break
    1724 done
    1725 
    1726 fi
    1727 fi
    1728 CC=$ac_cv_prog_CC
     874  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     875  ac_dummy="$PATH"
     876  for ac_dir in $ac_dummy; do
     877    test -z "$ac_dir" && ac_dir=.
     878    if test -f $ac_dir/$ac_word; then
     879      ac_cv_prog_CC="cl"
     880      break
     881    fi
     882  done
     883  IFS="$ac_save_ifs"
     884fi
     885fi
     886CC="$ac_cv_prog_CC"
    1729887if test -n "$CC"; then
    1730   echo "$as_me:1730: result: $CC" >&5
    1731 echo "${ECHO_T}$CC" >&6
    1732 else
    1733   echo "$as_me:1733: result: no" >&5
    1734 echo "${ECHO_T}no" >&6
    1735 fi
    1736 
    1737     test -n "$CC" && break
    1738   done
    1739 fi
    1740 if test -z "$CC"; then
    1741   ac_ct_CC=$CC
    1742   for ac_prog in cl
    1743 do
    1744   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1745 set dummy $ac_prog; ac_word=$2
    1746 echo "$as_me:1746: checking for $ac_word" >&5
    1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1749   echo $ECHO_N "(cached) $ECHO_C" >&6
    1750 else
    1751   if test -n "$ac_ct_CC"; then
    1752   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1753 else
    1754   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1755 ac_dummy="$PATH"
    1756 for ac_dir in $ac_dummy; do
    1757   IFS=$ac_save_IFS
    1758   test -z "$ac_dir" && ac_dir=.
    1759   $as_executable_p "$ac_dir/$ac_word" || continue
    1760 ac_cv_prog_ac_ct_CC="$ac_prog"
    1761 echo "$as_me:1761: found $ac_dir/$ac_word" >&5
    1762 break
    1763 done
    1764 
    1765 fi
    1766 fi
    1767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1768 if test -n "$ac_ct_CC"; then
    1769   echo "$as_me:1769: result: $ac_ct_CC" >&5
    1770 echo "${ECHO_T}$ac_ct_CC" >&6
    1771 else
    1772   echo "$as_me:1772: result: no" >&5
    1773 echo "${ECHO_T}no" >&6
    1774 fi
    1775 
    1776   test -n "$ac_ct_CC" && break
    1777 done
    1778 
    1779   CC=$ac_ct_CC
    1780 fi
    1781 
    1782 fi
    1783 
    1784 test -z "$CC" && { { echo "$as_me:1784: error: no acceptable cc found in \$PATH" >&5
    1785 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
    1786    { (exit 1); exit 1; }; }
    1787 
    1788 echo "$as_me:1788: checking whether we are using the GNU C compiler" >&5
    1789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    1790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    1791   echo $ECHO_N "(cached) $ECHO_C" >&6
    1792 else
    1793   cat >conftest.$ac_ext <<_ACEOF
    1794 #line 1794 "configure"
    1795 #include "confdefs.h"
    1796 
    1797 int
    1798 main ()
    1799 {
    1800 #ifndef __GNUC__
    1801        choke me
     888  echo "$ac_t""$CC" 1>&6
     889else
     890  echo "$ac_t""no" 1>&6
     891fi
     892 ;;
     893    esac
     894  fi
     895  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
     896fi
     897
     898echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     899echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     900
     901ac_ext=c
     902# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     903ac_cpp='$CPP $CPPFLAGS'
     904ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     905ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     906cross_compiling=$ac_cv_prog_cc_cross
     907
     908cat > conftest.$ac_ext << EOF
     909
     910#line 911 "configure"
     911#include "confdefs.h"
     912
     913main(){return(0);}
     914EOF
     915if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     916  ac_cv_prog_cc_works=yes
     917  # If we can't run a trivial program, we are probably using a cross compiler.
     918  if (./conftest; exit) 2>/dev/null; then
     919    ac_cv_prog_cc_cross=no
     920  else
     921    ac_cv_prog_cc_cross=yes
     922  fi
     923else
     924  echo "configure: failed program was:" >&5
     925  cat conftest.$ac_ext >&5
     926  ac_cv_prog_cc_works=no
     927fi
     928rm -fr conftest*
     929ac_ext=c
     930# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     931ac_cpp='$CPP $CPPFLAGS'
     932ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     933ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     934cross_compiling=$ac_cv_prog_cc_cross
     935
     936echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     937if test $ac_cv_prog_cc_works = no; then
     938  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
     939fi
     940echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     941echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     942echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
     943cross_compiling=$ac_cv_prog_cc_cross
     944
     945echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     946echo "configure:947: checking whether we are using GNU C" >&5
     947if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
     948  echo $ac_n "(cached) $ac_c" 1>&6
     949else
     950  cat > conftest.c <<EOF
     951#ifdef __GNUC__
     952  yes;
    1802953#endif
    1803 
    1804   ;
    1805   return 0;
    1806 }
    1807 _ACEOF
    1808 rm -f conftest.$ac_objext
    1809 if { (eval echo "$as_me:1809: \"$ac_compile\"") >&5
    1810   (eval $ac_compile) 2>&5
    1811   ac_status=$?
    1812   echo "$as_me:1812: \$? = $ac_status" >&5
    1813   (exit $ac_status); } &&
    1814          { ac_try='test -s conftest.$ac_objext'
    1815   { (eval echo "$as_me:1815: \"$ac_try\"") >&5
    1816   (eval $ac_try) 2>&5
    1817   ac_status=$?
    1818   echo "$as_me:1818: \$? = $ac_status" >&5
    1819   (exit $ac_status); }; }; then
    1820   ac_compiler_gnu=yes
    1821 else
    1822   echo "$as_me: failed program was:" >&5
    1823 cat conftest.$ac_ext >&5
    1824 ac_compiler_gnu=no
    1825 fi
    1826 rm -f conftest.$ac_objext conftest.$ac_ext
    1827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    1828 
    1829 fi
    1830 echo "$as_me:1830: result: $ac_cv_c_compiler_gnu" >&5
    1831 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    1832 GCC=`test $ac_compiler_gnu = yes && echo yes`
    1833 ac_test_CFLAGS=${CFLAGS+set}
    1834 ac_save_CFLAGS=$CFLAGS
    1835 CFLAGS="-g"
    1836 echo "$as_me:1836: checking whether $CC accepts -g" >&5
    1837 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    1838 if test "${ac_cv_prog_cc_g+set}" = set; then
    1839   echo $ECHO_N "(cached) $ECHO_C" >&6
    1840 else
    1841   cat >conftest.$ac_ext <<_ACEOF
    1842 #line 1842 "configure"
    1843 #include "confdefs.h"
    1844 
    1845 int
    1846 main ()
    1847 {
    1848 
    1849   ;
    1850   return 0;
    1851 }
    1852 _ACEOF
    1853 rm -f conftest.$ac_objext
    1854 if { (eval echo "$as_me:1854: \"$ac_compile\"") >&5
    1855   (eval $ac_compile) 2>&5
    1856   ac_status=$?
    1857   echo "$as_me:1857: \$? = $ac_status" >&5
    1858   (exit $ac_status); } &&
    1859          { ac_try='test -s conftest.$ac_objext'
    1860   { (eval echo "$as_me:1860: \"$ac_try\"") >&5
    1861   (eval $ac_try) 2>&5
    1862   ac_status=$?
    1863   echo "$as_me:1863: \$? = $ac_status" >&5
    1864   (exit $ac_status); }; }; then
     954EOF
     955if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     956  ac_cv_prog_gcc=yes
     957else
     958  ac_cv_prog_gcc=no
     959fi
     960fi
     961
     962echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     963
     964if test $ac_cv_prog_gcc = yes; then
     965  GCC=yes
     966else
     967  GCC=
     968fi
     969
     970ac_test_CFLAGS="${CFLAGS+set}"
     971ac_save_CFLAGS="$CFLAGS"
     972CFLAGS=
     973echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     974echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
     975if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
     976  echo $ac_n "(cached) $ac_c" 1>&6
     977else
     978  echo 'void f(){}' > conftest.c
     979if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
    1865980  ac_cv_prog_cc_g=yes
    1866981else
    1867   echo "$as_me: failed program was:" >&5
    1868 cat conftest.$ac_ext >&5
    1869 ac_cv_prog_cc_g=no
    1870 fi
    1871 rm -f conftest.$ac_objext conftest.$ac_ext
    1872 fi
    1873 echo "$as_me:1873: result: $ac_cv_prog_cc_g" >&5
    1874 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     982  ac_cv_prog_cc_g=no
     983fi
     984rm -f conftest*
     985
     986fi
     987
     988echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    1875989if test "$ac_test_CFLAGS" = set; then
    1876   CFLAGS=$ac_save_CFLAGS
     990  CFLAGS="$ac_save_CFLAGS"
    1877991elif test $ac_cv_prog_cc_g = yes; then
    1878992  if test "$GCC" = yes; then
     
    18881002  fi
    18891003fi
    1890 # Some people use a C++ compiler to compile C.  Since we use `exit',
    1891 # in C++ we need to declare it.  In case someone uses the same compiler
    1892 # for both compiling C and C++ we need to have the C++ compiler decide
    1893 # the declaration of exit, since it's the most demanding environment.
    1894 cat >conftest.$ac_ext <<_ACEOF
    1895 #ifndef __cplusplus
    1896   choke me
    1897 #endif
    1898 _ACEOF
    1899 rm -f conftest.$ac_objext
    1900 if { (eval echo "$as_me:1900: \"$ac_compile\"") >&5
    1901   (eval $ac_compile) 2>&5
    1902   ac_status=$?
    1903   echo "$as_me:1903: \$? = $ac_status" >&5
    1904   (exit $ac_status); } &&
    1905          { ac_try='test -s conftest.$ac_objext'
    1906   { (eval echo "$as_me:1906: \"$ac_try\"") >&5
    1907   (eval $ac_try) 2>&5
    1908   ac_status=$?
    1909   echo "$as_me:1909: \$? = $ac_status" >&5
    1910   (exit $ac_status); }; }; then
    1911   for ac_declaration in \
    1912    ''\
    1913    '#include <stdlib.h>' \
    1914    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1915    'extern "C" void std::exit (int); using std::exit;' \
    1916    'extern "C" void exit (int) throw ();' \
    1917    'extern "C" void exit (int);' \
    1918    'void exit (int);'
    1919 do
    1920   cat >conftest.$ac_ext <<_ACEOF
    1921 #line 1921 "configure"
    1922 #include "confdefs.h"
    1923 #include <stdlib.h>
    1924 $ac_declaration
    1925 int
    1926 main ()
    1927 {
    1928 exit (42);
    1929   ;
    1930   return 0;
    1931 }
    1932 _ACEOF
    1933 rm -f conftest.$ac_objext
    1934 if { (eval echo "$as_me:1934: \"$ac_compile\"") >&5
    1935   (eval $ac_compile) 2>&5
    1936   ac_status=$?
    1937   echo "$as_me:1937: \$? = $ac_status" >&5
    1938   (exit $ac_status); } &&
    1939          { ac_try='test -s conftest.$ac_objext'
    1940   { (eval echo "$as_me:1940: \"$ac_try\"") >&5
    1941   (eval $ac_try) 2>&5
    1942   ac_status=$?
    1943   echo "$as_me:1943: \$? = $ac_status" >&5
    1944   (exit $ac_status); }; }; then
    1945   :
    1946 else
    1947   echo "$as_me: failed program was:" >&5
    1948 cat conftest.$ac_ext >&5
    1949 continue
    1950 fi
    1951 rm -f conftest.$ac_objext conftest.$ac_ext
    1952   cat >conftest.$ac_ext <<_ACEOF
    1953 #line 1953 "configure"
    1954 #include "confdefs.h"
    1955 $ac_declaration
    1956 int
    1957 main ()
    1958 {
    1959 exit (42);
    1960   ;
    1961   return 0;
    1962 }
    1963 _ACEOF
    1964 rm -f conftest.$ac_objext
    1965 if { (eval echo "$as_me:1965: \"$ac_compile\"") >&5
    1966   (eval $ac_compile) 2>&5
    1967   ac_status=$?
    1968   echo "$as_me:1968: \$? = $ac_status" >&5
    1969   (exit $ac_status); } &&
    1970          { ac_try='test -s conftest.$ac_objext'
    1971   { (eval echo "$as_me:1971: \"$ac_try\"") >&5
    1972   (eval $ac_try) 2>&5
    1973   ac_status=$?
    1974   echo "$as_me:1974: \$? = $ac_status" >&5
    1975   (exit $ac_status); }; }; then
    1976   break
    1977 else
    1978   echo "$as_me: failed program was:" >&5
    1979 cat conftest.$ac_ext >&5
    1980 fi
    1981 rm -f conftest.$ac_objext conftest.$ac_ext
    1982 done
    1983 echo '#ifdef __cplusplus' >>confdefs.h
    1984 echo $ac_declaration      >>confdefs.h
    1985 echo '#endif'             >>confdefs.h
    1986 
    1987 else
    1988   echo "$as_me: failed program was:" >&5
    1989 cat conftest.$ac_ext >&5
    1990 fi
    1991 rm -f conftest.$ac_objext conftest.$ac_ext
    1992 ac_ext=c
    1993 ac_cpp='$CPP $CPPFLAGS'
    1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    19971004
    19981005ac_aux_dir=
     
    20061013    ac_install_sh="$ac_aux_dir/install.sh -c"
    20071014    break
    2008   elif test -f $ac_dir/shtool; then
    2009     ac_aux_dir=$ac_dir
    2010     ac_install_sh="$ac_aux_dir/shtool install -c"
    2011     break
    20121015  fi
    20131016done
    20141017if test -z "$ac_aux_dir"; then
    2015   { { echo "$as_me:2015: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2016 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2017    { (exit 1); exit 1; }; }
    2018 fi
    2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2021 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     1018  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
     1019fi
     1020ac_config_guess=$ac_aux_dir/config.guess
     1021ac_config_sub=$ac_aux_dir/config.sub
     1022ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
    20221023
    20231024# Find a good install program.  We prefer a C program (faster),
     
    20281029# IRIX /sbin/install
    20291030# AIX /bin/install
    2030 # AmigaOS /C/install, which installs bootblocks on floppy discs
    20311031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    20321032# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    20331033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    20341034# ./install, which can be erroneously created by make from ./install.sh.
    2035 echo "$as_me:2035: checking for a BSD compatible install" >&5
    2036 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
     1035echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
     1036echo "configure:1037: checking for a BSD compatible install" >&5
    20371037if test -z "$INSTALL"; then
    2038 if test "${ac_cv_path_install+set}" = set; then
    2039   echo $ECHO_N "(cached) $ECHO_C" >&6
    2040 else
    2041     ac_save_IFS=$IFS; IFS=$ac_path_separator
     1038if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     1039  echo $ac_n "(cached) $ac_c" 1>&6
     1040else
     1041    IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
    20421042  for ac_dir in $PATH; do
    2043     IFS=$ac_save_IFS
    20441043    # Account for people who put trailing slashes in PATH elements.
    2045     case $ac_dir/ in
    2046     / | ./ | .// | /cC/* \
    2047     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    2048     | /usr/ucb/* ) ;;
     1044    case "$ac_dir/" in
     1045    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    20491046    *)
    20501047      # OSF1 and SCO ODT 3.0 have their own names for install.
     
    20521049      # by default.
    20531050      for ac_prog in ginstall scoinst install; do
    2054         if $as_executable_p "$ac_dir/$ac_prog"; then
     1051        if test -f $ac_dir/$ac_prog; then
    20551052      if test $ac_prog = install &&
    2056             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
     1053            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    20571054        # AIX install.  It has an incompatible calling convention.
    2058         :
    2059       elif test $ac_prog = install &&
    2060         grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    2061         # program-specific install script used by HP pwplus--don't use.
    20621055        :
    20631056      else
     
    20701063    esac
    20711064  done
     1065  IFS="$ac_save_IFS"
    20721066
    20731067fi
    20741068  if test "${ac_cv_path_install+set}" = set; then
    2075     INSTALL=$ac_cv_path_install
     1069    INSTALL="$ac_cv_path_install"
    20761070  else
    20771071    # As a last resort, use the slow shell script.  We don't cache a
     
    20791073    # break other packages using the cache if that directory is
    20801074    # removed, or if the path is relative.
    2081     INSTALL=$ac_install_sh
     1075    INSTALL="$ac_install_sh"
    20821076  fi
    20831077fi
    2084 echo "$as_me:2084: result: $INSTALL" >&5
    2085 echo "${ECHO_T}$INSTALL" >&6
     1078echo "$ac_t""$INSTALL" 1>&6
    20861079
    20871080# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    20891082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    20901083
    2091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     1084test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    20921085
    20931086test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    20941087
    2095 echo "$as_me:2095: checking whether ln -s works" >&5
    2096 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    2097 LN_S=$as_ln_s
    2098 if test "$LN_S" = "ln -s"; then
    2099   echo "$as_me:2099: result: yes" >&5
    2100 echo "${ECHO_T}yes" >&6
    2101 else
    2102   echo "$as_me:2102: result: no, using $LN_S" >&5
    2103 echo "${ECHO_T}no, using $LN_S" >&6
    2104 fi
    2105 
    2106 echo "$as_me:2106: checking whether ${MAKE-make} sets \${MAKE}" >&5
    2107 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
    2108 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    2109 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2110   echo $ECHO_N "(cached) $ECHO_C" >&6
    2111 else
    2112   cat >conftest.make <<\EOF
     1088echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
     1089echo "configure:1090: checking whether ln -s works" >&5
     1090if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
     1091  echo $ac_n "(cached) $ac_c" 1>&6
     1092else
     1093  rm -f conftestdata
     1094if ln -s X conftestdata 2>/dev/null
     1095then
     1096  rm -f conftestdata
     1097  ac_cv_prog_LN_S="ln -s"
     1098else
     1099  ac_cv_prog_LN_S=ln
     1100fi
     1101fi
     1102LN_S="$ac_cv_prog_LN_S"
     1103if test "$ac_cv_prog_LN_S" = "ln -s"; then
     1104  echo "$ac_t""yes" 1>&6
     1105else
     1106  echo "$ac_t""no" 1>&6
     1107fi
     1108
     1109echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
     1110echo "configure:1111: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1111set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
     1112if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     1113  echo $ac_n "(cached) $ac_c" 1>&6
     1114else
     1115  cat > conftestmake <<\EOF
    21131116all:
    21141117    @echo 'ac_maketemp="${MAKE}"'
    21151118EOF
    21161119# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2117 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     1120eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
    21181121if test -n "$ac_maketemp"; then
    21191122  eval ac_cv_prog_make_${ac_make}_set=yes
     
    21211124  eval ac_cv_prog_make_${ac_make}_set=no
    21221125fi
    2123 rm -f conftest.make
     1126rm -f conftestmake
    21241127fi
    21251128if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2126   echo "$as_me:2126: result: yes" >&5
    2127 echo "${ECHO_T}yes" >&6
     1129  echo "$ac_t""yes" 1>&6
    21281130  SET_MAKE=
    21291131else
    2130   echo "$as_me:2130: result: no" >&5
    2131 echo "${ECHO_T}no" >&6
     1132  echo "$ac_t""no" 1>&6
    21321133  SET_MAKE="MAKE=${MAKE-make}"
    21331134fi
    21341135
    2135 if test -n "$ac_tool_prefix"; then
    2136   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    2137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2138 echo "$as_me:2138: checking for $ac_word" >&5
    2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2140 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2141   echo $ECHO_N "(cached) $ECHO_C" >&6
     1136# Extract the first word of "ranlib", so it can be a program name with args.
     1137set dummy ranlib; ac_word=$2
     1138echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1139echo "configure:1140: checking for $ac_word" >&5
     1140if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
     1141  echo $ac_n "(cached) $ac_c" 1>&6
    21421142else
    21431143  if test -n "$RANLIB"; then
    21441144  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    21451145else
    2146   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2147 ac_dummy="$PATH"
    2148 for ac_dir in $ac_dummy; do
    2149   IFS=$ac_save_IFS
    2150   test -z "$ac_dir" && ac_dir=.
    2151   $as_executable_p "$ac_dir/$ac_word" || continue
    2152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2153 echo "$as_me:2153: found $ac_dir/$ac_word" >&5
    2154 break
    2155 done
    2156 
    2157 fi
    2158 fi
    2159 RANLIB=$ac_cv_prog_RANLIB
     1146  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1147  ac_dummy="$PATH"
     1148  for ac_dir in $ac_dummy; do
     1149    test -z "$ac_dir" && ac_dir=.
     1150    if test -f $ac_dir/$ac_word; then
     1151      ac_cv_prog_RANLIB="ranlib"
     1152      break
     1153    fi
     1154  done
     1155  IFS="$ac_save_ifs"
     1156  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
     1157fi
     1158fi
     1159RANLIB="$ac_cv_prog_RANLIB"
    21601160if test -n "$RANLIB"; then
    2161   echo "$as_me:2161: result: $RANLIB" >&5
    2162 echo "${ECHO_T}$RANLIB" >&6
    2163 else
    2164   echo "$as_me:2164: result: no" >&5
    2165 echo "${ECHO_T}no" >&6
    2166 fi
    2167 
    2168 fi
    2169 if test -z "$ac_cv_prog_RANLIB"; then
    2170   ac_ct_RANLIB=$RANLIB
    2171   # Extract the first word of "ranlib", so it can be a program name with args.
    2172 set dummy ranlib; ac_word=$2
    2173 echo "$as_me:2173: checking for $ac_word" >&5
    2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2175 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    2176   echo $ECHO_N "(cached) $ECHO_C" >&6
    2177 else
    2178   if test -n "$ac_ct_RANLIB"; then
    2179   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    2180 else
    2181   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2182 ac_dummy="$PATH"
    2183 for ac_dir in $ac_dummy; do
    2184   IFS=$ac_save_IFS
    2185   test -z "$ac_dir" && ac_dir=.
    2186   $as_executable_p "$ac_dir/$ac_word" || continue
    2187 ac_cv_prog_ac_ct_RANLIB="ranlib"
    2188 echo "$as_me:2188: found $ac_dir/$ac_word" >&5
    2189 break
    2190 done
    2191 
    2192   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
    2193 fi
    2194 fi
    2195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    2196 if test -n "$ac_ct_RANLIB"; then
    2197   echo "$as_me:2197: result: $ac_ct_RANLIB" >&5
    2198 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    2199 else
    2200   echo "$as_me:2200: result: no" >&5
    2201 echo "${ECHO_T}no" >&6
    2202 fi
    2203 
    2204   RANLIB=$ac_ct_RANLIB
    2205 else
    2206   RANLIB="$ac_cv_prog_RANLIB"
    2207 fi
    2208 
    2209 ac_ext=c
    2210 ac_cpp='$CPP $CPPFLAGS'
    2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2214 echo "$as_me:2214: checking how to run the C preprocessor" >&5
    2215 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     1161  echo "$ac_t""$RANLIB" 1>&6
     1162else
     1163  echo "$ac_t""no" 1>&6
     1164fi
     1165
     1166
     1167echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
     1168echo "configure:1169: checking how to run the C preprocessor" >&5
    22161169# On Suns, sometimes $CPP names a directory.
    22171170if test -n "$CPP" && test -d "$CPP"; then
     
    22191172fi
    22201173if test -z "$CPP"; then
    2221   if test "${ac_cv_prog_CPP+set}" = set; then
    2222   echo $ECHO_N "(cached) $ECHO_C" >&6
    2223 else
    2224       # Double quotes because CPP needs to be expanded
    2225     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    2226     do
    2227       # break 2 since there is a loop in there.
    2228       ac_preproc_ok=false
    2229 for ac_c_preproc_warn_flag in '' yes
    2230 do
    2231   # Use a header file that comes with gcc, so configuring glibc
    2232   # with a fresh cross-compiler works.
     1174if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
     1175  echo $ac_n "(cached) $ac_c" 1>&6
     1176else
     1177    # This must be in double quotes, not single quotes, because CPP may get
     1178  # substituted into the Makefile and "${CC-cc}" will confuse make.
     1179  CPP="${CC-cc} -E"
    22331180  # On the NeXT, cc -E runs the code through the compiler's parser,
    2234   # not just through cpp. "Syntax error" is here to catch this case.
    2235   cat >conftest.$ac_ext <<_ACEOF
    2236 #line 2236 "configure"
     1181  # not just through cpp.
     1182  cat > conftest.$ac_ext <<EOF
     1183#line 1184 "configure"
    22371184#include "confdefs.h"
    22381185#include <assert.h>
    2239                      Syntax error
    2240 _ACEOF
    2241 if { (eval echo "$as_me:2241: \"$ac_cpp conftest.$ac_ext\"") >&5
    2242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2243   ac_status=$?
    2244   egrep -v '^ *\+' conftest.er1 >conftest.err
    2245   rm -f conftest.er1
    2246   cat conftest.err >&5
    2247   echo "$as_me:2247: \$? = $ac_status" >&5
    2248   (exit $ac_status); } >/dev/null; then
    2249   if test -s conftest.err; then
    2250     ac_cpp_err=$ac_c_preproc_warn_flag
    2251   else
    2252     ac_cpp_err=
    2253   fi
    2254 else
    2255   ac_cpp_err=yes
    2256 fi
    2257 if test -z "$ac_cpp_err"; then
     1186Syntax Error
     1187EOF
     1188ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1189{ (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1190ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1191if test -z "$ac_err"; then
    22581192  :
    22591193else
    2260   echo "$as_me: failed program was:" >&5
    2261   cat conftest.$ac_ext >&5
    2262   # Broken: fails on valid input.
    2263 continue
    2264 fi
    2265 rm -f conftest.err conftest.$ac_ext
    2266 
    2267   # OK, works on sane cases.  Now check whether non-existent headers
    2268   # can be detected and how.
    2269   cat >conftest.$ac_ext <<_ACEOF
    2270 #line 2270 "configure"
    2271 #include "confdefs.h"
    2272 #include <ac_nonexistent.h>
    2273 _ACEOF
    2274 if { (eval echo "$as_me:2274: \"$ac_cpp conftest.$ac_ext\"") >&5
    2275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2276   ac_status=$?
    2277   egrep -v '^ *\+' conftest.er1 >conftest.err
    2278   rm -f conftest.er1
    2279   cat conftest.err >&5
    2280   echo "$as_me:2280: \$? = $ac_status" >&5
    2281   (exit $ac_status); } >/dev/null; then
    2282   if test -s conftest.err; then
    2283     ac_cpp_err=$ac_c_preproc_warn_flag
    2284   else
    2285     ac_cpp_err=
    2286   fi
    2287 else
    2288   ac_cpp_err=yes
    2289 fi
    2290 if test -z "$ac_cpp_err"; then
    2291   # Broken: success on invalid input.
    2292 continue
    2293 else
    2294   echo "$as_me: failed program was:" >&5
    2295   cat conftest.$ac_ext >&5
    2296   # Passes both tests.
    2297 ac_preproc_ok=:
    2298 break
    2299 fi
    2300 rm -f conftest.err conftest.$ac_ext
    2301 
    2302 done
    2303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2304 rm -f conftest.err conftest.$ac_ext
    2305 if $ac_preproc_ok; then
    2306   break 2
    2307 fi
    2308 
    2309     done
    2310     ac_cv_prog_CPP=$CPP
    2311 
    2312 fi
    2313   CPP=$ac_cv_prog_CPP
    2314 else
    2315   ac_cv_prog_CPP=$CPP
    2316 fi
    2317 echo "$as_me:2317: result: $CPP" >&5
    2318 echo "${ECHO_T}$CPP" >&6
    2319 ac_preproc_ok=false
    2320 for ac_c_preproc_warn_flag in '' yes
    2321 do
    2322   # Use a header file that comes with gcc, so configuring glibc
    2323   # with a fresh cross-compiler works.
    2324   # On the NeXT, cc -E runs the code through the compiler's parser,
    2325   # not just through cpp. "Syntax error" is here to catch this case.
    2326   cat >conftest.$ac_ext <<_ACEOF
    2327 #line 2327 "configure"
     1194  echo "$ac_err" >&5
     1195  echo "configure: failed program was:" >&5
     1196  cat conftest.$ac_ext >&5
     1197  rm -rf conftest*
     1198  CPP="${CC-cc} -E -traditional-cpp"
     1199  cat > conftest.$ac_ext <<EOF
     1200#line 1201 "configure"
    23281201#include "confdefs.h"
    23291202#include <assert.h>
    2330                      Syntax error
    2331 _ACEOF
    2332 if { (eval echo "$as_me:2332: \"$ac_cpp conftest.$ac_ext\"") >&5
    2333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2334   ac_status=$?
    2335   egrep -v '^ *\+' conftest.er1 >conftest.err
    2336   rm -f conftest.er1
    2337   cat conftest.err >&5
    2338   echo "$as_me:2338: \$? = $ac_status" >&5
    2339   (exit $ac_status); } >/dev/null; then
    2340   if test -s conftest.err; then
    2341     ac_cpp_err=$ac_c_preproc_warn_flag
    2342   else
    2343     ac_cpp_err=
    2344   fi
    2345 else
    2346   ac_cpp_err=yes
    2347 fi
    2348 if test -z "$ac_cpp_err"; then
     1203Syntax Error
     1204EOF
     1205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1206{ (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1208if test -z "$ac_err"; then
    23491209  :
    23501210else
    2351   echo "$as_me: failed program was:" >&5
    2352   cat conftest.$ac_ext >&5
    2353   # Broken: fails on valid input.
    2354 continue
    2355 fi
    2356 rm -f conftest.err conftest.$ac_ext
    2357 
    2358   # OK, works on sane cases.  Now check whether non-existent headers
    2359   # can be detected and how.
    2360   cat >conftest.$ac_ext <<_ACEOF
    2361 #line 2361 "configure"
    2362 #include "confdefs.h"
    2363 #include <ac_nonexistent.h>
    2364 _ACEOF
    2365 if { (eval echo "$as_me:2365: \"$ac_cpp conftest.$ac_ext\"") >&5
    2366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2367   ac_status=$?
    2368   egrep -v '^ *\+' conftest.er1 >conftest.err
    2369   rm -f conftest.er1
    2370   cat conftest.err >&5
    2371   echo "$as_me:2371: \$? = $ac_status" >&5
    2372   (exit $ac_status); } >/dev/null; then
    2373   if test -s conftest.err; then
    2374     ac_cpp_err=$ac_c_preproc_warn_flag
    2375   else
    2376     ac_cpp_err=
    2377   fi
    2378 else
    2379   ac_cpp_err=yes
    2380 fi
    2381 if test -z "$ac_cpp_err"; then
    2382   # Broken: success on invalid input.
    2383 continue
    2384 else
    2385   echo "$as_me: failed program was:" >&5
    2386   cat conftest.$ac_ext >&5
    2387   # Passes both tests.
    2388 ac_preproc_ok=:
    2389 break
    2390 fi
    2391 rm -f conftest.err conftest.$ac_ext
    2392 
    2393 done
    2394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2395 rm -f conftest.err conftest.$ac_ext
    2396 if $ac_preproc_ok; then
     1211  echo "$ac_err" >&5
     1212  echo "configure: failed program was:" >&5
     1213  cat conftest.$ac_ext >&5
     1214  rm -rf conftest*
     1215  CPP="${CC-cc} -nologo -E"
     1216  cat > conftest.$ac_ext <<EOF
     1217#line 1218 "configure"
     1218#include "confdefs.h"
     1219#include <assert.h>
     1220Syntax Error
     1221EOF
     1222ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1223{ (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1224ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1225if test -z "$ac_err"; then
    23971226  :
    23981227else
    2399   { { echo "$as_me:2399: error: C preprocessor \"$CPP\" fails sanity check" >&5
    2400 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
    2401    { (exit 1); exit 1; }; }
    2402 fi
    2403 
    2404 ac_ext=c
    2405 ac_cpp='$CPP $CPPFLAGS'
    2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2409 
    2410 echo "$as_me:2410: checking for AIX" >&5
    2411 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    2412 cat >conftest.$ac_ext <<_ACEOF
    2413 #line 2413 "configure"
     1228  echo "$ac_err" >&5
     1229  echo "configure: failed program was:" >&5
     1230  cat conftest.$ac_ext >&5
     1231  rm -rf conftest*
     1232  CPP=/lib/cpp
     1233fi
     1234rm -f conftest*
     1235fi
     1236rm -f conftest*
     1237fi
     1238rm -f conftest*
     1239  ac_cv_prog_CPP="$CPP"
     1240fi
     1241  CPP="$ac_cv_prog_CPP"
     1242else
     1243  ac_cv_prog_CPP="$CPP"
     1244fi
     1245echo "$ac_t""$CPP" 1>&6
     1246
     1247echo $ac_n "checking for AIX""... $ac_c" 1>&6
     1248echo "configure:1249: checking for AIX" >&5
     1249cat > conftest.$ac_ext <<EOF
     1250#line 1251 "configure"
    24141251#include "confdefs.h"
    24151252#ifdef _AIX
     
    24171254#endif
    24181255
    2419 _ACEOF
     1256EOF
    24201257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    24211258  egrep "yes" >/dev/null 2>&1; then
    2422   echo "$as_me:2422: result: yes" >&5
    2423 echo "${ECHO_T}yes" >&6
    2424 cat >>confdefs.h <<\EOF
     1259  rm -rf conftest*
     1260  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
    24251261#define _ALL_SOURCE 1
    24261262EOF
    24271263
    24281264else
    2429   echo "$as_me:2429: result: no" >&5
    2430 echo "${ECHO_T}no" >&6
    2431 fi
    2432 rm -f conftest*
    2433 
    2434 echo "$as_me:2434: checking for POSIXized ISC" >&5
    2435 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
     1265  rm -rf conftest*
     1266  echo "$ac_t""no" 1>&6
     1267fi
     1268rm -f conftest*
     1269
     1270
     1271echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
     1272echo "configure:1273: checking for POSIXized ISC" >&5
    24361273if test -d /etc/conf/kconfig.d &&
    2437    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     1274  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    24381275then
    2439   echo "$as_me:2439: result: yes" >&5
    2440 echo "${ECHO_T}yes" >&6
     1276  echo "$ac_t""yes" 1>&6
    24411277  ISC=yes # If later tests want to check for ISC.
    2442 
    2443 cat >>confdefs.h <<\EOF
     1278  cat >> confdefs.h <<\EOF
    24441279#define _POSIX_SOURCE 1
    24451280EOF
     
    24511286  fi
    24521287else
    2453   echo "$as_me:2453: result: no" >&5
    2454 echo "${ECHO_T}no" >&6
     1288  echo "$ac_t""no" 1>&6
    24551289  ISC=
    24561290fi
    24571291
    2458 echo "$as_me:2458: checking for minix/config.h" >&5
    2459 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    2460 if test "${ac_cv_header_minix_config_h+set}" = set; then
    2461   echo $ECHO_N "(cached) $ECHO_C" >&6
    2462 else
    2463   cat >conftest.$ac_ext <<_ACEOF
    2464 #line 2464 "configure"
     1292ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
     1293echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
     1294echo "configure:1295: checking for minix/config.h" >&5
     1295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     1296  echo $ac_n "(cached) $ac_c" 1>&6
     1297else
     1298  cat > conftest.$ac_ext <<EOF
     1299#line 1300 "configure"
    24651300#include "confdefs.h"
    24661301#include <minix/config.h>
    2467 _ACEOF
    2468 if { (eval echo "$as_me:2468: \"$ac_cpp conftest.$ac_ext\"") >&5
    2469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2470   ac_status=$?
    2471   egrep -v '^ *\+' conftest.er1 >conftest.err
    2472   rm -f conftest.er1
    2473   cat conftest.err >&5
    2474   echo "$as_me:2474: \$? = $ac_status" >&5
    2475   (exit $ac_status); } >/dev/null; then
    2476   if test -s conftest.err; then
    2477     ac_cpp_err=$ac_c_preproc_warn_flag
    2478   else
    2479     ac_cpp_err=
    2480   fi
    2481 else
    2482   ac_cpp_err=yes
    2483 fi
    2484 if test -z "$ac_cpp_err"; then
    2485   ac_cv_header_minix_config_h=yes
    2486 else
    2487   echo "$as_me: failed program was:" >&5
    2488   cat conftest.$ac_ext >&5
    2489   ac_cv_header_minix_config_h=no
    2490 fi
    2491 rm -f conftest.err conftest.$ac_ext
    2492 fi
    2493 echo "$as_me:2493: result: $ac_cv_header_minix_config_h" >&5
    2494 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    2495 if test $ac_cv_header_minix_config_h = yes; then
     1302EOF
     1303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1304{ (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1306if test -z "$ac_err"; then
     1307  rm -rf conftest*
     1308  eval "ac_cv_header_$ac_safe=yes"
     1309else
     1310  echo "$ac_err" >&5
     1311  echo "configure: failed program was:" >&5
     1312  cat conftest.$ac_ext >&5
     1313  rm -rf conftest*
     1314  eval "ac_cv_header_$ac_safe=no"
     1315fi
     1316rm -f conftest*
     1317fi
     1318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     1319  echo "$ac_t""yes" 1>&6
    24961320  MINIX=yes
    24971321else
    2498   MINIX=
     1322  echo "$ac_t""no" 1>&6
     1323MINIX=
    24991324fi
    25001325
    25011326if test "$MINIX" = yes; then
    2502 
    2503 cat >>confdefs.h <<\EOF
     1327  cat >> confdefs.h <<\EOF
    25041328#define _POSIX_SOURCE 1
    25051329EOF
    25061330
    2507 cat >>confdefs.h <<\EOF
     1331  cat >> confdefs.h <<\EOF
    25081332#define _POSIX_1_SOURCE 2
    25091333EOF
    25101334
    2511 cat >>confdefs.h <<\EOF
     1335  cat >> confdefs.h <<\EOF
    25121336#define _MINIX 1
    25131337EOF
     
    25151339fi
    25161340
    2517 echo "$as_me:2517: checking for ${CC-cc} option to accept ANSI C" >&5
    2518 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    2519 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2520   echo $ECHO_N "(cached) $ECHO_C" >&6
     1341echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
     1342echo "configure:1343: checking for ${CC-cc} option to accept ANSI C" >&5
     1343if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
     1344  echo $ac_n "(cached) $ac_c" 1>&6
    25211345else
    25221346  ac_cv_prog_cc_stdc=no
     
    25311355do
    25321356  CFLAGS="$ac_save_CFLAGS $ac_arg"
    2533   cat >conftest.$ac_ext <<_ACEOF
    2534 #line 2534 "configure"
     1357  cat > conftest.$ac_ext <<EOF
     1358#line 1359 "configure"
    25351359#include "confdefs.h"
    25361360#if !defined(__STDC__) || __STDC__ != 1
    25371361choke me
    2538 #endif
    2539 
    2540 int
    2541 main ()
    2542 {
     1362#endif 
     1363
     1364int main() {
    25431365int test (int i, double x);
    25441366struct s1 {int (*f) (int a);};
    25451367struct s2 {int (*f) (double a);};
    2546   ;
    2547   return 0;
    2548 }
    2549 _ACEOF
    2550 rm -f conftest.$ac_objext
    2551 if { (eval echo "$as_me:2551: \"$ac_compile\"") >&5
    2552   (eval $ac_compile) 2>&5
    2553   ac_status=$?
    2554   echo "$as_me:2554: \$? = $ac_status" >&5
    2555   (exit $ac_status); } &&
    2556          { ac_try='test -s conftest.$ac_objext'
    2557   { (eval echo "$as_me:2557: \"$ac_try\"") >&5
    2558   (eval $ac_try) 2>&5
    2559   ac_status=$?
    2560   echo "$as_me:2560: \$? = $ac_status" >&5
    2561   (exit $ac_status); }; }; then
     1368; return 0; }
     1369EOF
     1370if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1371  rm -rf conftest*
    25621372  ac_cv_prog_cc_stdc="$ac_arg"; break
    25631373else
    2564   echo "$as_me: failed program was:" >&5
    2565 cat conftest.$ac_ext >&5
    2566 fi
    2567 rm -f conftest.$ac_objext conftest.$ac_ext
     1374  echo "configure: failed program was:" >&5
     1375  cat conftest.$ac_ext >&5
     1376fi
     1377rm -f conftest*
    25681378done
    25691379CFLAGS="$ac_save_CFLAGS"
     
    25711381fi
    25721382
    2573 echo "$as_me:2573: result: $ac_cv_prog_cc_stdc" >&5
    2574 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     1383echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
    25751384case "x$ac_cv_prog_cc_stdc" in
    25761385  x|xno) ;;
     
    25781387esac
    25791388
    2580 echo "$as_me:2580: checking for function prototypes" >&5
    2581 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     1389
     1390echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
     1391echo "configure:1392: checking for function prototypes" >&5
    25821392if test "$ac_cv_prog_cc_stdc" != no; then
    2583   echo "$as_me:2583: result: yes" >&5
    2584 echo "${ECHO_T}yes" >&6
    2585   cat >>confdefs.h <<\EOF
     1393  echo "$ac_t""yes" 1>&6
     1394  cat >> confdefs.h <<\EOF
    25861395#define PROTOTYPES 1
    25871396EOF
     
    25891398  U= ANSI2KNR=
    25901399else
    2591   echo "$as_me:2591: result: no" >&5
    2592 echo "${ECHO_T}no" >&6
     1400  echo "$ac_t""no" 1>&6
    25931401  U=_ ANSI2KNR=ansi2knr
    25941402fi
    25951403
    2596 echo "$as_me:2596: checking for $CC option to accept ANSI C" >&5
    2597 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2598 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2599   echo $ECHO_N "(cached) $ECHO_C" >&6
    2600 else
    2601   ac_cv_prog_cc_stdc=no
    2602 ac_save_CC=$CC
    2603 cat >conftest.$ac_ext <<_ACEOF
    2604 #line 2604 "configure"
    2605 #include "confdefs.h"
    2606 #include <stdarg.h>
    2607 #include <stdio.h>
    2608 #include <sys/types.h>
    2609 #include <sys/stat.h>
    2610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    2611 struct buf { int x; };
    2612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
    2613 static char *e (p, i)
    2614      char **p;
    2615      int i;
    2616 {
    2617   return p[i];
     1404echo $ac_n "checking for working const""... $ac_c" 1>&6
     1405echo "configure:1406: checking for working const" >&5
     1406if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
     1407  echo $ac_n "(cached) $ac_c" 1>&6
     1408else
     1409  cat > conftest.$ac_ext <<EOF
     1410#line 1411 "configure"
     1411#include "confdefs.h"
     1412
     1413int main() {
     1414
     1415/* Ultrix mips cc rejects this.  */
     1416typedef int charset[2]; const charset x;
     1417/* SunOS 4.1.1 cc rejects this.  */
     1418char const *const *ccp;
     1419char **p;
     1420/* NEC SVR4.0.2 mips cc rejects this.  */
     1421struct point {int x, y;};
     1422static struct point const zero = {0,0};
     1423/* AIX XL C 1.02.0.0 rejects this.
     1424   It does not let you subtract one const X* pointer from another in an arm
     1425   of an if-expression whose if-part is not a constant expression */
     1426const char *g = "string";
     1427ccp = &g + (g ? g-g : 0);
     1428/* HPUX 7.0 cc rejects these. */
     1429++ccp;
     1430p = (char**) ccp;
     1431ccp = (char const *const *) p;
     1432{ /* SCO 3.2v4 cc rejects this.  */
     1433  char *t;
     1434  char const *s = 0 ? (char *) 0 : (char const *) 0;
     1435
     1436  *t++ = 0;
    26181437}
    2619 static char *f (char * (*g) (char **, int), char **p, ...)
    2620 {
    2621   char *s;
    2622   va_list v;
    2623   va_start (v,p);
    2624   s = g (p, va_arg (v,int));
    2625   va_end (v);
    2626   return s;
     1438{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     1439  int x[] = {25, 17};
     1440  const int *foo = &x[0];
     1441  ++foo;
    26271442}
    2628 int test (int i, double x);
    2629 struct s1 {int (*f) (int a);};
    2630 struct s2 {int (*f) (double a);};
    2631 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    2632 int argc;
    2633 char **argv;
    2634 int
    2635 main ()
    2636 {
    2637 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    2638   ;
    2639   return 0;
     1443{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     1444  typedef const int *iptr;
     1445  iptr p = 0;
     1446  ++p;
    26401447}
    2641 _ACEOF
    2642 # Don't try gcc -ansi; that turns off useful extensions and
    2643 # breaks some systems' header files.
    2644 # AIX           -qlanglvl=ansi
    2645 # Ultrix and OSF/1  -std1
    2646 # HP-UX 10.20 and later -Ae
    2647 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2648 # SVR4          -Xc -D__EXTENSIONS__
    2649 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    2650 do
    2651   CC="$ac_save_CC $ac_arg"
    2652   rm -f conftest.$ac_objext
    2653 if { (eval echo "$as_me:2653: \"$ac_compile\"") >&5
    2654   (eval $ac_compile) 2>&5
    2655   ac_status=$?
    2656   echo "$as_me:2656: \$? = $ac_status" >&5
    2657   (exit $ac_status); } &&
    2658          { ac_try='test -s conftest.$ac_objext'
    2659   { (eval echo "$as_me:2659: \"$ac_try\"") >&5
    2660   (eval $ac_try) 2>&5
    2661   ac_status=$?
    2662   echo "$as_me:2662: \$? = $ac_status" >&5
    2663   (exit $ac_status); }; }; then
    2664   ac_cv_prog_cc_stdc=$ac_arg
    2665 break
    2666 else
    2667   echo "$as_me: failed program was:" >&5
    2668 cat conftest.$ac_ext >&5
    2669 fi
    2670 rm -f conftest.$ac_objext
    2671 done
    2672 rm -f conftest.$ac_ext conftest.$ac_objext
    2673 CC=$ac_save_CC
    2674 
    2675 fi
    2676 
    2677 case "x$ac_cv_prog_cc_stdc" in
    2678   x|xno)
    2679     echo "$as_me:2679: result: none needed" >&5
    2680 echo "${ECHO_T}none needed" >&6 ;;
    2681   *)
    2682     echo "$as_me:2682: result: $ac_cv_prog_cc_stdc" >&5
    2683 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2684     CC="$CC $ac_cv_prog_cc_stdc" ;;
    2685 esac
    2686 
    2687 echo "$as_me:2687: checking for an ANSI C-conforming const" >&5
    2688 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    2689 if test "${ac_cv_c_const+set}" = set; then
    2690   echo $ECHO_N "(cached) $ECHO_C" >&6
    2691 else
    2692   cat >conftest.$ac_ext <<_ACEOF
    2693 #line 2693 "configure"
    2694 #include "confdefs.h"
    2695 
    2696 int
    2697 main ()
    2698 {
    2699 /* FIXME: Include the comments suggested by Paul. */
    2700 #ifndef __cplusplus
    2701   /* Ultrix mips cc rejects this.  */
    2702   typedef int charset[2];
    2703   const charset x;
    2704   /* SunOS 4.1.1 cc rejects this.  */
    2705   char const *const *ccp;
    2706   char **p;
    2707   /* NEC SVR4.0.2 mips cc rejects this.  */
    2708   struct point {int x, y;};
    2709   static struct point const zero = {0,0};
    2710   /* AIX XL C 1.02.0.0 rejects this.
    2711      It does not let you subtract one const X* pointer from another in
    2712      an arm of an if-expression whose if-part is not a constant
    2713      expression */
    2714   const char *g = "string";
    2715   ccp = &g + (g ? g-g : 0);
    2716   /* HPUX 7.0 cc rejects these. */
    2717   ++ccp;
    2718   p = (char**) ccp;
    2719   ccp = (char const *const *) p;
    2720   { /* SCO 3.2v4 cc rejects this.  */
    2721     char *t;
    2722     char const *s = 0 ? (char *) 0 : (char const *) 0;
    2723 
    2724     *t++ = 0;
    2725   }
    2726   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    2727     int x[] = {25, 17};
    2728     const int *foo = &x[0];
    2729     ++foo;
    2730   }
    2731   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    2732     typedef const int *iptr;
    2733     iptr p = 0;
    2734     ++p;
    2735   }
    2736   { /* AIX XL C 1.02.0.0 rejects this saying
    2737        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    2738     struct s { int j; const int *ap[3]; };
    2739     struct s *b; b->j = 5;
    2740   }
    2741   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    2742     const int foo = 10;
    2743   }
    2744 #endif
    2745 
    2746   ;
    2747   return 0;
     1448{ /* AIX XL C 1.02.0.0 rejects this saying
     1449     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     1450  struct s { int j; const int *ap[3]; };
     1451  struct s *b; b->j = 5;
    27481452}
    2749 _ACEOF
    2750 rm -f conftest.$ac_objext
    2751 if { (eval echo "$as_me:2751: \"$ac_compile\"") >&5
    2752   (eval $ac_compile) 2>&5
    2753   ac_status=$?
    2754   echo "$as_me:2754: \$? = $ac_status" >&5
    2755   (exit $ac_status); } &&
    2756          { ac_try='test -s conftest.$ac_objext'
    2757   { (eval echo "$as_me:2757: \"$ac_try\"") >&5
    2758   (eval $ac_try) 2>&5
    2759   ac_status=$?
    2760   echo "$as_me:2760: \$? = $ac_status" >&5
    2761   (exit $ac_status); }; }; then
     1453{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     1454  const int foo = 10;
     1455}
     1456
     1457; return 0; }
     1458EOF
     1459if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1460  rm -rf conftest*
    27621461  ac_cv_c_const=yes
    27631462else
    2764   echo "$as_me: failed program was:" >&5
    2765 cat conftest.$ac_ext >&5
    2766 ac_cv_c_const=no
    2767 fi
    2768 rm -f conftest.$ac_objext conftest.$ac_ext
    2769 fi
    2770 echo "$as_me:2770: result: $ac_cv_c_const" >&5
    2771 echo "${ECHO_T}$ac_cv_c_const" >&6
     1463  echo "configure: failed program was:" >&5
     1464  cat conftest.$ac_ext >&5
     1465  rm -rf conftest*
     1466  ac_cv_c_const=no
     1467fi
     1468rm -f conftest*
     1469fi
     1470
     1471echo "$ac_t""$ac_cv_c_const" 1>&6
    27721472if test $ac_cv_c_const = no; then
    2773 
    2774 cat >>confdefs.h <<\EOF
    2775 #define const
    2776 EOF
    2777 
    2778 fi
    2779 
    2780 echo "$as_me:2780: checking for ANSI C header files" >&5
    2781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    2782 if test "${ac_cv_header_stdc+set}" = set; then
    2783   echo $ECHO_N "(cached) $ECHO_C" >&6
    2784 else
    2785   cat >conftest.$ac_ext <<_ACEOF
    2786 #line 2786 "configure"
     1473  cat >> confdefs.h <<\EOF
     1474#define const
     1475EOF
     1476
     1477fi
     1478
     1479echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     1480echo "configure:1481: checking for ANSI C header files" >&5
     1481if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     1482  echo $ac_n "(cached) $ac_c" 1>&6
     1483else
     1484  cat > conftest.$ac_ext <<EOF
     1485#line 1486 "configure"
    27871486#include "confdefs.h"
    27881487#include <stdlib.h>
     
    27901489#include <string.h>
    27911490#include <float.h>
    2792 
    2793 _ACEOF
    2794 if { (eval echo "$as_me:2794: \"$ac_cpp conftest.$ac_ext\"") >&5
    2795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2796   ac_status=$?
    2797   egrep -v '^ *\+' conftest.er1 >conftest.err
    2798   rm -f conftest.er1
    2799   cat conftest.err >&5
    2800   echo "$as_me:2800: \$? = $ac_status" >&5
    2801   (exit $ac_status); } >/dev/null; then
    2802   if test -s conftest.err; then
    2803     ac_cpp_err=$ac_c_preproc_warn_flag
    2804   else
    2805     ac_cpp_err=
    2806   fi
    2807 else
    2808   ac_cpp_err=yes
    2809 fi
    2810 if test -z "$ac_cpp_err"; then
     1491EOF
     1492ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1493{ (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1494ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1495if test -z "$ac_err"; then
     1496  rm -rf conftest*
    28111497  ac_cv_header_stdc=yes
    28121498else
    2813   echo "$as_me: failed program was:" >&5
    2814   cat conftest.$ac_ext >&5
     1499  echo "$ac_err" >&5
     1500  echo "configure: failed program was:" >&5
     1501  cat conftest.$ac_ext >&5
     1502  rm -rf conftest*
    28151503  ac_cv_header_stdc=no
    28161504fi
    2817 rm -f conftest.err conftest.$ac_ext
     1505rm -f conftest*
    28181506
    28191507if test $ac_cv_header_stdc = yes; then
    28201508  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2821   cat >conftest.$ac_ext <<_ACEOF
    2822 #line 2822 "configure"
     1509cat > conftest.$ac_ext <<EOF
     1510#line 1511 "configure"
    28231511#include "confdefs.h"
    28241512#include <string.h>
    2825 
    2826 _ACEOF
     1513EOF
    28271514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    28281515  egrep "memchr" >/dev/null 2>&1; then
    28291516  :
    28301517else
     1518  rm -rf conftest*
    28311519  ac_cv_header_stdc=no
    28321520fi
     
    28371525if test $ac_cv_header_stdc = yes; then
    28381526  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2839   cat >conftest.$ac_ext <<_ACEOF
    2840 #line 2840 "configure"
     1527cat > conftest.$ac_ext <<EOF
     1528#line 1529 "configure"
    28411529#include "confdefs.h"
    28421530#include <stdlib.h>
    2843 
    2844 _ACEOF
     1531EOF
    28451532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    28461533  egrep "free" >/dev/null 2>&1; then
    28471534  :
    28481535else
     1536  rm -rf conftest*
    28491537  ac_cv_header_stdc=no
    28501538fi
     
    28551543if test $ac_cv_header_stdc = yes; then
    28561544  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2857   if test "$cross_compiling" = yes; then
     1545if test "$cross_compiling" = yes; then
    28581546  :
    28591547else
    2860   cat >conftest.$ac_ext <<_ACEOF
    2861 #line 2861 "configure"
     1548  cat > conftest.$ac_ext <<EOF
     1549#line 1550 "configure"
    28621550#include "confdefs.h"
    28631551#include <ctype.h>
    2864 #if ((' ' & 0x0FF) == 0x020)
    2865 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2866 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    2867 #else
    2868 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    2869                      || ('j' <= (c) && (c) <= 'r') \
    2870                      || ('s' <= (c) && (c) <= 'z'))
    2871 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     1552#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     1553#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     1554#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     1555int main () { int i; for (i = 0; i < 256; i++)
     1556if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     1557exit (0); }
     1558
     1559EOF
     1560if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1561then
     1562  :
     1563else
     1564  echo "configure: failed program was:" >&5
     1565  cat conftest.$ac_ext >&5
     1566  rm -fr conftest*
     1567  ac_cv_header_stdc=no
     1568fi
     1569rm -fr conftest*
     1570fi
     1571
     1572fi
     1573fi
     1574
     1575echo "$ac_t""$ac_cv_header_stdc" 1>&6
     1576if test $ac_cv_header_stdc = yes; then
     1577  cat >> confdefs.h <<\EOF
     1578#define STDC_HEADERS 1
     1579EOF
     1580
     1581fi
     1582
     1583echo $ac_n "checking for off_t""... $ac_c" 1>&6
     1584echo "configure:1585: checking for off_t" >&5
     1585if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
     1586  echo $ac_n "(cached) $ac_c" 1>&6
     1587else
     1588  cat > conftest.$ac_ext <<EOF
     1589#line 1590 "configure"
     1590#include "confdefs.h"
     1591#include <sys/types.h>
     1592#if STDC_HEADERS
     1593#include <stdlib.h>
     1594#include <stddef.h>
    28721595#endif
    2873 
    2874 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2875 int
    2876 main ()
    2877 {
    2878   int i;
    2879   for (i = 0; i < 256; i++)
    2880     if (XOR (islower (i), ISLOWER (i))
    2881         || toupper (i) != TOUPPER (i))
    2882       exit(2);
    2883   exit (0);
    2884 }
    2885 _ACEOF
    2886 rm -f conftest$ac_exeext
    2887 if { (eval echo "$as_me:2887: \"$ac_link\"") >&5
    2888   (eval $ac_link) 2>&5
    2889   ac_status=$?
    2890   echo "$as_me:2890: \$? = $ac_status" >&5
    2891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2892   { (eval echo "$as_me:2892: \"$ac_try\"") >&5
    2893   (eval $ac_try) 2>&5
    2894   ac_status=$?
    2895   echo "$as_me:2895: \$? = $ac_status" >&5
    2896   (exit $ac_status); }; }; then
    2897   :
    2898 else
    2899   echo "$as_me: program exited with status $ac_status" >&5
    2900 echo "$as_me: failed program was:" >&5
    2901 cat conftest.$ac_ext >&5
    2902 ac_cv_header_stdc=no
    2903 fi
    2904 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    2905 fi
    2906 fi
    2907 fi
    2908 echo "$as_me:2908: result: $ac_cv_header_stdc" >&5
    2909 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    2910 if test $ac_cv_header_stdc = yes; then
    2911 
    2912 cat >>confdefs.h <<\EOF
    2913 #define STDC_HEADERS 1
    2914 EOF
    2915 
    2916 fi
    2917 
    2918 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
    2919 do
    2920 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    2921 echo "$as_me:2921: checking for $ac_header" >&5
    2922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2923 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    2924   echo $ECHO_N "(cached) $ECHO_C" >&6
    2925 else
    2926   cat >conftest.$ac_ext <<_ACEOF
    2927 #line 2927 "configure"
    2928 #include "confdefs.h"
    2929 #include <$ac_header>
    2930 _ACEOF
    2931 if { (eval echo "$as_me:2931: \"$ac_cpp conftest.$ac_ext\"") >&5
    2932   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2933   ac_status=$?
    2934   egrep -v '^ *\+' conftest.er1 >conftest.err
    2935   rm -f conftest.er1
    2936   cat conftest.err >&5
    2937   echo "$as_me:2937: \$? = $ac_status" >&5
    2938   (exit $ac_status); } >/dev/null; then
    2939   if test -s conftest.err; then
    2940     ac_cpp_err=$ac_c_preproc_warn_flag
    2941   else
    2942     ac_cpp_err=
    2943   fi
    2944 else
    2945   ac_cpp_err=yes
    2946 fi
    2947 if test -z "$ac_cpp_err"; then
    2948   eval "$ac_ac_Header=yes"
    2949 else
    2950   echo "$as_me: failed program was:" >&5
    2951   cat conftest.$ac_ext >&5
    2952   eval "$ac_ac_Header=no"
    2953 fi
    2954 rm -f conftest.err conftest.$ac_ext
    2955 fi
    2956 echo "$as_me:2956: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    2957 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    2958 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    2959   cat >>confdefs.h <<EOF
    2960 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    2961 EOF
    2962 
    2963 fi
    2964 done
    2965 
    2966 echo "$as_me:2966: checking for off_t" >&5
    2967 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    2968 if test "${ac_cv_type_off_t+set}" = set; then
    2969   echo $ECHO_N "(cached) $ECHO_C" >&6
    2970 else
    2971   cat >conftest.$ac_ext <<_ACEOF
    2972 #line 2972 "configure"
    2973 #include "confdefs.h"
    2974 $ac_includes_default
    2975 int
    2976 main ()
    2977 {
    2978 if ((off_t *) 0)
    2979   return 0;
    2980 if (sizeof (off_t))
    2981   return 0;
    2982   ;
    2983   return 0;
    2984 }
    2985 _ACEOF
    2986 rm -f conftest.$ac_objext
    2987 if { (eval echo "$as_me:2987: \"$ac_compile\"") >&5
    2988   (eval $ac_compile) 2>&5
    2989   ac_status=$?
    2990   echo "$as_me:2990: \$? = $ac_status" >&5
    2991   (exit $ac_status); } &&
    2992          { ac_try='test -s conftest.$ac_objext'
    2993   { (eval echo "$as_me:2993: \"$ac_try\"") >&5
    2994   (eval $ac_try) 2>&5
    2995   ac_status=$?
    2996   echo "$as_me:2996: \$? = $ac_status" >&5
    2997   (exit $ac_status); }; }; then
     1596EOF
     1597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1598  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1599  rm -rf conftest*
    29981600  ac_cv_type_off_t=yes
    29991601else
    3000   echo "$as_me: failed program was:" >&5
    3001 cat conftest.$ac_ext >&5
    3002 ac_cv_type_off_t=no
    3003 fi
    3004 rm -f conftest.$ac_objext conftest.$ac_ext
    3005 fi
    3006 echo "$as_me:3006: result: $ac_cv_type_off_t" >&5
    3007 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    3008 if test $ac_cv_type_off_t = yes; then
    3009   :
    3010 else
    3011 
    3012 cat >>confdefs.h <<EOF
     1602  rm -rf conftest*
     1603  ac_cv_type_off_t=no
     1604fi
     1605rm -f conftest*
     1606
     1607fi
     1608echo "$ac_t""$ac_cv_type_off_t" 1>&6
     1609if test $ac_cv_type_off_t = no; then
     1610  cat >> confdefs.h <<\EOF
    30131611#define off_t long
    30141612EOF
     
    30161614fi
    30171615
    3018 echo "$as_me:3018: checking for size_t" >&5
    3019 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    3020 if test "${ac_cv_type_size_t+set}" = set; then
    3021   echo $ECHO_N "(cached) $ECHO_C" >&6
    3022 else
    3023   cat >conftest.$ac_ext <<_ACEOF
    3024 #line 3024 "configure"
    3025 #include "confdefs.h"
    3026 $ac_includes_default
    3027 int
    3028 main ()
    3029 {
    3030 if ((size_t *) 0)
    3031   return 0;
    3032 if (sizeof (size_t))
    3033   return 0;
    3034   ;
    3035   return 0;
    3036 }
    3037 _ACEOF
    3038 rm -f conftest.$ac_objext
    3039 if { (eval echo "$as_me:3039: \"$ac_compile\"") >&5
    3040   (eval $ac_compile) 2>&5
    3041   ac_status=$?
    3042   echo "$as_me:3042: \$? = $ac_status" >&5
    3043   (exit $ac_status); } &&
    3044          { ac_try='test -s conftest.$ac_objext'
    3045   { (eval echo "$as_me:3045: \"$ac_try\"") >&5
    3046   (eval $ac_try) 2>&5
    3047   ac_status=$?
    3048   echo "$as_me:3048: \$? = $ac_status" >&5
    3049   (exit $ac_status); }; }; then
     1616echo $ac_n "checking for size_t""... $ac_c" 1>&6
     1617echo "configure:1618: checking for size_t" >&5
     1618if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
     1619  echo $ac_n "(cached) $ac_c" 1>&6
     1620else
     1621  cat > conftest.$ac_ext <<EOF
     1622#line 1623 "configure"
     1623#include "confdefs.h"
     1624#include <sys/types.h>
     1625#if STDC_HEADERS
     1626#include <stdlib.h>
     1627#include <stddef.h>
     1628#endif
     1629EOF
     1630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1631  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1632  rm -rf conftest*
    30501633  ac_cv_type_size_t=yes
    30511634else
    3052   echo "$as_me: failed program was:" >&5
    3053 cat conftest.$ac_ext >&5
    3054 ac_cv_type_size_t=no
    3055 fi
    3056 rm -f conftest.$ac_objext conftest.$ac_ext
    3057 fi
    3058 echo "$as_me:3058: result: $ac_cv_type_size_t" >&5
    3059 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    3060 if test $ac_cv_type_size_t = yes; then
    3061   :
    3062 else
    3063 
    3064 cat >>confdefs.h <<EOF
     1635  rm -rf conftest*
     1636  ac_cv_type_size_t=no
     1637fi
     1638rm -f conftest*
     1639
     1640fi
     1641echo "$ac_t""$ac_cv_type_size_t" 1>&6
     1642if test $ac_cv_type_size_t = no; then
     1643  cat >> confdefs.h <<\EOF
    30651644#define size_t unsigned
    30661645EOF
     
    30681647fi
    30691648
    3070 echo "$as_me:3070: checking whether time.h and sys/time.h may both be included" >&5
    3071 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    3072 if test "${ac_cv_header_time+set}" = set; then
    3073   echo $ECHO_N "(cached) $ECHO_C" >&6
    3074 else
    3075   cat >conftest.$ac_ext <<_ACEOF
    3076 #line 3076 "configure"
     1649echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
     1650echo "configure:1651: checking whether time.h and sys/time.h may both be included" >&5
     1651if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
     1652  echo $ac_n "(cached) $ac_c" 1>&6
     1653else
     1654  cat > conftest.$ac_ext <<EOF
     1655#line 1656 "configure"
    30771656#include "confdefs.h"
    30781657#include <sys/types.h>
    30791658#include <sys/time.h>
    30801659#include <time.h>
    3081 
    3082 int
    3083 main ()
    3084 {
     1660int main() {
    30851661struct tm *tp;
    3086   ;
    3087   return 0;
    3088 }
    3089 _ACEOF
    3090 rm -f conftest.$ac_objext
    3091 if { (eval echo "$as_me:3091: \"$ac_compile\"") >&5
    3092   (eval $ac_compile) 2>&5
    3093   ac_status=$?
    3094   echo "$as_me:3094: \$? = $ac_status" >&5
    3095   (exit $ac_status); } &&
    3096          { ac_try='test -s conftest.$ac_objext'
    3097   { (eval echo "$as_me:3097: \"$ac_try\"") >&5
    3098   (eval $ac_try) 2>&5
    3099   ac_status=$?
    3100   echo "$as_me:3100: \$? = $ac_status" >&5
    3101   (exit $ac_status); }; }; then
     1662; return 0; }
     1663EOF
     1664if { (eval echo configure:1665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1665  rm -rf conftest*
    31021666  ac_cv_header_time=yes
    31031667else
    3104   echo "$as_me: failed program was:" >&5
    3105 cat conftest.$ac_ext >&5
    3106 ac_cv_header_time=no
    3107 fi
    3108 rm -f conftest.$ac_objext conftest.$ac_ext
    3109 fi
    3110 echo "$as_me:3110: result: $ac_cv_header_time" >&5
    3111 echo "${ECHO_T}$ac_cv_header_time" >&6
     1668  echo "configure: failed program was:" >&5
     1669  cat conftest.$ac_ext >&5
     1670  rm -rf conftest*
     1671  ac_cv_header_time=no
     1672fi
     1673rm -f conftest*
     1674fi
     1675
     1676echo "$ac_t""$ac_cv_header_time" 1>&6
    31121677if test $ac_cv_header_time = yes; then
    3113 
    3114 cat >>confdefs.h <<\EOF
     1678  cat >> confdefs.h <<\EOF
    31151679#define TIME_WITH_SYS_TIME 1
    31161680EOF
     
    31181682fi
    31191683
    3120 echo "$as_me:3120: checking whether struct tm is in sys/time.h or time.h" >&5
    3121 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    3122 if test "${ac_cv_struct_tm+set}" = set; then
    3123   echo $ECHO_N "(cached) $ECHO_C" >&6
    3124 else
    3125   cat >conftest.$ac_ext <<_ACEOF
    3126 #line 3126 "configure"
     1684echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
     1685echo "configure:1686: checking whether struct tm is in sys/time.h or time.h" >&5
     1686if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
     1687  echo $ac_n "(cached) $ac_c" 1>&6
     1688else
     1689  cat > conftest.$ac_ext <<EOF
     1690#line 1691 "configure"
    31271691#include "confdefs.h"
    31281692#include <sys/types.h>
    31291693#include <time.h>
    3130 
    3131 int
    3132 main ()
    3133 {
     1694int main() {
    31341695struct tm *tp; tp->tm_sec;
    3135   ;
    3136   return 0;
    3137 }
    3138 _ACEOF
    3139 rm -f conftest.$ac_objext
    3140 if { (eval echo "$as_me:3140: \"$ac_compile\"") >&5
    3141   (eval $ac_compile) 2>&5
    3142   ac_status=$?
    3143   echo "$as_me:3143: \$? = $ac_status" >&5
    3144   (exit $ac_status); } &&
    3145          { ac_try='test -s conftest.$ac_objext'
    3146   { (eval echo "$as_me:3146: \"$ac_try\"") >&5
    3147   (eval $ac_try) 2>&5
    3148   ac_status=$?
    3149   echo "$as_me:3149: \$? = $ac_status" >&5
    3150   (exit $ac_status); }; }; then
     1696; return 0; }
     1697EOF
     1698if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1699  rm -rf conftest*
    31511700  ac_cv_struct_tm=time.h
    31521701else
    3153   echo "$as_me: failed program was:" >&5
    3154 cat conftest.$ac_ext >&5
    3155 ac_cv_struct_tm=sys/time.h
    3156 fi
    3157 rm -f conftest.$ac_objext conftest.$ac_ext
    3158 fi
    3159 echo "$as_me:3159: result: $ac_cv_struct_tm" >&5
    3160 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     1702  echo "configure: failed program was:" >&5
     1703  cat conftest.$ac_ext >&5
     1704  rm -rf conftest*
     1705  ac_cv_struct_tm=sys/time.h
     1706fi
     1707rm -f conftest*
     1708fi
     1709
     1710echo "$ac_t""$ac_cv_struct_tm" 1>&6
    31611711if test $ac_cv_struct_tm = sys/time.h; then
    3162 
    3163 cat >>confdefs.h <<\EOF
     1712  cat >> confdefs.h <<\EOF
    31641713#define TM_IN_SYS_TIME 1
    31651714EOF
     
    31671716fi
    31681717
     1718
    31691719if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    3170 cat >conftest.$ac_ext <<_ACEOF
    3171 #line 3171 "configure"
     1720cat > conftest.$ac_ext <<EOF
     1721#line 1722 "configure"
    31721722#include "confdefs.h"
    31731723#include <stdio.h>
    31741724
    3175 int
    3176 main ()
    3177 {
    3178  FILE *rubbish = popen("yes", "r");
    3179   ;
    3180   return 0;
    3181 }
    3182 _ACEOF
    3183 rm -f conftest.$ac_objext
    3184 if { (eval echo "$as_me:3184: \"$ac_compile\"") >&5
    3185   (eval $ac_compile) 2>&5
    3186   ac_status=$?
    3187   echo "$as_me:3187: \$? = $ac_status" >&5
    3188   (exit $ac_status); } &&
    3189          { ac_try='test -s conftest.$ac_objext'
    3190   { (eval echo "$as_me:3190: \"$ac_try\"") >&5
    3191   (eval $ac_try) 2>&5
    3192   ac_status=$?
    3193   echo "$as_me:3193: \$? = $ac_status" >&5
    3194   (exit $ac_status); }; }; then
     1725int main() {
     1726 FILE *rubbish = popen("yes", "r");
     1727; return 0; }
     1728EOF
     1729if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31951730  :
    31961731else
    3197   echo "$as_me: failed program was:" >&5
    3198 cat conftest.$ac_ext >&5
    3199 CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    3200 fi
    3201 rm -f conftest.$ac_objext conftest.$ac_ext
    3202 fi
    3203 
    3204 echo "$as_me:3204: checking for main in -lm" >&5
    3205 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    3206 if test "${ac_cv_lib_m_main+set}" = set; then
    3207   echo $ECHO_N "(cached) $ECHO_C" >&6
    3208 else
    3209   ac_check_lib_save_LIBS=$LIBS
     1732  echo "configure: failed program was:" >&5
     1733  cat conftest.$ac_ext >&5
     1734  rm -rf conftest*
     1735  CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     1736fi
     1737rm -f conftest*
     1738fi
     1739
     1740
     1741echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
     1742echo "configure:1743: checking for main in -lg" >&5
     1743ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
     1744if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1745  echo $ac_n "(cached) $ac_c" 1>&6
     1746else
     1747  ac_save_LIBS="$LIBS"
     1748LIBS="-lg  $LIBS"
     1749cat > conftest.$ac_ext <<EOF
     1750#line 1751 "configure"
     1751#include "confdefs.h"
     1752
     1753int main() {
     1754main()
     1755; return 0; }
     1756EOF
     1757if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1758  rm -rf conftest*
     1759  eval "ac_cv_lib_$ac_lib_var=yes"
     1760else
     1761  echo "configure: failed program was:" >&5
     1762  cat conftest.$ac_ext >&5
     1763  rm -rf conftest*
     1764  eval "ac_cv_lib_$ac_lib_var=no"
     1765fi
     1766rm -f conftest*
     1767LIBS="$ac_save_LIBS"
     1768
     1769fi
     1770if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1771  echo "$ac_t""yes" 1>&6
     1772    ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1773    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1774  cat >> confdefs.h <<EOF
     1775#define $ac_tr_lib 1
     1776EOF
     1777
     1778  LIBS="-lg $LIBS"
     1779
     1780else
     1781  echo "$ac_t""no" 1>&6
     1782fi
     1783
     1784echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
     1785echo "configure:1786: checking for main in -lm" >&5
     1786ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
     1787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1788  echo $ac_n "(cached) $ac_c" 1>&6
     1789else
     1790  ac_save_LIBS="$LIBS"
    32101791LIBS="-lm  $LIBS"
    3211 cat >conftest.$ac_ext <<_ACEOF
    3212 #line 3212 "configure"
    3213 #include "confdefs.h"
    3214 
    3215 int
    3216 main ()
    3217 {
    3218 main ();
    3219   ;
    3220   return 0;
    3221 }
    3222 _ACEOF
    3223 rm -f conftest.$ac_objext conftest$ac_exeext
    3224 if { (eval echo "$as_me:3224: \"$ac_link\"") >&5
    3225   (eval $ac_link) 2>&5
    3226   ac_status=$?
    3227   echo "$as_me:3227: \$? = $ac_status" >&5
    3228   (exit $ac_status); } &&
    3229          { ac_try='test -s conftest$ac_exeext'
    3230   { (eval echo "$as_me:3230: \"$ac_try\"") >&5
    3231   (eval $ac_try) 2>&5
    3232   ac_status=$?
    3233   echo "$as_me:3233: \$? = $ac_status" >&5
    3234   (exit $ac_status); }; }; then
    3235   ac_cv_lib_m_main=yes
    3236 else
    3237   echo "$as_me: failed program was:" >&5
    3238 cat conftest.$ac_ext >&5
    3239 ac_cv_lib_m_main=no
    3240 fi
    3241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3242 LIBS=$ac_check_lib_save_LIBS
    3243 fi
    3244 echo "$as_me:3244: result: $ac_cv_lib_m_main" >&5
    3245 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    3246 if test $ac_cv_lib_m_main = yes; then
    3247   cat >>confdefs.h <<EOF
    3248 #define HAVE_LIBM 1
     1792cat > conftest.$ac_ext <<EOF
     1793#line 1794 "configure"
     1794#include "confdefs.h"
     1795
     1796int main() {
     1797main()
     1798; return 0; }
     1799EOF
     1800if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1801  rm -rf conftest*
     1802  eval "ac_cv_lib_$ac_lib_var=yes"
     1803else
     1804  echo "configure: failed program was:" >&5
     1805  cat conftest.$ac_ext >&5
     1806  rm -rf conftest*
     1807  eval "ac_cv_lib_$ac_lib_var=no"
     1808fi
     1809rm -f conftest*
     1810LIBS="$ac_save_LIBS"
     1811
     1812fi
     1813if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1814  echo "$ac_t""yes" 1>&6
     1815    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1816    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1817  cat >> confdefs.h <<EOF
     1818#define $ac_tr_lib 1
    32491819EOF
    32501820
    32511821  LIBS="-lm $LIBS"
    32521822
    3253 fi
     1823else
     1824  echo "$ac_t""no" 1>&6
     1825fi
     1826
     1827echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
     1828echo "configure:1829: checking for main in -lstdc++" >&5
     1829ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
     1830if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1831  echo $ac_n "(cached) $ac_c" 1>&6
     1832else
     1833  ac_save_LIBS="$LIBS"
     1834LIBS="-lstdc++  $LIBS"
     1835cat > conftest.$ac_ext <<EOF
     1836#line 1837 "configure"
     1837#include "confdefs.h"
     1838
     1839int main() {
     1840main()
     1841; return 0; }
     1842EOF
     1843if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1844  rm -rf conftest*
     1845  eval "ac_cv_lib_$ac_lib_var=yes"
     1846else
     1847  echo "configure: failed program was:" >&5
     1848  cat conftest.$ac_ext >&5
     1849  rm -rf conftest*
     1850  eval "ac_cv_lib_$ac_lib_var=no"
     1851fi
     1852rm -f conftest*
     1853LIBS="$ac_save_LIBS"
     1854
     1855fi
     1856if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1857  echo "$ac_t""yes" 1>&6
     1858    ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1859    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1860  cat >> confdefs.h <<EOF
     1861#define $ac_tr_lib 1
     1862EOF
     1863
     1864  LIBS="-lstdc++ $LIBS"
     1865
     1866else
     1867  echo "$ac_t""no" 1>&6
     1868fi
     1869
     1870echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
     1871echo "configure:1872: checking for main in -lcrypt" >&5
     1872ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
     1873if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1874  echo $ac_n "(cached) $ac_c" 1>&6
     1875else
     1876  ac_save_LIBS="$LIBS"
     1877LIBS="-lcrypt  $LIBS"
     1878cat > conftest.$ac_ext <<EOF
     1879#line 1880 "configure"
     1880#include "confdefs.h"
     1881
     1882int main() {
     1883main()
     1884; return 0; }
     1885EOF
     1886if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1887  rm -rf conftest*
     1888  eval "ac_cv_lib_$ac_lib_var=yes"
     1889else
     1890  echo "configure: failed program was:" >&5
     1891  cat conftest.$ac_ext >&5
     1892  rm -rf conftest*
     1893  eval "ac_cv_lib_$ac_lib_var=no"
     1894fi
     1895rm -f conftest*
     1896LIBS="$ac_save_LIBS"
     1897
     1898fi
     1899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1900  echo "$ac_t""yes" 1>&6
     1901    ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1902    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1903  cat >> confdefs.h <<EOF
     1904#define $ac_tr_lib 1
     1905EOF
     1906
     1907  LIBS="-lcrypt $LIBS"
     1908
     1909else
     1910  echo "$ac_t""no" 1>&6
     1911fi
     1912
    32541913
    32551914ac_header_dirent=no
    3256 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    3257   ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
    3258 echo "$as_me:3258: checking for $ac_hdr that defines DIR" >&5
    3259 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    3260 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    3261   echo $ECHO_N "(cached) $ECHO_C" >&6
    3262 else
    3263   cat >conftest.$ac_ext <<_ACEOF
    3264 #line 3264 "configure"
     1915for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
     1916do
     1917ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     1918echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
     1919echo "configure:1920: checking for $ac_hdr that defines DIR" >&5
     1920if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
     1921  echo $ac_n "(cached) $ac_c" 1>&6
     1922else
     1923  cat > conftest.$ac_ext <<EOF
     1924#line 1925 "configure"
    32651925#include "confdefs.h"
    32661926#include <sys/types.h>
    32671927#include <$ac_hdr>
    3268 
    3269 int
    3270 main ()
    3271 {
     1928int main() {
    32721929DIR *dirp = 0;
    3273   ;
    3274   return 0;
    3275 }
    3276 _ACEOF
    3277 rm -f conftest.$ac_objext
    3278 if { (eval echo "$as_me:3278: \"$ac_compile\"") >&5
    3279   (eval $ac_compile) 2>&5
    3280   ac_status=$?
    3281   echo "$as_me:3281: \$? = $ac_status" >&5
    3282   (exit $ac_status); } &&
    3283          { ac_try='test -s conftest.$ac_objext'
    3284   { (eval echo "$as_me:3284: \"$ac_try\"") >&5
    3285   (eval $ac_try) 2>&5
    3286   ac_status=$?
    3287   echo "$as_me:3287: \$? = $ac_status" >&5
    3288   (exit $ac_status); }; }; then
    3289   eval "$ac_ac_Header=yes"
    3290 else
    3291   echo "$as_me: failed program was:" >&5
    3292 cat conftest.$ac_ext >&5
    3293 eval "$ac_ac_Header=no"
    3294 fi
    3295 rm -f conftest.$ac_objext conftest.$ac_ext
    3296 fi
    3297 echo "$as_me:3297: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3298 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3299 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3300   cat >>confdefs.h <<EOF
    3301 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
    3302 EOF
    3303 
    3304 ac_header_dirent=$ac_hdr; break
    3305 fi
    3306 
     1930; return 0; }
     1931EOF
     1932if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1933  rm -rf conftest*
     1934  eval "ac_cv_header_dirent_$ac_safe=yes"
     1935else
     1936  echo "configure: failed program was:" >&5
     1937  cat conftest.$ac_ext >&5
     1938  rm -rf conftest*
     1939  eval "ac_cv_header_dirent_$ac_safe=no"
     1940fi
     1941rm -f conftest*
     1942fi
     1943if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
     1944  echo "$ac_t""yes" 1>&6
     1945    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     1946  cat >> confdefs.h <<EOF
     1947#define $ac_tr_hdr 1
     1948EOF
     1949 ac_header_dirent=$ac_hdr; break
     1950else
     1951  echo "$ac_t""no" 1>&6
     1952fi
    33071953done
    33081954# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    33091955if test $ac_header_dirent = dirent.h; then
    3310   echo "$as_me:3310: checking for opendir in -ldir" >&5
    3311 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
    3312 if test "${ac_cv_lib_dir_opendir+set}" = set; then
    3313   echo $ECHO_N "(cached) $ECHO_C" >&6
    3314 else
    3315   ac_check_lib_save_LIBS=$LIBS
     1956echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
     1957echo "configure:1958: checking for opendir in -ldir" >&5
     1958ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
     1959if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1960  echo $ac_n "(cached) $ac_c" 1>&6
     1961else
     1962  ac_save_LIBS="$LIBS"
    33161963LIBS="-ldir  $LIBS"
    3317 cat >conftest.$ac_ext <<_ACEOF
    3318 #line 3318 "configure"
    3319 #include "confdefs.h"
    3320 
     1964cat > conftest.$ac_ext <<EOF
     1965#line 1966 "configure"
     1966#include "confdefs.h"
    33211967/* Override any gcc2 internal prototype to avoid an error.  */
    3322 #ifdef __cplusplus
    3323 extern "C"
    3324 #endif
    33251968/* We use char because int might match the return type of a gcc2
    3326    builtin and then its argument prototype would still apply.  */
    3327 char opendir ();
    3328 int
    3329 main ()
    3330 {
    3331 opendir ();
    3332   ;
    3333   return 0;
    3334 }
    3335 _ACEOF
    3336 rm -f conftest.$ac_objext conftest$ac_exeext
    3337 if { (eval echo "$as_me:3337: \"$ac_link\"") >&5
    3338   (eval $ac_link) 2>&5
    3339   ac_status=$?
    3340   echo "$as_me:3340: \$? = $ac_status" >&5
    3341   (exit $ac_status); } &&
    3342          { ac_try='test -s conftest$ac_exeext'
    3343   { (eval echo "$as_me:3343: \"$ac_try\"") >&5
    3344   (eval $ac_try) 2>&5
    3345   ac_status=$?
    3346   echo "$as_me:3346: \$? = $ac_status" >&5
    3347   (exit $ac_status); }; }; then
    3348   ac_cv_lib_dir_opendir=yes
    3349 else
    3350   echo "$as_me: failed program was:" >&5
    3351 cat conftest.$ac_ext >&5
    3352 ac_cv_lib_dir_opendir=no
    3353 fi
    3354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3355 LIBS=$ac_check_lib_save_LIBS
    3356 fi
    3357 echo "$as_me:3357: result: $ac_cv_lib_dir_opendir" >&5
    3358 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
    3359 if test $ac_cv_lib_dir_opendir = yes; then
     1969    builtin and then its argument prototype would still apply.  */
     1970char opendir();
     1971
     1972int main() {
     1973opendir()
     1974; return 0; }
     1975EOF
     1976if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1977  rm -rf conftest*
     1978  eval "ac_cv_lib_$ac_lib_var=yes"
     1979else
     1980  echo "configure: failed program was:" >&5
     1981  cat conftest.$ac_ext >&5
     1982  rm -rf conftest*
     1983  eval "ac_cv_lib_$ac_lib_var=no"
     1984fi
     1985rm -f conftest*
     1986LIBS="$ac_save_LIBS"
     1987
     1988fi
     1989if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1990  echo "$ac_t""yes" 1>&6
    33601991  LIBS="$LIBS -ldir"
    3361 fi
    3362 
    3363 else
    3364   echo "$as_me:3364: checking for opendir in -lx" >&5
    3365 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
    3366 if test "${ac_cv_lib_x_opendir+set}" = set; then
    3367   echo $ECHO_N "(cached) $ECHO_C" >&6
    3368 else
    3369   ac_check_lib_save_LIBS=$LIBS
     1992else
     1993  echo "$ac_t""no" 1>&6
     1994fi
     1995
     1996else
     1997echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
     1998echo "configure:1999: checking for opendir in -lx" >&5
     1999ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
     2000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     2001  echo $ac_n "(cached) $ac_c" 1>&6
     2002else
     2003  ac_save_LIBS="$LIBS"
    33702004LIBS="-lx  $LIBS"
    3371 cat >conftest.$ac_ext <<_ACEOF
    3372 #line 3372 "configure"
    3373 #include "confdefs.h"
    3374 
     2005cat > conftest.$ac_ext <<EOF
     2006#line 2007 "configure"
     2007#include "confdefs.h"
    33752008/* Override any gcc2 internal prototype to avoid an error.  */
    3376 #ifdef __cplusplus
    3377 extern "C"
    3378 #endif
    33792009/* We use char because int might match the return type of a gcc2
    3380    builtin and then its argument prototype would still apply.  */
    3381 char opendir ();
    3382 int
    3383 main ()
    3384 {
    3385 opendir ();
    3386   ;
    3387   return 0;
    3388 }
    3389 _ACEOF
    3390 rm -f conftest.$ac_objext conftest$ac_exeext
    3391 if { (eval echo "$as_me:3391: \"$ac_link\"") >&5
    3392   (eval $ac_link) 2>&5
    3393   ac_status=$?
    3394   echo "$as_me:3394: \$? = $ac_status" >&5
    3395   (exit $ac_status); } &&
    3396          { ac_try='test -s conftest$ac_exeext'
    3397   { (eval echo "$as_me:3397: \"$ac_try\"") >&5
    3398   (eval $ac_try) 2>&5
    3399   ac_status=$?
    3400   echo "$as_me:3400: \$? = $ac_status" >&5
    3401   (exit $ac_status); }; }; then
    3402   ac_cv_lib_x_opendir=yes
    3403 else
    3404   echo "$as_me: failed program was:" >&5
    3405 cat conftest.$ac_ext >&5
    3406 ac_cv_lib_x_opendir=no
    3407 fi
    3408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3409 LIBS=$ac_check_lib_save_LIBS
    3410 fi
    3411 echo "$as_me:3411: result: $ac_cv_lib_x_opendir" >&5
    3412 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
    3413 if test $ac_cv_lib_x_opendir = yes; then
     2010    builtin and then its argument prototype would still apply.  */
     2011char opendir();
     2012
     2013int main() {
     2014opendir()
     2015; return 0; }
     2016EOF
     2017if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2018  rm -rf conftest*
     2019  eval "ac_cv_lib_$ac_lib_var=yes"
     2020else
     2021  echo "configure: failed program was:" >&5
     2022  cat conftest.$ac_ext >&5
     2023  rm -rf conftest*
     2024  eval "ac_cv_lib_$ac_lib_var=no"
     2025fi
     2026rm -f conftest*
     2027LIBS="$ac_save_LIBS"
     2028
     2029fi
     2030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     2031  echo "$ac_t""yes" 1>&6
    34142032  LIBS="$LIBS -lx"
    3415 fi
    3416 
    3417 fi
    3418 
    3419 echo "$as_me:3419: checking for ANSI C header files" >&5
    3420 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3421 if test "${ac_cv_header_stdc+set}" = set; then
    3422   echo $ECHO_N "(cached) $ECHO_C" >&6
    3423 else
    3424   cat >conftest.$ac_ext <<_ACEOF
    3425 #line 3425 "configure"
     2033else
     2034  echo "$ac_t""no" 1>&6
     2035fi
     2036
     2037fi
     2038
     2039echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     2040echo "configure:2041: checking for ANSI C header files" >&5
     2041if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     2042  echo $ac_n "(cached) $ac_c" 1>&6
     2043else
     2044  cat > conftest.$ac_ext <<EOF
     2045#line 2046 "configure"
    34262046#include "confdefs.h"
    34272047#include <stdlib.h>
     
    34292049#include <string.h>
    34302050#include <float.h>
    3431 
    3432 _ACEOF
    3433 if { (eval echo "$as_me:3433: \"$ac_cpp conftest.$ac_ext\"") >&5
    3434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3435   ac_status=$?
    3436   egrep -v '^ *\+' conftest.er1 >conftest.err
    3437   rm -f conftest.er1
    3438   cat conftest.err >&5
    3439   echo "$as_me:3439: \$? = $ac_status" >&5
    3440   (exit $ac_status); } >/dev/null; then
    3441   if test -s conftest.err; then
    3442     ac_cpp_err=$ac_c_preproc_warn_flag
    3443   else
    3444     ac_cpp_err=
    3445   fi
    3446 else
    3447   ac_cpp_err=yes
    3448 fi
    3449 if test -z "$ac_cpp_err"; then
     2051EOF
     2052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2053{ (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2055if test -z "$ac_err"; then
     2056  rm -rf conftest*
    34502057  ac_cv_header_stdc=yes
    34512058else
    3452   echo "$as_me: failed program was:" >&5
    3453   cat conftest.$ac_ext >&5
     2059  echo "$ac_err" >&5
     2060  echo "configure: failed program was:" >&5
     2061  cat conftest.$ac_ext >&5
     2062  rm -rf conftest*
    34542063  ac_cv_header_stdc=no
    34552064fi
    3456 rm -f conftest.err conftest.$ac_ext
     2065rm -f conftest*
    34572066
    34582067if test $ac_cv_header_stdc = yes; then
    34592068  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3460   cat >conftest.$ac_ext <<_ACEOF
    3461 #line 3461 "configure"
     2069cat > conftest.$ac_ext <<EOF
     2070#line 2071 "configure"
    34622071#include "confdefs.h"
    34632072#include <string.h>
    3464 
    3465 _ACEOF
     2073EOF
    34662074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    34672075  egrep "memchr" >/dev/null 2>&1; then
    34682076  :
    34692077else
     2078  rm -rf conftest*
    34702079  ac_cv_header_stdc=no
    34712080fi
     
    34762085if test $ac_cv_header_stdc = yes; then
    34772086  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3478   cat >conftest.$ac_ext <<_ACEOF
    3479 #line 3479 "configure"
     2087cat > conftest.$ac_ext <<EOF
     2088#line 2089 "configure"
    34802089#include "confdefs.h"
    34812090#include <stdlib.h>
    3482 
    3483 _ACEOF
     2091EOF
    34842092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    34852093  egrep "free" >/dev/null 2>&1; then
    34862094  :
    34872095else
     2096  rm -rf conftest*
    34882097  ac_cv_header_stdc=no
    34892098fi
     
    34942103if test $ac_cv_header_stdc = yes; then
    34952104  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3496   if test "$cross_compiling" = yes; then
     2105if test "$cross_compiling" = yes; then
    34972106  :
    34982107else
    3499   cat >conftest.$ac_ext <<_ACEOF
    3500 #line 3500 "configure"
     2108  cat > conftest.$ac_ext <<EOF
     2109#line 2110 "configure"
    35012110#include "confdefs.h"
    35022111#include <ctype.h>
    3503 #if ((' ' & 0x0FF) == 0x020)
    3504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    3505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    3506 #else
    3507 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    3508                      || ('j' <= (c) && (c) <= 'r') \
    3509                      || ('s' <= (c) && (c) <= 'z'))
    3510 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    3511 #endif
    3512 
     2112#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2113#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    35132114#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    3514 int
    3515 main ()
    3516 {
    3517   int i;
    3518   for (i = 0; i < 256; i++)
    3519     if (XOR (islower (i), ISLOWER (i))
    3520         || toupper (i) != TOUPPER (i))
    3521       exit(2);
    3522   exit (0);
    3523 }
    3524 _ACEOF
    3525 rm -f conftest$ac_exeext
    3526 if { (eval echo "$as_me:3526: \"$ac_link\"") >&5
    3527   (eval $ac_link) 2>&5
    3528   ac_status=$?
    3529   echo "$as_me:3529: \$? = $ac_status" >&5
    3530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3531   { (eval echo "$as_me:3531: \"$ac_try\"") >&5
    3532   (eval $ac_try) 2>&5
    3533   ac_status=$?
    3534   echo "$as_me:3534: \$? = $ac_status" >&5
    3535   (exit $ac_status); }; }; then
     2115int main () { int i; for (i = 0; i < 256; i++)
     2116if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     2117exit (0); }
     2118
     2119EOF
     2120if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2121then
    35362122  :
    35372123else
    3538   echo "$as_me: program exited with status $ac_status" >&5
    3539 echo "$as_me: failed program was:" >&5
    3540 cat conftest.$ac_ext >&5
    3541 ac_cv_header_stdc=no
    3542 fi
    3543 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3544 fi
    3545 fi
    3546 fi
    3547 echo "$as_me:3547: result: $ac_cv_header_stdc" >&5
    3548 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     2124  echo "configure: failed program was:" >&5
     2125  cat conftest.$ac_ext >&5
     2126  rm -fr conftest*
     2127  ac_cv_header_stdc=no
     2128fi
     2129rm -fr conftest*
     2130fi
     2131
     2132fi
     2133fi
     2134
     2135echo "$ac_t""$ac_cv_header_stdc" 1>&6
    35492136if test $ac_cv_header_stdc = yes; then
    3550 
    3551 cat >>confdefs.h <<\EOF
     2137  cat >> confdefs.h <<\EOF
    35522138#define STDC_HEADERS 1
    35532139EOF
     
    35552141fi
    35562142
    3557 for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
     2143for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
    35582144do
    3559 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    3560 echo "$as_me:3560: checking for $ac_header" >&5
    3561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3562 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    3563   echo $ECHO_N "(cached) $ECHO_C" >&6
    3564 else
    3565   cat >conftest.$ac_ext <<_ACEOF
    3566 #line 3566 "configure"
    3567 #include "confdefs.h"
    3568 #include <$ac_header>
    3569 _ACEOF
    3570 if { (eval echo "$as_me:3570: \"$ac_cpp conftest.$ac_ext\"") >&5
    3571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3572   ac_status=$?
    3573   egrep -v '^ *\+' conftest.er1 >conftest.err
    3574   rm -f conftest.er1
    3575   cat conftest.err >&5
    3576   echo "$as_me:3576: \$? = $ac_status" >&5
    3577   (exit $ac_status); } >/dev/null; then
    3578   if test -s conftest.err; then
    3579     ac_cpp_err=$ac_c_preproc_warn_flag
    3580   else
    3581     ac_cpp_err=
    3582   fi
    3583 else
    3584   ac_cpp_err=yes
    3585 fi
    3586 if test -z "$ac_cpp_err"; then
    3587   eval "$ac_ac_Header=yes"
    3588 else
    3589   echo "$as_me: failed program was:" >&5
    3590   cat conftest.$ac_ext >&5
    3591   eval "$ac_ac_Header=no"
    3592 fi
    3593 rm -f conftest.err conftest.$ac_ext
    3594 fi
    3595 echo "$as_me:3595: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3596 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3597 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3598   cat >>confdefs.h <<EOF
    3599 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    3600 EOF
    3601 
     2145ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     2146echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     2147echo "configure:2148: checking for $ac_hdr" >&5
     2148if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     2149  echo $ac_n "(cached) $ac_c" 1>&6
     2150else
     2151  cat > conftest.$ac_ext <<EOF
     2152#line 2153 "configure"
     2153#include "confdefs.h"
     2154#include <$ac_hdr>
     2155EOF
     2156ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2157{ (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2158ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2159if test -z "$ac_err"; then
     2160  rm -rf conftest*
     2161  eval "ac_cv_header_$ac_safe=yes"
     2162else
     2163  echo "$ac_err" >&5
     2164  echo "configure: failed program was:" >&5
     2165  cat conftest.$ac_ext >&5
     2166  rm -rf conftest*
     2167  eval "ac_cv_header_$ac_safe=no"
     2168fi
     2169rm -f conftest*
     2170fi
     2171if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     2172  echo "$ac_t""yes" 1>&6
     2173    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     2174  cat >> confdefs.h <<EOF
     2175#define $ac_tr_hdr 1
     2176EOF
     2177 
     2178else
     2179  echo "$ac_t""no" 1>&6
    36022180fi
    36032181done
    36042182
    3605 cat >conftest.$ac_ext <<_ACEOF
    3606 #line 3606 "configure"
     2183cat > conftest.$ac_ext <<EOF
     2184#line 2185 "configure"
    36072185#include "confdefs.h"
    36082186#include <stdio.h>
    3609 
    3610 _ACEOF
     2187EOF
    36112188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    36122189  egrep "fread" >/dev/null 2>&1; then
    3613   cat >>confdefs.h <<\EOF
     2190  rm -rf conftest*
     2191  cat >> confdefs.h <<\EOF
    36142192#define HAVE_FREAD_DECL 1
    36152193EOF
     
    36182196rm -f conftest*
    36192197
    3620 cat >conftest.$ac_ext <<_ACEOF
    3621 #line 3621 "configure"
     2198cat > conftest.$ac_ext <<EOF
     2199#line 2200 "configure"
    36222200#include "confdefs.h"
    36232201#include <stdio.h>
    3624 
    3625 _ACEOF
     2202EOF
    36262203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    36272204  egrep "fgetc" >/dev/null 2>&1; then
    3628   cat >>confdefs.h <<\EOF
     2205  rm -rf conftest*
     2206  cat >> confdefs.h <<\EOF
    36292207#define HAVE_FGETC_DECL 1
    36302208EOF
     
    36332211rm -f conftest*
    36342212
    3635 cat >conftest.$ac_ext <<_ACEOF
    3636 #line 3636 "configure"
     2213cat > conftest.$ac_ext <<EOF
     2214#line 2215 "configure"
    36372215#include "confdefs.h"
    36382216#include <sys/procfs.h>
    3639 
    3640 _ACEOF
     2217EOF
    36412218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    36422219  egrep "pr_brksize" >/dev/null 2>&1; then
    3643   cat >>confdefs.h <<\EOF
     2220  rm -rf conftest*
     2221  cat >> confdefs.h <<\EOF
    36442222#define HAVE_PR_BRKSIZE 1
    36452223EOF
     
    36472225fi
    36482226rm -f conftest*
     2227
    36492228
    36502229# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    36512230# for constant arguments.  Useless!
    3652 echo "$as_me:3652: checking for working alloca.h" >&5
    3653 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    3654 if test "${ac_cv_working_alloca_h+set}" = set; then
    3655   echo $ECHO_N "(cached) $ECHO_C" >&6
    3656 else
    3657   cat >conftest.$ac_ext <<_ACEOF
    3658 #line 3658 "configure"
     2231echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
     2232echo "configure:2233: checking for working alloca.h" >&5
     2233if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
     2234  echo $ac_n "(cached) $ac_c" 1>&6
     2235else
     2236  cat > conftest.$ac_ext <<EOF
     2237#line 2238 "configure"
    36592238#include "confdefs.h"
    36602239#include <alloca.h>
    3661 int
    3662 main ()
    3663 {
    3664 char *p = (char *) alloca (2 * sizeof (int));
    3665   ;
    3666   return 0;
    3667 }
    3668 _ACEOF
    3669 rm -f conftest.$ac_objext conftest$ac_exeext
    3670 if { (eval echo "$as_me:3670: \"$ac_link\"") >&5
    3671   (eval $ac_link) 2>&5
    3672   ac_status=$?
    3673   echo "$as_me:3673: \$? = $ac_status" >&5
    3674   (exit $ac_status); } &&
    3675          { ac_try='test -s conftest$ac_exeext'
    3676   { (eval echo "$as_me:3676: \"$ac_try\"") >&5
    3677   (eval $ac_try) 2>&5
    3678   ac_status=$?
    3679   echo "$as_me:3679: \$? = $ac_status" >&5
    3680   (exit $ac_status); }; }; then
    3681   ac_cv_working_alloca_h=yes
    3682 else
    3683   echo "$as_me: failed program was:" >&5
    3684 cat conftest.$ac_ext >&5
    3685 ac_cv_working_alloca_h=no
    3686 fi
    3687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3688 fi
    3689 echo "$as_me:3689: result: $ac_cv_working_alloca_h" >&5
    3690 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
    3691 if test $ac_cv_working_alloca_h = yes; then
    3692 
    3693 cat >>confdefs.h <<\EOF
     2240int main() {
     2241char *p = alloca(2 * sizeof(int));
     2242; return 0; }
     2243EOF
     2244if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2245  rm -rf conftest*
     2246  ac_cv_header_alloca_h=yes
     2247else
     2248  echo "configure: failed program was:" >&5
     2249  cat conftest.$ac_ext >&5
     2250  rm -rf conftest*
     2251  ac_cv_header_alloca_h=no
     2252fi
     2253rm -f conftest*
     2254fi
     2255
     2256echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
     2257if test $ac_cv_header_alloca_h = yes; then
     2258  cat >> confdefs.h <<\EOF
    36942259#define HAVE_ALLOCA_H 1
    36952260EOF
     
    36972262fi
    36982263
    3699 echo "$as_me:3699: checking for alloca" >&5
    3700 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    3701 if test "${ac_cv_func_alloca_works+set}" = set; then
    3702   echo $ECHO_N "(cached) $ECHO_C" >&6
    3703 else
    3704   cat >conftest.$ac_ext <<_ACEOF
    3705 #line 3705 "configure"
    3706 #include "confdefs.h"
     2264echo $ac_n "checking for alloca""... $ac_c" 1>&6
     2265echo "configure:2266: checking for alloca" >&5
     2266if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
     2267  echo $ac_n "(cached) $ac_c" 1>&6
     2268else
     2269  cat > conftest.$ac_ext <<EOF
     2270#line 2271 "configure"
     2271#include "confdefs.h"
     2272
    37072273#ifdef __GNUC__
    37082274# define alloca __builtin_alloca
     
    37262292#endif
    37272293
    3728 int
    3729 main ()
    3730 {
    3731 char *p = (char *) alloca (1);
    3732   ;
    3733   return 0;
    3734 }
    3735 _ACEOF
    3736 rm -f conftest.$ac_objext conftest$ac_exeext
    3737 if { (eval echo "$as_me:3737: \"$ac_link\"") >&5
    3738   (eval $ac_link) 2>&5
    3739   ac_status=$?
    3740   echo "$as_me:3740: \$? = $ac_status" >&5
    3741   (exit $ac_status); } &&
    3742          { ac_try='test -s conftest$ac_exeext'
    3743   { (eval echo "$as_me:3743: \"$ac_try\"") >&5
    3744   (eval $ac_try) 2>&5
    3745   ac_status=$?
    3746   echo "$as_me:3746: \$? = $ac_status" >&5
    3747   (exit $ac_status); }; }; then
     2294int main() {
     2295char *p = (char *) alloca(1);
     2296; return 0; }
     2297EOF
     2298if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2299  rm -rf conftest*
    37482300  ac_cv_func_alloca_works=yes
    37492301else
    3750   echo "$as_me: failed program was:" >&5
    3751 cat conftest.$ac_ext >&5
    3752 ac_cv_func_alloca_works=no
    3753 fi
    3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3755 fi
    3756 echo "$as_me:3756: result: $ac_cv_func_alloca_works" >&5
    3757 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
    3758 
     2302  echo "configure: failed program was:" >&5
     2303  cat conftest.$ac_ext >&5
     2304  rm -rf conftest*
     2305  ac_cv_func_alloca_works=no
     2306fi
     2307rm -f conftest*
     2308fi
     2309
     2310echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
    37592311if test $ac_cv_func_alloca_works = yes; then
    3760 
    3761 cat >>confdefs.h <<\EOF
     2312  cat >> confdefs.h <<\EOF
    37622313#define HAVE_ALLOCA 1
    37632314EOF
    37642315
    3765 else
     2316fi
     2317
     2318if test $ac_cv_func_alloca_works = no; then
    37662319  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    3767 # that cause trouble.  Some versions do not even contain alloca or
    3768 # contain a buggy version.  If you still want to use their alloca,
    3769 # use ar to extract alloca.o from them instead of compiling alloca.c.
    3770 
    3771 ALLOCA=alloca.$ac_objext
    3772 
    3773 cat >>confdefs.h <<\EOF
     2320  # that cause trouble.  Some versions do not even contain alloca or
     2321  # contain a buggy version.  If you still want to use their alloca,
     2322  # use ar to extract alloca.o from them instead of compiling alloca.c.
     2323  ALLOCA=alloca.${ac_objext}
     2324  cat >> confdefs.h <<\EOF
    37742325#define C_ALLOCA 1
    37752326EOF
    37762327
    3777 echo "$as_me:3777: checking whether \`alloca.c' needs Cray hooks" >&5
    3778 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    3779 if test "${ac_cv_os_cray+set}" = set; then
    3780   echo $ECHO_N "(cached) $ECHO_C" >&6
    3781 else
    3782   cat >conftest.$ac_ext <<_ACEOF
    3783 #line 3783 "configure"
     2328
     2329echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
     2330echo "configure:2331: checking whether alloca needs Cray hooks" >&5
     2331if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
     2332  echo $ac_n "(cached) $ac_c" 1>&6
     2333else
     2334  cat > conftest.$ac_ext <<EOF
     2335#line 2336 "configure"
    37842336#include "confdefs.h"
    37852337#if defined(CRAY) && ! defined(CRAY2)
     
    37892341#endif
    37902342
    3791 _ACEOF
     2343EOF
    37922344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    37932345  egrep "webecray" >/dev/null 2>&1; then
     2346  rm -rf conftest*
    37942347  ac_cv_os_cray=yes
    37952348else
     2349  rm -rf conftest*
    37962350  ac_cv_os_cray=no
    37972351fi
     
    37992353
    38002354fi
    3801 echo "$as_me:3801: result: $ac_cv_os_cray" >&5
    3802 echo "${ECHO_T}$ac_cv_os_cray" >&6
     2355
     2356echo "$ac_t""$ac_cv_os_cray" 1>&6
    38032357if test $ac_cv_os_cray = yes; then
    3804   for ac_func in _getb67 GETB67 getb67; do
    3805     ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    3806 echo "$as_me:3806: checking for $ac_func" >&5
    3807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    3808 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    3809   echo $ECHO_N "(cached) $ECHO_C" >&6
    3810 else
    3811   cat >conftest.$ac_ext <<_ACEOF
    3812 #line 3812 "configure"
     2358for ac_func in _getb67 GETB67 getb67; do
     2359  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2360echo "configure:2361: checking for $ac_func" >&5
     2361if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2362  echo $ac_n "(cached) $ac_c" 1>&6
     2363else
     2364  cat > conftest.$ac_ext <<EOF
     2365#line 2366 "configure"
    38132366#include "confdefs.h"
    38142367/* System header to define __stub macros and hopefully few prototypes,
    3815     which can conflict with char $ac_func (); below.  */
     2368    which can conflict with char $ac_func(); below.  */
    38162369#include <assert.h>
    38172370/* Override any gcc2 internal prototype to avoid an error.  */
    3818 #ifdef __cplusplus
    3819 extern "C"
    3820 #endif
    38212371/* We use char because int might match the return type of a gcc2
    3822    builtin and then its argument prototype would still apply.  */
    3823 char $ac_func ();
    3824 char (*f) ();
    3825 
    3826 int
    3827 main ()
    3828 {
     2372    builtin and then its argument prototype would still apply.  */
     2373char $ac_func();
     2374
     2375int main() {
     2376
    38292377/* The GNU C library defines this for functions which it implements
    38302378    to always fail with ENOSYS.  Some functions are actually named
     
    38332381choke me
    38342382#else
    3835 f = $ac_func;
     2383$ac_func();
    38362384#endif
    38372385
    3838   ;
    3839   return 0;
    3840 }
    3841 _ACEOF
    3842 rm -f conftest.$ac_objext conftest$ac_exeext
    3843 if { (eval echo "$as_me:3843: \"$ac_link\"") >&5
    3844   (eval $ac_link) 2>&5
    3845   ac_status=$?
    3846   echo "$as_me:3846: \$? = $ac_status" >&5
    3847   (exit $ac_status); } &&
    3848          { ac_try='test -s conftest$ac_exeext'
    3849   { (eval echo "$as_me:3849: \"$ac_try\"") >&5
    3850   (eval $ac_try) 2>&5
    3851   ac_status=$?
    3852   echo "$as_me:3852: \$? = $ac_status" >&5
    3853   (exit $ac_status); }; }; then
    3854   eval "$ac_ac_var=yes"
    3855 else
    3856   echo "$as_me: failed program was:" >&5
    3857 cat conftest.$ac_ext >&5
    3858 eval "$ac_ac_var=no"
    3859 fi
    3860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3861 fi
    3862 echo "$as_me:3862: result: `eval echo '${'$ac_ac_var'}'`" >&5
    3863 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    3864 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    3865 
    3866 cat >>confdefs.h <<EOF
     2386; return 0; }
     2387EOF
     2388if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2389  rm -rf conftest*
     2390  eval "ac_cv_func_$ac_func=yes"
     2391else
     2392  echo "configure: failed program was:" >&5
     2393  cat conftest.$ac_ext >&5
     2394  rm -rf conftest*
     2395  eval "ac_cv_func_$ac_func=no"
     2396fi
     2397rm -f conftest*
     2398fi
     2399
     2400if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2401  echo "$ac_t""yes" 1>&6
     2402  cat >> confdefs.h <<EOF
    38672403#define CRAY_STACKSEG_END $ac_func
    38682404EOF
    38692405
    3870     break
    3871 fi
    3872 
    3873   done
    3874 fi
    3875 
    3876 echo "$as_me:3876: checking stack direction for C alloca" >&5
    3877 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    3878 if test "${ac_cv_c_stack_direction+set}" = set; then
    3879   echo $ECHO_N "(cached) $ECHO_C" >&6
     2406  break
     2407else
     2408  echo "$ac_t""no" 1>&6
     2409fi
     2410
     2411done
     2412fi
     2413
     2414echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
     2415echo "configure:2416: checking stack direction for C alloca" >&5
     2416if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
     2417  echo $ac_n "(cached) $ac_c" 1>&6
    38802418else
    38812419  if test "$cross_compiling" = yes; then
    38822420  ac_cv_c_stack_direction=0
    38832421else
    3884   cat >conftest.$ac_ext <<_ACEOF
    3885 #line 3885 "configure"
    3886 #include "confdefs.h"
    3887 int
     2422  cat > conftest.$ac_ext <<EOF
     2423#line 2424 "configure"
     2424#include "confdefs.h"
    38882425find_stack_direction ()
    38892426{
     
    38982435    return (&dummy > addr) ? 1 : -1;
    38992436}
    3900 
    3901 int
    39022437main ()
    39032438{
    3904   exit (find_stack_direction () < 0);
     2439  exit (find_stack_direction() < 0);
    39052440}
    3906 _ACEOF
    3907 rm -f conftest$ac_exeext
    3908 if { (eval echo "$as_me:3908: \"$ac_link\"") >&5
    3909   (eval $ac_link) 2>&5
    3910   ac_status=$?
    3911   echo "$as_me:3911: \$? = $ac_status" >&5
    3912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3913   { (eval echo "$as_me:3913: \"$ac_try\"") >&5
    3914   (eval $ac_try) 2>&5
    3915   ac_status=$?
    3916   echo "$as_me:3916: \$? = $ac_status" >&5
    3917   (exit $ac_status); }; }; then
     2441EOF
     2442if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2443then
    39182444  ac_cv_c_stack_direction=1
    39192445else
    3920   echo "$as_me: program exited with status $ac_status" >&5
    3921 echo "$as_me: failed program was:" >&5
    3922 cat conftest.$ac_ext >&5
    3923 ac_cv_c_stack_direction=-1
    3924 fi
    3925 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3926 fi
    3927 fi
    3928 echo "$as_me:3928: result: $ac_cv_c_stack_direction" >&5
    3929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    3930 
    3931 cat >>confdefs.h <<EOF
     2446  echo "configure: failed program was:" >&5
     2447  cat conftest.$ac_ext >&5
     2448  rm -fr conftest*
     2449  ac_cv_c_stack_direction=-1
     2450fi
     2451rm -fr conftest*
     2452fi
     2453
     2454fi
     2455
     2456echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
     2457cat >> confdefs.h <<EOF
    39322458#define STACK_DIRECTION $ac_cv_c_stack_direction
    39332459EOF
     
    39352461fi
    39362462
    3937 if test $ac_cv_c_compiler_gnu = yes; then
    3938     echo "$as_me:3938: checking whether $CC needs -traditional" >&5
    3939 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    3940 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    3941   echo $ECHO_N "(cached) $ECHO_C" >&6
     2463if test $ac_cv_prog_gcc = yes; then
     2464    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
     2465echo "configure:2466: checking whether ${CC-cc} needs -traditional" >&5
     2466if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
     2467  echo $ac_n "(cached) $ac_c" 1>&6
    39422468else
    39432469    ac_pattern="Autoconf.*'x'"
    3944   cat >conftest.$ac_ext <<_ACEOF
    3945 #line 3945 "configure"
     2470  cat > conftest.$ac_ext <<EOF
     2471#line 2472 "configure"
    39462472#include "confdefs.h"
    39472473#include <sgtty.h>
    39482474Autoconf TIOCGETP
    3949 _ACEOF
     2475EOF
    39502476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    39512477  egrep "$ac_pattern" >/dev/null 2>&1; then
     2478  rm -rf conftest*
    39522479  ac_cv_prog_gcc_traditional=yes
    39532480else
     2481  rm -rf conftest*
    39542482  ac_cv_prog_gcc_traditional=no
    39552483fi
    39562484rm -f conftest*
    39572485
     2486
    39582487  if test $ac_cv_prog_gcc_traditional = no; then
    3959     cat >conftest.$ac_ext <<_ACEOF
    3960 #line 3960 "configure"
     2488    cat > conftest.$ac_ext <<EOF
     2489#line 2490 "configure"
    39612490#include "confdefs.h"
    39622491#include <termio.h>
    39632492Autoconf TCGETA
    3964 _ACEOF
     2493EOF
    39652494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    39662495  egrep "$ac_pattern" >/dev/null 2>&1; then
     2496  rm -rf conftest*
    39672497  ac_cv_prog_gcc_traditional=yes
    39682498fi
     
    39712501  fi
    39722502fi
    3973 echo "$as_me:3973: result: $ac_cv_prog_gcc_traditional" >&5
    3974 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     2503
     2504echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
    39752505  if test $ac_cv_prog_gcc_traditional = yes; then
    39762506    CC="$CC -traditional"
     
    39782508fi
    39792509
    3980 echo "$as_me:3980: checking return type of signal handlers" >&5
    3981 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    3982 if test "${ac_cv_type_signal+set}" = set; then
    3983   echo $ECHO_N "(cached) $ECHO_C" >&6
    3984 else
    3985   cat >conftest.$ac_ext <<_ACEOF
    3986 #line 3986 "configure"
     2510echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
     2511echo "configure:2512: checking return type of signal handlers" >&5
     2512if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
     2513  echo $ac_n "(cached) $ac_c" 1>&6
     2514else
     2515  cat > conftest.$ac_ext <<EOF
     2516#line 2517 "configure"
    39872517#include "confdefs.h"
    39882518#include <sys/types.h>
    39892519#include <signal.h>
    39902520#ifdef signal
    3991 # undef signal
     2521#undef signal
    39922522#endif
    39932523#ifdef __cplusplus
     
    39972527#endif
    39982528
    3999 int
    4000 main ()
    4001 {
     2529int main() {
    40022530int i;
    4003   ;
    4004   return 0;
    4005 }
    4006 _ACEOF
    4007 rm -f conftest.$ac_objext
    4008 if { (eval echo "$as_me:4008: \"$ac_compile\"") >&5
    4009   (eval $ac_compile) 2>&5
    4010   ac_status=$?
    4011   echo "$as_me:4011: \$? = $ac_status" >&5
    4012   (exit $ac_status); } &&
    4013          { ac_try='test -s conftest.$ac_objext'
    4014   { (eval echo "$as_me:4014: \"$ac_try\"") >&5
    4015   (eval $ac_try) 2>&5
    4016   ac_status=$?
    4017   echo "$as_me:4017: \$? = $ac_status" >&5
    4018   (exit $ac_status); }; }; then
     2531; return 0; }
     2532EOF
     2533if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2534  rm -rf conftest*
    40192535  ac_cv_type_signal=void
    40202536else
    4021   echo "$as_me: failed program was:" >&5
    4022 cat conftest.$ac_ext >&5
    4023 ac_cv_type_signal=int
    4024 fi
    4025 rm -f conftest.$ac_objext conftest.$ac_ext
    4026 fi
    4027 echo "$as_me:4027: result: $ac_cv_type_signal" >&5
    4028 echo "${ECHO_T}$ac_cv_type_signal" >&6
    4029 
    4030 cat >>confdefs.h <<EOF
     2537  echo "configure: failed program was:" >&5
     2538  cat conftest.$ac_ext >&5
     2539  rm -rf conftest*
     2540  ac_cv_type_signal=int
     2541fi
     2542rm -f conftest*
     2543fi
     2544
     2545echo "$ac_t""$ac_cv_type_signal" 1>&6
     2546cat >> confdefs.h <<EOF
    40312547#define RETSIGTYPE $ac_cv_type_signal
    40322548EOF
    40332549
    4034 for ac_func in vprintf
    4035 do
    4036 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4037 echo "$as_me:4037: checking for $ac_func" >&5
    4038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4039 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4040   echo $ECHO_N "(cached) $ECHO_C" >&6
    4041 else
    4042   cat >conftest.$ac_ext <<_ACEOF
    4043 #line 4043 "configure"
     2550
     2551echo $ac_n "checking for vprintf""... $ac_c" 1>&6
     2552echo "configure:2553: checking for vprintf" >&5
     2553if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
     2554  echo $ac_n "(cached) $ac_c" 1>&6
     2555else
     2556  cat > conftest.$ac_ext <<EOF
     2557#line 2558 "configure"
    40442558#include "confdefs.h"
    40452559/* System header to define __stub macros and hopefully few prototypes,
    4046     which can conflict with char $ac_func (); below.  */
     2560    which can conflict with char vprintf(); below.  */
    40472561#include <assert.h>
    40482562/* Override any gcc2 internal prototype to avoid an error.  */
    4049 #ifdef __cplusplus
    4050 extern "C"
     2563/* We use char because int might match the return type of a gcc2
     2564    builtin and then its argument prototype would still apply.  */
     2565char vprintf();
     2566
     2567int main() {
     2568
     2569/* The GNU C library defines this for functions which it implements
     2570    to always fail with ENOSYS.  Some functions are actually named
     2571    something starting with __ and the normal name is an alias.  */
     2572#if defined (__stub_vprintf) || defined (__stub___vprintf)
     2573choke me
     2574#else
     2575vprintf();
    40512576#endif
     2577
     2578; return 0; }
     2579EOF
     2580if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2581  rm -rf conftest*
     2582  eval "ac_cv_func_vprintf=yes"
     2583else
     2584  echo "configure: failed program was:" >&5
     2585  cat conftest.$ac_ext >&5
     2586  rm -rf conftest*
     2587  eval "ac_cv_func_vprintf=no"
     2588fi
     2589rm -f conftest*
     2590fi
     2591
     2592if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
     2593  echo "$ac_t""yes" 1>&6
     2594  cat >> confdefs.h <<\EOF
     2595#define HAVE_VPRINTF 1
     2596EOF
     2597
     2598else
     2599  echo "$ac_t""no" 1>&6
     2600fi
     2601
     2602if test "$ac_cv_func_vprintf" != yes; then
     2603echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
     2604echo "configure:2605: checking for _doprnt" >&5
     2605if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
     2606  echo $ac_n "(cached) $ac_c" 1>&6
     2607else
     2608  cat > conftest.$ac_ext <<EOF
     2609#line 2610 "configure"
     2610#include "confdefs.h"
     2611/* System header to define __stub macros and hopefully few prototypes,
     2612    which can conflict with char _doprnt(); below.  */
     2613#include <assert.h>
     2614/* Override any gcc2 internal prototype to avoid an error.  */
    40522615/* We use char because int might match the return type of a gcc2
    4053    builtin and then its argument prototype would still apply.  */
    4054 char $ac_func ();
    4055 char (*f) ();
    4056 
    4057 int
    4058 main ()
    4059 {
     2616    builtin and then its argument prototype would still apply.  */
     2617char _doprnt();
     2618
     2619int main() {
     2620
     2621/* The GNU C library defines this for functions which it implements
     2622    to always fail with ENOSYS.  Some functions are actually named
     2623    something starting with __ and the normal name is an alias.  */
     2624#if defined (__stub__doprnt) || defined (__stub____doprnt)
     2625choke me
     2626#else
     2627_doprnt();
     2628#endif
     2629
     2630; return 0; }
     2631EOF
     2632if { (eval echo configure:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2633  rm -rf conftest*
     2634  eval "ac_cv_func__doprnt=yes"
     2635else
     2636  echo "configure: failed program was:" >&5
     2637  cat conftest.$ac_ext >&5
     2638  rm -rf conftest*
     2639  eval "ac_cv_func__doprnt=no"
     2640fi
     2641rm -f conftest*
     2642fi
     2643
     2644if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
     2645  echo "$ac_t""yes" 1>&6
     2646  cat >> confdefs.h <<\EOF
     2647#define HAVE_DOPRNT 1
     2648EOF
     2649
     2650else
     2651  echo "$ac_t""no" 1>&6
     2652fi
     2653
     2654fi
     2655
     2656for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
     2657do
     2658echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2659echo "configure:2660: checking for $ac_func" >&5
     2660if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2661  echo $ac_n "(cached) $ac_c" 1>&6
     2662else
     2663  cat > conftest.$ac_ext <<EOF
     2664#line 2665 "configure"
     2665#include "confdefs.h"
     2666/* System header to define __stub macros and hopefully few prototypes,
     2667    which can conflict with char $ac_func(); below.  */
     2668#include <assert.h>
     2669/* Override any gcc2 internal prototype to avoid an error.  */
     2670/* We use char because int might match the return type of a gcc2
     2671    builtin and then its argument prototype would still apply.  */
     2672char $ac_func();
     2673
     2674int main() {
     2675
    40602676/* The GNU C library defines this for functions which it implements
    40612677    to always fail with ENOSYS.  Some functions are actually named
     
    40642680choke me
    40652681#else
    4066 f = $ac_func;
     2682$ac_func();
    40672683#endif
    40682684
    4069   ;
    4070   return 0;
    4071 }
    4072 _ACEOF
    4073 rm -f conftest.$ac_objext conftest$ac_exeext
    4074 if { (eval echo "$as_me:4074: \"$ac_link\"") >&5
    4075   (eval $ac_link) 2>&5
    4076   ac_status=$?
    4077   echo "$as_me:4077: \$? = $ac_status" >&5
    4078   (exit $ac_status); } &&
    4079          { ac_try='test -s conftest$ac_exeext'
    4080   { (eval echo "$as_me:4080: \"$ac_try\"") >&5
    4081   (eval $ac_try) 2>&5
    4082   ac_status=$?
    4083   echo "$as_me:4083: \$? = $ac_status" >&5
    4084   (exit $ac_status); }; }; then
    4085   eval "$ac_ac_var=yes"
    4086 else
    4087   echo "$as_me: failed program was:" >&5
    4088 cat conftest.$ac_ext >&5
    4089 eval "$ac_ac_var=no"
    4090 fi
    4091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4092 fi
    4093 echo "$as_me:4093: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4094 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4095 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4096   cat >>confdefs.h <<EOF
    4097 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4098 EOF
    4099 
    4100 echo "$as_me:4100: checking for _doprnt" >&5
    4101 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    4102 if test "${ac_cv_func__doprnt+set}" = set; then
    4103   echo $ECHO_N "(cached) $ECHO_C" >&6
    4104 else
    4105   cat >conftest.$ac_ext <<_ACEOF
    4106 #line 4106 "configure"
     2685; return 0; }
     2686EOF
     2687if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2688  rm -rf conftest*
     2689  eval "ac_cv_func_$ac_func=yes"
     2690else
     2691  echo "configure: failed program was:" >&5
     2692  cat conftest.$ac_ext >&5
     2693  rm -rf conftest*
     2694  eval "ac_cv_func_$ac_func=no"
     2695fi
     2696rm -f conftest*
     2697fi
     2698
     2699if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2700  echo "$ac_t""yes" 1>&6
     2701    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2702  cat >> confdefs.h <<EOF
     2703#define $ac_tr_func 1
     2704EOF
     2705 
     2706else
     2707  echo "$ac_t""no" 1>&6
     2708fi
     2709done
     2710
     2711for ac_func in ftruncate strstr strcasecmp
     2712do
     2713echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2714echo "configure:2715: checking for $ac_func" >&5
     2715if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2716  echo $ac_n "(cached) $ac_c" 1>&6
     2717else
     2718  cat > conftest.$ac_ext <<EOF
     2719#line 2720 "configure"
    41072720#include "confdefs.h"
    41082721/* System header to define __stub macros and hopefully few prototypes,
    4109     which can conflict with char _doprnt (); below.  */
     2722    which can conflict with char $ac_func(); below.  */
    41102723#include <assert.h>
    41112724/* Override any gcc2 internal prototype to avoid an error.  */
    4112 #ifdef __cplusplus
    4113 extern "C"
    4114 #endif
    41152725/* We use char because int might match the return type of a gcc2
    4116    builtin and then its argument prototype would still apply.  */
    4117 char _doprnt ();
    4118 char (*f) ();
    4119 
    4120 int
    4121 main ()
    4122 {
    4123 /* The GNU C library defines this for functions which it implements
    4124     to always fail with ENOSYS.  Some functions are actually named
    4125     something starting with __ and the normal name is an alias.  */
    4126 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    4127 choke me
    4128 #else
    4129 f = _doprnt;
    4130 #endif
    4131 
    4132   ;
    4133   return 0;
    4134 }
    4135 _ACEOF
    4136 rm -f conftest.$ac_objext conftest$ac_exeext
    4137 if { (eval echo "$as_me:4137: \"$ac_link\"") >&5
    4138   (eval $ac_link) 2>&5
    4139   ac_status=$?
    4140   echo "$as_me:4140: \$? = $ac_status" >&5
    4141   (exit $ac_status); } &&
    4142          { ac_try='test -s conftest$ac_exeext'
    4143   { (eval echo "$as_me:4143: \"$ac_try\"") >&5
    4144   (eval $ac_try) 2>&5
    4145   ac_status=$?
    4146   echo "$as_me:4146: \$? = $ac_status" >&5
    4147   (exit $ac_status); }; }; then
    4148   ac_cv_func__doprnt=yes
    4149 else
    4150   echo "$as_me: failed program was:" >&5
    4151 cat conftest.$ac_ext >&5
    4152 ac_cv_func__doprnt=no
    4153 fi
    4154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4155 fi
    4156 echo "$as_me:4156: result: $ac_cv_func__doprnt" >&5
    4157 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    4158 if test $ac_cv_func__doprnt = yes; then
    4159 
    4160 cat >>confdefs.h <<\EOF
    4161 #define HAVE_DOPRNT 1
    4162 EOF
    4163 
    4164 fi
    4165 
    4166 fi
    4167 done
    4168 
    4169 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    4170 do
    4171 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4172 echo "$as_me:4172: checking for $ac_func" >&5
    4173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4174 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4175   echo $ECHO_N "(cached) $ECHO_C" >&6
    4176 else
    4177   cat >conftest.$ac_ext <<_ACEOF
    4178 #line 4178 "configure"
    4179 #include "confdefs.h"
    4180 /* System header to define __stub macros and hopefully few prototypes,
    4181     which can conflict with char $ac_func (); below.  */
    4182 #include <assert.h>
    4183 /* Override any gcc2 internal prototype to avoid an error.  */
    4184 #ifdef __cplusplus
    4185 extern "C"
    4186 #endif
    4187 /* We use char because int might match the return type of a gcc2
    4188    builtin and then its argument prototype would still apply.  */
    4189 char $ac_func ();
    4190 char (*f) ();
    4191 
    4192 int
    4193 main ()
    4194 {
     2726    builtin and then its argument prototype would still apply.  */
     2727char $ac_func();
     2728
     2729int main() {
     2730
    41952731/* The GNU C library defines this for functions which it implements
    41962732    to always fail with ENOSYS.  Some functions are actually named
     
    41992735choke me
    42002736#else
    4201 f = $ac_func;
     2737$ac_func();
    42022738#endif
    42032739
    4204   ;
    4205   return 0;
    4206 }
    4207 _ACEOF
    4208 rm -f conftest.$ac_objext conftest$ac_exeext
    4209 if { (eval echo "$as_me:4209: \"$ac_link\"") >&5
    4210   (eval $ac_link) 2>&5
    4211   ac_status=$?
    4212   echo "$as_me:4212: \$? = $ac_status" >&5
    4213   (exit $ac_status); } &&
    4214          { ac_try='test -s conftest$ac_exeext'
    4215   { (eval echo "$as_me:4215: \"$ac_try\"") >&5
    4216   (eval $ac_try) 2>&5
    4217   ac_status=$?
    4218   echo "$as_me:4218: \$? = $ac_status" >&5
    4219   (exit $ac_status); }; }; then
    4220   eval "$ac_ac_var=yes"
    4221 else
    4222   echo "$as_me: failed program was:" >&5
    4223 cat conftest.$ac_ext >&5
    4224 eval "$ac_ac_var=no"
    4225 fi
    4226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4227 fi
    4228 echo "$as_me:4228: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4229 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4230 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4231   cat >>confdefs.h <<EOF
    4232 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4233 EOF
    4234 
     2740; return 0; }
     2741EOF
     2742if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2743  rm -rf conftest*
     2744  eval "ac_cv_func_$ac_func=yes"
     2745else
     2746  echo "configure: failed program was:" >&5
     2747  cat conftest.$ac_ext >&5
     2748  rm -rf conftest*
     2749  eval "ac_cv_func_$ac_func=no"
     2750fi
     2751rm -f conftest*
     2752fi
     2753
     2754if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2755  echo "$ac_t""yes" 1>&6
     2756    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2757  cat >> confdefs.h <<EOF
     2758#define $ac_tr_func 1
     2759EOF
     2760 
     2761else
     2762  echo "$ac_t""no" 1>&6
     2763LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
    42352764fi
    42362765done
    42372766
    4238 for ac_func in ftruncate strstr strcasecmp
    4239 do
    4240 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4241 echo "$as_me:4241: checking for $ac_func" >&5
    4242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4243 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4244   echo $ECHO_N "(cached) $ECHO_C" >&6
    4245 else
    4246   cat >conftest.$ac_ext <<_ACEOF
    4247 #line 4247 "configure"
     2767
     2768
     2769
     2770echo $ac_n "checking for textdomain ""... $ac_c" 1>&6
     2771echo "configure:2772: checking for textdomain " >&5
     2772if eval "test \"`echo '$''{'ac_cv_func_textdomain '+set}'`\" = set"; then
     2773  echo $ac_n "(cached) $ac_c" 1>&6
     2774else
     2775  cat > conftest.$ac_ext <<EOF
     2776#line 2777 "configure"
    42482777#include "confdefs.h"
    42492778/* System header to define __stub macros and hopefully few prototypes,
    4250     which can conflict with char $ac_func (); below.  */
     2779    which can conflict with char textdomain (); below.  */
    42512780#include <assert.h>
    42522781/* Override any gcc2 internal prototype to avoid an error.  */
    4253 #ifdef __cplusplus
    4254 extern "C"
     2782/* We use char because int might match the return type of a gcc2
     2783    builtin and then its argument prototype would still apply.  */
     2784char textdomain ();
     2785
     2786int main() {
     2787
     2788/* The GNU C library defines this for functions which it implements
     2789    to always fail with ENOSYS.  Some functions are actually named
     2790    something starting with __ and the normal name is an alias.  */
     2791#if defined (__stub_textdomain ) || defined (__stub___textdomain )
     2792choke me
     2793#else
     2794textdomain ();
    42552795#endif
     2796
     2797; return 0; }
     2798EOF
     2799if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2800  rm -rf conftest*
     2801  eval "ac_cv_func_textdomain =yes"
     2802else
     2803  echo "configure: failed program was:" >&5
     2804  cat conftest.$ac_ext >&5
     2805  rm -rf conftest*
     2806  eval "ac_cv_func_textdomain =no"
     2807fi
     2808rm -f conftest*
     2809fi
     2810
     2811if eval "test \"`echo '$ac_cv_func_'textdomain `\" = yes"; then
     2812  echo "$ac_t""yes" 1>&6
     2813  cat >> confdefs.h <<\EOF
     2814#define ENABLE_NLS  1
     2815EOF
     2816 
     2817else
     2818  echo "$ac_t""no" 1>&6
     2819fi
     2820
     2821
     2822# *** Custom checking (based on GNU tar configure.in) ***
     2823# ---------------------------------------------------------------------------
     2824echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
     2825echo "configure:2826: checking for HP-UX needing gmalloc" >&5
     2826if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
     2827  echo "$ac_t""yes" 1>&6
     2828  LIBOBJS="$LIBOBJS gmalloc.o"
     2829  cat >> confdefs.h <<\EOF
     2830#define HAVE_VALLOC 1
     2831EOF
     2832
     2833else
     2834  echo "$ac_t""no" 1>&6
     2835  for ac_func in valloc
     2836do
     2837echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2838echo "configure:2839: checking for $ac_func" >&5
     2839if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2840  echo $ac_n "(cached) $ac_c" 1>&6
     2841else
     2842  cat > conftest.$ac_ext <<EOF
     2843#line 2844 "configure"
     2844#include "confdefs.h"
     2845/* System header to define __stub macros and hopefully few prototypes,
     2846    which can conflict with char $ac_func(); below.  */
     2847#include <assert.h>
     2848/* Override any gcc2 internal prototype to avoid an error.  */
    42562849/* We use char because int might match the return type of a gcc2
    4257    builtin and then its argument prototype would still apply.  */
    4258 char $ac_func ();
    4259 char (*f) ();
    4260 
    4261 int
    4262 main ()
    4263 {
     2850    builtin and then its argument prototype would still apply.  */
     2851char $ac_func();
     2852
     2853int main() {
     2854
    42642855/* The GNU C library defines this for functions which it implements
    42652856    to always fail with ENOSYS.  Some functions are actually named
     
    42682859choke me
    42692860#else
    4270 f = $ac_func;
     2861$ac_func();
    42712862#endif
    42722863
    4273   ;
    4274   return 0;
    4275 }
    4276 _ACEOF
    4277 rm -f conftest.$ac_objext conftest$ac_exeext
    4278 if { (eval echo "$as_me:4278: \"$ac_link\"") >&5
    4279   (eval $ac_link) 2>&5
    4280   ac_status=$?
    4281   echo "$as_me:4281: \$? = $ac_status" >&5
    4282   (exit $ac_status); } &&
    4283          { ac_try='test -s conftest$ac_exeext'
    4284   { (eval echo "$as_me:4284: \"$ac_try\"") >&5
    4285   (eval $ac_try) 2>&5
    4286   ac_status=$?
    4287   echo "$as_me:4287: \$? = $ac_status" >&5
    4288   (exit $ac_status); }; }; then
    4289   eval "$ac_ac_var=yes"
    4290 else
    4291   echo "$as_me: failed program was:" >&5
    4292 cat conftest.$ac_ext >&5
    4293 eval "$ac_ac_var=no"
    4294 fi
    4295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4296 fi
    4297 echo "$as_me:4297: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4298 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4299 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4300   cat >>confdefs.h <<EOF
    4301 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4302 EOF
    4303 
    4304 else
    4305   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
     2864; return 0; }
     2865EOF
     2866if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2867  rm -rf conftest*
     2868  eval "ac_cv_func_$ac_func=yes"
     2869else
     2870  echo "configure: failed program was:" >&5
     2871  cat conftest.$ac_ext >&5
     2872  rm -rf conftest*
     2873  eval "ac_cv_func_$ac_func=no"
     2874fi
     2875rm -f conftest*
     2876fi
     2877
     2878if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2879  echo "$ac_t""yes" 1>&6
     2880    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2881  cat >> confdefs.h <<EOF
     2882#define $ac_tr_func 1
     2883EOF
     2884 
     2885else
     2886  echo "$ac_t""no" 1>&6
    43062887fi
    43072888done
    43082889
    4309 # *** Custom checking (based on GNU tar configure.in) ***
    4310 # ---------------------------------------------------------------------------
    4311 echo "$as_me:4311: checking for HP-UX needing gmalloc" >&5
    4312 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    4313 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    4314   echo "$as_me:4314: result: yes" >&5
    4315 echo "${ECHO_T}yes" >&6
    4316   LIBOBJS="$LIBOBJS gmalloc.o"
    4317   cat >>confdefs.h <<\EOF
    4318 #define HAVE_VALLOC 1
    4319 EOF
    4320 
    4321 else
    4322   echo "$as_me:4322: result: no" >&5
    4323 echo "${ECHO_T}no" >&6
    4324 
    4325 for ac_func in valloc
    4326 do
    4327 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4328 echo "$as_me:4328: checking for $ac_func" >&5
    4329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4330 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4331   echo $ECHO_N "(cached) $ECHO_C" >&6
    4332 else
    4333   cat >conftest.$ac_ext <<_ACEOF
    4334 #line 4334 "configure"
    4335 #include "confdefs.h"
    4336 /* System header to define __stub macros and hopefully few prototypes,
    4337     which can conflict with char $ac_func (); below.  */
    4338 #include <assert.h>
    4339 /* Override any gcc2 internal prototype to avoid an error.  */
    4340 #ifdef __cplusplus
    4341 extern "C"
    4342 #endif
    4343 /* We use char because int might match the return type of a gcc2
    4344    builtin and then its argument prototype would still apply.  */
    4345 char $ac_func ();
    4346 char (*f) ();
    4347 
    4348 int
    4349 main ()
    4350 {
    4351 /* The GNU C library defines this for functions which it implements
    4352     to always fail with ENOSYS.  Some functions are actually named
    4353     something starting with __ and the normal name is an alias.  */
    4354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    4355 choke me
    4356 #else
    4357 f = $ac_func;
    4358 #endif
    4359 
    4360   ;
    4361   return 0;
    4362 }
    4363 _ACEOF
    4364 rm -f conftest.$ac_objext conftest$ac_exeext
    4365 if { (eval echo "$as_me:4365: \"$ac_link\"") >&5
    4366   (eval $ac_link) 2>&5
    4367   ac_status=$?
    4368   echo "$as_me:4368: \$? = $ac_status" >&5
    4369   (exit $ac_status); } &&
    4370          { ac_try='test -s conftest$ac_exeext'
    4371   { (eval echo "$as_me:4371: \"$ac_try\"") >&5
    4372   (eval $ac_try) 2>&5
    4373   ac_status=$?
    4374   echo "$as_me:4374: \$? = $ac_status" >&5
    4375   (exit $ac_status); }; }; then
    4376   eval "$ac_ac_var=yes"
    4377 else
    4378   echo "$as_me: failed program was:" >&5
    4379 cat conftest.$ac_ext >&5
    4380 eval "$ac_ac_var=no"
    4381 fi
    4382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4383 fi
    4384 echo "$as_me:4384: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4385 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4386 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4387   cat >>confdefs.h <<EOF
    4388 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4389 EOF
    4390 
    4391 fi
    4392 done
    4393 
    4394 fi
    4395 
    4396 echo "$as_me:4396: checking if malloc debugging is wanted" >&5
    4397 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    4398 
     2890fi
     2891
     2892echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
     2893echo "configure:2894: checking if malloc debugging is wanted" >&5
    43992894# Check whether --with-dmalloc or --without-dmalloc was given.
    44002895if test "${with_dmalloc+set}" = set; then
    44012896  withval="$with_dmalloc"
    44022897  if test "$withval" = yes; then
    4403   echo "$as_me:4403: result: yes" >&5
    4404 echo "${ECHO_T}yes" >&6
    4405   cat >>confdefs.h <<\EOF
     2898  echo "$ac_t""yes" 1>&6
     2899  cat >> confdefs.h <<\EOF
    44062900#define WITH_DMALLOC 1
    44072901EOF
     
    44102904  LDFLAGS="$LDFLAGS -g"
    44112905else
    4412   echo "$as_me:4412: result: no" >&5
    4413 echo "${ECHO_T}no" >&6
    4414 fi
    4415 else
    4416   echo "$as_me:4416: result: no" >&5
    4417 echo "${ECHO_T}no" >&6
    4418 fi;
    4419 
    4420 echo "$as_me:4420: checking which of rx or regex is wanted" >&5
    4421 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    4422 
     2906  echo "$ac_t""no" 1>&6
     2907fi
     2908else
     2909  echo "$ac_t""no" 1>&6
     2910fi
     2911
     2912
     2913echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
     2914echo "configure:2915: checking which of rx or regex is wanted" >&5
    44232915# Check whether --with-regex or --without-regex was given.
    44242916if test "${with_regex+set}" = set; then
     
    44262918  if test "$withval" = yes; then
    44272919  ac_with_regex=1
    4428   echo "$as_me:4428: result: regex" >&5
    4429 echo "${ECHO_T}regex" >&6
    4430   cat >>confdefs.h <<\EOF
     2920  echo "$ac_t""regex" 1>&6
     2921  cat >> confdefs.h <<\EOF
    44312922#define WITH_REGEX 1
    44322923EOF
     
    44342925  LIBOBJS="$LIBOBJS regex.o"
    44352926fi
    4436 fi;
     2927fi
     2928
    44372929if test -z "$ac_with_regex"; then
    4438   echo "$as_me:4438: result: rx" >&5
    4439 echo "${ECHO_T}rx" >&6
    4440   echo "$as_me:4440: checking for re_rx_search" >&5
    4441 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    4442 if test "${ac_cv_func_re_rx_search+set}" = set; then
    4443   echo $ECHO_N "(cached) $ECHO_C" >&6
    4444 else
    4445   cat >conftest.$ac_ext <<_ACEOF
    4446 #line 4446 "configure"
     2930  echo "$ac_t""rx" 1>&6
     2931  echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
     2932echo "configure:2933: checking for re_rx_search" >&5
     2933if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
     2934  echo $ac_n "(cached) $ac_c" 1>&6
     2935else
     2936  cat > conftest.$ac_ext <<EOF
     2937#line 2938 "configure"
    44472938#include "confdefs.h"
    44482939/* System header to define __stub macros and hopefully few prototypes,
    4449     which can conflict with char re_rx_search (); below.  */
     2940    which can conflict with char re_rx_search(); below.  */
    44502941#include <assert.h>
    44512942/* Override any gcc2 internal prototype to avoid an error.  */
    4452 #ifdef __cplusplus
    4453 extern "C"
    4454 #endif
    44552943/* We use char because int might match the return type of a gcc2
    4456    builtin and then its argument prototype would still apply.  */
    4457 char re_rx_search ();
    4458 char (*f) ();
    4459 
    4460 int
    4461 main ()
    4462 {
     2944    builtin and then its argument prototype would still apply.  */
     2945char re_rx_search();
     2946
     2947int main() {
     2948
    44632949/* The GNU C library defines this for functions which it implements
    44642950    to always fail with ENOSYS.  Some functions are actually named
     
    44672953choke me
    44682954#else
    4469 f = re_rx_search;
     2955re_rx_search();
    44702956#endif
    44712957
    4472   ;
    4473   return 0;
     2958; return 0; }
     2959EOF
     2960if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2961  rm -rf conftest*
     2962  eval "ac_cv_func_re_rx_search=yes"
     2963else
     2964  echo "configure: failed program was:" >&5
     2965  cat conftest.$ac_ext >&5
     2966  rm -rf conftest*
     2967  eval "ac_cv_func_re_rx_search=no"
     2968fi
     2969rm -f conftest*
     2970fi
     2971
     2972if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
     2973  echo "$ac_t""yes" 1>&6
     2974  :
     2975else
     2976  echo "$ac_t""no" 1>&6
     2977echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6
     2978echo "configure:2979: checking size of unsigned char *" >&5
     2979if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then
     2980  echo $ac_n "(cached) $ac_c" 1>&6
     2981else
     2982  if test "$cross_compiling" = yes; then
     2983  ac_cv_sizeof_unsigned_char_p=unsigned char *
     2984else
     2985  cat > conftest.$ac_ext <<EOF
     2986#line 2987 "configure"
     2987#include "confdefs.h"
     2988#include <stdio.h>
     2989main()
     2990{
     2991  FILE *f=fopen("conftestval", "w");
     2992  if (!f) exit(1);
     2993  fprintf(f, "%d\n", sizeof(unsigned char *));
     2994  exit(0);
    44742995}
    4475 _ACEOF
    4476 rm -f conftest.$ac_objext conftest$ac_exeext
    4477 if { (eval echo "$as_me:4477: \"$ac_link\"") >&5
    4478   (eval $ac_link) 2>&5
    4479   ac_status=$?
    4480   echo "$as_me:4480: \$? = $ac_status" >&5
    4481   (exit $ac_status); } &&
    4482          { ac_try='test -s conftest$ac_exeext'
    4483   { (eval echo "$as_me:4483: \"$ac_try\"") >&5
    4484   (eval $ac_try) 2>&5
    4485   ac_status=$?
    4486   echo "$as_me:4486: \$? = $ac_status" >&5
    4487   (exit $ac_status); }; }; then
    4488   ac_cv_func_re_rx_search=yes
    4489 else
    4490   echo "$as_me: failed program was:" >&5
    4491 cat conftest.$ac_ext >&5
    4492 ac_cv_func_re_rx_search=no
    4493 fi
    4494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4495 fi
    4496 echo "$as_me:4496: result: $ac_cv_func_re_rx_search" >&5
    4497 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    4498 if test $ac_cv_func_re_rx_search = yes; then
    4499   :
    4500 else
    4501   echo "$as_me:4501: checking for unsigned char *" >&5
    4502 echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
    4503 if test "${ac_cv_type_unsigned_char_p+set}" = set; then
    4504   echo $ECHO_N "(cached) $ECHO_C" >&6
    4505 else
    4506   cat >conftest.$ac_ext <<_ACEOF
    4507 #line 4507 "configure"
    4508 #include "confdefs.h"
    4509 $ac_includes_default
    4510 int
    4511 main ()
    4512 {
    4513 if ((unsigned char * *) 0)
    4514   return 0;
    4515 if (sizeof (unsigned char *))
    4516   return 0;
    4517   ;
    4518   return 0;
    4519 }
    4520 _ACEOF
    4521 rm -f conftest.$ac_objext
    4522 if { (eval echo "$as_me:4522: \"$ac_compile\"") >&5
    4523   (eval $ac_compile) 2>&5
    4524   ac_status=$?
    4525   echo "$as_me:4525: \$? = $ac_status" >&5
    4526   (exit $ac_status); } &&
    4527          { ac_try='test -s conftest.$ac_objext'
    4528   { (eval echo "$as_me:4528: \"$ac_try\"") >&5
    4529   (eval $ac_try) 2>&5
    4530   ac_status=$?
    4531   echo "$as_me:4531: \$? = $ac_status" >&5
    4532   (exit $ac_status); }; }; then
    4533   ac_cv_type_unsigned_char_p=yes
    4534 else
    4535   echo "$as_me: failed program was:" >&5
    4536 cat conftest.$ac_ext >&5
    4537 ac_cv_type_unsigned_char_p=no
    4538 fi
    4539 rm -f conftest.$ac_objext conftest.$ac_ext
    4540 fi
    4541 echo "$as_me:4541: result: $ac_cv_type_unsigned_char_p" >&5
    4542 echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
    4543 
    4544 echo "$as_me:4544: checking size of unsigned char *" >&5
    4545 echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
    4546 if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
    4547   echo $ECHO_N "(cached) $ECHO_C" >&6
    4548 else
    4549   if test "$ac_cv_type_unsigned_char_p" = yes; then
    4550   if test "$cross_compiling" = yes; then
    4551   # Depending upon the size, compute the lo and hi bounds.
    4552 cat >conftest.$ac_ext <<_ACEOF
    4553 #line 4553 "configure"
    4554 #include "confdefs.h"
    4555 $ac_includes_default
    4556 int
    4557 main ()
    4558 {
    4559 int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= 0)]
    4560   ;
    4561   return 0;
    4562 }
    4563 _ACEOF
    4564 rm -f conftest.$ac_objext
    4565 if { (eval echo "$as_me:4565: \"$ac_compile\"") >&5
    4566   (eval $ac_compile) 2>&5
    4567   ac_status=$?
    4568   echo "$as_me:4568: \$? = $ac_status" >&5
    4569   (exit $ac_status); } &&
    4570          { ac_try='test -s conftest.$ac_objext'
    4571   { (eval echo "$as_me:4571: \"$ac_try\"") >&5
    4572   (eval $ac_try) 2>&5
    4573   ac_status=$?
    4574   echo "$as_me:4574: \$? = $ac_status" >&5
    4575   (exit $ac_status); }; }; then
    4576   ac_lo=0 ac_mid=0
    4577   while :; do
    4578     cat >conftest.$ac_ext <<_ACEOF
    4579 #line 4579 "configure"
    4580 #include "confdefs.h"
    4581 $ac_includes_default
    4582 int
    4583 main ()
    4584 {
    4585 int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
    4586   ;
    4587   return 0;
    4588 }
    4589 _ACEOF
    4590 rm -f conftest.$ac_objext
    4591 if { (eval echo "$as_me:4591: \"$ac_compile\"") >&5
    4592   (eval $ac_compile) 2>&5
    4593   ac_status=$?
    4594   echo "$as_me:4594: \$? = $ac_status" >&5
    4595   (exit $ac_status); } &&
    4596          { ac_try='test -s conftest.$ac_objext'
    4597   { (eval echo "$as_me:4597: \"$ac_try\"") >&5
    4598   (eval $ac_try) 2>&5
    4599   ac_status=$?
    4600   echo "$as_me:4600: \$? = $ac_status" >&5
    4601   (exit $ac_status); }; }; then
    4602   ac_hi=$ac_mid; break
    4603 else
    4604   echo "$as_me: failed program was:" >&5
    4605 cat conftest.$ac_ext >&5
    4606 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
    4607 fi
    4608 rm -f conftest.$ac_objext conftest.$ac_ext
    4609   done
    4610 else
    4611   echo "$as_me: failed program was:" >&5
    4612 cat conftest.$ac_ext >&5
    4613 ac_hi=-1 ac_mid=-1
    4614   while :; do
    4615     cat >conftest.$ac_ext <<_ACEOF
    4616 #line 4616 "configure"
    4617 #include "confdefs.h"
    4618 $ac_includes_default
    4619 int
    4620 main ()
    4621 {
    4622 int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= $ac_mid)]
    4623   ;
    4624   return 0;
    4625 }
    4626 _ACEOF
    4627 rm -f conftest.$ac_objext
    4628 if { (eval echo "$as_me:4628: \"$ac_compile\"") >&5
    4629   (eval $ac_compile) 2>&5
    4630   ac_status=$?
    4631   echo "$as_me:4631: \$? = $ac_status" >&5
    4632   (exit $ac_status); } &&
    4633          { ac_try='test -s conftest.$ac_objext'
    4634   { (eval echo "$as_me:4634: \"$ac_try\"") >&5
    4635   (eval $ac_try) 2>&5
    4636   ac_status=$?
    4637   echo "$as_me:4637: \$? = $ac_status" >&5
    4638   (exit $ac_status); }; }; then
    4639   ac_lo=$ac_mid; break
    4640 else
    4641   echo "$as_me: failed program was:" >&5
    4642 cat conftest.$ac_ext >&5
    4643 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
    4644 fi
    4645 rm -f conftest.$ac_objext conftest.$ac_ext
    4646   done
    4647 fi
    4648 rm -f conftest.$ac_objext conftest.$ac_ext
    4649 # Binary search between lo and hi bounds.
    4650 while test "x$ac_lo" != "x$ac_hi"; do
    4651   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    4652   cat >conftest.$ac_ext <<_ACEOF
    4653 #line 4653 "configure"
    4654 #include "confdefs.h"
    4655 $ac_includes_default
    4656 int
    4657 main ()
    4658 {
    4659 int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
    4660   ;
    4661   return 0;
    4662 }
    4663 _ACEOF
    4664 rm -f conftest.$ac_objext
    4665 if { (eval echo "$as_me:4665: \"$ac_compile\"") >&5
    4666   (eval $ac_compile) 2>&5
    4667   ac_status=$?
    4668   echo "$as_me:4668: \$? = $ac_status" >&5
    4669   (exit $ac_status); } &&
    4670          { ac_try='test -s conftest.$ac_objext'
    4671   { (eval echo "$as_me:4671: \"$ac_try\"") >&5
    4672   (eval $ac_try) 2>&5
    4673   ac_status=$?
    4674   echo "$as_me:4674: \$? = $ac_status" >&5
    4675   (exit $ac_status); }; }; then
    4676   ac_hi=$ac_mid
    4677 else
    4678   echo "$as_me: failed program was:" >&5
    4679 cat conftest.$ac_ext >&5
    4680 ac_lo=`expr $ac_mid + 1`
    4681 fi
    4682 rm -f conftest.$ac_objext conftest.$ac_ext
    4683 done
    4684 ac_cv_sizeof_unsigned_char_p=$ac_lo
    4685 else
    4686   if test "$cross_compiling" = yes; then
    4687   { { echo "$as_me:4687: error: cannot run test program while cross compiling" >&5
    4688 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
    4689    { (exit 1); exit 1; }; }
    4690 else
    4691   cat >conftest.$ac_ext <<_ACEOF
    4692 #line 4692 "configure"
    4693 #include "confdefs.h"
    4694 $ac_includes_default
    4695 int
    4696 main ()
    4697 {
    4698 FILE *f = fopen ("conftest.val", "w");
    4699 if (!f)
    4700   exit (1);
    4701 fprintf (f, "%d", (sizeof (unsigned char *)));
    4702 fclose (f);
    4703   ;
    4704   return 0;
    4705 }
    4706 _ACEOF
    4707 rm -f conftest$ac_exeext
    4708 if { (eval echo "$as_me:4708: \"$ac_link\"") >&5
    4709   (eval $ac_link) 2>&5
    4710   ac_status=$?
    4711   echo "$as_me:4711: \$? = $ac_status" >&5
    4712   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    4713   { (eval echo "$as_me:4713: \"$ac_try\"") >&5
    4714   (eval $ac_try) 2>&5
    4715   ac_status=$?
    4716   echo "$as_me:4716: \$? = $ac_status" >&5
    4717   (exit $ac_status); }; }; then
    4718   ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
    4719 else
    4720   echo "$as_me: program exited with status $ac_status" >&5
    4721 echo "$as_me: failed program was:" >&5
    4722 cat conftest.$ac_ext >&5
    4723 fi
    4724 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    4725 fi
    4726 fi
    4727 rm -f conftest.val
    4728 else
     2996EOF
     2997if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2998then
     2999  ac_cv_sizeof_unsigned_char_p=`cat conftestval`
     3000else
     3001  echo "configure: failed program was:" >&5
     3002  cat conftest.$ac_ext >&5
     3003  rm -fr conftest*
    47293004  ac_cv_sizeof_unsigned_char_p=0
    47303005fi
    4731 fi
    4732 echo "$as_me:4732: result: $ac_cv_sizeof_unsigned_char_p" >&5
    4733 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
    4734 cat >>confdefs.h <<EOF
     3006rm -fr conftest*
     3007fi
     3008
     3009fi
     3010echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6
     3011cat >> confdefs.h <<EOF
    47353012#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
    47363013EOF
    47373014
     3015 
    47383016    if test "$ac_cv_sizeof_unsigned_char_p" = 8
    47393017    then
    4740       { echo "$as_me:4740: WARNING: I'm forcing you to use regex because I can't
    4741         find a local rx library and the one included with this
    4742         distribution doesn't work on 64-bit machines like yours" >&5
    4743 echo "$as_me: WARNING: I'm forcing you to use regex because I can't
    4744         find a local rx library and the one included with this
    4745         distribution doesn't work on 64-bit machines like yours" >&2;}
     3018      echo "configure: warning: I'm forcing you to use regex because I can't
     3019        find a local rx library and the one included with this
     3020        distribution doesn't work on 64-bit machines like yours" 1>&2
    47463021      LIBOBJS="$LIBOBJS regex.o"
    47473022    else
    47483023      LIBOBJS="$LIBOBJS rx.o"
    47493024    fi
    4750 
    4751 fi
    4752 
    4753 fi
    4754 
    4755 echo "$as_me:4755: checking whether GNU readline requested" >&5
    4756 echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
    4757 
    4758 # Check whether --with-gnu_readline or --without-gnu_readline was given.
     3025 
     3026fi
     3027
     3028fi
     3029
     3030echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6
     3031echo "configure:3032: checking whether GNU readline requested" >&5
     3032  # Check whether --with-gnu_readline or --without-gnu_readline was given.
    47593033if test "${with_gnu_readline+set}" = set; then
    47603034  withval="$with_gnu_readline"
    47613035  if test "$withval" = yes; then
    4762       echo "$as_me:4762: result: yes" >&5
    4763 echo "${ECHO_T}yes" >&6
     3036      echo "$ac_t""yes" 1>&6
    47643037      ac_with_gnu_readline=1
    47653038    else
    4766       echo "$as_me:4766: result: no" >&5
    4767 echo "${ECHO_T}no" >&6
     3039      echo "$ac_t""no" 1>&6
    47683040    fi
    47693041else
    4770   echo "$as_me:4770: result: no" >&5
    4771 echo "${ECHO_T}no" >&6
    4772 fi;
     3042  echo "$ac_t""no" 1>&6
     3043fi
     3044
    47733045
    47743046  if test -n "$ac_with_gnu_readline"; then
    4775     echo "$as_me:4775: checking for readline/readline.h" >&5
    4776 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
    4777 if test "${ac_cv_header_readline_readline_h+set}" = set; then
    4778   echo $ECHO_N "(cached) $ECHO_C" >&6
    4779 else
    4780   cat >conftest.$ac_ext <<_ACEOF
    4781 #line 4781 "configure"
     3047    ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
     3048echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
     3049echo "configure:3050: checking for readline/readline.h" >&5
     3050if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     3051  echo $ac_n "(cached) $ac_c" 1>&6
     3052else
     3053  cat > conftest.$ac_ext <<EOF
     3054#line 3055 "configure"
    47823055#include "confdefs.h"
    47833056#include <readline/readline.h>
    4784 _ACEOF
    4785 if { (eval echo "$as_me:4785: \"$ac_cpp conftest.$ac_ext\"") >&5
    4786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4787   ac_status=$?
    4788   egrep -v '^ *\+' conftest.er1 >conftest.err
    4789   rm -f conftest.er1
    4790   cat conftest.err >&5
    4791   echo "$as_me:4791: \$? = $ac_status" >&5
    4792   (exit $ac_status); } >/dev/null; then
    4793   if test -s conftest.err; then
    4794     ac_cpp_err=$ac_c_preproc_warn_flag
    4795   else
    4796     ac_cpp_err=
    4797   fi
    4798 else
    4799   ac_cpp_err=yes
    4800 fi
    4801 if test -z "$ac_cpp_err"; then
    4802   ac_cv_header_readline_readline_h=yes
    4803 else
    4804   echo "$as_me: failed program was:" >&5
    4805   cat conftest.$ac_ext >&5
    4806   ac_cv_header_readline_readline_h=no
    4807 fi
    4808 rm -f conftest.err conftest.$ac_ext
    4809 fi
    4810 echo "$as_me:4810: result: $ac_cv_header_readline_readline_h" >&5
    4811 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
    4812 if test $ac_cv_header_readline_readline_h = yes; then
     3057EOF
     3058ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     3059{ (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3060ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     3061if test -z "$ac_err"; then
     3062  rm -rf conftest*
     3063  eval "ac_cv_header_$ac_safe=yes"
     3064else
     3065  echo "$ac_err" >&5
     3066  echo "configure: failed program was:" >&5
     3067  cat conftest.$ac_ext >&5
     3068  rm -rf conftest*
     3069  eval "ac_cv_header_$ac_safe=no"
     3070fi
     3071rm -f conftest*
     3072fi
     3073if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     3074  echo "$ac_t""yes" 1>&6
    48133075  ac_mg_readline_header_found=1
    48143076else
    4815   { echo "$as_me:4815: WARNING: Can't find GNU readline headers; configuring without \
    4816 GNU readline support" >&5
    4817 echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
    4818 GNU readline support" >&2;}
     3077  echo "$ac_t""no" 1>&6
     3078echo "configure: warning: Can't find GNU readline headers; configuring without \
     3079GNU readline support" 1>&2
    48193080fi
    48203081
    48213082    if test -n "$ac_mg_readline_header_found"; then
    48223083      # first check whether we can find the readline library itself
    4823       echo "$as_me:4823: checking for main in -lreadline" >&5
    4824 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
    4825 if test "${ac_cv_lib_readline_main+set}" = set; then
    4826   echo $ECHO_N "(cached) $ECHO_C" >&6
    4827 else
    4828   ac_check_lib_save_LIBS=$LIBS
     3084      echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
     3085echo "configure:3086: checking for main in -lreadline" >&5
     3086ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
     3087if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     3088  echo $ac_n "(cached) $ac_c" 1>&6
     3089else
     3090  ac_save_LIBS="$LIBS"
    48293091LIBS="-lreadline  $LIBS"
    4830 cat >conftest.$ac_ext <<_ACEOF
    4831 #line 4831 "configure"
    4832 #include "confdefs.h"
    4833 
    4834 int
    4835 main ()
    4836 {
    4837 main ();
    4838   ;
    4839   return 0;
    4840 }
    4841 _ACEOF
    4842 rm -f conftest.$ac_objext conftest$ac_exeext
    4843 if { (eval echo "$as_me:4843: \"$ac_link\"") >&5
    4844   (eval $ac_link) 2>&5
    4845   ac_status=$?
    4846   echo "$as_me:4846: \$? = $ac_status" >&5
    4847   (exit $ac_status); } &&
    4848          { ac_try='test -s conftest$ac_exeext'
    4849   { (eval echo "$as_me:4849: \"$ac_try\"") >&5
    4850   (eval $ac_try) 2>&5
    4851   ac_status=$?
    4852   echo "$as_me:4852: \$? = $ac_status" >&5
    4853   (exit $ac_status); }; }; then
    4854   ac_cv_lib_readline_main=yes
    4855 else
    4856   echo "$as_me: failed program was:" >&5
    4857 cat conftest.$ac_ext >&5
    4858 ac_cv_lib_readline_main=no
    4859 fi
    4860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4861 LIBS=$ac_check_lib_save_LIBS
    4862 fi
    4863 echo "$as_me:4863: result: $ac_cv_lib_readline_main" >&5
    4864 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
    4865 if test $ac_cv_lib_readline_main = yes; then
     3092cat > conftest.$ac_ext <<EOF
     3093#line 3094 "configure"
     3094#include "confdefs.h"
     3095
     3096int main() {
     3097main()
     3098; return 0; }
     3099EOF
     3100if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3101  rm -rf conftest*
     3102  eval "ac_cv_lib_$ac_lib_var=yes"
     3103else
     3104  echo "configure: failed program was:" >&5
     3105  cat conftest.$ac_ext >&5
     3106  rm -rf conftest*
     3107  eval "ac_cv_lib_$ac_lib_var=no"
     3108fi
     3109rm -f conftest*
     3110LIBS="$ac_save_LIBS"
     3111
     3112fi
     3113if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     3114  echo "$ac_t""yes" 1>&6
    48663115  ac_mg_readline_lib_found=1
    4867          cat >>confdefs.h <<\EOF
     3116         cat >> confdefs.h <<\EOF
    48683117#define WITH_GNU_READLINE 1
    48693118EOF
     
    48713120         LIBS="$LIBS -lreadline"
    48723121else
    4873   { echo "$as_me:4873: WARNING: Can't find GNU readline library; configuring without \
    4874 GNU readline support" >&5
    4875 echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
    4876 GNU readline support" >&2;}
     3122  echo "$ac_t""no" 1>&6
     3123echo "configure: warning: Can't find GNU readline library; configuring without \
     3124GNU readline support" 1>&2
    48773125fi
    48783126
    48793127      if test -n "$ac_mg_readline_lib_found"; then
    4880         # on some systems, readline needs curses.  It is difficult to
     3128        # on some systems, readline needs curses.  It is difficult to 
    48813129        #  determine whether this is necessary on the current system,
    48823130        #  since other undefined symbols can be turned up by an
     
    48843132    #  by mg itself (e.g. xmalloc, xrealloc).  So, if we find libcurses,
    48853133    #  we just bung it on and hope for the best.
    4886     echo "$as_me:4886: checking for main in -lcurses" >&5
    4887 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
    4888 if test "${ac_cv_lib_curses_main+set}" = set; then
    4889   echo $ECHO_N "(cached) $ECHO_C" >&6
    4890 else
    4891   ac_check_lib_save_LIBS=$LIBS
     3134    echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
     3135echo "configure:3136: checking for main in -lcurses" >&5
     3136ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
     3137if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     3138  echo $ac_n "(cached) $ac_c" 1>&6
     3139else
     3140  ac_save_LIBS="$LIBS"
    48923141LIBS="-lcurses  $LIBS"
    4893 cat >conftest.$ac_ext <<_ACEOF
    4894 #line 4894 "configure"
    4895 #include "confdefs.h"
    4896 
    4897 int
    4898 main ()
    4899 {
    4900 main ();
    4901   ;
    4902   return 0;
    4903 }
    4904 _ACEOF
    4905 rm -f conftest.$ac_objext conftest$ac_exeext
    4906 if { (eval echo "$as_me:4906: \"$ac_link\"") >&5
    4907   (eval $ac_link) 2>&5
    4908   ac_status=$?
    4909   echo "$as_me:4909: \$? = $ac_status" >&5
    4910   (exit $ac_status); } &&
    4911          { ac_try='test -s conftest$ac_exeext'
    4912   { (eval echo "$as_me:4912: \"$ac_try\"") >&5
    4913   (eval $ac_try) 2>&5
    4914   ac_status=$?
    4915   echo "$as_me:4915: \$? = $ac_status" >&5
    4916   (exit $ac_status); }; }; then
    4917   ac_cv_lib_curses_main=yes
    4918 else
    4919   echo "$as_me: failed program was:" >&5
    4920 cat conftest.$ac_ext >&5
    4921 ac_cv_lib_curses_main=no
    4922 fi
    4923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4924 LIBS=$ac_check_lib_save_LIBS
    4925 fi
    4926 echo "$as_me:4926: result: $ac_cv_lib_curses_main" >&5
    4927 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
    4928 if test $ac_cv_lib_curses_main = yes; then
     3142cat > conftest.$ac_ext <<EOF
     3143#line 3144 "configure"
     3144#include "confdefs.h"
     3145
     3146int main() {
     3147main()
     3148; return 0; }
     3149EOF
     3150if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3151  rm -rf conftest*
     3152  eval "ac_cv_lib_$ac_lib_var=yes"
     3153else
     3154  echo "configure: failed program was:" >&5
     3155  cat conftest.$ac_ext >&5
     3156  rm -rf conftest*
     3157  eval "ac_cv_lib_$ac_lib_var=no"
     3158fi
     3159rm -f conftest*
     3160LIBS="$ac_save_LIBS"
     3161
     3162fi
     3163if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     3164  echo "$ac_t""yes" 1>&6
    49293165  LIBS="$LIBS -lcurses"
     3166else
     3167  echo "$ac_t""no" 1>&6
    49303168fi
    49313169
     
    49343172  fi
    49353173
     3174
    49363175# ---------------------------------------------------------------------------
    49373176if test "$ac_cv_func_alloca" = 'no'; then
    49383177  LIBOBJS="$LIBOBJS xmalloc.o error.o"
    49393178fi
     3179
    49403180
    49413181# ---------------------------------------------------------------------------
     
    49443184if test "${enable_override_longlong+set}" = set; then
    49453185  enableval="$enable_override_longlong"
    4946   cat >>confdefs.h <<\EOF
     3186  cat >> confdefs.h <<\EOF
    49473187#define DISABLE_LONG_LONG 1
    49483188EOF
    49493189
    4950 fi;
     3190fi
     3191
    49513192
    49523193# ---------------------------------------------------------------------------
    49533194
    4954 ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
    4955 ac_config_commands="$ac_config_commands default"
    4956 cat >confcache <<\_ACEOF
     3195trap '' 1 2 15
     3196cat > confcache <<\EOF
    49573197# This file is a shell script that caches the results of configure
    49583198# tests run on this system so they can be shared between configure
    4959 # scripts and configure runs, see configure's option --config-cache.
    4960 # It is not useful on other systems.  If it contains results you don't
    4961 # want to keep, you may remove or edit it.
     3199# scripts and configure runs.  It is not useful on other systems.
     3200# If it contains results you don't want to keep, you may remove or edit it.
    49623201#
    4963 # config.status only pays attention to the cache file if you give it
    4964 # the --recheck option to rerun configure.
     3202# By default, configure uses ./config.cache as the cache file,
     3203# creating it if it does not exist already.  You can give configure
     3204# the --cache-file=FILE option to use a different cache file; that is
     3205# what configure does when it calls configure scripts in
     3206# subdirectories, so they share the cache.
     3207# Giving --cache-file=/dev/null disables caching, for debugging configure.
     3208# config.status only pays attention to the cache file if you give it the
     3209# --recheck option to rerun configure.
    49653210#
    4966 # `ac_cv_env_foo' variables (set or unset) will be overriden when
    4967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
    4968 # following values.
    4969 
    4970 _ACEOF
    4971 
     3211EOF
    49723212# The following way of writing the cache mishandles newlines in values,
    49733213# but we know of no workaround that is simple, portable, and efficient.
     
    49753215# Ultrix sh set writes to stderr and can't be redirected directly,
    49763216# and sets the high bit in the cache file unless we assign to the vars.
    4977 {
    4978   (set) 2>&1 |
    4979     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    4980     *ac_space=\ *)
    4981       # `set' does not quote correctly, so add quotes (double-quote
    4982       # substitution turns \\\\ into \\, and sed turns \\ into \).
    4983       sed -n \
    4984         "s/'/'\\\\''/g;
    4985           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    4986       ;;
    4987     *)
    4988       # `set' quotes correctly as required by POSIX, so do not add quotes.
    4989       sed -n \
    4990         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    4991       ;;
    4992     esac;
    4993 } |
    4994   sed '
    4995      t clear
    4996      : clear
    4997      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    4998      t end
    4999      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    5000      : end' >>confcache
    5001 if cmp -s $cache_file confcache; then :; else
     3217(set) 2>&1 |
     3218  case `(ac_space=' '; set | grep ac_space) 2>&1` in
     3219  *ac_space=\ *)
     3220    # `set' does not quote correctly, so add quotes (double-quote substitution
     3221    # turns \\\\ into \\, and sed turns \\ into \).
     3222    sed -n \
     3223      -e "s/'/'\\\\''/g" \
     3224      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
     3225    ;;
     3226  *)
     3227    # `set' quotes correctly as required by POSIX, so do not add quotes.
     3228    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
     3229    ;;
     3230  esac >> confcache
     3231if cmp -s $cache_file confcache; then
     3232  :
     3233else
    50023234  if test -w $cache_file; then
    5003     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    5004     cat confcache >$cache_file
     3235    echo "updating cache $cache_file"
     3236    cat confcache > $cache_file
    50053237  else
    50063238    echo "not updating unwritable cache $cache_file"
     
    50093241rm -f confcache
    50103242
     3243trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     3244
    50113245test "x$prefix" = xNONE && prefix=$ac_default_prefix
    50123246# Let make expand exec_prefix.
    50133247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    50143248
    5015 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    5016 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    5017 # trailing colons and then remove the whole line if VPATH becomes empty
    5018 # (actually we leave an empty line to preserve line numbers).
     3249# Any assignment to VPATH causes Sun make to only execute
     3250# the first set of double-colon rules, so remove it if not needed.
     3251# If there is a colon in the path, we need to keep it.
    50193252if test "x$srcdir" = x.; then
    5020   ac_vpsub='/^[     ]*VPATH[    ]*=/{
    5021 s/:*\$(srcdir):*/:/;
    5022 s/:*\${srcdir}:*/:/;
    5023 s/:*@srcdir@:*/:/;
    5024 s/^\([^=]*=[    ]*\):*/\1/;
    5025 s/:*$//;
    5026 s/^[^=]*=[  ]*$//;
    5027 }'
    5028 fi
     3253  ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
     3254fi
     3255
     3256trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
    50293257
    50303258DEFS=-DHAVE_CONFIG_H
    50313259
     3260# Without the "./", some shells look in PATH for config.status.
    50323261: ${CONFIG_STATUS=./config.status}
    5033 ac_clean_files_save=$ac_clean_files
    5034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    5035 { echo "$as_me:5035: creating $CONFIG_STATUS" >&5
    5036 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    5037 cat >$CONFIG_STATUS <<_ACEOF
    5038 #! $SHELL
     3262
     3263echo creating $CONFIG_STATUS
     3264rm -f $CONFIG_STATUS
     3265cat > $CONFIG_STATUS <<EOF
     3266#! /bin/sh
    50393267# Generated automatically by configure.
    50403268# Run this file to recreate the current configuration.
     3269# This directory was configured as follows,
     3270# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     3271#
     3272# $0 $ac_configure_args
     3273#
    50413274# Compiler output produced by configure, useful for debugging
    5042 # configure, is in config.log if it exists.
    5043 
    5044 debug=false
    5045 SHELL=\${CONFIG_SHELL-$SHELL}
    5046 ac_cs_invocation="\$0 \$@"
    5047 
    5048 _ACEOF
    5049 
    5050 cat >>$CONFIG_STATUS <<\_ACEOF
    5051 # Be Bourne compatible
    5052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    5053   emulate sh
    5054   NULLCMD=:
    5055 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    5056   set -o posix
    5057 fi
    5058 
    5059 # Name of the executable.
    5060 as_me=`echo "$0" |sed 's,.*[\\/],,'`
    5061 
    5062 if expr a : '\(a\)' >/dev/null 2>&1; then
    5063   as_expr=expr
    5064 else
    5065   as_expr=false
    5066 fi
    5067 
    5068 rm -f conf$$ conf$$.exe conf$$.file
    5069 echo >conf$$.file
    5070 if ln -s conf$$.file conf$$ 2>/dev/null; then
    5071   # We could just check for DJGPP; but this test a) works b) is more generic
    5072   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    5073   if test -f conf$$.exe; then
    5074     # Don't use ln at all; we don't have any links
    5075     as_ln_s='cp -p'
     3275# configure, is in ./config.log if it exists.
     3276
     3277ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
     3278for ac_option
     3279do
     3280  case "\$ac_option" in
     3281  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     3282    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
     3283    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
     3284  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
     3285    echo "$CONFIG_STATUS generated by autoconf version 2.13"
     3286    exit 0 ;;
     3287  -help | --help | --hel | --he | --h)
     3288    echo "\$ac_cs_usage"; exit 0 ;;
     3289  *) echo "\$ac_cs_usage"; exit 1 ;;
     3290  esac
     3291done
     3292
     3293ac_given_srcdir=$srcdir
     3294ac_given_INSTALL="$INSTALL"
     3295
     3296trap 'rm -fr `echo "Makefile text/Makefile lib/Makefile
     3297   jni/Makefile java/org/greenstone/mgpp/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     3298EOF
     3299cat >> $CONFIG_STATUS <<EOF
     3300
     3301# Protect against being on the right side of a sed subst in config.status.
     3302sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
     3303 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
     3304$ac_vpsub
     3305$extrasub
     3306s%@SHELL@%$SHELL%g
     3307s%@CFLAGS@%$CFLAGS%g
     3308s%@CPPFLAGS@%$CPPFLAGS%g
     3309s%@CXXFLAGS@%$CXXFLAGS%g
     3310s%@FFLAGS@%$FFLAGS%g
     3311s%@DEFS@%$DEFS%g
     3312s%@LDFLAGS@%$LDFLAGS%g
     3313s%@LIBS@%$LIBS%g
     3314s%@exec_prefix@%$exec_prefix%g
     3315s%@prefix@%$prefix%g
     3316s%@program_transform_name@%$program_transform_name%g
     3317s%@bindir@%$bindir%g
     3318s%@sbindir@%$sbindir%g
     3319s%@libexecdir@%$libexecdir%g
     3320s%@datadir@%$datadir%g
     3321s%@sysconfdir@%$sysconfdir%g
     3322s%@sharedstatedir@%$sharedstatedir%g
     3323s%@localstatedir@%$localstatedir%g
     3324s%@libdir@%$libdir%g
     3325s%@includedir@%$includedir%g
     3326s%@oldincludedir@%$oldincludedir%g
     3327s%@infodir@%$infodir%g
     3328s%@mandir@%$mandir%g
     3329s%@PACKAGE@%$PACKAGE%g
     3330s%@VERSION@%$VERSION%g
     3331s%@CXX@%$CXX%g
     3332s%@AWK@%$AWK%g
     3333s%@YACC@%$YACC%g
     3334s%@CC@%$CC%g
     3335s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     3336s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     3337s%@INSTALL_DATA@%$INSTALL_DATA%g
     3338s%@LN_S@%$LN_S%g
     3339s%@SET_MAKE@%$SET_MAKE%g
     3340s%@RANLIB@%$RANLIB%g
     3341s%@CPP@%$CPP%g
     3342s%@U@%$U%g
     3343s%@ANSI2KNR@%$ANSI2KNR%g
     3344s%@ALLOCA@%$ALLOCA%g
     3345s%@LIBOBJS@%$LIBOBJS%g
     3346
     3347CEOF
     3348EOF
     3349
     3350cat >> $CONFIG_STATUS <<\EOF
     3351
     3352# Split the substitutions into bite-sized pieces for seds with
     3353# small command number limits, like on Digital OSF/1 and HP-UX.
     3354ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
     3355ac_file=1 # Number of current file.
     3356ac_beg=1 # First line for current file.
     3357ac_end=$ac_max_sed_cmds # Line after last line for current file.
     3358ac_more_lines=:
     3359ac_sed_cmds=""
     3360while $ac_more_lines; do
     3361  if test $ac_beg -gt 1; then
     3362    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    50763363  else
    5077     as_ln_s='ln -s'
     3364    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    50783365  fi
    5079 elif ln conf$$.file conf$$ 2>/dev/null; then
    5080   as_ln_s=ln
    5081 else
    5082   as_ln_s='cp -p'
    5083 fi
    5084 rm -f conf$$ conf$$.exe conf$$.file
    5085 
    5086 as_executable_p="test -f"
    5087 
    5088 # Support unset when possible.
    5089 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    5090   as_unset=unset
    5091 else
    5092   as_unset=false
    5093 fi
    5094 
    5095 # NLS nuisances.
    5096 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    5097 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    5098 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    5099 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    5100 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    5101 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    5102 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    5103 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
    5104 
    5105 # IFS
    5106 # We need space, tab and new line, in precisely that order.
    5107 as_nl='
    5108 '
    5109 IFS="   $as_nl"
    5110 
    5111 # CDPATH.
    5112 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
    5113 
    5114 exec 6>&1
    5115 
    5116 _ACEOF
    5117 
    5118 # Files that config.status was made for.
    5119 if test -n "$ac_config_files"; then
    5120   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    5121 fi
    5122 
    5123 if test -n "$ac_config_headers"; then
    5124   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    5125 fi
    5126 
    5127 if test -n "$ac_config_links"; then
    5128   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    5129 fi
    5130 
    5131 if test -n "$ac_config_commands"; then
    5132   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    5133 fi
    5134 
    5135 cat >>$CONFIG_STATUS <<\EOF
    5136 
    5137 ac_cs_usage="\
    5138 \`$as_me' instantiates files from templates according to the
    5139 current configuration.
    5140 
    5141 Usage: $0 [OPTIONS] [FILE]...
    5142 
    5143   -h, --help       print this help, then exit
    5144   -V, --version    print version number, then exit
    5145   -d, --debug      don't remove temporary files
    5146       --recheck    update $as_me by reconfiguring in the same conditions
    5147   --file=FILE[:TEMPLATE]
    5148                    instantiate the configuration file FILE
    5149   --header=FILE[:TEMPLATE]
    5150                    instantiate the configuration header FILE
    5151 
    5152 Configuration files:
    5153 $config_files
    5154 
    5155 Configuration headers:
    5156 $config_headers
    5157 
    5158 Configuration commands:
    5159 $config_commands
    5160 
    5161 Report bugs to <[email protected]>."
    5162 EOF
    5163 
    5164 cat >>$CONFIG_STATUS <<EOF
    5165 ac_cs_version="\\
    5166 config.status
    5167 configured by $0, generated by GNU Autoconf 2.50,
    5168   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    5169 
    5170 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    5171 Free Software Foundation, Inc.
    5172 This config.status script is free software; the Free Software Foundation
    5173 gives unlimited permission to copy, distribute and modify it."
    5174 srcdir=$srcdir
    5175 INSTALL="$INSTALL"
    5176 EOF
    5177 
    5178 cat >>$CONFIG_STATUS <<\EOF
    5179 # If no file are specified by the user, then we need to provide default
    5180 # value.  By we need to know if files were specified by the user.
    5181 ac_need_defaults=:
    5182 while test $# != 0
    5183 do
    5184   case $1 in
    5185   --*=*)
    5186     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    5187     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    5188     shift
    5189     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
    5190     shift
    5191     ;;
    5192   -*);;
    5193   *) # This is not an option, so the user has probably given explicit
    5194      # arguments.
    5195      ac_need_defaults=false;;
     3366  if test ! -s conftest.s$ac_file; then
     3367    ac_more_lines=false
     3368    rm -f conftest.s$ac_file
     3369  else
     3370    if test -z "$ac_sed_cmds"; then
     3371      ac_sed_cmds="sed -f conftest.s$ac_file"
     3372    else
     3373      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
     3374    fi
     3375    ac_file=`expr $ac_file + 1`
     3376    ac_beg=$ac_end
     3377    ac_end=`expr $ac_end + $ac_max_sed_cmds`
     3378  fi
     3379done
     3380if test -z "$ac_sed_cmds"; then
     3381  ac_sed_cmds=cat
     3382fi
     3383EOF
     3384
     3385cat >> $CONFIG_STATUS <<EOF
     3386
     3387CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile lib/Makefile
     3388   jni/Makefile java/org/greenstone/mgpp/Makefile"}
     3389EOF
     3390cat >> $CONFIG_STATUS <<\EOF
     3391for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
     3392  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     3393  case "$ac_file" in
     3394  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     3395       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     3396  *) ac_file_in="${ac_file}.in" ;;
    51963397  esac
    51973398
    5198   case $1 in
    5199   # Handling of the options.
    5200 EOF
    5201 cat >>$CONFIG_STATUS <<EOF
    5202   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    5203     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    5204     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
    5205 EOF
    5206 cat >>$CONFIG_STATUS <<\EOF
    5207   --version | --vers* | -V )
    5208     echo "$ac_cs_version"; exit 0 ;;
    5209   --he | --h)
    5210     # Conflict between --help and --header
    5211     { { echo "$as_me:5211: error: ambiguous option: $1
    5212 Try \`$0 --help' for more information." >&5
    5213 echo "$as_me: error: ambiguous option: $1
    5214 Try \`$0 --help' for more information." >&2;}
    5215    { (exit 1); exit 1; }; };;
    5216   --help | --hel | -h )
    5217     echo "$ac_cs_usage"; exit 0 ;;
    5218   --debug | --d* | -d )
    5219     debug=: ;;
    5220   --file | --fil | --fi | --f )
    5221     shift
    5222     CONFIG_FILES="$CONFIG_FILES $1"
    5223     ac_need_defaults=false;;
    5224   --header | --heade | --head | --hea )
    5225     shift
    5226     CONFIG_HEADERS="$CONFIG_HEADERS $1"
    5227     ac_need_defaults=false;;
    5228 
    5229   # Handling of arguments.
    5230   'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    5231   'text/Makefile' ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
    5232   'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    5233   'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
    5234   'java/org/greenstone/mgpp/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
    5235   'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    5236   'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    5237 
    5238   # This is an error.
    5239   -*) { { echo "$as_me:5239: error: unrecognized option: $1
    5240 Try \`$0 --help' for more information." >&5
    5241 echo "$as_me: error: unrecognized option: $1
    5242 Try \`$0 --help' for more information." >&2;}
    5243    { (exit 1); exit 1; }; } ;;
    5244   *) { { echo "$as_me:5244: error: invalid argument: $1" >&5
    5245 echo "$as_me: error: invalid argument: $1" >&2;}
    5246    { (exit 1); exit 1; }; };;
    5247   esac
    5248   shift
    5249 done
    5250 
    5251 exec 5>>config.log
    5252 cat >&5 << _ACEOF
    5253 
    5254 ## ----------------------- ##
    5255 ## Running config.status.  ##
    5256 ## ----------------------- ##
    5257 
    5258 This file was extended by $as_me 2.50, executed with
    5259   > $ac_cs_invocation
    5260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
    5261 
    5262 _ACEOF
    5263 EOF
    5264 
    5265 cat >>$CONFIG_STATUS <<\EOF
    5266 # If the user did not use the arguments to specify the items to instantiate,
    5267 # then the envvar interface is used.  Set only those that are not.
    5268 # We use the long form for the default assignment because of an extremely
    5269 # bizarre bug on SunOS 4.1.3.
    5270 if $ac_need_defaults; then
    5271   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
    5272   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    5273   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    5274 fi
    5275 
    5276 # Create a temporary directory, and hook for its removal unless debugging.
    5277 $debug ||
    5278 {
    5279   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    5280   trap '{ (exit $?); exit $?; }' 1 2 13 15
    5281 }
    5282 
    5283 # Create a (secure) tmp directory for tmp files.
    5284 : ${TMPDIR=/tmp}
    5285 {
    5286   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
    5287   test -n "$tmp" && test -d "$tmp"
    5288 }  ||
    5289 {
    5290   tmp=$TMPDIR/cs$$-$RANDOM
    5291   (umask 077 && mkdir $tmp)
    5292 } ||
    5293 {
    5294    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
    5295    { (exit 1); exit 1; }
    5296 }
    5297 
    5298 EOF
    5299 
    5300 cat >>$CONFIG_STATUS <<EOF
    5301 
    5302 #
    5303 # CONFIG_FILES section.
    5304 #
    5305 
    5306 # No need to generate the scripts if there are no CONFIG_FILES.
    5307 # This happens for instance when ./config.status config.h
    5308 if test -n "\$CONFIG_FILES"; then
    5309   # Protect against being on the right side of a sed subst in config.status.
    5310   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    5311    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    5312 s,@SHELL@,$SHELL,;t t
    5313 s,@exec_prefix@,$exec_prefix,;t t
    5314 s,@prefix@,$prefix,;t t
    5315 s,@program_transform_name@,$program_transform_name,;t t
    5316 s,@bindir@,$bindir,;t t
    5317 s,@sbindir@,$sbindir,;t t
    5318 s,@libexecdir@,$libexecdir,;t t
    5319 s,@datadir@,$datadir,;t t
    5320 s,@sysconfdir@,$sysconfdir,;t t
    5321 s,@sharedstatedir@,$sharedstatedir,;t t
    5322 s,@localstatedir@,$localstatedir,;t t
    5323 s,@libdir@,$libdir,;t t
    5324 s,@includedir@,$includedir,;t t
    5325 s,@oldincludedir@,$oldincludedir,;t t
    5326 s,@infodir@,$infodir,;t t
    5327 s,@mandir@,$mandir,;t t
    5328 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    5329 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    5330 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    5331 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    5332 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    5333 s,@ECHO_C@,$ECHO_C,;t t
    5334 s,@ECHO_N@,$ECHO_N,;t t
    5335 s,@ECHO_T@,$ECHO_T,;t t
    5336 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    5337 s,@DEFS@,$DEFS,;t t
    5338 s,@LIBS@,$LIBS,;t t
    5339 s,@PACKAGE@,$PACKAGE,;t t
    5340 s,@VERSION@,$VERSION,;t t
    5341 s,@CXX@,$CXX,;t t
    5342 s,@CXXFLAGS@,$CXXFLAGS,;t t
    5343 s,@LDFLAGS@,$LDFLAGS,;t t
    5344 s,@CPPFLAGS@,$CPPFLAGS,;t t
    5345 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    5346 s,@EXEEXT@,$EXEEXT,;t t
    5347 s,@OBJEXT@,$OBJEXT,;t t
    5348 s,@AWK@,$AWK,;t t
    5349 s,@YACC@,$YACC,;t t
    5350 s,@CC@,$CC,;t t
    5351 s,@CFLAGS@,$CFLAGS,;t t
    5352 s,@ac_ct_CC@,$ac_ct_CC,;t t
    5353 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    5354 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    5355 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    5356 s,@LN_S@,$LN_S,;t t
    5357 s,@SET_MAKE@,$SET_MAKE,;t t
    5358 s,@RANLIB@,$RANLIB,;t t
    5359 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    5360 s,@CPP@,$CPP,;t t
    5361 s,@U@,$U,;t t
    5362 s,@ANSI2KNR@,$ANSI2KNR,;t t
    5363 s,@ALLOCA@,$ALLOCA,;t t
    5364 s,@LIBOBJS@,$LIBOBJS,;t t
    5365 CEOF
    5366 
    5367 EOF
    5368 
    5369   cat >>$CONFIG_STATUS <<\EOF
    5370   # Split the substitutions into bite-sized pieces for seds with
    5371   # small command number limits, like on Digital OSF/1 and HP-UX.
    5372   ac_max_sed_lines=48
    5373   ac_sed_frag=1 # Number of current file.
    5374   ac_beg=1 # First line for current file.
    5375   ac_end=$ac_max_sed_lines # Line after last line for current file.
    5376   ac_more_lines=:
    5377   ac_sed_cmds=
    5378   while $ac_more_lines; do
    5379     if test $ac_beg -gt 1; then
    5380       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    5381     else
    5382       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    5383     fi
    5384     if test ! -s $tmp/subs.frag; then
    5385       ac_more_lines=false
    5386     else
    5387       # The purpose of the label and of the branching condition is to
    5388       # speed up the sed processing (if there are no `@' at all, there
    5389       # is no need to browse any of the substitutions).
    5390       # These are the two extra sed commands mentioned above.
    5391       (echo ':t
    5392   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    5393       if test -z "$ac_sed_cmds"; then
    5394     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    5395       else
    5396     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    5397       fi
    5398       ac_sed_frag=`expr $ac_sed_frag + 1`
    5399       ac_beg=$ac_end
    5400       ac_end=`expr $ac_end + $ac_max_sed_lines`
    5401     fi
    5402   done
    5403   if test -z "$ac_sed_cmds"; then
    5404     ac_sed_cmds=cat
    5405   fi
    5406 fi # test -n "$CONFIG_FILES"
    5407 
    5408 EOF
    5409 cat >>$CONFIG_STATUS <<\EOF
    5410 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    5411   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    5412   case $ac_file in
    5413   - | *:- | *:-:* ) # input from stdin
    5414         cat >$tmp/stdin
    5415         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5416         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5417   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5418         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5419   * )   ac_file_in=$ac_file.in ;;
    5420   esac
    5421 
    5422   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    5423   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    5424          X"$ac_file" : 'X\(//\)[^/]' \| \
    5425          X"$ac_file" : 'X\(//\)$' \| \
    5426          X"$ac_file" : 'X\(/\)' \| \
    5427          .     : '\(.\)' 2>/dev/null ||
    5428 echo X"$ac_file" |
    5429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    5430       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    5431       /^X\(\/\/\)$/{ s//\1/; q; }
    5432       /^X\(\/\).*/{ s//\1/; q; }
    5433       s/.*/./; q'`
     3399  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
     3400
     3401  # Remove last slash and all that follows it.  Not all systems have dirname.
     3402  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    54343403  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    5435     { case "$ac_dir" in
    5436   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    5437   *)                      as_incr_dir=.;;
    5438 esac
    5439 as_dummy="$ac_dir"
    5440 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    5441   case $as_mkdir_dir in
    5442     # Skip DOS drivespec
    5443     ?:) as_incr_dir=$as_mkdir_dir ;;
    5444     *)
    5445       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5446       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5447     ;;
    5448   esac
    5449 done; }
    5450 
    5451     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
     3404    # The file is in a subdirectory.
     3405    test ! -d "$ac_dir" && mkdir "$ac_dir"
     3406    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    54523407    # A "../" for each directory in $ac_dir_suffix.
    5453     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
     3408    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    54543409  else
    54553410    ac_dir_suffix= ac_dots=
    54563411  fi
    54573412
    5458   case $srcdir in
    5459   .)  ac_srcdir=.
    5460       if test -z "$ac_dots"; then
    5461          ac_top_srcdir=.
    5462       else
    5463          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
    5464       fi ;;
    5465   [\\/]* | ?:[\\/]* )
    5466       ac_srcdir=$srcdir$ac_dir_suffix;
    5467       ac_top_srcdir=$srcdir ;;
     3413  case "$ac_given_srcdir" in
     3414  .)  srcdir=.
     3415      if test -z "$ac_dots"; then top_srcdir=.
     3416      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
     3417  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    54683418  *) # Relative path.
    5469     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    5470     ac_top_srcdir=$ac_dots$srcdir ;;
     3419    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
     3420    top_srcdir="$ac_dots$ac_given_srcdir" ;;
    54713421  esac
    54723422
    5473   case $INSTALL in
    5474   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    5475   *) ac_INSTALL=$ac_dots$INSTALL ;;
     3423  case "$ac_given_INSTALL" in
     3424  [/$]*) INSTALL="$ac_given_INSTALL" ;;
     3425  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    54763426  esac
    54773427
    5478   if test x"$ac_file" != x-; then
    5479     { echo "$as_me:5479: creating $ac_file" >&5
    5480 echo "$as_me: creating $ac_file" >&6;}
    5481     rm -f "$ac_file"
    5482   fi
    5483   # Let's still pretend it is `configure' which instantiates (i.e., don't
    5484   # use $as_me), people would be surprised to read:
    5485   #    /* config.h.  Generated automatically by config.status.  */
    5486   configure_input="Generated automatically from `echo $ac_file_in |
    5487                                                  sed 's,.*/,,'` by configure."
    5488 
    5489   # First look for the input files in the build tree, otherwise in the
    5490   # src tree.
    5491   ac_file_inputs=`IFS=:
    5492     for f in $ac_file_in; do
    5493       case $f in
    5494       -) echo $tmp/stdin ;;
    5495       [\\/$]*)
    5496          # Absolute (can't be DOS-style, as IFS=:)
    5497          test -f "$f" || { { echo "$as_me:5497: error: cannot find input file: $f" >&5
    5498 echo "$as_me: error: cannot find input file: $f" >&2;}
    5499    { (exit 1); exit 1; }; }
    5500          echo $f;;
    5501       *) # Relative
    5502          if test -f "$f"; then
    5503            # Build tree
    5504            echo $f
    5505          elif test -f "$srcdir/$f"; then
    5506            # Source tree
    5507            echo $srcdir/$f
    5508          else
    5509            # /dev/null tree
    5510            { { echo "$as_me:5510: error: cannot find input file: $f" >&5
    5511 echo "$as_me: error: cannot find input file: $f" >&2;}
    5512    { (exit 1); exit 1; }; }
    5513          fi;;
    5514       esac
    5515     done` || { (exit 1); exit 1; }
    5516 EOF
    5517 cat >>$CONFIG_STATUS <<EOF
    5518   sed "$ac_vpsub
    5519 $extrasub
    5520 EOF
    5521 cat >>$CONFIG_STATUS <<\EOF
    5522 :t
    5523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    5524 s,@configure_input@,$configure_input,;t t
    5525 s,@srcdir@,$ac_srcdir,;t t
    5526 s,@top_srcdir@,$ac_top_srcdir,;t t
    5527 s,@INSTALL@,$ac_INSTALL,;t t
    5528 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    5529   rm -f $tmp/stdin
    5530   if test x"$ac_file" != x-; then
    5531     mv $tmp/out $ac_file
    5532   else
    5533     cat $tmp/out
    5534     rm -f $tmp/out
    5535   fi
    5536 
    5537 done
    5538 EOF
    5539 cat >>$CONFIG_STATUS <<\EOF
    5540 
    5541 #
    5542 # CONFIG_HEADER section.
    5543 #
     3428  echo creating "$ac_file"
     3429  rm -f "$ac_file"
     3430  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
     3431  case "$ac_file" in
     3432  *Makefile*) ac_comsub="1i\\
     3433# $configure_input" ;;
     3434  *) ac_comsub= ;;
     3435  esac
     3436
     3437  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     3438  sed -e "$ac_comsub
     3439s%@configure_input@%$configure_input%g
     3440s%@srcdir@%$srcdir%g
     3441s%@top_srcdir@%$top_srcdir%g
     3442s%@INSTALL@%$INSTALL%g
     3443" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
     3444fi; done
     3445rm -f conftest.s*
    55443446
    55453447# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    55473449#
    55483450# ac_d sets the value in "#define NAME VALUE" lines.
    5549 ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    5550 ac_dB='[    ].*$,\1#\2'
    5551 ac_dC=' '
    5552 ac_dD=',;t'
    5553 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    5554 ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    5555 ac_uB='$,\1#\2define\3'
     3451ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
     3452ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
     3453ac_dC='\3'
     3454ac_dD='%g'
     3455# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
     3456ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     3457ac_uB='\([  ]\)%\1#\2define\3'
    55563458ac_uC=' '
    5557 ac_uD=',;t'
    5558 
    5559 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
     3459ac_uD='\4%g'
     3460# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     3461ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     3462ac_eB='$%\1#\2define\3'
     3463ac_eC=' '
     3464ac_eD='%g'
     3465
     3466if test "${CONFIG_HEADERS+set}" != set; then
     3467EOF
     3468cat >> $CONFIG_STATUS <<EOF
     3469  CONFIG_HEADERS="config.h"
     3470EOF
     3471cat >> $CONFIG_STATUS <<\EOF
     3472fi
     3473for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
    55603474  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    5561   case $ac_file in
    5562   - | *:- | *:-:* ) # input from stdin
    5563         cat >$tmp/stdin
    5564         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5565         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5566   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5567         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5568   * )   ac_file_in=$ac_file.in ;;
     3475  case "$ac_file" in
     3476  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     3477       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     3478  *) ac_file_in="${ac_file}.in" ;;
    55693479  esac
    55703480
    5571   test x"$ac_file" != x- && { echo "$as_me:5571: creating $ac_file" >&5
    5572 echo "$as_me: creating $ac_file" >&6;}
    5573 
    5574   # First look for the input files in the build tree, otherwise in the
    5575   # src tree.
    5576   ac_file_inputs=`IFS=:
    5577     for f in $ac_file_in; do
    5578       case $f in
    5579       -) echo $tmp/stdin ;;
    5580       [\\/$]*)
    5581          # Absolute (can't be DOS-style, as IFS=:)
    5582          test -f "$f" || { { echo "$as_me:5582: error: cannot find input file: $f" >&5
    5583 echo "$as_me: error: cannot find input file: $f" >&2;}
    5584    { (exit 1); exit 1; }; }
    5585          echo $f;;
    5586       *) # Relative
    5587          if test -f "$f"; then
    5588            # Build tree
    5589            echo $f
    5590          elif test -f "$srcdir/$f"; then
    5591            # Source tree
    5592            echo $srcdir/$f
    5593          else
    5594            # /dev/null tree
    5595            { { echo "$as_me:5595: error: cannot find input file: $f" >&5
    5596 echo "$as_me: error: cannot find input file: $f" >&2;}
    5597    { (exit 1); exit 1; }; }
    5598          fi;;
    5599       esac
    5600     done` || { (exit 1); exit 1; }
    5601   # Remove the trailing spaces.
    5602   sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
    5603 
    5604 EOF
    5605 
    5606 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    5607 # `conftest.undefs', that substitutes the proper values into
    5608 # config.h.in to produce config.h.  The first handles `#define'
    5609 # templates, and the second `#undef' templates.
    5610 # And first: Protect against being on the right side of a sed subst in
    5611 # config.status.  Protect against being in an unquoted here document
    5612 # in config.status.
    5613 rm -f conftest.defines conftest.undefs
    5614 # Using a here document instead of a string reduces the quoting nightmare.
    5615 # Putting comments in sed scripts is not portable.
    5616 #
    5617 # `end' is used to avoid that the second main sed command (meant for
    5618 # 0-ary CPP macros) applies to n-ary macro definitions.
    5619 # See the Autoconf documentation for `clear'.
    5620 cat >confdef2sed.sed <<\EOF
    5621 s/[\\&,]/\\&/g
    5622 s,[\\$`],\\&,g
    5623 t clear
    5624 : clear
    5625 s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
    5626 t end
    5627 s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    5628 : end
    5629 EOF
    5630 # If some macros were called several times there might be several times
    5631 # the same #defines, which is useless.  Nevertheless, we may not want to
    5632 # sort them, since we want the *last* AC-DEFINE to be honored.
    5633 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    5634 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    5635 rm -f confdef2sed.sed
     3481  echo creating $ac_file
     3482
     3483  rm -f conftest.frag conftest.in conftest.out
     3484  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     3485  cat $ac_file_inputs > conftest.in
     3486
     3487EOF
     3488
     3489# Transform confdefs.h into a sed script conftest.vals that substitutes
     3490# the proper values into config.h.in to produce config.h.  And first:
     3491# Protect against being on the right side of a sed subst in config.status.
     3492# Protect against being in an unquoted here document in config.status.
     3493rm -f conftest.vals
     3494cat > conftest.hdr <<\EOF
     3495s/[\\&%]/\\&/g
     3496s%[\\$`]%\\&%g
     3497s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
     3498s%ac_d%ac_u%gp
     3499s%ac_u%ac_e%gp
     3500EOF
     3501sed -n -f conftest.hdr confdefs.h > conftest.vals
     3502rm -f conftest.hdr
    56363503
    56373504# This sed command replaces #undef with comments.  This is necessary, for
    56383505# example, in the case of _POSIX_SOURCE, which is predefined and required
    56393506# on some systems where configure will not decide to define it.
    5640 cat >>conftest.undefs <<\EOF
    5641 s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    5642 EOF
    5643 
    5644 # Break up conftest.defines because some shells have a limit on the size
    5645 # of here documents, and old seds have small limits too (100 cmds).
    5646 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    5647 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    5648 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    5649 echo '  :' >>$CONFIG_STATUS
     3507cat >> conftest.vals <<\EOF
     3508s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
     3509EOF
     3510
     3511# Break up conftest.vals because some shells have a limit on
     3512# the size of here documents, and old seds have small limits too.
     3513
    56503514rm -f conftest.tail
    5651 while grep . conftest.defines >/dev/null
     3515while :
    56523516do
    5653   # Write a limited-size here document to $tmp/defines.sed.
    5654   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    5655   # Speed up: don't consider the non `#define' lines.
    5656   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
    5657   # Work around the forget-to-reset-the-flag bug.
    5658   echo 't clr' >>$CONFIG_STATUS
    5659   echo ': clr' >>$CONFIG_STATUS
    5660   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
     3517  ac_lines=`grep -c . conftest.vals`
     3518  # grep -c gives empty output for an empty file on some AIX systems.
     3519  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
     3520  # Write a limited-size here document to conftest.frag.
     3521  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
     3522  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
    56613523  echo 'CEOF
    5662   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    5663   rm -f $tmp/in
    5664   mv $tmp/out $tmp/in
    5665 ' >>$CONFIG_STATUS
    5666   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    5667   rm -f conftest.defines
    5668   mv conftest.tail conftest.defines
     3524  sed -f conftest.frag conftest.in > conftest.out
     3525  rm -f conftest.in
     3526  mv conftest.out conftest.in
     3527' >> $CONFIG_STATUS
     3528  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
     3529  rm -f conftest.vals
     3530  mv conftest.tail conftest.vals
    56693531done
    5670 rm -f conftest.defines
    5671 echo '  fi # egrep' >>$CONFIG_STATUS
    5672 echo >>$CONFIG_STATUS
    5673 
    5674 # Break up conftest.undefs because some shells have a limit on the size
    5675 # of here documents, and old seds have small limits too (100 cmds).
    5676 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    5677 rm -f conftest.tail
    5678 while grep . conftest.undefs >/dev/null
    5679 do
    5680   # Write a limited-size here document to $tmp/undefs.sed.
    5681   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    5682   # Speed up: don't consider the non `#undef'
    5683   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    5684   # Work around the forget-to-reset-the-flag bug.
    5685   echo 't clr' >>$CONFIG_STATUS
    5686   echo ': clr' >>$CONFIG_STATUS
    5687   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    5688   echo 'CEOF
    5689   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    5690   rm -f $tmp/in
    5691   mv $tmp/out $tmp/in
    5692 ' >>$CONFIG_STATUS
    5693   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    5694   rm -f conftest.undefs
    5695   mv conftest.tail conftest.undefs
    5696 done
    5697 rm -f conftest.undefs
    5698 
    5699 cat >>$CONFIG_STATUS <<\EOF
    5700   # Let's still pretend it is `configure' which instantiates (i.e., don't
    5701   # use $as_me), people would be surprised to read:
    5702   #    /* config.h.  Generated automatically by config.status.  */
    5703   if test x"$ac_file" = x-; then
    5704     echo "/* Generated automatically by configure.  */" >$tmp/config.h
     3532rm -f conftest.vals
     3533
     3534cat >> $CONFIG_STATUS <<\EOF
     3535  rm -f conftest.frag conftest.h
     3536  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
     3537  cat conftest.in >> conftest.h
     3538  rm -f conftest.in
     3539  if cmp -s $ac_file conftest.h 2>/dev/null; then
     3540    echo "$ac_file is unchanged"
     3541    rm -f conftest.h
    57053542  else
    5706     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     3543    # Remove last slash and all that follows it.  Not all systems have dirname.
     3544      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     3545      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     3546      # The file is in a subdirectory.
     3547      test ! -d "$ac_dir" && mkdir "$ac_dir"
     3548    fi
     3549    rm -f $ac_file
     3550    mv conftest.h $ac_file
    57073551  fi
    5708   cat $tmp/in >>$tmp/config.h
    5709   rm -f $tmp/in
    5710   if test x"$ac_file" != x-; then
    5711     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
    5712       { echo "$as_me:5712: $ac_file is unchanged" >&5
    5713 echo "$as_me: $ac_file is unchanged" >&6;}
    5714     else
    5715       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    5716          X"$ac_file" : 'X\(//\)[^/]' \| \
    5717          X"$ac_file" : 'X\(//\)$' \| \
    5718          X"$ac_file" : 'X\(/\)' \| \
    5719          .     : '\(.\)' 2>/dev/null ||
    5720 echo X"$ac_file" |
    5721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    5722       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    5723       /^X\(\/\/\)$/{ s//\1/; q; }
    5724       /^X\(\/\).*/{ s//\1/; q; }
    5725       s/.*/./; q'`
    5726       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    5727         { case "$ac_dir" in
    5728   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    5729   *)                      as_incr_dir=.;;
    5730 esac
    5731 as_dummy="$ac_dir"
    5732 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    5733   case $as_mkdir_dir in
    5734     # Skip DOS drivespec
    5735     ?:) as_incr_dir=$as_mkdir_dir ;;
    5736     *)
    5737       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5738       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5739     ;;
    5740   esac
    5741 done; }
    5742 
    5743       fi
    5744       rm -f $ac_file
    5745       mv $tmp/config.h $ac_file
    5746     fi
    5747   else
    5748     cat $tmp/config.h
    5749     rm -f $tmp/config.h
    5750   fi
    5751 done
    5752 EOF
    5753 cat >>$CONFIG_STATUS <<\EOF
    5754 
    5755 #
    5756 # CONFIG_COMMANDS section.
    5757 #
    5758 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
    5759   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    5760   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5761 
    5762   case $ac_dest in
    5763     default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
    5764   esac
    5765 done
    5766 EOF
    5767 
    5768 cat >>$CONFIG_STATUS <<\EOF
    5769 
    5770 { (exit 0); exit 0; }
     3552fi; done
     3553
     3554EOF
     3555cat >> $CONFIG_STATUS <<EOF
     3556
     3557EOF
     3558cat >> $CONFIG_STATUS <<\EOF
     3559test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
     3560exit 0
    57713561EOF
    57723562chmod +x $CONFIG_STATUS
    5773 ac_clean_files=$ac_clean_files_save
    5774 
    5775 # configure is writing to config.log, and then calls config.status.
    5776 # config.status does its own redirection, appending to config.log.
    5777 # Unfortunately, on DOS this fails, as config.log is still kept open
    5778 # by configure, so config.status won't be able to write to it; its
    5779 # output is simply discarded.  So we exec the FD to /dev/null,
    5780 # effectively closing config.log, so it can be properly (re)opened and
    5781 # appended to by config.status.  When coming back to configure, we
    5782 # need to make the FD available again.
    5783 if test "$no_create" != yes; then
    5784   ac_cs_success=:
    5785   exec 5>/dev/null
    5786   $SHELL $CONFIG_STATUS || ac_cs_success=false
    5787   exec 5>>config.log
    5788   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    5789   # would make configure fail if this is the last instruction.
    5790   $ac_cs_success || { (exit 1); exit 1; }
    5791 fi
    5792 
     3563rm -fr confdefs* $ac_clean_files
     3564test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
     3565
  • trunk/indexers/mgpp/configure.in

    r7882 r8059  
    5252
    5353dnl Checks for libraries.
     54dnl Replace `main' with a function in -lg:
     55AC_CHECK_LIB(g, main)
    5456dnl Replace `main' with a function in -lm:
    5557AC_CHECK_LIB(m, main)
     58dnl Replace `main' with a function in -lstdc++:
     59AC_CHECK_LIB(stdc++, main)
     60dnl Replace `main' with a function in -lcrypt:
     61AC_CHECK_LIB(crypt, main)
    5662
    5763dnl Checks for header files.
    5864AC_HEADER_DIRENT
    5965AC_HEADER_STDC
    60 AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h)
     66AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h)
    6167AC_EGREP_HEADER(fread, stdio.h, AC_DEFINE(HAVE_FREAD_DECL))
    6268AC_EGREP_HEADER(fgetc, stdio.h, AC_DEFINE(HAVE_FGETC_DECL))
     
    7177AC_REPLACE_FUNCS(ftruncate strstr strcasecmp)
    7278
     79
     80dnl see if gettext is in libc. (try the textdomain() function).
     81AC_CHECK_FUNC( textdomain , AC_DEFINE(ENABLE_NLS ,1) )
    7382
    7483# *** Custom checking (based on GNU tar configure.in) ***
Note: See TracChangeset for help on using the changeset viewer.