Changeset 3631 for trunk/gsdl/configure


Ignore:
Timestamp:
2002-12-20T11:45:52+13:00 (21 years ago)
Author:
cvs_anon
Message:

Added langaction stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/configure

    r3063 r3631  
    11#! /bin/sh
    2 
    32# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.13
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     3# Generated by Autoconf 2.50.
    64#
     5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     6# Free Software Foundation, Inc.
    77# This configure script is free software; the Free Software Foundation
    88# gives unlimited permission to copy, distribute and modify it.
    99
    10 # Defaults:
    11 ac_help=
     10# Be Bourne compatible
     11if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     12  emulate sh
     13  NULLCMD=:
     14elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     15  set -o posix
     16fi
     17
     18# Name of the executable.
     19as_me=`echo "$0" |sed 's,.*[\\/],,'`
     20
     21if expr a : '\(a\)' >/dev/null 2>&1; then
     22  as_expr=expr
     23else
     24  as_expr=false
     25fi
     26
     27rm -f conf$$ conf$$.exe conf$$.file
     28echo >conf$$.file
     29if ln -s conf$$.file conf$$ 2>/dev/null; then
     30  # We could just check for DJGPP; but this test a) works b) is more generic
     31  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     32  if test -f conf$$.exe; then
     33    # Don't use ln at all; we don't have any links
     34    as_ln_s='cp -p'
     35  else
     36    as_ln_s='ln -s'
     37  fi
     38elif ln conf$$.file conf$$ 2>/dev/null; then
     39  as_ln_s=ln
     40else
     41  as_ln_s='cp -p'
     42fi
     43rm -f conf$$ conf$$.exe conf$$.file
     44
     45as_executable_p="test -f"
     46
     47# Support unset when possible.
     48if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     49  as_unset=unset
     50else
     51  as_unset=false
     52fi
     53
     54# NLS nuisances.
     55$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     56$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     57$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     58$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     59$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     60$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     61$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     62$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     63
     64# IFS
     65# We need space, tab and new line, in precisely that order.
     66as_nl='
     67'
     68IFS="   $as_nl"
     69
     70# CDPATH.
     71$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     72
     73# Name of the host.
     74# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     75# so uname gets run too.
     76ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     77
     78exec 6>&1
     79
     80#
     81# Initializations.
     82#
    1283ac_default_prefix=/usr/local
    13 # Any additions from configure.in:
    14 ac_help="$ac_help
    15   --enable-corba          Enable CORBA support"
    16 ac_help="$ac_help
    17   --with-micodir          Use installed MICO directory"
    18 ac_help="$ac_help
    19   --enable-z3950          Enable Z39.50 client support"
    20 ac_help="$ac_help
    21   --with-gdbm=dir         Use local gdbm library and headers"
    22 ac_help="$ac_help
    23   --with-dmalloc          use dmalloc, as in
    24                           ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
    25 ac_help="$ac_help
    26   --with-regex            use older regex in lieu of GNU rx for matching"
     84cross_compiling=no
     85subdirs=
     86MFLAGS= MAKEFLAGS=
     87SHELL=${CONFIG_SHELL-/bin/sh}
     88
     89# Maximum number of lines to put in a shell here document.
     90# This variable seems obsolete.  It should probably be removed, and
     91# only ac_max_sed_lines should be used.
     92: ${ac_max_here_lines=38}
     93
     94# Avoid depending upon Character Ranges.
     95ac_cr_az='abcdefghijklmnopqrstuvwxyz'
     96ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     97ac_cr_09='0123456789'
     98ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
     99
     100# Sed expression to map a string onto a valid sh and CPP variable names.
     101ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
     102ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
     103
     104ac_unique_file="lib/text_t.h"
     105# Factoring default headers for most tests.
     106ac_includes_default="\
     107#include <stdio.h>
     108#include <sys/types.h>
     109#include <sys/stat.h>
     110#if STDC_HEADERS
     111# include <stdlib.h>
     112# include <stddef.h>
     113#else
     114# if HAVE_STDLIB_H
     115#  include <stdlib.h>
     116# endif
     117#endif
     118#if HAVE_STRING_H
     119# if !STDC_HEADERS && HAVE_MEMORY_H
     120#  include <memory.h>
     121# endif
     122# include <string.h>
     123#else
     124# if HAVE_STRINGS_H
     125#  include <strings.h>
     126# endif
     127#endif
     128#if HAVE_INTTYPES_H
     129# include <inttypes.h>
     130#endif
     131#if HAVE_UNISTD_H
     132# include <unistd.h>
     133#endif"
     134
     135ac_subdirs_all="$ac_subdirs_all packages"
    27136
    28137# Initialize some variables set by options.
     138ac_init_help=
     139ac_init_version=false
    29140# The variables have the same names as the options, with
    30141# dashes changed to underlines.
    31 build=NONE
    32 cache_file=./config.cache
     142cache_file=/dev/null
    33143exec_prefix=NONE
    34 host=NONE
    35144no_create=
    36 nonopt=NONE
    37145no_recursion=
    38146prefix=NONE
     
    43151site=
    44152srcdir=
    45 target=NONE
    46153verbose=
    47154x_includes=NONE
    48155x_libraries=NONE
     156
     157# Installation directory options.
     158# These are left unexpanded so users can "make install exec_prefix=/foo"
     159# and all the variables that are supposed to be based on exec_prefix
     160# by default will actually change.
     161# Use braces instead of parens because sh, perl, etc. also accept them.
    49162bindir='${exec_prefix}/bin'
    50163sbindir='${exec_prefix}/sbin'
     
    60173mandir='${prefix}/man'
    61174
    62 # Initialize some other variables.
    63 subdirs=
    64 MFLAGS= MAKEFLAGS=
    65 SHELL=${CONFIG_SHELL-/bin/sh}
    66 # Maximum number of lines to put in a shell here document.
    67 ac_max_here_lines=12
     175# Identity of this package.
     176PACKAGE_NAME=
     177PACKAGE_TARNAME=
     178PACKAGE_VERSION=
     179PACKAGE_STRING=
     180PACKAGE_BUGREPORT=
    68181
    69182ac_prev=
    70183for ac_option
    71184do
    72 
    73185  # If the previous option needs an argument, assign it.
    74186  if test -n "$ac_prev"; then
     
    78190  fi
    79191
    80   case "$ac_option" in
    81   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    82   *) ac_optarg= ;;
    83   esac
     192  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    84193
    85194  # Accept the important Cygnus configure options, so we can diagnose typos.
    86195
    87   case "$ac_option" in
     196  case $ac_option in
    88197
    89198  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    90199    ac_prev=bindir ;;
    91200  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    92     bindir="$ac_optarg" ;;
     201    bindir=$ac_optarg ;;
    93202
    94203  -build | --build | --buil | --bui | --bu)
    95     ac_prev=build ;;
     204    ac_prev=build_alias ;;
    96205  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    97     build="$ac_optarg" ;;
     206    build_alias=$ac_optarg ;;
    98207
    99208  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    102211  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    103212  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    104     cache_file="$ac_optarg" ;;
     213    cache_file=$ac_optarg ;;
     214
     215  --config-cache | -C)
     216    cache_file=config.cache ;;
    105217
    106218  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    108220  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    109221  | --da=*)
    110     datadir="$ac_optarg" ;;
     222    datadir=$ac_optarg ;;
    111223
    112224  -disable-* | --disable-*)
    113     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     225    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    114226    # Reject names that are not valid shell variable names.
    115     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    116       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    117     fi
    118     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    119     eval "enable_${ac_feature}=no" ;;
     227    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     228      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     229   { (exit 1); exit 1; }; }
     230    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     231    eval "enable_$ac_feature=no" ;;
    120232
    121233  -enable-* | --enable-*)
    122     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     234    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    123235    # Reject names that are not valid shell variable names.
    124     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    125       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    126     fi
    127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    128     case "$ac_option" in
    129       *=*) ;;
     236    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     237      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     238   { (exit 1); exit 1; }; }
     239    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     240    case $ac_option in
     241      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    130242      *) ac_optarg=yes ;;
    131243    esac
    132     eval "enable_${ac_feature}='$ac_optarg'" ;;
     244    eval "enable_$ac_feature='$ac_optarg'" ;;
    133245
    134246  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    139251  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    140252  | --exec=* | --exe=* | --ex=*)
    141     exec_prefix="$ac_optarg" ;;
     253    exec_prefix=$ac_optarg ;;
    142254
    143255  -gas | --gas | --ga | --g)
     
    145257    with_gas=yes ;;
    146258
    147   -help | --help | --hel | --he)
    148     # Omit some internal or obsolete options to make the list less imposing.
    149     # This message is too long to be a string in the A/UX 3.1 sh.
    150     cat << EOF
    151 Usage: configure [options] [host]
    152 Options: [defaults in brackets after descriptions]
    153 Configuration:
    154   --cache-file=FILE       cache test results in FILE
    155   --help                  print this message
    156   --no-create             do not create output files
    157   --quiet, --silent       do not print \`checking...' messages
    158   --version               print the version of autoconf that created configure
    159 Directory and file names:
    160   --prefix=PREFIX         install architecture-independent files in PREFIX
    161                           [$ac_default_prefix]
    162   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    163                           [same as prefix]
    164   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    165   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    166   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    167   --datadir=DIR           read-only architecture-independent data in DIR
    168                           [PREFIX/share]
    169   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    170   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    171                           [PREFIX/com]
    172   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    173   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    174   --includedir=DIR        C header files in DIR [PREFIX/include]
    175   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    176   --infodir=DIR           info documentation in DIR [PREFIX/info]
    177   --mandir=DIR            man documentation in DIR [PREFIX/man]
    178   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    179   --program-prefix=PREFIX prepend PREFIX to installed program names
    180   --program-suffix=SUFFIX append SUFFIX to installed program names
    181   --program-transform-name=PROGRAM
    182                           run sed PROGRAM on installed program names
    183 EOF
    184     cat << EOF
    185 Host type:
    186   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    187   --host=HOST             configure for HOST [guessed]
    188   --target=TARGET         configure for TARGET [TARGET=HOST]
    189 Features and packages:
    190   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    191   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    192   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    193   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    194   --x-includes=DIR        X include files are in DIR
    195   --x-libraries=DIR       X library files are in DIR
    196 EOF
    197     if test -n "$ac_help"; then
    198       echo "--enable and --with options recognized:$ac_help"
    199     fi
    200     exit 0 ;;
     259  -help | --help | --hel | --he | -h)
     260    ac_init_help=long ;;
     261  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     262    ac_init_help=recursive ;;
     263  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     264    ac_init_help=short ;;
    201265
    202266  -host | --host | --hos | --ho)
    203     ac_prev=host ;;
     267    ac_prev=host_alias ;;
    204268  -host=* | --host=* | --hos=* | --ho=*)
    205     host="$ac_optarg" ;;
     269    host_alias=$ac_optarg ;;
    206270
    207271  -includedir | --includedir | --includedi | --included | --include \
     
    210274  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    211275  | --includ=* | --inclu=* | --incl=* | --inc=*)
    212     includedir="$ac_optarg" ;;
     276    includedir=$ac_optarg ;;
    213277
    214278  -infodir | --infodir | --infodi | --infod | --info | --inf)
    215279    ac_prev=infodir ;;
    216280  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    217     infodir="$ac_optarg" ;;
     281    infodir=$ac_optarg ;;
    218282
    219283  -libdir | --libdir | --libdi | --libd)
    220284    ac_prev=libdir ;;
    221285  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    222     libdir="$ac_optarg" ;;
     286    libdir=$ac_optarg ;;
    223287
    224288  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    227291  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    228292  | --libexe=* | --libex=* | --libe=*)
    229     libexecdir="$ac_optarg" ;;
     293    libexecdir=$ac_optarg ;;
    230294
    231295  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    236300  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    237301  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    238     localstatedir="$ac_optarg" ;;
     302    localstatedir=$ac_optarg ;;
    239303
    240304  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    241305    ac_prev=mandir ;;
    242306  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    243     mandir="$ac_optarg" ;;
     307    mandir=$ac_optarg ;;
    244308
    245309  -nfp | --nfp | --nf)
     
    262326  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    263327  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    264     oldincludedir="$ac_optarg" ;;
     328    oldincludedir=$ac_optarg ;;
    265329
    266330  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    267331    ac_prev=prefix ;;
    268332  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    269     prefix="$ac_optarg" ;;
     333    prefix=$ac_optarg ;;
    270334
    271335  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    274338  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    275339  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    276     program_prefix="$ac_optarg" ;;
     340    program_prefix=$ac_optarg ;;
    277341
    278342  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    281345  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    282346  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    283     program_suffix="$ac_optarg" ;;
     347    program_suffix=$ac_optarg ;;
    284348
    285349  -program-transform-name | --program-transform-name \
     
    298362  | --program-trans=* | --program-tran=* \
    299363  | --progr-tra=* | --program-tr=* | --program-t=*)
    300     program_transform_name="$ac_optarg" ;;
     364    program_transform_name=$ac_optarg ;;
    301365
    302366  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    308372  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    309373  | --sbi=* | --sb=*)
    310     sbindir="$ac_optarg" ;;
     374    sbindir=$ac_optarg ;;
    311375
    312376  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    319383  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    320384  | --sha=* | --sh=*)
    321     sharedstatedir="$ac_optarg" ;;
     385    sharedstatedir=$ac_optarg ;;
    322386
    323387  -site | --site | --sit)
    324388    ac_prev=site ;;
    325389  -site=* | --site=* | --sit=*)
    326     site="$ac_optarg" ;;
     390    site=$ac_optarg ;;
    327391
    328392  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    329393    ac_prev=srcdir ;;
    330394  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    331     srcdir="$ac_optarg" ;;
     395    srcdir=$ac_optarg ;;
    332396
    333397  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    336400  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    337401  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    338     sysconfdir="$ac_optarg" ;;
     402    sysconfdir=$ac_optarg ;;
    339403
    340404  -target | --target | --targe | --targ | --tar | --ta | --t)
    341     ac_prev=target ;;
     405    ac_prev=target_alias ;;
    342406  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    343     target="$ac_optarg" ;;
     407    target_alias=$ac_optarg ;;
    344408
    345409  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    346410    verbose=yes ;;
    347411
    348   -version | --version | --versio | --versi | --vers)
    349     echo "configure generated by autoconf version 2.13"
    350     exit 0 ;;
     412  -version | --version | --versio | --versi | --vers | -V)
     413    ac_init_version=: ;;
    351414
    352415  -with-* | --with-*)
    353     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     416    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    354417    # Reject names that are not valid shell variable names.
    355     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    356       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    357     fi
     418    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     419      { echo "$as_me: error: invalid package name: $ac_package" >&2
     420   { (exit 1); exit 1; }; }
    358421    ac_package=`echo $ac_package| sed 's/-/_/g'`
    359     case "$ac_option" in
    360       *=*) ;;
     422    case $ac_option in
     423      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    361424      *) ac_optarg=yes ;;
    362425    esac
    363     eval "with_${ac_package}='$ac_optarg'" ;;
     426    eval "with_$ac_package='$ac_optarg'" ;;
    364427
    365428  -without-* | --without-*)
    366     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     429    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    367430    # Reject names that are not valid shell variable names.
    368     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    369       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    370     fi
    371     ac_package=`echo $ac_package| sed 's/-/_/g'`
    372     eval "with_${ac_package}=no" ;;
     431    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     432      { echo "$as_me: error: invalid package name: $ac_package" >&2
     433   { (exit 1); exit 1; }; }
     434    ac_package=`echo $ac_package | sed 's/-/_/g'`
     435    eval "with_$ac_package=no" ;;
    373436
    374437  --x)
     
    381444  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    382445  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    383     x_includes="$ac_optarg" ;;
     446    x_includes=$ac_optarg ;;
    384447
    385448  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    388451  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    389452  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    390     x_libraries="$ac_optarg" ;;
    391 
    392   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
     453    x_libraries=$ac_optarg ;;
     454
     455  -*) { echo "$as_me: error: unrecognized option: $ac_option
     456Try \`$0 --help' for more information." >&2
     457   { (exit 1); exit 1; }; }
    393458    ;;
    394459
     460  *=*)
     461    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     462    # Reject names that are not valid shell variable names.
     463    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
     464      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     465   { (exit 1); exit 1; }; }
     466    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     467    eval "$ac_envvar='$ac_optarg'"
     468    export $ac_envvar ;;
     469
    395470  *)
    396     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    397       echo "configure: warning: $ac_option: invalid host type" 1>&2
    398     fi
    399     if test "x$nonopt" != xNONE; then
    400       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    401     fi
    402     nonopt="$ac_option"
     471    # FIXME: should be removed in autoconf 3.0.
     472    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     473    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
     474      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     475    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    403476    ;;
    404477
     
    407480
    408481if test -n "$ac_prev"; then
    409   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    410 fi
    411 
    412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    413 
    414 # File descriptor usage:
    415 # 0 standard input
    416 # 1 file creation
    417 # 2 errors and warnings
    418 # 3 some systems may open it to /dev/tty
    419 # 4 used on the Kubota Titan
    420 # 6 checking for... messages and results
    421 # 5 compiler messages saved in config.log
    422 if test "$silent" = yes; then
    423   exec 6>/dev/null
    424 else
    425   exec 6>&1
    426 fi
    427 exec 5>./config.log
    428 
    429 echo "\
    430 This file contains any messages produced by compilers while
    431 running configure, to aid debugging if configure makes a mistake.
    432 " 1>&5
    433 
    434 # Strip out --no-create and --no-recursion so they do not pile up.
    435 # Also quote any args containing shell metacharacters.
    436 ac_configure_args=
    437 for ac_arg
     482  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     483  { echo "$as_me: error: missing argument to $ac_option" >&2
     484   { (exit 1); exit 1; }; }
     485fi
     486
     487# Be sure to have absolute paths.
     488for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     489              localstatedir libdir includedir oldincludedir infodir mandir \
     490              exec_prefix prefix
    438491do
    439   case "$ac_arg" in
    440   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    441   | --no-cr | --no-c) ;;
    442   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    443   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    444   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    445   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    446   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
     492  eval ac_val=$`echo $ac_var`
     493  case $ac_val in
     494    [\\/$]* | ?:[\\/]* ) ;;
     495    NONE ) ;;
     496    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
     497   { (exit 1); exit 1; }; };;
    447498  esac
    448499done
    449500
    450 # NLS nuisances.
    451 # Only set these to C if already set.  These must not be set unconditionally
    452 # because not all systems understand e.g. LANG=C (notably SCO).
    453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    454 # Non-C LC_CTYPE values break the ctype check.
    455 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    458 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    459 
    460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    461 rm -rf conftest* confdefs.h
    462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    463 echo > confdefs.h
    464 
    465 # A filename unique to this package, relative to the directory that
    466 # configure is in, which we can look for to find out if srcdir is correct.
    467 ac_unique_file=lib/text_t.h
     501# There might be people who depend on the old broken behavior: `$host'
     502# used to hold the argument of --host etc.
     503build=$build_alias
     504host=$host_alias
     505target=$target_alias
     506
     507# FIXME: should be removed in autoconf 3.0.
     508if test "x$host_alias" != x; then
     509  if test "x$build_alias" = x; then
     510    cross_compiling=maybe
     511    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     512    If a cross compiler is detected then cross compile mode will be used." >&2
     513  elif test "x$build_alias" != "x$host_alias"; then
     514    cross_compiling=yes
     515  fi
     516fi
     517
     518ac_tool_prefix=
     519test -n "$host_alias" && ac_tool_prefix=$host_alias-
     520
     521test "$silent" = yes && exec 6>/dev/null
    468522
    469523# Find the source files, if location was not specified.
     
    472526  # Try the directory containing this script, then its parent.
    473527  ac_prog=$0
    474   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
     528  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    475529  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    476530  srcdir=$ac_confdir
     
    483537if test ! -r $srcdir/$ac_unique_file; then
    484538  if test "$ac_srcdir_defaulted" = yes; then
    485     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     539    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
     540   { (exit 1); exit 1; }; }
    486541  else
    487     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     542    { echo "$as_me: error: cannot find sources in $srcdir" >&2
     543   { (exit 1); exit 1; }; }
    488544  fi
    489545fi
    490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    491 
     546srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     547ac_env_build_alias_set=${build_alias+set}
     548ac_env_build_alias_value=$build_alias
     549ac_cv_env_build_alias_set=${build_alias+set}
     550ac_cv_env_build_alias_value=$build_alias
     551ac_env_host_alias_set=${host_alias+set}
     552ac_env_host_alias_value=$host_alias
     553ac_cv_env_host_alias_set=${host_alias+set}
     554ac_cv_env_host_alias_value=$host_alias
     555ac_env_target_alias_set=${target_alias+set}
     556ac_env_target_alias_value=$target_alias
     557ac_cv_env_target_alias_set=${target_alias+set}
     558ac_cv_env_target_alias_value=$target_alias
     559ac_env_CC_set=${CC+set}
     560ac_env_CC_value=$CC
     561ac_cv_env_CC_set=${CC+set}
     562ac_cv_env_CC_value=$CC
     563ac_env_CFLAGS_set=${CFLAGS+set}
     564ac_env_CFLAGS_value=$CFLAGS
     565ac_cv_env_CFLAGS_set=${CFLAGS+set}
     566ac_cv_env_CFLAGS_value=$CFLAGS
     567ac_env_LDFLAGS_set=${LDFLAGS+set}
     568ac_env_LDFLAGS_value=$LDFLAGS
     569ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     570ac_cv_env_LDFLAGS_value=$LDFLAGS
     571ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     572ac_env_CPPFLAGS_value=$CPPFLAGS
     573ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     574ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     575ac_env_CXX_set=${CXX+set}
     576ac_env_CXX_value=$CXX
     577ac_cv_env_CXX_set=${CXX+set}
     578ac_cv_env_CXX_value=$CXX
     579ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     580ac_env_CXXFLAGS_value=$CXXFLAGS
     581ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     582ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     583ac_env_CPP_set=${CPP+set}
     584ac_env_CPP_value=$CPP
     585ac_cv_env_CPP_set=${CPP+set}
     586ac_cv_env_CPP_value=$CPP
     587
     588#
     589# Report the --help message.
     590#
     591if test "$ac_init_help" = "long"; then
     592  # Omit some internal or obsolete options to make the list less imposing.
     593  # This message is too long to be a string in the A/UX 3.1 sh.
     594  cat <<EOF
     595\`configure' configures this package to adapt to many kinds of systems.
     596
     597Usage: $0 [OPTION]... [VAR=VALUE]...
     598
     599To assign environment variables (e.g., CC, CFLAGS...), specify them as
     600VAR=VALUE.  See below for descriptions of some of the useful variables.
     601
     602Defaults for the options are specified in brackets.
     603
     604Configuration:
     605  -h, --help              display this help and exit
     606      --help=short        display options specific to this package
     607      --help=recursive    display the short help of all the included packages
     608  -V, --version           display version information and exit
     609  -q, --quiet, --silent   do not print \`checking...' messages
     610      --cache-file=FILE   cache test results in FILE [disabled]
     611  -C, --config-cache      alias for \`--cache-file=config.cache'
     612  -n, --no-create         do not create output files
     613      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     614
     615EOF
     616
     617  cat <<EOF
     618Installation directories:
     619  --prefix=PREFIX         install architecture-independent files in PREFIX
     620                          [$ac_default_prefix]
     621  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     622                          [PREFIX]
     623
     624By default, \`make install' will install all the files in
     625\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     626an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     627for instance \`--prefix=\$HOME'.
     628
     629For better control, use the options below.
     630
     631Fine tuning of the installation directories:
     632  --bindir=DIR           user executables [EPREFIX/bin]
     633  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     634  --libexecdir=DIR       program executables [EPREFIX/libexec]
     635  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     636  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     637  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     638  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     639  --libdir=DIR           object code libraries [EPREFIX/lib]
     640  --includedir=DIR       C header files [PREFIX/include]
     641  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     642  --infodir=DIR          info documentation [PREFIX/info]
     643  --mandir=DIR           man documentation [PREFIX/man]
     644EOF
     645
     646  cat <<\EOF
     647
     648System types:
     649  --build=BUILD     configure for building on BUILD [guessed]
     650  --host=HOST       build programs to run on HOST [BUILD]
     651  --target=TARGET   configure for building compilers for TARGET [HOST]
     652EOF
     653fi
     654
     655if test -n "$ac_init_help"; then
     656
     657  cat <<\EOF
     658
     659Optional Features:
     660  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     661  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     662  --enable-corba          Enable CORBA support
     663  --enable-z3950          Enable Z39.50 client support
     664
     665Optional Packages:
     666  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     667  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     668  --with-micodir          Use installed MICO directory
     669  --with-gdbm=dir         Use local gdbm library and headers
     670  --with-dmalloc          use dmalloc, as in
     671                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
     672  --with-regex            use older regex in lieu of GNU rx for matching
     673
     674Some influential environment variables:
     675  CC          C compiler command
     676  CFLAGS      C compiler flags
     677  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     678              nonstandard directory <lib dir>
     679  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     680              headers in a nonstandard directory <include dir>
     681  CXX         C++ compiler command
     682  CXXFLAGS    C++ compiler flags
     683  CPP         C preprocessor
     684
     685Use these variables to override the choices made by `configure' or to help
     686it to find libraries and programs with nonstandard names/locations.
     687
     688EOF
     689fi
     690
     691if test "$ac_init_help" = "recursive"; then
     692  # If there are subdirs, report their specific --help.
     693  ac_popdir=`pwd`
     694  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
     695    cd $ac_subdir
     696    # A "../" for each directory in /$ac_subdir.
     697    ac_dots=`echo $ac_subdir |
     698             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
     699
     700    case $srcdir in
     701    .) # No --srcdir option.  We are building in place.
     702      ac_sub_srcdir=$srcdir ;;
     703    [\\/]* | ?:[\\/]* ) # Absolute path.
     704      ac_sub_srcdir=$srcdir/$ac_subdir ;;
     705    *) # Relative path.
     706      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
     707    esac
     708
     709    # Check for guested configure; otherwise get Cygnus style configure.
     710    if test -f $ac_sub_srcdir/configure.gnu; then
     711      echo
     712      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
     713    elif test -f $ac_sub_srcdir/configure; then
     714      echo
     715      $SHELL $ac_sub_srcdir/configure  --help=recursive
     716    elif test -f $ac_sub_srcdir/configure.ac ||
     717           test -f $ac_sub_srcdir/configure.in; then
     718      echo
     719      $ac_configure --help
     720    else
     721      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
     722    fi
     723    cd $ac_popdir
     724  done
     725fi
     726
     727test -n "$ac_init_help" && exit 0
     728if $ac_init_version; then
     729  cat <<\EOF
     730
     731Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     732Free Software Foundation, Inc.
     733This configure script is free software; the Free Software Foundation
     734gives unlimited permission to copy, distribute and modify it.
     735EOF
     736  exit 0
     737fi
     738exec 5>config.log
     739cat >&5 <<EOF
     740This file contains any messages produced by compilers while
     741running configure, to aid debugging if configure makes a mistake.
     742
     743It was created by $as_me, which was
     744generated by GNU Autoconf 2.50.  Invocation command line was
     745
     746  $ $0 $@
     747
     748EOF
     749{
     750cat <<_ASUNAME
     751## ---------- ##
     752## Platform.  ##
     753## ---------- ##
     754
     755hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     756uname -m = `(uname -m) 2>/dev/null || echo unknown`
     757uname -r = `(uname -r) 2>/dev/null || echo unknown`
     758uname -s = `(uname -s) 2>/dev/null || echo unknown`
     759uname -v = `(uname -v) 2>/dev/null || echo unknown`
     760
     761/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     762/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     763
     764/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     765/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     766/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     767hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     768/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     769/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     770/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     771
     772PATH = $PATH
     773
     774_ASUNAME
     775} >&5
     776
     777cat >&5 <<EOF
     778## ------------ ##
     779## Core tests.  ##
     780## ------------ ##
     781
     782EOF
     783
     784# Keep a trace of the command line.
     785# Strip out --no-create and --no-recursion so they do not pile up.
     786# Also quote any args containing shell meta-characters.
     787ac_configure_args=
     788ac_sep=
     789for ac_arg
     790do
     791  case $ac_arg in
     792  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     793  | --no-cr | --no-c) ;;
     794  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     795  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     796  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     797    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
     798    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     799    ac_sep=" " ;;
     800  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     801     ac_sep=" " ;;
     802  esac
     803  # Get rid of the leading space.
     804done
     805
     806# When interrupted or exit'd, cleanup temporary files, and complete
     807# config.log.  We remove comments because anyway the quotes in there
     808# would cause problems or look ugly.
     809trap 'exit_status=$?
     810  # Save into config.log some information that might help in debugging.
     811  echo >&5
     812  echo "## ----------------- ##" >&5
     813  echo "## Cache variables.  ##" >&5
     814  echo "## ----------------- ##" >&5
     815  echo >&5
     816  # The following way of writing the cache mishandles newlines in values,
     817{
     818  (set) 2>&1 |
     819    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     820    *ac_space=\ *)
     821      sed -n \
     822        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     823          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     824      ;;
     825    *)
     826      sed -n \
     827        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     828      ;;
     829    esac;
     830} >&5
     831  sed "/^$/d" confdefs.h >conftest.log
     832  if test -s conftest.log; then
     833    echo >&5
     834    echo "## ------------ ##" >&5
     835    echo "## confdefs.h.  ##" >&5
     836    echo "## ------------ ##" >&5
     837    echo >&5
     838    cat conftest.log >&5
     839  fi
     840  (echo; echo) >&5
     841  test "$ac_signal" != 0 &&
     842    echo "$as_me: caught signal $ac_signal" >&5
     843  echo "$as_me: exit $exit_status" >&5
     844  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
     845    exit $exit_status
     846     ' 0
     847for ac_signal in 1 2 13 15; do
     848  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
     849done
     850ac_signal=0
     851
     852# confdefs.h avoids OS command line length limits that DEFS can exceed.
     853rm -rf conftest* confdefs.h
     854# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     855echo >confdefs.h
     856
     857# Let the site file select an alternate cache file if it wants to.
    492858# Prefer explicitly selected file to automatically selected ones.
    493859if test -z "$CONFIG_SITE"; then
     
    500866for ac_site_file in $CONFIG_SITE; do
    501867  if test -r "$ac_site_file"; then
    502     echo "loading site script $ac_site_file"
     868    { echo "$as_me:868: loading site script $ac_site_file" >&5
     869echo "$as_me: loading site script $ac_site_file" >&6;}
     870    cat "$ac_site_file" >&5
    503871    . "$ac_site_file"
    504872  fi
     
    506874
    507875if test -r "$cache_file"; then
    508   echo "loading cache $cache_file"
    509   . $cache_file
    510 else
    511   echo "creating cache $cache_file"
    512   > $cache_file
     876  # Some versions of bash will fail to source /dev/null (special
     877  # files actually), so we avoid doing that.
     878  if test -f "$cache_file"; then
     879    { echo "$as_me:879: loading cache $cache_file" >&5
     880echo "$as_me: loading cache $cache_file" >&6;}
     881    case $cache_file in
     882      [\\/]* | ?:[\\/]* ) . $cache_file;;
     883      *)                      . ./$cache_file;;
     884    esac
     885  fi
     886else
     887  { echo "$as_me:887: creating cache $cache_file" >&5
     888echo "$as_me: creating cache $cache_file" >&6;}
     889  >$cache_file
     890fi
     891
     892# Check that the precious variables saved in the cache have kept the same
     893# value.
     894ac_suggest_removing_cache=false
     895for ac_var in `(set) 2>&1 |
     896               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     897  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     898  eval ac_new_set=\$ac_env_${ac_var}_set
     899  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     900  eval ac_new_val="\$ac_env_${ac_var}_value"
     901  case $ac_old_set,$ac_new_set in
     902    set,)
     903      { echo "$as_me:903: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     904echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     905      ac_suggest_removing_cache=: ;;
     906    ,set)
     907      { echo "$as_me:907: WARNING: \`$ac_var' was not set in the previous run" >&5
     908echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
     909      ac_suggest_removing_cache=: ;;
     910    ,);;
     911    *)
     912      if test "x$ac_old_val" != "x$ac_new_val"; then
     913        { echo "$as_me:913: WARNING: \`$ac_var' has changed since the previous run:" >&5
     914echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
     915        { echo "$as_me:915: WARNING:   former value:  $ac_old_val" >&5
     916echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
     917        { echo "$as_me:917: WARNING:   current value: $ac_new_val" >&5
     918echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
     919        ac_suggest_removing_cache=:
     920      fi;;
     921  esac
     922done
     923if $ac_suggest_removing_cache; then
     924  { echo "$as_me:924: WARNING: changes in the environment can compromise the build" >&5
     925echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
     926  { echo "$as_me:926: WARNING: consider removing $cache_file and starting over" >&5
     927echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
    513928fi
    514929
    515930ac_ext=c
    516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    517931ac_cpp='$CPP $CPPFLAGS'
    518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    520 cross_compiling=$ac_cv_prog_cc_cross
    521 
    522 ac_exeext=
    523 ac_objext=o
    524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    525   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
    526   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    527     ac_n= ac_c='
    528 ' ac_t='    '
    529   else
    530     ac_n=-n ac_c= ac_t=
    531   fi
    532 else
    533   ac_n= ac_c='\c' ac_t=
    534 fi
    535 
    536 
    537 
     932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     934ac_compiler_gnu=$ac_cv_c_compiler_gnu
     935
     936case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     937  *c*,-n*) ECHO_N= ECHO_C='
     938' ECHO_T='  ' ;;
     939  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     940  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
     941esac
     942echo "#! $SHELL" >conftest.sh
     943echo  "exit 0"   >>conftest.sh
     944chmod +x conftest.sh
     945if { (echo "$as_me:945: PATH=\".;.\"; conftest.sh") >&5
     946  (PATH=".;."; conftest.sh) 2>&5
     947  ac_status=$?
     948  echo "$as_me:948: \$? = $ac_status" >&5
     949  (exit $ac_status); }; then
     950  ac_path_separator=';'
     951else
     952  ac_path_separator=:
     953fi
     954PATH_SEPARATOR="$ac_path_separator"
     955rm -f conftest.sh
     956
     957ac_config_headers="$ac_config_headers config.h"
    538958
    539959PACKAGE=gsdl
    540960VERSION=2.1
    541 cat >> confdefs.h <<EOF
     961cat >>confdefs.h <<EOF
    542962#define PACKAGE "$PACKAGE"
    543963EOF
    544964
    545 cat >> confdefs.h <<EOF
     965cat >>confdefs.h <<EOF
    546966#define VERSION "$VERSION"
    547967EOF
    548 
    549 
    550 
    551968
    552969USE_FASTCGI=0
    553970if test USE_FASTCGI = 1; then
    554 cat >> confdefs.h <<\EOF
     971cat >>confdefs.h <<\EOF
    555972#define USE_FASTCGI 1
    556973EOF
    557974
     975fi
     976
     977if test USE_LANGACTION = 1; then
     978cat >>confdefs.h <<\EOF
     979#define USE_LANGACTION 1
     980EOF
    558981
    559982fi
     
    565988else
    566989  USE_CORBA=0
    567 fi
    568 
    569 cat >> confdefs.h <<EOF
     990fi;
     991cat >>confdefs.h <<EOF
    570992#define USE_CORBA $USE_CORBA
    571993EOF
    572 
    573 
    574994
    575995# Check whether --with-micodir or --without-micodir was given.
     
    579999else
    5801000  MICO_DIR="default"
    581 fi
    582 
    583 cat >> confdefs.h <<EOF
     1001fi;
     1002cat >>confdefs.h <<EOF
    5841003#define MICO_DIR "$MICO_DIR"
    5851004EOF
    586 
    587 
    5881005
    5891006# Check whether --enable-z3950 or --disable-z3950 was given.
     
    5931010else
    5941011  USE_Z3950=0
    595 fi
    596 
     1012fi;
    5971013if test USE_Z3950 = 1; then
    598 cat >> confdefs.h <<\EOF
     1014cat >>confdefs.h <<\EOF
    5991015#define USE_Z3950 $USE_Z3950
    6001016EOF
    601 
    6021017
    6031018fi
     
    6071022  withval="$with_gdbm"
    6081023  gdbmdir=$withval
    609 fi
    610 
     1024fi;
    6111025
    6121026LDFLAGS=
     
    6151029fi
    6161030
    617 
    618 # Extract the first word of "gcc", so it can be a program name with args.
    619 set dummy gcc; ac_word=$2
    620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    621 echo "configure:622: checking for $ac_word" >&5
    622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    623   echo $ac_n "(cached) $ac_c" 1>&6
     1031ac_ext=c
     1032ac_cpp='$CPP $CPPFLAGS'
     1033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1035ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1036if test -n "$ac_tool_prefix"; then
     1037  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1038set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1039echo "$as_me:1039: checking for $ac_word" >&5
     1040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1041if test "${ac_cv_prog_CC+set}" = set; then
     1042  echo $ECHO_N "(cached) $ECHO_C" >&6
    6241043else
    6251044  if test -n "$CC"; then
    6261045  ac_cv_prog_CC="$CC" # Let the user override the test.
    6271046else
    628   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    629   ac_dummy="$PATH"
    630   for ac_dir in $ac_dummy; do
    631     test -z "$ac_dir" && ac_dir=.
    632     if test -f $ac_dir/$ac_word; then
    633       ac_cv_prog_CC="gcc"
    634       break
    635     fi
    636   done
    637   IFS="$ac_save_ifs"
    638 fi
    639 fi
    640 CC="$ac_cv_prog_CC"
     1047  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1048ac_dummy="$PATH"
     1049for ac_dir in $ac_dummy; do
     1050  IFS=$ac_save_IFS
     1051  test -z "$ac_dir" && ac_dir=.
     1052  $as_executable_p "$ac_dir/$ac_word" || continue
     1053ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1054echo "$as_me:1054: found $ac_dir/$ac_word" >&5
     1055break
     1056done
     1057
     1058fi
     1059fi
     1060CC=$ac_cv_prog_CC
    6411061if test -n "$CC"; then
    642   echo "$ac_t""$CC" 1>&6
    643 else
    644   echo "$ac_t""no" 1>&6
    645 fi
    646 
     1062  echo "$as_me:1062: result: $CC" >&5
     1063echo "${ECHO_T}$CC" >&6
     1064else
     1065  echo "$as_me:1065: result: no" >&5
     1066echo "${ECHO_T}no" >&6
     1067fi
     1068
     1069fi
     1070if test -z "$ac_cv_prog_CC"; then
     1071  ac_ct_CC=$CC
     1072  # Extract the first word of "gcc", so it can be a program name with args.
     1073set dummy gcc; ac_word=$2
     1074echo "$as_me:1074: checking for $ac_word" >&5
     1075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1077  echo $ECHO_N "(cached) $ECHO_C" >&6
     1078else
     1079  if test -n "$ac_ct_CC"; then
     1080  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1081else
     1082  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1083ac_dummy="$PATH"
     1084for ac_dir in $ac_dummy; do
     1085  IFS=$ac_save_IFS
     1086  test -z "$ac_dir" && ac_dir=.
     1087  $as_executable_p "$ac_dir/$ac_word" || continue
     1088ac_cv_prog_ac_ct_CC="gcc"
     1089echo "$as_me:1089: found $ac_dir/$ac_word" >&5
     1090break
     1091done
     1092
     1093fi
     1094fi
     1095ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1096if test -n "$ac_ct_CC"; then
     1097  echo "$as_me:1097: result: $ac_ct_CC" >&5
     1098echo "${ECHO_T}$ac_ct_CC" >&6
     1099else
     1100  echo "$as_me:1100: result: no" >&5
     1101echo "${ECHO_T}no" >&6
     1102fi
     1103
     1104  CC=$ac_ct_CC
     1105else
     1106  CC="$ac_cv_prog_CC"
     1107fi
     1108
     1109if test -z "$CC"; then
     1110  if test -n "$ac_tool_prefix"; then
     1111  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1112set dummy ${ac_tool_prefix}cc; ac_word=$2
     1113echo "$as_me:1113: checking for $ac_word" >&5
     1114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1115if test "${ac_cv_prog_CC+set}" = set; then
     1116  echo $ECHO_N "(cached) $ECHO_C" >&6
     1117else
     1118  if test -n "$CC"; then
     1119  ac_cv_prog_CC="$CC" # Let the user override the test.
     1120else
     1121  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1122ac_dummy="$PATH"
     1123for ac_dir in $ac_dummy; do
     1124  IFS=$ac_save_IFS
     1125  test -z "$ac_dir" && ac_dir=.
     1126  $as_executable_p "$ac_dir/$ac_word" || continue
     1127ac_cv_prog_CC="${ac_tool_prefix}cc"
     1128echo "$as_me:1128: found $ac_dir/$ac_word" >&5
     1129break
     1130done
     1131
     1132fi
     1133fi
     1134CC=$ac_cv_prog_CC
     1135if test -n "$CC"; then
     1136  echo "$as_me:1136: result: $CC" >&5
     1137echo "${ECHO_T}$CC" >&6
     1138else
     1139  echo "$as_me:1139: result: no" >&5
     1140echo "${ECHO_T}no" >&6
     1141fi
     1142
     1143fi
     1144if test -z "$ac_cv_prog_CC"; then
     1145  ac_ct_CC=$CC
     1146  # Extract the first word of "cc", so it can be a program name with args.
     1147set dummy cc; ac_word=$2
     1148echo "$as_me:1148: checking for $ac_word" >&5
     1149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1150if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1151  echo $ECHO_N "(cached) $ECHO_C" >&6
     1152else
     1153  if test -n "$ac_ct_CC"; then
     1154  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1155else
     1156  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1157ac_dummy="$PATH"
     1158for ac_dir in $ac_dummy; do
     1159  IFS=$ac_save_IFS
     1160  test -z "$ac_dir" && ac_dir=.
     1161  $as_executable_p "$ac_dir/$ac_word" || continue
     1162ac_cv_prog_ac_ct_CC="cc"
     1163echo "$as_me:1163: found $ac_dir/$ac_word" >&5
     1164break
     1165done
     1166
     1167fi
     1168fi
     1169ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1170if test -n "$ac_ct_CC"; then
     1171  echo "$as_me:1171: result: $ac_ct_CC" >&5
     1172echo "${ECHO_T}$ac_ct_CC" >&6
     1173else
     1174  echo "$as_me:1174: result: no" >&5
     1175echo "${ECHO_T}no" >&6
     1176fi
     1177
     1178  CC=$ac_ct_CC
     1179else
     1180  CC="$ac_cv_prog_CC"
     1181fi
     1182
     1183fi
    6471184if test -z "$CC"; then
    6481185  # Extract the first word of "cc", so it can be a program name with args.
    6491186set dummy cc; ac_word=$2
    650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    651 echo "configure:652: checking for $ac_word" >&5
    652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    653   echo $ac_n "(cached) $ac_c" 1>&6
     1187echo "$as_me:1187: checking for $ac_word" >&5
     1188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1189if test "${ac_cv_prog_CC+set}" = set; then
     1190  echo $ECHO_N "(cached) $ECHO_C" >&6
    6541191else
    6551192  if test -n "$CC"; then
    6561193  ac_cv_prog_CC="$CC" # Let the user override the test.
    6571194else
    658   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    6591195  ac_prog_rejected=no
    660   ac_dummy="$PATH"
    661   for ac_dir in $ac_dummy; do
    662     test -z "$ac_dir" && ac_dir=.
    663     if test -f $ac_dir/$ac_word; then
    664       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    665         ac_prog_rejected=yes
    666     continue
    667       fi
    668       ac_cv_prog_CC="cc"
    669       break
    670     fi
    671   done
    672   IFS="$ac_save_ifs"
     1196  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1197ac_dummy="$PATH"
     1198for ac_dir in $ac_dummy; do
     1199  IFS=$ac_save_IFS
     1200  test -z "$ac_dir" && ac_dir=.
     1201  $as_executable_p "$ac_dir/$ac_word" || continue
     1202if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     1203  ac_prog_rejected=yes
     1204  continue
     1205fi
     1206ac_cv_prog_CC="cc"
     1207echo "$as_me:1207: found $ac_dir/$ac_word" >&5
     1208break
     1209done
     1210
    6731211if test $ac_prog_rejected = yes; then
    6741212  # We found a bogon in the path, so make sure we never use it.
    6751213  set dummy $ac_cv_prog_CC
    6761214  shift
    677   if test $# -gt 0; then
     1215  if test $# != 0; then
    6781216    # We chose a different compiler from the bogus one.
    6791217    # However, it has the same basename, so the bogon will be chosen
    6801218    # first if we set CC to just the basename; use the full file name.
    6811219    shift
    682     set dummy "$ac_dir/$ac_word" "$@"
     1220    set dummy "$ac_dir/$ac_word" ${1+"$@"}
    6831221    shift
    6841222    ac_cv_prog_CC="$@"
     
    6871225fi
    6881226fi
    689 CC="$ac_cv_prog_CC"
     1227CC=$ac_cv_prog_CC
    6901228if test -n "$CC"; then
    691   echo "$ac_t""$CC" 1>&6
    692 else
    693   echo "$ac_t""no" 1>&6
    694 fi
    695 
    696   if test -z "$CC"; then
    697     case "`uname -s`" in
    698     *win32* | *WIN32*)
    699       # Extract the first word of "cl", so it can be a program name with args.
    700 set dummy cl; ac_word=$2
    701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    702 echo "configure:703: checking for $ac_word" >&5
    703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    704   echo $ac_n "(cached) $ac_c" 1>&6
     1229  echo "$as_me:1229: result: $CC" >&5
     1230echo "${ECHO_T}$CC" >&6
     1231else
     1232  echo "$as_me:1232: result: no" >&5
     1233echo "${ECHO_T}no" >&6
     1234fi
     1235
     1236fi
     1237if test -z "$CC"; then
     1238  if test -n "$ac_tool_prefix"; then
     1239  for ac_prog in cl
     1240  do
     1241    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1243echo "$as_me:1243: checking for $ac_word" >&5
     1244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1245if test "${ac_cv_prog_CC+set}" = set; then
     1246  echo $ECHO_N "(cached) $ECHO_C" >&6
    7051247else
    7061248  if test -n "$CC"; then
    7071249  ac_cv_prog_CC="$CC" # Let the user override the test.
    7081250else
    709   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    710   ac_dummy="$PATH"
    711   for ac_dir in $ac_dummy; do
    712     test -z "$ac_dir" && ac_dir=.
    713     if test -f $ac_dir/$ac_word; then
    714       ac_cv_prog_CC="cl"
    715       break
     1251  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1252ac_dummy="$PATH"
     1253for ac_dir in $ac_dummy; do
     1254  IFS=$ac_save_IFS
     1255  test -z "$ac_dir" && ac_dir=.
     1256  $as_executable_p "$ac_dir/$ac_word" || continue
     1257ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1258echo "$as_me:1258: found $ac_dir/$ac_word" >&5
     1259break
     1260done
     1261
     1262fi
     1263fi
     1264CC=$ac_cv_prog_CC
     1265if test -n "$CC"; then
     1266  echo "$as_me:1266: result: $CC" >&5
     1267echo "${ECHO_T}$CC" >&6
     1268else
     1269  echo "$as_me:1269: result: no" >&5
     1270echo "${ECHO_T}no" >&6
     1271fi
     1272
     1273    test -n "$CC" && break
     1274  done
     1275fi
     1276if test -z "$CC"; then
     1277  ac_ct_CC=$CC
     1278  for ac_prog in cl
     1279do
     1280  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1281set dummy $ac_prog; ac_word=$2
     1282echo "$as_me:1282: checking for $ac_word" >&5
     1283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1284if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1285  echo $ECHO_N "(cached) $ECHO_C" >&6
     1286else
     1287  if test -n "$ac_ct_CC"; then
     1288  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1289else
     1290  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1291ac_dummy="$PATH"
     1292for ac_dir in $ac_dummy; do
     1293  IFS=$ac_save_IFS
     1294  test -z "$ac_dir" && ac_dir=.
     1295  $as_executable_p "$ac_dir/$ac_word" || continue
     1296ac_cv_prog_ac_ct_CC="$ac_prog"
     1297echo "$as_me:1297: found $ac_dir/$ac_word" >&5
     1298break
     1299done
     1300
     1301fi
     1302fi
     1303ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1304if test -n "$ac_ct_CC"; then
     1305  echo "$as_me:1305: result: $ac_ct_CC" >&5
     1306echo "${ECHO_T}$ac_ct_CC" >&6
     1307else
     1308  echo "$as_me:1308: result: no" >&5
     1309echo "${ECHO_T}no" >&6
     1310fi
     1311
     1312  test -n "$ac_ct_CC" && break
     1313done
     1314
     1315  CC=$ac_ct_CC
     1316fi
     1317
     1318fi
     1319
     1320test -z "$CC" && { { echo "$as_me:1320: error: no acceptable cc found in \$PATH" >&5
     1321echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
     1322   { (exit 1); exit 1; }; }
     1323
     1324cat >conftest.$ac_ext <<_ACEOF
     1325#line 1325 "configure"
     1326#include "confdefs.h"
     1327
     1328int
     1329main ()
     1330{
     1331
     1332  ;
     1333  return 0;
     1334}
     1335_ACEOF
     1336ac_clean_files_save=$ac_clean_files
     1337ac_clean_files="$ac_clean_files a.out a.exe"
     1338# Try to create an executable without -o first, disregard a.out.
     1339# It will help us diagnose broken compiler, and finding out an intuition
     1340# of exeext.
     1341echo "$as_me:1341: checking for C compiler default output" >&5
     1342echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
     1343ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1344if { (eval echo "$as_me:1344: \"$ac_link_default\"") >&5
     1345  (eval $ac_link_default) 2>&5
     1346  ac_status=$?
     1347  echo "$as_me:1347: \$? = $ac_status" >&5
     1348  (exit $ac_status); }; then
     1349  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
     1350  case $ac_file in
     1351    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1352    a.out ) # We found the default executable, but exeext='' is most
     1353            # certainly right.
     1354            break;;
     1355    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1356          export ac_cv_exeext
     1357          break;;
     1358    * ) break;;
     1359  esac
     1360done
     1361else
     1362  echo "$as_me: failed program was:" >&5
     1363cat conftest.$ac_ext >&5
     1364{ { echo "$as_me:1364: error: C compiler cannot create executables" >&5
     1365echo "$as_me: error: C compiler cannot create executables" >&2;}
     1366   { (exit 77); exit 77; }; }
     1367fi
     1368
     1369ac_exeext=$ac_cv_exeext
     1370echo "$as_me:1370: result: $ac_file" >&5
     1371echo "${ECHO_T}$ac_file" >&6
     1372
     1373# Check the compiler produces executables we can run.  If not, either
     1374# the compiler is broken, or we cross compile.
     1375echo "$as_me:1375: checking whether the C compiler works" >&5
     1376echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     1377# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1378# If not cross compiling, check that we can run a simple program.
     1379if test "$cross_compiling" != yes; then
     1380  if { ac_try='./$ac_file'
     1381  { (eval echo "$as_me:1381: \"$ac_try\"") >&5
     1382  (eval $ac_try) 2>&5
     1383  ac_status=$?
     1384  echo "$as_me:1384: \$? = $ac_status" >&5
     1385  (exit $ac_status); }; }; then
     1386    cross_compiling=no
     1387  else
     1388    if test "$cross_compiling" = maybe; then
     1389    cross_compiling=yes
     1390    else
     1391    { { echo "$as_me:1391: error: cannot run C compiled programs.
     1392If you meant to cross compile, use \`--host'." >&5
     1393echo "$as_me: error: cannot run C compiled programs.
     1394If you meant to cross compile, use \`--host'." >&2;}
     1395   { (exit 1); exit 1; }; }
    7161396    fi
    717   done
    718   IFS="$ac_save_ifs"
    719 fi
    720 fi
    721 CC="$ac_cv_prog_CC"
    722 if test -n "$CC"; then
    723   echo "$ac_t""$CC" 1>&6
    724 else
    725   echo "$ac_t""no" 1>&6
    726 fi
    727  ;;
    728     esac
    7291397  fi
    730   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    731 fi
    732 
    733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    734 echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    735 
    736 ac_ext=c
    737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    738 ac_cpp='$CPP $CPPFLAGS'
    739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    741 cross_compiling=$ac_cv_prog_cc_cross
    742 
    743 cat > conftest.$ac_ext << EOF
    744 
    745 #line 746 "configure"
    746 #include "confdefs.h"
    747 
    748 main(){return(0);}
    749 EOF
    750 if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    751   ac_cv_prog_cc_works=yes
    752   # If we can't run a trivial program, we are probably using a cross compiler.
    753   if (./conftest; exit) 2>/dev/null; then
    754     ac_cv_prog_cc_cross=no
    755   else
    756     ac_cv_prog_cc_cross=yes
    757   fi
    758 else
    759   echo "configure: failed program was:" >&5
    760   cat conftest.$ac_ext >&5
    761   ac_cv_prog_cc_works=no
    762 fi
    763 rm -fr conftest*
    764 ac_ext=c
    765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    766 ac_cpp='$CPP $CPPFLAGS'
    767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    769 cross_compiling=$ac_cv_prog_cc_cross
    770 
    771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    772 if test $ac_cv_prog_cc_works = no; then
    773   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    774 fi
    775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    778 cross_compiling=$ac_cv_prog_cc_cross
    779 
    780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    781 echo "configure:782: checking whether we are using GNU C" >&5
    782 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    783   echo $ac_n "(cached) $ac_c" 1>&6
    784 else
    785   cat > conftest.c <<EOF
    786 #ifdef __GNUC__
    787   yes;
     1398fi
     1399echo "$as_me:1399: result: yes" >&5
     1400echo "${ECHO_T}yes" >&6
     1401
     1402rm -f a.out a.exe conftest$ac_cv_exeext
     1403ac_clean_files=$ac_clean_files_save
     1404# Check the compiler produces executables we can run.  If not, either
     1405# the compiler is broken, or we cross compile.
     1406echo "$as_me:1406: checking whether we are cross compiling" >&5
     1407echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1408echo "$as_me:1408: result: $cross_compiling" >&5
     1409echo "${ECHO_T}$cross_compiling" >&6
     1410
     1411echo "$as_me:1411: checking for executable suffix" >&5
     1412echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
     1413if { (eval echo "$as_me:1413: \"$ac_link\"") >&5
     1414  (eval $ac_link) 2>&5
     1415  ac_status=$?
     1416  echo "$as_me:1416: \$? = $ac_status" >&5
     1417  (exit $ac_status); }; then
     1418  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1419# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1420# work properly (i.e., refer to `conftest.exe'), while it won't with
     1421# `rm'.
     1422for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     1423  case $ac_file in
     1424    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1425    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1426          export ac_cv_exeext
     1427          break;;
     1428    * ) break;;
     1429  esac
     1430done
     1431else
     1432  { { echo "$as_me:1432: error: cannot compute EXEEXT: cannot compile and link" >&5
     1433echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
     1434   { (exit 1); exit 1; }; }
     1435fi
     1436
     1437rm -f conftest$ac_cv_exeext
     1438echo "$as_me:1438: result: $ac_cv_exeext" >&5
     1439echo "${ECHO_T}$ac_cv_exeext" >&6
     1440
     1441rm -f conftest.$ac_ext
     1442EXEEXT=$ac_cv_exeext
     1443ac_exeext=$EXEEXT
     1444echo "$as_me:1444: checking for object suffix" >&5
     1445echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
     1446if test "${ac_cv_objext+set}" = set; then
     1447  echo $ECHO_N "(cached) $ECHO_C" >&6
     1448else
     1449  cat >conftest.$ac_ext <<_ACEOF
     1450#line 1450 "configure"
     1451#include "confdefs.h"
     1452
     1453int
     1454main ()
     1455{
     1456
     1457  ;
     1458  return 0;
     1459}
     1460_ACEOF
     1461rm -f conftest.o conftest.obj
     1462if { (eval echo "$as_me:1462: \"$ac_compile\"") >&5
     1463  (eval $ac_compile) 2>&5
     1464  ac_status=$?
     1465  echo "$as_me:1465: \$? = $ac_status" >&5
     1466  (exit $ac_status); }; then
     1467  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1468  case $ac_file in
     1469    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1470    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1471       break;;
     1472  esac
     1473done
     1474else
     1475  echo "$as_me: failed program was:" >&5
     1476cat conftest.$ac_ext >&5
     1477{ { echo "$as_me:1477: error: cannot compute OBJEXT: cannot compile" >&5
     1478echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
     1479   { (exit 1); exit 1; }; }
     1480fi
     1481
     1482rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1483fi
     1484echo "$as_me:1484: result: $ac_cv_objext" >&5
     1485echo "${ECHO_T}$ac_cv_objext" >&6
     1486OBJEXT=$ac_cv_objext
     1487ac_objext=$OBJEXT
     1488echo "$as_me:1488: checking whether we are using the GNU C compiler" >&5
     1489echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1490if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1491  echo $ECHO_N "(cached) $ECHO_C" >&6
     1492else
     1493  cat >conftest.$ac_ext <<_ACEOF
     1494#line 1494 "configure"
     1495#include "confdefs.h"
     1496
     1497int
     1498main ()
     1499{
     1500#ifndef __GNUC__
     1501       choke me
    7881502#endif
    789 EOF
    790 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    791   ac_cv_prog_gcc=yes
    792 else
    793   ac_cv_prog_gcc=no
    794 fi
    795 fi
    796 
    797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    798 
    799 if test $ac_cv_prog_gcc = yes; then
    800   GCC=yes
    801 else
    802   GCC=
    803 fi
    804 
    805 ac_test_CFLAGS="${CFLAGS+set}"
    806 ac_save_CFLAGS="$CFLAGS"
    807 CFLAGS=
    808 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    809 echo "configure:810: checking whether ${CC-cc} accepts -g" >&5
    810 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    811   echo $ac_n "(cached) $ac_c" 1>&6
    812 else
    813   echo 'void f(){}' > conftest.c
    814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1503
     1504  ;
     1505  return 0;
     1506}
     1507_ACEOF
     1508rm -f conftest.$ac_objext
     1509if { (eval echo "$as_me:1509: \"$ac_compile\"") >&5
     1510  (eval $ac_compile) 2>&5
     1511  ac_status=$?
     1512  echo "$as_me:1512: \$? = $ac_status" >&5
     1513  (exit $ac_status); } &&
     1514         { ac_try='test -s conftest.$ac_objext'
     1515  { (eval echo "$as_me:1515: \"$ac_try\"") >&5
     1516  (eval $ac_try) 2>&5
     1517  ac_status=$?
     1518  echo "$as_me:1518: \$? = $ac_status" >&5
     1519  (exit $ac_status); }; }; then
     1520  ac_compiler_gnu=yes
     1521else
     1522  echo "$as_me: failed program was:" >&5
     1523cat conftest.$ac_ext >&5
     1524ac_compiler_gnu=no
     1525fi
     1526rm -f conftest.$ac_objext conftest.$ac_ext
     1527ac_cv_c_compiler_gnu=$ac_compiler_gnu
     1528
     1529fi
     1530echo "$as_me:1530: result: $ac_cv_c_compiler_gnu" >&5
     1531echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     1532GCC=`test $ac_compiler_gnu = yes && echo yes`
     1533ac_test_CFLAGS=${CFLAGS+set}
     1534ac_save_CFLAGS=$CFLAGS
     1535CFLAGS="-g"
     1536echo "$as_me:1536: checking whether $CC accepts -g" >&5
     1537echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     1538if test "${ac_cv_prog_cc_g+set}" = set; then
     1539  echo $ECHO_N "(cached) $ECHO_C" >&6
     1540else
     1541  cat >conftest.$ac_ext <<_ACEOF
     1542#line 1542 "configure"
     1543#include "confdefs.h"
     1544
     1545int
     1546main ()
     1547{
     1548
     1549  ;
     1550  return 0;
     1551}
     1552_ACEOF
     1553rm -f conftest.$ac_objext
     1554if { (eval echo "$as_me:1554: \"$ac_compile\"") >&5
     1555  (eval $ac_compile) 2>&5
     1556  ac_status=$?
     1557  echo "$as_me:1557: \$? = $ac_status" >&5
     1558  (exit $ac_status); } &&
     1559         { ac_try='test -s conftest.$ac_objext'
     1560  { (eval echo "$as_me:1560: \"$ac_try\"") >&5
     1561  (eval $ac_try) 2>&5
     1562  ac_status=$?
     1563  echo "$as_me:1563: \$? = $ac_status" >&5
     1564  (exit $ac_status); }; }; then
    8151565  ac_cv_prog_cc_g=yes
    8161566else
    817   ac_cv_prog_cc_g=no
    818 fi
    819 rm -f conftest*
    820 
    821 fi
    822 
    823 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     1567  echo "$as_me: failed program was:" >&5
     1568cat conftest.$ac_ext >&5
     1569ac_cv_prog_cc_g=no
     1570fi
     1571rm -f conftest.$ac_objext conftest.$ac_ext
     1572fi
     1573echo "$as_me:1573: result: $ac_cv_prog_cc_g" >&5
     1574echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    8241575if test "$ac_test_CFLAGS" = set; then
    825   CFLAGS="$ac_save_CFLAGS"
     1576  CFLAGS=$ac_save_CFLAGS
    8261577elif test $ac_cv_prog_cc_g = yes; then
    8271578  if test "$GCC" = yes; then
     
    8371588  fi
    8381589fi
    839 
    840 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
     1590# Some people use a C++ compiler to compile C.  Since we use `exit',
     1591# in C++ we need to declare it.  In case someone uses the same compiler
     1592# for both compiling C and C++ we need to have the C++ compiler decide
     1593# the declaration of exit, since it's the most demanding environment.
     1594cat >conftest.$ac_ext <<_ACEOF
     1595#ifndef __cplusplus
     1596  choke me
     1597#endif
     1598_ACEOF
     1599rm -f conftest.$ac_objext
     1600if { (eval echo "$as_me:1600: \"$ac_compile\"") >&5
     1601  (eval $ac_compile) 2>&5
     1602  ac_status=$?
     1603  echo "$as_me:1603: \$? = $ac_status" >&5
     1604  (exit $ac_status); } &&
     1605         { ac_try='test -s conftest.$ac_objext'
     1606  { (eval echo "$as_me:1606: \"$ac_try\"") >&5
     1607  (eval $ac_try) 2>&5
     1608  ac_status=$?
     1609  echo "$as_me:1609: \$? = $ac_status" >&5
     1610  (exit $ac_status); }; }; then
     1611  for ac_declaration in \
     1612   ''\
     1613   '#include <stdlib.h>' \
     1614   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1615   'extern "C" void std::exit (int); using std::exit;' \
     1616   'extern "C" void exit (int) throw ();' \
     1617   'extern "C" void exit (int);' \
     1618   'void exit (int);'
    8411619do
    842 # Extract the first word of "$ac_prog", so it can be a program name with args.
    843 set dummy $ac_prog; ac_word=$2
    844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    845 echo "configure:846: checking for $ac_word" >&5
    846 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    847   echo $ac_n "(cached) $ac_c" 1>&6
     1620  cat >conftest.$ac_ext <<_ACEOF
     1621#line 1621 "configure"
     1622#include "confdefs.h"
     1623#include <stdlib.h>
     1624$ac_declaration
     1625int
     1626main ()
     1627{
     1628exit (42);
     1629  ;
     1630  return 0;
     1631}
     1632_ACEOF
     1633rm -f conftest.$ac_objext
     1634if { (eval echo "$as_me:1634: \"$ac_compile\"") >&5
     1635  (eval $ac_compile) 2>&5
     1636  ac_status=$?
     1637  echo "$as_me:1637: \$? = $ac_status" >&5
     1638  (exit $ac_status); } &&
     1639         { ac_try='test -s conftest.$ac_objext'
     1640  { (eval echo "$as_me:1640: \"$ac_try\"") >&5
     1641  (eval $ac_try) 2>&5
     1642  ac_status=$?
     1643  echo "$as_me:1643: \$? = $ac_status" >&5
     1644  (exit $ac_status); }; }; then
     1645  :
     1646else
     1647  echo "$as_me: failed program was:" >&5
     1648cat conftest.$ac_ext >&5
     1649continue
     1650fi
     1651rm -f conftest.$ac_objext conftest.$ac_ext
     1652  cat >conftest.$ac_ext <<_ACEOF
     1653#line 1653 "configure"
     1654#include "confdefs.h"
     1655$ac_declaration
     1656int
     1657main ()
     1658{
     1659exit (42);
     1660  ;
     1661  return 0;
     1662}
     1663_ACEOF
     1664rm -f conftest.$ac_objext
     1665if { (eval echo "$as_me:1665: \"$ac_compile\"") >&5
     1666  (eval $ac_compile) 2>&5
     1667  ac_status=$?
     1668  echo "$as_me:1668: \$? = $ac_status" >&5
     1669  (exit $ac_status); } &&
     1670         { ac_try='test -s conftest.$ac_objext'
     1671  { (eval echo "$as_me:1671: \"$ac_try\"") >&5
     1672  (eval $ac_try) 2>&5
     1673  ac_status=$?
     1674  echo "$as_me:1674: \$? = $ac_status" >&5
     1675  (exit $ac_status); }; }; then
     1676  break
     1677else
     1678  echo "$as_me: failed program was:" >&5
     1679cat conftest.$ac_ext >&5
     1680fi
     1681rm -f conftest.$ac_objext conftest.$ac_ext
     1682done
     1683echo '#ifdef __cplusplus' >>confdefs.h
     1684echo $ac_declaration      >>confdefs.h
     1685echo '#endif'             >>confdefs.h
     1686
     1687else
     1688  echo "$as_me: failed program was:" >&5
     1689cat conftest.$ac_ext >&5
     1690fi
     1691rm -f conftest.$ac_objext conftest.$ac_ext
     1692ac_ext=c
     1693ac_cpp='$CPP $CPPFLAGS'
     1694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1696ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1697
     1698ac_ext=cc
     1699ac_cpp='$CXXCPP $CPPFLAGS'
     1700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     1703if test -n "$ac_tool_prefix"; then
     1704  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1705  do
     1706    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1708echo "$as_me:1708: checking for $ac_word" >&5
     1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1710if test "${ac_cv_prog_CXX+set}" = set; then
     1711  echo $ECHO_N "(cached) $ECHO_C" >&6
    8481712else
    8491713  if test -n "$CXX"; then
    8501714  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    8511715else
    852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    853   ac_dummy="$PATH"
    854   for ac_dir in $ac_dummy; do
    855     test -z "$ac_dir" && ac_dir=.
    856     if test -f $ac_dir/$ac_word; then
    857       ac_cv_prog_CXX="$ac_prog"
    858       break
    859     fi
     1716  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1717ac_dummy="$PATH"
     1718for ac_dir in $ac_dummy; do
     1719  IFS=$ac_save_IFS
     1720  test -z "$ac_dir" && ac_dir=.
     1721  $as_executable_p "$ac_dir/$ac_word" || continue
     1722ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1723echo "$as_me:1723: found $ac_dir/$ac_word" >&5
     1724break
     1725done
     1726
     1727fi
     1728fi
     1729CXX=$ac_cv_prog_CXX
     1730if test -n "$CXX"; then
     1731  echo "$as_me:1731: result: $CXX" >&5
     1732echo "${ECHO_T}$CXX" >&6
     1733else
     1734  echo "$as_me:1734: result: no" >&5
     1735echo "${ECHO_T}no" >&6
     1736fi
     1737
     1738    test -n "$CXX" && break
    8601739  done
    861   IFS="$ac_save_ifs"
    862 fi
    863 fi
    864 CXX="$ac_cv_prog_CXX"
    865 if test -n "$CXX"; then
    866   echo "$ac_t""$CXX" 1>&6
    867 else
    868   echo "$ac_t""no" 1>&6
    869 fi
    870 
    871 test -n "$CXX" && break
     1740fi
     1741if test -z "$CXX"; then
     1742  ac_ct_CXX=$CXX
     1743  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1744do
     1745  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1746set dummy $ac_prog; ac_word=$2
     1747echo "$as_me:1747: checking for $ac_word" >&5
     1748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1749if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1750  echo $ECHO_N "(cached) $ECHO_C" >&6
     1751else
     1752  if test -n "$ac_ct_CXX"; then
     1753  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1754else
     1755  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1756ac_dummy="$PATH"
     1757for ac_dir in $ac_dummy; do
     1758  IFS=$ac_save_IFS
     1759  test -z "$ac_dir" && ac_dir=.
     1760  $as_executable_p "$ac_dir/$ac_word" || continue
     1761ac_cv_prog_ac_ct_CXX="$ac_prog"
     1762echo "$as_me:1762: found $ac_dir/$ac_word" >&5
     1763break
    8721764done
    873 test -n "$CXX" || CXX="gcc"
    874 
    875 
    876 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    877 echo "configure:878: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    878 
    879 ac_ext=C
    880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    881 ac_cpp='$CXXCPP $CPPFLAGS'
    882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    884 cross_compiling=$ac_cv_prog_cxx_cross
    885 
    886 cat > conftest.$ac_ext << EOF
    887 
    888 #line 889 "configure"
    889 #include "confdefs.h"
    890 
    891 int main(){return(0);}
    892 EOF
    893 if { (eval echo configure:894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    894   ac_cv_prog_cxx_works=yes
    895   # If we can't run a trivial program, we are probably using a cross compiler.
    896   if (./conftest; exit) 2>/dev/null; then
    897     ac_cv_prog_cxx_cross=no
    898   else
    899     ac_cv_prog_cxx_cross=yes
    900   fi
    901 else
    902   echo "configure: failed program was:" >&5
    903   cat conftest.$ac_ext >&5
    904   ac_cv_prog_cxx_works=no
    905 fi
    906 rm -fr conftest*
    907 ac_ext=c
    908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    909 ac_cpp='$CPP $CPPFLAGS'
    910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    912 cross_compiling=$ac_cv_prog_cc_cross
    913 
    914 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    915 if test $ac_cv_prog_cxx_works = no; then
    916   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    917 fi
    918 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    919 echo "configure:920: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    920 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    921 cross_compiling=$ac_cv_prog_cxx_cross
    922 
    923 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    924 echo "configure:925: checking whether we are using GNU C++" >&5
    925 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    926   echo $ac_n "(cached) $ac_c" 1>&6
    927 else
    928   cat > conftest.C <<EOF
    929 #ifdef __GNUC__
    930   yes;
     1765
     1766fi
     1767fi
     1768ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1769if test -n "$ac_ct_CXX"; then
     1770  echo "$as_me:1770: result: $ac_ct_CXX" >&5
     1771echo "${ECHO_T}$ac_ct_CXX" >&6
     1772else
     1773  echo "$as_me:1773: result: no" >&5
     1774echo "${ECHO_T}no" >&6
     1775fi
     1776
     1777  test -n "$ac_ct_CXX" && break
     1778done
     1779test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1780
     1781  CXX=$ac_ct_CXX
     1782fi
     1783
     1784echo "$as_me:1784: checking whether we are using the GNU C++ compiler" >&5
     1785echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1786if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1787  echo $ECHO_N "(cached) $ECHO_C" >&6
     1788else
     1789  cat >conftest.$ac_ext <<_ACEOF
     1790#line 1790 "configure"
     1791#include "confdefs.h"
     1792
     1793int
     1794main ()
     1795{
     1796#ifndef __GNUC__
     1797       choke me
    9311798#endif
    932 EOF
    933 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    934   ac_cv_prog_gxx=yes
    935 else
    936   ac_cv_prog_gxx=no
    937 fi
    938 fi
    939 
    940 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    941 
    942 if test $ac_cv_prog_gxx = yes; then
    943   GXX=yes
    944 else
    945   GXX=
    946 fi
    947 
    948 ac_test_CXXFLAGS="${CXXFLAGS+set}"
    949 ac_save_CXXFLAGS="$CXXFLAGS"
    950 CXXFLAGS=
    951 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    952 echo "configure:953: checking whether ${CXX-g++} accepts -g" >&5
    953 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    954   echo $ac_n "(cached) $ac_c" 1>&6
    955 else
    956   echo 'void f(){}' > conftest.cc
    957 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     1799
     1800  ;
     1801  return 0;
     1802}
     1803_ACEOF
     1804rm -f conftest.$ac_objext
     1805if { (eval echo "$as_me:1805: \"$ac_compile\"") >&5
     1806  (eval $ac_compile) 2>&5
     1807  ac_status=$?
     1808  echo "$as_me:1808: \$? = $ac_status" >&5
     1809  (exit $ac_status); } &&
     1810         { ac_try='test -s conftest.$ac_objext'
     1811  { (eval echo "$as_me:1811: \"$ac_try\"") >&5
     1812  (eval $ac_try) 2>&5
     1813  ac_status=$?
     1814  echo "$as_me:1814: \$? = $ac_status" >&5
     1815  (exit $ac_status); }; }; then
     1816  ac_compiler_gnu=yes
     1817else
     1818  echo "$as_me: failed program was:" >&5
     1819cat conftest.$ac_ext >&5
     1820ac_compiler_gnu=no
     1821fi
     1822rm -f conftest.$ac_objext conftest.$ac_ext
     1823ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1824
     1825fi
     1826echo "$as_me:1826: result: $ac_cv_cxx_compiler_gnu" >&5
     1827echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1828GXX=`test $ac_compiler_gnu = yes && echo yes`
     1829ac_test_CXXFLAGS=${CXXFLAGS+set}
     1830ac_save_CXXFLAGS=$CXXFLAGS
     1831CXXFLAGS="-g"
     1832echo "$as_me:1832: checking whether $CXX accepts -g" >&5
     1833echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1834if test "${ac_cv_prog_cxx_g+set}" = set; then
     1835  echo $ECHO_N "(cached) $ECHO_C" >&6
     1836else
     1837  cat >conftest.$ac_ext <<_ACEOF
     1838#line 1838 "configure"
     1839#include "confdefs.h"
     1840
     1841int
     1842main ()
     1843{
     1844
     1845  ;
     1846  return 0;
     1847}
     1848_ACEOF
     1849rm -f conftest.$ac_objext
     1850if { (eval echo "$as_me:1850: \"$ac_compile\"") >&5
     1851  (eval $ac_compile) 2>&5
     1852  ac_status=$?
     1853  echo "$as_me:1853: \$? = $ac_status" >&5
     1854  (exit $ac_status); } &&
     1855         { ac_try='test -s conftest.$ac_objext'
     1856  { (eval echo "$as_me:1856: \"$ac_try\"") >&5
     1857  (eval $ac_try) 2>&5
     1858  ac_status=$?
     1859  echo "$as_me:1859: \$? = $ac_status" >&5
     1860  (exit $ac_status); }; }; then
    9581861  ac_cv_prog_cxx_g=yes
    9591862else
    960   ac_cv_prog_cxx_g=no
    961 fi
    962 rm -f conftest*
    963 
    964 fi
    965 
    966 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     1863  echo "$as_me: failed program was:" >&5
     1864cat conftest.$ac_ext >&5
     1865ac_cv_prog_cxx_g=no
     1866fi
     1867rm -f conftest.$ac_objext conftest.$ac_ext
     1868fi
     1869echo "$as_me:1869: result: $ac_cv_prog_cxx_g" >&5
     1870echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    9671871if test "$ac_test_CXXFLAGS" = set; then
    968   CXXFLAGS="$ac_save_CXXFLAGS"
     1872  CXXFLAGS=$ac_save_CXXFLAGS
    9691873elif test $ac_cv_prog_cxx_g = yes; then
    9701874  if test "$GXX" = yes; then
     
    9801884  fi
    9811885fi
    982 
    9831886for ac_declaration in \
    9841887   ''\
     
    9901893   'void exit (int);'
    9911894do
    992   cat > conftest.$ac_ext <<EOF
    993 #line 994 "configure"
     1895  cat >conftest.$ac_ext <<_ACEOF
     1896#line 1896 "configure"
    9941897#include "confdefs.h"
    9951898#include <stdlib.h>
    9961899$ac_declaration
    997 int main() {
     1900int
     1901main ()
     1902{
    9981903exit (42);
    999 ; return 0; }
    1000 EOF
    1001 if { (eval echo configure:1002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1904  ;
     1905  return 0;
     1906}
     1907_ACEOF
     1908rm -f conftest.$ac_objext
     1909if { (eval echo "$as_me:1909: \"$ac_compile\"") >&5
     1910  (eval $ac_compile) 2>&5
     1911  ac_status=$?
     1912  echo "$as_me:1912: \$? = $ac_status" >&5
     1913  (exit $ac_status); } &&
     1914         { ac_try='test -s conftest.$ac_objext'
     1915  { (eval echo "$as_me:1915: \"$ac_try\"") >&5
     1916  (eval $ac_try) 2>&5
     1917  ac_status=$?
     1918  echo "$as_me:1918: \$? = $ac_status" >&5
     1919  (exit $ac_status); }; }; then
    10021920  :
    10031921else
    1004   echo "configure: failed program was:" >&5
    1005   cat conftest.$ac_ext >&5
    1006   rm -rf conftest*
    1007   continue
    1008 fi
    1009 rm -f conftest*
    1010   cat > conftest.$ac_ext <<EOF
    1011 #line 1012 "configure"
     1922  echo "$as_me: failed program was:" >&5
     1923cat conftest.$ac_ext >&5
     1924continue
     1925fi
     1926rm -f conftest.$ac_objext conftest.$ac_ext
     1927  cat >conftest.$ac_ext <<_ACEOF
     1928#line 1928 "configure"
    10121929#include "confdefs.h"
    10131930$ac_declaration
    1014 int main() {
     1931int
     1932main ()
     1933{
    10151934exit (42);
    1016 ; return 0; }
    1017 EOF
    1018 if { (eval echo configure:1019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1019   rm -rf conftest*
     1935  ;
     1936  return 0;
     1937}
     1938_ACEOF
     1939rm -f conftest.$ac_objext
     1940if { (eval echo "$as_me:1940: \"$ac_compile\"") >&5
     1941  (eval $ac_compile) 2>&5
     1942  ac_status=$?
     1943  echo "$as_me:1943: \$? = $ac_status" >&5
     1944  (exit $ac_status); } &&
     1945         { ac_try='test -s conftest.$ac_objext'
     1946  { (eval echo "$as_me:1946: \"$ac_try\"") >&5
     1947  (eval $ac_try) 2>&5
     1948  ac_status=$?
     1949  echo "$as_me:1949: \$? = $ac_status" >&5
     1950  (exit $ac_status); }; }; then
    10201951  break
    10211952else
    1022   echo "configure: failed program was:" >&5
    1023   cat conftest.$ac_ext >&5
    1024 fi
    1025 rm -f conftest*
     1953  echo "$as_me: failed program was:" >&5
     1954cat conftest.$ac_ext >&5
     1955fi
     1956rm -f conftest.$ac_objext conftest.$ac_ext
    10261957done
    1027 if test -n "$ac_declaration"; then
    1028   echo '#ifdef __cplusplus' >>confdefs.h
    1029   echo $ac_declaration      >>confdefs.h
    1030   echo '#endif'             >>confdefs.h
    1031 fi
    1032 
    1033 
    1034 for ac_prog in gawk mawk nawk awk
     1958echo '#ifdef __cplusplus' >>confdefs.h
     1959echo $ac_declaration      >>confdefs.h
     1960echo '#endif'             >>confdefs.h
     1961
     1962ac_ext=c
     1963ac_cpp='$CPP $CPPFLAGS'
     1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1967
     1968for ac_prog in mawk gawk nawk awk
    10351969do
    1036 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1970  # Extract the first word of "$ac_prog", so it can be a program name with args.
    10371971set dummy $ac_prog; ac_word=$2
    1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1039 echo "configure:1040: checking for $ac_word" >&5
    1040 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    1041   echo $ac_n "(cached) $ac_c" 1>&6
     1972echo "$as_me:1972: checking for $ac_word" >&5
     1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1974if test "${ac_cv_prog_AWK+set}" = set; then
     1975  echo $ECHO_N "(cached) $ECHO_C" >&6
    10421976else
    10431977  if test -n "$AWK"; then
    10441978  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    10451979else
    1046   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1047   ac_dummy="$PATH"
    1048   for ac_dir in $ac_dummy; do
    1049     test -z "$ac_dir" && ac_dir=.
    1050     if test -f $ac_dir/$ac_word; then
    1051       ac_cv_prog_AWK="$ac_prog"
    1052       break
    1053     fi
    1054   done
    1055   IFS="$ac_save_ifs"
    1056 fi
    1057 fi
    1058 AWK="$ac_cv_prog_AWK"
     1980  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1981ac_dummy="$PATH"
     1982for ac_dir in $ac_dummy; do
     1983  IFS=$ac_save_IFS
     1984  test -z "$ac_dir" && ac_dir=.
     1985  $as_executable_p "$ac_dir/$ac_word" || continue
     1986ac_cv_prog_AWK="$ac_prog"
     1987echo "$as_me:1987: found $ac_dir/$ac_word" >&5
     1988break
     1989done
     1990
     1991fi
     1992fi
     1993AWK=$ac_cv_prog_AWK
    10591994if test -n "$AWK"; then
    1060   echo "$ac_t""$AWK" 1>&6
    1061 else
    1062   echo "$ac_t""no" 1>&6
    1063 fi
    1064 
    1065 test -n "$AWK" && break
     1995  echo "$as_me:1995: result: $AWK" >&5
     1996echo "${ECHO_T}$AWK" >&6
     1997else
     1998  echo "$as_me:1998: result: no" >&5
     1999echo "${ECHO_T}no" >&6
     2000fi
     2001
     2002  test -n "$AWK" && break
    10662003done
    10672004
    10682005for ac_prog in 'bison -y' byacc
    10692006do
    1070 # Extract the first word of "$ac_prog", so it can be a program name with args.
     2007  # Extract the first word of "$ac_prog", so it can be a program name with args.
    10712008set dummy $ac_prog; ac_word=$2
    1072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1073 echo "configure:1074: checking for $ac_word" >&5
    1074 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    1075   echo $ac_n "(cached) $ac_c" 1>&6
     2009echo "$as_me:2009: checking for $ac_word" >&5
     2010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2011if test "${ac_cv_prog_YACC+set}" = set; then
     2012  echo $ECHO_N "(cached) $ECHO_C" >&6
    10762013else
    10772014  if test -n "$YACC"; then
    10782015  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    10792016else
    1080   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1081   ac_dummy="$PATH"
    1082   for ac_dir in $ac_dummy; do
    1083     test -z "$ac_dir" && ac_dir=.
    1084     if test -f $ac_dir/$ac_word; then
    1085       ac_cv_prog_YACC="$ac_prog"
    1086       break
    1087     fi
    1088   done
    1089   IFS="$ac_save_ifs"
    1090 fi
    1091 fi
    1092 YACC="$ac_cv_prog_YACC"
     2017  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2018ac_dummy="$PATH"
     2019for ac_dir in $ac_dummy; do
     2020  IFS=$ac_save_IFS
     2021  test -z "$ac_dir" && ac_dir=.
     2022  $as_executable_p "$ac_dir/$ac_word" || continue
     2023ac_cv_prog_YACC="$ac_prog"
     2024echo "$as_me:2024: found $ac_dir/$ac_word" >&5
     2025break
     2026done
     2027
     2028fi
     2029fi
     2030YACC=$ac_cv_prog_YACC
    10932031if test -n "$YACC"; then
    1094   echo "$ac_t""$YACC" 1>&6
    1095 else
    1096   echo "$ac_t""no" 1>&6
    1097 fi
    1098 
    1099 test -n "$YACC" && break
     2032  echo "$as_me:2032: result: $YACC" >&5
     2033echo "${ECHO_T}$YACC" >&6
     2034else
     2035  echo "$as_me:2035: result: no" >&5
     2036echo "${ECHO_T}no" >&6
     2037fi
     2038
     2039  test -n "$YACC" && break
    11002040done
    11012041test -n "$YACC" || YACC="yacc"
     
    11112051    ac_install_sh="$ac_aux_dir/install.sh -c"
    11122052    break
     2053  elif test -f $ac_dir/shtool; then
     2054    ac_aux_dir=$ac_dir
     2055    ac_install_sh="$ac_aux_dir/shtool install -c"
     2056    break
    11132057  fi
    11142058done
    11152059if test -z "$ac_aux_dir"; then
    1116   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    1117 fi
    1118 ac_config_guess=$ac_aux_dir/config.guess
    1119 ac_config_sub=$ac_aux_dir/config.sub
    1120 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
    1121 
    1122 
    1123 # Do some error checking and defaulting for the host and target type.
    1124 # The inputs are:
    1125 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
    1126 #
    1127 # The rules are:
    1128 # 1. You are not allowed to specify --host, --target, and nonopt at the
    1129 #    same time.
    1130 # 2. Host defaults to nonopt.
    1131 # 3. If nonopt is not specified, then host defaults to the current host,
    1132 #    as determined by config.guess.
    1133 # 4. Target and build default to nonopt.
    1134 # 5. If nonopt is not specified, then target and build default to host.
     2060  { { echo "$as_me:2060: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2061echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2062   { (exit 1); exit 1; }; }
     2063fi
     2064ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2065ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2066ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     2067
     2068# Make sure we can run config.sub.
     2069$ac_config_sub sun4 >/dev/null 2>&1 ||
     2070  { { echo "$as_me:2070: error: cannot run $ac_config_sub" >&5
     2071echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     2072   { (exit 1); exit 1; }; }
     2073
     2074echo "$as_me:2074: checking build system type" >&5
     2075echo $ECHO_N "checking build system type... $ECHO_C" >&6
     2076if test "${ac_cv_build+set}" = set; then
     2077  echo $ECHO_N "(cached) $ECHO_C" >&6
     2078else
     2079  ac_cv_build_alias=$build_alias
     2080test -z "$ac_cv_build_alias" &&
     2081  ac_cv_build_alias=`$ac_config_guess`
     2082test -z "$ac_cv_build_alias" &&
     2083  { { echo "$as_me:2083: error: cannot guess build type; you must specify one" >&5
     2084echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     2085   { (exit 1); exit 1; }; }
     2086ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     2087  { { echo "$as_me:2087: error: $ac_config_sub $ac_cv_build_alias failed." >&5
     2088echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
     2089   { (exit 1); exit 1; }; }
     2090
     2091fi
     2092echo "$as_me:2092: result: $ac_cv_build" >&5
     2093echo "${ECHO_T}$ac_cv_build" >&6
     2094build=$ac_cv_build
     2095build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     2096build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     2097build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2098
     2099echo "$as_me:2099: checking host system type" >&5
     2100echo $ECHO_N "checking host system type... $ECHO_C" >&6
     2101if test "${ac_cv_host+set}" = set; then
     2102  echo $ECHO_N "(cached) $ECHO_C" >&6
     2103else
     2104  ac_cv_host_alias=$host_alias
     2105test -z "$ac_cv_host_alias" &&
     2106  ac_cv_host_alias=$ac_cv_build_alias
     2107ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     2108  { { echo "$as_me:2108: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     2109echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     2110   { (exit 1); exit 1; }; }
     2111
     2112fi
     2113echo "$as_me:2113: result: $ac_cv_host" >&5
     2114echo "${ECHO_T}$ac_cv_host" >&6
     2115host=$ac_cv_host
     2116host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     2117host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     2118host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2119
     2120echo "$as_me:2120: checking target system type" >&5
     2121echo $ECHO_N "checking target system type... $ECHO_C" >&6
     2122if test "${ac_cv_target+set}" = set; then
     2123  echo $ECHO_N "(cached) $ECHO_C" >&6
     2124else
     2125  ac_cv_target_alias=$target_alias
     2126test "x$ac_cv_target_alias" = "x" &&
     2127  ac_cv_target_alias=$ac_cv_host_alias
     2128ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
     2129  { { echo "$as_me:2129: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     2130echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
     2131   { (exit 1); exit 1; }; }
     2132
     2133fi
     2134echo "$as_me:2134: result: $ac_cv_target" >&5
     2135echo "${ECHO_T}$ac_cv_target" >&6
     2136target=$ac_cv_target
     2137target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     2138target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     2139target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    11352140
    11362141# The aliases save the names the user supplied, while $host etc.
    11372142# will get canonicalized.
    1138 case $host---$target---$nonopt in
    1139 NONE---*---* | *---NONE---* | *---*---NONE) ;;
    1140 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
    1141 esac
    1142 
    1143 
    1144 # Make sure we can run config.sub.
    1145 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
    1146 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
    1147 fi
    1148 
    1149 echo $ac_n "checking host system type""... $ac_c" 1>&6
    1150 echo "configure:1151: checking host system type" >&5
    1151 
    1152 host_alias=$host
    1153 case "$host_alias" in
    1154 NONE)
    1155   case $nonopt in
    1156   NONE)
    1157     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    1158     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    1159     fi ;;
    1160   *) host_alias=$nonopt ;;
    1161   esac ;;
    1162 esac
    1163 
    1164 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
    1165 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1166 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1167 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1168 echo "$ac_t""$host" 1>&6
    1169 
    1170 echo $ac_n "checking target system type""... $ac_c" 1>&6
    1171 echo "configure:1172: checking target system type" >&5
    1172 
    1173 target_alias=$target
    1174 case "$target_alias" in
    1175 NONE)
    1176   case $nonopt in
    1177   NONE) target_alias=$host_alias ;;
    1178   *) target_alias=$nonopt ;;
    1179   esac ;;
    1180 esac
    1181 
    1182 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
    1183 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1184 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1185 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1186 echo "$ac_t""$target" 1>&6
    1187 
    1188 echo $ac_n "checking build system type""... $ac_c" 1>&6
    1189 echo "configure:1190: checking build system type" >&5
    1190 
    1191 build_alias=$build
    1192 case "$build_alias" in
    1193 NONE)
    1194   case $nonopt in
    1195   NONE) build_alias=$host_alias ;;
    1196   *) build_alias=$nonopt ;;
    1197   esac ;;
    1198 esac
    1199 
    1200 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
    1201 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1202 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1203 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1204 echo "$ac_t""$build" 1>&6
    1205 
    1206 test "$host_alias" != "$target_alias" &&
     2143test -n "$target_alias" &&
    12072144  test "$program_prefix$program_suffix$program_transform_name" = \
    12082145    NONENONEs,x,x, &&
    12092146  program_prefix=${target_alias}-
    1210 
    12112147# Find a good install program.  We prefer a C program (faster),
    12122148# so one script is as good as another.  But avoid the broken or
     
    12162152# IRIX /sbin/install
    12172153# AIX /bin/install
     2154# AmigaOS /C/install, which installs bootblocks on floppy discs
    12182155# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    12192156# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    12202157# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    12212158# ./install, which can be erroneously created by make from ./install.sh.
    1222 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1223 echo "configure:1224: checking for a BSD compatible install" >&5
     2159echo "$as_me:2159: checking for a BSD compatible install" >&5
     2160echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    12242161if test -z "$INSTALL"; then
    1225 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1226   echo $ac_n "(cached) $ac_c" 1>&6
    1227 else
    1228     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
     2162if test "${ac_cv_path_install+set}" = set; then
     2163  echo $ECHO_N "(cached) $ECHO_C" >&6
     2164else
     2165    ac_save_IFS=$IFS; IFS=$ac_path_separator
    12292166  for ac_dir in $PATH; do
     2167    IFS=$ac_save_IFS
    12302168    # Account for people who put trailing slashes in PATH elements.
    1231     case "$ac_dir/" in
    1232     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     2169    case $ac_dir/ in
     2170    / | ./ | .// | /cC/* \
     2171    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
     2172    | /usr/ucb/* ) ;;
    12332173    *)
    12342174      # OSF1 and SCO ODT 3.0 have their own names for install.
     
    12362176      # by default.
    12372177      for ac_prog in ginstall scoinst install; do
    1238         if test -f $ac_dir/$ac_prog; then
     2178        if $as_executable_p "$ac_dir/$ac_prog"; then
    12392179      if test $ac_prog = install &&
    1240             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     2180            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    12412181        # AIX install.  It has an incompatible calling convention.
     2182        :
     2183      elif test $ac_prog = install &&
     2184        grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
     2185        # program-specific install script used by HP pwplus--don't use.
    12422186        :
    12432187      else
     
    12502194    esac
    12512195  done
    1252   IFS="$ac_save_IFS"
    12532196
    12542197fi
    12552198  if test "${ac_cv_path_install+set}" = set; then
    1256     INSTALL="$ac_cv_path_install"
     2199    INSTALL=$ac_cv_path_install
    12572200  else
    12582201    # As a last resort, use the slow shell script.  We don't cache a
     
    12602203    # break other packages using the cache if that directory is
    12612204    # removed, or if the path is relative.
    1262     INSTALL="$ac_install_sh"
     2205    INSTALL=$ac_install_sh
    12632206  fi
    12642207fi
    1265 echo "$ac_t""$INSTALL" 1>&6
     2208echo "$as_me:2208: result: $INSTALL" >&5
     2209echo "${ECHO_T}$INSTALL" >&6
    12662210
    12672211# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    12692213test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    12702214
    1271 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     2215test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    12722216
    12732217test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    12742218
    1275 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1276 echo "configure:1277: checking whether ln -s works" >&5
    1277 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1278   echo $ac_n "(cached) $ac_c" 1>&6
    1279 else
    1280   rm -f conftestdata
    1281 if ln -s X conftestdata 2>/dev/null
    1282 then
    1283   rm -f conftestdata
    1284   ac_cv_prog_LN_S="ln -s"
    1285 else
    1286   ac_cv_prog_LN_S=ln
    1287 fi
    1288 fi
    1289 LN_S="$ac_cv_prog_LN_S"
    1290 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1291   echo "$ac_t""yes" 1>&6
    1292 else
    1293   echo "$ac_t""no" 1>&6
    1294 fi
    1295 
    1296 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1297 echo "configure:1298: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1298 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1299 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1300   echo $ac_n "(cached) $ac_c" 1>&6
    1301 else
    1302   cat > conftestmake <<\EOF
     2219echo "$as_me:2219: checking whether ln -s works" >&5
     2220echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2221LN_S=$as_ln_s
     2222if test "$LN_S" = "ln -s"; then
     2223  echo "$as_me:2223: result: yes" >&5
     2224echo "${ECHO_T}yes" >&6
     2225else
     2226  echo "$as_me:2226: result: no, using $LN_S" >&5
     2227echo "${ECHO_T}no, using $LN_S" >&6
     2228fi
     2229
     2230echo "$as_me:2230: checking whether ${MAKE-make} sets \${MAKE}" >&5
     2231echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
     2232set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
     2233if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2234  echo $ECHO_N "(cached) $ECHO_C" >&6
     2235else
     2236  cat >conftest.make <<\EOF
    13032237all:
    13042238    @echo 'ac_maketemp="${MAKE}"'
    13052239EOF
    13062240# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1307 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     2241eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    13082242if test -n "$ac_maketemp"; then
    13092243  eval ac_cv_prog_make_${ac_make}_set=yes
     
    13112245  eval ac_cv_prog_make_${ac_make}_set=no
    13122246fi
    1313 rm -f conftestmake
     2247rm -f conftest.make
    13142248fi
    13152249if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1316   echo "$ac_t""yes" 1>&6
     2250  echo "$as_me:2250: result: yes" >&5
     2251echo "${ECHO_T}yes" >&6
    13172252  SET_MAKE=
    13182253else
    1319   echo "$ac_t""no" 1>&6
     2254  echo "$as_me:2254: result: no" >&5
     2255echo "${ECHO_T}no" >&6
    13202256  SET_MAKE="MAKE=${MAKE-make}"
    13212257fi
    13222258
    1323 # Extract the first word of "ranlib", so it can be a program name with args.
    1324 set dummy ranlib; ac_word=$2
    1325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1326 echo "configure:1327: checking for $ac_word" >&5
    1327 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    1328   echo $ac_n "(cached) $ac_c" 1>&6
     2259if test -n "$ac_tool_prefix"; then
     2260  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2261set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2262echo "$as_me:2262: checking for $ac_word" >&5
     2263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2264if test "${ac_cv_prog_RANLIB+set}" = set; then
     2265  echo $ECHO_N "(cached) $ECHO_C" >&6
    13292266else
    13302267  if test -n "$RANLIB"; then
    13312268  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    13322269else
    1333   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1334   ac_dummy="$PATH"
    1335   for ac_dir in $ac_dummy; do
    1336     test -z "$ac_dir" && ac_dir=.
    1337     if test -f $ac_dir/$ac_word; then
    1338       ac_cv_prog_RANLIB="ranlib"
    1339       break
    1340     fi
    1341   done
    1342   IFS="$ac_save_ifs"
    1343   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    1344 fi
    1345 fi
    1346 RANLIB="$ac_cv_prog_RANLIB"
     2270  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2271ac_dummy="$PATH"
     2272for ac_dir in $ac_dummy; do
     2273  IFS=$ac_save_IFS
     2274  test -z "$ac_dir" && ac_dir=.
     2275  $as_executable_p "$ac_dir/$ac_word" || continue
     2276ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2277echo "$as_me:2277: found $ac_dir/$ac_word" >&5
     2278break
     2279done
     2280
     2281fi
     2282fi
     2283RANLIB=$ac_cv_prog_RANLIB
    13472284if test -n "$RANLIB"; then
    1348   echo "$ac_t""$RANLIB" 1>&6
    1349 else
    1350   echo "$ac_t""no" 1>&6
    1351 fi
    1352 
     2285  echo "$as_me:2285: result: $RANLIB" >&5
     2286echo "${ECHO_T}$RANLIB" >&6
     2287else
     2288  echo "$as_me:2288: result: no" >&5
     2289echo "${ECHO_T}no" >&6
     2290fi
     2291
     2292fi
     2293if test -z "$ac_cv_prog_RANLIB"; then
     2294  ac_ct_RANLIB=$RANLIB
     2295  # Extract the first word of "ranlib", so it can be a program name with args.
     2296set dummy ranlib; ac_word=$2
     2297echo "$as_me:2297: checking for $ac_word" >&5
     2298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2299if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2300  echo $ECHO_N "(cached) $ECHO_C" >&6
     2301else
     2302  if test -n "$ac_ct_RANLIB"; then
     2303  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2304else
     2305  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2306ac_dummy="$PATH"
     2307for ac_dir in $ac_dummy; do
     2308  IFS=$ac_save_IFS
     2309  test -z "$ac_dir" && ac_dir=.
     2310  $as_executable_p "$ac_dir/$ac_word" || continue
     2311ac_cv_prog_ac_ct_RANLIB="ranlib"
     2312echo "$as_me:2312: found $ac_dir/$ac_word" >&5
     2313break
     2314done
     2315
     2316  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2317fi
     2318fi
     2319ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2320if test -n "$ac_ct_RANLIB"; then
     2321  echo "$as_me:2321: result: $ac_ct_RANLIB" >&5
     2322echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2323else
     2324  echo "$as_me:2324: result: no" >&5
     2325echo "${ECHO_T}no" >&6
     2326fi
     2327
     2328  RANLIB=$ac_ct_RANLIB
     2329else
     2330  RANLIB="$ac_cv_prog_RANLIB"
     2331fi
    13532332
    13542333#moved CORBA MICO directory test to get version of MICO
     
    13752354#do test of MICO_VER
    13762355if test MICO_VER != 0; then
    1377 cat >> confdefs.h <<\EOF
     2356cat >>confdefs.h <<\EOF
    13782357#define MICO_VER 1
    13792358EOF
    13802359
    1381 
    13822360fi
    13832361#end USE_CORBA test
    13842362fi
    13852363
    1386 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1387 echo "configure:1388: checking how to run the C preprocessor" >&5
     2364ac_ext=c
     2365ac_cpp='$CPP $CPPFLAGS'
     2366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2368ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2369echo "$as_me:2369: checking how to run the C preprocessor" >&5
     2370echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    13882371# On Suns, sometimes $CPP names a directory.
    13892372if test -n "$CPP" && test -d "$CPP"; then
     
    13912374fi
    13922375if test -z "$CPP"; then
    1393 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1394   echo $ac_n "(cached) $ac_c" 1>&6
    1395 else
    1396     # This must be in double quotes, not single quotes, because CPP may get
    1397   # substituted into the Makefile and "${CC-cc}" will confuse make.
    1398   CPP="${CC-cc} -E"
     2376  if test "${ac_cv_prog_CPP+set}" = set; then
     2377  echo $ECHO_N "(cached) $ECHO_C" >&6
     2378else
     2379      # Double quotes because CPP needs to be expanded
     2380    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2381    do
     2382      # break 2 since there is a loop in there.
     2383      ac_preproc_ok=false
     2384for ac_c_preproc_warn_flag in '' yes
     2385do
     2386  # Use a header file that comes with gcc, so configuring glibc
     2387  # with a fresh cross-compiler works.
    13992388  # On the NeXT, cc -E runs the code through the compiler's parser,
    1400   # not just through cpp.
    1401   cat > conftest.$ac_ext <<EOF
    1402 #line 1403 "configure"
     2389  # not just through cpp. "Syntax error" is here to catch this case.
     2390  cat >conftest.$ac_ext <<_ACEOF
     2391#line 2391 "configure"
    14032392#include "confdefs.h"
    14042393#include <assert.h>
    1405 Syntax Error
    1406 EOF
    1407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1408 { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1410 if test -z "$ac_err"; then
     2394                     Syntax error
     2395_ACEOF
     2396if { (eval echo "$as_me:2396: \"$ac_cpp conftest.$ac_ext\"") >&5
     2397  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2398  ac_status=$?
     2399  egrep -v '^ *\+' conftest.er1 >conftest.err
     2400  rm -f conftest.er1
     2401  cat conftest.err >&5
     2402  echo "$as_me:2402: \$? = $ac_status" >&5
     2403  (exit $ac_status); } >/dev/null; then
     2404  if test -s conftest.err; then
     2405    ac_cpp_err=$ac_c_preproc_warn_flag
     2406  else
     2407    ac_cpp_err=
     2408  fi
     2409else
     2410  ac_cpp_err=yes
     2411fi
     2412if test -z "$ac_cpp_err"; then
    14112413  :
    14122414else
    1413   echo "$ac_err" >&5
    1414   echo "configure: failed program was:" >&5
     2415  echo "$as_me: failed program was:" >&5
    14152416  cat conftest.$ac_ext >&5
    1416   rm -rf conftest*
    1417   CPP="${CC-cc} -E -traditional-cpp"
    1418   cat > conftest.$ac_ext <<EOF
    1419 #line 1420 "configure"
     2417  # Broken: fails on valid input.
     2418continue
     2419fi
     2420rm -f conftest.err conftest.$ac_ext
     2421
     2422  # OK, works on sane cases.  Now check whether non-existent headers
     2423  # can be detected and how.
     2424  cat >conftest.$ac_ext <<_ACEOF
     2425#line 2425 "configure"
     2426#include "confdefs.h"
     2427#include <ac_nonexistent.h>
     2428_ACEOF
     2429if { (eval echo "$as_me:2429: \"$ac_cpp conftest.$ac_ext\"") >&5
     2430  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2431  ac_status=$?
     2432  egrep -v '^ *\+' conftest.er1 >conftest.err
     2433  rm -f conftest.er1
     2434  cat conftest.err >&5
     2435  echo "$as_me:2435: \$? = $ac_status" >&5
     2436  (exit $ac_status); } >/dev/null; then
     2437  if test -s conftest.err; then
     2438    ac_cpp_err=$ac_c_preproc_warn_flag
     2439  else
     2440    ac_cpp_err=
     2441  fi
     2442else
     2443  ac_cpp_err=yes
     2444fi
     2445if test -z "$ac_cpp_err"; then
     2446  # Broken: success on invalid input.
     2447continue
     2448else
     2449  echo "$as_me: failed program was:" >&5
     2450  cat conftest.$ac_ext >&5
     2451  # Passes both tests.
     2452ac_preproc_ok=:
     2453break
     2454fi
     2455rm -f conftest.err conftest.$ac_ext
     2456
     2457done
     2458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2459rm -f conftest.err conftest.$ac_ext
     2460if $ac_preproc_ok; then
     2461  break 2
     2462fi
     2463
     2464    done
     2465    ac_cv_prog_CPP=$CPP
     2466
     2467fi
     2468  CPP=$ac_cv_prog_CPP
     2469else
     2470  ac_cv_prog_CPP=$CPP
     2471fi
     2472echo "$as_me:2472: result: $CPP" >&5
     2473echo "${ECHO_T}$CPP" >&6
     2474ac_preproc_ok=false
     2475for ac_c_preproc_warn_flag in '' yes
     2476do
     2477  # Use a header file that comes with gcc, so configuring glibc
     2478  # with a fresh cross-compiler works.
     2479  # On the NeXT, cc -E runs the code through the compiler's parser,
     2480  # not just through cpp. "Syntax error" is here to catch this case.
     2481  cat >conftest.$ac_ext <<_ACEOF
     2482#line 2482 "configure"
    14202483#include "confdefs.h"
    14212484#include <assert.h>
    1422 Syntax Error
    1423 EOF
    1424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1425 { (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1427 if test -z "$ac_err"; then
     2485                     Syntax error
     2486_ACEOF
     2487if { (eval echo "$as_me:2487: \"$ac_cpp conftest.$ac_ext\"") >&5
     2488  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2489  ac_status=$?
     2490  egrep -v '^ *\+' conftest.er1 >conftest.err
     2491  rm -f conftest.er1
     2492  cat conftest.err >&5
     2493  echo "$as_me:2493: \$? = $ac_status" >&5
     2494  (exit $ac_status); } >/dev/null; then
     2495  if test -s conftest.err; then
     2496    ac_cpp_err=$ac_c_preproc_warn_flag
     2497  else
     2498    ac_cpp_err=
     2499  fi
     2500else
     2501  ac_cpp_err=yes
     2502fi
     2503if test -z "$ac_cpp_err"; then
    14282504  :
    14292505else
    1430   echo "$ac_err" >&5
    1431   echo "configure: failed program was:" >&5
     2506  echo "$as_me: failed program was:" >&5
    14322507  cat conftest.$ac_ext >&5
    1433   rm -rf conftest*
    1434   CPP="${CC-cc} -nologo -E"
    1435   cat > conftest.$ac_ext <<EOF
    1436 #line 1437 "configure"
    1437 #include "confdefs.h"
    1438 #include <assert.h>
    1439 Syntax Error
    1440 EOF
    1441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1442 { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1444 if test -z "$ac_err"; then
     2508  # Broken: fails on valid input.
     2509continue
     2510fi
     2511rm -f conftest.err conftest.$ac_ext
     2512
     2513  # OK, works on sane cases.  Now check whether non-existent headers
     2514  # can be detected and how.
     2515  cat >conftest.$ac_ext <<_ACEOF
     2516#line 2516 "configure"
     2517#include "confdefs.h"
     2518#include <ac_nonexistent.h>
     2519_ACEOF
     2520if { (eval echo "$as_me:2520: \"$ac_cpp conftest.$ac_ext\"") >&5
     2521  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2522  ac_status=$?
     2523  egrep -v '^ *\+' conftest.er1 >conftest.err
     2524  rm -f conftest.er1
     2525  cat conftest.err >&5
     2526  echo "$as_me:2526: \$? = $ac_status" >&5
     2527  (exit $ac_status); } >/dev/null; then
     2528  if test -s conftest.err; then
     2529    ac_cpp_err=$ac_c_preproc_warn_flag
     2530  else
     2531    ac_cpp_err=
     2532  fi
     2533else
     2534  ac_cpp_err=yes
     2535fi
     2536if test -z "$ac_cpp_err"; then
     2537  # Broken: success on invalid input.
     2538continue
     2539else
     2540  echo "$as_me: failed program was:" >&5
     2541  cat conftest.$ac_ext >&5
     2542  # Passes both tests.
     2543ac_preproc_ok=:
     2544break
     2545fi
     2546rm -f conftest.err conftest.$ac_ext
     2547
     2548done
     2549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2550rm -f conftest.err conftest.$ac_ext
     2551if $ac_preproc_ok; then
    14452552  :
    14462553else
    1447   echo "$ac_err" >&5
    1448   echo "configure: failed program was:" >&5
    1449   cat conftest.$ac_ext >&5
    1450   rm -rf conftest*
    1451   CPP=/lib/cpp
    1452 fi
    1453 rm -f conftest*
    1454 fi
    1455 rm -f conftest*
    1456 fi
    1457 rm -f conftest*
    1458   ac_cv_prog_CPP="$CPP"
    1459 fi
    1460   CPP="$ac_cv_prog_CPP"
    1461 else
    1462   ac_cv_prog_CPP="$CPP"
    1463 fi
    1464 echo "$ac_t""$CPP" 1>&6
    1465 
    1466 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1467 echo "configure:1468: checking for AIX" >&5
    1468 cat > conftest.$ac_ext <<EOF
    1469 #line 1470 "configure"
     2554  { { echo "$as_me:2554: error: C preprocessor \"$CPP\" fails sanity check" >&5
     2555echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
     2556   { (exit 1); exit 1; }; }
     2557fi
     2558
     2559ac_ext=c
     2560ac_cpp='$CPP $CPPFLAGS'
     2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2563ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2564
     2565echo "$as_me:2565: checking for AIX" >&5
     2566echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     2567cat >conftest.$ac_ext <<_ACEOF
     2568#line 2568 "configure"
    14702569#include "confdefs.h"
    14712570#ifdef _AIX
     
    14732572#endif
    14742573
    1475 EOF
     2574_ACEOF
    14762575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    14772576  egrep "yes" >/dev/null 2>&1; then
    1478   rm -rf conftest*
    1479   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     2577  echo "$as_me:2577: result: yes" >&5
     2578echo "${ECHO_T}yes" >&6
     2579cat >>confdefs.h <<\EOF
    14802580#define _ALL_SOURCE 1
    14812581EOF
    14822582
    14832583else
    1484   rm -rf conftest*
    1485   echo "$ac_t""no" 1>&6
     2584  echo "$as_me:2584: result: no" >&5
     2585echo "${ECHO_T}no" >&6
    14862586fi
    14872587rm -f conftest*
    14882588
    1489 
    1490 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1491 echo "configure:1492: checking for POSIXized ISC" >&5
     2589echo "$as_me:2589: checking for POSIXized ISC" >&5
     2590echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
    14922591if test -d /etc/conf/kconfig.d &&
    1493   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     2592   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    14942593then
    1495   echo "$ac_t""yes" 1>&6
     2594  echo "$as_me:2594: result: yes" >&5
     2595echo "${ECHO_T}yes" >&6
    14962596  ISC=yes # If later tests want to check for ISC.
    1497   cat >> confdefs.h <<\EOF
     2597
     2598cat >>confdefs.h <<\EOF
    14982599#define _POSIX_SOURCE 1
    14992600EOF
     
    15052606  fi
    15062607else
    1507   echo "$ac_t""no" 1>&6
     2608  echo "$as_me:2608: result: no" >&5
     2609echo "${ECHO_T}no" >&6
    15082610  ISC=
    15092611fi
    15102612
    1511 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    1512 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    1513 echo "configure:1514: checking for minix/config.h" >&5
    1514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1515   echo $ac_n "(cached) $ac_c" 1>&6
    1516 else
    1517   cat > conftest.$ac_ext <<EOF
    1518 #line 1519 "configure"
     2613echo "$as_me:2613: checking for minix/config.h" >&5
     2614echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     2615if test "${ac_cv_header_minix_config_h+set}" = set; then
     2616  echo $ECHO_N "(cached) $ECHO_C" >&6
     2617else
     2618  cat >conftest.$ac_ext <<_ACEOF
     2619#line 2619 "configure"
    15192620#include "confdefs.h"
    15202621#include <minix/config.h>
    1521 EOF
    1522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1523 { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1525 if test -z "$ac_err"; then
    1526   rm -rf conftest*
    1527   eval "ac_cv_header_$ac_safe=yes"
    1528 else
    1529   echo "$ac_err" >&5
    1530   echo "configure: failed program was:" >&5
     2622_ACEOF
     2623if { (eval echo "$as_me:2623: \"$ac_cpp conftest.$ac_ext\"") >&5
     2624  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2625  ac_status=$?
     2626  egrep -v '^ *\+' conftest.er1 >conftest.err
     2627  rm -f conftest.er1
     2628  cat conftest.err >&5
     2629  echo "$as_me:2629: \$? = $ac_status" >&5
     2630  (exit $ac_status); } >/dev/null; then
     2631  if test -s conftest.err; then
     2632    ac_cpp_err=$ac_c_preproc_warn_flag
     2633  else
     2634    ac_cpp_err=
     2635  fi
     2636else
     2637  ac_cpp_err=yes
     2638fi
     2639if test -z "$ac_cpp_err"; then
     2640  ac_cv_header_minix_config_h=yes
     2641else
     2642  echo "$as_me: failed program was:" >&5
    15312643  cat conftest.$ac_ext >&5
    1532   rm -rf conftest*
    1533   eval "ac_cv_header_$ac_safe=no"
    1534 fi
    1535 rm -f conftest*
    1536 fi
    1537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1538   echo "$ac_t""yes" 1>&6
     2644  ac_cv_header_minix_config_h=no
     2645fi
     2646rm -f conftest.err conftest.$ac_ext
     2647fi
     2648echo "$as_me:2648: result: $ac_cv_header_minix_config_h" >&5
     2649echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     2650if test $ac_cv_header_minix_config_h = yes; then
    15392651  MINIX=yes
    15402652else
    1541   echo "$ac_t""no" 1>&6
    1542 MINIX=
     2653  MINIX=
    15432654fi
    15442655
    15452656if test "$MINIX" = yes; then
    1546   cat >> confdefs.h <<\EOF
     2657
     2658cat >>confdefs.h <<\EOF
    15472659#define _POSIX_SOURCE 1
    15482660EOF
    15492661
    1550   cat >> confdefs.h <<\EOF
     2662cat >>confdefs.h <<\EOF
    15512663#define _POSIX_1_SOURCE 2
    15522664EOF
    15532665
    1554   cat >> confdefs.h <<\EOF
     2666cat >>confdefs.h <<\EOF
    15552667#define _MINIX 1
    15562668EOF
     
    15582670fi
    15592671
    1560 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    1561 echo "configure:1562: checking for ${CC-cc} option to accept ANSI C" >&5
    1562 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    1563   echo $ac_n "(cached) $ac_c" 1>&6
     2672echo "$as_me:2672: checking for ${CC-cc} option to accept ANSI C" >&5
     2673echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     2674if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2675  echo $ECHO_N "(cached) $ECHO_C" >&6
    15642676else
    15652677  ac_cv_prog_cc_stdc=no
     
    15742686do
    15752687  CFLAGS="$ac_save_CFLAGS $ac_arg"
    1576   cat > conftest.$ac_ext <<EOF
    1577 #line 1578 "configure"
     2688  cat >conftest.$ac_ext <<_ACEOF
     2689#line 2689 "configure"
    15782690#include "confdefs.h"
    15792691#if !defined(__STDC__) || __STDC__ != 1
    15802692choke me
    1581 #endif 
    1582 
    1583 int main() {
     2693#endif
     2694
     2695int
     2696main ()
     2697{
    15842698int test (int i, double x);
    15852699struct s1 {int (*f) (int a);};
    15862700struct s2 {int (*f) (double a);};
    1587 ; return 0; }
    1588 EOF
    1589 if { (eval echo configure:1590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1590   rm -rf conftest*
     2701  ;
     2702  return 0;
     2703}
     2704_ACEOF
     2705rm -f conftest.$ac_objext
     2706if { (eval echo "$as_me:2706: \"$ac_compile\"") >&5
     2707  (eval $ac_compile) 2>&5
     2708  ac_status=$?
     2709  echo "$as_me:2709: \$? = $ac_status" >&5
     2710  (exit $ac_status); } &&
     2711         { ac_try='test -s conftest.$ac_objext'
     2712  { (eval echo "$as_me:2712: \"$ac_try\"") >&5
     2713  (eval $ac_try) 2>&5
     2714  ac_status=$?
     2715  echo "$as_me:2715: \$? = $ac_status" >&5
     2716  (exit $ac_status); }; }; then
    15912717  ac_cv_prog_cc_stdc="$ac_arg"; break
    15922718else
    1593   echo "configure: failed program was:" >&5
    1594   cat conftest.$ac_ext >&5
    1595 fi
    1596 rm -f conftest*
     2719  echo "$as_me: failed program was:" >&5
     2720cat conftest.$ac_ext >&5
     2721fi
     2722rm -f conftest.$ac_objext conftest.$ac_ext
    15972723done
    15982724CFLAGS="$ac_save_CFLAGS"
     
    16002726fi
    16012727
    1602 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
     2728echo "$as_me:2728: result: $ac_cv_prog_cc_stdc" >&5
     2729echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    16032730case "x$ac_cv_prog_cc_stdc" in
    16042731  x|xno) ;;
     
    16062733esac
    16072734
    1608 
    1609 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
    1610 echo "configure:1611: checking for function prototypes" >&5
     2735echo "$as_me:2735: checking for function prototypes" >&5
     2736echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    16112737if test "$ac_cv_prog_cc_stdc" != no; then
    1612   echo "$ac_t""yes" 1>&6
    1613   cat >> confdefs.h <<\EOF
     2738  echo "$as_me:2738: result: yes" >&5
     2739echo "${ECHO_T}yes" >&6
     2740  cat >>confdefs.h <<\EOF
    16142741#define PROTOTYPES 1
    16152742EOF
     
    16172744  U= ANSI2KNR=
    16182745else
    1619   echo "$ac_t""no" 1>&6
     2746  echo "$as_me:2746: result: no" >&5
     2747echo "${ECHO_T}no" >&6
    16202748  U=_ ANSI2KNR=ansi2knr
    16212749fi
    16222750
    1623 echo $ac_n "checking for working const""... $ac_c" 1>&6
    1624 echo "configure:1625: checking for working const" >&5
    1625 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    1626   echo $ac_n "(cached) $ac_c" 1>&6
    1627 else
    1628   cat > conftest.$ac_ext <<EOF
    1629 #line 1630 "configure"
    1630 #include "confdefs.h"
    1631 
    1632 int main() {
    1633 
    1634 /* Ultrix mips cc rejects this.  */
    1635 typedef int charset[2]; const charset x;
    1636 /* SunOS 4.1.1 cc rejects this.  */
    1637 char const *const *ccp;
    1638 char **p;
    1639 /* NEC SVR4.0.2 mips cc rejects this.  */
    1640 struct point {int x, y;};
    1641 static struct point const zero = {0,0};
    1642 /* AIX XL C 1.02.0.0 rejects this.
    1643    It does not let you subtract one const X* pointer from another in an arm
    1644    of an if-expression whose if-part is not a constant expression */
    1645 const char *g = "string";
    1646 ccp = &g + (g ? g-g : 0);
    1647 /* HPUX 7.0 cc rejects these. */
    1648 ++ccp;
    1649 p = (char**) ccp;
    1650 ccp = (char const *const *) p;
    1651 { /* SCO 3.2v4 cc rejects this.  */
    1652   char *t;
    1653   char const *s = 0 ? (char *) 0 : (char const *) 0;
    1654 
    1655   *t++ = 0;
     2751echo "$as_me:2751: checking for $CC option to accept ANSI C" >&5
     2752echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2753if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2754  echo $ECHO_N "(cached) $ECHO_C" >&6
     2755else
     2756  ac_cv_prog_cc_stdc=no
     2757ac_save_CC=$CC
     2758cat >conftest.$ac_ext <<_ACEOF
     2759#line 2759 "configure"
     2760#include "confdefs.h"
     2761#include <stdarg.h>
     2762#include <stdio.h>
     2763#include <sys/types.h>
     2764#include <sys/stat.h>
     2765/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2766struct buf { int x; };
     2767FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2768static char *e (p, i)
     2769     char **p;
     2770     int i;
     2771{
     2772  return p[i];
    16562773}
    1657 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    1658   int x[] = {25, 17};
    1659   const int *foo = &x[0];
    1660   ++foo;
     2774static char *f (char * (*g) (char **, int), char **p, ...)
     2775{
     2776  char *s;
     2777  va_list v;
     2778  va_start (v,p);
     2779  s = g (p, va_arg (v,int));
     2780  va_end (v);
     2781  return s;
    16612782}
    1662 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    1663   typedef const int *iptr;
    1664   iptr p = 0;
    1665   ++p;
     2783int test (int i, double x);
     2784struct s1 {int (*f) (int a);};
     2785struct s2 {int (*f) (double a);};
     2786int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2787int argc;
     2788char **argv;
     2789int
     2790main ()
     2791{
     2792return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2793  ;
     2794  return 0;
    16662795}
    1667 { /* AIX XL C 1.02.0.0 rejects this saying
    1668      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    1669   struct s { int j; const int *ap[3]; };
    1670   struct s *b; b->j = 5;
     2796_ACEOF
     2797# Don't try gcc -ansi; that turns off useful extensions and
     2798# breaks some systems' header files.
     2799# AIX           -qlanglvl=ansi
     2800# Ultrix and OSF/1  -std1
     2801# HP-UX 10.20 and later -Ae
     2802# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2803# SVR4          -Xc -D__EXTENSIONS__
     2804for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2805do
     2806  CC="$ac_save_CC $ac_arg"
     2807  rm -f conftest.$ac_objext
     2808if { (eval echo "$as_me:2808: \"$ac_compile\"") >&5
     2809  (eval $ac_compile) 2>&5
     2810  ac_status=$?
     2811  echo "$as_me:2811: \$? = $ac_status" >&5
     2812  (exit $ac_status); } &&
     2813         { ac_try='test -s conftest.$ac_objext'
     2814  { (eval echo "$as_me:2814: \"$ac_try\"") >&5
     2815  (eval $ac_try) 2>&5
     2816  ac_status=$?
     2817  echo "$as_me:2817: \$? = $ac_status" >&5
     2818  (exit $ac_status); }; }; then
     2819  ac_cv_prog_cc_stdc=$ac_arg
     2820break
     2821else
     2822  echo "$as_me: failed program was:" >&5
     2823cat conftest.$ac_ext >&5
     2824fi
     2825rm -f conftest.$ac_objext
     2826done
     2827rm -f conftest.$ac_ext conftest.$ac_objext
     2828CC=$ac_save_CC
     2829
     2830fi
     2831
     2832case "x$ac_cv_prog_cc_stdc" in
     2833  x|xno)
     2834    echo "$as_me:2834: result: none needed" >&5
     2835echo "${ECHO_T}none needed" >&6 ;;
     2836  *)
     2837    echo "$as_me:2837: result: $ac_cv_prog_cc_stdc" >&5
     2838echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2839    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2840esac
     2841
     2842echo "$as_me:2842: checking for an ANSI C-conforming const" >&5
     2843echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     2844if test "${ac_cv_c_const+set}" = set; then
     2845  echo $ECHO_N "(cached) $ECHO_C" >&6
     2846else
     2847  cat >conftest.$ac_ext <<_ACEOF
     2848#line 2848 "configure"
     2849#include "confdefs.h"
     2850
     2851int
     2852main ()
     2853{
     2854/* FIXME: Include the comments suggested by Paul. */
     2855#ifndef __cplusplus
     2856  /* Ultrix mips cc rejects this.  */
     2857  typedef int charset[2];
     2858  const charset x;
     2859  /* SunOS 4.1.1 cc rejects this.  */
     2860  char const *const *ccp;
     2861  char **p;
     2862  /* NEC SVR4.0.2 mips cc rejects this.  */
     2863  struct point {int x, y;};
     2864  static struct point const zero = {0,0};
     2865  /* AIX XL C 1.02.0.0 rejects this.
     2866     It does not let you subtract one const X* pointer from another in
     2867     an arm of an if-expression whose if-part is not a constant
     2868     expression */
     2869  const char *g = "string";
     2870  ccp = &g + (g ? g-g : 0);
     2871  /* HPUX 7.0 cc rejects these. */
     2872  ++ccp;
     2873  p = (char**) ccp;
     2874  ccp = (char const *const *) p;
     2875  { /* SCO 3.2v4 cc rejects this.  */
     2876    char *t;
     2877    char const *s = 0 ? (char *) 0 : (char const *) 0;
     2878
     2879    *t++ = 0;
     2880  }
     2881  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     2882    int x[] = {25, 17};
     2883    const int *foo = &x[0];
     2884    ++foo;
     2885  }
     2886  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     2887    typedef const int *iptr;
     2888    iptr p = 0;
     2889    ++p;
     2890  }
     2891  { /* AIX XL C 1.02.0.0 rejects this saying
     2892       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     2893    struct s { int j; const int *ap[3]; };
     2894    struct s *b; b->j = 5;
     2895  }
     2896  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     2897    const int foo = 10;
     2898  }
     2899#endif
     2900
     2901  ;
     2902  return 0;
    16712903}
    1672 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    1673   const int foo = 10;
    1674 }
    1675 
    1676 ; return 0; }
    1677 EOF
    1678 if { (eval echo configure:1679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1679   rm -rf conftest*
     2904_ACEOF
     2905rm -f conftest.$ac_objext
     2906if { (eval echo "$as_me:2906: \"$ac_compile\"") >&5
     2907  (eval $ac_compile) 2>&5
     2908  ac_status=$?
     2909  echo "$as_me:2909: \$? = $ac_status" >&5
     2910  (exit $ac_status); } &&
     2911         { ac_try='test -s conftest.$ac_objext'
     2912  { (eval echo "$as_me:2912: \"$ac_try\"") >&5
     2913  (eval $ac_try) 2>&5
     2914  ac_status=$?
     2915  echo "$as_me:2915: \$? = $ac_status" >&5
     2916  (exit $ac_status); }; }; then
    16802917  ac_cv_c_const=yes
    16812918else
    1682   echo "configure: failed program was:" >&5
    1683   cat conftest.$ac_ext >&5
    1684   rm -rf conftest*
    1685   ac_cv_c_const=no
    1686 fi
    1687 rm -f conftest*
    1688 fi
    1689 
    1690 echo "$ac_t""$ac_cv_c_const" 1>&6
     2919  echo "$as_me: failed program was:" >&5
     2920cat conftest.$ac_ext >&5
     2921ac_cv_c_const=no
     2922fi
     2923rm -f conftest.$ac_objext conftest.$ac_ext
     2924fi
     2925echo "$as_me:2925: result: $ac_cv_c_const" >&5
     2926echo "${ECHO_T}$ac_cv_c_const" >&6
    16912927if test $ac_cv_c_const = no; then
    1692   cat >> confdefs.h <<\EOF
    1693 #define const
    1694 EOF
    1695 
    1696 fi
    1697 
    1698 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1699 echo "configure:1700: checking for ANSI C header files" >&5
    1700 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1701   echo $ac_n "(cached) $ac_c" 1>&6
    1702 else
    1703   cat > conftest.$ac_ext <<EOF
    1704 #line 1705 "configure"
     2928
     2929cat >>confdefs.h <<\EOF
     2930#define const
     2931EOF
     2932
     2933fi
     2934
     2935echo "$as_me:2935: checking for ANSI C header files" >&5
     2936echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     2937if test "${ac_cv_header_stdc+set}" = set; then
     2938  echo $ECHO_N "(cached) $ECHO_C" >&6
     2939else
     2940  cat >conftest.$ac_ext <<_ACEOF
     2941#line 2941 "configure"
    17052942#include "confdefs.h"
    17062943#include <stdlib.h>
     
    17082945#include <string.h>
    17092946#include <float.h>
    1710 EOF
    1711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1712 { (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1714 if test -z "$ac_err"; then
    1715   rm -rf conftest*
     2947
     2948_ACEOF
     2949if { (eval echo "$as_me:2949: \"$ac_cpp conftest.$ac_ext\"") >&5
     2950  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2951  ac_status=$?
     2952  egrep -v '^ *\+' conftest.er1 >conftest.err
     2953  rm -f conftest.er1
     2954  cat conftest.err >&5
     2955  echo "$as_me:2955: \$? = $ac_status" >&5
     2956  (exit $ac_status); } >/dev/null; then
     2957  if test -s conftest.err; then
     2958    ac_cpp_err=$ac_c_preproc_warn_flag
     2959  else
     2960    ac_cpp_err=
     2961  fi
     2962else
     2963  ac_cpp_err=yes
     2964fi
     2965if test -z "$ac_cpp_err"; then
    17162966  ac_cv_header_stdc=yes
    17172967else
    1718   echo "$ac_err" >&5
    1719   echo "configure: failed program was:" >&5
     2968  echo "$as_me: failed program was:" >&5
    17202969  cat conftest.$ac_ext >&5
    1721   rm -rf conftest*
    17222970  ac_cv_header_stdc=no
    17232971fi
    1724 rm -f conftest*
     2972rm -f conftest.err conftest.$ac_ext
    17252973
    17262974if test $ac_cv_header_stdc = yes; then
    17272975  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1728 cat > conftest.$ac_ext <<EOF
    1729 #line 1730 "configure"
     2976  cat >conftest.$ac_ext <<_ACEOF
     2977#line 2977 "configure"
    17302978#include "confdefs.h"
    17312979#include <string.h>
    1732 EOF
     2980
     2981_ACEOF
    17332982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    17342983  egrep "memchr" >/dev/null 2>&1; then
    17352984  :
    17362985else
    1737   rm -rf conftest*
    17382986  ac_cv_header_stdc=no
    17392987fi
     
    17442992if test $ac_cv_header_stdc = yes; then
    17452993  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1746 cat > conftest.$ac_ext <<EOF
    1747 #line 1748 "configure"
     2994  cat >conftest.$ac_ext <<_ACEOF
     2995#line 2995 "configure"
    17482996#include "confdefs.h"
    17492997#include <stdlib.h>
    1750 EOF
     2998
     2999_ACEOF
    17513000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    17523001  egrep "free" >/dev/null 2>&1; then
    17533002  :
    17543003else
    1755   rm -rf conftest*
    17563004  ac_cv_header_stdc=no
    17573005fi
     
    17623010if test $ac_cv_header_stdc = yes; then
    17633011  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1764 if test "$cross_compiling" = yes; then
     3012  if test "$cross_compiling" = yes; then
    17653013  :
    17663014else
    1767   cat > conftest.$ac_ext <<EOF
    1768 #line 1769 "configure"
     3015  cat >conftest.$ac_ext <<_ACEOF
     3016#line 3016 "configure"
    17693017#include "confdefs.h"
    17703018#include <ctype.h>
    1771 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1772 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3019#if ((' ' & 0x0FF) == 0x020)
     3020# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3021# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3022#else
     3023# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     3024                     || ('j' <= (c) && (c) <= 'r') \
     3025                     || ('s' <= (c) && (c) <= 'z'))
     3026# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3027#endif
     3028
    17733029#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1774 int main () { int i; for (i = 0; i < 256; i++)
    1775 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1776 exit (0); }
    1777 
    1778 EOF
    1779 if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1780 then
     3030int
     3031main ()
     3032{
     3033  int i;
     3034  for (i = 0; i < 256; i++)
     3035    if (XOR (islower (i), ISLOWER (i))
     3036        || toupper (i) != TOUPPER (i))
     3037      exit(2);
     3038  exit (0);
     3039}
     3040_ACEOF
     3041rm -f conftest$ac_exeext
     3042if { (eval echo "$as_me:3042: \"$ac_link\"") >&5
     3043  (eval $ac_link) 2>&5
     3044  ac_status=$?
     3045  echo "$as_me:3045: \$? = $ac_status" >&5
     3046  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3047  { (eval echo "$as_me:3047: \"$ac_try\"") >&5
     3048  (eval $ac_try) 2>&5
     3049  ac_status=$?
     3050  echo "$as_me:3050: \$? = $ac_status" >&5
     3051  (exit $ac_status); }; }; then
    17813052  :
    17823053else
    1783   echo "configure: failed program was:" >&5
     3054  echo "$as_me: program exited with status $ac_status" >&5
     3055echo "$as_me: failed program was:" >&5
     3056cat conftest.$ac_ext >&5
     3057ac_cv_header_stdc=no
     3058fi
     3059rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     3060fi
     3061fi
     3062fi
     3063echo "$as_me:3063: result: $ac_cv_header_stdc" >&5
     3064echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3065if test $ac_cv_header_stdc = yes; then
     3066
     3067cat >>confdefs.h <<\EOF
     3068#define STDC_HEADERS 1
     3069EOF
     3070
     3071fi
     3072
     3073for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
     3074do
     3075ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     3076echo "$as_me:3076: checking for $ac_header" >&5
     3077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3078if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     3079  echo $ECHO_N "(cached) $ECHO_C" >&6
     3080else
     3081  cat >conftest.$ac_ext <<_ACEOF
     3082#line 3082 "configure"
     3083#include "confdefs.h"
     3084#include <$ac_header>
     3085_ACEOF
     3086if { (eval echo "$as_me:3086: \"$ac_cpp conftest.$ac_ext\"") >&5
     3087  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3088  ac_status=$?
     3089  egrep -v '^ *\+' conftest.er1 >conftest.err
     3090  rm -f conftest.er1
     3091  cat conftest.err >&5
     3092  echo "$as_me:3092: \$? = $ac_status" >&5
     3093  (exit $ac_status); } >/dev/null; then
     3094  if test -s conftest.err; then
     3095    ac_cpp_err=$ac_c_preproc_warn_flag
     3096  else
     3097    ac_cpp_err=
     3098  fi
     3099else
     3100  ac_cpp_err=yes
     3101fi
     3102if test -z "$ac_cpp_err"; then
     3103  eval "$ac_ac_Header=yes"
     3104else
     3105  echo "$as_me: failed program was:" >&5
    17843106  cat conftest.$ac_ext >&5
    1785   rm -fr conftest*
    1786   ac_cv_header_stdc=no
    1787 fi
    1788 rm -fr conftest*
    1789 fi
    1790 
    1791 fi
    1792 fi
    1793 
    1794 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    1795 if test $ac_cv_header_stdc = yes; then
    1796   cat >> confdefs.h <<\EOF
    1797 #define STDC_HEADERS 1
    1798 EOF
    1799 
    1800 fi
    1801 
    1802 echo $ac_n "checking for off_t""... $ac_c" 1>&6
    1803 echo "configure:1804: checking for off_t" >&5
    1804 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    1805   echo $ac_n "(cached) $ac_c" 1>&6
    1806 else
    1807   cat > conftest.$ac_ext <<EOF
    1808 #line 1809 "configure"
    1809 #include "confdefs.h"
    1810 #include <sys/types.h>
    1811 #if STDC_HEADERS
    1812 #include <stdlib.h>
    1813 #include <stddef.h>
    1814 #endif
    1815 EOF
    1816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1817   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1818   rm -rf conftest*
     3107  eval "$ac_ac_Header=no"
     3108fi
     3109rm -f conftest.err conftest.$ac_ext
     3110fi
     3111echo "$as_me:3111: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     3112echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     3113if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     3114  cat >>confdefs.h <<EOF
     3115#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
     3116EOF
     3117
     3118fi
     3119done
     3120
     3121echo "$as_me:3121: checking for off_t" >&5
     3122echo $ECHO_N "checking for off_t... $ECHO_C" >&6
     3123if test "${ac_cv_type_off_t+set}" = set; then
     3124  echo $ECHO_N "(cached) $ECHO_C" >&6
     3125else
     3126  cat >conftest.$ac_ext <<_ACEOF
     3127#line 3127 "configure"
     3128#include "confdefs.h"
     3129$ac_includes_default
     3130int
     3131main ()
     3132{
     3133if ((off_t *) 0)
     3134  return 0;
     3135if (sizeof (off_t))
     3136  return 0;
     3137  ;
     3138  return 0;
     3139}
     3140_ACEOF
     3141rm -f conftest.$ac_objext
     3142if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5
     3143  (eval $ac_compile) 2>&5
     3144  ac_status=$?
     3145  echo "$as_me:3145: \$? = $ac_status" >&5
     3146  (exit $ac_status); } &&
     3147         { ac_try='test -s conftest.$ac_objext'
     3148  { (eval echo "$as_me:3148: \"$ac_try\"") >&5
     3149  (eval $ac_try) 2>&5
     3150  ac_status=$?
     3151  echo "$as_me:3151: \$? = $ac_status" >&5
     3152  (exit $ac_status); }; }; then
    18193153  ac_cv_type_off_t=yes
    18203154else
    1821   rm -rf conftest*
    1822   ac_cv_type_off_t=no
    1823 fi
    1824 rm -f conftest*
    1825 
    1826 fi
    1827 echo "$ac_t""$ac_cv_type_off_t" 1>&6
    1828 if test $ac_cv_type_off_t = no; then
    1829   cat >> confdefs.h <<\EOF
     3155  echo "$as_me: failed program was:" >&5
     3156cat conftest.$ac_ext >&5
     3157ac_cv_type_off_t=no
     3158fi
     3159rm -f conftest.$ac_objext conftest.$ac_ext
     3160fi
     3161echo "$as_me:3161: result: $ac_cv_type_off_t" >&5
     3162echo "${ECHO_T}$ac_cv_type_off_t" >&6
     3163if test $ac_cv_type_off_t = yes; then
     3164  :
     3165else
     3166
     3167cat >>confdefs.h <<EOF
    18303168#define off_t long
    18313169EOF
     
    18333171fi
    18343172
    1835 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1836 echo "configure:1837: checking for size_t" >&5
    1837 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    1838   echo $ac_n "(cached) $ac_c" 1>&6
    1839 else
    1840   cat > conftest.$ac_ext <<EOF
    1841 #line 1842 "configure"
    1842 #include "confdefs.h"
    1843 #include <sys/types.h>
    1844 #if STDC_HEADERS
    1845 #include <stdlib.h>
    1846 #include <stddef.h>
    1847 #endif
    1848 EOF
    1849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1850   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1851   rm -rf conftest*
     3173echo "$as_me:3173: checking for size_t" >&5
     3174echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     3175if test "${ac_cv_type_size_t+set}" = set; then
     3176  echo $ECHO_N "(cached) $ECHO_C" >&6
     3177else
     3178  cat >conftest.$ac_ext <<_ACEOF
     3179#line 3179 "configure"
     3180#include "confdefs.h"
     3181$ac_includes_default
     3182int
     3183main ()
     3184{
     3185if ((size_t *) 0)
     3186  return 0;
     3187if (sizeof (size_t))
     3188  return 0;
     3189  ;
     3190  return 0;
     3191}
     3192_ACEOF
     3193rm -f conftest.$ac_objext
     3194if { (eval echo "$as_me:3194: \"$ac_compile\"") >&5
     3195  (eval $ac_compile) 2>&5
     3196  ac_status=$?
     3197  echo "$as_me:3197: \$? = $ac_status" >&5
     3198  (exit $ac_status); } &&
     3199         { ac_try='test -s conftest.$ac_objext'
     3200  { (eval echo "$as_me:3200: \"$ac_try\"") >&5
     3201  (eval $ac_try) 2>&5
     3202  ac_status=$?
     3203  echo "$as_me:3203: \$? = $ac_status" >&5
     3204  (exit $ac_status); }; }; then
    18523205  ac_cv_type_size_t=yes
    18533206else
    1854   rm -rf conftest*
    1855   ac_cv_type_size_t=no
    1856 fi
    1857 rm -f conftest*
    1858 
    1859 fi
    1860 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    1861 if test $ac_cv_type_size_t = no; then
    1862   cat >> confdefs.h <<\EOF
     3207  echo "$as_me: failed program was:" >&5
     3208cat conftest.$ac_ext >&5
     3209ac_cv_type_size_t=no
     3210fi
     3211rm -f conftest.$ac_objext conftest.$ac_ext
     3212fi
     3213echo "$as_me:3213: result: $ac_cv_type_size_t" >&5
     3214echo "${ECHO_T}$ac_cv_type_size_t" >&6
     3215if test $ac_cv_type_size_t = yes; then
     3216  :
     3217else
     3218
     3219cat >>confdefs.h <<EOF
    18633220#define size_t unsigned
    18643221EOF
     
    18663223fi
    18673224
    1868 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1869 echo "configure:1870: checking whether time.h and sys/time.h may both be included" >&5
    1870 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    1871   echo $ac_n "(cached) $ac_c" 1>&6
    1872 else
    1873   cat > conftest.$ac_ext <<EOF
    1874 #line 1875 "configure"
     3225echo "$as_me:3225: checking whether time.h and sys/time.h may both be included" >&5
     3226echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     3227if test "${ac_cv_header_time+set}" = set; then
     3228  echo $ECHO_N "(cached) $ECHO_C" >&6
     3229else
     3230  cat >conftest.$ac_ext <<_ACEOF
     3231#line 3231 "configure"
    18753232#include "confdefs.h"
    18763233#include <sys/types.h>
    18773234#include <sys/time.h>
    18783235#include <time.h>
    1879 int main() {
     3236
     3237int
     3238main ()
     3239{
    18803240struct tm *tp;
    1881 ; return 0; }
    1882 EOF
    1883 if { (eval echo configure:1884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1884   rm -rf conftest*
     3241  ;
     3242  return 0;
     3243}
     3244_ACEOF
     3245rm -f conftest.$ac_objext
     3246if { (eval echo "$as_me:3246: \"$ac_compile\"") >&5
     3247  (eval $ac_compile) 2>&5
     3248  ac_status=$?
     3249  echo "$as_me:3249: \$? = $ac_status" >&5
     3250  (exit $ac_status); } &&
     3251         { ac_try='test -s conftest.$ac_objext'
     3252  { (eval echo "$as_me:3252: \"$ac_try\"") >&5
     3253  (eval $ac_try) 2>&5
     3254  ac_status=$?
     3255  echo "$as_me:3255: \$? = $ac_status" >&5
     3256  (exit $ac_status); }; }; then
    18853257  ac_cv_header_time=yes
    18863258else
    1887   echo "configure: failed program was:" >&5
    1888   cat conftest.$ac_ext >&5
    1889   rm -rf conftest*
    1890   ac_cv_header_time=no
    1891 fi
    1892 rm -f conftest*
    1893 fi
    1894 
    1895 echo "$ac_t""$ac_cv_header_time" 1>&6
     3259  echo "$as_me: failed program was:" >&5
     3260cat conftest.$ac_ext >&5
     3261ac_cv_header_time=no
     3262fi
     3263rm -f conftest.$ac_objext conftest.$ac_ext
     3264fi
     3265echo "$as_me:3265: result: $ac_cv_header_time" >&5
     3266echo "${ECHO_T}$ac_cv_header_time" >&6
    18963267if test $ac_cv_header_time = yes; then
    1897   cat >> confdefs.h <<\EOF
     3268
     3269cat >>confdefs.h <<\EOF
    18983270#define TIME_WITH_SYS_TIME 1
    18993271EOF
     
    19013273fi
    19023274
    1903 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1904 echo "configure:1905: checking whether struct tm is in sys/time.h or time.h" >&5
    1905 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    1906   echo $ac_n "(cached) $ac_c" 1>&6
    1907 else
    1908   cat > conftest.$ac_ext <<EOF
    1909 #line 1910 "configure"
     3275echo "$as_me:3275: checking whether struct tm is in sys/time.h or time.h" >&5
     3276echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     3277if test "${ac_cv_struct_tm+set}" = set; then
     3278  echo $ECHO_N "(cached) $ECHO_C" >&6
     3279else
     3280  cat >conftest.$ac_ext <<_ACEOF
     3281#line 3281 "configure"
    19103282#include "confdefs.h"
    19113283#include <sys/types.h>
    19123284#include <time.h>
    1913 int main() {
     3285
     3286int
     3287main ()
     3288{
    19143289struct tm *tp; tp->tm_sec;
    1915 ; return 0; }
    1916 EOF
    1917 if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1918   rm -rf conftest*
     3290  ;
     3291  return 0;
     3292}
     3293_ACEOF
     3294rm -f conftest.$ac_objext
     3295if { (eval echo "$as_me:3295: \"$ac_compile\"") >&5
     3296  (eval $ac_compile) 2>&5
     3297  ac_status=$?
     3298  echo "$as_me:3298: \$? = $ac_status" >&5
     3299  (exit $ac_status); } &&
     3300         { ac_try='test -s conftest.$ac_objext'
     3301  { (eval echo "$as_me:3301: \"$ac_try\"") >&5
     3302  (eval $ac_try) 2>&5
     3303  ac_status=$?
     3304  echo "$as_me:3304: \$? = $ac_status" >&5
     3305  (exit $ac_status); }; }; then
    19193306  ac_cv_struct_tm=time.h
    19203307else
    1921   echo "configure: failed program was:" >&5
    1922   cat conftest.$ac_ext >&5
    1923   rm -rf conftest*
    1924   ac_cv_struct_tm=sys/time.h
    1925 fi
    1926 rm -f conftest*
    1927 fi
    1928 
    1929 echo "$ac_t""$ac_cv_struct_tm" 1>&6
     3308  echo "$as_me: failed program was:" >&5
     3309cat conftest.$ac_ext >&5
     3310ac_cv_struct_tm=sys/time.h
     3311fi
     3312rm -f conftest.$ac_objext conftest.$ac_ext
     3313fi
     3314echo "$as_me:3314: result: $ac_cv_struct_tm" >&5
     3315echo "${ECHO_T}$ac_cv_struct_tm" >&6
    19303316if test $ac_cv_struct_tm = sys/time.h; then
    1931   cat >> confdefs.h <<\EOF
     3317
     3318cat >>confdefs.h <<\EOF
    19323319#define TM_IN_SYS_TIME 1
    19333320EOF
     
    19353322fi
    19363323
    1937 
    19383324if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    1939 cat > conftest.$ac_ext <<EOF
    1940 #line 1941 "configure"
     3325cat >conftest.$ac_ext <<_ACEOF
     3326#line 3326 "configure"
    19413327#include "confdefs.h"
    19423328#include <stdio.h>
    19433329
    1944 int main() {
    1945  FILE *rubbish = popen("yes", "r");
    1946 ; return 0; }
    1947 EOF
    1948 if { (eval echo configure:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3330int
     3331main ()
     3332{
     3333 FILE *rubbish = popen("yes", "r");
     3334  ;
     3335  return 0;
     3336}
     3337_ACEOF
     3338rm -f conftest.$ac_objext
     3339if { (eval echo "$as_me:3339: \"$ac_compile\"") >&5
     3340  (eval $ac_compile) 2>&5
     3341  ac_status=$?
     3342  echo "$as_me:3342: \$? = $ac_status" >&5
     3343  (exit $ac_status); } &&
     3344         { ac_try='test -s conftest.$ac_objext'
     3345  { (eval echo "$as_me:3345: \"$ac_try\"") >&5
     3346  (eval $ac_try) 2>&5
     3347  ac_status=$?
     3348  echo "$as_me:3348: \$? = $ac_status" >&5
     3349  (exit $ac_status); }; }; then
    19493350  :
    19503351else
    1951   echo "configure: failed program was:" >&5
    1952   cat conftest.$ac_ext >&5
    1953   rm -rf conftest*
    1954   CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    1955 fi
    1956 rm -f conftest*
    1957 fi
    1958 
    1959 
    1960 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
    1961 echo "configure:1962: checking for main in -lg" >&5
    1962 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
    1963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1964   echo $ac_n "(cached) $ac_c" 1>&6
    1965 else
    1966   ac_save_LIBS="$LIBS"
     3352  echo "$as_me: failed program was:" >&5
     3353cat conftest.$ac_ext >&5
     3354CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     3355fi
     3356rm -f conftest.$ac_objext conftest.$ac_ext
     3357fi
     3358
     3359echo "$as_me:3359: checking for main in -lg" >&5
     3360echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
     3361if test "${ac_cv_lib_g_main+set}" = set; then
     3362  echo $ECHO_N "(cached) $ECHO_C" >&6
     3363else
     3364  ac_check_lib_save_LIBS=$LIBS
    19673365LIBS="-lg  $LIBS"
    1968 cat > conftest.$ac_ext <<EOF
    1969 #line 1970 "configure"
    1970 #include "confdefs.h"
    1971 
    1972 int main() {
    1973 main()
    1974 ; return 0; }
    1975 EOF
    1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1977   rm -rf conftest*
    1978   eval "ac_cv_lib_$ac_lib_var=yes"
    1979 else
    1980   echo "configure: failed program was:" >&5
    1981   cat conftest.$ac_ext >&5
    1982   rm -rf conftest*
    1983   eval "ac_cv_lib_$ac_lib_var=no"
    1984 fi
    1985 rm -f conftest*
    1986 LIBS="$ac_save_LIBS"
    1987 
    1988 fi
    1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1990   echo "$ac_t""yes" 1>&6
    1991     ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1992     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1993   cat >> confdefs.h <<EOF
    1994 #define $ac_tr_lib 1
     3366cat >conftest.$ac_ext <<_ACEOF
     3367#line 3367 "configure"
     3368#include "confdefs.h"
     3369
     3370int
     3371main ()
     3372{
     3373main ();
     3374  ;
     3375  return 0;
     3376}
     3377_ACEOF
     3378rm -f conftest.$ac_objext conftest$ac_exeext
     3379if { (eval echo "$as_me:3379: \"$ac_link\"") >&5
     3380  (eval $ac_link) 2>&5
     3381  ac_status=$?
     3382  echo "$as_me:3382: \$? = $ac_status" >&5
     3383  (exit $ac_status); } &&
     3384         { ac_try='test -s conftest$ac_exeext'
     3385  { (eval echo "$as_me:3385: \"$ac_try\"") >&5
     3386  (eval $ac_try) 2>&5
     3387  ac_status=$?
     3388  echo "$as_me:3388: \$? = $ac_status" >&5
     3389  (exit $ac_status); }; }; then
     3390  ac_cv_lib_g_main=yes
     3391else
     3392  echo "$as_me: failed program was:" >&5
     3393cat conftest.$ac_ext >&5
     3394ac_cv_lib_g_main=no
     3395fi
     3396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3397LIBS=$ac_check_lib_save_LIBS
     3398fi
     3399echo "$as_me:3399: result: $ac_cv_lib_g_main" >&5
     3400echo "${ECHO_T}$ac_cv_lib_g_main" >&6
     3401if test $ac_cv_lib_g_main = yes; then
     3402  cat >>confdefs.h <<EOF
     3403#define HAVE_LIBG 1
    19953404EOF
    19963405
    19973406  LIBS="-lg $LIBS"
    19983407
    1999 else
    2000   echo "$ac_t""no" 1>&6
    2001 fi
    2002 
    2003 echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
    2004 echo "configure:2005: checking for main in -lgdbm" >&5
    2005 ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
    2006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2007   echo $ac_n "(cached) $ac_c" 1>&6
    2008 else
    2009   ac_save_LIBS="$LIBS"
     3408fi
     3409
     3410echo "$as_me:3410: checking for main in -lgdbm" >&5
     3411echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
     3412if test "${ac_cv_lib_gdbm_main+set}" = set; then
     3413  echo $ECHO_N "(cached) $ECHO_C" >&6
     3414else
     3415  ac_check_lib_save_LIBS=$LIBS
    20103416LIBS="-lgdbm  $LIBS"
    2011 cat > conftest.$ac_ext <<EOF
    2012 #line 2013 "configure"
    2013 #include "confdefs.h"
    2014 
    2015 int main() {
    2016 main()
    2017 ; return 0; }
    2018 EOF
    2019 if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2020   rm -rf conftest*
    2021   eval "ac_cv_lib_$ac_lib_var=yes"
    2022 else
    2023   echo "configure: failed program was:" >&5
    2024   cat conftest.$ac_ext >&5
    2025   rm -rf conftest*
    2026   eval "ac_cv_lib_$ac_lib_var=no"
    2027 fi
    2028 rm -f conftest*
    2029 LIBS="$ac_save_LIBS"
    2030 
    2031 fi
    2032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2033   echo "$ac_t""yes" 1>&6
    2034     ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    2035     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    2036   cat >> confdefs.h <<EOF
    2037 #define $ac_tr_lib 1
     3417cat >conftest.$ac_ext <<_ACEOF
     3418#line 3418 "configure"
     3419#include "confdefs.h"
     3420
     3421int
     3422main ()
     3423{
     3424main ();
     3425  ;
     3426  return 0;
     3427}
     3428_ACEOF
     3429rm -f conftest.$ac_objext conftest$ac_exeext
     3430if { (eval echo "$as_me:3430: \"$ac_link\"") >&5
     3431  (eval $ac_link) 2>&5
     3432  ac_status=$?
     3433  echo "$as_me:3433: \$? = $ac_status" >&5
     3434  (exit $ac_status); } &&
     3435         { ac_try='test -s conftest$ac_exeext'
     3436  { (eval echo "$as_me:3436: \"$ac_try\"") >&5
     3437  (eval $ac_try) 2>&5
     3438  ac_status=$?
     3439  echo "$as_me:3439: \$? = $ac_status" >&5
     3440  (exit $ac_status); }; }; then
     3441  ac_cv_lib_gdbm_main=yes
     3442else
     3443  echo "$as_me: failed program was:" >&5
     3444cat conftest.$ac_ext >&5
     3445ac_cv_lib_gdbm_main=no
     3446fi
     3447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3448LIBS=$ac_check_lib_save_LIBS
     3449fi
     3450echo "$as_me:3450: result: $ac_cv_lib_gdbm_main" >&5
     3451echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
     3452if test $ac_cv_lib_gdbm_main = yes; then
     3453  cat >>confdefs.h <<EOF
     3454#define HAVE_LIBGDBM 1
    20383455EOF
    20393456
    20403457  LIBS="-lgdbm $LIBS"
    20413458
    2042 else
    2043   echo "$ac_t""no" 1>&6
    2044 fi
    2045 
    2046 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    2047 echo "configure:2048: checking for main in -lm" >&5
    2048 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    2049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2050   echo $ac_n "(cached) $ac_c" 1>&6
    2051 else
    2052   ac_save_LIBS="$LIBS"
     3459fi
     3460
     3461echo "$as_me:3461: checking for main in -lm" >&5
     3462echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     3463if test "${ac_cv_lib_m_main+set}" = set; then
     3464  echo $ECHO_N "(cached) $ECHO_C" >&6
     3465else
     3466  ac_check_lib_save_LIBS=$LIBS
    20533467LIBS="-lm  $LIBS"
    2054 cat > conftest.$ac_ext <<EOF
    2055 #line 2056 "configure"
    2056 #include "confdefs.h"
    2057 
    2058 int main() {
    2059 main()
    2060 ; return 0; }
    2061 EOF
    2062 if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2063   rm -rf conftest*
    2064   eval "ac_cv_lib_$ac_lib_var=yes"
    2065 else
    2066   echo "configure: failed program was:" >&5
    2067   cat conftest.$ac_ext >&5
    2068   rm -rf conftest*
    2069   eval "ac_cv_lib_$ac_lib_var=no"
    2070 fi
    2071 rm -f conftest*
    2072 LIBS="$ac_save_LIBS"
    2073 
    2074 fi
    2075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2076   echo "$ac_t""yes" 1>&6
    2077     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    2078     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    2079   cat >> confdefs.h <<EOF
    2080 #define $ac_tr_lib 1
     3468cat >conftest.$ac_ext <<_ACEOF
     3469#line 3469 "configure"
     3470#include "confdefs.h"
     3471
     3472int
     3473main ()
     3474{
     3475main ();
     3476  ;
     3477  return 0;
     3478}
     3479_ACEOF
     3480rm -f conftest.$ac_objext conftest$ac_exeext
     3481if { (eval echo "$as_me:3481: \"$ac_link\"") >&5
     3482  (eval $ac_link) 2>&5
     3483  ac_status=$?
     3484  echo "$as_me:3484: \$? = $ac_status" >&5
     3485  (exit $ac_status); } &&
     3486         { ac_try='test -s conftest$ac_exeext'
     3487  { (eval echo "$as_me:3487: \"$ac_try\"") >&5
     3488  (eval $ac_try) 2>&5
     3489  ac_status=$?
     3490  echo "$as_me:3490: \$? = $ac_status" >&5
     3491  (exit $ac_status); }; }; then
     3492  ac_cv_lib_m_main=yes
     3493else
     3494  echo "$as_me: failed program was:" >&5
     3495cat conftest.$ac_ext >&5
     3496ac_cv_lib_m_main=no
     3497fi
     3498rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3499LIBS=$ac_check_lib_save_LIBS
     3500fi
     3501echo "$as_me:3501: result: $ac_cv_lib_m_main" >&5
     3502echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     3503if test $ac_cv_lib_m_main = yes; then
     3504  cat >>confdefs.h <<EOF
     3505#define HAVE_LIBM 1
    20813506EOF
    20823507
    20833508  LIBS="-lm $LIBS"
    20843509
    2085 else
    2086   echo "$ac_t""no" 1>&6
    2087 fi
    2088 
    2089 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
    2090 echo "configure:2091: checking for main in -lstdc++" >&5
    2091 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
    2092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2093   echo $ac_n "(cached) $ac_c" 1>&6
    2094 else
    2095   ac_save_LIBS="$LIBS"
     3510fi
     3511
     3512echo "$as_me:3512: checking for main in -lstdc++" >&5
     3513echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
     3514if test "${ac_cv_lib_stdcpp_main+set}" = set; then
     3515  echo $ECHO_N "(cached) $ECHO_C" >&6
     3516else
     3517  ac_check_lib_save_LIBS=$LIBS
    20963518LIBS="-lstdc++  $LIBS"
    2097 cat > conftest.$ac_ext <<EOF
    2098 #line 2099 "configure"
    2099 #include "confdefs.h"
    2100 
    2101 int main() {
    2102 main()
    2103 ; return 0; }
    2104 EOF
    2105 if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2106   rm -rf conftest*
    2107   eval "ac_cv_lib_$ac_lib_var=yes"
    2108 else
    2109   echo "configure: failed program was:" >&5
    2110   cat conftest.$ac_ext >&5
    2111   rm -rf conftest*
    2112   eval "ac_cv_lib_$ac_lib_var=no"
    2113 fi
    2114 rm -f conftest*
    2115 LIBS="$ac_save_LIBS"
    2116 
    2117 fi
    2118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2119   echo "$ac_t""yes" 1>&6
    2120     ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    2121     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    2122   cat >> confdefs.h <<EOF
    2123 #define $ac_tr_lib 1
     3519cat >conftest.$ac_ext <<_ACEOF
     3520#line 3520 "configure"
     3521#include "confdefs.h"
     3522
     3523int
     3524main ()
     3525{
     3526main ();
     3527  ;
     3528  return 0;
     3529}
     3530_ACEOF
     3531rm -f conftest.$ac_objext conftest$ac_exeext
     3532if { (eval echo "$as_me:3532: \"$ac_link\"") >&5
     3533  (eval $ac_link) 2>&5
     3534  ac_status=$?
     3535  echo "$as_me:3535: \$? = $ac_status" >&5
     3536  (exit $ac_status); } &&
     3537         { ac_try='test -s conftest$ac_exeext'
     3538  { (eval echo "$as_me:3538: \"$ac_try\"") >&5
     3539  (eval $ac_try) 2>&5
     3540  ac_status=$?
     3541  echo "$as_me:3541: \$? = $ac_status" >&5
     3542  (exit $ac_status); }; }; then
     3543  ac_cv_lib_stdcpp_main=yes
     3544else
     3545  echo "$as_me: failed program was:" >&5
     3546cat conftest.$ac_ext >&5
     3547ac_cv_lib_stdcpp_main=no
     3548fi
     3549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3550LIBS=$ac_check_lib_save_LIBS
     3551fi
     3552echo "$as_me:3552: result: $ac_cv_lib_stdcpp_main" >&5
     3553echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
     3554if test $ac_cv_lib_stdcpp_main = yes; then
     3555  cat >>confdefs.h <<EOF
     3556#define HAVE_LIBSTDC__ 1
    21243557EOF
    21253558
    21263559  LIBS="-lstdc++ $LIBS"
    21273560
    2128 else
    2129   echo "$ac_t""no" 1>&6
    2130 fi
    2131 
    2132 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
    2133 echo "configure:2134: checking for main in -lcrypt" >&5
    2134 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
    2135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2136   echo $ac_n "(cached) $ac_c" 1>&6
    2137 else
    2138   ac_save_LIBS="$LIBS"
     3561fi
     3562
     3563echo "$as_me:3563: checking for main in -lcrypt" >&5
     3564echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
     3565if test "${ac_cv_lib_crypt_main+set}" = set; then
     3566  echo $ECHO_N "(cached) $ECHO_C" >&6
     3567else
     3568  ac_check_lib_save_LIBS=$LIBS
    21393569LIBS="-lcrypt  $LIBS"
    2140 cat > conftest.$ac_ext <<EOF
    2141 #line 2142 "configure"
    2142 #include "confdefs.h"
    2143 
    2144 int main() {
    2145 main()
    2146 ; return 0; }
    2147 EOF
    2148 if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2149   rm -rf conftest*
    2150   eval "ac_cv_lib_$ac_lib_var=yes"
    2151 else
    2152   echo "configure: failed program was:" >&5
    2153   cat conftest.$ac_ext >&5
    2154   rm -rf conftest*
    2155   eval "ac_cv_lib_$ac_lib_var=no"
    2156 fi
    2157 rm -f conftest*
    2158 LIBS="$ac_save_LIBS"
    2159 
    2160 fi
    2161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2162   echo "$ac_t""yes" 1>&6
    2163     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    2164     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    2165   cat >> confdefs.h <<EOF
    2166 #define $ac_tr_lib 1
     3570cat >conftest.$ac_ext <<_ACEOF
     3571#line 3571 "configure"
     3572#include "confdefs.h"
     3573
     3574int
     3575main ()
     3576{
     3577main ();
     3578  ;
     3579  return 0;
     3580}
     3581_ACEOF
     3582rm -f conftest.$ac_objext conftest$ac_exeext
     3583if { (eval echo "$as_me:3583: \"$ac_link\"") >&5
     3584  (eval $ac_link) 2>&5
     3585  ac_status=$?
     3586  echo "$as_me:3586: \$? = $ac_status" >&5
     3587  (exit $ac_status); } &&
     3588         { ac_try='test -s conftest$ac_exeext'
     3589  { (eval echo "$as_me:3589: \"$ac_try\"") >&5
     3590  (eval $ac_try) 2>&5
     3591  ac_status=$?
     3592  echo "$as_me:3592: \$? = $ac_status" >&5
     3593  (exit $ac_status); }; }; then
     3594  ac_cv_lib_crypt_main=yes
     3595else
     3596  echo "$as_me: failed program was:" >&5
     3597cat conftest.$ac_ext >&5
     3598ac_cv_lib_crypt_main=no
     3599fi
     3600rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3601LIBS=$ac_check_lib_save_LIBS
     3602fi
     3603echo "$as_me:3603: result: $ac_cv_lib_crypt_main" >&5
     3604echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
     3605if test $ac_cv_lib_crypt_main = yes; then
     3606  cat >>confdefs.h <<EOF
     3607#define HAVE_LIBCRYPT 1
    21673608EOF
    21683609
    21693610  LIBS="-lcrypt $LIBS"
    21703611
    2171 else
    2172   echo "$ac_t""no" 1>&6
    2173 fi
    2174 
    2175 
     3612fi
    21763613
    21773614ac_header_dirent=no
    2178 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
    2179 do
    2180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2181 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    2182 echo "configure:2183: checking for $ac_hdr that defines DIR" >&5
    2183 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    2184   echo $ac_n "(cached) $ac_c" 1>&6
    2185 else
    2186   cat > conftest.$ac_ext <<EOF
    2187 #line 2188 "configure"
     3615for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
     3616  ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
     3617echo "$as_me:3617: checking for $ac_hdr that defines DIR" >&5
     3618echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
     3619if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     3620  echo $ECHO_N "(cached) $ECHO_C" >&6
     3621else
     3622  cat >conftest.$ac_ext <<_ACEOF
     3623#line 3623 "configure"
    21883624#include "confdefs.h"
    21893625#include <sys/types.h>
    21903626#include <$ac_hdr>
    2191 int main() {
     3627
     3628int
     3629main ()
     3630{
    21923631DIR *dirp = 0;
    2193 ; return 0; }
    2194 EOF
    2195 if { (eval echo configure:2196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2196   rm -rf conftest*
    2197   eval "ac_cv_header_dirent_$ac_safe=yes"
    2198 else
    2199   echo "configure: failed program was:" >&5
    2200   cat conftest.$ac_ext >&5
    2201   rm -rf conftest*
    2202   eval "ac_cv_header_dirent_$ac_safe=no"
    2203 fi
    2204 rm -f conftest*
    2205 fi
    2206 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    2207   echo "$ac_t""yes" 1>&6
    2208     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2209   cat >> confdefs.h <<EOF
    2210 #define $ac_tr_hdr 1
    2211 EOF
    2212  ac_header_dirent=$ac_hdr; break
    2213 else
    2214   echo "$ac_t""no" 1>&6
    2215 fi
     3632  ;
     3633  return 0;
     3634}
     3635_ACEOF
     3636rm -f conftest.$ac_objext
     3637if { (eval echo "$as_me:3637: \"$ac_compile\"") >&5
     3638  (eval $ac_compile) 2>&5
     3639  ac_status=$?
     3640  echo "$as_me:3640: \$? = $ac_status" >&5
     3641  (exit $ac_status); } &&
     3642         { ac_try='test -s conftest.$ac_objext'
     3643  { (eval echo "$as_me:3643: \"$ac_try\"") >&5
     3644  (eval $ac_try) 2>&5
     3645  ac_status=$?
     3646  echo "$as_me:3646: \$? = $ac_status" >&5
     3647  (exit $ac_status); }; }; then
     3648  eval "$ac_ac_Header=yes"
     3649else
     3650  echo "$as_me: failed program was:" >&5
     3651cat conftest.$ac_ext >&5
     3652eval "$ac_ac_Header=no"
     3653fi
     3654rm -f conftest.$ac_objext conftest.$ac_ext
     3655fi
     3656echo "$as_me:3656: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     3657echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     3658if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     3659  cat >>confdefs.h <<EOF
     3660#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
     3661EOF
     3662
     3663ac_header_dirent=$ac_hdr; break
     3664fi
     3665
    22163666done
    22173667# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    22183668if test $ac_header_dirent = dirent.h; then
    2219 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    2220 echo "configure:2221: checking for opendir in -ldir" >&5
    2221 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    2222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2223   echo $ac_n "(cached) $ac_c" 1>&6
    2224 else
    2225   ac_save_LIBS="$LIBS"
     3669  echo "$as_me:3669: checking for opendir in -ldir" >&5
     3670echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
     3671if test "${ac_cv_lib_dir_opendir+set}" = set; then
     3672  echo $ECHO_N "(cached) $ECHO_C" >&6
     3673else
     3674  ac_check_lib_save_LIBS=$LIBS
    22263675LIBS="-ldir  $LIBS"
    2227 cat > conftest.$ac_ext <<EOF
    2228 #line 2229 "configure"
    2229 #include "confdefs.h"
     3676cat >conftest.$ac_ext <<_ACEOF
     3677#line 3677 "configure"
     3678#include "confdefs.h"
     3679
    22303680/* Override any gcc2 internal prototype to avoid an error.  */
     3681#ifdef __cplusplus
     3682extern "C"
     3683#endif
    22313684/* We use char because int might match the return type of a gcc2
    2232     builtin and then its argument prototype would still apply.  */
    2233 char opendir();
    2234 
    2235 int main() {
    2236 opendir()
    2237 ; return 0; }
    2238 EOF
    2239 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2240   rm -rf conftest*
    2241   eval "ac_cv_lib_$ac_lib_var=yes"
    2242 else
    2243   echo "configure: failed program was:" >&5
    2244   cat conftest.$ac_ext >&5
    2245   rm -rf conftest*
    2246   eval "ac_cv_lib_$ac_lib_var=no"
    2247 fi
    2248 rm -f conftest*
    2249 LIBS="$ac_save_LIBS"
    2250 
    2251 fi
    2252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2253   echo "$ac_t""yes" 1>&6
     3685   builtin and then its argument prototype would still apply.  */
     3686char opendir ();
     3687int
     3688main ()
     3689{
     3690opendir ();
     3691  ;
     3692  return 0;
     3693}
     3694_ACEOF
     3695rm -f conftest.$ac_objext conftest$ac_exeext
     3696if { (eval echo "$as_me:3696: \"$ac_link\"") >&5
     3697  (eval $ac_link) 2>&5
     3698  ac_status=$?
     3699  echo "$as_me:3699: \$? = $ac_status" >&5
     3700  (exit $ac_status); } &&
     3701         { ac_try='test -s conftest$ac_exeext'
     3702  { (eval echo "$as_me:3702: \"$ac_try\"") >&5
     3703  (eval $ac_try) 2>&5
     3704  ac_status=$?
     3705  echo "$as_me:3705: \$? = $ac_status" >&5
     3706  (exit $ac_status); }; }; then
     3707  ac_cv_lib_dir_opendir=yes
     3708else
     3709  echo "$as_me: failed program was:" >&5
     3710cat conftest.$ac_ext >&5
     3711ac_cv_lib_dir_opendir=no
     3712fi
     3713rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3714LIBS=$ac_check_lib_save_LIBS
     3715fi
     3716echo "$as_me:3716: result: $ac_cv_lib_dir_opendir" >&5
     3717echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
     3718if test $ac_cv_lib_dir_opendir = yes; then
    22543719  LIBS="$LIBS -ldir"
    2255 else
    2256   echo "$ac_t""no" 1>&6
    2257 fi
    2258 
    2259 else
    2260 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
    2261 echo "configure:2262: checking for opendir in -lx" >&5
    2262 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
    2263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2264   echo $ac_n "(cached) $ac_c" 1>&6
    2265 else
    2266   ac_save_LIBS="$LIBS"
     3720fi
     3721
     3722else
     3723  echo "$as_me:3723: checking for opendir in -lx" >&5
     3724echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
     3725if test "${ac_cv_lib_x_opendir+set}" = set; then
     3726  echo $ECHO_N "(cached) $ECHO_C" >&6
     3727else
     3728  ac_check_lib_save_LIBS=$LIBS
    22673729LIBS="-lx  $LIBS"
    2268 cat > conftest.$ac_ext <<EOF
    2269 #line 2270 "configure"
    2270 #include "confdefs.h"
     3730cat >conftest.$ac_ext <<_ACEOF
     3731#line 3731 "configure"
     3732#include "confdefs.h"
     3733
    22713734/* Override any gcc2 internal prototype to avoid an error.  */
     3735#ifdef __cplusplus
     3736extern "C"
     3737#endif
    22723738/* We use char because int might match the return type of a gcc2
    2273     builtin and then its argument prototype would still apply.  */
    2274 char opendir();
    2275 
    2276 int main() {
    2277 opendir()
    2278 ; return 0; }
    2279 EOF
    2280 if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2281   rm -rf conftest*
    2282   eval "ac_cv_lib_$ac_lib_var=yes"
    2283 else
    2284   echo "configure: failed program was:" >&5
    2285   cat conftest.$ac_ext >&5
    2286   rm -rf conftest*
    2287   eval "ac_cv_lib_$ac_lib_var=no"
    2288 fi
    2289 rm -f conftest*
    2290 LIBS="$ac_save_LIBS"
    2291 
    2292 fi
    2293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2294   echo "$ac_t""yes" 1>&6
     3739   builtin and then its argument prototype would still apply.  */
     3740char opendir ();
     3741int
     3742main ()
     3743{
     3744opendir ();
     3745  ;
     3746  return 0;
     3747}
     3748_ACEOF
     3749rm -f conftest.$ac_objext conftest$ac_exeext
     3750if { (eval echo "$as_me:3750: \"$ac_link\"") >&5
     3751  (eval $ac_link) 2>&5
     3752  ac_status=$?
     3753  echo "$as_me:3753: \$? = $ac_status" >&5
     3754  (exit $ac_status); } &&
     3755         { ac_try='test -s conftest$ac_exeext'
     3756  { (eval echo "$as_me:3756: \"$ac_try\"") >&5
     3757  (eval $ac_try) 2>&5
     3758  ac_status=$?
     3759  echo "$as_me:3759: \$? = $ac_status" >&5
     3760  (exit $ac_status); }; }; then
     3761  ac_cv_lib_x_opendir=yes
     3762else
     3763  echo "$as_me: failed program was:" >&5
     3764cat conftest.$ac_ext >&5
     3765ac_cv_lib_x_opendir=no
     3766fi
     3767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3768LIBS=$ac_check_lib_save_LIBS
     3769fi
     3770echo "$as_me:3770: result: $ac_cv_lib_x_opendir" >&5
     3771echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
     3772if test $ac_cv_lib_x_opendir = yes; then
    22953773  LIBS="$LIBS -lx"
    2296 else
    2297   echo "$ac_t""no" 1>&6
    2298 fi
    2299 
    2300 fi
    2301 
    2302 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    2303 echo "configure:2304: checking for ANSI C header files" >&5
    2304 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    2305   echo $ac_n "(cached) $ac_c" 1>&6
    2306 else
    2307   cat > conftest.$ac_ext <<EOF
    2308 #line 2309 "configure"
     3774fi
     3775
     3776fi
     3777
     3778echo "$as_me:3778: checking for ANSI C header files" >&5
     3779echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3780if test "${ac_cv_header_stdc+set}" = set; then
     3781  echo $ECHO_N "(cached) $ECHO_C" >&6
     3782else
     3783  cat >conftest.$ac_ext <<_ACEOF
     3784#line 3784 "configure"
    23093785#include "confdefs.h"
    23103786#include <stdlib.h>
     
    23123788#include <string.h>
    23133789#include <float.h>
    2314 EOF
    2315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2316 { (eval echo configure:2317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2318 if test -z "$ac_err"; then
    2319   rm -rf conftest*
     3790
     3791_ACEOF
     3792if { (eval echo "$as_me:3792: \"$ac_cpp conftest.$ac_ext\"") >&5
     3793  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3794  ac_status=$?
     3795  egrep -v '^ *\+' conftest.er1 >conftest.err
     3796  rm -f conftest.er1
     3797  cat conftest.err >&5
     3798  echo "$as_me:3798: \$? = $ac_status" >&5
     3799  (exit $ac_status); } >/dev/null; then
     3800  if test -s conftest.err; then
     3801    ac_cpp_err=$ac_c_preproc_warn_flag
     3802  else
     3803    ac_cpp_err=
     3804  fi
     3805else
     3806  ac_cpp_err=yes
     3807fi
     3808if test -z "$ac_cpp_err"; then
    23203809  ac_cv_header_stdc=yes
    23213810else
    2322   echo "$ac_err" >&5
    2323   echo "configure: failed program was:" >&5
     3811  echo "$as_me: failed program was:" >&5
    23243812  cat conftest.$ac_ext >&5
    2325   rm -rf conftest*
    23263813  ac_cv_header_stdc=no
    23273814fi
    2328 rm -f conftest*
     3815rm -f conftest.err conftest.$ac_ext
    23293816
    23303817if test $ac_cv_header_stdc = yes; then
    23313818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2332 cat > conftest.$ac_ext <<EOF
    2333 #line 2334 "configure"
     3819  cat >conftest.$ac_ext <<_ACEOF
     3820#line 3820 "configure"
    23343821#include "confdefs.h"
    23353822#include <string.h>
    2336 EOF
     3823
     3824_ACEOF
    23373825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    23383826  egrep "memchr" >/dev/null 2>&1; then
    23393827  :
    23403828else
    2341   rm -rf conftest*
    23423829  ac_cv_header_stdc=no
    23433830fi
     
    23483835if test $ac_cv_header_stdc = yes; then
    23493836  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2350 cat > conftest.$ac_ext <<EOF
    2351 #line 2352 "configure"
     3837  cat >conftest.$ac_ext <<_ACEOF
     3838#line 3838 "configure"
    23523839#include "confdefs.h"
    23533840#include <stdlib.h>
    2354 EOF
     3841
     3842_ACEOF
    23553843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    23563844  egrep "free" >/dev/null 2>&1; then
    23573845  :
    23583846else
    2359   rm -rf conftest*
    23603847  ac_cv_header_stdc=no
    23613848fi
     
    23663853if test $ac_cv_header_stdc = yes; then
    23673854  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2368 if test "$cross_compiling" = yes; then
     3855  if test "$cross_compiling" = yes; then
    23693856  :
    23703857else
    2371   cat > conftest.$ac_ext <<EOF
    2372 #line 2373 "configure"
     3858  cat >conftest.$ac_ext <<_ACEOF
     3859#line 3859 "configure"
    23733860#include "confdefs.h"
    23743861#include <ctype.h>
    2375 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2376 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3862#if ((' ' & 0x0FF) == 0x020)
     3863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3865#else
     3866# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     3867                     || ('j' <= (c) && (c) <= 'r') \
     3868                     || ('s' <= (c) && (c) <= 'z'))
     3869# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3870#endif
     3871
    23773872#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2378 int main () { int i; for (i = 0; i < 256; i++)
    2379 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    2380 exit (0); }
    2381 
    2382 EOF
    2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2384 then
     3873int
     3874main ()
     3875{
     3876  int i;
     3877  for (i = 0; i < 256; i++)
     3878    if (XOR (islower (i), ISLOWER (i))
     3879        || toupper (i) != TOUPPER (i))
     3880      exit(2);
     3881  exit (0);
     3882}
     3883_ACEOF
     3884rm -f conftest$ac_exeext
     3885if { (eval echo "$as_me:3885: \"$ac_link\"") >&5
     3886  (eval $ac_link) 2>&5
     3887  ac_status=$?
     3888  echo "$as_me:3888: \$? = $ac_status" >&5
     3889  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3890  { (eval echo "$as_me:3890: \"$ac_try\"") >&5
     3891  (eval $ac_try) 2>&5
     3892  ac_status=$?
     3893  echo "$as_me:3893: \$? = $ac_status" >&5
     3894  (exit $ac_status); }; }; then
    23853895  :
    23863896else
    2387   echo "configure: failed program was:" >&5
     3897  echo "$as_me: program exited with status $ac_status" >&5
     3898echo "$as_me: failed program was:" >&5
     3899cat conftest.$ac_ext >&5
     3900ac_cv_header_stdc=no
     3901fi
     3902rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     3903fi
     3904fi
     3905fi
     3906echo "$as_me:3906: result: $ac_cv_header_stdc" >&5
     3907echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3908if test $ac_cv_header_stdc = yes; then
     3909
     3910cat >>confdefs.h <<\EOF
     3911#define STDC_HEADERS 1
     3912EOF
     3913
     3914fi
     3915
     3916for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
     3917do
     3918ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     3919echo "$as_me:3919: checking for $ac_header" >&5
     3920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3921if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     3922  echo $ECHO_N "(cached) $ECHO_C" >&6
     3923else
     3924  cat >conftest.$ac_ext <<_ACEOF
     3925#line 3925 "configure"
     3926#include "confdefs.h"
     3927#include <$ac_header>
     3928_ACEOF
     3929if { (eval echo "$as_me:3929: \"$ac_cpp conftest.$ac_ext\"") >&5
     3930  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3931  ac_status=$?
     3932  egrep -v '^ *\+' conftest.er1 >conftest.err
     3933  rm -f conftest.er1
     3934  cat conftest.err >&5
     3935  echo "$as_me:3935: \$? = $ac_status" >&5
     3936  (exit $ac_status); } >/dev/null; then
     3937  if test -s conftest.err; then
     3938    ac_cpp_err=$ac_c_preproc_warn_flag
     3939  else
     3940    ac_cpp_err=
     3941  fi
     3942else
     3943  ac_cpp_err=yes
     3944fi
     3945if test -z "$ac_cpp_err"; then
     3946  eval "$ac_ac_Header=yes"
     3947else
     3948  echo "$as_me: failed program was:" >&5
    23883949  cat conftest.$ac_ext >&5
    2389   rm -fr conftest*
    2390   ac_cv_header_stdc=no
    2391 fi
    2392 rm -fr conftest*
    2393 fi
    2394 
    2395 fi
    2396 fi
    2397 
    2398 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    2399 if test $ac_cv_header_stdc = yes; then
    2400   cat >> confdefs.h <<\EOF
    2401 #define STDC_HEADERS 1
    2402 EOF
    2403 
    2404 fi
    2405 
    2406 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
    2407 do
    2408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2410 echo "configure:2411: checking for $ac_hdr" >&5
    2411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2412   echo $ac_n "(cached) $ac_c" 1>&6
    2413 else
    2414   cat > conftest.$ac_ext <<EOF
    2415 #line 2416 "configure"
    2416 #include "confdefs.h"
    2417 #include <$ac_hdr>
    2418 EOF
    2419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2420 { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2422 if test -z "$ac_err"; then
    2423   rm -rf conftest*
    2424   eval "ac_cv_header_$ac_safe=yes"
    2425 else
    2426   echo "$ac_err" >&5
    2427   echo "configure: failed program was:" >&5
    2428   cat conftest.$ac_ext >&5
    2429   rm -rf conftest*
    2430   eval "ac_cv_header_$ac_safe=no"
    2431 fi
    2432 rm -f conftest*
    2433 fi
    2434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2435   echo "$ac_t""yes" 1>&6
    2436     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2437   cat >> confdefs.h <<EOF
    2438 #define $ac_tr_hdr 1
    2439 EOF
    2440  
    2441 else
    2442   echo "$ac_t""no" 1>&6
     3950  eval "$ac_ac_Header=no"
     3951fi
     3952rm -f conftest.err conftest.$ac_ext
     3953fi
     3954echo "$as_me:3954: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     3955echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     3956if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     3957  cat >>confdefs.h <<EOF
     3958#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
     3959EOF
     3960
    24433961fi
    24443962done
    24453963
    2446 cat > conftest.$ac_ext <<EOF
    2447 #line 2448 "configure"
     3964cat >conftest.$ac_ext <<_ACEOF
     3965#line 3965 "configure"
    24483966#include "confdefs.h"
    24493967#include <stdio.h>
    2450 EOF
     3968
     3969_ACEOF
    24513970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    24523971  egrep "fread" >/dev/null 2>&1; then
    2453   rm -rf conftest*
    2454   cat >> confdefs.h <<\EOF
     3972  cat >>confdefs.h <<\EOF
    24553973#define HAVE_FREAD_DECL 1
    24563974EOF
     
    24593977rm -f conftest*
    24603978
    2461 cat > conftest.$ac_ext <<EOF
    2462 #line 2463 "configure"
     3979cat >conftest.$ac_ext <<_ACEOF
     3980#line 3980 "configure"
    24633981#include "confdefs.h"
    24643982#include <stdio.h>
    2465 EOF
     3983
     3984_ACEOF
    24663985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    24673986  egrep "fgetc" >/dev/null 2>&1; then
    2468   rm -rf conftest*
    2469   cat >> confdefs.h <<\EOF
     3987  cat >>confdefs.h <<\EOF
    24703988#define HAVE_FGETC_DECL 1
    24713989EOF
     
    24743992rm -f conftest*
    24753993
    2476 cat > conftest.$ac_ext <<EOF
    2477 #line 2478 "configure"
     3994cat >conftest.$ac_ext <<_ACEOF
     3995#line 3995 "configure"
    24783996#include "confdefs.h"
    24793997#include <sys/procfs.h>
    2480 EOF
     3998
     3999_ACEOF
    24814000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    24824001  egrep "pr_brksize" >/dev/null 2>&1; then
    2483   rm -rf conftest*
    2484   cat >> confdefs.h <<\EOF
     4002  cat >>confdefs.h <<\EOF
    24854003#define HAVE_PR_BRKSIZE 1
    24864004EOF
     
    24884006fi
    24894007rm -f conftest*
    2490 
    24914008
    24924009# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    24934010# for constant arguments.  Useless!
    2494 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2495 echo "configure:2496: checking for working alloca.h" >&5
    2496 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2497   echo $ac_n "(cached) $ac_c" 1>&6
    2498 else
    2499   cat > conftest.$ac_ext <<EOF
    2500 #line 2501 "configure"
     4011echo "$as_me:4011: checking for working alloca.h" >&5
     4012echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     4013if test "${ac_cv_working_alloca_h+set}" = set; then
     4014  echo $ECHO_N "(cached) $ECHO_C" >&6
     4015else
     4016  cat >conftest.$ac_ext <<_ACEOF
     4017#line 4017 "configure"
    25014018#include "confdefs.h"
    25024019#include <alloca.h>
    2503 int main() {
    2504 char *p = alloca(2 * sizeof(int));
    2505 ; return 0; }
    2506 EOF
    2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2508   rm -rf conftest*
    2509   ac_cv_header_alloca_h=yes
    2510 else
    2511   echo "configure: failed program was:" >&5
    2512   cat conftest.$ac_ext >&5
    2513   rm -rf conftest*
    2514   ac_cv_header_alloca_h=no
    2515 fi
    2516 rm -f conftest*
    2517 fi
    2518 
    2519 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2520 if test $ac_cv_header_alloca_h = yes; then
    2521   cat >> confdefs.h <<\EOF
     4020int
     4021main ()
     4022{
     4023char *p = (char *) alloca (2 * sizeof (int));
     4024  ;
     4025  return 0;
     4026}
     4027_ACEOF
     4028rm -f conftest.$ac_objext conftest$ac_exeext
     4029if { (eval echo "$as_me:4029: \"$ac_link\"") >&5
     4030  (eval $ac_link) 2>&5
     4031  ac_status=$?
     4032  echo "$as_me:4032: \$? = $ac_status" >&5
     4033  (exit $ac_status); } &&
     4034         { ac_try='test -s conftest$ac_exeext'
     4035  { (eval echo "$as_me:4035: \"$ac_try\"") >&5
     4036  (eval $ac_try) 2>&5
     4037  ac_status=$?
     4038  echo "$as_me:4038: \$? = $ac_status" >&5
     4039  (exit $ac_status); }; }; then
     4040  ac_cv_working_alloca_h=yes
     4041else
     4042  echo "$as_me: failed program was:" >&5
     4043cat conftest.$ac_ext >&5
     4044ac_cv_working_alloca_h=no
     4045fi
     4046rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4047fi
     4048echo "$as_me:4048: result: $ac_cv_working_alloca_h" >&5
     4049echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     4050if test $ac_cv_working_alloca_h = yes; then
     4051
     4052cat >>confdefs.h <<\EOF
    25224053#define HAVE_ALLOCA_H 1
    25234054EOF
     
    25254056fi
    25264057
    2527 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2528 echo "configure:2529: checking for alloca" >&5
    2529 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2530   echo $ac_n "(cached) $ac_c" 1>&6
    2531 else
    2532   cat > conftest.$ac_ext <<EOF
    2533 #line 2534 "configure"
    2534 #include "confdefs.h"
    2535 
     4058echo "$as_me:4058: checking for alloca" >&5
     4059echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     4060if test "${ac_cv_func_alloca_works+set}" = set; then
     4061  echo $ECHO_N "(cached) $ECHO_C" >&6
     4062else
     4063  cat >conftest.$ac_ext <<_ACEOF
     4064#line 4064 "configure"
     4065#include "confdefs.h"
    25364066#ifdef __GNUC__
    25374067# define alloca __builtin_alloca
     
    25554085#endif
    25564086
    2557 int main() {
    2558 char *p = (char *) alloca(1);
    2559 ; return 0; }
    2560 EOF
    2561 if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2562   rm -rf conftest*
     4087int
     4088main ()
     4089{
     4090char *p = (char *) alloca (1);
     4091  ;
     4092  return 0;
     4093}
     4094_ACEOF
     4095rm -f conftest.$ac_objext conftest$ac_exeext
     4096if { (eval echo "$as_me:4096: \"$ac_link\"") >&5
     4097  (eval $ac_link) 2>&5
     4098  ac_status=$?
     4099  echo "$as_me:4099: \$? = $ac_status" >&5
     4100  (exit $ac_status); } &&
     4101         { ac_try='test -s conftest$ac_exeext'
     4102  { (eval echo "$as_me:4102: \"$ac_try\"") >&5
     4103  (eval $ac_try) 2>&5
     4104  ac_status=$?
     4105  echo "$as_me:4105: \$? = $ac_status" >&5
     4106  (exit $ac_status); }; }; then
    25634107  ac_cv_func_alloca_works=yes
    25644108else
    2565   echo "configure: failed program was:" >&5
    2566   cat conftest.$ac_ext >&5
    2567   rm -rf conftest*
    2568   ac_cv_func_alloca_works=no
    2569 fi
    2570 rm -f conftest*
    2571 fi
    2572 
    2573 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     4109  echo "$as_me: failed program was:" >&5
     4110cat conftest.$ac_ext >&5
     4111ac_cv_func_alloca_works=no
     4112fi
     4113rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4114fi
     4115echo "$as_me:4115: result: $ac_cv_func_alloca_works" >&5
     4116echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     4117
    25744118if test $ac_cv_func_alloca_works = yes; then
    2575   cat >> confdefs.h <<\EOF
     4119
     4120cat >>confdefs.h <<\EOF
    25764121#define HAVE_ALLOCA 1
    25774122EOF
    25784123
    2579 fi
    2580 
    2581 if test $ac_cv_func_alloca_works = no; then
     4124else
    25824125  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    2583   # that cause trouble.  Some versions do not even contain alloca or
    2584   # contain a buggy version.  If you still want to use their alloca,
    2585   # use ar to extract alloca.o from them instead of compiling alloca.c.
    2586   ALLOCA=alloca.${ac_objext}
    2587   cat >> confdefs.h <<\EOF
     4126# that cause trouble.  Some versions do not even contain alloca or
     4127# contain a buggy version.  If you still want to use their alloca,
     4128# use ar to extract alloca.o from them instead of compiling alloca.c.
     4129
     4130ALLOCA=alloca.$ac_objext
     4131
     4132cat >>confdefs.h <<\EOF
    25884133#define C_ALLOCA 1
    25894134EOF
    25904135
    2591 
    2592 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2593 echo "configure:2594: checking whether alloca needs Cray hooks" >&5
    2594 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2595   echo $ac_n "(cached) $ac_c" 1>&6
    2596 else
    2597   cat > conftest.$ac_ext <<EOF
    2598 #line 2599 "configure"
     4136echo "$as_me:4136: checking whether \`alloca.c' needs Cray hooks" >&5
     4137echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     4138if test "${ac_cv_os_cray+set}" = set; then
     4139  echo $ECHO_N "(cached) $ECHO_C" >&6
     4140else
     4141  cat >conftest.$ac_ext <<_ACEOF
     4142#line 4142 "configure"
    25994143#include "confdefs.h"
    26004144#if defined(CRAY) && ! defined(CRAY2)
     
    26044148#endif
    26054149
    2606 EOF
     4150_ACEOF
    26074151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    26084152  egrep "webecray" >/dev/null 2>&1; then
    2609   rm -rf conftest*
    26104153  ac_cv_os_cray=yes
    26114154else
    2612   rm -rf conftest*
    26134155  ac_cv_os_cray=no
    26144156fi
     
    26164158
    26174159fi
    2618 
    2619 echo "$ac_t""$ac_cv_os_cray" 1>&6
     4160echo "$as_me:4160: result: $ac_cv_os_cray" >&5
     4161echo "${ECHO_T}$ac_cv_os_cray" >&6
    26204162if test $ac_cv_os_cray = yes; then
    2621 for ac_func in _getb67 GETB67 getb67; do
    2622   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2623 echo "configure:2624: checking for $ac_func" >&5
    2624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2625   echo $ac_n "(cached) $ac_c" 1>&6
    2626 else
    2627   cat > conftest.$ac_ext <<EOF
    2628 #line 2629 "configure"
     4163  for ac_func in _getb67 GETB67 getb67; do
     4164    ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4165echo "$as_me:4165: checking for $ac_func" >&5
     4166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4167if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4168  echo $ECHO_N "(cached) $ECHO_C" >&6
     4169else
     4170  cat >conftest.$ac_ext <<_ACEOF
     4171#line 4171 "configure"
    26294172#include "confdefs.h"
    26304173/* System header to define __stub macros and hopefully few prototypes,
    2631     which can conflict with char $ac_func(); below.  */
     4174    which can conflict with char $ac_func (); below.  */
    26324175#include <assert.h>
    26334176/* Override any gcc2 internal prototype to avoid an error.  */
     4177#ifdef __cplusplus
     4178extern "C"
     4179#endif
    26344180/* We use char because int might match the return type of a gcc2
    2635     builtin and then its argument prototype would still apply.  */
    2636 char $ac_func();
    2637 
    2638 int main() {
    2639 
     4181   builtin and then its argument prototype would still apply.  */
     4182char $ac_func ();
     4183char (*f) ();
     4184
     4185int
     4186main ()
     4187{
    26404188/* The GNU C library defines this for functions which it implements
    26414189    to always fail with ENOSYS.  Some functions are actually named
     
    26444192choke me
    26454193#else
    2646 $ac_func();
     4194f = $ac_func;
    26474195#endif
    26484196
    2649 ; return 0; }
    2650 EOF
    2651 if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2652   rm -rf conftest*
    2653   eval "ac_cv_func_$ac_func=yes"
    2654 else
    2655   echo "configure: failed program was:" >&5
    2656   cat conftest.$ac_ext >&5
    2657   rm -rf conftest*
    2658   eval "ac_cv_func_$ac_func=no"
    2659 fi
    2660 rm -f conftest*
    2661 fi
    2662 
    2663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2664   echo "$ac_t""yes" 1>&6
    2665   cat >> confdefs.h <<EOF
     4197  ;
     4198  return 0;
     4199}
     4200_ACEOF
     4201rm -f conftest.$ac_objext conftest$ac_exeext
     4202if { (eval echo "$as_me:4202: \"$ac_link\"") >&5
     4203  (eval $ac_link) 2>&5
     4204  ac_status=$?
     4205  echo "$as_me:4205: \$? = $ac_status" >&5
     4206  (exit $ac_status); } &&
     4207         { ac_try='test -s conftest$ac_exeext'
     4208  { (eval echo "$as_me:4208: \"$ac_try\"") >&5
     4209  (eval $ac_try) 2>&5
     4210  ac_status=$?
     4211  echo "$as_me:4211: \$? = $ac_status" >&5
     4212  (exit $ac_status); }; }; then
     4213  eval "$ac_ac_var=yes"
     4214else
     4215  echo "$as_me: failed program was:" >&5
     4216cat conftest.$ac_ext >&5
     4217eval "$ac_ac_var=no"
     4218fi
     4219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4220fi
     4221echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4222echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4223if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4224
     4225cat >>confdefs.h <<EOF
    26664226#define CRAY_STACKSEG_END $ac_func
    26674227EOF
    26684228
    2669   break
    2670 else
    2671   echo "$ac_t""no" 1>&6
    2672 fi
    2673 
    2674 done
    2675 fi
    2676 
    2677 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2678 echo "configure:2679: checking stack direction for C alloca" >&5
    2679 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    2680   echo $ac_n "(cached) $ac_c" 1>&6
     4229    break
     4230fi
     4231
     4232  done
     4233fi
     4234
     4235echo "$as_me:4235: checking stack direction for C alloca" >&5
     4236echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
     4237if test "${ac_cv_c_stack_direction+set}" = set; then
     4238  echo $ECHO_N "(cached) $ECHO_C" >&6
    26814239else
    26824240  if test "$cross_compiling" = yes; then
    26834241  ac_cv_c_stack_direction=0
    26844242else
    2685   cat > conftest.$ac_ext <<EOF
    2686 #line 2687 "configure"
    2687 #include "confdefs.h"
     4243  cat >conftest.$ac_ext <<_ACEOF
     4244#line 4244 "configure"
     4245#include "confdefs.h"
     4246int
    26884247find_stack_direction ()
    26894248{
     
    26984257    return (&dummy > addr) ? 1 : -1;
    26994258}
     4259
     4260int
    27004261main ()
    27014262{
    2702   exit (find_stack_direction() < 0);
     4263  exit (find_stack_direction () < 0);
    27034264}
    2704 EOF
    2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2706 then
     4265_ACEOF
     4266rm -f conftest$ac_exeext
     4267if { (eval echo "$as_me:4267: \"$ac_link\"") >&5
     4268  (eval $ac_link) 2>&5
     4269  ac_status=$?
     4270  echo "$as_me:4270: \$? = $ac_status" >&5
     4271  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4272  { (eval echo "$as_me:4272: \"$ac_try\"") >&5
     4273  (eval $ac_try) 2>&5
     4274  ac_status=$?
     4275  echo "$as_me:4275: \$? = $ac_status" >&5
     4276  (exit $ac_status); }; }; then
    27074277  ac_cv_c_stack_direction=1
    27084278else
    2709   echo "configure: failed program was:" >&5
    2710   cat conftest.$ac_ext >&5
    2711   rm -fr conftest*
    2712   ac_cv_c_stack_direction=-1
    2713 fi
    2714 rm -fr conftest*
    2715 fi
    2716 
    2717 fi
    2718 
    2719 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
    2720 cat >> confdefs.h <<EOF
     4279  echo "$as_me: program exited with status $ac_status" >&5
     4280echo "$as_me: failed program was:" >&5
     4281cat conftest.$ac_ext >&5
     4282ac_cv_c_stack_direction=-1
     4283fi
     4284rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     4285fi
     4286fi
     4287echo "$as_me:4287: result: $ac_cv_c_stack_direction" >&5
     4288echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
     4289
     4290cat >>confdefs.h <<EOF
    27214291#define STACK_DIRECTION $ac_cv_c_stack_direction
    27224292EOF
     
    27244294fi
    27254295
    2726 if test $ac_cv_prog_gcc = yes; then
    2727     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2728 echo "configure:2729: checking whether ${CC-cc} needs -traditional" >&5
    2729 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    2730   echo $ac_n "(cached) $ac_c" 1>&6
     4296if test $ac_cv_c_compiler_gnu = yes; then
     4297    echo "$as_me:4297: checking whether $CC needs -traditional" >&5
     4298echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
     4299if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     4300  echo $ECHO_N "(cached) $ECHO_C" >&6
    27314301else
    27324302    ac_pattern="Autoconf.*'x'"
    2733   cat > conftest.$ac_ext <<EOF
    2734 #line 2735 "configure"
     4303  cat >conftest.$ac_ext <<_ACEOF
     4304#line 4304 "configure"
    27354305#include "confdefs.h"
    27364306#include <sgtty.h>
    27374307Autoconf TIOCGETP
    2738 EOF
     4308_ACEOF
    27394309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    27404310  egrep "$ac_pattern" >/dev/null 2>&1; then
    2741   rm -rf conftest*
    27424311  ac_cv_prog_gcc_traditional=yes
    27434312else
    2744   rm -rf conftest*
    27454313  ac_cv_prog_gcc_traditional=no
    27464314fi
    27474315rm -f conftest*
    27484316
    2749 
    27504317  if test $ac_cv_prog_gcc_traditional = no; then
    2751     cat > conftest.$ac_ext <<EOF
    2752 #line 2753 "configure"
     4318    cat >conftest.$ac_ext <<_ACEOF
     4319#line 4319 "configure"
    27534320#include "confdefs.h"
    27544321#include <termio.h>
    27554322Autoconf TCGETA
    2756 EOF
     4323_ACEOF
    27574324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    27584325  egrep "$ac_pattern" >/dev/null 2>&1; then
    2759   rm -rf conftest*
    27604326  ac_cv_prog_gcc_traditional=yes
    27614327fi
     
    27644330  fi
    27654331fi
    2766 
    2767 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
     4332echo "$as_me:4332: result: $ac_cv_prog_gcc_traditional" >&5
     4333echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    27684334  if test $ac_cv_prog_gcc_traditional = yes; then
    27694335    CC="$CC -traditional"
     
    27714337fi
    27724338
    2773 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2774 echo "configure:2775: checking return type of signal handlers" >&5
    2775 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    2776   echo $ac_n "(cached) $ac_c" 1>&6
    2777 else
    2778   cat > conftest.$ac_ext <<EOF
    2779 #line 2780 "configure"
     4339echo "$as_me:4339: checking return type of signal handlers" >&5
     4340echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
     4341if test "${ac_cv_type_signal+set}" = set; then
     4342  echo $ECHO_N "(cached) $ECHO_C" >&6
     4343else
     4344  cat >conftest.$ac_ext <<_ACEOF
     4345#line 4345 "configure"
    27804346#include "confdefs.h"
    27814347#include <sys/types.h>
    27824348#include <signal.h>
    27834349#ifdef signal
    2784 #undef signal
     4350# undef signal
    27854351#endif
    27864352#ifdef __cplusplus
     
    27904356#endif
    27914357
    2792 int main() {
     4358int
     4359main ()
     4360{
    27934361int i;
    2794 ; return 0; }
    2795 EOF
    2796 if { (eval echo configure:2797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2797   rm -rf conftest*
     4362  ;
     4363  return 0;
     4364}
     4365_ACEOF
     4366rm -f conftest.$ac_objext
     4367if { (eval echo "$as_me:4367: \"$ac_compile\"") >&5
     4368  (eval $ac_compile) 2>&5
     4369  ac_status=$?
     4370  echo "$as_me:4370: \$? = $ac_status" >&5
     4371  (exit $ac_status); } &&
     4372         { ac_try='test -s conftest.$ac_objext'
     4373  { (eval echo "$as_me:4373: \"$ac_try\"") >&5
     4374  (eval $ac_try) 2>&5
     4375  ac_status=$?
     4376  echo "$as_me:4376: \$? = $ac_status" >&5
     4377  (exit $ac_status); }; }; then
    27984378  ac_cv_type_signal=void
    27994379else
    2800   echo "configure: failed program was:" >&5
    2801   cat conftest.$ac_ext >&5
    2802   rm -rf conftest*
    2803   ac_cv_type_signal=int
    2804 fi
    2805 rm -f conftest*
    2806 fi
    2807 
    2808 echo "$ac_t""$ac_cv_type_signal" 1>&6
    2809 cat >> confdefs.h <<EOF
     4380  echo "$as_me: failed program was:" >&5
     4381cat conftest.$ac_ext >&5
     4382ac_cv_type_signal=int
     4383fi
     4384rm -f conftest.$ac_objext conftest.$ac_ext
     4385fi
     4386echo "$as_me:4386: result: $ac_cv_type_signal" >&5
     4387echo "${ECHO_T}$ac_cv_type_signal" >&6
     4388
     4389cat >>confdefs.h <<EOF
    28104390#define RETSIGTYPE $ac_cv_type_signal
    28114391EOF
    28124392
    2813 
    2814 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2815 echo "configure:2816: checking for vprintf" >&5
    2816 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    2817   echo $ac_n "(cached) $ac_c" 1>&6
    2818 else
    2819   cat > conftest.$ac_ext <<EOF
    2820 #line 2821 "configure"
     4393for ac_func in vprintf
     4394do
     4395ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4396echo "$as_me:4396: checking for $ac_func" >&5
     4397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4398if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4399  echo $ECHO_N "(cached) $ECHO_C" >&6
     4400else
     4401  cat >conftest.$ac_ext <<_ACEOF
     4402#line 4402 "configure"
    28214403#include "confdefs.h"
    28224404/* System header to define __stub macros and hopefully few prototypes,
    2823     which can conflict with char vprintf(); below.  */
     4405    which can conflict with char $ac_func (); below.  */
    28244406#include <assert.h>
    28254407/* Override any gcc2 internal prototype to avoid an error.  */
     4408#ifdef __cplusplus
     4409extern "C"
     4410#endif
    28264411/* We use char because int might match the return type of a gcc2
    2827     builtin and then its argument prototype would still apply.  */
    2828 char vprintf();
    2829 
    2830 int main() {
    2831 
     4412   builtin and then its argument prototype would still apply.  */
     4413char $ac_func ();
     4414char (*f) ();
     4415
     4416int
     4417main ()
     4418{
    28324419/* The GNU C library defines this for functions which it implements
    28334420    to always fail with ENOSYS.  Some functions are actually named
    28344421    something starting with __ and the normal name is an alias.  */
    2835 #if defined (__stub_vprintf) || defined (__stub___vprintf)
     4422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    28364423choke me
    28374424#else
    2838 vprintf();
     4425f = $ac_func;
    28394426#endif
    28404427
    2841 ; return 0; }
    2842 EOF
    2843 if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2844   rm -rf conftest*
    2845   eval "ac_cv_func_vprintf=yes"
    2846 else
    2847   echo "configure: failed program was:" >&5
    2848   cat conftest.$ac_ext >&5
    2849   rm -rf conftest*
    2850   eval "ac_cv_func_vprintf=no"
    2851 fi
    2852 rm -f conftest*
    2853 fi
    2854 
    2855 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    2856   echo "$ac_t""yes" 1>&6
    2857   cat >> confdefs.h <<\EOF
    2858 #define HAVE_VPRINTF 1
    2859 EOF
    2860 
    2861 else
    2862   echo "$ac_t""no" 1>&6
    2863 fi
    2864 
    2865 if test "$ac_cv_func_vprintf" != yes; then
    2866 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2867 echo "configure:2868: checking for _doprnt" >&5
    2868 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    2869   echo $ac_n "(cached) $ac_c" 1>&6
    2870 else
    2871   cat > conftest.$ac_ext <<EOF
    2872 #line 2873 "configure"
     4428  ;
     4429  return 0;
     4430}
     4431_ACEOF
     4432rm -f conftest.$ac_objext conftest$ac_exeext
     4433if { (eval echo "$as_me:4433: \"$ac_link\"") >&5
     4434  (eval $ac_link) 2>&5
     4435  ac_status=$?
     4436  echo "$as_me:4436: \$? = $ac_status" >&5
     4437  (exit $ac_status); } &&
     4438         { ac_try='test -s conftest$ac_exeext'
     4439  { (eval echo "$as_me:4439: \"$ac_try\"") >&5
     4440  (eval $ac_try) 2>&5
     4441  ac_status=$?
     4442  echo "$as_me:4442: \$? = $ac_status" >&5
     4443  (exit $ac_status); }; }; then
     4444  eval "$ac_ac_var=yes"
     4445else
     4446  echo "$as_me: failed program was:" >&5
     4447cat conftest.$ac_ext >&5
     4448eval "$ac_ac_var=no"
     4449fi
     4450rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4451fi
     4452echo "$as_me:4452: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4453echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4454if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4455  cat >>confdefs.h <<EOF
     4456#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4457EOF
     4458
     4459echo "$as_me:4459: checking for _doprnt" >&5
     4460echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
     4461if test "${ac_cv_func__doprnt+set}" = set; then
     4462  echo $ECHO_N "(cached) $ECHO_C" >&6
     4463else
     4464  cat >conftest.$ac_ext <<_ACEOF
     4465#line 4465 "configure"
    28734466#include "confdefs.h"
    28744467/* System header to define __stub macros and hopefully few prototypes,
    2875     which can conflict with char _doprnt(); below.  */
     4468    which can conflict with char _doprnt (); below.  */
    28764469#include <assert.h>
    28774470/* Override any gcc2 internal prototype to avoid an error.  */
     4471#ifdef __cplusplus
     4472extern "C"
     4473#endif
    28784474/* We use char because int might match the return type of a gcc2
    2879     builtin and then its argument prototype would still apply.  */
    2880 char _doprnt();
    2881 
    2882 int main() {
    2883 
     4475   builtin and then its argument prototype would still apply.  */
     4476char _doprnt ();
     4477char (*f) ();
     4478
     4479int
     4480main ()
     4481{
    28844482/* The GNU C library defines this for functions which it implements
    28854483    to always fail with ENOSYS.  Some functions are actually named
     
    28884486choke me
    28894487#else
    2890 _doprnt();
     4488f = _doprnt;
    28914489#endif
    28924490
    2893 ; return 0; }
    2894 EOF
    2895 if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2896   rm -rf conftest*
    2897   eval "ac_cv_func__doprnt=yes"
    2898 else
    2899   echo "configure: failed program was:" >&5
    2900   cat conftest.$ac_ext >&5
    2901   rm -rf conftest*
    2902   eval "ac_cv_func__doprnt=no"
    2903 fi
    2904 rm -f conftest*
    2905 fi
    2906 
    2907 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    2908   echo "$ac_t""yes" 1>&6
    2909   cat >> confdefs.h <<\EOF
     4491  ;
     4492  return 0;
     4493}
     4494_ACEOF
     4495rm -f conftest.$ac_objext conftest$ac_exeext
     4496if { (eval echo "$as_me:4496: \"$ac_link\"") >&5
     4497  (eval $ac_link) 2>&5
     4498  ac_status=$?
     4499  echo "$as_me:4499: \$? = $ac_status" >&5
     4500  (exit $ac_status); } &&
     4501         { ac_try='test -s conftest$ac_exeext'
     4502  { (eval echo "$as_me:4502: \"$ac_try\"") >&5
     4503  (eval $ac_try) 2>&5
     4504  ac_status=$?
     4505  echo "$as_me:4505: \$? = $ac_status" >&5
     4506  (exit $ac_status); }; }; then
     4507  ac_cv_func__doprnt=yes
     4508else
     4509  echo "$as_me: failed program was:" >&5
     4510cat conftest.$ac_ext >&5
     4511ac_cv_func__doprnt=no
     4512fi
     4513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4514fi
     4515echo "$as_me:4515: result: $ac_cv_func__doprnt" >&5
     4516echo "${ECHO_T}$ac_cv_func__doprnt" >&6
     4517if test $ac_cv_func__doprnt = yes; then
     4518
     4519cat >>confdefs.h <<\EOF
    29104520#define HAVE_DOPRNT 1
    29114521EOF
    29124522
    2913 else
    2914   echo "$ac_t""no" 1>&6
    2915 fi
    2916 
    2917 fi
     4523fi
     4524
     4525fi
     4526done
    29184527
    29194528for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    29204529do
    2921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2922 echo "configure:2923: checking for $ac_func" >&5
    2923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2924   echo $ac_n "(cached) $ac_c" 1>&6
    2925 else
    2926   cat > conftest.$ac_ext <<EOF
    2927 #line 2928 "configure"
     4530ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4531echo "$as_me:4531: checking for $ac_func" >&5
     4532echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4533if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4534  echo $ECHO_N "(cached) $ECHO_C" >&6
     4535else
     4536  cat >conftest.$ac_ext <<_ACEOF
     4537#line 4537 "configure"
    29284538#include "confdefs.h"
    29294539/* System header to define __stub macros and hopefully few prototypes,
    2930     which can conflict with char $ac_func(); below.  */
     4540    which can conflict with char $ac_func (); below.  */
    29314541#include <assert.h>
    29324542/* Override any gcc2 internal prototype to avoid an error.  */
     4543#ifdef __cplusplus
     4544extern "C"
     4545#endif
    29334546/* We use char because int might match the return type of a gcc2
    2934     builtin and then its argument prototype would still apply.  */
    2935 char $ac_func();
    2936 
    2937 int main() {
    2938 
     4547   builtin and then its argument prototype would still apply.  */
     4548char $ac_func ();
     4549char (*f) ();
     4550
     4551int
     4552main ()
     4553{
    29394554/* The GNU C library defines this for functions which it implements
    29404555    to always fail with ENOSYS.  Some functions are actually named
     
    29434558choke me
    29444559#else
    2945 $ac_func();
     4560f = $ac_func;
    29464561#endif
    29474562
    2948 ; return 0; }
    2949 EOF
    2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2951   rm -rf conftest*
    2952   eval "ac_cv_func_$ac_func=yes"
    2953 else
    2954   echo "configure: failed program was:" >&5
    2955   cat conftest.$ac_ext >&5
    2956   rm -rf conftest*
    2957   eval "ac_cv_func_$ac_func=no"
    2958 fi
    2959 rm -f conftest*
    2960 fi
    2961 
    2962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2963   echo "$ac_t""yes" 1>&6
    2964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2965   cat >> confdefs.h <<EOF
    2966 #define $ac_tr_func 1
    2967 EOF
    2968  
    2969 else
    2970   echo "$ac_t""no" 1>&6
     4563  ;
     4564  return 0;
     4565}
     4566_ACEOF
     4567rm -f conftest.$ac_objext conftest$ac_exeext
     4568if { (eval echo "$as_me:4568: \"$ac_link\"") >&5
     4569  (eval $ac_link) 2>&5
     4570  ac_status=$?
     4571  echo "$as_me:4571: \$? = $ac_status" >&5
     4572  (exit $ac_status); } &&
     4573         { ac_try='test -s conftest$ac_exeext'
     4574  { (eval echo "$as_me:4574: \"$ac_try\"") >&5
     4575  (eval $ac_try) 2>&5
     4576  ac_status=$?
     4577  echo "$as_me:4577: \$? = $ac_status" >&5
     4578  (exit $ac_status); }; }; then
     4579  eval "$ac_ac_var=yes"
     4580else
     4581  echo "$as_me: failed program was:" >&5
     4582cat conftest.$ac_ext >&5
     4583eval "$ac_ac_var=no"
     4584fi
     4585rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4586fi
     4587echo "$as_me:4587: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4588echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4589if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4590  cat >>confdefs.h <<EOF
     4591#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4592EOF
     4593
    29714594fi
    29724595done
     
    29744597for ac_func in ftruncate strstr strcasecmp
    29754598do
    2976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2977 echo "configure:2978: checking for $ac_func" >&5
    2978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2979   echo $ac_n "(cached) $ac_c" 1>&6
    2980 else
    2981   cat > conftest.$ac_ext <<EOF
    2982 #line 2983 "configure"
     4599ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4600echo "$as_me:4600: checking for $ac_func" >&5
     4601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4602if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4603  echo $ECHO_N "(cached) $ECHO_C" >&6
     4604else
     4605  cat >conftest.$ac_ext <<_ACEOF
     4606#line 4606 "configure"
    29834607#include "confdefs.h"
    29844608/* System header to define __stub macros and hopefully few prototypes,
    2985     which can conflict with char $ac_func(); below.  */
     4609    which can conflict with char $ac_func (); below.  */
    29864610#include <assert.h>
    29874611/* Override any gcc2 internal prototype to avoid an error.  */
     4612#ifdef __cplusplus
     4613extern "C"
     4614#endif
    29884615/* We use char because int might match the return type of a gcc2
    2989     builtin and then its argument prototype would still apply.  */
    2990 char $ac_func();
    2991 
    2992 int main() {
    2993 
     4616   builtin and then its argument prototype would still apply.  */
     4617char $ac_func ();
     4618char (*f) ();
     4619
     4620int
     4621main ()
     4622{
    29944623/* The GNU C library defines this for functions which it implements
    29954624    to always fail with ENOSYS.  Some functions are actually named
     
    29984627choke me
    29994628#else
    3000 $ac_func();
     4629f = $ac_func;
    30014630#endif
    30024631
    3003 ; return 0; }
    3004 EOF
    3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3006   rm -rf conftest*
    3007   eval "ac_cv_func_$ac_func=yes"
    3008 else
    3009   echo "configure: failed program was:" >&5
    3010   cat conftest.$ac_ext >&5
    3011   rm -rf conftest*
    3012   eval "ac_cv_func_$ac_func=no"
    3013 fi
    3014 rm -f conftest*
    3015 fi
    3016 
    3017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    3018   echo "$ac_t""yes" 1>&6
    3019     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    3020   cat >> confdefs.h <<EOF
    3021 #define $ac_tr_func 1
    3022 EOF
    3023  
    3024 else
    3025   echo "$ac_t""no" 1>&6
    3026 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
     4632  ;
     4633  return 0;
     4634}
     4635_ACEOF
     4636rm -f conftest.$ac_objext conftest$ac_exeext
     4637if { (eval echo "$as_me:4637: \"$ac_link\"") >&5
     4638  (eval $ac_link) 2>&5
     4639  ac_status=$?
     4640  echo "$as_me:4640: \$? = $ac_status" >&5
     4641  (exit $ac_status); } &&
     4642         { ac_try='test -s conftest$ac_exeext'
     4643  { (eval echo "$as_me:4643: \"$ac_try\"") >&5
     4644  (eval $ac_try) 2>&5
     4645  ac_status=$?
     4646  echo "$as_me:4646: \$? = $ac_status" >&5
     4647  (exit $ac_status); }; }; then
     4648  eval "$ac_ac_var=yes"
     4649else
     4650  echo "$as_me: failed program was:" >&5
     4651cat conftest.$ac_ext >&5
     4652eval "$ac_ac_var=no"
     4653fi
     4654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4655fi
     4656echo "$as_me:4656: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4657echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4658if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4659  cat >>confdefs.h <<EOF
     4660#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4661EOF
     4662
     4663else
     4664  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
    30274665fi
    30284666done
    3029 
    3030 
    3031 
    30324667
    30334668# *** Custom checking (based on GNU tar configure.in) ***
    30344669# ---------------------------------------------------------------------------
    3035 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
    3036 echo "configure:3037: checking for HP-UX needing gmalloc" >&5
     4670echo "$as_me:4670: checking for HP-UX needing gmalloc" >&5
     4671echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    30374672if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    3038   echo "$ac_t""yes" 1>&6
     4673  echo "$as_me:4673: result: yes" >&5
     4674echo "${ECHO_T}yes" >&6
    30394675  LIBOBJS="$LIBOBJS gmalloc.o"
    3040   cat >> confdefs.h <<\EOF
     4676  cat >>confdefs.h <<\EOF
    30414677#define HAVE_VALLOC 1
    30424678EOF
    30434679
    30444680else
    3045   echo "$ac_t""no" 1>&6
    3046   for ac_func in valloc
     4681  echo "$as_me:4681: result: no" >&5
     4682echo "${ECHO_T}no" >&6
     4683
     4684for ac_func in valloc
    30474685do
    3048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3049 echo "configure:3050: checking for $ac_func" >&5
    3050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    3051   echo $ac_n "(cached) $ac_c" 1>&6
    3052 else
    3053   cat > conftest.$ac_ext <<EOF
    3054 #line 3055 "configure"
     4686ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
     4687echo "$as_me:4687: checking for $ac_func" >&5
     4688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     4689if eval "test \"\${$ac_ac_var+set}\" = set"; then
     4690  echo $ECHO_N "(cached) $ECHO_C" >&6
     4691else
     4692  cat >conftest.$ac_ext <<_ACEOF
     4693#line 4693 "configure"
    30554694#include "confdefs.h"
    30564695/* System header to define __stub macros and hopefully few prototypes,
    3057     which can conflict with char $ac_func(); below.  */
     4696    which can conflict with char $ac_func (); below.  */
    30584697#include <assert.h>
    30594698/* Override any gcc2 internal prototype to avoid an error.  */
     4699#ifdef __cplusplus
     4700extern "C"
     4701#endif
    30604702/* We use char because int might match the return type of a gcc2
    3061     builtin and then its argument prototype would still apply.  */
    3062 char $ac_func();
    3063 
    3064 int main() {
    3065 
     4703   builtin and then its argument prototype would still apply.  */
     4704char $ac_func ();
     4705char (*f) ();
     4706
     4707int
     4708main ()
     4709{
    30664710/* The GNU C library defines this for functions which it implements
    30674711    to always fail with ENOSYS.  Some functions are actually named
     
    30704714choke me
    30714715#else
    3072 $ac_func();
     4716f = $ac_func;
    30734717#endif
    30744718
    3075 ; return 0; }
    3076 EOF
    3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3078   rm -rf conftest*
    3079   eval "ac_cv_func_$ac_func=yes"
    3080 else
    3081   echo "configure: failed program was:" >&5
    3082   cat conftest.$ac_ext >&5
    3083   rm -rf conftest*
    3084   eval "ac_cv_func_$ac_func=no"
    3085 fi
    3086 rm -f conftest*
    3087 fi
    3088 
    3089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    3090   echo "$ac_t""yes" 1>&6
    3091     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    3092   cat >> confdefs.h <<EOF
    3093 #define $ac_tr_func 1
    3094 EOF
    3095  
    3096 else
    3097   echo "$ac_t""no" 1>&6
     4719  ;
     4720  return 0;
     4721}
     4722_ACEOF
     4723rm -f conftest.$ac_objext conftest$ac_exeext
     4724if { (eval echo "$as_me:4724: \"$ac_link\"") >&5
     4725  (eval $ac_link) 2>&5
     4726  ac_status=$?
     4727  echo "$as_me:4727: \$? = $ac_status" >&5
     4728  (exit $ac_status); } &&
     4729         { ac_try='test -s conftest$ac_exeext'
     4730  { (eval echo "$as_me:4730: \"$ac_try\"") >&5
     4731  (eval $ac_try) 2>&5
     4732  ac_status=$?
     4733  echo "$as_me:4733: \$? = $ac_status" >&5
     4734  (exit $ac_status); }; }; then
     4735  eval "$ac_ac_var=yes"
     4736else
     4737  echo "$as_me: failed program was:" >&5
     4738cat conftest.$ac_ext >&5
     4739eval "$ac_ac_var=no"
     4740fi
     4741rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4742fi
     4743echo "$as_me:4743: result: `eval echo '${'$ac_ac_var'}'`" >&5
     4744echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
     4745if test `eval echo '${'$ac_ac_var'}'` = yes; then
     4746  cat >>confdefs.h <<EOF
     4747#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
     4748EOF
     4749
    30984750fi
    30994751done
     
    31014753fi
    31024754
    3103 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
    3104 echo "configure:3105: checking if malloc debugging is wanted" >&5
     4755echo "$as_me:4755: checking if malloc debugging is wanted" >&5
     4756echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
     4757
    31054758# Check whether --with-dmalloc or --without-dmalloc was given.
    31064759if test "${with_dmalloc+set}" = set; then
    31074760  withval="$with_dmalloc"
    31084761  if test "$withval" = yes; then
    3109   echo "$ac_t""yes" 1>&6
    3110   cat >> confdefs.h <<\EOF
     4762  echo "$as_me:4762: result: yes" >&5
     4763echo "${ECHO_T}yes" >&6
     4764  cat >>confdefs.h <<\EOF
    31114765#define WITH_DMALLOC 1
    31124766EOF
     
    31154769  LDFLAGS="$LDFLAGS -g"
    31164770else
    3117   echo "$ac_t""no" 1>&6
    3118 fi
    3119 else
    3120   echo "$ac_t""no" 1>&6
    3121 fi
    3122 
    3123 
    3124 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
    3125 echo "configure:3126: checking which of rx or regex is wanted" >&5
     4771  echo "$as_me:4771: result: no" >&5
     4772echo "${ECHO_T}no" >&6
     4773fi
     4774else
     4775  echo "$as_me:4775: result: no" >&5
     4776echo "${ECHO_T}no" >&6
     4777fi;
     4778
     4779echo "$as_me:4779: checking which of rx or regex is wanted" >&5
     4780echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
     4781
    31264782# Check whether --with-regex or --without-regex was given.
    31274783if test "${with_regex+set}" = set; then
     
    31294785  if test "$withval" = yes; then
    31304786  ac_with_regex=1
    3131   echo "$ac_t""regex" 1>&6
    3132   cat >> confdefs.h <<\EOF
     4787  echo "$as_me:4787: result: regex" >&5
     4788echo "${ECHO_T}regex" >&6
     4789  cat >>confdefs.h <<\EOF
    31334790#define WITH_REGEX 1
    31344791EOF
     
    31364793  LIBOBJS="$LIBOBJS regex.o"
    31374794fi
    3138 fi
    3139 
     4795fi;
    31404796if test -z "$ac_with_regex"; then
    3141   echo "$ac_t""rx" 1>&6
    3142   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
    3143 echo "configure:3144: checking for re_rx_search" >&5
    3144 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    3145   echo $ac_n "(cached) $ac_c" 1>&6
    3146 else
    3147   cat > conftest.$ac_ext <<EOF
    3148 #line 3149 "configure"
     4797  echo "$as_me:4797: result: rx" >&5
     4798echo "${ECHO_T}rx" >&6
     4799  echo "$as_me:4799: checking for re_rx_search" >&5
     4800echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
     4801if test "${ac_cv_func_re_rx_search+set}" = set; then
     4802  echo $ECHO_N "(cached) $ECHO_C" >&6
     4803else
     4804  cat >conftest.$ac_ext <<_ACEOF
     4805#line 4805 "configure"
    31494806#include "confdefs.h"
    31504807/* System header to define __stub macros and hopefully few prototypes,
    3151     which can conflict with char re_rx_search(); below.  */
     4808    which can conflict with char re_rx_search (); below.  */
    31524809#include <assert.h>
    31534810/* Override any gcc2 internal prototype to avoid an error.  */
     4811#ifdef __cplusplus
     4812extern "C"
     4813#endif
    31544814/* We use char because int might match the return type of a gcc2
    3155     builtin and then its argument prototype would still apply.  */
    3156 char re_rx_search();
    3157 
    3158 int main() {
    3159 
     4815   builtin and then its argument prototype would still apply.  */
     4816char re_rx_search ();
     4817char (*f) ();
     4818
     4819int
     4820main ()
     4821{
    31604822/* The GNU C library defines this for functions which it implements
    31614823    to always fail with ENOSYS.  Some functions are actually named
     
    31644826choke me
    31654827#else
    3166 re_rx_search();
     4828f = re_rx_search;
    31674829#endif
    31684830
    3169 ; return 0; }
    3170 EOF
    3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3172   rm -rf conftest*
    3173   eval "ac_cv_func_re_rx_search=yes"
    3174 else
    3175   echo "configure: failed program was:" >&5
    3176   cat conftest.$ac_ext >&5
    3177   rm -rf conftest*
    3178   eval "ac_cv_func_re_rx_search=no"
    3179 fi
    3180 rm -f conftest*
    3181 fi
    3182 
    3183 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
    3184   echo "$ac_t""yes" 1>&6
     4831  ;
     4832  return 0;
     4833}
     4834_ACEOF
     4835rm -f conftest.$ac_objext conftest$ac_exeext
     4836if { (eval echo "$as_me:4836: \"$ac_link\"") >&5
     4837  (eval $ac_link) 2>&5
     4838  ac_status=$?
     4839  echo "$as_me:4839: \$? = $ac_status" >&5
     4840  (exit $ac_status); } &&
     4841         { ac_try='test -s conftest$ac_exeext'
     4842  { (eval echo "$as_me:4842: \"$ac_try\"") >&5
     4843  (eval $ac_try) 2>&5
     4844  ac_status=$?
     4845  echo "$as_me:4845: \$? = $ac_status" >&5
     4846  (exit $ac_status); }; }; then
     4847  ac_cv_func_re_rx_search=yes
     4848else
     4849  echo "$as_me: failed program was:" >&5
     4850cat conftest.$ac_ext >&5
     4851ac_cv_func_re_rx_search=no
     4852fi
     4853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4854fi
     4855echo "$as_me:4855: result: $ac_cv_func_re_rx_search" >&5
     4856echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
     4857if test $ac_cv_func_re_rx_search = yes; then
    31854858  :
    31864859else
    3187   echo "$ac_t""no" 1>&6
    3188 LIBOBJS="$LIBOBJS rx.o"
    3189 fi
    3190 
    3191 fi
    3192 
     4860  LIBOBJS="$LIBOBJS rx.o"
     4861fi
     4862
     4863fi
    31934864
    31944865# ---------------------------------------------------------------------------
     
    31974868fi
    31984869
    3199 
    32004870# ---------------------------------------------------------------------------
    32014871
    3202 ac_ext=C
    3203 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     4872ac_ext=cc
    32044873ac_cpp='$CXXCPP $CPPFLAGS'
    3205 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    3206 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    3207 cross_compiling=$ac_cv_prog_cxx_cross
    3208 
    3209 
    3210 
    3211 echo $ac_n "checking that the GDBM library is available""... $ac_c" 1>&6
    3212 echo "configure:3213: checking that the GDBM library is available" >&5
     4874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     4877
     4878echo "$as_me:4878: checking that the GDBM library is available" >&5
     4879echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
    32134880if test ! -z "$gdbmdir" ; then
    32144881  # look in given directory for header file
     
    32294896
    32304897  if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
    3231     echo "$ac_t""$gdbmdir" 1>&6 ;
     4898    echo "$as_me:4898: result: $gdbmdir" >&5
     4899echo "${ECHO_T}$gdbmdir" >&6 ;
    32324900  else
    3233     echo "$ac_t""can't find gdbm.h and libgdbm.a in $gdbmdir" 1>&6;
    3234     echo $ac_n "checking looking for GDBM library in default locations""... $ac_c" 1>&6
    3235 echo "configure:3236: checking looking for GDBM library in default locations" >&5
     4901    echo "$as_me:4901: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
     4902echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
     4903    echo "$as_me:4903: checking looking for GDBM library in default locations" >&5
     4904echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
    32364905  fi
    32374906fi
     
    32394908# look in default path and in /usr/local
    32404909if test -z "$GDBM_INCLUDE" ; then
    3241   # try in system directory
    3242   cat > conftest.$ac_ext <<EOF
    3243 #line 3244 "configure"
     4910  # try in system directory
     4911
     4912cat >conftest.$ac_ext <<_ACEOF
     4913#line 4913 "configure"
    32444914#include "confdefs.h"
    32454915#include <gdbm.h>
    32464916
    3247 int main() {
    3248 
    3249 ; return 0; }
    3250 EOF
    3251 if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3252   rm -rf conftest*
     4917int
     4918main ()
     4919{
     4920
     4921  ;
     4922  return 0;
     4923}
     4924_ACEOF
     4925rm -f conftest.$ac_objext
     4926if { (eval echo "$as_me:4926: \"$ac_compile\"") >&5
     4927  (eval $ac_compile) 2>&5
     4928  ac_status=$?
     4929  echo "$as_me:4929: \$? = $ac_status" >&5
     4930  (exit $ac_status); } &&
     4931         { ac_try='test -s conftest.$ac_objext'
     4932  { (eval echo "$as_me:4932: \"$ac_try\"") >&5
     4933  (eval $ac_try) 2>&5
     4934  ac_status=$?
     4935  echo "$as_me:4935: \$? = $ac_status" >&5
     4936  (exit $ac_status); }; }; then
    32534937  success=yes
    32544938else
    3255   echo "configure: failed program was:" >&5
    3256   cat conftest.$ac_ext >&5
    3257   rm -rf conftest*
    3258   success=no
    3259  
    3260 fi
    3261 rm -f conftest*
     4939  echo "$as_me: failed program was:" >&5
     4940cat conftest.$ac_ext >&5
     4941success=no
     4942
     4943fi
     4944rm -f conftest.$ac_objext conftest.$ac_ext
    32624945
    32634946  if test $success = "no"; then
     
    32694952      CXXFLAGS="$CXXFLAGS -I/usr/local/include"
    32704953      LIBS="$LIBS -L/usr/local/lib -lgdbm"
    3271       cat > conftest.$ac_ext <<EOF
    3272 #line 3273 "configure"
     4954      cat >conftest.$ac_ext <<_ACEOF
     4955#line 4955 "configure"
    32734956#include "confdefs.h"
    32744957#include <gdbm.h>
    32754958#include <stdio.h>
    3276    
    3277 int main() {
     4959
     4960int
     4961main ()
     4962{
    32784963printf("%s",gdbm_version);
    3279 ; return 0; }
    3280 EOF
    3281 if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3282   rm -rf conftest*
     4964  ;
     4965  return 0;
     4966}
     4967_ACEOF
     4968rm -f conftest.$ac_objext conftest$ac_exeext
     4969if { (eval echo "$as_me:4969: \"$ac_link\"") >&5
     4970  (eval $ac_link) 2>&5
     4971  ac_status=$?
     4972  echo "$as_me:4972: \$? = $ac_status" >&5
     4973  (exit $ac_status); } &&
     4974         { ac_try='test -s conftest$ac_exeext'
     4975  { (eval echo "$as_me:4975: \"$ac_try\"") >&5
     4976  (eval $ac_try) 2>&5
     4977  ac_status=$?
     4978  echo "$as_me:4978: \$? = $ac_status" >&5
     4979  (exit $ac_status); }; }; then
    32834980  success=/usr/local
    32844981else
    3285   echo "configure: failed program was:" >&5
    3286   cat conftest.$ac_ext >&5
    3287   rm -rf conftest*
    3288   success=no
    3289      
    3290 fi
    3291 rm -f conftest*
     4982  echo "$as_me: failed program was:" >&5
     4983cat conftest.$ac_ext >&5
     4984success=no
     4985
     4986fi
     4987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    32924988      CXXFLAGS=$ac_save_CXXFLAGS
    32934989      LIBS=$ac_save_LIBS
    32944990  fi
    32954991
    3296   echo "$ac_t""$success" 1>&6
     4992  echo "$as_me:4992: result: $success" >&5
     4993echo "${ECHO_T}$success" >&6
    32974994  if test $success = "no"; then
    3298   { echo "configure: error: GDBM Library not available - cannot install" 1>&2; exit 1; }
     4995  { { echo "$as_me:4995: error: GDBM Library not available - cannot install" >&5
     4996echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
     4997   { (exit 1); exit 1; }; }
    32994998  fi
    33004999fi
    3301 cat >> confdefs.h <<\EOF
     5000cat >>confdefs.h <<\EOF
    33025001#define HAVE_LIBGDBM  1
    33035002EOF
    33045003
    3305 
    3306 
    3307 
    3308 
    3309 echo $ac_n "checking that Perl 5 is available""... $ac_c" 1>&6
    3310 echo "configure:3311: checking that Perl 5 is available" >&5
     5004echo "$as_me:5004: checking that Perl 5 is available" >&5
     5005echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
    33115006success="no"
    33125007pl_path="$PATH"
     
    33255020try=`expr $try \> 5.000`
    33265021if test $try = "1"; then
    3327 echo "$ac_t"""yes"" 1>&6
     5022echo "$as_me:5022: result: \"yes\"" >&5
     5023echo "${ECHO_T}\"yes\"" >&6
    33285024else
    33295025success="no"
     
    33325028
    33335029if test $success = "no"; then
    3334 echo "$ac_t"""no"" 1>&6
    3335 { echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
     5030echo "$as_me:5030: result: \"no\"" >&5
     5031echo "${ECHO_T}\"no\"" >&6
     5032{ { echo "$as_me:5032: error: \"Perl 5 not available - cannot install\"" >&5
     5033echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
     5034   { (exit 1); exit 1; }; }
    33365035fi
    33375036
    33385037success=no
    3339 echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
    3340 echo "configure:3341: checking "whether STL library has known faults"" >&5
    3341 
    3342 cat > conftest.$ac_ext <<EOF
    3343 #line 3344 "configure"
     5038echo "$as_me:5038: checking \"whether STL library has known faults\"" >&5
     5039echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
     5040
     5041cat >conftest.$ac_ext <<_ACEOF
     5042#line 5042 "configure"
    33445043#include "confdefs.h"
    33455044#include <vector>
    33465045
    3347 int main() {
    3348 
    3349 ; return 0; }
    3350 EOF
    3351 if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3352   rm -rf conftest*
     5046int
     5047main ()
     5048{
     5049
     5050  ;
     5051  return 0;
     5052}
     5053_ACEOF
     5054rm -f conftest.$ac_objext
     5055if { (eval echo "$as_me:5055: \"$ac_compile\"") >&5
     5056  (eval $ac_compile) 2>&5
     5057  ac_status=$?
     5058  echo "$as_me:5058: \$? = $ac_status" >&5
     5059  (exit $ac_status); } &&
     5060         { ac_try='test -s conftest.$ac_objext'
     5061  { (eval echo "$as_me:5061: \"$ac_try\"") >&5
     5062  (eval $ac_try) 2>&5
     5063  ac_status=$?
     5064  echo "$as_me:5064: \$? = $ac_status" >&5
     5065  (exit $ac_status); }; }; then
    33535066  success=yes
    33545067else
    3355   echo "configure: failed program was:" >&5
    3356   cat conftest.$ac_ext >&5
    3357 fi
    3358 rm -f conftest*
     5068  echo "$as_me: failed program was:" >&5
     5069cat conftest.$ac_ext >&5
     5070fi
     5071rm -f conftest.$ac_objext conftest.$ac_ext
    33595072
    33605073if test $success = "no"; then
    3361 cat > conftest.$ac_ext <<EOF
    3362 #line 3363 "configure"
     5074cat >conftest.$ac_ext <<_ACEOF
     5075#line 5075 "configure"
    33635076#include "confdefs.h"
    33645077#include <vector.h>
    33655078
    3366 int main() {
    3367 
    3368 ; return 0; }
    3369 EOF
    3370 if { (eval echo configure:3371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3371   rm -rf conftest*
     5079int
     5080main ()
     5081{
     5082
     5083  ;
     5084  return 0;
     5085}
     5086_ACEOF
     5087rm -f conftest.$ac_objext
     5088if { (eval echo "$as_me:5088: \"$ac_compile\"") >&5
     5089  (eval $ac_compile) 2>&5
     5090  ac_status=$?
     5091  echo "$as_me:5091: \$? = $ac_status" >&5
     5092  (exit $ac_status); } &&
     5093         { ac_try='test -s conftest.$ac_objext'
     5094  { (eval echo "$as_me:5094: \"$ac_try\"") >&5
     5095  (eval $ac_try) 2>&5
     5096  ac_status=$?
     5097  echo "$as_me:5097: \$? = $ac_status" >&5
     5098  (exit $ac_status); }; }; then
    33725099  success="yes"
    33735100else
    3374   echo "configure: failed program was:" >&5
    3375   cat conftest.$ac_ext >&5
    3376 fi
    3377 rm -f conftest*
     5101  echo "$as_me: failed program was:" >&5
     5102cat conftest.$ac_ext >&5
     5103fi
     5104rm -f conftest.$ac_objext conftest.$ac_ext
    33785105fi
    33795106
    33805107if test $success = "no"; then
    3381 cat > conftest.$ac_ext <<EOF
    3382 #line 3383 "configure"
     5108cat >conftest.$ac_ext <<_ACEOF
     5109#line 5109 "configure"
    33835110#include "confdefs.h"
    33845111#include <ospace\\std\\vector>
    33855112
    3386 int main() {
    3387 
    3388 ; return 0; }
    3389 EOF
    3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3391   rm -rf conftest*
     5113int
     5114main ()
     5115{
     5116
     5117  ;
     5118  return 0;
     5119}
     5120_ACEOF
     5121rm -f conftest.$ac_objext
     5122if { (eval echo "$as_me:5122: \"$ac_compile\"") >&5
     5123  (eval $ac_compile) 2>&5
     5124  ac_status=$?
     5125  echo "$as_me:5125: \$? = $ac_status" >&5
     5126  (exit $ac_status); } &&
     5127         { ac_try='test -s conftest.$ac_objext'
     5128  { (eval echo "$as_me:5128: \"$ac_try\"") >&5
     5129  (eval $ac_try) 2>&5
     5130  ac_status=$?
     5131  echo "$as_me:5131: \$? = $ac_status" >&5
     5132  (exit $ac_status); }; }; then
    33925133  success="yes"
    33935134else
    3394   echo "configure: failed program was:" >&5
    3395   cat conftest.$ac_ext >&5
    3396 fi
    3397 rm -f conftest*
     5135  echo "$as_me: failed program was:" >&5
     5136cat conftest.$ac_ext >&5
     5137fi
     5138rm -f conftest.$ac_objext conftest.$ac_ext
    33985139fi
    33995140
    34005141if test $success = yes; then
    3401 echo "$ac_t"""no"" 1>&6
    3402 else
    3403 echo "$ac_t"""yes"" 1>&6
    3404 { echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
     5142echo "$as_me:5142: result: \"no\"" >&5
     5143echo "${ECHO_T}\"no\"" >&6
     5144else
     5145echo "$as_me:5145: result: \"yes\"" >&5
     5146echo "${ECHO_T}\"yes\"" >&6
     5147{ { echo "$as_me:5147: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
     5148echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
     5149   { (exit 1); exit 1; }; }
    34055150fi
    34065151
     
    34115156  gsdlos=windows
    34125157 fi
    3413 
    34145158
    34155159# ---------------------------------------------------------------------------
     
    34335177echo "Making$moduleDirs in modules directory"
    34345178
    3435 
    34365179# ---------------------------------------------------------------------------
    34375180ac_configure_args="$ac_configure_args --host=$host --target=$target"
    3438 subdirs="packages"
    3439 
     5181
     5182subdirs="$subdirs packages"
    34405183
    34415184# the list of folders in the src folder
     
    34445187          src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
    34455188
    3446 trap '' 1 2 15
    3447 cat > confcache <<\EOF
     5189ac_config_files="$ac_config_files packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile packages/mg/src/scripts/Makefile packages/mg/lib/Makefile lib/Makefile Makefile $srclist $moduleDirs"
     5190cat >confcache <<\_ACEOF
    34485191# This file is a shell script that caches the results of configure
    34495192# tests run on this system so they can be shared between configure
    3450 # scripts and configure runs.  It is not useful on other systems.
    3451 # If it contains results you don't want to keep, you may remove or edit it.
     5193# scripts and configure runs, see configure's option --config-cache.
     5194# It is not useful on other systems.  If it contains results you don't
     5195# want to keep, you may remove or edit it.
    34525196#
    3453 # By default, configure uses ./config.cache as the cache file,
    3454 # creating it if it does not exist already.  You can give configure
    3455 # the --cache-file=FILE option to use a different cache file; that is
    3456 # what configure does when it calls configure scripts in
    3457 # subdirectories, so they share the cache.
    3458 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    3459 # config.status only pays attention to the cache file if you give it the
    3460 # --recheck option to rerun configure.
     5197# config.status only pays attention to the cache file if you give it
     5198# the --recheck option to rerun configure.
    34615199#
    3462 EOF
     5200# `ac_cv_env_foo' variables (set or unset) will be overriden when
     5201# loading this file, other *unset* `ac_cv_foo' will be assigned the
     5202# following values.
     5203
     5204_ACEOF
     5205
    34635206# The following way of writing the cache mishandles newlines in values,
    34645207# but we know of no workaround that is simple, portable, and efficient.
     
    34665209# Ultrix sh set writes to stderr and can't be redirected directly,
    34675210# and sets the high bit in the cache file unless we assign to the vars.
    3468 (set) 2>&1 |
    3469   case `(ac_space=' '; set | grep ac_space) 2>&1` in
    3470   *ac_space=\ *)
    3471     # `set' does not quote correctly, so add quotes (double-quote substitution
    3472     # turns \\\\ into \\, and sed turns \\ into \).
    3473     sed -n \
    3474       -e "s/'/'\\\\''/g" \
    3475       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    3476     ;;
    3477   *)
    3478     # `set' quotes correctly as required by POSIX, so do not add quotes.
    3479     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    3480     ;;
    3481   esac >> confcache
    3482 if cmp -s $cache_file confcache; then
    3483   :
    3484 else
     5211{
     5212  (set) 2>&1 |
     5213    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     5214    *ac_space=\ *)
     5215      # `set' does not quote correctly, so add quotes (double-quote
     5216      # substitution turns \\\\ into \\, and sed turns \\ into \).
     5217      sed -n \
     5218        "s/'/'\\\\''/g;
     5219          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     5220      ;;
     5221    *)
     5222      # `set' quotes correctly as required by POSIX, so do not add quotes.
     5223      sed -n \
     5224        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     5225      ;;
     5226    esac;
     5227} |
     5228  sed '
     5229     t clear
     5230     : clear
     5231     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     5232     t end
     5233     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     5234     : end' >>confcache
     5235if cmp -s $cache_file confcache; then :; else
    34855236  if test -w $cache_file; then
    3486     echo "updating cache $cache_file"
    3487     cat confcache > $cache_file
     5237    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     5238    cat confcache >$cache_file
    34885239  else
    34895240    echo "not updating unwritable cache $cache_file"
     
    34925243rm -f confcache
    34935244
    3494 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    3495 
    34965245test "x$prefix" = xNONE && prefix=$ac_default_prefix
    34975246# Let make expand exec_prefix.
    34985247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    34995248
    3500 # Any assignment to VPATH causes Sun make to only execute
    3501 # the first set of double-colon rules, so remove it if not needed.
    3502 # If there is a colon in the path, we need to keep it.
     5249# VPATH may cause trouble with some makes, so we remove $(srcdir),
     5250# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     5251# trailing colons and then remove the whole line if VPATH becomes empty
     5252# (actually we leave an empty line to preserve line numbers).
    35035253if test "x$srcdir" = x.; then
    3504   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
    3505 fi
    3506 
    3507 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     5254  ac_vpsub='/^[     ]*VPATH[    ]*=/{
     5255s/:*\$(srcdir):*/:/;
     5256s/:*\${srcdir}:*/:/;
     5257s/:*@srcdir@:*/:/;
     5258s/^\([^=]*=[    ]*\):*/\1/;
     5259s/:*$//;
     5260s/^[^=]*=[  ]*$//;
     5261}'
     5262fi
    35085263
    35095264DEFS=-DHAVE_CONFIG_H
    35105265
    3511 # Without the "./", some shells look in PATH for config.status.
    35125266: ${CONFIG_STATUS=./config.status}
    3513 
    3514 echo creating $CONFIG_STATUS
    3515 rm -f $CONFIG_STATUS
    3516 cat > $CONFIG_STATUS <<EOF
    3517 #! /bin/sh
     5267ac_clean_files_save=$ac_clean_files
     5268ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     5269{ echo "$as_me:5269: creating $CONFIG_STATUS" >&5
     5270echo "$as_me: creating $CONFIG_STATUS" >&6;}
     5271cat >$CONFIG_STATUS <<_ACEOF
     5272#! $SHELL
    35185273# Generated automatically by configure.
    35195274# Run this file to recreate the current configuration.
    3520 # This directory was configured as follows,
    3521 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     5275# Compiler output produced by configure, useful for debugging
     5276# configure, is in config.log if it exists.
     5277
     5278debug=false
     5279SHELL=\${CONFIG_SHELL-$SHELL}
     5280ac_cs_invocation="\$0 \$@"
     5281
     5282_ACEOF
     5283
     5284cat >>$CONFIG_STATUS <<\_ACEOF
     5285# Be Bourne compatible
     5286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     5287  emulate sh
     5288  NULLCMD=:
     5289elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     5290  set -o posix
     5291fi
     5292
     5293# Name of the executable.
     5294as_me=`echo "$0" |sed 's,.*[\\/],,'`
     5295
     5296if expr a : '\(a\)' >/dev/null 2>&1; then
     5297  as_expr=expr
     5298else
     5299  as_expr=false
     5300fi
     5301
     5302rm -f conf$$ conf$$.exe conf$$.file
     5303echo >conf$$.file
     5304if ln -s conf$$.file conf$$ 2>/dev/null; then
     5305  # We could just check for DJGPP; but this test a) works b) is more generic
     5306  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     5307  if test -f conf$$.exe; then
     5308    # Don't use ln at all; we don't have any links
     5309    as_ln_s='cp -p'
     5310  else
     5311    as_ln_s='ln -s'
     5312  fi
     5313elif ln conf$$.file conf$$ 2>/dev/null; then
     5314  as_ln_s=ln
     5315else
     5316  as_ln_s='cp -p'
     5317fi
     5318rm -f conf$$ conf$$.exe conf$$.file
     5319
     5320as_executable_p="test -f"
     5321
     5322# Support unset when possible.
     5323if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     5324  as_unset=unset
     5325else
     5326  as_unset=false
     5327fi
     5328
     5329# NLS nuisances.
     5330$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     5331$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     5332$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     5333$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     5334$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     5335$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     5336$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     5337$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     5338
     5339# IFS
     5340# We need space, tab and new line, in precisely that order.
     5341as_nl='
     5342'
     5343IFS="   $as_nl"
     5344
     5345# CDPATH.
     5346$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     5347
     5348exec 6>&1
     5349
     5350_ACEOF
     5351
     5352# Files that config.status was made for.
     5353if test -n "$ac_config_files"; then
     5354  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     5355fi
     5356
     5357if test -n "$ac_config_headers"; then
     5358  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     5359fi
     5360
     5361if test -n "$ac_config_links"; then
     5362  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     5363fi
     5364
     5365if test -n "$ac_config_commands"; then
     5366  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     5367fi
     5368
     5369cat >>$CONFIG_STATUS <<\EOF
     5370
     5371ac_cs_usage="\
     5372\`$as_me' instantiates files from templates according to the
     5373current configuration.
     5374
     5375Usage: $0 [OPTIONS] [FILE]...
     5376
     5377  -h, --help       print this help, then exit
     5378  -V, --version    print version number, then exit
     5379  -d, --debug      don't remove temporary files
     5380      --recheck    update $as_me by reconfiguring in the same conditions
     5381  --file=FILE[:TEMPLATE]
     5382                   instantiate the configuration file FILE
     5383  --header=FILE[:TEMPLATE]
     5384                   instantiate the configuration header FILE
     5385
     5386Configuration files:
     5387$config_files
     5388
     5389Configuration headers:
     5390$config_headers
     5391
     5392Report bugs to <[email protected]>."
     5393EOF
     5394
     5395cat >>$CONFIG_STATUS <<EOF
     5396ac_cs_version="\\
     5397config.status
     5398configured by $0, generated by GNU Autoconf 2.50,
     5399  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     5400
     5401Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     5402Free Software Foundation, Inc.
     5403This config.status script is free software; the Free Software Foundation
     5404gives unlimited permission to copy, distribute and modify it."
     5405srcdir=$srcdir
     5406INSTALL="$INSTALL"
     5407EOF
     5408
     5409cat >>$CONFIG_STATUS <<\EOF
     5410# If no file are specified by the user, then we need to provide default
     5411# value.  By we need to know if files were specified by the user.
     5412ac_need_defaults=:
     5413while test $# != 0
     5414do
     5415  case $1 in
     5416  --*=*)
     5417    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     5418    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     5419    shift
     5420    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
     5421    shift
     5422    ;;
     5423  -*);;
     5424  *) # This is not an option, so the user has probably given explicit
     5425     # arguments.
     5426     ac_need_defaults=false;;
     5427  esac
     5428
     5429  case $1 in
     5430  # Handling of the options.
     5431EOF
     5432cat >>$CONFIG_STATUS <<EOF
     5433  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     5434    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
     5435    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
     5436EOF
     5437cat >>$CONFIG_STATUS <<\EOF
     5438  --version | --vers* | -V )
     5439    echo "$ac_cs_version"; exit 0 ;;
     5440  --he | --h)
     5441    # Conflict between --help and --header
     5442    { { echo "$as_me:5442: error: ambiguous option: $1
     5443Try \`$0 --help' for more information." >&5
     5444echo "$as_me: error: ambiguous option: $1
     5445Try \`$0 --help' for more information." >&2;}
     5446   { (exit 1); exit 1; }; };;
     5447  --help | --hel | -h )
     5448    echo "$ac_cs_usage"; exit 0 ;;
     5449  --debug | --d* | -d )
     5450    debug=: ;;
     5451  --file | --fil | --fi | --f )
     5452    shift
     5453    CONFIG_FILES="$CONFIG_FILES $1"
     5454    ac_need_defaults=false;;
     5455  --header | --heade | --head | --hea )
     5456    shift
     5457    CONFIG_HEADERS="$CONFIG_HEADERS $1"
     5458    ac_need_defaults=false;;
     5459
     5460  # Handling of arguments.
     5461  'packages/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
     5462  'packages/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/Makefile" ;;
     5463  'packages/mg/src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/text/Makefile" ;;
     5464  'packages/mg/src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/images/Makefile" ;;
     5465  'packages/mg/src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/scripts/Makefile" ;;
     5466  'packages/mg/lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/lib/Makefile" ;;
     5467  'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     5468  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     5469  '$srclist' ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
     5470  '$moduleDirs' ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
     5471  'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     5472
     5473  # This is an error.
     5474  -*) { { echo "$as_me:5474: error: unrecognized option: $1
     5475Try \`$0 --help' for more information." >&5
     5476echo "$as_me: error: unrecognized option: $1
     5477Try \`$0 --help' for more information." >&2;}
     5478   { (exit 1); exit 1; }; } ;;
     5479  *) { { echo "$as_me:5479: error: invalid argument: $1" >&5
     5480echo "$as_me: error: invalid argument: $1" >&2;}
     5481   { (exit 1); exit 1; }; };;
     5482  esac
     5483  shift
     5484done
     5485
     5486exec 5>>config.log
     5487cat >&5 << _ACEOF
     5488
     5489## ----------------------- ##
     5490## Running config.status.  ##
     5491## ----------------------- ##
     5492
     5493This file was extended by $as_me 2.50, executed with
     5494  > $ac_cs_invocation
     5495on `(hostname || uname -n) 2>/dev/null | sed 1q`
     5496
     5497_ACEOF
     5498EOF
     5499
     5500cat >>$CONFIG_STATUS <<\EOF
     5501# If the user did not use the arguments to specify the items to instantiate,
     5502# then the envvar interface is used.  Set only those that are not.
     5503# We use the long form for the default assignment because of an extremely
     5504# bizarre bug on SunOS 4.1.3.
     5505if $ac_need_defaults; then
     5506  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     5507  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     5508fi
     5509
     5510# Create a temporary directory, and hook for its removal unless debugging.
     5511$debug ||
     5512{
     5513  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     5514  trap '{ (exit $?); exit $?; }' 1 2 13 15
     5515}
     5516
     5517# Create a (secure) tmp directory for tmp files.
     5518: ${TMPDIR=/tmp}
     5519{
     5520  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
     5521  test -n "$tmp" && test -d "$tmp"
     5522}  ||
     5523{
     5524  tmp=$TMPDIR/cs$$-$RANDOM
     5525  (umask 077 && mkdir $tmp)
     5526} ||
     5527{
     5528   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     5529   { (exit 1); exit 1; }
     5530}
     5531
     5532EOF
     5533
     5534cat >>$CONFIG_STATUS <<EOF
     5535
    35225536#
    3523 # $0 $ac_configure_args
     5537# CONFIG_FILES section.
    35245538#
    3525 # Compiler output produced by configure, useful for debugging
    3526 # configure, is in ./config.log if it exists.
    3527 
    3528 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    3529 for ac_option
    3530 do
    3531   case "\$ac_option" in
    3532   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    3533     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    3534     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    3535   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    3536     echo "$CONFIG_STATUS generated by autoconf version 2.13"
    3537     exit 0 ;;
    3538   -help | --help | --hel | --he | --h)
    3539     echo "\$ac_cs_usage"; exit 0 ;;
    3540   *) echo "\$ac_cs_usage"; exit 1 ;;
     5539
     5540# No need to generate the scripts if there are no CONFIG_FILES.
     5541# This happens for instance when ./config.status config.h
     5542if test -n "\$CONFIG_FILES"; then
     5543  # Protect against being on the right side of a sed subst in config.status.
     5544  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     5545   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     5546s,@SHELL@,$SHELL,;t t
     5547s,@exec_prefix@,$exec_prefix,;t t
     5548s,@prefix@,$prefix,;t t
     5549s,@program_transform_name@,$program_transform_name,;t t
     5550s,@bindir@,$bindir,;t t
     5551s,@sbindir@,$sbindir,;t t
     5552s,@libexecdir@,$libexecdir,;t t
     5553s,@datadir@,$datadir,;t t
     5554s,@sysconfdir@,$sysconfdir,;t t
     5555s,@sharedstatedir@,$sharedstatedir,;t t
     5556s,@localstatedir@,$localstatedir,;t t
     5557s,@libdir@,$libdir,;t t
     5558s,@includedir@,$includedir,;t t
     5559s,@oldincludedir@,$oldincludedir,;t t
     5560s,@infodir@,$infodir,;t t
     5561s,@mandir@,$mandir,;t t
     5562s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     5563s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     5564s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     5565s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     5566s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     5567s,@ECHO_C@,$ECHO_C,;t t
     5568s,@ECHO_N@,$ECHO_N,;t t
     5569s,@ECHO_T@,$ECHO_T,;t t
     5570s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     5571s,@DEFS@,$DEFS,;t t
     5572s,@LIBS@,$LIBS,;t t
     5573s,@PACKAGE@,$PACKAGE,;t t
     5574s,@VERSION@,$VERSION,;t t
     5575s,@USE_FASTCGI@,$USE_FASTCGI,;t t
     5576s,@USE_LANGACTION@,$USE_LANGACTION,;t t
     5577s,@USE_CORBA@,$USE_CORBA,;t t
     5578s,@MICO_DIR@,$MICO_DIR,;t t
     5579s,@USE_Z3950@,$USE_Z3950,;t t
     5580s,@CFLAGS@,$CFLAGS,;t t
     5581s,@CC@,$CC,;t t
     5582s,@LDFLAGS@,$LDFLAGS,;t t
     5583s,@CPPFLAGS@,$CPPFLAGS,;t t
     5584s,@ac_ct_CC@,$ac_ct_CC,;t t
     5585s,@EXEEXT@,$EXEEXT,;t t
     5586s,@OBJEXT@,$OBJEXT,;t t
     5587s,@CXX@,$CXX,;t t
     5588s,@CXXFLAGS@,$CXXFLAGS,;t t
     5589s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     5590s,@AWK@,$AWK,;t t
     5591s,@YACC@,$YACC,;t t
     5592s,@build@,$build,;t t
     5593s,@build_cpu@,$build_cpu,;t t
     5594s,@build_vendor@,$build_vendor,;t t
     5595s,@build_os@,$build_os,;t t
     5596s,@host@,$host,;t t
     5597s,@host_cpu@,$host_cpu,;t t
     5598s,@host_vendor@,$host_vendor,;t t
     5599s,@host_os@,$host_os,;t t
     5600s,@target@,$target,;t t
     5601s,@target_cpu@,$target_cpu,;t t
     5602s,@target_vendor@,$target_vendor,;t t
     5603s,@target_os@,$target_os,;t t
     5604s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     5605s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     5606s,@INSTALL_DATA@,$INSTALL_DATA,;t t
     5607s,@LN_S@,$LN_S,;t t
     5608s,@SET_MAKE@,$SET_MAKE,;t t
     5609s,@RANLIB@,$RANLIB,;t t
     5610s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
     5611s,@MICO_VER@,$MICO_VER,;t t
     5612s,@CPP@,$CPP,;t t
     5613s,@U@,$U,;t t
     5614s,@ANSI2KNR@,$ANSI2KNR,;t t
     5615s,@ALLOCA@,$ALLOCA,;t t
     5616s,@LIBOBJS@,$LIBOBJS,;t t
     5617s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
     5618s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
     5619s,@gsdlos@,$gsdlos,;t t
     5620s,@MODULEDIRS@,$MODULEDIRS,;t t
     5621s,@subdirs@,$subdirs,;t t
     5622CEOF
     5623
     5624EOF
     5625
     5626  cat >>$CONFIG_STATUS <<\EOF
     5627  # Split the substitutions into bite-sized pieces for seds with
     5628  # small command number limits, like on Digital OSF/1 and HP-UX.
     5629  ac_max_sed_lines=48
     5630  ac_sed_frag=1 # Number of current file.
     5631  ac_beg=1 # First line for current file.
     5632  ac_end=$ac_max_sed_lines # Line after last line for current file.
     5633  ac_more_lines=:
     5634  ac_sed_cmds=
     5635  while $ac_more_lines; do
     5636    if test $ac_beg -gt 1; then
     5637      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     5638    else
     5639      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     5640    fi
     5641    if test ! -s $tmp/subs.frag; then
     5642      ac_more_lines=false
     5643    else
     5644      # The purpose of the label and of the branching condition is to
     5645      # speed up the sed processing (if there are no `@' at all, there
     5646      # is no need to browse any of the substitutions).
     5647      # These are the two extra sed commands mentioned above.
     5648      (echo ':t
     5649  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     5650      if test -z "$ac_sed_cmds"; then
     5651    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     5652      else
     5653    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     5654      fi
     5655      ac_sed_frag=`expr $ac_sed_frag + 1`
     5656      ac_beg=$ac_end
     5657      ac_end=`expr $ac_end + $ac_max_sed_lines`
     5658    fi
     5659  done
     5660  if test -z "$ac_sed_cmds"; then
     5661    ac_sed_cmds=cat
     5662  fi
     5663fi # test -n "$CONFIG_FILES"
     5664
     5665EOF
     5666cat >>$CONFIG_STATUS <<\EOF
     5667for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     5668  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     5669  case $ac_file in
     5670  - | *:- | *:-:* ) # input from stdin
     5671        cat >$tmp/stdin
     5672        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5673        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5674  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5675        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5676  * )   ac_file_in=$ac_file.in ;;
    35415677  esac
    3542 done
    3543 
    3544 ac_given_srcdir=$srcdir
    3545 ac_given_INSTALL="$INSTALL"
    3546 
    3547 trap 'rm -fr `echo "packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
    3548           packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
    3549       lib/Makefile Makefile $srclist $moduleDirs config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    3550 EOF
    3551 cat >> $CONFIG_STATUS <<EOF
    3552 
    3553 # Protect against being on the right side of a sed subst in config.status.
    3554 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    3555  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    3556 $ac_vpsub
    3557 $extrasub
    3558 s%@SHELL@%$SHELL%g
    3559 s%@CFLAGS@%$CFLAGS%g
    3560 s%@CPPFLAGS@%$CPPFLAGS%g
    3561 s%@CXXFLAGS@%$CXXFLAGS%g
    3562 s%@FFLAGS@%$FFLAGS%g
    3563 s%@DEFS@%$DEFS%g
    3564 s%@LDFLAGS@%$LDFLAGS%g
    3565 s%@LIBS@%$LIBS%g
    3566 s%@exec_prefix@%$exec_prefix%g
    3567 s%@prefix@%$prefix%g
    3568 s%@program_transform_name@%$program_transform_name%g
    3569 s%@bindir@%$bindir%g
    3570 s%@sbindir@%$sbindir%g
    3571 s%@libexecdir@%$libexecdir%g
    3572 s%@datadir@%$datadir%g
    3573 s%@sysconfdir@%$sysconfdir%g
    3574 s%@sharedstatedir@%$sharedstatedir%g
    3575 s%@localstatedir@%$localstatedir%g
    3576 s%@libdir@%$libdir%g
    3577 s%@includedir@%$includedir%g
    3578 s%@oldincludedir@%$oldincludedir%g
    3579 s%@infodir@%$infodir%g
    3580 s%@mandir@%$mandir%g
    3581 s%@PACKAGE@%$PACKAGE%g
    3582 s%@VERSION@%$VERSION%g
    3583 s%@USE_FASTCGI@%$USE_FASTCGI%g
    3584 s%@USE_CORBA@%$USE_CORBA%g
    3585 s%@MICO_DIR@%$MICO_DIR%g
    3586 s%@USE_Z3950@%$USE_Z3950%g
    3587 s%@CC@%$CC%g
    3588 s%@CXX@%$CXX%g
    3589 s%@AWK@%$AWK%g
    3590 s%@YACC@%$YACC%g
    3591 s%@host@%$host%g
    3592 s%@host_alias@%$host_alias%g
    3593 s%@host_cpu@%$host_cpu%g
    3594 s%@host_vendor@%$host_vendor%g
    3595 s%@host_os@%$host_os%g
    3596 s%@target@%$target%g
    3597 s%@target_alias@%$target_alias%g
    3598 s%@target_cpu@%$target_cpu%g
    3599 s%@target_vendor@%$target_vendor%g
    3600 s%@target_os@%$target_os%g
    3601 s%@build@%$build%g
    3602 s%@build_alias@%$build_alias%g
    3603 s%@build_cpu@%$build_cpu%g
    3604 s%@build_vendor@%$build_vendor%g
    3605 s%@build_os@%$build_os%g
    3606 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    3607 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    3608 s%@INSTALL_DATA@%$INSTALL_DATA%g
    3609 s%@LN_S@%$LN_S%g
    3610 s%@SET_MAKE@%$SET_MAKE%g
    3611 s%@RANLIB@%$RANLIB%g
    3612 s%@MICO_VER@%$MICO_VER%g
    3613 s%@CPP@%$CPP%g
    3614 s%@U@%$U%g
    3615 s%@ANSI2KNR@%$ANSI2KNR%g
    3616 s%@ALLOCA@%$ALLOCA%g
    3617 s%@LIBOBJS@%$LIBOBJS%g
    3618 s%@GDBM_LIBPATH@%$GDBM_LIBPATH%g
    3619 s%@GDBM_INCLUDE@%$GDBM_INCLUDE%g
    3620 s%@gsdlos@%$gsdlos%g
    3621 s%@MODULEDIRS@%$MODULEDIRS%g
    3622 s%@subdirs@%$subdirs%g
    3623 
    3624 CEOF
    3625 EOF
    3626 
    3627 cat >> $CONFIG_STATUS <<\EOF
    3628 
    3629 # Split the substitutions into bite-sized pieces for seds with
    3630 # small command number limits, like on Digital OSF/1 and HP-UX.
    3631 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    3632 ac_file=1 # Number of current file.
    3633 ac_beg=1 # First line for current file.
    3634 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    3635 ac_more_lines=:
    3636 ac_sed_cmds=""
    3637 while $ac_more_lines; do
    3638   if test $ac_beg -gt 1; then
    3639     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    3640   else
    3641     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    3642   fi
    3643   if test ! -s conftest.s$ac_file; then
    3644     ac_more_lines=false
    3645     rm -f conftest.s$ac_file
    3646   else
    3647     if test -z "$ac_sed_cmds"; then
    3648       ac_sed_cmds="sed -f conftest.s$ac_file"
    3649     else
    3650       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    3651     fi
    3652     ac_file=`expr $ac_file + 1`
    3653     ac_beg=$ac_end
    3654     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    3655   fi
    3656 done
    3657 if test -z "$ac_sed_cmds"; then
    3658   ac_sed_cmds=cat
    3659 fi
    3660 EOF
    3661 
    3662 cat >> $CONFIG_STATUS <<EOF
    3663 
    3664 CONFIG_FILES=\${CONFIG_FILES-"packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
    3665           packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
    3666       lib/Makefile Makefile $srclist $moduleDirs"}
    3667 EOF
    3668 cat >> $CONFIG_STATUS <<\EOF
    3669 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    3670   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3671   case "$ac_file" in
    3672   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3673        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3674   *) ac_file_in="${ac_file}.in" ;;
     5678
     5679  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     5680  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     5681         X"$ac_file" : 'X\(//\)[^/]' \| \
     5682         X"$ac_file" : 'X\(//\)$' \| \
     5683         X"$ac_file" : 'X\(/\)' \| \
     5684         .     : '\(.\)' 2>/dev/null ||
     5685echo X"$ac_file" |
     5686    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     5687      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     5688      /^X\(\/\/\)$/{ s//\1/; q; }
     5689      /^X\(\/\).*/{ s//\1/; q; }
     5690      s/.*/./; q'`
     5691  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     5692    { case "$ac_dir" in
     5693  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     5694  *)                      as_incr_dir=.;;
     5695esac
     5696as_dummy="$ac_dir"
     5697for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     5698  case $as_mkdir_dir in
     5699    # Skip DOS drivespec
     5700    ?:) as_incr_dir=$as_mkdir_dir ;;
     5701    *)
     5702      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5703      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5704    ;;
    36755705  esac
    3676 
    3677   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    3678 
    3679   # Remove last slash and all that follows it.  Not all systems have dirname.
    3680   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    3681   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3682     # The file is in a subdirectory.
    3683     test ! -d "$ac_dir" && mkdir "$ac_dir"
    3684     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
     5706done; }
     5707
     5708    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    36855709    # A "../" for each directory in $ac_dir_suffix.
    3686     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
     5710    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
    36875711  else
    36885712    ac_dir_suffix= ac_dots=
    36895713  fi
    36905714
    3691   case "$ac_given_srcdir" in
    3692   .)  srcdir=.
    3693       if test -z "$ac_dots"; then top_srcdir=.
    3694       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    3695   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     5715  case $srcdir in
     5716  .)  ac_srcdir=.
     5717      if test -z "$ac_dots"; then
     5718         ac_top_srcdir=.
     5719      else
     5720         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
     5721      fi ;;
     5722  [\\/]* | ?:[\\/]* )
     5723      ac_srcdir=$srcdir$ac_dir_suffix;
     5724      ac_top_srcdir=$srcdir ;;
    36965725  *) # Relative path.
    3697     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    3698     top_srcdir="$ac_dots$ac_given_srcdir" ;;
     5726    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
     5727    ac_top_srcdir=$ac_dots$srcdir ;;
    36995728  esac
    37005729
    3701   case "$ac_given_INSTALL" in
    3702   [/$]*) INSTALL="$ac_given_INSTALL" ;;
    3703   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     5730  case $INSTALL in
     5731  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
     5732  *) ac_INSTALL=$ac_dots$INSTALL ;;
    37045733  esac
    37055734
    3706   echo creating "$ac_file"
    3707   rm -f "$ac_file"
    3708   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    3709   case "$ac_file" in
    3710   *Makefile*) ac_comsub="1i\\
    3711 # $configure_input" ;;
    3712   *) ac_comsub= ;;
    3713   esac
    3714 
    3715   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3716   sed -e "$ac_comsub
    3717 s%@configure_input@%$configure_input%g
    3718 s%@srcdir@%$srcdir%g
    3719 s%@top_srcdir@%$top_srcdir%g
    3720 s%@INSTALL@%$INSTALL%g
    3721 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    3722 fi; done
    3723 rm -f conftest.s*
     5735  if test x"$ac_file" != x-; then
     5736    { echo "$as_me:5736: creating $ac_file" >&5
     5737echo "$as_me: creating $ac_file" >&6;}
     5738    rm -f "$ac_file"
     5739  fi
     5740  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5741  # use $as_me), people would be surprised to read:
     5742  #    /* config.h.  Generated automatically by config.status.  */
     5743  configure_input="Generated automatically from `echo $ac_file_in |
     5744                                                 sed 's,.*/,,'` by configure."
     5745
     5746  # First look for the input files in the build tree, otherwise in the
     5747  # src tree.
     5748  ac_file_inputs=`IFS=:
     5749    for f in $ac_file_in; do
     5750      case $f in
     5751      -) echo $tmp/stdin ;;
     5752      [\\/$]*)
     5753         # Absolute (can't be DOS-style, as IFS=:)
     5754         test -f "$f" || { { echo "$as_me:5754: error: cannot find input file: $f" >&5
     5755echo "$as_me: error: cannot find input file: $f" >&2;}
     5756   { (exit 1); exit 1; }; }
     5757         echo $f;;
     5758      *) # Relative
     5759         if test -f "$f"; then
     5760           # Build tree
     5761           echo $f
     5762         elif test -f "$srcdir/$f"; then
     5763           # Source tree
     5764           echo $srcdir/$f
     5765         else
     5766           # /dev/null tree
     5767           { { echo "$as_me:5767: error: cannot find input file: $f" >&5
     5768echo "$as_me: error: cannot find input file: $f" >&2;}
     5769   { (exit 1); exit 1; }; }
     5770         fi;;
     5771      esac
     5772    done` || { (exit 1); exit 1; }
     5773EOF
     5774cat >>$CONFIG_STATUS <<EOF
     5775  sed "$ac_vpsub
     5776$extrasub
     5777EOF
     5778cat >>$CONFIG_STATUS <<\EOF
     5779:t
     5780/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     5781s,@configure_input@,$configure_input,;t t
     5782s,@srcdir@,$ac_srcdir,;t t
     5783s,@top_srcdir@,$ac_top_srcdir,;t t
     5784s,@INSTALL@,$ac_INSTALL,;t t
     5785" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     5786  rm -f $tmp/stdin
     5787  if test x"$ac_file" != x-; then
     5788    mv $tmp/out $ac_file
     5789  else
     5790    cat $tmp/out
     5791    rm -f $tmp/out
     5792  fi
     5793
     5794done
     5795EOF
     5796cat >>$CONFIG_STATUS <<\EOF
     5797
     5798#
     5799# CONFIG_HEADER section.
     5800#
    37245801
    37255802# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    37275804#
    37285805# ac_d sets the value in "#define NAME VALUE" lines.
    3729 ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    3730 ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
    3731 ac_dC='\3'
    3732 ac_dD='%g'
    3733 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    3734 ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3735 ac_uB='\([  ]\)%\1#\2define\3'
     5806ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
     5807ac_dB='[    ].*$,\1#\2'
     5808ac_dC=' '
     5809ac_dD=',;t'
     5810# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     5811ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     5812ac_uB='$,\1#\2define\3'
    37365813ac_uC=' '
    3737 ac_uD='\4%g'
    3738 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    3739 ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3740 ac_eB='$%\1#\2define\3'
    3741 ac_eC=' '
    3742 ac_eD='%g'
    3743 
    3744 if test "${CONFIG_HEADERS+set}" != set; then
    3745 EOF
    3746 cat >> $CONFIG_STATUS <<EOF
    3747   CONFIG_HEADERS="config.h"
    3748 EOF
    3749 cat >> $CONFIG_STATUS <<\EOF
    3750 fi
    3751 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     5814ac_uD=',;t'
     5815
     5816for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    37525817  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3753   case "$ac_file" in
    3754   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3755        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3756   *) ac_file_in="${ac_file}.in" ;;
     5818  case $ac_file in
     5819  - | *:- | *:-:* ) # input from stdin
     5820        cat >$tmp/stdin
     5821        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5822        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5823  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5824        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5825  * )   ac_file_in=$ac_file.in ;;
    37575826  esac
    37585827
    3759   echo creating $ac_file
    3760 
    3761   rm -f conftest.frag conftest.in conftest.out
    3762   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3763   cat $ac_file_inputs > conftest.in
    3764 
    3765 EOF
    3766 
    3767 # Transform confdefs.h into a sed script conftest.vals that substitutes
    3768 # the proper values into config.h.in to produce config.h.  And first:
    3769 # Protect against being on the right side of a sed subst in config.status.
    3770 # Protect against being in an unquoted here document in config.status.
    3771 rm -f conftest.vals
    3772 cat > conftest.hdr <<\EOF
    3773 s/[\\&%]/\\&/g
    3774 s%[\\$`]%\\&%g
    3775 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    3776 s%ac_d%ac_u%gp
    3777 s%ac_u%ac_e%gp
    3778 EOF
    3779 sed -n -f conftest.hdr confdefs.h > conftest.vals
    3780 rm -f conftest.hdr
     5828  test x"$ac_file" != x- && { echo "$as_me:5828: creating $ac_file" >&5
     5829echo "$as_me: creating $ac_file" >&6;}
     5830
     5831  # First look for the input files in the build tree, otherwise in the
     5832  # src tree.
     5833  ac_file_inputs=`IFS=:
     5834    for f in $ac_file_in; do
     5835      case $f in
     5836      -) echo $tmp/stdin ;;
     5837      [\\/$]*)
     5838         # Absolute (can't be DOS-style, as IFS=:)
     5839         test -f "$f" || { { echo "$as_me:5839: error: cannot find input file: $f" >&5
     5840echo "$as_me: error: cannot find input file: $f" >&2;}
     5841   { (exit 1); exit 1; }; }
     5842         echo $f;;
     5843      *) # Relative
     5844         if test -f "$f"; then
     5845           # Build tree
     5846           echo $f
     5847         elif test -f "$srcdir/$f"; then
     5848           # Source tree
     5849           echo $srcdir/$f
     5850         else
     5851           # /dev/null tree
     5852           { { echo "$as_me:5852: error: cannot find input file: $f" >&5
     5853echo "$as_me: error: cannot find input file: $f" >&2;}
     5854   { (exit 1); exit 1; }; }
     5855         fi;;
     5856      esac
     5857    done` || { (exit 1); exit 1; }
     5858  # Remove the trailing spaces.
     5859  sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
     5860
     5861EOF
     5862
     5863# Transform confdefs.h into two sed scripts, `conftest.defines' and
     5864# `conftest.undefs', that substitutes the proper values into
     5865# config.h.in to produce config.h.  The first handles `#define'
     5866# templates, and the second `#undef' templates.
     5867# And first: Protect against being on the right side of a sed subst in
     5868# config.status.  Protect against being in an unquoted here document
     5869# in config.status.
     5870rm -f conftest.defines conftest.undefs
     5871# Using a here document instead of a string reduces the quoting nightmare.
     5872# Putting comments in sed scripts is not portable.
     5873#
     5874# `end' is used to avoid that the second main sed command (meant for
     5875# 0-ary CPP macros) applies to n-ary macro definitions.
     5876# See the Autoconf documentation for `clear'.
     5877cat >confdef2sed.sed <<\EOF
     5878s/[\\&,]/\\&/g
     5879s,[\\$`],\\&,g
     5880t clear
     5881: clear
     5882s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
     5883t end
     5884s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     5885: end
     5886EOF
     5887# If some macros were called several times there might be several times
     5888# the same #defines, which is useless.  Nevertheless, we may not want to
     5889# sort them, since we want the *last* AC-DEFINE to be honored.
     5890uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     5891sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     5892rm -f confdef2sed.sed
    37815893
    37825894# This sed command replaces #undef with comments.  This is necessary, for
    37835895# example, in the case of _POSIX_SOURCE, which is predefined and required
    37845896# on some systems where configure will not decide to define it.
    3785 cat >> conftest.vals <<\EOF
    3786 s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
    3787 EOF
    3788 
    3789 # Break up conftest.vals because some shells have a limit on
    3790 # the size of here documents, and old seds have small limits too.
    3791 
     5897cat >>conftest.undefs <<\EOF
     5898s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     5899EOF
     5900
     5901# Break up conftest.defines because some shells have a limit on the size
     5902# of here documents, and old seds have small limits too (100 cmds).
     5903echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     5904echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     5905echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     5906echo '  :' >>$CONFIG_STATUS
    37925907rm -f conftest.tail
    3793 while :
     5908while grep . conftest.defines >/dev/null
    37945909do
    3795   ac_lines=`grep -c . conftest.vals`
    3796   # grep -c gives empty output for an empty file on some AIX systems.
    3797   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    3798   # Write a limited-size here document to conftest.frag.
    3799   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    3800   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     5910  # Write a limited-size here document to $tmp/defines.sed.
     5911  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     5912  # Speed up: don't consider the non `#define' lines.
     5913  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
     5914  # Work around the forget-to-reset-the-flag bug.
     5915  echo 't clr' >>$CONFIG_STATUS
     5916  echo ': clr' >>$CONFIG_STATUS
     5917  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    38015918  echo 'CEOF
    3802   sed -f conftest.frag conftest.in > conftest.out
    3803   rm -f conftest.in
    3804   mv conftest.out conftest.in
    3805 ' >> $CONFIG_STATUS
    3806   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    3807   rm -f conftest.vals
    3808   mv conftest.tail conftest.vals
     5919  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     5920  rm -f $tmp/in
     5921  mv $tmp/out $tmp/in
     5922' >>$CONFIG_STATUS
     5923  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     5924  rm -f conftest.defines
     5925  mv conftest.tail conftest.defines
    38095926done
    3810 rm -f conftest.vals
    3811 
    3812 cat >> $CONFIG_STATUS <<\EOF
    3813   rm -f conftest.frag conftest.h
    3814   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    3815   cat conftest.in >> conftest.h
    3816   rm -f conftest.in
    3817   if cmp -s $ac_file conftest.h 2>/dev/null; then
    3818     echo "$ac_file is unchanged"
    3819     rm -f conftest.h
     5927rm -f conftest.defines
     5928echo '  fi # egrep' >>$CONFIG_STATUS
     5929echo >>$CONFIG_STATUS
     5930
     5931# Break up conftest.undefs because some shells have a limit on the size
     5932# of here documents, and old seds have small limits too (100 cmds).
     5933echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     5934rm -f conftest.tail
     5935while grep . conftest.undefs >/dev/null
     5936do
     5937  # Write a limited-size here document to $tmp/undefs.sed.
     5938  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     5939  # Speed up: don't consider the non `#undef'
     5940  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     5941  # Work around the forget-to-reset-the-flag bug.
     5942  echo 't clr' >>$CONFIG_STATUS
     5943  echo ': clr' >>$CONFIG_STATUS
     5944  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     5945  echo 'CEOF
     5946  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     5947  rm -f $tmp/in
     5948  mv $tmp/out $tmp/in
     5949' >>$CONFIG_STATUS
     5950  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     5951  rm -f conftest.undefs
     5952  mv conftest.tail conftest.undefs
     5953done
     5954rm -f conftest.undefs
     5955
     5956cat >>$CONFIG_STATUS <<\EOF
     5957  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5958  # use $as_me), people would be surprised to read:
     5959  #    /* config.h.  Generated automatically by config.status.  */
     5960  if test x"$ac_file" = x-; then
     5961    echo "/* Generated automatically by configure.  */" >$tmp/config.h
    38205962  else
    3821     # Remove last slash and all that follows it.  Not all systems have dirname.
    3822       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     5963    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     5964  fi
     5965  cat $tmp/in >>$tmp/config.h
     5966  rm -f $tmp/in
     5967  if test x"$ac_file" != x-; then
     5968    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
     5969      { echo "$as_me:5969: $ac_file is unchanged" >&5
     5970echo "$as_me: $ac_file is unchanged" >&6;}
     5971    else
     5972      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     5973         X"$ac_file" : 'X\(//\)[^/]' \| \
     5974         X"$ac_file" : 'X\(//\)$' \| \
     5975         X"$ac_file" : 'X\(/\)' \| \
     5976         .     : '\(.\)' 2>/dev/null ||
     5977echo X"$ac_file" |
     5978    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     5979      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     5980      /^X\(\/\/\)$/{ s//\1/; q; }
     5981      /^X\(\/\).*/{ s//\1/; q; }
     5982      s/.*/./; q'`
    38235983      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3824       # The file is in a subdirectory.
    3825       test ! -d "$ac_dir" && mkdir "$ac_dir"
     5984        { case "$ac_dir" in
     5985  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     5986  *)                      as_incr_dir=.;;
     5987esac
     5988as_dummy="$ac_dir"
     5989for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     5990  case $as_mkdir_dir in
     5991    # Skip DOS drivespec
     5992    ?:) as_incr_dir=$as_mkdir_dir ;;
     5993    *)
     5994      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5995      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5996    ;;
     5997  esac
     5998done; }
     5999
     6000      fi
     6001      rm -f $ac_file
     6002      mv $tmp/config.h $ac_file
    38266003    fi
    3827     rm -f $ac_file
    3828     mv conftest.h $ac_file
     6004  else
     6005    cat $tmp/config.h
     6006    rm -f $tmp/config.h
    38296007  fi
    3830 fi; done
    3831 
    3832 EOF
    3833 cat >> $CONFIG_STATUS <<EOF
    3834 
    3835 EOF
    3836 cat >> $CONFIG_STATUS <<\EOF
    3837 
    3838 exit 0
     6008done
     6009EOF
     6010
     6011cat >>$CONFIG_STATUS <<\EOF
     6012
     6013{ (exit 0); exit 0; }
    38396014EOF
    38406015chmod +x $CONFIG_STATUS
    3841 rm -fr confdefs* $ac_clean_files
    3842 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    3843 
     6016ac_clean_files=$ac_clean_files_save
     6017
     6018# configure is writing to config.log, and then calls config.status.
     6019# config.status does its own redirection, appending to config.log.
     6020# Unfortunately, on DOS this fails, as config.log is still kept open
     6021# by configure, so config.status won't be able to write to it; its
     6022# output is simply discarded.  So we exec the FD to /dev/null,
     6023# effectively closing config.log, so it can be properly (re)opened and
     6024# appended to by config.status.  When coming back to configure, we
     6025# need to make the FD available again.
     6026if test "$no_create" != yes; then
     6027  ac_cs_success=:
     6028  exec 5>/dev/null
     6029  $SHELL $CONFIG_STATUS || ac_cs_success=false
     6030  exec 5>>config.log
     6031  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     6032  # would make configure fail if this is the last instruction.
     6033  $ac_cs_success || { (exit 1); exit 1; }
     6034fi
     6035
     6036#
     6037# CONFIG_SUBDIRS section.
     6038#
    38446039if test "$no_recursion" != yes; then
    38456040
     
    38526047      continue
    38536048    fi
    3854     case "$ac_arg" in
     6049    case $ac_arg in
    38556050    -cache-file | --cache-file | --cache-fil | --cache-fi \
    38566051    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    38576052      ac_prev=cache_file ;;
    38586053    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    3859     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
     6054    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
     6055    | --c=*)
     6056      ;;
     6057    --config-cache | -C)
    38606058      ;;
    38616059    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     
    38676065  done
    38686066
    3869   for ac_config_dir in packages; do
     6067  for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
    38706068
    38716069    # Do not complain, so a configure script can configure whichever
    38726070    # parts of a large source tree are present.
    3873     if test ! -d $srcdir/$ac_config_dir; then
    3874       continue
    3875     fi
    3876 
    3877     echo configuring in $ac_config_dir
    3878 
    3879     case "$srcdir" in
     6071    test -d $srcdir/$ac_subdir || continue
     6072
     6073    { echo "$as_me:6073: configuring in $ac_subdir" >&5
     6074echo "$as_me: configuring in $ac_subdir" >&6;}
     6075    case $srcdir in
    38806076    .) ;;
     6077    *) { case "./$ac_subdir" in
     6078  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     6079  *)                      as_incr_dir=.;;
     6080esac
     6081as_dummy="./$ac_subdir"
     6082for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     6083  case $as_mkdir_dir in
     6084    # Skip DOS drivespec
     6085    ?:) as_incr_dir=$as_mkdir_dir ;;
    38816086    *)
    3882       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
    3883       else
    3884         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
    3885       fi
    3886       ;;
     6087      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     6088      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     6089    ;;
     6090  esac
     6091done; }
     6092
     6093       if test -d ./$ac_subdir; then :;
     6094       else
     6095         { { echo "$as_me:6095: error: cannot create \`pwd\`/$ac_subdir" >&5
     6096echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
     6097   { (exit 1); exit 1; }; }
     6098       fi
     6099       ;;
    38876100    esac
    38886101
    38896102    ac_popdir=`pwd`
    3890     cd $ac_config_dir
    3891 
    3892       # A "../" for each directory in /$ac_config_dir.
    3893       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
    3894 
    3895     case "$srcdir" in
     6103    cd $ac_subdir
     6104
     6105    # A "../" for each directory in /$ac_subdir.
     6106    ac_dots=`echo $ac_subdir |
     6107             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
     6108
     6109    case $srcdir in
    38966110    .) # No --srcdir option.  We are building in place.
    38976111      ac_sub_srcdir=$srcdir ;;
    3898     /*) # Absolute path.
    3899       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
     6112    [\\/]* | ?:[\\/]* ) # Absolute path.
     6113      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    39006114    *) # Relative path.
    3901       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
     6115      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    39026116    esac
    39036117
    39046118    # Check for guested configure; otherwise get Cygnus style configure.
    3905     if test -f $ac_sub_srcdir/configure; then
    3906       ac_sub_configure=$ac_sub_srcdir/configure
     6119    if test -f $ac_sub_srcdir/configure.gnu; then
     6120      ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
     6121    elif test -f $ac_sub_srcdir/configure; then
     6122      ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
    39076123    elif test -f $ac_sub_srcdir/configure.in; then
    39086124      ac_sub_configure=$ac_configure
    39096125    else
    3910       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
     6126      { echo "$as_me:6126: WARNING: no configuration information is in $ac_subdir" >&5
     6127echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
    39116128      ac_sub_configure=
    39126129    fi
     
    39146131    # The recursion is here.
    39156132    if test -n "$ac_sub_configure"; then
    3916 
    39176133      # Make the cache file name correct relative to the subdirectory.
    3918       case "$cache_file" in
    3919       /*) ac_sub_cache_file=$cache_file ;;
     6134      case $cache_file in
     6135      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
    39206136      *) # Relative path.
    3921         ac_sub_cache_file="$ac_dots$cache_file" ;;
     6137        ac_sub_cache_file=$ac_dots$cache_file ;;
    39226138      esac
    3923   case "$ac_given_INSTALL" in
    3924         [/$]*) INSTALL="$ac_given_INSTALL" ;;
    3925         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    3926         esac
    3927 
    3928       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
     6139
     6140      { echo "$as_me:6140: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
     6141echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
    39296142      # The eval makes quoting arguments work.
    3930       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
    3931       then :
    3932       else
    3933         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
    3934       fi
     6143      eval $ac_sub_configure $ac_sub_configure_args \
     6144           --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
     6145        { { echo "$as_me:6145: error: $ac_sub_configure failed for $ac_subdir" >&5
     6146echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
     6147   { (exit 1); exit 1; }; }
    39356148    fi
    39366149
     
    39396152fi
    39406153
    3941 #AC_OUTPUT($srclist)
    3942 
    3943 
Note: See TracChangeset for help on using the changeset viewer.