Changeset 8200


Ignore:
Timestamp:
2004-10-01T08:42:33+12:00 (20 years ago)
Author:
kjdon
Message:

ran autoconf after George's commits to configure.in, committing the result.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/configure

    r3705 r8200  
    11#! /bin/sh
     2
    23# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by Autoconf 2.50.
     4# Generated automatically using autoconf version 2.13
     5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    46#
    5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    6 # Free Software Foundation, Inc.
    77# This configure script is free software; the Free Software Foundation
    88# gives unlimited permission to copy, distribute and modify it.
    99
    10 # Be Bourne compatible
    11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    12   emulate sh
    13   NULLCMD=:
    14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    15   set -o posix
    16 fi
    17 
    18 # Name of the executable.
    19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
    20 
    21 if expr a : '\(a\)' >/dev/null 2>&1; then
    22   as_expr=expr
    23 else
    24   as_expr=false
    25 fi
    26 
    27 rm -f conf$$ conf$$.exe conf$$.file
    28 echo >conf$$.file
    29 if ln -s conf$$.file conf$$ 2>/dev/null; then
    30   # We could just check for DJGPP; but this test a) works b) is more generic
    31   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    32   if test -f conf$$.exe; then
    33     # Don't use ln at all; we don't have any links
    34     as_ln_s='cp -p'
    35   else
    36     as_ln_s='ln -s'
    37   fi
    38 elif ln conf$$.file conf$$ 2>/dev/null; then
    39   as_ln_s=ln
    40 else
    41   as_ln_s='cp -p'
    42 fi
    43 rm -f conf$$ conf$$.exe conf$$.file
    44 
    45 as_executable_p="test -f"
    46 
    47 # Support unset when possible.
    48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    49   as_unset=unset
    50 else
    51   as_unset=false
    52 fi
    53 
    54 # NLS nuisances.
    55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
    63 
    64 # IFS
    65 # We need space, tab and new line, in precisely that order.
    66 as_nl='
    67 '
    68 IFS="   $as_nl"
    69 
    70 # CDPATH.
    71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
    72 
    73 # Name of the host.
    74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    75 # so uname gets run too.
    76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    77 
    78 exec 6>&1
    79 
    80 #
    81 # Initializations.
    82 #
     10# Defaults:
     11ac_help=
    8312ac_default_prefix=/usr/local
    84 cross_compiling=no
    85 subdirs=
    86 MFLAGS= MAKEFLAGS=
    87 SHELL=${CONFIG_SHELL-/bin/sh}
    88 
    89 # Maximum number of lines to put in a shell here document.
    90 # This variable seems obsolete.  It should probably be removed, and
    91 # only ac_max_sed_lines should be used.
    92 : ${ac_max_here_lines=38}
    93 
    94 # Avoid depending upon Character Ranges.
    95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
    96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    97 ac_cr_09='0123456789'
    98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
    99 
    100 # Sed expression to map a string onto a valid sh and CPP variable names.
    101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
    102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
    103 
    104 ac_unique_file="lib/text_t.h"
    105 # Factoring default headers for most tests.
    106 ac_includes_default="\
    107 #include <stdio.h>
    108 #include <sys/types.h>
    109 #include <sys/stat.h>
    110 #if STDC_HEADERS
    111 # include <stdlib.h>
    112 # include <stddef.h>
    113 #else
    114 # if HAVE_STDLIB_H
    115 #  include <stdlib.h>
    116 # endif
    117 #endif
    118 #if HAVE_STRING_H
    119 # if !STDC_HEADERS && HAVE_MEMORY_H
    120 #  include <memory.h>
    121 # endif
    122 # include <string.h>
    123 #else
    124 # if HAVE_STRINGS_H
    125 #  include <strings.h>
    126 # endif
    127 #endif
    128 #if HAVE_INTTYPES_H
    129 # include <inttypes.h>
    130 #endif
    131 #if HAVE_UNISTD_H
    132 # include <unistd.h>
    133 #endif"
    134 
    135 ac_subdirs_all="$ac_subdirs_all packages"
     13# Any additions from configure.in:
     14ac_help="$ac_help
     15  --enable-corba          Enable CORBA support"
     16ac_help="$ac_help
     17  --with-micodir          Use installed MICO directory"
     18ac_help="$ac_help
     19  --enable-z3950          Enable Z39.50 client support"
     20ac_help="$ac_help
     21  --with-gdbm=dir         Use local gdbm library and headers"
     22ac_help="$ac_help
     23  --with-dmalloc          use dmalloc, as in
     24                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
     25ac_help="$ac_help
     26  --with-regex            use older regex in lieu of GNU rx for matching"
    13627
    13728# Initialize some variables set by options.
    138 ac_init_help=
    139 ac_init_version=false
    14029# The variables have the same names as the options, with
    14130# dashes changed to underlines.
    142 cache_file=/dev/null
     31build=NONE
     32cache_file=./config.cache
    14333exec_prefix=NONE
     34host=NONE
    14435no_create=
     36nonopt=NONE
    14537no_recursion=
    14638prefix=NONE
     
    15143site=
    15244srcdir=
     45target=NONE
    15346verbose=
    15447x_includes=NONE
    15548x_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.
    16249bindir='${exec_prefix}/bin'
    16350sbindir='${exec_prefix}/sbin'
     
    17360mandir='${prefix}/man'
    17461
    175 # Identity of this package.
    176 PACKAGE_NAME=
    177 PACKAGE_TARNAME=
    178 PACKAGE_VERSION=
    179 PACKAGE_STRING=
    180 PACKAGE_BUGREPORT=
     62# Initialize some other variables.
     63subdirs=
     64MFLAGS= MAKEFLAGS=
     65SHELL=${CONFIG_SHELL-/bin/sh}
     66# Maximum number of lines to put in a shell here document.
     67ac_max_here_lines=12
    18168
    18269ac_prev=
    18370for ac_option
    18471do
     72
    18573  # If the previous option needs an argument, assign it.
    18674  if test -n "$ac_prev"; then
     
    19078  fi
    19179
    192   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     80  case "$ac_option" in
     81  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
     82  *) ac_optarg= ;;
     83  esac
    19384
    19485  # Accept the important Cygnus configure options, so we can diagnose typos.
    19586
    196   case $ac_option in
     87  case "$ac_option" in
    19788
    19889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    19990    ac_prev=bindir ;;
    20091  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    201     bindir=$ac_optarg ;;
     92    bindir="$ac_optarg" ;;
    20293
    20394  -build | --build | --buil | --bui | --bu)
    204     ac_prev=build_alias ;;
     95    ac_prev=build ;;
    20596  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    206     build_alias=$ac_optarg ;;
     97    build="$ac_optarg" ;;
    20798
    20899  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    211102  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    212103  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    213     cache_file=$ac_optarg ;;
    214 
    215   --config-cache | -C)
    216     cache_file=config.cache ;;
     104    cache_file="$ac_optarg" ;;
    217105
    218106  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    220108  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    221109  | --da=*)
    222     datadir=$ac_optarg ;;
     110    datadir="$ac_optarg" ;;
    223111
    224112  -disable-* | --disable-*)
    225     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     113    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    226114    # Reject names that are not valid shell variable names.
    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" ;;
     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" ;;
    232120
    233121  -enable-* | --enable-*)
    234     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     122    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    235123    # Reject names that are not valid shell variable names.
    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"`;;
     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      *=*) ;;
    242130      *) ac_optarg=yes ;;
    243131    esac
    244     eval "enable_$ac_feature='$ac_optarg'" ;;
     132    eval "enable_${ac_feature}='$ac_optarg'" ;;
    245133
    246134  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    251139  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    252140  | --exec=* | --exe=* | --ex=*)
    253     exec_prefix=$ac_optarg ;;
     141    exec_prefix="$ac_optarg" ;;
    254142
    255143  -gas | --gas | --ga | --g)
     
    257145    with_gas=yes ;;
    258146
    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 ;;
     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
     151Usage: configure [options] [host]
     152Options: [defaults in brackets after descriptions]
     153Configuration:
     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
     159Directory 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
     183EOF
     184    cat << EOF
     185Host 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]
     189Features 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
     196EOF
     197    if test -n "$ac_help"; then
     198      echo "--enable and --with options recognized:$ac_help"
     199    fi
     200    exit 0 ;;
    265201
    266202  -host | --host | --hos | --ho)
    267     ac_prev=host_alias ;;
     203    ac_prev=host ;;
    268204  -host=* | --host=* | --hos=* | --ho=*)
    269     host_alias=$ac_optarg ;;
     205    host="$ac_optarg" ;;
    270206
    271207  -includedir | --includedir | --includedi | --included | --include \
     
    274210  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    275211  | --includ=* | --inclu=* | --incl=* | --inc=*)
    276     includedir=$ac_optarg ;;
     212    includedir="$ac_optarg" ;;
    277213
    278214  -infodir | --infodir | --infodi | --infod | --info | --inf)
    279215    ac_prev=infodir ;;
    280216  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    281     infodir=$ac_optarg ;;
     217    infodir="$ac_optarg" ;;
    282218
    283219  -libdir | --libdir | --libdi | --libd)
    284220    ac_prev=libdir ;;
    285221  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    286     libdir=$ac_optarg ;;
     222    libdir="$ac_optarg" ;;
    287223
    288224  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    291227  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    292228  | --libexe=* | --libex=* | --libe=*)
    293     libexecdir=$ac_optarg ;;
     229    libexecdir="$ac_optarg" ;;
    294230
    295231  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    300236  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    301237  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    302     localstatedir=$ac_optarg ;;
     238    localstatedir="$ac_optarg" ;;
    303239
    304240  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    305241    ac_prev=mandir ;;
    306242  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    307     mandir=$ac_optarg ;;
     243    mandir="$ac_optarg" ;;
    308244
    309245  -nfp | --nfp | --nf)
     
    326262  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    327263  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    328     oldincludedir=$ac_optarg ;;
     264    oldincludedir="$ac_optarg" ;;
    329265
    330266  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    331267    ac_prev=prefix ;;
    332268  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    333     prefix=$ac_optarg ;;
     269    prefix="$ac_optarg" ;;
    334270
    335271  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    338274  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    339275  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    340     program_prefix=$ac_optarg ;;
     276    program_prefix="$ac_optarg" ;;
    341277
    342278  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    345281  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    346282  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    347     program_suffix=$ac_optarg ;;
     283    program_suffix="$ac_optarg" ;;
    348284
    349285  -program-transform-name | --program-transform-name \
     
    362298  | --program-trans=* | --program-tran=* \
    363299  | --progr-tra=* | --program-tr=* | --program-t=*)
    364     program_transform_name=$ac_optarg ;;
     300    program_transform_name="$ac_optarg" ;;
    365301
    366302  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    372308  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    373309  | --sbi=* | --sb=*)
    374     sbindir=$ac_optarg ;;
     310    sbindir="$ac_optarg" ;;
    375311
    376312  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    383319  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    384320  | --sha=* | --sh=*)
    385     sharedstatedir=$ac_optarg ;;
     321    sharedstatedir="$ac_optarg" ;;
    386322
    387323  -site | --site | --sit)
    388324    ac_prev=site ;;
    389325  -site=* | --site=* | --sit=*)
    390     site=$ac_optarg ;;
     326    site="$ac_optarg" ;;
    391327
    392328  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    393329    ac_prev=srcdir ;;
    394330  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    395     srcdir=$ac_optarg ;;
     331    srcdir="$ac_optarg" ;;
    396332
    397333  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    400336  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    401337  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    402     sysconfdir=$ac_optarg ;;
     338    sysconfdir="$ac_optarg" ;;
    403339
    404340  -target | --target | --targe | --targ | --tar | --ta | --t)
    405     ac_prev=target_alias ;;
     341    ac_prev=target ;;
    406342  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    407     target_alias=$ac_optarg ;;
     343    target="$ac_optarg" ;;
    408344
    409345  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    410346    verbose=yes ;;
    411347
    412   -version | --version | --versio | --versi | --vers | -V)
    413     ac_init_version=: ;;
     348  -version | --version | --versio | --versi | --vers)
     349    echo "configure generated by autoconf version 2.13"
     350    exit 0 ;;
    414351
    415352  -with-* | --with-*)
    416     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     353    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    417354    # Reject names that are not valid shell variable names.
    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; }; }
     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
    421358    ac_package=`echo $ac_package| sed 's/-/_/g'`
    422     case $ac_option in
    423       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     359    case "$ac_option" in
     360      *=*) ;;
    424361      *) ac_optarg=yes ;;
    425362    esac
    426     eval "with_$ac_package='$ac_optarg'" ;;
     363    eval "with_${ac_package}='$ac_optarg'" ;;
    427364
    428365  -without-* | --without-*)
    429     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     366    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    430367    # Reject names that are not valid shell variable names.
    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" ;;
     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" ;;
    436373
    437374  --x)
     
    444381  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    445382  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    446     x_includes=$ac_optarg ;;
     383    x_includes="$ac_optarg" ;;
    447384
    448385  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    451388  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    452389  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    453     x_libraries=$ac_optarg ;;
    454 
    455   -*) { echo "$as_me: error: unrecognized option: $ac_option
    456 Try \`$0 --help' for more information." >&2
    457    { (exit 1); exit 1; }; }
     390    x_libraries="$ac_optarg" ;;
     391
     392  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    458393    ;;
    459394
    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 
    470395  *)
    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}
     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"
    476403    ;;
    477404
     
    480407
    481408if test -n "$ac_prev"; then
    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; }; }
    485 fi
    486 
    487 # Be sure to have absolute paths.
    488 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    489               localstatedir libdir includedir oldincludedir infodir mandir \
    490               exec_prefix prefix
     409  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
     410fi
     411
     412trap '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
     422if test "$silent" = yes; then
     423  exec 6>/dev/null
     424else
     425  exec 6>&1
     426fi
     427exec 5>./config.log
     428
     429echo "\
     430This file contains any messages produced by compilers while
     431running 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.
     436ac_configure_args=
     437for ac_arg
    491438do
    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; }; };;
     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" ;;
    498447  esac
    499448done
    500449
    501 # There might be people who depend on the old broken behavior: `$host'
    502 # used to hold the argument of --host etc.
    503 build=$build_alias
    504 host=$host_alias
    505 target=$target_alias
    506 
    507 # FIXME: should be removed in autoconf 3.0.
    508 if 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
    516 fi
    517 
    518 ac_tool_prefix=
    519 test -n "$host_alias" && ac_tool_prefix=$host_alias-
    520 
    521 test "$silent" = yes && exec 6>/dev/null
     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.
     455if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
     456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
     457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
     458if 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.
     461rm -rf conftest* confdefs.h
     462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     463echo > 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.
     467ac_unique_file=lib/text_t.h
    522468
    523469# Find the source files, if location was not specified.
     
    526472  # Try the directory containing this script, then its parent.
    527473  ac_prog=$0
    528   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
     474  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
    529475  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    530476  srcdir=$ac_confdir
     
    537483if test ! -r $srcdir/$ac_unique_file; then
    538484  if test "$ac_srcdir_defaulted" = yes; then
    539     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
    540    { (exit 1); exit 1; }; }
     485    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
    541486  else
    542     { echo "$as_me: error: cannot find sources in $srcdir" >&2
    543    { (exit 1); exit 1; }; }
     487    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
    544488  fi
    545489fi
    546 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    547 ac_env_build_alias_set=${build_alias+set}
    548 ac_env_build_alias_value=$build_alias
    549 ac_cv_env_build_alias_set=${build_alias+set}
    550 ac_cv_env_build_alias_value=$build_alias
    551 ac_env_host_alias_set=${host_alias+set}
    552 ac_env_host_alias_value=$host_alias
    553 ac_cv_env_host_alias_set=${host_alias+set}
    554 ac_cv_env_host_alias_value=$host_alias
    555 ac_env_target_alias_set=${target_alias+set}
    556 ac_env_target_alias_value=$target_alias
    557 ac_cv_env_target_alias_set=${target_alias+set}
    558 ac_cv_env_target_alias_value=$target_alias
    559 ac_env_CC_set=${CC+set}
    560 ac_env_CC_value=$CC
    561 ac_cv_env_CC_set=${CC+set}
    562 ac_cv_env_CC_value=$CC
    563 ac_env_CFLAGS_set=${CFLAGS+set}
    564 ac_env_CFLAGS_value=$CFLAGS
    565 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    566 ac_cv_env_CFLAGS_value=$CFLAGS
    567 ac_env_LDFLAGS_set=${LDFLAGS+set}
    568 ac_env_LDFLAGS_value=$LDFLAGS
    569 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    570 ac_cv_env_LDFLAGS_value=$LDFLAGS
    571 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    572 ac_env_CPPFLAGS_value=$CPPFLAGS
    573 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    574 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    575 ac_env_CXX_set=${CXX+set}
    576 ac_env_CXX_value=$CXX
    577 ac_cv_env_CXX_set=${CXX+set}
    578 ac_cv_env_CXX_value=$CXX
    579 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    580 ac_env_CXXFLAGS_value=$CXXFLAGS
    581 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    582 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    583 ac_env_CPP_set=${CPP+set}
    584 ac_env_CPP_value=$CPP
    585 ac_cv_env_CPP_set=${CPP+set}
    586 ac_cv_env_CPP_value=$CPP
    587 
    588 #
    589 # Report the --help message.
    590 #
    591 if 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 
    597 Usage: $0 [OPTION]... [VAR=VALUE]...
    598 
    599 To assign environment variables (e.g., CC, CFLAGS...), specify them as
    600 VAR=VALUE.  See below for descriptions of some of the useful variables.
    601 
    602 Defaults for the options are specified in brackets.
    603 
    604 Configuration:
    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 
    615 EOF
    616 
    617   cat <<EOF
    618 Installation 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 
    624 By default, \`make install' will install all the files in
    625 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    626 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    627 for instance \`--prefix=\$HOME'.
    628 
    629 For better control, use the options below.
    630 
    631 Fine 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]
    644 EOF
    645 
    646   cat <<\EOF
    647 
    648 System 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]
    652 EOF
    653 fi
    654 
    655 if test -n "$ac_init_help"; then
    656 
    657   cat <<\EOF
    658 
    659 Optional 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 
    665 Optional 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 
    674 Some 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 
    685 Use these variables to override the choices made by `configure' or to help
    686 it to find libraries and programs with nonstandard names/locations.
    687 
    688 EOF
    689 fi
    690 
    691 if 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
    725 fi
    726 
    727 test -n "$ac_init_help" && exit 0
    728 if $ac_init_version; then
    729   cat <<\EOF
    730 
    731 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    732 Free Software Foundation, Inc.
    733 This configure script is free software; the Free Software Foundation
    734 gives unlimited permission to copy, distribute and modify it.
    735 EOF
    736   exit 0
    737 fi
    738 exec 5>config.log
    739 cat >&5 <<EOF
    740 This file contains any messages produced by compilers while
    741 running configure, to aid debugging if configure makes a mistake.
    742 
    743 It was created by $as_me, which was
    744 generated by GNU Autoconf 2.50.  Invocation command line was
    745 
    746   $ $0 $@
    747 
    748 EOF
    749 {
    750 cat <<_ASUNAME
    751 ## ---------- ##
    752 ## Platform.  ##
    753 ## ---------- ##
    754 
    755 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    756 uname -m = `(uname -m) 2>/dev/null || echo unknown`
    757 uname -r = `(uname -r) 2>/dev/null || echo unknown`
    758 uname -s = `(uname -s) 2>/dev/null || echo unknown`
    759 uname -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`
    767 hostinfo               = `(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 
    772 PATH = $PATH
    773 
    774 _ASUNAME
    775 } >&5
    776 
    777 cat >&5 <<EOF
    778 ## ------------ ##
    779 ## Core tests.  ##
    780 ## ------------ ##
    781 
    782 EOF
    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.
    787 ac_configure_args=
    788 ac_sep=
    789 for ac_arg
    790 do
    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.
    804 done
    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.
    809 trap '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
    847 for ac_signal in 1 2 13 15; do
    848   trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
    849 done
    850 ac_signal=0
    851 
    852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    853 rm -rf conftest* confdefs.h
    854 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    855 echo >confdefs.h
    856 
    857 # Let the site file select an alternate cache file if it wants to.
     490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
     491
    858492# Prefer explicitly selected file to automatically selected ones.
    859493if test -z "$CONFIG_SITE"; then
     
    866500for ac_site_file in $CONFIG_SITE; do
    867501  if test -r "$ac_site_file"; then
    868     { echo "$as_me:868: loading site script $ac_site_file" >&5
    869 echo "$as_me: loading site script $ac_site_file" >&6;}
    870     cat "$ac_site_file" >&5
     502    echo "loading site script $ac_site_file"
    871503    . "$ac_site_file"
    872504  fi
     
    874506
    875507if test -r "$cache_file"; then
    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
    880 echo "$as_me: loading cache $cache_file" >&6;}
    881     case $cache_file in
    882       [\\/]* | ?:[\\/]* ) . $cache_file;;
    883       *)                      . ./$cache_file;;
    884     esac
     508  echo "loading cache $cache_file"
     509  . $cache_file
     510else
     511  echo "creating cache $cache_file"
     512  > $cache_file
     513fi
     514
     515ac_ext=c
     516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     517ac_cpp='$CPP $CPPFLAGS'
     518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     520cross_compiling=$ac_cv_prog_cc_cross
     521
     522ac_exeext=
     523ac_objext=o
     524if (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=
    885531  fi
    886532else
    887   { echo "$as_me:887: creating cache $cache_file" >&5
    888 echo "$as_me: creating cache $cache_file" >&6;}
    889   >$cache_file
    890 fi
    891 
    892 # Check that the precious variables saved in the cache have kept the same
    893 # value.
    894 ac_suggest_removing_cache=false
    895 for 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
    904 echo "$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
    908 echo "$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
    914 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
    915         { echo "$as_me:915: WARNING:   former value:  $ac_old_val" >&5
    916 echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
    917         { echo "$as_me:917: WARNING:   current value: $ac_new_val" >&5
    918 echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
    919         ac_suggest_removing_cache=:
    920       fi;;
    921   esac
    922 done
    923 if $ac_suggest_removing_cache; then
    924   { echo "$as_me:924: WARNING: changes in the environment can compromise the build" >&5
    925 echo "$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
    927 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
    928 fi
    929 
    930 ac_ext=c
    931 ac_cpp='$CPP $CPPFLAGS'
    932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    935 
    936 case `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= ;;
    941 esac
    942 echo "#! $SHELL" >conftest.sh
    943 echo  "exit 0"   >>conftest.sh
    944 chmod +x conftest.sh
    945 if { (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=';'
    951 else
    952   ac_path_separator=:
    953 fi
    954 PATH_SEPARATOR="$ac_path_separator"
    955 rm -f conftest.sh
    956 
    957 ac_config_headers="$ac_config_headers config.h"
     533  ac_n= ac_c='\c' ac_t=
     534fi
     535
     536
     537
    958538
    959539PACKAGE=gsdl
    960540VERSION=2.1
    961 cat >>confdefs.h <<EOF
     541cat >> confdefs.h <<EOF
    962542#define PACKAGE "$PACKAGE"
    963543EOF
    964544
    965 cat >>confdefs.h <<EOF
     545cat >> confdefs.h <<EOF
    966546#define VERSION "$VERSION"
    967547EOF
     548
     549
     550
    968551
    969552USE_FASTCGI=0
    970553if test USE_FASTCGI = 1; then
    971 cat >>confdefs.h <<\EOF
     554cat >> confdefs.h <<\EOF
    972555#define USE_FASTCGI 1
    973556EOF
    974557
     558
    975559fi
    976560
    977561if test USE_LANGACTION = 1; then
    978 cat >>confdefs.h <<\EOF
     562cat >> confdefs.h <<\EOF
    979563#define USE_LANGACTION 1
    980564EOF
     565
    981566
    982567fi
     
    988573else
    989574  USE_CORBA=0
    990 fi;
    991 cat >>confdefs.h <<EOF
     575fi
     576
     577cat >> confdefs.h <<EOF
    992578#define USE_CORBA $USE_CORBA
    993579EOF
     580
     581
    994582
    995583# Check whether --with-micodir or --without-micodir was given.
     
    999587else
    1000588  MICO_DIR="default"
    1001 fi;
    1002 cat >>confdefs.h <<EOF
     589fi
     590
     591cat >> confdefs.h <<EOF
    1003592#define MICO_DIR "$MICO_DIR"
    1004593EOF
     594
     595
    1005596
    1006597# Check whether --enable-z3950 or --disable-z3950 was given.
     
    1010601else
    1011602  USE_Z3950=0
    1012 fi;
     603fi
     604
    1013605if test USE_Z3950 = 1; then
    1014 cat >>confdefs.h <<\EOF
     606cat >> confdefs.h <<\EOF
    1015607#define USE_Z3950 $USE_Z3950
    1016608EOF
     609
    1017610
    1018611fi
     
    1022615  withval="$with_gdbm"
    1023616  gdbmdir=$withval
    1024 fi;
     617fi
     618
    1025619
    1026620LDFLAGS=
     
    1029623fi
    1030624
    1031 ac_ext=c
    1032 ac_cpp='$CPP $CPPFLAGS'
    1033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1036 if 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.
    1038 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1039 echo "$as_me:1039: checking for $ac_word" >&5
    1040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1041 if test "${ac_cv_prog_CC+set}" = set; then
    1042   echo $ECHO_N "(cached) $ECHO_C" >&6
     625
     626# Extract the first word of "gcc", so it can be a program name with args.
     627set dummy gcc; ac_word=$2
     628echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     629echo "configure:630: checking for $ac_word" >&5
     630if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     631  echo $ac_n "(cached) $ac_c" 1>&6
    1043632else
    1044633  if test -n "$CC"; then
    1045634  ac_cv_prog_CC="$CC" # Let the user override the test.
    1046635else
    1047   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1048 ac_dummy="$PATH"
    1049 for 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
    1053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1054 echo "$as_me:1054: found $ac_dir/$ac_word" >&5
    1055 break
    1056 done
    1057 
    1058 fi
    1059 fi
    1060 CC=$ac_cv_prog_CC
     636  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     637  ac_dummy="$PATH"
     638  for ac_dir in $ac_dummy; do
     639    test -z "$ac_dir" && ac_dir=.
     640    if test -f $ac_dir/$ac_word; then
     641      ac_cv_prog_CC="gcc"
     642      break
     643    fi
     644  done
     645  IFS="$ac_save_ifs"
     646fi
     647fi
     648CC="$ac_cv_prog_CC"
    1061649if test -n "$CC"; then
    1062   echo "$as_me:1062: result: $CC" >&5
    1063 echo "${ECHO_T}$CC" >&6
    1064 else
    1065   echo "$as_me:1065: result: no" >&5
    1066 echo "${ECHO_T}no" >&6
    1067 fi
    1068 
    1069 fi
    1070 if 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.
    1073 set dummy gcc; ac_word=$2
    1074 echo "$as_me:1074: checking for $ac_word" >&5
    1075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1077   echo $ECHO_N "(cached) $ECHO_C" >&6
    1078 else
    1079   if test -n "$ac_ct_CC"; then
    1080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1081 else
    1082   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1083 ac_dummy="$PATH"
    1084 for 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
    1088 ac_cv_prog_ac_ct_CC="gcc"
    1089 echo "$as_me:1089: found $ac_dir/$ac_word" >&5
    1090 break
    1091 done
    1092 
    1093 fi
    1094 fi
    1095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1096 if test -n "$ac_ct_CC"; then
    1097   echo "$as_me:1097: result: $ac_ct_CC" >&5
    1098 echo "${ECHO_T}$ac_ct_CC" >&6
    1099 else
    1100   echo "$as_me:1100: result: no" >&5
    1101 echo "${ECHO_T}no" >&6
    1102 fi
    1103 
    1104   CC=$ac_ct_CC
    1105 else
    1106   CC="$ac_cv_prog_CC"
    1107 fi
    1108 
    1109 if 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.
    1112 set dummy ${ac_tool_prefix}cc; ac_word=$2
    1113 echo "$as_me:1113: checking for $ac_word" >&5
    1114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1115 if test "${ac_cv_prog_CC+set}" = set; then
    1116   echo $ECHO_N "(cached) $ECHO_C" >&6
    1117 else
    1118   if test -n "$CC"; then
    1119   ac_cv_prog_CC="$CC" # Let the user override the test.
    1120 else
    1121   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1122 ac_dummy="$PATH"
    1123 for 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
    1127 ac_cv_prog_CC="${ac_tool_prefix}cc"
    1128 echo "$as_me:1128: found $ac_dir/$ac_word" >&5
    1129 break
    1130 done
    1131 
    1132 fi
    1133 fi
    1134 CC=$ac_cv_prog_CC
    1135 if test -n "$CC"; then
    1136   echo "$as_me:1136: result: $CC" >&5
    1137 echo "${ECHO_T}$CC" >&6
    1138 else
    1139   echo "$as_me:1139: result: no" >&5
    1140 echo "${ECHO_T}no" >&6
    1141 fi
    1142 
    1143 fi
    1144 if 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.
    1147 set dummy cc; ac_word=$2
    1148 echo "$as_me:1148: checking for $ac_word" >&5
    1149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1151   echo $ECHO_N "(cached) $ECHO_C" >&6
    1152 else
    1153   if test -n "$ac_ct_CC"; then
    1154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1155 else
    1156   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1157 ac_dummy="$PATH"
    1158 for 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
    1162 ac_cv_prog_ac_ct_CC="cc"
    1163 echo "$as_me:1163: found $ac_dir/$ac_word" >&5
    1164 break
    1165 done
    1166 
    1167 fi
    1168 fi
    1169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1170 if test -n "$ac_ct_CC"; then
    1171   echo "$as_me:1171: result: $ac_ct_CC" >&5
    1172 echo "${ECHO_T}$ac_ct_CC" >&6
    1173 else
    1174   echo "$as_me:1174: result: no" >&5
    1175 echo "${ECHO_T}no" >&6
    1176 fi
    1177 
    1178   CC=$ac_ct_CC
    1179 else
    1180   CC="$ac_cv_prog_CC"
    1181 fi
    1182 
    1183 fi
     650  echo "$ac_t""$CC" 1>&6
     651else
     652  echo "$ac_t""no" 1>&6
     653fi
     654
    1184655if test -z "$CC"; then
    1185656  # Extract the first word of "cc", so it can be a program name with args.
    1186657set dummy cc; ac_word=$2
    1187 echo "$as_me:1187: checking for $ac_word" >&5
    1188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1189 if test "${ac_cv_prog_CC+set}" = set; then
    1190   echo $ECHO_N "(cached) $ECHO_C" >&6
     658echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     659echo "configure:660: checking for $ac_word" >&5
     660if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     661  echo $ac_n "(cached) $ac_c" 1>&6
    1191662else
    1192663  if test -n "$CC"; then
    1193664  ac_cv_prog_CC="$CC" # Let the user override the test.
    1194665else
     666  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1195667  ac_prog_rejected=no
    1196   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1197 ac_dummy="$PATH"
    1198 for 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
    1202 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    1203   ac_prog_rejected=yes
    1204   continue
    1205 fi
    1206 ac_cv_prog_CC="cc"
    1207 echo "$as_me:1207: found $ac_dir/$ac_word" >&5
    1208 break
    1209 done
    1210 
     668  ac_dummy="$PATH"
     669  for ac_dir in $ac_dummy; do
     670    test -z "$ac_dir" && ac_dir=.
     671    if test -f $ac_dir/$ac_word; then
     672      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     673        ac_prog_rejected=yes
     674    continue
     675      fi
     676      ac_cv_prog_CC="cc"
     677      break
     678    fi
     679  done
     680  IFS="$ac_save_ifs"
    1211681if test $ac_prog_rejected = yes; then
    1212682  # We found a bogon in the path, so make sure we never use it.
    1213683  set dummy $ac_cv_prog_CC
    1214684  shift
    1215   if test $# != 0; then
     685  if test $# -gt 0; then
    1216686    # We chose a different compiler from the bogus one.
    1217687    # However, it has the same basename, so the bogon will be chosen
    1218688    # first if we set CC to just the basename; use the full file name.
    1219689    shift
    1220     set dummy "$ac_dir/$ac_word" ${1+"$@"}
     690    set dummy "$ac_dir/$ac_word" "$@"
    1221691    shift
    1222692    ac_cv_prog_CC="$@"
     
    1225695fi
    1226696fi
    1227 CC=$ac_cv_prog_CC
     697CC="$ac_cv_prog_CC"
    1228698if test -n "$CC"; then
    1229   echo "$as_me:1229: result: $CC" >&5
    1230 echo "${ECHO_T}$CC" >&6
    1231 else
    1232   echo "$as_me:1232: result: no" >&5
    1233 echo "${ECHO_T}no" >&6
    1234 fi
    1235 
    1236 fi
    1237 if 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.
    1242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1243 echo "$as_me:1243: checking for $ac_word" >&5
    1244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1245 if test "${ac_cv_prog_CC+set}" = set; then
    1246   echo $ECHO_N "(cached) $ECHO_C" >&6
     699  echo "$ac_t""$CC" 1>&6
     700else
     701  echo "$ac_t""no" 1>&6
     702fi
     703
     704  if test -z "$CC"; then
     705    case "`uname -s`" in
     706    *win32* | *WIN32*)
     707      # Extract the first word of "cl", so it can be a program name with args.
     708set dummy cl; ac_word=$2
     709echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     710echo "configure:711: checking for $ac_word" >&5
     711if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     712  echo $ac_n "(cached) $ac_c" 1>&6
    1247713else
    1248714  if test -n "$CC"; then
    1249715  ac_cv_prog_CC="$CC" # Let the user override the test.
    1250716else
    1251   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1252 ac_dummy="$PATH"
    1253 for 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
    1257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1258 echo "$as_me:1258: found $ac_dir/$ac_word" >&5
    1259 break
    1260 done
    1261 
    1262 fi
    1263 fi
    1264 CC=$ac_cv_prog_CC
     717  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     718  ac_dummy="$PATH"
     719  for ac_dir in $ac_dummy; do
     720    test -z "$ac_dir" && ac_dir=.
     721    if test -f $ac_dir/$ac_word; then
     722      ac_cv_prog_CC="cl"
     723      break
     724    fi
     725  done
     726  IFS="$ac_save_ifs"
     727fi
     728fi
     729CC="$ac_cv_prog_CC"
    1265730if test -n "$CC"; then
    1266   echo "$as_me:1266: result: $CC" >&5
    1267 echo "${ECHO_T}$CC" >&6
    1268 else
    1269   echo "$as_me:1269: result: no" >&5
    1270 echo "${ECHO_T}no" >&6
    1271 fi
    1272 
    1273     test -n "$CC" && break
    1274   done
    1275 fi
    1276 if test -z "$CC"; then
    1277   ac_ct_CC=$CC
    1278   for ac_prog in cl
    1279 do
    1280   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1281 set dummy $ac_prog; ac_word=$2
    1282 echo "$as_me:1282: checking for $ac_word" >&5
    1283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1285   echo $ECHO_N "(cached) $ECHO_C" >&6
    1286 else
    1287   if test -n "$ac_ct_CC"; then
    1288   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1289 else
    1290   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1291 ac_dummy="$PATH"
    1292 for 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
    1296 ac_cv_prog_ac_ct_CC="$ac_prog"
    1297 echo "$as_me:1297: found $ac_dir/$ac_word" >&5
    1298 break
    1299 done
    1300 
    1301 fi
    1302 fi
    1303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1304 if test -n "$ac_ct_CC"; then
    1305   echo "$as_me:1305: result: $ac_ct_CC" >&5
    1306 echo "${ECHO_T}$ac_ct_CC" >&6
    1307 else
    1308   echo "$as_me:1308: result: no" >&5
    1309 echo "${ECHO_T}no" >&6
    1310 fi
    1311 
    1312   test -n "$ac_ct_CC" && break
    1313 done
    1314 
    1315   CC=$ac_ct_CC
    1316 fi
    1317 
    1318 fi
    1319 
    1320 test -z "$CC" && { { echo "$as_me:1320: error: no acceptable cc found in \$PATH" >&5
    1321 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
    1322    { (exit 1); exit 1; }; }
    1323 
    1324 cat >conftest.$ac_ext <<_ACEOF
    1325 #line 1325 "configure"
    1326 #include "confdefs.h"
    1327 
    1328 int
    1329 main ()
    1330 {
    1331 
    1332   ;
    1333   return 0;
    1334 }
    1335 _ACEOF
    1336 ac_clean_files_save=$ac_clean_files
    1337 ac_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.
    1341 echo "$as_me:1341: checking for C compiler default output" >&5
    1342 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
    1343 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1344 if { (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
    1360 done
    1361 else
    1362   echo "$as_me: failed program was:" >&5
    1363 cat conftest.$ac_ext >&5
    1364 { { echo "$as_me:1364: error: C compiler cannot create executables" >&5
    1365 echo "$as_me: error: C compiler cannot create executables" >&2;}
    1366    { (exit 77); exit 77; }; }
    1367 fi
    1368 
    1369 ac_exeext=$ac_cv_exeext
    1370 echo "$as_me:1370: result: $ac_file" >&5
    1371 echo "${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.
    1375 echo "$as_me:1375: checking whether the C compiler works" >&5
    1376 echo $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.
    1379 if 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
     731  echo "$ac_t""$CC" 1>&6
     732else
     733  echo "$ac_t""no" 1>&6
     734fi
     735 ;;
     736    esac
     737  fi
     738  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
     739fi
     740
     741echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     742echo "configure:743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     743
     744ac_ext=c
     745# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     746ac_cpp='$CPP $CPPFLAGS'
     747ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     748ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     749cross_compiling=$ac_cv_prog_cc_cross
     750
     751cat > conftest.$ac_ext << EOF
     752
     753#line 754 "configure"
     754#include "confdefs.h"
     755
     756main(){return(0);}
     757EOF
     758if { (eval echo configure:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     759  ac_cv_prog_cc_works=yes
     760  # If we can't run a trivial program, we are probably using a cross compiler.
     761  if (./conftest; exit) 2>/dev/null; then
     762    ac_cv_prog_cc_cross=no
    1387763  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.
    1392 If you meant to cross compile, use \`--host'." >&5
    1393 echo "$as_me: error: cannot run C compiled programs.
    1394 If you meant to cross compile, use \`--host'." >&2;}
    1395    { (exit 1); exit 1; }; }
    1396     fi
     764    ac_cv_prog_cc_cross=yes
    1397765  fi
    1398 fi
    1399 echo "$as_me:1399: result: yes" >&5
    1400 echo "${ECHO_T}yes" >&6
    1401 
    1402 rm -f a.out a.exe conftest$ac_cv_exeext
    1403 ac_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.
    1406 echo "$as_me:1406: checking whether we are cross compiling" >&5
    1407 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1408 echo "$as_me:1408: result: $cross_compiling" >&5
    1409 echo "${ECHO_T}$cross_compiling" >&6
    1410 
    1411 echo "$as_me:1411: checking for executable suffix" >&5
    1412 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
    1413 if { (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'.
    1422 for 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
    1430 done
    1431 else
    1432   { { echo "$as_me:1432: error: cannot compute EXEEXT: cannot compile and link" >&5
    1433 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
    1434    { (exit 1); exit 1; }; }
    1435 fi
    1436 
    1437 rm -f conftest$ac_cv_exeext
    1438 echo "$as_me:1438: result: $ac_cv_exeext" >&5
    1439 echo "${ECHO_T}$ac_cv_exeext" >&6
    1440 
    1441 rm -f conftest.$ac_ext
    1442 EXEEXT=$ac_cv_exeext
    1443 ac_exeext=$EXEEXT
    1444 echo "$as_me:1444: checking for object suffix" >&5
    1445 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
    1446 if test "${ac_cv_objext+set}" = set; then
    1447   echo $ECHO_N "(cached) $ECHO_C" >&6
    1448 else
    1449   cat >conftest.$ac_ext <<_ACEOF
    1450 #line 1450 "configure"
    1451 #include "confdefs.h"
    1452 
    1453 int
    1454 main ()
    1455 {
    1456 
    1457   ;
    1458   return 0;
    1459 }
    1460 _ACEOF
    1461 rm -f conftest.o conftest.obj
    1462 if { (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
    1473 done
    1474 else
    1475   echo "$as_me: failed program was:" >&5
    1476 cat conftest.$ac_ext >&5
    1477 { { echo "$as_me:1477: error: cannot compute OBJEXT: cannot compile" >&5
    1478 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
    1479    { (exit 1); exit 1; }; }
    1480 fi
    1481 
    1482 rm -f conftest.$ac_cv_objext conftest.$ac_ext
    1483 fi
    1484 echo "$as_me:1484: result: $ac_cv_objext" >&5
    1485 echo "${ECHO_T}$ac_cv_objext" >&6
    1486 OBJEXT=$ac_cv_objext
    1487 ac_objext=$OBJEXT
    1488 echo "$as_me:1488: checking whether we are using the GNU C compiler" >&5
    1489 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    1490 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    1491   echo $ECHO_N "(cached) $ECHO_C" >&6
    1492 else
    1493   cat >conftest.$ac_ext <<_ACEOF
    1494 #line 1494 "configure"
    1495 #include "confdefs.h"
    1496 
    1497 int
    1498 main ()
    1499 {
    1500 #ifndef __GNUC__
    1501        choke me
     766else
     767  echo "configure: failed program was:" >&5
     768  cat conftest.$ac_ext >&5
     769  ac_cv_prog_cc_works=no
     770fi
     771rm -fr conftest*
     772ac_ext=c
     773# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     774ac_cpp='$CPP $CPPFLAGS'
     775ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     776ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     777cross_compiling=$ac_cv_prog_cc_cross
     778
     779echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     780if test $ac_cv_prog_cc_works = no; then
     781  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
     782fi
     783echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     784echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     785echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
     786cross_compiling=$ac_cv_prog_cc_cross
     787
     788echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     789echo "configure:790: checking whether we are using GNU C" >&5
     790if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
     791  echo $ac_n "(cached) $ac_c" 1>&6
     792else
     793  cat > conftest.c <<EOF
     794#ifdef __GNUC__
     795  yes;
    1502796#endif
    1503 
    1504   ;
    1505   return 0;
    1506 }
    1507 _ACEOF
    1508 rm -f conftest.$ac_objext
    1509 if { (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
    1521 else
    1522   echo "$as_me: failed program was:" >&5
    1523 cat conftest.$ac_ext >&5
    1524 ac_compiler_gnu=no
    1525 fi
    1526 rm -f conftest.$ac_objext conftest.$ac_ext
    1527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    1528 
    1529 fi
    1530 echo "$as_me:1530: result: $ac_cv_c_compiler_gnu" >&5
    1531 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    1532 GCC=`test $ac_compiler_gnu = yes && echo yes`
    1533 ac_test_CFLAGS=${CFLAGS+set}
    1534 ac_save_CFLAGS=$CFLAGS
    1535 CFLAGS="-g"
    1536 echo "$as_me:1536: checking whether $CC accepts -g" >&5
    1537 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    1538 if test "${ac_cv_prog_cc_g+set}" = set; then
    1539   echo $ECHO_N "(cached) $ECHO_C" >&6
    1540 else
    1541   cat >conftest.$ac_ext <<_ACEOF
    1542 #line 1542 "configure"
    1543 #include "confdefs.h"
    1544 
    1545 int
    1546 main ()
    1547 {
    1548 
    1549   ;
    1550   return 0;
    1551 }
    1552 _ACEOF
    1553 rm -f conftest.$ac_objext
    1554 if { (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
     797EOF
     798if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     799  ac_cv_prog_gcc=yes
     800else
     801  ac_cv_prog_gcc=no
     802fi
     803fi
     804
     805echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     806
     807if test $ac_cv_prog_gcc = yes; then
     808  GCC=yes
     809else
     810  GCC=
     811fi
     812
     813ac_test_CFLAGS="${CFLAGS+set}"
     814ac_save_CFLAGS="$CFLAGS"
     815CFLAGS=
     816echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     817echo "configure:818: checking whether ${CC-cc} accepts -g" >&5
     818if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
     819  echo $ac_n "(cached) $ac_c" 1>&6
     820else
     821  echo 'void f(){}' > conftest.c
     822if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
    1565823  ac_cv_prog_cc_g=yes
    1566824else
    1567   echo "$as_me: failed program was:" >&5
    1568 cat conftest.$ac_ext >&5
    1569 ac_cv_prog_cc_g=no
    1570 fi
    1571 rm -f conftest.$ac_objext conftest.$ac_ext
    1572 fi
    1573 echo "$as_me:1573: result: $ac_cv_prog_cc_g" >&5
    1574 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     825  ac_cv_prog_cc_g=no
     826fi
     827rm -f conftest*
     828
     829fi
     830
     831echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    1575832if test "$ac_test_CFLAGS" = set; then
    1576   CFLAGS=$ac_save_CFLAGS
     833  CFLAGS="$ac_save_CFLAGS"
    1577834elif test $ac_cv_prog_cc_g = yes; then
    1578835  if test "$GCC" = yes; then
     
    1588845  fi
    1589846fi
    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.
    1594 cat >conftest.$ac_ext <<_ACEOF
    1595 #ifndef __cplusplus
    1596   choke me
    1597 #endif
    1598 _ACEOF
    1599 rm -f conftest.$ac_objext
    1600 if { (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);'
     847
     848for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    1619849do
    1620   cat >conftest.$ac_ext <<_ACEOF
    1621 #line 1621 "configure"
    1622 #include "confdefs.h"
    1623 #include <stdlib.h>
    1624 $ac_declaration
    1625 int
    1626 main ()
    1627 {
    1628 exit (42);
    1629   ;
    1630   return 0;
    1631 }
    1632 _ACEOF
    1633 rm -f conftest.$ac_objext
    1634 if { (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   :
    1646 else
    1647   echo "$as_me: failed program was:" >&5
    1648 cat conftest.$ac_ext >&5
    1649 continue
    1650 fi
    1651 rm -f conftest.$ac_objext conftest.$ac_ext
    1652   cat >conftest.$ac_ext <<_ACEOF
    1653 #line 1653 "configure"
    1654 #include "confdefs.h"
    1655 $ac_declaration
    1656 int
    1657 main ()
    1658 {
    1659 exit (42);
    1660   ;
    1661   return 0;
    1662 }
    1663 _ACEOF
    1664 rm -f conftest.$ac_objext
    1665 if { (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
    1677 else
    1678   echo "$as_me: failed program was:" >&5
    1679 cat conftest.$ac_ext >&5
    1680 fi
    1681 rm -f conftest.$ac_objext conftest.$ac_ext
    1682 done
    1683 echo '#ifdef __cplusplus' >>confdefs.h
    1684 echo $ac_declaration      >>confdefs.h
    1685 echo '#endif'             >>confdefs.h
    1686 
    1687 else
    1688   echo "$as_me: failed program was:" >&5
    1689 cat conftest.$ac_ext >&5
    1690 fi
    1691 rm -f conftest.$ac_objext conftest.$ac_ext
    1692 ac_ext=c
    1693 ac_cpp='$CPP $CPPFLAGS'
    1694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1697 
    1698 ac_ext=cc
    1699 ac_cpp='$CXXCPP $CPPFLAGS'
    1700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1703 if 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.
    1707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1708 echo "$as_me:1708: checking for $ac_word" >&5
    1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1710 if test "${ac_cv_prog_CXX+set}" = set; then
    1711   echo $ECHO_N "(cached) $ECHO_C" >&6
     850# Extract the first word of "$ac_prog", so it can be a program name with args.
     851set dummy $ac_prog; ac_word=$2
     852echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     853echo "configure:854: checking for $ac_word" >&5
     854if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
     855  echo $ac_n "(cached) $ac_c" 1>&6
    1712856else
    1713857  if test -n "$CXX"; then
    1714858  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    1715859else
    1716   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1717 ac_dummy="$PATH"
    1718 for 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
    1722 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    1723 echo "$as_me:1723: found $ac_dir/$ac_word" >&5
    1724 break
     860  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     861  ac_dummy="$PATH"
     862  for ac_dir in $ac_dummy; do
     863    test -z "$ac_dir" && ac_dir=.
     864    if test -f $ac_dir/$ac_word; then
     865      ac_cv_prog_CXX="$ac_prog"
     866      break
     867    fi
     868  done
     869  IFS="$ac_save_ifs"
     870fi
     871fi
     872CXX="$ac_cv_prog_CXX"
     873if test -n "$CXX"; then
     874  echo "$ac_t""$CXX" 1>&6
     875else
     876  echo "$ac_t""no" 1>&6
     877fi
     878
     879test -n "$CXX" && break
    1725880done
    1726 
    1727 fi
    1728 fi
    1729 CXX=$ac_cv_prog_CXX
    1730 if test -n "$CXX"; then
    1731   echo "$as_me:1731: result: $CXX" >&5
    1732 echo "${ECHO_T}$CXX" >&6
    1733 else
    1734   echo "$as_me:1734: result: no" >&5
    1735 echo "${ECHO_T}no" >&6
    1736 fi
    1737 
    1738     test -n "$CXX" && break
    1739   done
    1740 fi
    1741 if 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
    1744 do
    1745   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1746 set dummy $ac_prog; ac_word=$2
    1747 echo "$as_me:1747: checking for $ac_word" >&5
    1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1749 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    1750   echo $ECHO_N "(cached) $ECHO_C" >&6
    1751 else
    1752   if test -n "$ac_ct_CXX"; then
    1753   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    1754 else
    1755   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1756 ac_dummy="$PATH"
    1757 for 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
    1761 ac_cv_prog_ac_ct_CXX="$ac_prog"
    1762 echo "$as_me:1762: found $ac_dir/$ac_word" >&5
    1763 break
    1764 done
    1765 
    1766 fi
    1767 fi
    1768 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    1769 if test -n "$ac_ct_CXX"; then
    1770   echo "$as_me:1770: result: $ac_ct_CXX" >&5
    1771 echo "${ECHO_T}$ac_ct_CXX" >&6
    1772 else
    1773   echo "$as_me:1773: result: no" >&5
    1774 echo "${ECHO_T}no" >&6
    1775 fi
    1776 
    1777   test -n "$ac_ct_CXX" && break
    1778 done
    1779 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    1780 
    1781   CXX=$ac_ct_CXX
    1782 fi
    1783 
    1784 echo "$as_me:1784: checking whether we are using the GNU C++ compiler" >&5
    1785 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    1786 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    1787   echo $ECHO_N "(cached) $ECHO_C" >&6
    1788 else
    1789   cat >conftest.$ac_ext <<_ACEOF
    1790 #line 1790 "configure"
    1791 #include "confdefs.h"
    1792 
    1793 int
    1794 main ()
    1795 {
    1796 #ifndef __GNUC__
    1797        choke me
     881test -n "$CXX" || CXX="gcc"
     882
     883
     884echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     885echo "configure:886: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     886
     887ac_ext=C
     888# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     889ac_cpp='$CXXCPP $CPPFLAGS'
     890ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     891ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     892cross_compiling=$ac_cv_prog_cxx_cross
     893
     894cat > conftest.$ac_ext << EOF
     895
     896#line 897 "configure"
     897#include "confdefs.h"
     898
     899int main(){return(0);}
     900EOF
     901if { (eval echo configure:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     902  ac_cv_prog_cxx_works=yes
     903  # If we can't run a trivial program, we are probably using a cross compiler.
     904  if (./conftest; exit) 2>/dev/null; then
     905    ac_cv_prog_cxx_cross=no
     906  else
     907    ac_cv_prog_cxx_cross=yes
     908  fi
     909else
     910  echo "configure: failed program was:" >&5
     911  cat conftest.$ac_ext >&5
     912  ac_cv_prog_cxx_works=no
     913fi
     914rm -fr conftest*
     915ac_ext=c
     916# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     917ac_cpp='$CPP $CPPFLAGS'
     918ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     919ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     920cross_compiling=$ac_cv_prog_cc_cross
     921
     922echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
     923if test $ac_cv_prog_cxx_works = no; then
     924  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
     925fi
     926echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     927echo "configure:928: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     928echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
     929cross_compiling=$ac_cv_prog_cxx_cross
     930
     931echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
     932echo "configure:933: checking whether we are using GNU C++" >&5
     933if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
     934  echo $ac_n "(cached) $ac_c" 1>&6
     935else
     936  cat > conftest.C <<EOF
     937#ifdef __GNUC__
     938  yes;
    1798939#endif
    1799 
    1800   ;
    1801   return 0;
    1802 }
    1803 _ACEOF
    1804 rm -f conftest.$ac_objext
    1805 if { (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
    1817 else
    1818   echo "$as_me: failed program was:" >&5
    1819 cat conftest.$ac_ext >&5
    1820 ac_compiler_gnu=no
    1821 fi
    1822 rm -f conftest.$ac_objext conftest.$ac_ext
    1823 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    1824 
    1825 fi
    1826 echo "$as_me:1826: result: $ac_cv_cxx_compiler_gnu" >&5
    1827 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    1828 GXX=`test $ac_compiler_gnu = yes && echo yes`
    1829 ac_test_CXXFLAGS=${CXXFLAGS+set}
    1830 ac_save_CXXFLAGS=$CXXFLAGS
    1831 CXXFLAGS="-g"
    1832 echo "$as_me:1832: checking whether $CXX accepts -g" >&5
    1833 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    1834 if test "${ac_cv_prog_cxx_g+set}" = set; then
    1835   echo $ECHO_N "(cached) $ECHO_C" >&6
    1836 else
    1837   cat >conftest.$ac_ext <<_ACEOF
    1838 #line 1838 "configure"
    1839 #include "confdefs.h"
    1840 
    1841 int
    1842 main ()
    1843 {
    1844 
    1845   ;
    1846   return 0;
    1847 }
    1848 _ACEOF
    1849 rm -f conftest.$ac_objext
    1850 if { (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
     940EOF
     941if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     942  ac_cv_prog_gxx=yes
     943else
     944  ac_cv_prog_gxx=no
     945fi
     946fi
     947
     948echo "$ac_t""$ac_cv_prog_gxx" 1>&6
     949
     950if test $ac_cv_prog_gxx = yes; then
     951  GXX=yes
     952else
     953  GXX=
     954fi
     955
     956ac_test_CXXFLAGS="${CXXFLAGS+set}"
     957ac_save_CXXFLAGS="$CXXFLAGS"
     958CXXFLAGS=
     959echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     960echo "configure:961: checking whether ${CXX-g++} accepts -g" >&5
     961if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
     962  echo $ac_n "(cached) $ac_c" 1>&6
     963else
     964  echo 'void f(){}' > conftest.cc
     965if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
    1861966  ac_cv_prog_cxx_g=yes
    1862967else
    1863   echo "$as_me: failed program was:" >&5
    1864 cat conftest.$ac_ext >&5
    1865 ac_cv_prog_cxx_g=no
    1866 fi
    1867 rm -f conftest.$ac_objext conftest.$ac_ext
    1868 fi
    1869 echo "$as_me:1869: result: $ac_cv_prog_cxx_g" >&5
    1870 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     968  ac_cv_prog_cxx_g=no
     969fi
     970rm -f conftest*
     971
     972fi
     973
     974echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    1871975if test "$ac_test_CXXFLAGS" = set; then
    1872   CXXFLAGS=$ac_save_CXXFLAGS
     976  CXXFLAGS="$ac_save_CXXFLAGS"
    1873977elif test $ac_cv_prog_cxx_g = yes; then
    1874978  if test "$GXX" = yes; then
     
    1884988  fi
    1885989fi
    1886 for ac_declaration in \
    1887    ''\
    1888    '#include <stdlib.h>' \
    1889    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1890    'extern "C" void std::exit (int); using std::exit;' \
    1891    'extern "C" void exit (int) throw ();' \
    1892    'extern "C" void exit (int);' \
    1893    'void exit (int);'
    1894 do
    1895   cat >conftest.$ac_ext <<_ACEOF
    1896 #line 1896 "configure"
    1897 #include "confdefs.h"
    1898 #include <stdlib.h>
    1899 $ac_declaration
    1900 int
    1901 main ()
    1902 {
    1903 exit (42);
    1904   ;
    1905   return 0;
    1906 }
    1907 _ACEOF
    1908 rm -f conftest.$ac_objext
    1909 if { (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
    1920   :
    1921 else
    1922   echo "$as_me: failed program was:" >&5
    1923 cat conftest.$ac_ext >&5
    1924 continue
    1925 fi
    1926 rm -f conftest.$ac_objext conftest.$ac_ext
    1927   cat >conftest.$ac_ext <<_ACEOF
    1928 #line 1928 "configure"
    1929 #include "confdefs.h"
    1930 $ac_declaration
    1931 int
    1932 main ()
    1933 {
    1934 exit (42);
    1935   ;
    1936   return 0;
    1937 }
    1938 _ACEOF
    1939 rm -f conftest.$ac_objext
    1940 if { (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
    1951   break
    1952 else
    1953   echo "$as_me: failed program was:" >&5
    1954 cat conftest.$ac_ext >&5
    1955 fi
    1956 rm -f conftest.$ac_objext conftest.$ac_ext
    1957 done
    1958 echo '#ifdef __cplusplus' >>confdefs.h
    1959 echo $ac_declaration      >>confdefs.h
    1960 echo '#endif'             >>confdefs.h
    1961 
    1962 ac_ext=c
    1963 ac_cpp='$CPP $CPPFLAGS'
    1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1967990
    1968991for ac_prog in mawk gawk nawk awk
    1969992do
    1970   # Extract the first word of "$ac_prog", so it can be a program name with args.
     993# Extract the first word of "$ac_prog", so it can be a program name with args.
    1971994set dummy $ac_prog; ac_word=$2
    1972 echo "$as_me:1972: checking for $ac_word" >&5
    1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1974 if test "${ac_cv_prog_AWK+set}" = set; then
    1975   echo $ECHO_N "(cached) $ECHO_C" >&6
     995echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     996echo "configure:997: checking for $ac_word" >&5
     997if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
     998  echo $ac_n "(cached) $ac_c" 1>&6
    1976999else
    19771000  if test -n "$AWK"; then
    19781001  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    19791002else
    1980   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1981 ac_dummy="$PATH"
    1982 for 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
    1986 ac_cv_prog_AWK="$ac_prog"
    1987 echo "$as_me:1987: found $ac_dir/$ac_word" >&5
    1988 break
    1989 done
    1990 
    1991 fi
    1992 fi
    1993 AWK=$ac_cv_prog_AWK
     1003  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1004  ac_dummy="$PATH"
     1005  for ac_dir in $ac_dummy; do
     1006    test -z "$ac_dir" && ac_dir=.
     1007    if test -f $ac_dir/$ac_word; then
     1008      ac_cv_prog_AWK="$ac_prog"
     1009      break
     1010    fi
     1011  done
     1012  IFS="$ac_save_ifs"
     1013fi
     1014fi
     1015AWK="$ac_cv_prog_AWK"
    19941016if test -n "$AWK"; then
    1995   echo "$as_me:1995: result: $AWK" >&5
    1996 echo "${ECHO_T}$AWK" >&6
    1997 else
    1998   echo "$as_me:1998: result: no" >&5
    1999 echo "${ECHO_T}no" >&6
    2000 fi
    2001 
    2002   test -n "$AWK" && break
     1017  echo "$ac_t""$AWK" 1>&6
     1018else
     1019  echo "$ac_t""no" 1>&6
     1020fi
     1021
     1022test -n "$AWK" && break
    20031023done
    20041024
    20051025for ac_prog in 'bison -y' byacc
    20061026do
    2007   # Extract the first word of "$ac_prog", so it can be a program name with args.
     1027# Extract the first word of "$ac_prog", so it can be a program name with args.
    20081028set dummy $ac_prog; ac_word=$2
    2009 echo "$as_me:2009: checking for $ac_word" >&5
    2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2011 if test "${ac_cv_prog_YACC+set}" = set; then
    2012   echo $ECHO_N "(cached) $ECHO_C" >&6
     1029echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1030echo "configure:1031: checking for $ac_word" >&5
     1031if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
     1032  echo $ac_n "(cached) $ac_c" 1>&6
    20131033else
    20141034  if test -n "$YACC"; then
    20151035  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    20161036else
    2017   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2018 ac_dummy="$PATH"
    2019 for 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
    2023 ac_cv_prog_YACC="$ac_prog"
    2024 echo "$as_me:2024: found $ac_dir/$ac_word" >&5
    2025 break
    2026 done
    2027 
    2028 fi
    2029 fi
    2030 YACC=$ac_cv_prog_YACC
     1037  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1038  ac_dummy="$PATH"
     1039  for ac_dir in $ac_dummy; do
     1040    test -z "$ac_dir" && ac_dir=.
     1041    if test -f $ac_dir/$ac_word; then
     1042      ac_cv_prog_YACC="$ac_prog"
     1043      break
     1044    fi
     1045  done
     1046  IFS="$ac_save_ifs"
     1047fi
     1048fi
     1049YACC="$ac_cv_prog_YACC"
    20311050if test -n "$YACC"; then
    2032   echo "$as_me:2032: result: $YACC" >&5
    2033 echo "${ECHO_T}$YACC" >&6
    2034 else
    2035   echo "$as_me:2035: result: no" >&5
    2036 echo "${ECHO_T}no" >&6
    2037 fi
    2038 
    2039   test -n "$YACC" && break
     1051  echo "$ac_t""$YACC" 1>&6
     1052else
     1053  echo "$ac_t""no" 1>&6
     1054fi
     1055
     1056test -n "$YACC" && break
    20401057done
    20411058test -n "$YACC" || YACC="yacc"
     
    20511068    ac_install_sh="$ac_aux_dir/install.sh -c"
    20521069    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
    20571070  fi
    20581071done
    20591072if test -z "$ac_aux_dir"; then
    2060   { { echo "$as_me:2060: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2061 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2062    { (exit 1); exit 1; }; }
    2063 fi
    2064 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2065 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2066 ac_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
    2071 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    2072    { (exit 1); exit 1; }; }
    2073 
    2074 echo "$as_me:2074: checking build system type" >&5
    2075 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    2076 if test "${ac_cv_build+set}" = set; then
    2077   echo $ECHO_N "(cached) $ECHO_C" >&6
    2078 else
    2079   ac_cv_build_alias=$build_alias
    2080 test -z "$ac_cv_build_alias" &&
    2081   ac_cv_build_alias=`$ac_config_guess`
    2082 test -z "$ac_cv_build_alias" &&
    2083   { { echo "$as_me:2083: error: cannot guess build type; you must specify one" >&5
    2084 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    2085    { (exit 1); exit 1; }; }
    2086 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    2087   { { echo "$as_me:2087: error: $ac_config_sub $ac_cv_build_alias failed." >&5
    2088 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
    2089    { (exit 1); exit 1; }; }
    2090 
    2091 fi
    2092 echo "$as_me:2092: result: $ac_cv_build" >&5
    2093 echo "${ECHO_T}$ac_cv_build" >&6
    2094 build=$ac_cv_build
    2095 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    2096 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    2097 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    2098 
    2099 echo "$as_me:2099: checking host system type" >&5
    2100 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    2101 if test "${ac_cv_host+set}" = set; then
    2102   echo $ECHO_N "(cached) $ECHO_C" >&6
    2103 else
    2104   ac_cv_host_alias=$host_alias
    2105 test -z "$ac_cv_host_alias" &&
    2106   ac_cv_host_alias=$ac_cv_build_alias
    2107 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    2108   { { echo "$as_me:2108: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    2109 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    2110    { (exit 1); exit 1; }; }
    2111 
    2112 fi
    2113 echo "$as_me:2113: result: $ac_cv_host" >&5
    2114 echo "${ECHO_T}$ac_cv_host" >&6
    2115 host=$ac_cv_host
    2116 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    2117 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    2118 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    2119 
    2120 echo "$as_me:2120: checking target system type" >&5
    2121 echo $ECHO_N "checking target system type... $ECHO_C" >&6
    2122 if test "${ac_cv_target+set}" = set; then
    2123   echo $ECHO_N "(cached) $ECHO_C" >&6
    2124 else
    2125   ac_cv_target_alias=$target_alias
    2126 test "x$ac_cv_target_alias" = "x" &&
    2127   ac_cv_target_alias=$ac_cv_host_alias
    2128 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    2129   { { echo "$as_me:2129: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    2130 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    2131    { (exit 1); exit 1; }; }
    2132 
    2133 fi
    2134 echo "$as_me:2134: result: $ac_cv_target" >&5
    2135 echo "${ECHO_T}$ac_cv_target" >&6
    2136 target=$ac_cv_target
    2137 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    2138 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    2139 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1073  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
     1074fi
     1075ac_config_guess=$ac_aux_dir/config.guess
     1076ac_config_sub=$ac_aux_dir/config.sub
     1077ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     1078
     1079
     1080# Do some error checking and defaulting for the host and target type.
     1081# The inputs are:
     1082#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
     1083#
     1084# The rules are:
     1085# 1. You are not allowed to specify --host, --target, and nonopt at the
     1086#    same time.
     1087# 2. Host defaults to nonopt.
     1088# 3. If nonopt is not specified, then host defaults to the current host,
     1089#    as determined by config.guess.
     1090# 4. Target and build default to nonopt.
     1091# 5. If nonopt is not specified, then target and build default to host.
    21401092
    21411093# The aliases save the names the user supplied, while $host etc.
    21421094# will get canonicalized.
    2143 test -n "$target_alias" &&
     1095case $host---$target---$nonopt in
     1096NONE---*---* | *---NONE---* | *---*---NONE) ;;
     1097*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
     1098esac
     1099
     1100
     1101# Make sure we can run config.sub.
     1102if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
     1103else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
     1104fi
     1105
     1106echo $ac_n "checking host system type""... $ac_c" 1>&6
     1107echo "configure:1108: checking host system type" >&5
     1108
     1109host_alias=$host
     1110case "$host_alias" in
     1111NONE)
     1112  case $nonopt in
     1113  NONE)
     1114    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
     1115    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
     1116    fi ;;
     1117  *) host_alias=$nonopt ;;
     1118  esac ;;
     1119esac
     1120
     1121host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
     1122host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1123host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1124host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1125echo "$ac_t""$host" 1>&6
     1126
     1127echo $ac_n "checking target system type""... $ac_c" 1>&6
     1128echo "configure:1129: checking target system type" >&5
     1129
     1130target_alias=$target
     1131case "$target_alias" in
     1132NONE)
     1133  case $nonopt in
     1134  NONE) target_alias=$host_alias ;;
     1135  *) target_alias=$nonopt ;;
     1136  esac ;;
     1137esac
     1138
     1139target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
     1140target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1141target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1142target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1143echo "$ac_t""$target" 1>&6
     1144
     1145echo $ac_n "checking build system type""... $ac_c" 1>&6
     1146echo "configure:1147: checking build system type" >&5
     1147
     1148build_alias=$build
     1149case "$build_alias" in
     1150NONE)
     1151  case $nonopt in
     1152  NONE) build_alias=$host_alias ;;
     1153  *) build_alias=$nonopt ;;
     1154  esac ;;
     1155esac
     1156
     1157build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
     1158build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1159build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1160build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1161echo "$ac_t""$build" 1>&6
     1162
     1163test "$host_alias" != "$target_alias" &&
    21441164  test "$program_prefix$program_suffix$program_transform_name" = \
    21451165    NONENONEs,x,x, &&
    21461166  program_prefix=${target_alias}-
     1167
    21471168# Find a good install program.  We prefer a C program (faster),
    21481169# so one script is as good as another.  But avoid the broken or
     
    21521173# IRIX /sbin/install
    21531174# AIX /bin/install
    2154 # AmigaOS /C/install, which installs bootblocks on floppy discs
    21551175# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    21561176# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    21571177# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    21581178# ./install, which can be erroneously created by make from ./install.sh.
    2159 echo "$as_me:2159: checking for a BSD compatible install" >&5
    2160 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
     1179echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
     1180echo "configure:1181: checking for a BSD compatible install" >&5
    21611181if test -z "$INSTALL"; then
    2162 if test "${ac_cv_path_install+set}" = set; then
    2163   echo $ECHO_N "(cached) $ECHO_C" >&6
    2164 else
    2165     ac_save_IFS=$IFS; IFS=$ac_path_separator
     1182if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     1183  echo $ac_n "(cached) $ac_c" 1>&6
     1184else
     1185    IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
    21661186  for ac_dir in $PATH; do
    2167     IFS=$ac_save_IFS
    21681187    # Account for people who put trailing slashes in PATH elements.
    2169     case $ac_dir/ in
    2170     / | ./ | .// | /cC/* \
    2171     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    2172     | /usr/ucb/* ) ;;
     1188    case "$ac_dir/" in
     1189    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    21731190    *)
    21741191      # OSF1 and SCO ODT 3.0 have their own names for install.
     
    21761193      # by default.
    21771194      for ac_prog in ginstall scoinst install; do
    2178         if $as_executable_p "$ac_dir/$ac_prog"; then
     1195        if test -f $ac_dir/$ac_prog; then
    21791196      if test $ac_prog = install &&
    2180             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
     1197            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    21811198        # 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.
    21861199        :
    21871200      else
     
    21941207    esac
    21951208  done
     1209  IFS="$ac_save_IFS"
    21961210
    21971211fi
    21981212  if test "${ac_cv_path_install+set}" = set; then
    2199     INSTALL=$ac_cv_path_install
     1213    INSTALL="$ac_cv_path_install"
    22001214  else
    22011215    # As a last resort, use the slow shell script.  We don't cache a
     
    22031217    # break other packages using the cache if that directory is
    22041218    # removed, or if the path is relative.
    2205     INSTALL=$ac_install_sh
     1219    INSTALL="$ac_install_sh"
    22061220  fi
    22071221fi
    2208 echo "$as_me:2208: result: $INSTALL" >&5
    2209 echo "${ECHO_T}$INSTALL" >&6
     1222echo "$ac_t""$INSTALL" 1>&6
    22101223
    22111224# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    22131226test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    22141227
    2215 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     1228test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    22161229
    22171230test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    22181231
    2219 echo "$as_me:2219: checking whether ln -s works" >&5
    2220 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    2221 LN_S=$as_ln_s
    2222 if test "$LN_S" = "ln -s"; then
    2223   echo "$as_me:2223: result: yes" >&5
    2224 echo "${ECHO_T}yes" >&6
    2225 else
    2226   echo "$as_me:2226: result: no, using $LN_S" >&5
    2227 echo "${ECHO_T}no, using $LN_S" >&6
    2228 fi
    2229 
    2230 echo "$as_me:2230: checking whether ${MAKE-make} sets \${MAKE}" >&5
    2231 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
    2232 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    2233 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2234   echo $ECHO_N "(cached) $ECHO_C" >&6
    2235 else
    2236   cat >conftest.make <<\EOF
     1232echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
     1233echo "configure:1234: checking whether ln -s works" >&5
     1234if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
     1235  echo $ac_n "(cached) $ac_c" 1>&6
     1236else
     1237  rm -f conftestdata
     1238if ln -s X conftestdata 2>/dev/null
     1239then
     1240  rm -f conftestdata
     1241  ac_cv_prog_LN_S="ln -s"
     1242else
     1243  ac_cv_prog_LN_S=ln
     1244fi
     1245fi
     1246LN_S="$ac_cv_prog_LN_S"
     1247if test "$ac_cv_prog_LN_S" = "ln -s"; then
     1248  echo "$ac_t""yes" 1>&6
     1249else
     1250  echo "$ac_t""no" 1>&6
     1251fi
     1252
     1253echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
     1254echo "configure:1255: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1255set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
     1256if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     1257  echo $ac_n "(cached) $ac_c" 1>&6
     1258else
     1259  cat > conftestmake <<\EOF
    22371260all:
    22381261    @echo 'ac_maketemp="${MAKE}"'
    22391262EOF
    22401263# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2241 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     1264eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
    22421265if test -n "$ac_maketemp"; then
    22431266  eval ac_cv_prog_make_${ac_make}_set=yes
     
    22451268  eval ac_cv_prog_make_${ac_make}_set=no
    22461269fi
    2247 rm -f conftest.make
     1270rm -f conftestmake
    22481271fi
    22491272if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2250   echo "$as_me:2250: result: yes" >&5
    2251 echo "${ECHO_T}yes" >&6
     1273  echo "$ac_t""yes" 1>&6
    22521274  SET_MAKE=
    22531275else
    2254   echo "$as_me:2254: result: no" >&5
    2255 echo "${ECHO_T}no" >&6
     1276  echo "$ac_t""no" 1>&6
    22561277  SET_MAKE="MAKE=${MAKE-make}"
    22571278fi
    22581279
    2259 if 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.
    2261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2262 echo "$as_me:2262: checking for $ac_word" >&5
    2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2264 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2265   echo $ECHO_N "(cached) $ECHO_C" >&6
     1280# Extract the first word of "ranlib", so it can be a program name with args.
     1281set dummy ranlib; ac_word=$2
     1282echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1283echo "configure:1284: checking for $ac_word" >&5
     1284if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
     1285  echo $ac_n "(cached) $ac_c" 1>&6
    22661286else
    22671287  if test -n "$RANLIB"; then
    22681288  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    22691289else
    2270   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2271 ac_dummy="$PATH"
    2272 for 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
    2276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2277 echo "$as_me:2277: found $ac_dir/$ac_word" >&5
    2278 break
    2279 done
    2280 
    2281 fi
    2282 fi
    2283 RANLIB=$ac_cv_prog_RANLIB
     1290  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1291  ac_dummy="$PATH"
     1292  for ac_dir in $ac_dummy; do
     1293    test -z "$ac_dir" && ac_dir=.
     1294    if test -f $ac_dir/$ac_word; then
     1295      ac_cv_prog_RANLIB="ranlib"
     1296      break
     1297    fi
     1298  done
     1299  IFS="$ac_save_ifs"
     1300  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
     1301fi
     1302fi
     1303RANLIB="$ac_cv_prog_RANLIB"
    22841304if test -n "$RANLIB"; then
    2285   echo "$as_me:2285: result: $RANLIB" >&5
    2286 echo "${ECHO_T}$RANLIB" >&6
    2287 else
    2288   echo "$as_me:2288: result: no" >&5
    2289 echo "${ECHO_T}no" >&6
    2290 fi
    2291 
    2292 fi
    2293 if 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.
    2296 set dummy ranlib; ac_word=$2
    2297 echo "$as_me:2297: checking for $ac_word" >&5
    2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2299 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    2300   echo $ECHO_N "(cached) $ECHO_C" >&6
    2301 else
    2302   if test -n "$ac_ct_RANLIB"; then
    2303   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    2304 else
    2305   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2306 ac_dummy="$PATH"
    2307 for 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
    2311 ac_cv_prog_ac_ct_RANLIB="ranlib"
    2312 echo "$as_me:2312: found $ac_dir/$ac_word" >&5
    2313 break
    2314 done
    2315 
    2316   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
    2317 fi
    2318 fi
    2319 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    2320 if test -n "$ac_ct_RANLIB"; then
    2321   echo "$as_me:2321: result: $ac_ct_RANLIB" >&5
    2322 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    2323 else
    2324   echo "$as_me:2324: result: no" >&5
    2325 echo "${ECHO_T}no" >&6
    2326 fi
    2327 
    2328   RANLIB=$ac_ct_RANLIB
    2329 else
    2330   RANLIB="$ac_cv_prog_RANLIB"
    2331 fi
     1305  echo "$ac_t""$RANLIB" 1>&6
     1306else
     1307  echo "$ac_t""no" 1>&6
     1308fi
     1309
    23321310
    23331311#moved CORBA MICO directory test to get version of MICO
     
    23541332#do test of MICO_VER
    23551333if test MICO_VER != 0; then
    2356 cat >>confdefs.h <<\EOF
     1334cat >> confdefs.h <<\EOF
    23571335#define MICO_VER 1
    23581336EOF
    23591337
     1338
    23601339fi
    23611340#end USE_CORBA test
    23621341fi
    23631342
    2364 ac_ext=c
    2365 ac_cpp='$CPP $CPPFLAGS'
    2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2369 echo "$as_me:2369: checking how to run the C preprocessor" >&5
    2370 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     1343echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
     1344echo "configure:1345: checking how to run the C preprocessor" >&5
    23711345# On Suns, sometimes $CPP names a directory.
    23721346if test -n "$CPP" && test -d "$CPP"; then
     
    23741348fi
    23751349if test -z "$CPP"; then
    2376   if test "${ac_cv_prog_CPP+set}" = set; then
    2377   echo $ECHO_N "(cached) $ECHO_C" >&6
    2378 else
    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
    2384 for ac_c_preproc_warn_flag in '' yes
    2385 do
    2386   # Use a header file that comes with gcc, so configuring glibc
    2387   # with a fresh cross-compiler works.
     1350if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
     1351  echo $ac_n "(cached) $ac_c" 1>&6
     1352else
     1353    # This must be in double quotes, not single quotes, because CPP may get
     1354  # substituted into the Makefile and "${CC-cc}" will confuse make.
     1355  CPP="${CC-cc} -E"
    23881356  # On the NeXT, cc -E runs the code through the compiler's parser,
    2389   # not just through cpp. "Syntax error" is here to catch this case.
    2390   cat >conftest.$ac_ext <<_ACEOF
    2391 #line 2391 "configure"
     1357  # not just through cpp.
     1358  cat > conftest.$ac_ext <<EOF
     1359#line 1360 "configure"
    23921360#include "confdefs.h"
    23931361#include <assert.h>
    2394                      Syntax error
    2395 _ACEOF
    2396 if { (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
    2409 else
    2410   ac_cpp_err=yes
    2411 fi
    2412 if test -z "$ac_cpp_err"; then
     1362Syntax Error
     1363EOF
     1364ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1365{ (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1366ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1367if test -z "$ac_err"; then
    24131368  :
    24141369else
    2415   echo "$as_me: failed program was:" >&5
    2416   cat conftest.$ac_ext >&5
    2417   # Broken: fails on valid input.
    2418 continue
    2419 fi
    2420 rm -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
    2429 if { (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
    2442 else
    2443   ac_cpp_err=yes
    2444 fi
    2445 if test -z "$ac_cpp_err"; then
    2446   # Broken: success on invalid input.
    2447 continue
    2448 else
    2449   echo "$as_me: failed program was:" >&5
    2450   cat conftest.$ac_ext >&5
    2451   # Passes both tests.
    2452 ac_preproc_ok=:
    2453 break
    2454 fi
    2455 rm -f conftest.err conftest.$ac_ext
    2456 
    2457 done
    2458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2459 rm -f conftest.err conftest.$ac_ext
    2460 if $ac_preproc_ok; then
    2461   break 2
    2462 fi
    2463 
    2464     done
    2465     ac_cv_prog_CPP=$CPP
    2466 
    2467 fi
    2468   CPP=$ac_cv_prog_CPP
    2469 else
    2470   ac_cv_prog_CPP=$CPP
    2471 fi
    2472 echo "$as_me:2472: result: $CPP" >&5
    2473 echo "${ECHO_T}$CPP" >&6
    2474 ac_preproc_ok=false
    2475 for ac_c_preproc_warn_flag in '' yes
    2476 do
    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"
     1370  echo "$ac_err" >&5
     1371  echo "configure: failed program was:" >&5
     1372  cat conftest.$ac_ext >&5
     1373  rm -rf conftest*
     1374  CPP="${CC-cc} -E -traditional-cpp"
     1375  cat > conftest.$ac_ext <<EOF
     1376#line 1377 "configure"
    24831377#include "confdefs.h"
    24841378#include <assert.h>
    2485                      Syntax error
    2486 _ACEOF
    2487 if { (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
    2500 else
    2501   ac_cpp_err=yes
    2502 fi
    2503 if test -z "$ac_cpp_err"; then
     1379Syntax Error
     1380EOF
     1381ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1382{ (eval echo configure:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1383ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1384if test -z "$ac_err"; then
    25041385  :
    25051386else
    2506   echo "$as_me: failed program was:" >&5
    2507   cat conftest.$ac_ext >&5
    2508   # Broken: fails on valid input.
    2509 continue
    2510 fi
    2511 rm -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
    2520 if { (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
    2533 else
    2534   ac_cpp_err=yes
    2535 fi
    2536 if test -z "$ac_cpp_err"; then
    2537   # Broken: success on invalid input.
    2538 continue
    2539 else
    2540   echo "$as_me: failed program was:" >&5
    2541   cat conftest.$ac_ext >&5
    2542   # Passes both tests.
    2543 ac_preproc_ok=:
    2544 break
    2545 fi
    2546 rm -f conftest.err conftest.$ac_ext
    2547 
    2548 done
    2549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2550 rm -f conftest.err conftest.$ac_ext
    2551 if $ac_preproc_ok; then
     1387  echo "$ac_err" >&5
     1388  echo "configure: failed program was:" >&5
     1389  cat conftest.$ac_ext >&5
     1390  rm -rf conftest*
     1391  CPP="${CC-cc} -nologo -E"
     1392  cat > conftest.$ac_ext <<EOF
     1393#line 1394 "configure"
     1394#include "confdefs.h"
     1395#include <assert.h>
     1396Syntax Error
     1397EOF
     1398ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1399{ (eval echo configure:1400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1400ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1401if test -z "$ac_err"; then
    25521402  :
    25531403else
    2554   { { echo "$as_me:2554: error: C preprocessor \"$CPP\" fails sanity check" >&5
    2555 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
    2556    { (exit 1); exit 1; }; }
    2557 fi
    2558 
    2559 ac_ext=c
    2560 ac_cpp='$CPP $CPPFLAGS'
    2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2564 
    2565 echo "$as_me:2565: checking for AIX" >&5
    2566 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    2567 cat >conftest.$ac_ext <<_ACEOF
    2568 #line 2568 "configure"
     1404  echo "$ac_err" >&5
     1405  echo "configure: failed program was:" >&5
     1406  cat conftest.$ac_ext >&5
     1407  rm -rf conftest*
     1408  CPP=/lib/cpp
     1409fi
     1410rm -f conftest*
     1411fi
     1412rm -f conftest*
     1413fi
     1414rm -f conftest*
     1415  ac_cv_prog_CPP="$CPP"
     1416fi
     1417  CPP="$ac_cv_prog_CPP"
     1418else
     1419  ac_cv_prog_CPP="$CPP"
     1420fi
     1421echo "$ac_t""$CPP" 1>&6
     1422
     1423echo $ac_n "checking for AIX""... $ac_c" 1>&6
     1424echo "configure:1425: checking for AIX" >&5
     1425cat > conftest.$ac_ext <<EOF
     1426#line 1427 "configure"
    25691427#include "confdefs.h"
    25701428#ifdef _AIX
     
    25721430#endif
    25731431
    2574 _ACEOF
     1432EOF
    25751433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    25761434  egrep "yes" >/dev/null 2>&1; then
    2577   echo "$as_me:2577: result: yes" >&5
    2578 echo "${ECHO_T}yes" >&6
    2579 cat >>confdefs.h <<\EOF
     1435  rm -rf conftest*
     1436  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
    25801437#define _ALL_SOURCE 1
    25811438EOF
    25821439
    25831440else
    2584   echo "$as_me:2584: result: no" >&5
    2585 echo "${ECHO_T}no" >&6
    2586 fi
    2587 rm -f conftest*
    2588 
    2589 echo "$as_me:2589: checking for POSIXized ISC" >&5
    2590 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
     1441  rm -rf conftest*
     1442  echo "$ac_t""no" 1>&6
     1443fi
     1444rm -f conftest*
     1445
     1446
     1447echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
     1448echo "configure:1449: checking for POSIXized ISC" >&5
    25911449if test -d /etc/conf/kconfig.d &&
    2592    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     1450  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    25931451then
    2594   echo "$as_me:2594: result: yes" >&5
    2595 echo "${ECHO_T}yes" >&6
     1452  echo "$ac_t""yes" 1>&6
    25961453  ISC=yes # If later tests want to check for ISC.
    2597 
    2598 cat >>confdefs.h <<\EOF
     1454  cat >> confdefs.h <<\EOF
    25991455#define _POSIX_SOURCE 1
    26001456EOF
     
    26061462  fi
    26071463else
    2608   echo "$as_me:2608: result: no" >&5
    2609 echo "${ECHO_T}no" >&6
     1464  echo "$ac_t""no" 1>&6
    26101465  ISC=
    26111466fi
    26121467
    2613 echo "$as_me:2613: checking for minix/config.h" >&5
    2614 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    2615 if test "${ac_cv_header_minix_config_h+set}" = set; then
    2616   echo $ECHO_N "(cached) $ECHO_C" >&6
    2617 else
    2618   cat >conftest.$ac_ext <<_ACEOF
    2619 #line 2619 "configure"
     1468ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
     1469echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
     1470echo "configure:1471: checking for minix/config.h" >&5
     1471if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     1472  echo $ac_n "(cached) $ac_c" 1>&6
     1473else
     1474  cat > conftest.$ac_ext <<EOF
     1475#line 1476 "configure"
    26201476#include "confdefs.h"
    26211477#include <minix/config.h>
    2622 _ACEOF
    2623 if { (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
    2636 else
    2637   ac_cpp_err=yes
    2638 fi
    2639 if test -z "$ac_cpp_err"; then
    2640   ac_cv_header_minix_config_h=yes
    2641 else
    2642   echo "$as_me: failed program was:" >&5
    2643   cat conftest.$ac_ext >&5
    2644   ac_cv_header_minix_config_h=no
    2645 fi
    2646 rm -f conftest.err conftest.$ac_ext
    2647 fi
    2648 echo "$as_me:2648: result: $ac_cv_header_minix_config_h" >&5
    2649 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    2650 if test $ac_cv_header_minix_config_h = yes; then
     1478EOF
     1479ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1480{ (eval echo configure:1481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1481ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1482if test -z "$ac_err"; then
     1483  rm -rf conftest*
     1484  eval "ac_cv_header_$ac_safe=yes"
     1485else
     1486  echo "$ac_err" >&5
     1487  echo "configure: failed program was:" >&5
     1488  cat conftest.$ac_ext >&5
     1489  rm -rf conftest*
     1490  eval "ac_cv_header_$ac_safe=no"
     1491fi
     1492rm -f conftest*
     1493fi
     1494if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     1495  echo "$ac_t""yes" 1>&6
    26511496  MINIX=yes
    26521497else
    2653   MINIX=
     1498  echo "$ac_t""no" 1>&6
     1499MINIX=
    26541500fi
    26551501
    26561502if test "$MINIX" = yes; then
    2657 
    2658 cat >>confdefs.h <<\EOF
     1503  cat >> confdefs.h <<\EOF
    26591504#define _POSIX_SOURCE 1
    26601505EOF
    26611506
    2662 cat >>confdefs.h <<\EOF
     1507  cat >> confdefs.h <<\EOF
    26631508#define _POSIX_1_SOURCE 2
    26641509EOF
    26651510
    2666 cat >>confdefs.h <<\EOF
     1511  cat >> confdefs.h <<\EOF
    26671512#define _MINIX 1
    26681513EOF
     
    26701515fi
    26711516
    2672 echo "$as_me:2672: checking for ${CC-cc} option to accept ANSI C" >&5
    2673 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    2674 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2675   echo $ECHO_N "(cached) $ECHO_C" >&6
     1517echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
     1518echo "configure:1519: checking for ${CC-cc} option to accept ANSI C" >&5
     1519if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
     1520  echo $ac_n "(cached) $ac_c" 1>&6
    26761521else
    26771522  ac_cv_prog_cc_stdc=no
     
    26861531do
    26871532  CFLAGS="$ac_save_CFLAGS $ac_arg"
    2688   cat >conftest.$ac_ext <<_ACEOF
    2689 #line 2689 "configure"
     1533  cat > conftest.$ac_ext <<EOF
     1534#line 1535 "configure"
    26901535#include "confdefs.h"
    26911536#if !defined(__STDC__) || __STDC__ != 1
    26921537choke me
    2693 #endif
    2694 
    2695 int
    2696 main ()
    2697 {
     1538#endif 
     1539
     1540int main() {
    26981541int test (int i, double x);
    26991542struct s1 {int (*f) (int a);};
    27001543struct s2 {int (*f) (double a);};
    2701   ;
    2702   return 0;
    2703 }
    2704 _ACEOF
    2705 rm -f conftest.$ac_objext
    2706 if { (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
     1544; return 0; }
     1545EOF
     1546if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1547  rm -rf conftest*
    27171548  ac_cv_prog_cc_stdc="$ac_arg"; break
    27181549else
    2719   echo "$as_me: failed program was:" >&5
    2720 cat conftest.$ac_ext >&5
    2721 fi
    2722 rm -f conftest.$ac_objext conftest.$ac_ext
     1550  echo "configure: failed program was:" >&5
     1551  cat conftest.$ac_ext >&5
     1552fi
     1553rm -f conftest*
    27231554done
    27241555CFLAGS="$ac_save_CFLAGS"
     
    27261557fi
    27271558
    2728 echo "$as_me:2728: result: $ac_cv_prog_cc_stdc" >&5
    2729 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     1559echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
    27301560case "x$ac_cv_prog_cc_stdc" in
    27311561  x|xno) ;;
     
    27331563esac
    27341564
    2735 echo "$as_me:2735: checking for function prototypes" >&5
    2736 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     1565
     1566echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
     1567echo "configure:1568: checking for function prototypes" >&5
    27371568if test "$ac_cv_prog_cc_stdc" != no; then
    2738   echo "$as_me:2738: result: yes" >&5
    2739 echo "${ECHO_T}yes" >&6
    2740   cat >>confdefs.h <<\EOF
     1569  echo "$ac_t""yes" 1>&6
     1570  cat >> confdefs.h <<\EOF
    27411571#define PROTOTYPES 1
    27421572EOF
     
    27441574  U= ANSI2KNR=
    27451575else
    2746   echo "$as_me:2746: result: no" >&5
    2747 echo "${ECHO_T}no" >&6
     1576  echo "$ac_t""no" 1>&6
    27481577  U=_ ANSI2KNR=ansi2knr
    27491578fi
    27501579
    2751 echo "$as_me:2751: checking for $CC option to accept ANSI C" >&5
    2752 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2753 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2754   echo $ECHO_N "(cached) $ECHO_C" >&6
    2755 else
    2756   ac_cv_prog_cc_stdc=no
    2757 ac_save_CC=$CC
    2758 cat >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.  */
    2766 struct buf { int x; };
    2767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
    2768 static char *e (p, i)
    2769      char **p;
    2770      int i;
    2771 {
    2772   return p[i];
     1580echo $ac_n "checking for working const""... $ac_c" 1>&6
     1581echo "configure:1582: checking for working const" >&5
     1582if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
     1583  echo $ac_n "(cached) $ac_c" 1>&6
     1584else
     1585  cat > conftest.$ac_ext <<EOF
     1586#line 1587 "configure"
     1587#include "confdefs.h"
     1588
     1589int main() {
     1590
     1591/* Ultrix mips cc rejects this.  */
     1592typedef int charset[2]; const charset x;
     1593/* SunOS 4.1.1 cc rejects this.  */
     1594char const *const *ccp;
     1595char **p;
     1596/* NEC SVR4.0.2 mips cc rejects this.  */
     1597struct point {int x, y;};
     1598static struct point const zero = {0,0};
     1599/* AIX XL C 1.02.0.0 rejects this.
     1600   It does not let you subtract one const X* pointer from another in an arm
     1601   of an if-expression whose if-part is not a constant expression */
     1602const char *g = "string";
     1603ccp = &g + (g ? g-g : 0);
     1604/* HPUX 7.0 cc rejects these. */
     1605++ccp;
     1606p = (char**) ccp;
     1607ccp = (char const *const *) p;
     1608{ /* SCO 3.2v4 cc rejects this.  */
     1609  char *t;
     1610  char const *s = 0 ? (char *) 0 : (char const *) 0;
     1611
     1612  *t++ = 0;
    27731613}
    2774 static 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;
     1614{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     1615  int x[] = {25, 17};
     1616  const int *foo = &x[0];
     1617  ++foo;
    27821618}
    2783 int test (int i, double x);
    2784 struct s1 {int (*f) (int a);};
    2785 struct s2 {int (*f) (double a);};
    2786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    2787 int argc;
    2788 char **argv;
    2789 int
    2790 main ()
    2791 {
    2792 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    2793   ;
    2794   return 0;
     1619{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     1620  typedef const int *iptr;
     1621  iptr p = 0;
     1622  ++p;
    27951623}
    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__
    2804 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    2805 do
    2806   CC="$ac_save_CC $ac_arg"
    2807   rm -f conftest.$ac_objext
    2808 if { (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
    2820 break
    2821 else
    2822   echo "$as_me: failed program was:" >&5
    2823 cat conftest.$ac_ext >&5
    2824 fi
    2825 rm -f conftest.$ac_objext
    2826 done
    2827 rm -f conftest.$ac_ext conftest.$ac_objext
    2828 CC=$ac_save_CC
    2829 
    2830 fi
    2831 
    2832 case "x$ac_cv_prog_cc_stdc" in
    2833   x|xno)
    2834     echo "$as_me:2834: result: none needed" >&5
    2835 echo "${ECHO_T}none needed" >&6 ;;
    2836   *)
    2837     echo "$as_me:2837: result: $ac_cv_prog_cc_stdc" >&5
    2838 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2839     CC="$CC $ac_cv_prog_cc_stdc" ;;
    2840 esac
    2841 
    2842 echo "$as_me:2842: checking for an ANSI C-conforming const" >&5
    2843 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    2844 if test "${ac_cv_c_const+set}" = set; then
    2845   echo $ECHO_N "(cached) $ECHO_C" >&6
    2846 else
    2847   cat >conftest.$ac_ext <<_ACEOF
    2848 #line 2848 "configure"
    2849 #include "confdefs.h"
    2850 
    2851 int
    2852 main ()
    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;
     1624{ /* AIX XL C 1.02.0.0 rejects this saying
     1625     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     1626  struct s { int j; const int *ap[3]; };
     1627  struct s *b; b->j = 5;
    29031628}
    2904 _ACEOF
    2905 rm -f conftest.$ac_objext
    2906 if { (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
     1629{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     1630  const int foo = 10;
     1631}
     1632
     1633; return 0; }
     1634EOF
     1635if { (eval echo configure:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1636  rm -rf conftest*
    29171637  ac_cv_c_const=yes
    29181638else
    2919   echo "$as_me: failed program was:" >&5
    2920 cat conftest.$ac_ext >&5
    2921 ac_cv_c_const=no
    2922 fi
    2923 rm -f conftest.$ac_objext conftest.$ac_ext
    2924 fi
    2925 echo "$as_me:2925: result: $ac_cv_c_const" >&5
    2926 echo "${ECHO_T}$ac_cv_c_const" >&6
     1639  echo "configure: failed program was:" >&5
     1640  cat conftest.$ac_ext >&5
     1641  rm -rf conftest*
     1642  ac_cv_c_const=no
     1643fi
     1644rm -f conftest*
     1645fi
     1646
     1647echo "$ac_t""$ac_cv_c_const" 1>&6
    29271648if test $ac_cv_c_const = no; then
    2928 
    2929 cat >>confdefs.h <<\EOF
    2930 #define const
    2931 EOF
    2932 
    2933 fi
    2934 
    2935 echo "$as_me:2935: checking for ANSI C header files" >&5
    2936 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    2937 if test "${ac_cv_header_stdc+set}" = set; then
    2938   echo $ECHO_N "(cached) $ECHO_C" >&6
    2939 else
    2940   cat >conftest.$ac_ext <<_ACEOF
    2941 #line 2941 "configure"
     1649  cat >> confdefs.h <<\EOF
     1650#define const
     1651EOF
     1652
     1653fi
     1654
     1655echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     1656echo "configure:1657: checking for ANSI C header files" >&5
     1657if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     1658  echo $ac_n "(cached) $ac_c" 1>&6
     1659else
     1660  cat > conftest.$ac_ext <<EOF
     1661#line 1662 "configure"
    29421662#include "confdefs.h"
    29431663#include <stdlib.h>
     
    29451665#include <string.h>
    29461666#include <float.h>
    2947 
    2948 _ACEOF
    2949 if { (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
    2962 else
    2963   ac_cpp_err=yes
    2964 fi
    2965 if test -z "$ac_cpp_err"; then
     1667EOF
     1668ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1669{ (eval echo configure:1670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1670ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1671if test -z "$ac_err"; then
     1672  rm -rf conftest*
    29661673  ac_cv_header_stdc=yes
    29671674else
    2968   echo "$as_me: failed program was:" >&5
    2969   cat conftest.$ac_ext >&5
     1675  echo "$ac_err" >&5
     1676  echo "configure: failed program was:" >&5
     1677  cat conftest.$ac_ext >&5
     1678  rm -rf conftest*
    29701679  ac_cv_header_stdc=no
    29711680fi
    2972 rm -f conftest.err conftest.$ac_ext
     1681rm -f conftest*
    29731682
    29741683if test $ac_cv_header_stdc = yes; then
    29751684  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2976   cat >conftest.$ac_ext <<_ACEOF
    2977 #line 2977 "configure"
     1685cat > conftest.$ac_ext <<EOF
     1686#line 1687 "configure"
    29781687#include "confdefs.h"
    29791688#include <string.h>
    2980 
    2981 _ACEOF
     1689EOF
    29821690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    29831691  egrep "memchr" >/dev/null 2>&1; then
    29841692  :
    29851693else
     1694  rm -rf conftest*
    29861695  ac_cv_header_stdc=no
    29871696fi
     
    29921701if test $ac_cv_header_stdc = yes; then
    29931702  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2994   cat >conftest.$ac_ext <<_ACEOF
    2995 #line 2995 "configure"
     1703cat > conftest.$ac_ext <<EOF
     1704#line 1705 "configure"
    29961705#include "confdefs.h"
    29971706#include <stdlib.h>
    2998 
    2999 _ACEOF
     1707EOF
    30001708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    30011709  egrep "free" >/dev/null 2>&1; then
    30021710  :
    30031711else
     1712  rm -rf conftest*
    30041713  ac_cv_header_stdc=no
    30051714fi
     
    30101719if test $ac_cv_header_stdc = yes; then
    30111720  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3012   if test "$cross_compiling" = yes; then
     1721if test "$cross_compiling" = yes; then
    30131722  :
    30141723else
    3015   cat >conftest.$ac_ext <<_ACEOF
    3016 #line 3016 "configure"
     1724  cat > conftest.$ac_ext <<EOF
     1725#line 1726 "configure"
    30171726#include "confdefs.h"
    30181727#include <ctype.h>
    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))
     1728#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     1729#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     1730#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     1731int main () { int i; for (i = 0; i < 256; i++)
     1732if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     1733exit (0); }
     1734
     1735EOF
     1736if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1737then
     1738  :
     1739else
     1740  echo "configure: failed program was:" >&5
     1741  cat conftest.$ac_ext >&5
     1742  rm -fr conftest*
     1743  ac_cv_header_stdc=no
     1744fi
     1745rm -fr conftest*
     1746fi
     1747
     1748fi
     1749fi
     1750
     1751echo "$ac_t""$ac_cv_header_stdc" 1>&6
     1752if test $ac_cv_header_stdc = yes; then
     1753  cat >> confdefs.h <<\EOF
     1754#define STDC_HEADERS 1
     1755EOF
     1756
     1757fi
     1758
     1759echo $ac_n "checking for off_t""... $ac_c" 1>&6
     1760echo "configure:1761: checking for off_t" >&5
     1761if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
     1762  echo $ac_n "(cached) $ac_c" 1>&6
     1763else
     1764  cat > conftest.$ac_ext <<EOF
     1765#line 1766 "configure"
     1766#include "confdefs.h"
     1767#include <sys/types.h>
     1768#if STDC_HEADERS
     1769#include <stdlib.h>
     1770#include <stddef.h>
    30271771#endif
    3028 
    3029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    3030 int
    3031 main ()
    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
    3041 rm -f conftest$ac_exeext
    3042 if { (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
    3052   :
    3053 else
    3054   echo "$as_me: program exited with status $ac_status" >&5
    3055 echo "$as_me: failed program was:" >&5
    3056 cat conftest.$ac_ext >&5
    3057 ac_cv_header_stdc=no
    3058 fi
    3059 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3060 fi
    3061 fi
    3062 fi
    3063 echo "$as_me:3063: result: $ac_cv_header_stdc" >&5
    3064 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    3065 if test $ac_cv_header_stdc = yes; then
    3066 
    3067 cat >>confdefs.h <<\EOF
    3068 #define STDC_HEADERS 1
    3069 EOF
    3070 
    3071 fi
    3072 
    3073 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
    3074 do
    3075 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    3076 echo "$as_me:3076: checking for $ac_header" >&5
    3077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3078 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    3079   echo $ECHO_N "(cached) $ECHO_C" >&6
    3080 else
    3081   cat >conftest.$ac_ext <<_ACEOF
    3082 #line 3082 "configure"
    3083 #include "confdefs.h"
    3084 #include <$ac_header>
    3085 _ACEOF
    3086 if { (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
    3099 else
    3100   ac_cpp_err=yes
    3101 fi
    3102 if test -z "$ac_cpp_err"; then
    3103   eval "$ac_ac_Header=yes"
    3104 else
    3105   echo "$as_me: failed program was:" >&5
    3106   cat conftest.$ac_ext >&5
    3107   eval "$ac_ac_Header=no"
    3108 fi
    3109 rm -f conftest.err conftest.$ac_ext
    3110 fi
    3111 echo "$as_me:3111: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3112 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3113 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3114   cat >>confdefs.h <<EOF
    3115 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    3116 EOF
    3117 
    3118 fi
    3119 done
    3120 
    3121 echo "$as_me:3121: checking for off_t" >&5
    3122 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    3123 if test "${ac_cv_type_off_t+set}" = set; then
    3124   echo $ECHO_N "(cached) $ECHO_C" >&6
    3125 else
    3126   cat >conftest.$ac_ext <<_ACEOF
    3127 #line 3127 "configure"
    3128 #include "confdefs.h"
    3129 $ac_includes_default
    3130 int
    3131 main ()
    3132 {
    3133 if ((off_t *) 0)
    3134   return 0;
    3135 if (sizeof (off_t))
    3136   return 0;
    3137   ;
    3138   return 0;
    3139 }
    3140 _ACEOF
    3141 rm -f conftest.$ac_objext
    3142 if { (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
     1772EOF
     1773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1774  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1775  rm -rf conftest*
    31531776  ac_cv_type_off_t=yes
    31541777else
    3155   echo "$as_me: failed program was:" >&5
    3156 cat conftest.$ac_ext >&5
    3157 ac_cv_type_off_t=no
    3158 fi
    3159 rm -f conftest.$ac_objext conftest.$ac_ext
    3160 fi
    3161 echo "$as_me:3161: result: $ac_cv_type_off_t" >&5
    3162 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    3163 if test $ac_cv_type_off_t = yes; then
    3164   :
    3165 else
    3166 
    3167 cat >>confdefs.h <<EOF
     1778  rm -rf conftest*
     1779  ac_cv_type_off_t=no
     1780fi
     1781rm -f conftest*
     1782
     1783fi
     1784echo "$ac_t""$ac_cv_type_off_t" 1>&6
     1785if test $ac_cv_type_off_t = no; then
     1786  cat >> confdefs.h <<\EOF
    31681787#define off_t long
    31691788EOF
     
    31711790fi
    31721791
    3173 echo "$as_me:3173: checking for size_t" >&5
    3174 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    3175 if test "${ac_cv_type_size_t+set}" = set; then
    3176   echo $ECHO_N "(cached) $ECHO_C" >&6
    3177 else
    3178   cat >conftest.$ac_ext <<_ACEOF
    3179 #line 3179 "configure"
    3180 #include "confdefs.h"
    3181 $ac_includes_default
    3182 int
    3183 main ()
    3184 {
    3185 if ((size_t *) 0)
    3186   return 0;
    3187 if (sizeof (size_t))
    3188   return 0;
    3189   ;
    3190   return 0;
    3191 }
    3192 _ACEOF
    3193 rm -f conftest.$ac_objext
    3194 if { (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
     1792echo $ac_n "checking for size_t""... $ac_c" 1>&6
     1793echo "configure:1794: checking for size_t" >&5
     1794if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
     1795  echo $ac_n "(cached) $ac_c" 1>&6
     1796else
     1797  cat > conftest.$ac_ext <<EOF
     1798#line 1799 "configure"
     1799#include "confdefs.h"
     1800#include <sys/types.h>
     1801#if STDC_HEADERS
     1802#include <stdlib.h>
     1803#include <stddef.h>
     1804#endif
     1805EOF
     1806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1807  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1808  rm -rf conftest*
    32051809  ac_cv_type_size_t=yes
    32061810else
    3207   echo "$as_me: failed program was:" >&5
    3208 cat conftest.$ac_ext >&5
    3209 ac_cv_type_size_t=no
    3210 fi
    3211 rm -f conftest.$ac_objext conftest.$ac_ext
    3212 fi
    3213 echo "$as_me:3213: result: $ac_cv_type_size_t" >&5
    3214 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    3215 if test $ac_cv_type_size_t = yes; then
    3216   :
    3217 else
    3218 
    3219 cat >>confdefs.h <<EOF
     1811  rm -rf conftest*
     1812  ac_cv_type_size_t=no
     1813fi
     1814rm -f conftest*
     1815
     1816fi
     1817echo "$ac_t""$ac_cv_type_size_t" 1>&6
     1818if test $ac_cv_type_size_t = no; then
     1819  cat >> confdefs.h <<\EOF
    32201820#define size_t unsigned
    32211821EOF
     
    32231823fi
    32241824
    3225 echo "$as_me:3225: checking whether time.h and sys/time.h may both be included" >&5
    3226 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    3227 if test "${ac_cv_header_time+set}" = set; then
    3228   echo $ECHO_N "(cached) $ECHO_C" >&6
    3229 else
    3230   cat >conftest.$ac_ext <<_ACEOF
    3231 #line 3231 "configure"
     1825echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
     1826echo "configure:1827: checking whether time.h and sys/time.h may both be included" >&5
     1827if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
     1828  echo $ac_n "(cached) $ac_c" 1>&6
     1829else
     1830  cat > conftest.$ac_ext <<EOF
     1831#line 1832 "configure"
    32321832#include "confdefs.h"
    32331833#include <sys/types.h>
    32341834#include <sys/time.h>
    32351835#include <time.h>
    3236 
    3237 int
    3238 main ()
    3239 {
     1836int main() {
    32401837struct tm *tp;
    3241   ;
    3242   return 0;
    3243 }
    3244 _ACEOF
    3245 rm -f conftest.$ac_objext
    3246 if { (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
     1838; return 0; }
     1839EOF
     1840if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1841  rm -rf conftest*
    32571842  ac_cv_header_time=yes
    32581843else
    3259   echo "$as_me: failed program was:" >&5
    3260 cat conftest.$ac_ext >&5
    3261 ac_cv_header_time=no
    3262 fi
    3263 rm -f conftest.$ac_objext conftest.$ac_ext
    3264 fi
    3265 echo "$as_me:3265: result: $ac_cv_header_time" >&5
    3266 echo "${ECHO_T}$ac_cv_header_time" >&6
     1844  echo "configure: failed program was:" >&5
     1845  cat conftest.$ac_ext >&5
     1846  rm -rf conftest*
     1847  ac_cv_header_time=no
     1848fi
     1849rm -f conftest*
     1850fi
     1851
     1852echo "$ac_t""$ac_cv_header_time" 1>&6
    32671853if test $ac_cv_header_time = yes; then
    3268 
    3269 cat >>confdefs.h <<\EOF
     1854  cat >> confdefs.h <<\EOF
    32701855#define TIME_WITH_SYS_TIME 1
    32711856EOF
     
    32731858fi
    32741859
    3275 echo "$as_me:3275: checking whether struct tm is in sys/time.h or time.h" >&5
    3276 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    3277 if test "${ac_cv_struct_tm+set}" = set; then
    3278   echo $ECHO_N "(cached) $ECHO_C" >&6
    3279 else
    3280   cat >conftest.$ac_ext <<_ACEOF
    3281 #line 3281 "configure"
     1860echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
     1861echo "configure:1862: checking whether struct tm is in sys/time.h or time.h" >&5
     1862if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
     1863  echo $ac_n "(cached) $ac_c" 1>&6
     1864else
     1865  cat > conftest.$ac_ext <<EOF
     1866#line 1867 "configure"
    32821867#include "confdefs.h"
    32831868#include <sys/types.h>
    32841869#include <time.h>
    3285 
    3286 int
    3287 main ()
    3288 {
     1870int main() {
    32891871struct tm *tp; tp->tm_sec;
    3290   ;
    3291   return 0;
    3292 }
    3293 _ACEOF
    3294 rm -f conftest.$ac_objext
    3295 if { (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
     1872; return 0; }
     1873EOF
     1874if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1875  rm -rf conftest*
    33061876  ac_cv_struct_tm=time.h
    33071877else
    3308   echo "$as_me: failed program was:" >&5
    3309 cat conftest.$ac_ext >&5
    3310 ac_cv_struct_tm=sys/time.h
    3311 fi
    3312 rm -f conftest.$ac_objext conftest.$ac_ext
    3313 fi
    3314 echo "$as_me:3314: result: $ac_cv_struct_tm" >&5
    3315 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     1878  echo "configure: failed program was:" >&5
     1879  cat conftest.$ac_ext >&5
     1880  rm -rf conftest*
     1881  ac_cv_struct_tm=sys/time.h
     1882fi
     1883rm -f conftest*
     1884fi
     1885
     1886echo "$ac_t""$ac_cv_struct_tm" 1>&6
    33161887if test $ac_cv_struct_tm = sys/time.h; then
    3317 
    3318 cat >>confdefs.h <<\EOF
     1888  cat >> confdefs.h <<\EOF
    33191889#define TM_IN_SYS_TIME 1
    33201890EOF
     
    33221892fi
    33231893
     1894
    33241895if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    3325 cat >conftest.$ac_ext <<_ACEOF
    3326 #line 3326 "configure"
     1896cat > conftest.$ac_ext <<EOF
     1897#line 1898 "configure"
    33271898#include "confdefs.h"
    33281899#include <stdio.h>
    33291900
    3330 int
    3331 main ()
    3332 {
    3333  FILE *rubbish = popen("yes", "r");
    3334   ;
    3335   return 0;
    3336 }
    3337 _ACEOF
    3338 rm -f conftest.$ac_objext
    3339 if { (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
     1901int main() {
     1902 FILE *rubbish = popen("yes", "r");
     1903; return 0; }
     1904EOF
     1905if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    33501906  :
    33511907else
    3352   echo "$as_me: failed program was:" >&5
    3353 cat conftest.$ac_ext >&5
    3354 CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    3355 fi
    3356 rm -f conftest.$ac_objext conftest.$ac_ext
    3357 fi
    3358 
    3359 echo "$as_me:3359: checking for main in -lg" >&5
    3360 echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
    3361 if test "${ac_cv_lib_g_main+set}" = set; then
    3362   echo $ECHO_N "(cached) $ECHO_C" >&6
    3363 else
    3364   ac_check_lib_save_LIBS=$LIBS
     1908  echo "configure: failed program was:" >&5
     1909  cat conftest.$ac_ext >&5
     1910  rm -rf conftest*
     1911  CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     1912fi
     1913rm -f conftest*
     1914fi
     1915
     1916
     1917echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
     1918echo "configure:1919: checking for main in -lg" >&5
     1919ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
     1920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1921  echo $ac_n "(cached) $ac_c" 1>&6
     1922else
     1923  ac_save_LIBS="$LIBS"
    33651924LIBS="-lg  $LIBS"
    3366 cat >conftest.$ac_ext <<_ACEOF
    3367 #line 3367 "configure"
    3368 #include "confdefs.h"
    3369 
    3370 int
    3371 main ()
    3372 {
    3373 main ();
    3374   ;
    3375   return 0;
    3376 }
    3377 _ACEOF
    3378 rm -f conftest.$ac_objext conftest$ac_exeext
    3379 if { (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
    3391 else
    3392   echo "$as_me: failed program was:" >&5
    3393 cat conftest.$ac_ext >&5
    3394 ac_cv_lib_g_main=no
    3395 fi
    3396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3397 LIBS=$ac_check_lib_save_LIBS
    3398 fi
    3399 echo "$as_me:3399: result: $ac_cv_lib_g_main" >&5
    3400 echo "${ECHO_T}$ac_cv_lib_g_main" >&6
    3401 if test $ac_cv_lib_g_main = yes; then
    3402   cat >>confdefs.h <<EOF
    3403 #define HAVE_LIBG 1
     1925cat > conftest.$ac_ext <<EOF
     1926#line 1927 "configure"
     1927#include "confdefs.h"
     1928
     1929int main() {
     1930main()
     1931; return 0; }
     1932EOF
     1933if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1934  rm -rf conftest*
     1935  eval "ac_cv_lib_$ac_lib_var=yes"
     1936else
     1937  echo "configure: failed program was:" >&5
     1938  cat conftest.$ac_ext >&5
     1939  rm -rf conftest*
     1940  eval "ac_cv_lib_$ac_lib_var=no"
     1941fi
     1942rm -f conftest*
     1943LIBS="$ac_save_LIBS"
     1944
     1945fi
     1946if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1947  echo "$ac_t""yes" 1>&6
     1948    ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1949    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1950  cat >> confdefs.h <<EOF
     1951#define $ac_tr_lib 1
    34041952EOF
    34051953
    34061954  LIBS="-lg $LIBS"
    34071955
    3408 fi
    3409 
    3410 echo "$as_me:3410: checking for main in -lgdbm" >&5
    3411 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
    3412 if test "${ac_cv_lib_gdbm_main+set}" = set; then
    3413   echo $ECHO_N "(cached) $ECHO_C" >&6
    3414 else
    3415   ac_check_lib_save_LIBS=$LIBS
     1956else
     1957  echo "$ac_t""no" 1>&6
     1958fi
     1959
     1960echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
     1961echo "configure:1962: checking for main in -lgdbm" >&5
     1962ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
     1963if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1964  echo $ac_n "(cached) $ac_c" 1>&6
     1965else
     1966  ac_save_LIBS="$LIBS"
    34161967LIBS="-lgdbm  $LIBS"
    3417 cat >conftest.$ac_ext <<_ACEOF
    3418 #line 3418 "configure"
    3419 #include "confdefs.h"
    3420 
    3421 int
    3422 main ()
    3423 {
    3424 main ();
    3425   ;
    3426   return 0;
    3427 }
    3428 _ACEOF
    3429 rm -f conftest.$ac_objext conftest$ac_exeext
    3430 if { (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
    3442 else
    3443   echo "$as_me: failed program was:" >&5
    3444 cat conftest.$ac_ext >&5
    3445 ac_cv_lib_gdbm_main=no
    3446 fi
    3447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3448 LIBS=$ac_check_lib_save_LIBS
    3449 fi
    3450 echo "$as_me:3450: result: $ac_cv_lib_gdbm_main" >&5
    3451 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
    3452 if test $ac_cv_lib_gdbm_main = yes; then
    3453   cat >>confdefs.h <<EOF
    3454 #define HAVE_LIBGDBM 1
     1968cat > conftest.$ac_ext <<EOF
     1969#line 1970 "configure"
     1970#include "confdefs.h"
     1971
     1972int main() {
     1973main()
     1974; return 0; }
     1975EOF
     1976if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1977  rm -rf conftest*
     1978  eval "ac_cv_lib_$ac_lib_var=yes"
     1979else
     1980  echo "configure: failed program was:" >&5
     1981  cat conftest.$ac_ext >&5
     1982  rm -rf conftest*
     1983  eval "ac_cv_lib_$ac_lib_var=no"
     1984fi
     1985rm -f conftest*
     1986LIBS="$ac_save_LIBS"
     1987
     1988fi
     1989if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1990  echo "$ac_t""yes" 1>&6
     1991    ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1992    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1993  cat >> confdefs.h <<EOF
     1994#define $ac_tr_lib 1
    34551995EOF
    34561996
    34571997  LIBS="-lgdbm $LIBS"
    34581998
    3459 fi
    3460 
    3461 echo "$as_me:3461: checking for main in -lm" >&5
    3462 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    3463 if test "${ac_cv_lib_m_main+set}" = set; then
    3464   echo $ECHO_N "(cached) $ECHO_C" >&6
    3465 else
    3466   ac_check_lib_save_LIBS=$LIBS
     1999else
     2000  echo "$ac_t""no" 1>&6
     2001fi
     2002
     2003echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
     2004echo "configure:2005: checking for main in -lm" >&5
     2005ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
     2006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     2007  echo $ac_n "(cached) $ac_c" 1>&6
     2008else
     2009  ac_save_LIBS="$LIBS"
    34672010LIBS="-lm  $LIBS"
    3468 cat >conftest.$ac_ext <<_ACEOF
    3469 #line 3469 "configure"
    3470 #include "confdefs.h"
    3471 
    3472 int
    3473 main ()
    3474 {
    3475 main ();
    3476   ;
    3477   return 0;
    3478 }
    3479 _ACEOF
    3480 rm -f conftest.$ac_objext conftest$ac_exeext
    3481 if { (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
    3493 else
    3494   echo "$as_me: failed program was:" >&5
    3495 cat conftest.$ac_ext >&5
    3496 ac_cv_lib_m_main=no
    3497 fi
    3498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3499 LIBS=$ac_check_lib_save_LIBS
    3500 fi
    3501 echo "$as_me:3501: result: $ac_cv_lib_m_main" >&5
    3502 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    3503 if test $ac_cv_lib_m_main = yes; then
    3504   cat >>confdefs.h <<EOF
    3505 #define HAVE_LIBM 1
     2011cat > conftest.$ac_ext <<EOF
     2012#line 2013 "configure"
     2013#include "confdefs.h"
     2014
     2015int main() {
     2016main()
     2017; return 0; }
     2018EOF
     2019if { (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"
     2022else
     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"
     2027fi
     2028rm -f conftest*
     2029LIBS="$ac_save_LIBS"
     2030
     2031fi
     2032if 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 m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     2035    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     2036  cat >> confdefs.h <<EOF
     2037#define $ac_tr_lib 1
    35062038EOF
    35072039
    35082040  LIBS="-lm $LIBS"
    35092041
    3510 fi
    3511 
    3512 echo "$as_me:3512: checking for main in -lstdc++" >&5
    3513 echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
    3514 if test "${ac_cv_lib_stdcpp_main+set}" = set; then
    3515   echo $ECHO_N "(cached) $ECHO_C" >&6
    3516 else
    3517   ac_check_lib_save_LIBS=$LIBS
     2042else
     2043  echo "$ac_t""no" 1>&6
     2044fi
     2045
     2046echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
     2047echo "configure:2048: checking for main in -lstdc++" >&5
     2048ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
     2049if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     2050  echo $ac_n "(cached) $ac_c" 1>&6
     2051else
     2052  ac_save_LIBS="$LIBS"
    35182053LIBS="-lstdc++  $LIBS"
    3519 cat >conftest.$ac_ext <<_ACEOF
    3520 #line 3520 "configure"
    3521 #include "confdefs.h"
    3522 
    3523 int
    3524 main ()
    3525 {
    3526 main ();
    3527   ;
    3528   return 0;
    3529 }
    3530 _ACEOF
    3531 rm -f conftest.$ac_objext conftest$ac_exeext
    3532 if { (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
    3544 else
    3545   echo "$as_me: failed program was:" >&5
    3546 cat conftest.$ac_ext >&5
    3547 ac_cv_lib_stdcpp_main=no
    3548 fi
    3549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3550 LIBS=$ac_check_lib_save_LIBS
    3551 fi
    3552 echo "$as_me:3552: result: $ac_cv_lib_stdcpp_main" >&5
    3553 echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
    3554 if test $ac_cv_lib_stdcpp_main = yes; then
    3555   cat >>confdefs.h <<EOF
    3556 #define HAVE_LIBSTDC__ 1
     2054cat > conftest.$ac_ext <<EOF
     2055#line 2056 "configure"
     2056#include "confdefs.h"
     2057
     2058int main() {
     2059main()
     2060; return 0; }
     2061EOF
     2062if { (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"
     2065else
     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"
     2070fi
     2071rm -f conftest*
     2072LIBS="$ac_save_LIBS"
     2073
     2074fi
     2075if 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 stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     2078    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     2079  cat >> confdefs.h <<EOF
     2080#define $ac_tr_lib 1
    35572081EOF
    35582082
    35592083  LIBS="-lstdc++ $LIBS"
    35602084
    3561 fi
    3562 
    3563 echo "$as_me:3563: checking for main in -lcrypt" >&5
    3564 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
    3565 if test "${ac_cv_lib_crypt_main+set}" = set; then
    3566   echo $ECHO_N "(cached) $ECHO_C" >&6
    3567 else
    3568   ac_check_lib_save_LIBS=$LIBS
     2085else
     2086  echo "$ac_t""no" 1>&6
     2087fi
     2088
     2089echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
     2090echo "configure:2091: checking for main in -lcrypt" >&5
     2091ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
     2092if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     2093  echo $ac_n "(cached) $ac_c" 1>&6
     2094else
     2095  ac_save_LIBS="$LIBS"
    35692096LIBS="-lcrypt  $LIBS"
    3570 cat >conftest.$ac_ext <<_ACEOF
    3571 #line 3571 "configure"
    3572 #include "confdefs.h"
    3573 
    3574 int
    3575 main ()
    3576 {
    3577 main ();
    3578   ;
    3579   return 0;
    3580 }
    3581 _ACEOF
    3582 rm -f conftest.$ac_objext conftest$ac_exeext
    3583 if { (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
    3595 else
    3596   echo "$as_me: failed program was:" >&5
    3597 cat conftest.$ac_ext >&5
    3598 ac_cv_lib_crypt_main=no
    3599 fi
    3600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3601 LIBS=$ac_check_lib_save_LIBS
    3602 fi
    3603 echo "$as_me:3603: result: $ac_cv_lib_crypt_main" >&5
    3604 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
    3605 if test $ac_cv_lib_crypt_main = yes; then
    3606   cat >>confdefs.h <<EOF
    3607 #define HAVE_LIBCRYPT 1
     2097cat > conftest.$ac_ext <<EOF
     2098#line 2099 "configure"
     2099#include "confdefs.h"
     2100
     2101int main() {
     2102main()
     2103; return 0; }
     2104EOF
     2105if { (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"
     2108else
     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"
     2113fi
     2114rm -f conftest*
     2115LIBS="$ac_save_LIBS"
     2116
     2117fi
     2118if 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 crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     2121    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     2122  cat >> confdefs.h <<EOF
     2123#define $ac_tr_lib 1
    36082124EOF
    36092125
    36102126  LIBS="-lcrypt $LIBS"
    36112127
    3612 fi
     2128else
     2129  echo "$ac_t""no" 1>&6
     2130fi
     2131
     2132
    36132133
    36142134ac_header_dirent=no
    3615 for 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`
    3617 echo "$as_me:3617: checking for $ac_hdr that defines DIR" >&5
    3618 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    3619 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    3620   echo $ECHO_N "(cached) $ECHO_C" >&6
    3621 else
    3622   cat >conftest.$ac_ext <<_ACEOF
    3623 #line 3623 "configure"
     2135for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
     2136do
     2137ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     2138echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
     2139echo "configure:2140: checking for $ac_hdr that defines DIR" >&5
     2140if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
     2141  echo $ac_n "(cached) $ac_c" 1>&6
     2142else
     2143  cat > conftest.$ac_ext <<EOF
     2144#line 2145 "configure"
    36242145#include "confdefs.h"
    36252146#include <sys/types.h>
    36262147#include <$ac_hdr>
    3627 
    3628 int
    3629 main ()
    3630 {
     2148int main() {
    36312149DIR *dirp = 0;
    3632   ;
    3633   return 0;
    3634 }
    3635 _ACEOF
    3636 rm -f conftest.$ac_objext
    3637 if { (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"
    3649 else
    3650   echo "$as_me: failed program was:" >&5
    3651 cat conftest.$ac_ext >&5
    3652 eval "$ac_ac_Header=no"
    3653 fi
    3654 rm -f conftest.$ac_objext conftest.$ac_ext
    3655 fi
    3656 echo "$as_me:3656: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3657 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3658 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3659   cat >>confdefs.h <<EOF
    3660 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
    3661 EOF
    3662 
    3663 ac_header_dirent=$ac_hdr; break
    3664 fi
    3665 
     2150; return 0; }
     2151EOF
     2152if { (eval echo configure:2153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2153  rm -rf conftest*
     2154  eval "ac_cv_header_dirent_$ac_safe=yes"
     2155else
     2156  echo "configure: failed program was:" >&5
     2157  cat conftest.$ac_ext >&5
     2158  rm -rf conftest*
     2159  eval "ac_cv_header_dirent_$ac_safe=no"
     2160fi
     2161rm -f conftest*
     2162fi
     2163if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
     2164  echo "$ac_t""yes" 1>&6
     2165    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     2166  cat >> confdefs.h <<EOF
     2167#define $ac_tr_hdr 1
     2168EOF
     2169 ac_header_dirent=$ac_hdr; break
     2170else
     2171  echo "$ac_t""no" 1>&6
     2172fi
    36662173done
    36672174# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    36682175if test $ac_header_dirent = dirent.h; then
    3669   echo "$as_me:3669: checking for opendir in -ldir" >&5
    3670 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
    3671 if test "${ac_cv_lib_dir_opendir+set}" = set; then
    3672   echo $ECHO_N "(cached) $ECHO_C" >&6
    3673 else
    3674   ac_check_lib_save_LIBS=$LIBS
     2176echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
     2177echo "configure:2178: checking for opendir in -ldir" >&5
     2178ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
     2179if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     2180  echo $ac_n "(cached) $ac_c" 1>&6
     2181else
     2182  ac_save_LIBS="$LIBS"
    36752183LIBS="-ldir  $LIBS"
    3676 cat >conftest.$ac_ext <<_ACEOF
    3677 #line 3677 "configure"
    3678 #include "confdefs.h"
    3679 
     2184cat > conftest.$ac_ext <<EOF
     2185#line 2186 "configure"
     2186#include "confdefs.h"
    36802187/* Override any gcc2 internal prototype to avoid an error.  */
    3681 #ifdef __cplusplus
    3682 extern "C"
    3683 #endif
    36842188/* We use char because int might match the return type of a gcc2
    3685    builtin and then its argument prototype would still apply.  */
    3686 char opendir ();
    3687 int
    3688 main ()
    3689 {
    3690 opendir ();
    3691   ;
    3692   return 0;
    3693 }
    3694 _ACEOF
    3695 rm -f conftest.$ac_objext conftest$ac_exeext
    3696 if { (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
    3708 else
    3709   echo "$as_me: failed program was:" >&5
    3710 cat conftest.$ac_ext >&5
    3711 ac_cv_lib_dir_opendir=no
    3712 fi
    3713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3714 LIBS=$ac_check_lib_save_LIBS
    3715 fi
    3716 echo "$as_me:3716: result: $ac_cv_lib_dir_opendir" >&5
    3717 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
    3718 if test $ac_cv_lib_dir_opendir = yes; then
     2189    builtin and then its argument prototype would still apply.  */
     2190char opendir();
     2191
     2192int main() {
     2193opendir()
     2194; return 0; }
     2195EOF
     2196if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2197  rm -rf conftest*
     2198  eval "ac_cv_lib_$ac_lib_var=yes"
     2199else
     2200  echo "configure: failed program was:" >&5
     2201  cat conftest.$ac_ext >&5
     2202  rm -rf conftest*
     2203  eval "ac_cv_lib_$ac_lib_var=no"
     2204fi
     2205rm -f conftest*
     2206LIBS="$ac_save_LIBS"
     2207
     2208fi
     2209if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     2210  echo "$ac_t""yes" 1>&6
    37192211  LIBS="$LIBS -ldir"
    3720 fi
    3721 
    3722 else
    3723   echo "$as_me:3723: checking for opendir in -lx" >&5
    3724 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
    3725 if test "${ac_cv_lib_x_opendir+set}" = set; then
    3726   echo $ECHO_N "(cached) $ECHO_C" >&6
    3727 else
    3728   ac_check_lib_save_LIBS=$LIBS
     2212else
     2213  echo "$ac_t""no" 1>&6
     2214fi
     2215
     2216else
     2217echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
     2218echo "configure:2219: checking for opendir in -lx" >&5
     2219ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
     2220if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     2221  echo $ac_n "(cached) $ac_c" 1>&6
     2222else
     2223  ac_save_LIBS="$LIBS"
    37292224LIBS="-lx  $LIBS"
    3730 cat >conftest.$ac_ext <<_ACEOF
    3731 #line 3731 "configure"
    3732 #include "confdefs.h"
    3733 
     2225cat > conftest.$ac_ext <<EOF
     2226#line 2227 "configure"
     2227#include "confdefs.h"
    37342228/* Override any gcc2 internal prototype to avoid an error.  */
    3735 #ifdef __cplusplus
    3736 extern "C"
    3737 #endif
    37382229/* We use char because int might match the return type of a gcc2
    3739    builtin and then its argument prototype would still apply.  */
    3740 char opendir ();
    3741 int
    3742 main ()
    3743 {
    3744 opendir ();
    3745   ;
    3746   return 0;
    3747 }
    3748 _ACEOF
    3749 rm -f conftest.$ac_objext conftest$ac_exeext
    3750 if { (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
    3762 else
    3763   echo "$as_me: failed program was:" >&5
    3764 cat conftest.$ac_ext >&5
    3765 ac_cv_lib_x_opendir=no
    3766 fi
    3767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3768 LIBS=$ac_check_lib_save_LIBS
    3769 fi
    3770 echo "$as_me:3770: result: $ac_cv_lib_x_opendir" >&5
    3771 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
    3772 if test $ac_cv_lib_x_opendir = yes; then
     2230    builtin and then its argument prototype would still apply.  */
     2231char opendir();
     2232
     2233int main() {
     2234opendir()
     2235; return 0; }
     2236EOF
     2237if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2238  rm -rf conftest*
     2239  eval "ac_cv_lib_$ac_lib_var=yes"
     2240else
     2241  echo "configure: failed program was:" >&5
     2242  cat conftest.$ac_ext >&5
     2243  rm -rf conftest*
     2244  eval "ac_cv_lib_$ac_lib_var=no"
     2245fi
     2246rm -f conftest*
     2247LIBS="$ac_save_LIBS"
     2248
     2249fi
     2250if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     2251  echo "$ac_t""yes" 1>&6
    37732252  LIBS="$LIBS -lx"
    3774 fi
    3775 
    3776 fi
    3777 
    3778 echo "$as_me:3778: checking for ANSI C header files" >&5
    3779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3780 if test "${ac_cv_header_stdc+set}" = set; then
    3781   echo $ECHO_N "(cached) $ECHO_C" >&6
    3782 else
    3783   cat >conftest.$ac_ext <<_ACEOF
    3784 #line 3784 "configure"
     2253else
     2254  echo "$ac_t""no" 1>&6
     2255fi
     2256
     2257fi
     2258
     2259echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     2260echo "configure:2261: checking for ANSI C header files" >&5
     2261if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     2262  echo $ac_n "(cached) $ac_c" 1>&6
     2263else
     2264  cat > conftest.$ac_ext <<EOF
     2265#line 2266 "configure"
    37852266#include "confdefs.h"
    37862267#include <stdlib.h>
     
    37882269#include <string.h>
    37892270#include <float.h>
    3790 
    3791 _ACEOF
    3792 if { (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
    3805 else
    3806   ac_cpp_err=yes
    3807 fi
    3808 if test -z "$ac_cpp_err"; then
     2271EOF
     2272ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2273{ (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2274ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2275if test -z "$ac_err"; then
     2276  rm -rf conftest*
    38092277  ac_cv_header_stdc=yes
    38102278else
    3811   echo "$as_me: failed program was:" >&5
    3812   cat conftest.$ac_ext >&5
     2279  echo "$ac_err" >&5
     2280  echo "configure: failed program was:" >&5
     2281  cat conftest.$ac_ext >&5
     2282  rm -rf conftest*
    38132283  ac_cv_header_stdc=no
    38142284fi
    3815 rm -f conftest.err conftest.$ac_ext
     2285rm -f conftest*
    38162286
    38172287if test $ac_cv_header_stdc = yes; then
    38182288  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3819   cat >conftest.$ac_ext <<_ACEOF
    3820 #line 3820 "configure"
     2289cat > conftest.$ac_ext <<EOF
     2290#line 2291 "configure"
    38212291#include "confdefs.h"
    38222292#include <string.h>
    3823 
    3824 _ACEOF
     2293EOF
    38252294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    38262295  egrep "memchr" >/dev/null 2>&1; then
    38272296  :
    38282297else
     2298  rm -rf conftest*
    38292299  ac_cv_header_stdc=no
    38302300fi
     
    38352305if test $ac_cv_header_stdc = yes; then
    38362306  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3837   cat >conftest.$ac_ext <<_ACEOF
    3838 #line 3838 "configure"
     2307cat > conftest.$ac_ext <<EOF
     2308#line 2309 "configure"
    38392309#include "confdefs.h"
    38402310#include <stdlib.h>
    3841 
    3842 _ACEOF
     2311EOF
    38432312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    38442313  egrep "free" >/dev/null 2>&1; then
    38452314  :
    38462315else
     2316  rm -rf conftest*
    38472317  ac_cv_header_stdc=no
    38482318fi
     
    38532323if test $ac_cv_header_stdc = yes; then
    38542324  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3855   if test "$cross_compiling" = yes; then
     2325if test "$cross_compiling" = yes; then
    38562326  :
    38572327else
    3858   cat >conftest.$ac_ext <<_ACEOF
    3859 #line 3859 "configure"
     2328  cat > conftest.$ac_ext <<EOF
     2329#line 2330 "configure"
    38602330#include "confdefs.h"
    38612331#include <ctype.h>
    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 
     2332#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2333#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    38722334#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    3873 int
    3874 main ()
    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
    3884 rm -f conftest$ac_exeext
    3885 if { (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
     2335int main () { int i; for (i = 0; i < 256; i++)
     2336if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     2337exit (0); }
     2338
     2339EOF
     2340if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2341then
    38952342  :
    38962343else
    3897   echo "$as_me: program exited with status $ac_status" >&5
    3898 echo "$as_me: failed program was:" >&5
    3899 cat conftest.$ac_ext >&5
    3900 ac_cv_header_stdc=no
    3901 fi
    3902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3903 fi
    3904 fi
    3905 fi
    3906 echo "$as_me:3906: result: $ac_cv_header_stdc" >&5
    3907 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     2344  echo "configure: failed program was:" >&5
     2345  cat conftest.$ac_ext >&5
     2346  rm -fr conftest*
     2347  ac_cv_header_stdc=no
     2348fi
     2349rm -fr conftest*
     2350fi
     2351
     2352fi
     2353fi
     2354
     2355echo "$ac_t""$ac_cv_header_stdc" 1>&6
    39082356if test $ac_cv_header_stdc = yes; then
    3909 
    3910 cat >>confdefs.h <<\EOF
     2357  cat >> confdefs.h <<\EOF
    39112358#define STDC_HEADERS 1
    39122359EOF
     
    39142361fi
    39152362
    3916 for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
     2363for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
    39172364do
    3918 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    3919 echo "$as_me:3919: checking for $ac_header" >&5
    3920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3921 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    3922   echo $ECHO_N "(cached) $ECHO_C" >&6
    3923 else
    3924   cat >conftest.$ac_ext <<_ACEOF
    3925 #line 3925 "configure"
    3926 #include "confdefs.h"
    3927 #include <$ac_header>
    3928 _ACEOF
    3929 if { (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
    3942 else
    3943   ac_cpp_err=yes
    3944 fi
    3945 if test -z "$ac_cpp_err"; then
    3946   eval "$ac_ac_Header=yes"
    3947 else
    3948   echo "$as_me: failed program was:" >&5
    3949   cat conftest.$ac_ext >&5
    3950   eval "$ac_ac_Header=no"
    3951 fi
    3952 rm -f conftest.err conftest.$ac_ext
    3953 fi
    3954 echo "$as_me:3954: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3955 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3956 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3957   cat >>confdefs.h <<EOF
    3958 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    3959 EOF
    3960 
     2365ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     2366echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     2367echo "configure:2368: checking for $ac_hdr" >&5
     2368if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     2369  echo $ac_n "(cached) $ac_c" 1>&6
     2370else
     2371  cat > conftest.$ac_ext <<EOF
     2372#line 2373 "configure"
     2373#include "confdefs.h"
     2374#include <$ac_hdr>
     2375EOF
     2376ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2377{ (eval echo configure:2378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2378ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2379if test -z "$ac_err"; then
     2380  rm -rf conftest*
     2381  eval "ac_cv_header_$ac_safe=yes"
     2382else
     2383  echo "$ac_err" >&5
     2384  echo "configure: failed program was:" >&5
     2385  cat conftest.$ac_ext >&5
     2386  rm -rf conftest*
     2387  eval "ac_cv_header_$ac_safe=no"
     2388fi
     2389rm -f conftest*
     2390fi
     2391if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     2392  echo "$ac_t""yes" 1>&6
     2393    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     2394  cat >> confdefs.h <<EOF
     2395#define $ac_tr_hdr 1
     2396EOF
     2397 
     2398else
     2399  echo "$ac_t""no" 1>&6
    39612400fi
    39622401done
    39632402
    3964 cat >conftest.$ac_ext <<_ACEOF
    3965 #line 3965 "configure"
     2403cat > conftest.$ac_ext <<EOF
     2404#line 2405 "configure"
    39662405#include "confdefs.h"
    39672406#include <stdio.h>
    3968 
    3969 _ACEOF
     2407EOF
    39702408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    39712409  egrep "fread" >/dev/null 2>&1; then
    3972   cat >>confdefs.h <<\EOF
     2410  rm -rf conftest*
     2411  cat >> confdefs.h <<\EOF
    39732412#define HAVE_FREAD_DECL 1
    39742413EOF
     
    39772416rm -f conftest*
    39782417
    3979 cat >conftest.$ac_ext <<_ACEOF
    3980 #line 3980 "configure"
     2418cat > conftest.$ac_ext <<EOF
     2419#line 2420 "configure"
    39812420#include "confdefs.h"
    39822421#include <stdio.h>
    3983 
    3984 _ACEOF
     2422EOF
    39852423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    39862424  egrep "fgetc" >/dev/null 2>&1; then
    3987   cat >>confdefs.h <<\EOF
     2425  rm -rf conftest*
     2426  cat >> confdefs.h <<\EOF
    39882427#define HAVE_FGETC_DECL 1
    39892428EOF
     
    39922431rm -f conftest*
    39932432
    3994 cat >conftest.$ac_ext <<_ACEOF
    3995 #line 3995 "configure"
     2433cat > conftest.$ac_ext <<EOF
     2434#line 2435 "configure"
    39962435#include "confdefs.h"
    39972436#include <sys/procfs.h>
    3998 
    3999 _ACEOF
     2437EOF
    40002438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    40012439  egrep "pr_brksize" >/dev/null 2>&1; then
    4002   cat >>confdefs.h <<\EOF
     2440  rm -rf conftest*
     2441  cat >> confdefs.h <<\EOF
    40032442#define HAVE_PR_BRKSIZE 1
    40042443EOF
     
    40062445fi
    40072446rm -f conftest*
     2447
    40082448
    40092449# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    40102450# for constant arguments.  Useless!
    4011 echo "$as_me:4011: checking for working alloca.h" >&5
    4012 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    4013 if test "${ac_cv_working_alloca_h+set}" = set; then
    4014   echo $ECHO_N "(cached) $ECHO_C" >&6
    4015 else
    4016   cat >conftest.$ac_ext <<_ACEOF
    4017 #line 4017 "configure"
     2451echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
     2452echo "configure:2453: checking for working alloca.h" >&5
     2453if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
     2454  echo $ac_n "(cached) $ac_c" 1>&6
     2455else
     2456  cat > conftest.$ac_ext <<EOF
     2457#line 2458 "configure"
    40182458#include "confdefs.h"
    40192459#include <alloca.h>
    4020 int
    4021 main ()
    4022 {
    4023 char *p = (char *) alloca (2 * sizeof (int));
    4024   ;
    4025   return 0;
    4026 }
    4027 _ACEOF
    4028 rm -f conftest.$ac_objext conftest$ac_exeext
    4029 if { (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
    4041 else
    4042   echo "$as_me: failed program was:" >&5
    4043 cat conftest.$ac_ext >&5
    4044 ac_cv_working_alloca_h=no
    4045 fi
    4046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4047 fi
    4048 echo "$as_me:4048: result: $ac_cv_working_alloca_h" >&5
    4049 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
    4050 if test $ac_cv_working_alloca_h = yes; then
    4051 
    4052 cat >>confdefs.h <<\EOF
     2460int main() {
     2461char *p = alloca(2 * sizeof(int));
     2462; return 0; }
     2463EOF
     2464if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2465  rm -rf conftest*
     2466  ac_cv_header_alloca_h=yes
     2467else
     2468  echo "configure: failed program was:" >&5
     2469  cat conftest.$ac_ext >&5
     2470  rm -rf conftest*
     2471  ac_cv_header_alloca_h=no
     2472fi
     2473rm -f conftest*
     2474fi
     2475
     2476echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
     2477if test $ac_cv_header_alloca_h = yes; then
     2478  cat >> confdefs.h <<\EOF
    40532479#define HAVE_ALLOCA_H 1
    40542480EOF
     
    40562482fi
    40572483
    4058 echo "$as_me:4058: checking for alloca" >&5
    4059 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    4060 if test "${ac_cv_func_alloca_works+set}" = set; then
    4061   echo $ECHO_N "(cached) $ECHO_C" >&6
    4062 else
    4063   cat >conftest.$ac_ext <<_ACEOF
    4064 #line 4064 "configure"
    4065 #include "confdefs.h"
     2484echo $ac_n "checking for alloca""... $ac_c" 1>&6
     2485echo "configure:2486: checking for alloca" >&5
     2486if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
     2487  echo $ac_n "(cached) $ac_c" 1>&6
     2488else
     2489  cat > conftest.$ac_ext <<EOF
     2490#line 2491 "configure"
     2491#include "confdefs.h"
     2492
    40662493#ifdef __GNUC__
    40672494# define alloca __builtin_alloca
     
    40852512#endif
    40862513
    4087 int
    4088 main ()
    4089 {
    4090 char *p = (char *) alloca (1);
    4091   ;
    4092   return 0;
    4093 }
    4094 _ACEOF
    4095 rm -f conftest.$ac_objext conftest$ac_exeext
    4096 if { (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
     2514int main() {
     2515char *p = (char *) alloca(1);
     2516; return 0; }
     2517EOF
     2518if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2519  rm -rf conftest*
    41072520  ac_cv_func_alloca_works=yes
    41082521else
    4109   echo "$as_me: failed program was:" >&5
    4110 cat conftest.$ac_ext >&5
    4111 ac_cv_func_alloca_works=no
    4112 fi
    4113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4114 fi
    4115 echo "$as_me:4115: result: $ac_cv_func_alloca_works" >&5
    4116 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
    4117 
     2522  echo "configure: failed program was:" >&5
     2523  cat conftest.$ac_ext >&5
     2524  rm -rf conftest*
     2525  ac_cv_func_alloca_works=no
     2526fi
     2527rm -f conftest*
     2528fi
     2529
     2530echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
    41182531if test $ac_cv_func_alloca_works = yes; then
    4119 
    4120 cat >>confdefs.h <<\EOF
     2532  cat >> confdefs.h <<\EOF
    41212533#define HAVE_ALLOCA 1
    41222534EOF
    41232535
    4124 else
     2536fi
     2537
     2538if test $ac_cv_func_alloca_works = no; then
    41252539  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    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 
    4130 ALLOCA=alloca.$ac_objext
    4131 
    4132 cat >>confdefs.h <<\EOF
     2540  # that cause trouble.  Some versions do not even contain alloca or
     2541  # contain a buggy version.  If you still want to use their alloca,
     2542  # use ar to extract alloca.o from them instead of compiling alloca.c.
     2543  ALLOCA=alloca.${ac_objext}
     2544  cat >> confdefs.h <<\EOF
    41332545#define C_ALLOCA 1
    41342546EOF
    41352547
    4136 echo "$as_me:4136: checking whether \`alloca.c' needs Cray hooks" >&5
    4137 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    4138 if test "${ac_cv_os_cray+set}" = set; then
    4139   echo $ECHO_N "(cached) $ECHO_C" >&6
    4140 else
    4141   cat >conftest.$ac_ext <<_ACEOF
    4142 #line 4142 "configure"
     2548
     2549echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
     2550echo "configure:2551: checking whether alloca needs Cray hooks" >&5
     2551if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
     2552  echo $ac_n "(cached) $ac_c" 1>&6
     2553else
     2554  cat > conftest.$ac_ext <<EOF
     2555#line 2556 "configure"
    41432556#include "confdefs.h"
    41442557#if defined(CRAY) && ! defined(CRAY2)
     
    41482561#endif
    41492562
    4150 _ACEOF
     2563EOF
    41512564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    41522565  egrep "webecray" >/dev/null 2>&1; then
     2566  rm -rf conftest*
    41532567  ac_cv_os_cray=yes
    41542568else
     2569  rm -rf conftest*
    41552570  ac_cv_os_cray=no
    41562571fi
     
    41582573
    41592574fi
    4160 echo "$as_me:4160: result: $ac_cv_os_cray" >&5
    4161 echo "${ECHO_T}$ac_cv_os_cray" >&6
     2575
     2576echo "$ac_t""$ac_cv_os_cray" 1>&6
    41622577if test $ac_cv_os_cray = yes; then
    4163   for ac_func in _getb67 GETB67 getb67; do
    4164     ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4165 echo "$as_me:4165: checking for $ac_func" >&5
    4166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4167 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4168   echo $ECHO_N "(cached) $ECHO_C" >&6
    4169 else
    4170   cat >conftest.$ac_ext <<_ACEOF
    4171 #line 4171 "configure"
     2578for ac_func in _getb67 GETB67 getb67; do
     2579  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2580echo "configure:2581: checking for $ac_func" >&5
     2581if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2582  echo $ac_n "(cached) $ac_c" 1>&6
     2583else
     2584  cat > conftest.$ac_ext <<EOF
     2585#line 2586 "configure"
    41722586#include "confdefs.h"
    41732587/* System header to define __stub macros and hopefully few prototypes,
    4174     which can conflict with char $ac_func (); below.  */
     2588    which can conflict with char $ac_func(); below.  */
    41752589#include <assert.h>
    41762590/* Override any gcc2 internal prototype to avoid an error.  */
    4177 #ifdef __cplusplus
    4178 extern "C"
    4179 #endif
    41802591/* We use char because int might match the return type of a gcc2
    4181    builtin and then its argument prototype would still apply.  */
    4182 char $ac_func ();
    4183 char (*f) ();
    4184 
    4185 int
    4186 main ()
    4187 {
     2592    builtin and then its argument prototype would still apply.  */
     2593char $ac_func();
     2594
     2595int main() {
     2596
    41882597/* The GNU C library defines this for functions which it implements
    41892598    to always fail with ENOSYS.  Some functions are actually named
     
    41922601choke me
    41932602#else
    4194 f = $ac_func;
     2603$ac_func();
    41952604#endif
    41962605
    4197   ;
    4198   return 0;
    4199 }
    4200 _ACEOF
    4201 rm -f conftest.$ac_objext conftest$ac_exeext
    4202 if { (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"
    4214 else
    4215   echo "$as_me: failed program was:" >&5
    4216 cat conftest.$ac_ext >&5
    4217 eval "$ac_ac_var=no"
    4218 fi
    4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4220 fi
    4221 echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4222 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4223 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4224 
    4225 cat >>confdefs.h <<EOF
     2606; return 0; }
     2607EOF
     2608if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2609  rm -rf conftest*
     2610  eval "ac_cv_func_$ac_func=yes"
     2611else
     2612  echo "configure: failed program was:" >&5
     2613  cat conftest.$ac_ext >&5
     2614  rm -rf conftest*
     2615  eval "ac_cv_func_$ac_func=no"
     2616fi
     2617rm -f conftest*
     2618fi
     2619
     2620if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2621  echo "$ac_t""yes" 1>&6
     2622  cat >> confdefs.h <<EOF
    42262623#define CRAY_STACKSEG_END $ac_func
    42272624EOF
    42282625
    4229     break
    4230 fi
    4231 
    4232   done
    4233 fi
    4234 
    4235 echo "$as_me:4235: checking stack direction for C alloca" >&5
    4236 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    4237 if test "${ac_cv_c_stack_direction+set}" = set; then
    4238   echo $ECHO_N "(cached) $ECHO_C" >&6
     2626  break
     2627else
     2628  echo "$ac_t""no" 1>&6
     2629fi
     2630
     2631done
     2632fi
     2633
     2634echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
     2635echo "configure:2636: checking stack direction for C alloca" >&5
     2636if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
     2637  echo $ac_n "(cached) $ac_c" 1>&6
    42392638else
    42402639  if test "$cross_compiling" = yes; then
    42412640  ac_cv_c_stack_direction=0
    42422641else
    4243   cat >conftest.$ac_ext <<_ACEOF
    4244 #line 4244 "configure"
    4245 #include "confdefs.h"
    4246 int
     2642  cat > conftest.$ac_ext <<EOF
     2643#line 2644 "configure"
     2644#include "confdefs.h"
    42472645find_stack_direction ()
    42482646{
     
    42572655    return (&dummy > addr) ? 1 : -1;
    42582656}
    4259 
    4260 int
    42612657main ()
    42622658{
    4263   exit (find_stack_direction () < 0);
     2659  exit (find_stack_direction() < 0);
    42642660}
    4265 _ACEOF
    4266 rm -f conftest$ac_exeext
    4267 if { (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
     2661EOF
     2662if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2663then
    42772664  ac_cv_c_stack_direction=1
    42782665else
    4279   echo "$as_me: program exited with status $ac_status" >&5
    4280 echo "$as_me: failed program was:" >&5
    4281 cat conftest.$ac_ext >&5
    4282 ac_cv_c_stack_direction=-1
    4283 fi
    4284 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    4285 fi
    4286 fi
    4287 echo "$as_me:4287: result: $ac_cv_c_stack_direction" >&5
    4288 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    4289 
    4290 cat >>confdefs.h <<EOF
     2666  echo "configure: failed program was:" >&5
     2667  cat conftest.$ac_ext >&5
     2668  rm -fr conftest*
     2669  ac_cv_c_stack_direction=-1
     2670fi
     2671rm -fr conftest*
     2672fi
     2673
     2674fi
     2675
     2676echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
     2677cat >> confdefs.h <<EOF
    42912678#define STACK_DIRECTION $ac_cv_c_stack_direction
    42922679EOF
     
    42942681fi
    42952682
    4296 if test $ac_cv_c_compiler_gnu = yes; then
    4297     echo "$as_me:4297: checking whether $CC needs -traditional" >&5
    4298 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    4299 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    4300   echo $ECHO_N "(cached) $ECHO_C" >&6
     2683if test $ac_cv_prog_gcc = yes; then
     2684    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
     2685echo "configure:2686: checking whether ${CC-cc} needs -traditional" >&5
     2686if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
     2687  echo $ac_n "(cached) $ac_c" 1>&6
    43012688else
    43022689    ac_pattern="Autoconf.*'x'"
    4303   cat >conftest.$ac_ext <<_ACEOF
    4304 #line 4304 "configure"
     2690  cat > conftest.$ac_ext <<EOF
     2691#line 2692 "configure"
    43052692#include "confdefs.h"
    43062693#include <sgtty.h>
    43072694Autoconf TIOCGETP
    4308 _ACEOF
     2695EOF
    43092696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    43102697  egrep "$ac_pattern" >/dev/null 2>&1; then
     2698  rm -rf conftest*
    43112699  ac_cv_prog_gcc_traditional=yes
    43122700else
     2701  rm -rf conftest*
    43132702  ac_cv_prog_gcc_traditional=no
    43142703fi
    43152704rm -f conftest*
    43162705
     2706
    43172707  if test $ac_cv_prog_gcc_traditional = no; then
    4318     cat >conftest.$ac_ext <<_ACEOF
    4319 #line 4319 "configure"
     2708    cat > conftest.$ac_ext <<EOF
     2709#line 2710 "configure"
    43202710#include "confdefs.h"
    43212711#include <termio.h>
    43222712Autoconf TCGETA
    4323 _ACEOF
     2713EOF
    43242714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    43252715  egrep "$ac_pattern" >/dev/null 2>&1; then
     2716  rm -rf conftest*
    43262717  ac_cv_prog_gcc_traditional=yes
    43272718fi
     
    43302721  fi
    43312722fi
    4332 echo "$as_me:4332: result: $ac_cv_prog_gcc_traditional" >&5
    4333 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     2723
     2724echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
    43342725  if test $ac_cv_prog_gcc_traditional = yes; then
    43352726    CC="$CC -traditional"
     
    43372728fi
    43382729
    4339 echo "$as_me:4339: checking return type of signal handlers" >&5
    4340 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    4341 if test "${ac_cv_type_signal+set}" = set; then
    4342   echo $ECHO_N "(cached) $ECHO_C" >&6
    4343 else
    4344   cat >conftest.$ac_ext <<_ACEOF
    4345 #line 4345 "configure"
     2730echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
     2731echo "configure:2732: checking return type of signal handlers" >&5
     2732if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
     2733  echo $ac_n "(cached) $ac_c" 1>&6
     2734else
     2735  cat > conftest.$ac_ext <<EOF
     2736#line 2737 "configure"
    43462737#include "confdefs.h"
    43472738#include <sys/types.h>
    43482739#include <signal.h>
    43492740#ifdef signal
    4350 # undef signal
     2741#undef signal
    43512742#endif
    43522743#ifdef __cplusplus
     
    43562747#endif
    43572748
    4358 int
    4359 main ()
    4360 {
     2749int main() {
    43612750int i;
    4362   ;
    4363   return 0;
    4364 }
    4365 _ACEOF
    4366 rm -f conftest.$ac_objext
    4367 if { (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
     2751; return 0; }
     2752EOF
     2753if { (eval echo configure:2754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2754  rm -rf conftest*
    43782755  ac_cv_type_signal=void
    43792756else
    4380   echo "$as_me: failed program was:" >&5
    4381 cat conftest.$ac_ext >&5
    4382 ac_cv_type_signal=int
    4383 fi
    4384 rm -f conftest.$ac_objext conftest.$ac_ext
    4385 fi
    4386 echo "$as_me:4386: result: $ac_cv_type_signal" >&5
    4387 echo "${ECHO_T}$ac_cv_type_signal" >&6
    4388 
    4389 cat >>confdefs.h <<EOF
     2757  echo "configure: failed program was:" >&5
     2758  cat conftest.$ac_ext >&5
     2759  rm -rf conftest*
     2760  ac_cv_type_signal=int
     2761fi
     2762rm -f conftest*
     2763fi
     2764
     2765echo "$ac_t""$ac_cv_type_signal" 1>&6
     2766cat >> confdefs.h <<EOF
    43902767#define RETSIGTYPE $ac_cv_type_signal
    43912768EOF
    43922769
    4393 for ac_func in vprintf
    4394 do
    4395 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4396 echo "$as_me:4396: checking for $ac_func" >&5
    4397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4398 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4399   echo $ECHO_N "(cached) $ECHO_C" >&6
    4400 else
    4401   cat >conftest.$ac_ext <<_ACEOF
    4402 #line 4402 "configure"
     2770
     2771echo $ac_n "checking for vprintf""... $ac_c" 1>&6
     2772echo "configure:2773: checking for vprintf" >&5
     2773if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
     2774  echo $ac_n "(cached) $ac_c" 1>&6
     2775else
     2776  cat > conftest.$ac_ext <<EOF
     2777#line 2778 "configure"
    44032778#include "confdefs.h"
    44042779/* System header to define __stub macros and hopefully few prototypes,
    4405     which can conflict with char $ac_func (); below.  */
     2780    which can conflict with char vprintf(); below.  */
    44062781#include <assert.h>
    44072782/* Override any gcc2 internal prototype to avoid an error.  */
    4408 #ifdef __cplusplus
    4409 extern "C"
     2783/* We use char because int might match the return type of a gcc2
     2784    builtin and then its argument prototype would still apply.  */
     2785char vprintf();
     2786
     2787int main() {
     2788
     2789/* The GNU C library defines this for functions which it implements
     2790    to always fail with ENOSYS.  Some functions are actually named
     2791    something starting with __ and the normal name is an alias.  */
     2792#if defined (__stub_vprintf) || defined (__stub___vprintf)
     2793choke me
     2794#else
     2795vprintf();
    44102796#endif
     2797
     2798; return 0; }
     2799EOF
     2800if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2801  rm -rf conftest*
     2802  eval "ac_cv_func_vprintf=yes"
     2803else
     2804  echo "configure: failed program was:" >&5
     2805  cat conftest.$ac_ext >&5
     2806  rm -rf conftest*
     2807  eval "ac_cv_func_vprintf=no"
     2808fi
     2809rm -f conftest*
     2810fi
     2811
     2812if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
     2813  echo "$ac_t""yes" 1>&6
     2814  cat >> confdefs.h <<\EOF
     2815#define HAVE_VPRINTF 1
     2816EOF
     2817
     2818else
     2819  echo "$ac_t""no" 1>&6
     2820fi
     2821
     2822if test "$ac_cv_func_vprintf" != yes; then
     2823echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
     2824echo "configure:2825: checking for _doprnt" >&5
     2825if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
     2826  echo $ac_n "(cached) $ac_c" 1>&6
     2827else
     2828  cat > conftest.$ac_ext <<EOF
     2829#line 2830 "configure"
     2830#include "confdefs.h"
     2831/* System header to define __stub macros and hopefully few prototypes,
     2832    which can conflict with char _doprnt(); below.  */
     2833#include <assert.h>
     2834/* Override any gcc2 internal prototype to avoid an error.  */
    44112835/* We use char because int might match the return type of a gcc2
    4412    builtin and then its argument prototype would still apply.  */
    4413 char $ac_func ();
    4414 char (*f) ();
    4415 
    4416 int
    4417 main ()
    4418 {
     2836    builtin and then its argument prototype would still apply.  */
     2837char _doprnt();
     2838
     2839int main() {
     2840
     2841/* The GNU C library defines this for functions which it implements
     2842    to always fail with ENOSYS.  Some functions are actually named
     2843    something starting with __ and the normal name is an alias.  */
     2844#if defined (__stub__doprnt) || defined (__stub____doprnt)
     2845choke me
     2846#else
     2847_doprnt();
     2848#endif
     2849
     2850; return 0; }
     2851EOF
     2852if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2853  rm -rf conftest*
     2854  eval "ac_cv_func__doprnt=yes"
     2855else
     2856  echo "configure: failed program was:" >&5
     2857  cat conftest.$ac_ext >&5
     2858  rm -rf conftest*
     2859  eval "ac_cv_func__doprnt=no"
     2860fi
     2861rm -f conftest*
     2862fi
     2863
     2864if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
     2865  echo "$ac_t""yes" 1>&6
     2866  cat >> confdefs.h <<\EOF
     2867#define HAVE_DOPRNT 1
     2868EOF
     2869
     2870else
     2871  echo "$ac_t""no" 1>&6
     2872fi
     2873
     2874fi
     2875
     2876for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
     2877do
     2878echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2879echo "configure:2880: checking for $ac_func" >&5
     2880if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2881  echo $ac_n "(cached) $ac_c" 1>&6
     2882else
     2883  cat > conftest.$ac_ext <<EOF
     2884#line 2885 "configure"
     2885#include "confdefs.h"
     2886/* System header to define __stub macros and hopefully few prototypes,
     2887    which can conflict with char $ac_func(); below.  */
     2888#include <assert.h>
     2889/* Override any gcc2 internal prototype to avoid an error.  */
     2890/* We use char because int might match the return type of a gcc2
     2891    builtin and then its argument prototype would still apply.  */
     2892char $ac_func();
     2893
     2894int main() {
     2895
    44192896/* The GNU C library defines this for functions which it implements
    44202897    to always fail with ENOSYS.  Some functions are actually named
     
    44232900choke me
    44242901#else
    4425 f = $ac_func;
     2902$ac_func();
    44262903#endif
    44272904
    4428   ;
    4429   return 0;
    4430 }
    4431 _ACEOF
    4432 rm -f conftest.$ac_objext conftest$ac_exeext
    4433 if { (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"
    4445 else
    4446   echo "$as_me: failed program was:" >&5
    4447 cat conftest.$ac_ext >&5
    4448 eval "$ac_ac_var=no"
    4449 fi
    4450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4451 fi
    4452 echo "$as_me:4452: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4453 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4454 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4455   cat >>confdefs.h <<EOF
    4456 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4457 EOF
    4458 
    4459 echo "$as_me:4459: checking for _doprnt" >&5
    4460 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    4461 if test "${ac_cv_func__doprnt+set}" = set; then
    4462   echo $ECHO_N "(cached) $ECHO_C" >&6
    4463 else
    4464   cat >conftest.$ac_ext <<_ACEOF
    4465 #line 4465 "configure"
     2905; return 0; }
     2906EOF
     2907if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2908  rm -rf conftest*
     2909  eval "ac_cv_func_$ac_func=yes"
     2910else
     2911  echo "configure: failed program was:" >&5
     2912  cat conftest.$ac_ext >&5
     2913  rm -rf conftest*
     2914  eval "ac_cv_func_$ac_func=no"
     2915fi
     2916rm -f conftest*
     2917fi
     2918
     2919if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2920  echo "$ac_t""yes" 1>&6
     2921    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2922  cat >> confdefs.h <<EOF
     2923#define $ac_tr_func 1
     2924EOF
     2925 
     2926else
     2927  echo "$ac_t""no" 1>&6
     2928fi
     2929done
     2930
     2931for ac_func in ftruncate strstr strcasecmp
     2932do
     2933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2934echo "configure:2935: checking for $ac_func" >&5
     2935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2936  echo $ac_n "(cached) $ac_c" 1>&6
     2937else
     2938  cat > conftest.$ac_ext <<EOF
     2939#line 2940 "configure"
    44662940#include "confdefs.h"
    44672941/* System header to define __stub macros and hopefully few prototypes,
    4468     which can conflict with char _doprnt (); below.  */
     2942    which can conflict with char $ac_func(); below.  */
    44692943#include <assert.h>
    44702944/* Override any gcc2 internal prototype to avoid an error.  */
    4471 #ifdef __cplusplus
    4472 extern "C"
    4473 #endif
    44742945/* We use char because int might match the return type of a gcc2
    4475    builtin and then its argument prototype would still apply.  */
    4476 char _doprnt ();
    4477 char (*f) ();
    4478 
    4479 int
    4480 main ()
    4481 {
    4482 /* The GNU C library defines this for functions which it implements
    4483     to always fail with ENOSYS.  Some functions are actually named
    4484     something starting with __ and the normal name is an alias.  */
    4485 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    4486 choke me
    4487 #else
    4488 f = _doprnt;
    4489 #endif
    4490 
    4491   ;
    4492   return 0;
    4493 }
    4494 _ACEOF
    4495 rm -f conftest.$ac_objext conftest$ac_exeext
    4496 if { (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
    4508 else
    4509   echo "$as_me: failed program was:" >&5
    4510 cat conftest.$ac_ext >&5
    4511 ac_cv_func__doprnt=no
    4512 fi
    4513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4514 fi
    4515 echo "$as_me:4515: result: $ac_cv_func__doprnt" >&5
    4516 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    4517 if test $ac_cv_func__doprnt = yes; then
    4518 
    4519 cat >>confdefs.h <<\EOF
    4520 #define HAVE_DOPRNT 1
    4521 EOF
    4522 
    4523 fi
    4524 
    4525 fi
    4526 done
    4527 
    4528 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    4529 do
    4530 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4531 echo "$as_me:4531: checking for $ac_func" >&5
    4532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4533 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4534   echo $ECHO_N "(cached) $ECHO_C" >&6
    4535 else
    4536   cat >conftest.$ac_ext <<_ACEOF
    4537 #line 4537 "configure"
    4538 #include "confdefs.h"
    4539 /* System header to define __stub macros and hopefully few prototypes,
    4540     which can conflict with char $ac_func (); below.  */
    4541 #include <assert.h>
    4542 /* Override any gcc2 internal prototype to avoid an error.  */
    4543 #ifdef __cplusplus
    4544 extern "C"
    4545 #endif
    4546 /* We use char because int might match the return type of a gcc2
    4547    builtin and then its argument prototype would still apply.  */
    4548 char $ac_func ();
    4549 char (*f) ();
    4550 
    4551 int
    4552 main ()
    4553 {
     2946    builtin and then its argument prototype would still apply.  */
     2947char $ac_func();
     2948
     2949int main() {
     2950
    45542951/* The GNU C library defines this for functions which it implements
    45552952    to always fail with ENOSYS.  Some functions are actually named
     
    45582955choke me
    45592956#else
    4560 f = $ac_func;
     2957$ac_func();
    45612958#endif
    45622959
    4563   ;
    4564   return 0;
    4565 }
    4566 _ACEOF
    4567 rm -f conftest.$ac_objext conftest$ac_exeext
    4568 if { (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"
    4580 else
    4581   echo "$as_me: failed program was:" >&5
    4582 cat conftest.$ac_ext >&5
    4583 eval "$ac_ac_var=no"
    4584 fi
    4585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4586 fi
    4587 echo "$as_me:4587: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4588 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4589 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4590   cat >>confdefs.h <<EOF
    4591 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4592 EOF
    4593 
     2960; return 0; }
     2961EOF
     2962if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2963  rm -rf conftest*
     2964  eval "ac_cv_func_$ac_func=yes"
     2965else
     2966  echo "configure: failed program was:" >&5
     2967  cat conftest.$ac_ext >&5
     2968  rm -rf conftest*
     2969  eval "ac_cv_func_$ac_func=no"
     2970fi
     2971rm -f conftest*
     2972fi
     2973
     2974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2975  echo "$ac_t""yes" 1>&6
     2976    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2977  cat >> confdefs.h <<EOF
     2978#define $ac_tr_func 1
     2979EOF
     2980 
     2981else
     2982  echo "$ac_t""no" 1>&6
     2983LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
    45942984fi
    45952985done
    45962986
    4597 for ac_func in ftruncate strstr strcasecmp
    4598 do
    4599 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4600 echo "$as_me:4600: checking for $ac_func" >&5
    4601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4602 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4603   echo $ECHO_N "(cached) $ECHO_C" >&6
    4604 else
    4605   cat >conftest.$ac_ext <<_ACEOF
    4606 #line 4606 "configure"
     2987
     2988
     2989echo $ac_n "checking for textdomain ""... $ac_c" 1>&6
     2990echo "configure:2991: checking for textdomain " >&5
     2991if eval "test \"`echo '$''{'ac_cv_func_textdomain '+set}'`\" = set"; then
     2992  echo $ac_n "(cached) $ac_c" 1>&6
     2993else
     2994  cat > conftest.$ac_ext <<EOF
     2995#line 2996 "configure"
    46072996#include "confdefs.h"
    46082997/* System header to define __stub macros and hopefully few prototypes,
    4609     which can conflict with char $ac_func (); below.  */
     2998    which can conflict with char textdomain (); below.  */
    46102999#include <assert.h>
    46113000/* Override any gcc2 internal prototype to avoid an error.  */
    4612 #ifdef __cplusplus
    4613 extern "C"
     3001/* We use char because int might match the return type of a gcc2
     3002    builtin and then its argument prototype would still apply.  */
     3003char textdomain ();
     3004
     3005int main() {
     3006
     3007/* The GNU C library defines this for functions which it implements
     3008    to always fail with ENOSYS.  Some functions are actually named
     3009    something starting with __ and the normal name is an alias.  */
     3010#if defined (__stub_textdomain ) || defined (__stub___textdomain )
     3011choke me
     3012#else
     3013textdomain ();
    46143014#endif
     3015
     3016; return 0; }
     3017EOF
     3018if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3019  rm -rf conftest*
     3020  eval "ac_cv_func_textdomain =yes"
     3021else
     3022  echo "configure: failed program was:" >&5
     3023  cat conftest.$ac_ext >&5
     3024  rm -rf conftest*
     3025  eval "ac_cv_func_textdomain =no"
     3026fi
     3027rm -f conftest*
     3028fi
     3029
     3030if eval "test \"`echo '$ac_cv_func_'textdomain `\" = yes"; then
     3031  echo "$ac_t""yes" 1>&6
     3032  cat >> confdefs.h <<\EOF
     3033#define ENABLE_NLS  1
     3034EOF
     3035 
     3036else
     3037  echo "$ac_t""no" 1>&6
     3038fi
     3039
     3040
     3041# *** Custom checking (based on GNU tar configure.in) ***
     3042# ---------------------------------------------------------------------------
     3043echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
     3044echo "configure:3045: checking for HP-UX needing gmalloc" >&5
     3045if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
     3046  echo "$ac_t""yes" 1>&6
     3047  LIBOBJS="$LIBOBJS gmalloc.o"
     3048  cat >> confdefs.h <<\EOF
     3049#define HAVE_VALLOC 1
     3050EOF
     3051
     3052else
     3053  echo "$ac_t""no" 1>&6
     3054  for ac_func in valloc
     3055do
     3056echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     3057echo "configure:3058: checking for $ac_func" >&5
     3058if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     3059  echo $ac_n "(cached) $ac_c" 1>&6
     3060else
     3061  cat > conftest.$ac_ext <<EOF
     3062#line 3063 "configure"
     3063#include "confdefs.h"
     3064/* System header to define __stub macros and hopefully few prototypes,
     3065    which can conflict with char $ac_func(); below.  */
     3066#include <assert.h>
     3067/* Override any gcc2 internal prototype to avoid an error.  */
    46153068/* We use char because int might match the return type of a gcc2
    4616    builtin and then its argument prototype would still apply.  */
    4617 char $ac_func ();
    4618 char (*f) ();
    4619 
    4620 int
    4621 main ()
    4622 {
     3069    builtin and then its argument prototype would still apply.  */
     3070char $ac_func();
     3071
     3072int main() {
     3073
    46233074/* The GNU C library defines this for functions which it implements
    46243075    to always fail with ENOSYS.  Some functions are actually named
     
    46273078choke me
    46283079#else
    4629 f = $ac_func;
     3080$ac_func();
    46303081#endif
    46313082
    4632   ;
    4633   return 0;
    4634 }
    4635 _ACEOF
    4636 rm -f conftest.$ac_objext conftest$ac_exeext
    4637 if { (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"
    4649 else
    4650   echo "$as_me: failed program was:" >&5
    4651 cat conftest.$ac_ext >&5
    4652 eval "$ac_ac_var=no"
    4653 fi
    4654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4655 fi
    4656 echo "$as_me:4656: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4657 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4658 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4659   cat >>confdefs.h <<EOF
    4660 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4661 EOF
    4662 
    4663 else
    4664   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
     3083; return 0; }
     3084EOF
     3085if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3086  rm -rf conftest*
     3087  eval "ac_cv_func_$ac_func=yes"
     3088else
     3089  echo "configure: failed program was:" >&5
     3090  cat conftest.$ac_ext >&5
     3091  rm -rf conftest*
     3092  eval "ac_cv_func_$ac_func=no"
     3093fi
     3094rm -f conftest*
     3095fi
     3096
     3097if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     3098  echo "$ac_t""yes" 1>&6
     3099    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3100  cat >> confdefs.h <<EOF
     3101#define $ac_tr_func 1
     3102EOF
     3103 
     3104else
     3105  echo "$ac_t""no" 1>&6
    46653106fi
    46663107done
    46673108
    4668 echo "$as_me:4668: checking for textdomain " >&5
    4669 echo $ECHO_N "checking for textdomain ... $ECHO_C" >&6
    4670 if test "${ac_cv_func_textdomain_+set}" = set; then
    4671   echo $ECHO_N "(cached) $ECHO_C" >&6
    4672 else
    4673   cat >conftest.$ac_ext <<_ACEOF
    4674 #line 4674 "configure"
    4675 #include "confdefs.h"
    4676 /* System header to define __stub macros and hopefully few prototypes,
    4677     which can conflict with char textdomain  (); below.  */
    4678 #include <assert.h>
    4679 /* Override any gcc2 internal prototype to avoid an error.  */
    4680 #ifdef __cplusplus
    4681 extern "C"
    4682 #endif
    4683 /* We use char because int might match the return type of a gcc2
    4684    builtin and then its argument prototype would still apply.  */
    4685 char textdomain  ();
    4686 char (*f) ();
    4687 
    4688 int
    4689 main ()
    4690 {
    4691 /* The GNU C library defines this for functions which it implements
    4692     to always fail with ENOSYS.  Some functions are actually named
    4693     something starting with __ and the normal name is an alias.  */
    4694 #if defined (__stub_textdomain ) || defined (__stub___textdomain )
    4695 choke me
    4696 #else
    4697 f = textdomain ;
    4698 #endif
    4699 
    4700   ;
    4701   return 0;
    4702 }
    4703 _ACEOF
    4704 rm -f conftest.$ac_objext conftest$ac_exeext
    4705 if { (eval echo "$as_me:4705: \"$ac_link\"") >&5
    4706   (eval $ac_link) 2>&5
    4707   ac_status=$?
    4708   echo "$as_me:4708: \$? = $ac_status" >&5
    4709   (exit $ac_status); } &&
    4710          { ac_try='test -s conftest$ac_exeext'
    4711   { (eval echo "$as_me:4711: \"$ac_try\"") >&5
    4712   (eval $ac_try) 2>&5
    4713   ac_status=$?
    4714   echo "$as_me:4714: \$? = $ac_status" >&5
    4715   (exit $ac_status); }; }; then
    4716   ac_cv_func_textdomain_=yes
    4717 else
    4718   echo "$as_me: failed program was:" >&5
    4719 cat conftest.$ac_ext >&5
    4720 ac_cv_func_textdomain_=no
    4721 fi
    4722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4723 fi
    4724 echo "$as_me:4724: result: $ac_cv_func_textdomain_" >&5
    4725 echo "${ECHO_T}$ac_cv_func_textdomain_" >&6
    4726 if test $ac_cv_func_textdomain_ = yes; then
    4727   cat >>confdefs.h <<\EOF
    4728 #define ENABLE_NLS  1
    4729 EOF
    4730 
    4731 fi
    4732 
    4733 # *** Custom checking (based on GNU tar configure.in) ***
    4734 # ---------------------------------------------------------------------------
    4735 echo "$as_me:4735: checking for HP-UX needing gmalloc" >&5
    4736 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    4737 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    4738   echo "$as_me:4738: result: yes" >&5
    4739 echo "${ECHO_T}yes" >&6
    4740   LIBOBJS="$LIBOBJS gmalloc.o"
    4741   cat >>confdefs.h <<\EOF
    4742 #define HAVE_VALLOC 1
    4743 EOF
    4744 
    4745 else
    4746   echo "$as_me:4746: result: no" >&5
    4747 echo "${ECHO_T}no" >&6
    4748 
    4749 for ac_func in valloc
    4750 do
    4751 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4752 echo "$as_me:4752: checking for $ac_func" >&5
    4753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4754 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4755   echo $ECHO_N "(cached) $ECHO_C" >&6
    4756 else
    4757   cat >conftest.$ac_ext <<_ACEOF
    4758 #line 4758 "configure"
    4759 #include "confdefs.h"
    4760 /* System header to define __stub macros and hopefully few prototypes,
    4761     which can conflict with char $ac_func (); below.  */
    4762 #include <assert.h>
    4763 /* Override any gcc2 internal prototype to avoid an error.  */
    4764 #ifdef __cplusplus
    4765 extern "C"
    4766 #endif
    4767 /* We use char because int might match the return type of a gcc2
    4768    builtin and then its argument prototype would still apply.  */
    4769 char $ac_func ();
    4770 char (*f) ();
    4771 
    4772 int
    4773 main ()
    4774 {
    4775 /* The GNU C library defines this for functions which it implements
    4776     to always fail with ENOSYS.  Some functions are actually named
    4777     something starting with __ and the normal name is an alias.  */
    4778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    4779 choke me
    4780 #else
    4781 f = $ac_func;
    4782 #endif
    4783 
    4784   ;
    4785   return 0;
    4786 }
    4787 _ACEOF
    4788 rm -f conftest.$ac_objext conftest$ac_exeext
    4789 if { (eval echo "$as_me:4789: \"$ac_link\"") >&5
    4790   (eval $ac_link) 2>&5
    4791   ac_status=$?
    4792   echo "$as_me:4792: \$? = $ac_status" >&5
    4793   (exit $ac_status); } &&
    4794          { ac_try='test -s conftest$ac_exeext'
    4795   { (eval echo "$as_me:4795: \"$ac_try\"") >&5
    4796   (eval $ac_try) 2>&5
    4797   ac_status=$?
    4798   echo "$as_me:4798: \$? = $ac_status" >&5
    4799   (exit $ac_status); }; }; then
    4800   eval "$ac_ac_var=yes"
    4801 else
    4802   echo "$as_me: failed program was:" >&5
    4803 cat conftest.$ac_ext >&5
    4804 eval "$ac_ac_var=no"
    4805 fi
    4806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4807 fi
    4808 echo "$as_me:4808: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4809 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4810 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4811   cat >>confdefs.h <<EOF
    4812 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4813 EOF
    4814 
    4815 fi
    4816 done
    4817 
    4818 fi
    4819 
    4820 echo "$as_me:4820: checking if malloc debugging is wanted" >&5
    4821 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    4822 
     3109fi
     3110
     3111# we cannot generate static libraries under Darwin
     3112echo $ac_n "checking for Apple MacOS X/Darwin""... $ac_c" 1>&6
     3113echo "configure:3114: checking for Apple MacOS X/Darwin" >&5
     3114if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
     3115  echo "$ac_t""yes" 1>&6
     3116  STATIC=""
     3117else
     3118  echo "$ac_t""no" 1>&6
     3119  STATIC="-static "
     3120fi
     3121
     3122
     3123echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
     3124echo "configure:3125: checking if malloc debugging is wanted" >&5
    48233125# Check whether --with-dmalloc or --without-dmalloc was given.
    48243126if test "${with_dmalloc+set}" = set; then
    48253127  withval="$with_dmalloc"
    48263128  if test "$withval" = yes; then
    4827   echo "$as_me:4827: result: yes" >&5
    4828 echo "${ECHO_T}yes" >&6
    4829   cat >>confdefs.h <<\EOF
     3129  echo "$ac_t""yes" 1>&6
     3130  cat >> confdefs.h <<\EOF
    48303131#define WITH_DMALLOC 1
    48313132EOF
     
    48343135  LDFLAGS="$LDFLAGS -g"
    48353136else
    4836   echo "$as_me:4836: result: no" >&5
    4837 echo "${ECHO_T}no" >&6
    4838 fi
    4839 else
    4840   echo "$as_me:4840: result: no" >&5
    4841 echo "${ECHO_T}no" >&6
    4842 fi;
    4843 
    4844 echo "$as_me:4844: checking which of rx or regex is wanted" >&5
    4845 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    4846 
     3137  echo "$ac_t""no" 1>&6
     3138fi
     3139else
     3140  echo "$ac_t""no" 1>&6
     3141fi
     3142
     3143
     3144echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
     3145echo "configure:3146: checking which of rx or regex is wanted" >&5
    48473146# Check whether --with-regex or --without-regex was given.
    48483147if test "${with_regex+set}" = set; then
     
    48503149  if test "$withval" = yes; then
    48513150  ac_with_regex=1
    4852   echo "$as_me:4852: result: regex" >&5
    4853 echo "${ECHO_T}regex" >&6
    4854   cat >>confdefs.h <<\EOF
     3151  echo "$ac_t""regex" 1>&6
     3152  cat >> confdefs.h <<\EOF
    48553153#define WITH_REGEX 1
    48563154EOF
     
    48583156  LIBOBJS="$LIBOBJS regex.o"
    48593157fi
    4860 fi;
     3158fi
     3159
    48613160if test -z "$ac_with_regex"; then
    4862   echo "$as_me:4862: result: rx" >&5
    4863 echo "${ECHO_T}rx" >&6
    4864   echo "$as_me:4864: checking for re_rx_search" >&5
    4865 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    4866 if test "${ac_cv_func_re_rx_search+set}" = set; then
    4867   echo $ECHO_N "(cached) $ECHO_C" >&6
    4868 else
    4869   cat >conftest.$ac_ext <<_ACEOF
    4870 #line 4870 "configure"
     3161  echo "$ac_t""rx" 1>&6
     3162  echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
     3163echo "configure:3164: checking for re_rx_search" >&5
     3164if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
     3165  echo $ac_n "(cached) $ac_c" 1>&6
     3166else
     3167  cat > conftest.$ac_ext <<EOF
     3168#line 3169 "configure"
    48713169#include "confdefs.h"
    48723170/* System header to define __stub macros and hopefully few prototypes,
    4873     which can conflict with char re_rx_search (); below.  */
     3171    which can conflict with char re_rx_search(); below.  */
    48743172#include <assert.h>
    48753173/* Override any gcc2 internal prototype to avoid an error.  */
    4876 #ifdef __cplusplus
    4877 extern "C"
    4878 #endif
    48793174/* We use char because int might match the return type of a gcc2
    4880    builtin and then its argument prototype would still apply.  */
    4881 char re_rx_search ();
    4882 char (*f) ();
    4883 
    4884 int
    4885 main ()
    4886 {
     3175    builtin and then its argument prototype would still apply.  */
     3176char re_rx_search();
     3177
     3178int main() {
     3179
    48873180/* The GNU C library defines this for functions which it implements
    48883181    to always fail with ENOSYS.  Some functions are actually named
     
    48913184choke me
    48923185#else
    4893 f = re_rx_search;
     3186re_rx_search();
    48943187#endif
    48953188
    4896   ;
    4897   return 0;
    4898 }
    4899 _ACEOF
    4900 rm -f conftest.$ac_objext conftest$ac_exeext
    4901 if { (eval echo "$as_me:4901: \"$ac_link\"") >&5
    4902   (eval $ac_link) 2>&5
    4903   ac_status=$?
    4904   echo "$as_me:4904: \$? = $ac_status" >&5
    4905   (exit $ac_status); } &&
    4906          { ac_try='test -s conftest$ac_exeext'
    4907   { (eval echo "$as_me:4907: \"$ac_try\"") >&5
    4908   (eval $ac_try) 2>&5
    4909   ac_status=$?
    4910   echo "$as_me:4910: \$? = $ac_status" >&5
    4911   (exit $ac_status); }; }; then
    4912   ac_cv_func_re_rx_search=yes
    4913 else
    4914   echo "$as_me: failed program was:" >&5
    4915 cat conftest.$ac_ext >&5
    4916 ac_cv_func_re_rx_search=no
    4917 fi
    4918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4919 fi
    4920 echo "$as_me:4920: result: $ac_cv_func_re_rx_search" >&5
    4921 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    4922 if test $ac_cv_func_re_rx_search = yes; then
     3189; return 0; }
     3190EOF
     3191if { (eval echo configure:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3192  rm -rf conftest*
     3193  eval "ac_cv_func_re_rx_search=yes"
     3194else
     3195  echo "configure: failed program was:" >&5
     3196  cat conftest.$ac_ext >&5
     3197  rm -rf conftest*
     3198  eval "ac_cv_func_re_rx_search=no"
     3199fi
     3200rm -f conftest*
     3201fi
     3202
     3203if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
     3204  echo "$ac_t""yes" 1>&6
    49233205  :
    49243206else
    4925   LIBOBJS="$LIBOBJS rx.o"
    4926 fi
    4927 
    4928 fi
     3207  echo "$ac_t""no" 1>&6
     3208LIBOBJS="$LIBOBJS rx.o"
     3209fi
     3210
     3211fi
     3212
    49293213
    49303214# ---------------------------------------------------------------------------
     
    49333217fi
    49343218
     3219
    49353220# ---------------------------------------------------------------------------
    49363221
    4937 ac_ext=cc
     3222ac_ext=C
     3223# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    49383224ac_cpp='$CXXCPP $CPPFLAGS'
    4939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    4942 
    4943 echo "$as_me:4943: checking that the GDBM library is available" >&5
    4944 echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
     3225ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     3226ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     3227cross_compiling=$ac_cv_prog_cxx_cross
     3228
     3229
     3230
     3231echo $ac_n "checking that the GDBM library is available""... $ac_c" 1>&6
     3232echo "configure:3233: checking that the GDBM library is available" >&5
    49453233if test ! -z "$gdbmdir" ; then
    49463234  # look in given directory for header file
     
    49613249
    49623250  if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
    4963     echo "$as_me:4963: result: $gdbmdir" >&5
    4964 echo "${ECHO_T}$gdbmdir" >&6 ;
     3251    echo "$ac_t""$gdbmdir" 1>&6 ;
    49653252  else
    4966     echo "$as_me:4966: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
    4967 echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
    4968     echo "$as_me:4968: checking looking for GDBM library in default locations" >&5
    4969 echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
     3253    echo "$ac_t""can't find gdbm.h and libgdbm.a in $gdbmdir" 1>&6;
     3254    echo $ac_n "checking looking for GDBM library in default locations""... $ac_c" 1>&6
     3255echo "configure:3256: checking looking for GDBM library in default locations" >&5
    49703256  fi
    49713257fi
     
    49733259# look in default path and in /usr/local
    49743260if test -z "$GDBM_INCLUDE" ; then
    4975   # try in system directory
    4976 
    4977 cat >conftest.$ac_ext <<_ACEOF
    4978 #line 4978 "configure"
     3261  # try in system directory
     3262  cat > conftest.$ac_ext <<EOF
     3263#line 3264 "configure"
    49793264#include "confdefs.h"
    49803265#include <gdbm.h>
    49813266
    4982 int
    4983 main ()
    4984 {
    4985 
    4986   ;
    4987   return 0;
    4988 }
    4989 _ACEOF
    4990 rm -f conftest.$ac_objext
    4991 if { (eval echo "$as_me:4991: \"$ac_compile\"") >&5
    4992   (eval $ac_compile) 2>&5
    4993   ac_status=$?
    4994   echo "$as_me:4994: \$? = $ac_status" >&5
    4995   (exit $ac_status); } &&
    4996          { ac_try='test -s conftest.$ac_objext'
    4997   { (eval echo "$as_me:4997: \"$ac_try\"") >&5
    4998   (eval $ac_try) 2>&5
    4999   ac_status=$?
    5000   echo "$as_me:5000: \$? = $ac_status" >&5
    5001   (exit $ac_status); }; }; then
     3267int main() {
     3268
     3269; return 0; }
     3270EOF
     3271if { (eval echo configure:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3272  rm -rf conftest*
    50023273  success=yes
    50033274else
    5004   echo "$as_me: failed program was:" >&5
    5005 cat conftest.$ac_ext >&5
    5006 success=no
    5007 
    5008 fi
    5009 rm -f conftest.$ac_objext conftest.$ac_ext
     3275  echo "configure: failed program was:" >&5
     3276  cat conftest.$ac_ext >&5
     3277  rm -rf conftest*
     3278  success=no
     3279 
     3280fi
     3281rm -f conftest*
    50103282
    50113283  if test $success = "no"; then
     
    50173289      CXXFLAGS="$CXXFLAGS -I/usr/local/include"
    50183290      LIBS="$LIBS -L/usr/local/lib -lgdbm"
    5019       cat >conftest.$ac_ext <<_ACEOF
    5020 #line 5020 "configure"
     3291      cat > conftest.$ac_ext <<EOF
     3292#line 3293 "configure"
    50213293#include "confdefs.h"
    50223294#include <gdbm.h>
    50233295#include <stdio.h>
    5024 
    5025 int
    5026 main ()
    5027 {
     3296   
     3297int main() {
    50283298printf("%s",gdbm_version);
    5029   ;
    5030   return 0;
    5031 }
    5032 _ACEOF
    5033 rm -f conftest.$ac_objext conftest$ac_exeext
    5034 if { (eval echo "$as_me:5034: \"$ac_link\"") >&5
    5035   (eval $ac_link) 2>&5
    5036   ac_status=$?
    5037   echo "$as_me:5037: \$? = $ac_status" >&5
    5038   (exit $ac_status); } &&
    5039          { ac_try='test -s conftest$ac_exeext'
    5040   { (eval echo "$as_me:5040: \"$ac_try\"") >&5
    5041   (eval $ac_try) 2>&5
    5042   ac_status=$?
    5043   echo "$as_me:5043: \$? = $ac_status" >&5
    5044   (exit $ac_status); }; }; then
     3299; return 0; }
     3300EOF
     3301if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3302  rm -rf conftest*
    50453303  success=/usr/local
    50463304else
    5047   echo "$as_me: failed program was:" >&5
    5048 cat conftest.$ac_ext >&5
    5049 success=no
    5050 
    5051 fi
    5052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     3305  echo "configure: failed program was:" >&5
     3306  cat conftest.$ac_ext >&5
     3307  rm -rf conftest*
     3308  success=no
     3309     
     3310fi
     3311rm -f conftest*
    50533312      CXXFLAGS=$ac_save_CXXFLAGS
    50543313      LIBS=$ac_save_LIBS
    50553314  fi
    50563315
    5057   echo "$as_me:5057: result: $success" >&5
    5058 echo "${ECHO_T}$success" >&6
     3316  echo "$ac_t""$success" 1>&6
    50593317  if test $success = "no"; then
    5060   { { echo "$as_me:5060: error: GDBM Library not available - cannot install" >&5
    5061 echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
    5062    { (exit 1); exit 1; }; }
     3318  { echo "configure: error: GDBM Library not available - cannot install" 1>&2; exit 1; }
    50633319  fi
    50643320fi
    5065 cat >>confdefs.h <<\EOF
     3321cat >> confdefs.h <<\EOF
    50663322#define HAVE_LIBGDBM  1
    50673323EOF
    50683324
    5069 echo "$as_me:5069: checking that Perl 5 is available" >&5
    5070 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
     3325
     3326
     3327
     3328
     3329echo $ac_n "checking that Perl 5 is available""... $ac_c" 1>&6
     3330echo "configure:3331: checking that Perl 5 is available" >&5
    50713331success="no"
    50723332pl_path="$PATH"
     
    50853345try=`expr $try \> 5.000`
    50863346if test $try = "1"; then
    5087 echo "$as_me:5087: result: \"yes\"" >&5
    5088 echo "${ECHO_T}\"yes\"" >&6
     3347echo "$ac_t"""yes"" 1>&6
    50893348else
    50903349success="no"
     
    50933352
    50943353if test $success = "no"; then
    5095 echo "$as_me:5095: result: \"no\"" >&5
    5096 echo "${ECHO_T}\"no\"" >&6
    5097 { { echo "$as_me:5097: error: \"Perl 5 not available - cannot install\"" >&5
    5098 echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
    5099    { (exit 1); exit 1; }; }
     3354echo "$ac_t"""no"" 1>&6
     3355{ echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
    51003356fi
    51013357
    51023358success=no
    5103 echo "$as_me:5103: checking \"whether STL library has known faults\"" >&5
    5104 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
    5105 
    5106 cat >conftest.$ac_ext <<_ACEOF
    5107 #line 5107 "configure"
     3359echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
     3360echo "configure:3361: checking "whether STL library has known faults"" >&5
     3361
     3362cat > conftest.$ac_ext <<EOF
     3363#line 3364 "configure"
    51083364#include "confdefs.h"
    51093365#include <vector>
    51103366
    5111 int
    5112 main ()
    5113 {
    5114 
    5115   ;
    5116   return 0;
    5117 }
    5118 _ACEOF
    5119 rm -f conftest.$ac_objext
    5120 if { (eval echo "$as_me:5120: \"$ac_compile\"") >&5
    5121   (eval $ac_compile) 2>&5
    5122   ac_status=$?
    5123   echo "$as_me:5123: \$? = $ac_status" >&5
    5124   (exit $ac_status); } &&
    5125          { ac_try='test -s conftest.$ac_objext'
    5126   { (eval echo "$as_me:5126: \"$ac_try\"") >&5
    5127   (eval $ac_try) 2>&5
    5128   ac_status=$?
    5129   echo "$as_me:5129: \$? = $ac_status" >&5
    5130   (exit $ac_status); }; }; then
     3367int main() {
     3368
     3369; return 0; }
     3370EOF
     3371if { (eval echo configure:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3372  rm -rf conftest*
    51313373  success=yes
    51323374else
    5133   echo "$as_me: failed program was:" >&5
    5134 cat conftest.$ac_ext >&5
    5135 fi
    5136 rm -f conftest.$ac_objext conftest.$ac_ext
     3375  echo "configure: failed program was:" >&5
     3376  cat conftest.$ac_ext >&5
     3377fi
     3378rm -f conftest*
    51373379
    51383380if test $success = "no"; then
    5139 cat >conftest.$ac_ext <<_ACEOF
    5140 #line 5140 "configure"
     3381cat > conftest.$ac_ext <<EOF
     3382#line 3383 "configure"
    51413383#include "confdefs.h"
    51423384#include <vector.h>
    51433385
    5144 int
    5145 main ()
    5146 {
    5147 
    5148   ;
    5149   return 0;
    5150 }
    5151 _ACEOF
    5152 rm -f conftest.$ac_objext
    5153 if { (eval echo "$as_me:5153: \"$ac_compile\"") >&5
    5154   (eval $ac_compile) 2>&5
    5155   ac_status=$?
    5156   echo "$as_me:5156: \$? = $ac_status" >&5
    5157   (exit $ac_status); } &&
    5158          { ac_try='test -s conftest.$ac_objext'
    5159   { (eval echo "$as_me:5159: \"$ac_try\"") >&5
    5160   (eval $ac_try) 2>&5
    5161   ac_status=$?
    5162   echo "$as_me:5162: \$? = $ac_status" >&5
    5163   (exit $ac_status); }; }; then
     3386int main() {
     3387
     3388; return 0; }
     3389EOF
     3390if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3391  rm -rf conftest*
    51643392  success="yes"
    51653393else
    5166   echo "$as_me: failed program was:" >&5
    5167 cat conftest.$ac_ext >&5
    5168 fi
    5169 rm -f conftest.$ac_objext conftest.$ac_ext
     3394  echo "configure: failed program was:" >&5
     3395  cat conftest.$ac_ext >&5
     3396fi
     3397rm -f conftest*
    51703398fi
    51713399
    51723400if test $success = "no"; then
    5173 cat >conftest.$ac_ext <<_ACEOF
    5174 #line 5174 "configure"
     3401cat > conftest.$ac_ext <<EOF
     3402#line 3403 "configure"
    51753403#include "confdefs.h"
    51763404#include <ospace\\std\\vector>
    51773405
    5178 int
    5179 main ()
    5180 {
    5181 
    5182   ;
    5183   return 0;
    5184 }
    5185 _ACEOF
    5186 rm -f conftest.$ac_objext
    5187 if { (eval echo "$as_me:5187: \"$ac_compile\"") >&5
    5188   (eval $ac_compile) 2>&5
    5189   ac_status=$?
    5190   echo "$as_me:5190: \$? = $ac_status" >&5
    5191   (exit $ac_status); } &&
    5192          { ac_try='test -s conftest.$ac_objext'
    5193   { (eval echo "$as_me:5193: \"$ac_try\"") >&5
    5194   (eval $ac_try) 2>&5
    5195   ac_status=$?
    5196   echo "$as_me:5196: \$? = $ac_status" >&5
    5197   (exit $ac_status); }; }; then
     3406int main() {
     3407
     3408; return 0; }
     3409EOF
     3410if { (eval echo configure:3411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3411  rm -rf conftest*
    51983412  success="yes"
    51993413else
    5200   echo "$as_me: failed program was:" >&5
    5201 cat conftest.$ac_ext >&5
    5202 fi
    5203 rm -f conftest.$ac_objext conftest.$ac_ext
     3414  echo "configure: failed program was:" >&5
     3415  cat conftest.$ac_ext >&5
     3416fi
     3417rm -f conftest*
    52043418fi
    52053419
    52063420if test $success = yes; then
    5207 echo "$as_me:5207: result: \"no\"" >&5
    5208 echo "${ECHO_T}\"no\"" >&6
    5209 else
    5210 echo "$as_me:5210: result: \"yes\"" >&5
    5211 echo "${ECHO_T}\"yes\"" >&6
    5212 { { echo "$as_me:5212: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
    5213 echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
    5214    { (exit 1); exit 1; }; }
     3421echo "$ac_t"""no"" 1>&6
     3422else
     3423echo "$ac_t"""yes"" 1>&6
     3424{ echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
    52153425fi
    52163426
     
    52213431  gsdlos=windows
    52223432 fi
     3433
    52233434
    52243435# ---------------------------------------------------------------------------
     
    52423453echo "Making$moduleDirs in modules directory"
    52433454
     3455
    52443456# ---------------------------------------------------------------------------
    52453457ac_configure_args="$ac_configure_args --host=$host --target=$target"
    5246 
    5247 subdirs="$subdirs packages"
     3458subdirs="packages"
     3459
    52483460
    52493461# the list of folders in the src folder
    52503462srclist="src/mgpp/lib/Makefile src/mgpp/text/Makefile src/mgpp/Makefile \
    52513463          src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile \
    5252           src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
    5253 
    5254 ac_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"
    5255 cat >confcache <<\_ACEOF
     3464          src/oaiservr/Makefile src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
     3465
     3466trap '' 1 2 15
     3467cat > confcache <<\EOF
    52563468# This file is a shell script that caches the results of configure
    52573469# tests run on this system so they can be shared between configure
    5258 # scripts and configure runs, see configure's option --config-cache.
    5259 # It is not useful on other systems.  If it contains results you don't
    5260 # want to keep, you may remove or edit it.
     3470# scripts and configure runs.  It is not useful on other systems.
     3471# If it contains results you don't want to keep, you may remove or edit it.
    52613472#
    5262 # config.status only pays attention to the cache file if you give it
    5263 # the --recheck option to rerun configure.
     3473# By default, configure uses ./config.cache as the cache file,
     3474# creating it if it does not exist already.  You can give configure
     3475# the --cache-file=FILE option to use a different cache file; that is
     3476# what configure does when it calls configure scripts in
     3477# subdirectories, so they share the cache.
     3478# Giving --cache-file=/dev/null disables caching, for debugging configure.
     3479# config.status only pays attention to the cache file if you give it the
     3480# --recheck option to rerun configure.
    52643481#
    5265 # `ac_cv_env_foo' variables (set or unset) will be overriden when
    5266 # loading this file, other *unset* `ac_cv_foo' will be assigned the
    5267 # following values.
    5268 
    5269 _ACEOF
    5270 
     3482EOF
    52713483# The following way of writing the cache mishandles newlines in values,
    52723484# but we know of no workaround that is simple, portable, and efficient.
     
    52743486# Ultrix sh set writes to stderr and can't be redirected directly,
    52753487# and sets the high bit in the cache file unless we assign to the vars.
    5276 {
    5277   (set) 2>&1 |
    5278     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    5279     *ac_space=\ *)
    5280       # `set' does not quote correctly, so add quotes (double-quote
    5281       # substitution turns \\\\ into \\, and sed turns \\ into \).
    5282       sed -n \
    5283         "s/'/'\\\\''/g;
    5284           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    5285       ;;
    5286     *)
    5287       # `set' quotes correctly as required by POSIX, so do not add quotes.
    5288       sed -n \
    5289         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    5290       ;;
    5291     esac;
    5292 } |
    5293   sed '
    5294      t clear
    5295      : clear
    5296      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    5297      t end
    5298      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    5299      : end' >>confcache
    5300 if cmp -s $cache_file confcache; then :; else
     3488(set) 2>&1 |
     3489  case `(ac_space=' '; set | grep ac_space) 2>&1` in
     3490  *ac_space=\ *)
     3491    # `set' does not quote correctly, so add quotes (double-quote substitution
     3492    # turns \\\\ into \\, and sed turns \\ into \).
     3493    sed -n \
     3494      -e "s/'/'\\\\''/g" \
     3495      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
     3496    ;;
     3497  *)
     3498    # `set' quotes correctly as required by POSIX, so do not add quotes.
     3499    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
     3500    ;;
     3501  esac >> confcache
     3502if cmp -s $cache_file confcache; then
     3503  :
     3504else
    53013505  if test -w $cache_file; then
    5302     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    5303     cat confcache >$cache_file
     3506    echo "updating cache $cache_file"
     3507    cat confcache > $cache_file
    53043508  else
    53053509    echo "not updating unwritable cache $cache_file"
     
    53083512rm -f confcache
    53093513
     3514trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     3515
    53103516test "x$prefix" = xNONE && prefix=$ac_default_prefix
    53113517# Let make expand exec_prefix.
    53123518test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    53133519
    5314 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    5315 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    5316 # trailing colons and then remove the whole line if VPATH becomes empty
    5317 # (actually we leave an empty line to preserve line numbers).
     3520# Any assignment to VPATH causes Sun make to only execute
     3521# the first set of double-colon rules, so remove it if not needed.
     3522# If there is a colon in the path, we need to keep it.
    53183523if test "x$srcdir" = x.; then
    5319   ac_vpsub='/^[     ]*VPATH[    ]*=/{
    5320 s/:*\$(srcdir):*/:/;
    5321 s/:*\${srcdir}:*/:/;
    5322 s/:*@srcdir@:*/:/;
    5323 s/^\([^=]*=[    ]*\):*/\1/;
    5324 s/:*$//;
    5325 s/^[^=]*=[  ]*$//;
    5326 }'
    5327 fi
     3524  ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
     3525fi
     3526
     3527trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
    53283528
    53293529DEFS=-DHAVE_CONFIG_H
    53303530
     3531# Without the "./", some shells look in PATH for config.status.
    53313532: ${CONFIG_STATUS=./config.status}
    5332 ac_clean_files_save=$ac_clean_files
    5333 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    5334 { echo "$as_me:5334: creating $CONFIG_STATUS" >&5
    5335 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    5336 cat >$CONFIG_STATUS <<_ACEOF
    5337 #! $SHELL
     3533
     3534echo creating $CONFIG_STATUS
     3535rm -f $CONFIG_STATUS
     3536cat > $CONFIG_STATUS <<EOF
     3537#! /bin/sh
    53383538# Generated automatically by configure.
    53393539# Run this file to recreate the current configuration.
     3540# This directory was configured as follows,
     3541# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     3542#
     3543# $0 $ac_configure_args
     3544#
    53403545# Compiler output produced by configure, useful for debugging
    5341 # configure, is in config.log if it exists.
    5342 
    5343 debug=false
    5344 SHELL=\${CONFIG_SHELL-$SHELL}
    5345 ac_cs_invocation="\$0 \$@"
    5346 
    5347 _ACEOF
    5348 
    5349 cat >>$CONFIG_STATUS <<\_ACEOF
    5350 # Be Bourne compatible
    5351 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    5352   emulate sh
    5353   NULLCMD=:
    5354 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    5355   set -o posix
    5356 fi
    5357 
    5358 # Name of the executable.
    5359 as_me=`echo "$0" |sed 's,.*[\\/],,'`
    5360 
    5361 if expr a : '\(a\)' >/dev/null 2>&1; then
    5362   as_expr=expr
    5363 else
    5364   as_expr=false
    5365 fi
    5366 
    5367 rm -f conf$$ conf$$.exe conf$$.file
    5368 echo >conf$$.file
    5369 if ln -s conf$$.file conf$$ 2>/dev/null; then
    5370   # We could just check for DJGPP; but this test a) works b) is more generic
    5371   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    5372   if test -f conf$$.exe; then
    5373     # Don't use ln at all; we don't have any links
    5374     as_ln_s='cp -p'
     3546# configure, is in ./config.log if it exists.
     3547
     3548ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
     3549for ac_option
     3550do
     3551  case "\$ac_option" in
     3552  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     3553    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
     3554    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
     3555  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
     3556    echo "$CONFIG_STATUS generated by autoconf version 2.13"
     3557    exit 0 ;;
     3558  -help | --help | --hel | --he | --h)
     3559    echo "\$ac_cs_usage"; exit 0 ;;
     3560  *) echo "\$ac_cs_usage"; exit 1 ;;
     3561  esac
     3562done
     3563
     3564ac_given_srcdir=$srcdir
     3565ac_given_INSTALL="$INSTALL"
     3566
     3567trap 'rm -fr `echo "packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
     3568          packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
     3569      lib/Makefile Makefile $srclist $moduleDirs config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     3570EOF
     3571cat >> $CONFIG_STATUS <<EOF
     3572
     3573# Protect against being on the right side of a sed subst in config.status.
     3574sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
     3575 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
     3576$ac_vpsub
     3577$extrasub
     3578s%@SHELL@%$SHELL%g
     3579s%@CFLAGS@%$CFLAGS%g
     3580s%@CPPFLAGS@%$CPPFLAGS%g
     3581s%@CXXFLAGS@%$CXXFLAGS%g
     3582s%@FFLAGS@%$FFLAGS%g
     3583s%@DEFS@%$DEFS%g
     3584s%@LDFLAGS@%$LDFLAGS%g
     3585s%@LIBS@%$LIBS%g
     3586s%@exec_prefix@%$exec_prefix%g
     3587s%@prefix@%$prefix%g
     3588s%@program_transform_name@%$program_transform_name%g
     3589s%@bindir@%$bindir%g
     3590s%@sbindir@%$sbindir%g
     3591s%@libexecdir@%$libexecdir%g
     3592s%@datadir@%$datadir%g
     3593s%@sysconfdir@%$sysconfdir%g
     3594s%@sharedstatedir@%$sharedstatedir%g
     3595s%@localstatedir@%$localstatedir%g
     3596s%@libdir@%$libdir%g
     3597s%@includedir@%$includedir%g
     3598s%@oldincludedir@%$oldincludedir%g
     3599s%@infodir@%$infodir%g
     3600s%@mandir@%$mandir%g
     3601s%@PACKAGE@%$PACKAGE%g
     3602s%@VERSION@%$VERSION%g
     3603s%@USE_FASTCGI@%$USE_FASTCGI%g
     3604s%@USE_LANGACTION@%$USE_LANGACTION%g
     3605s%@USE_CORBA@%$USE_CORBA%g
     3606s%@MICO_DIR@%$MICO_DIR%g
     3607s%@USE_Z3950@%$USE_Z3950%g
     3608s%@CC@%$CC%g
     3609s%@CXX@%$CXX%g
     3610s%@AWK@%$AWK%g
     3611s%@YACC@%$YACC%g
     3612s%@host@%$host%g
     3613s%@host_alias@%$host_alias%g
     3614s%@host_cpu@%$host_cpu%g
     3615s%@host_vendor@%$host_vendor%g
     3616s%@host_os@%$host_os%g
     3617s%@target@%$target%g
     3618s%@target_alias@%$target_alias%g
     3619s%@target_cpu@%$target_cpu%g
     3620s%@target_vendor@%$target_vendor%g
     3621s%@target_os@%$target_os%g
     3622s%@build@%$build%g
     3623s%@build_alias@%$build_alias%g
     3624s%@build_cpu@%$build_cpu%g
     3625s%@build_vendor@%$build_vendor%g
     3626s%@build_os@%$build_os%g
     3627s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     3628s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     3629s%@INSTALL_DATA@%$INSTALL_DATA%g
     3630s%@LN_S@%$LN_S%g
     3631s%@SET_MAKE@%$SET_MAKE%g
     3632s%@RANLIB@%$RANLIB%g
     3633s%@MICO_VER@%$MICO_VER%g
     3634s%@CPP@%$CPP%g
     3635s%@U@%$U%g
     3636s%@ANSI2KNR@%$ANSI2KNR%g
     3637s%@ALLOCA@%$ALLOCA%g
     3638s%@LIBOBJS@%$LIBOBJS%g
     3639s%@STATIC@%$STATIC%g
     3640s%@GDBM_LIBPATH@%$GDBM_LIBPATH%g
     3641s%@GDBM_INCLUDE@%$GDBM_INCLUDE%g
     3642s%@gsdlos@%$gsdlos%g
     3643s%@MODULEDIRS@%$MODULEDIRS%g
     3644s%@subdirs@%$subdirs%g
     3645
     3646CEOF
     3647EOF
     3648
     3649cat >> $CONFIG_STATUS <<\EOF
     3650
     3651# Split the substitutions into bite-sized pieces for seds with
     3652# small command number limits, like on Digital OSF/1 and HP-UX.
     3653ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
     3654ac_file=1 # Number of current file.
     3655ac_beg=1 # First line for current file.
     3656ac_end=$ac_max_sed_cmds # Line after last line for current file.
     3657ac_more_lines=:
     3658ac_sed_cmds=""
     3659while $ac_more_lines; do
     3660  if test $ac_beg -gt 1; then
     3661    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    53753662  else
    5376     as_ln_s='ln -s'
     3663    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    53773664  fi
    5378 elif ln conf$$.file conf$$ 2>/dev/null; then
    5379   as_ln_s=ln
    5380 else
    5381   as_ln_s='cp -p'
    5382 fi
    5383 rm -f conf$$ conf$$.exe conf$$.file
    5384 
    5385 as_executable_p="test -f"
    5386 
    5387 # Support unset when possible.
    5388 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    5389   as_unset=unset
    5390 else
    5391   as_unset=false
    5392 fi
    5393 
    5394 # NLS nuisances.
    5395 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    5396 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    5397 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    5398 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    5399 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    5400 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    5401 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    5402 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
    5403 
    5404 # IFS
    5405 # We need space, tab and new line, in precisely that order.
    5406 as_nl='
    5407 '
    5408 IFS="   $as_nl"
    5409 
    5410 # CDPATH.
    5411 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
    5412 
    5413 exec 6>&1
    5414 
    5415 _ACEOF
    5416 
    5417 # Files that config.status was made for.
    5418 if test -n "$ac_config_files"; then
    5419   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    5420 fi
    5421 
    5422 if test -n "$ac_config_headers"; then
    5423   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    5424 fi
    5425 
    5426 if test -n "$ac_config_links"; then
    5427   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    5428 fi
    5429 
    5430 if test -n "$ac_config_commands"; then
    5431   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    5432 fi
    5433 
    5434 cat >>$CONFIG_STATUS <<\EOF
    5435 
    5436 ac_cs_usage="\
    5437 \`$as_me' instantiates files from templates according to the
    5438 current configuration.
    5439 
    5440 Usage: $0 [OPTIONS] [FILE]...
    5441 
    5442   -h, --help       print this help, then exit
    5443   -V, --version    print version number, then exit
    5444   -d, --debug      don't remove temporary files
    5445       --recheck    update $as_me by reconfiguring in the same conditions
    5446   --file=FILE[:TEMPLATE]
    5447                    instantiate the configuration file FILE
    5448   --header=FILE[:TEMPLATE]
    5449                    instantiate the configuration header FILE
    5450 
    5451 Configuration files:
    5452 $config_files
    5453 
    5454 Configuration headers:
    5455 $config_headers
    5456 
    5457 Report bugs to <[email protected]>."
    5458 EOF
    5459 
    5460 cat >>$CONFIG_STATUS <<EOF
    5461 ac_cs_version="\\
    5462 config.status
    5463 configured by $0, generated by GNU Autoconf 2.50,
    5464   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    5465 
    5466 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    5467 Free Software Foundation, Inc.
    5468 This config.status script is free software; the Free Software Foundation
    5469 gives unlimited permission to copy, distribute and modify it."
    5470 srcdir=$srcdir
    5471 INSTALL="$INSTALL"
    5472 EOF
    5473 
    5474 cat >>$CONFIG_STATUS <<\EOF
    5475 # If no file are specified by the user, then we need to provide default
    5476 # value.  By we need to know if files were specified by the user.
    5477 ac_need_defaults=:
    5478 while test $# != 0
    5479 do
    5480   case $1 in
    5481   --*=*)
    5482     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    5483     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    5484     shift
    5485     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
    5486     shift
    5487     ;;
    5488   -*);;
    5489   *) # This is not an option, so the user has probably given explicit
    5490      # arguments.
    5491      ac_need_defaults=false;;
     3665  if test ! -s conftest.s$ac_file; then
     3666    ac_more_lines=false
     3667    rm -f conftest.s$ac_file
     3668  else
     3669    if test -z "$ac_sed_cmds"; then
     3670      ac_sed_cmds="sed -f conftest.s$ac_file"
     3671    else
     3672      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
     3673    fi
     3674    ac_file=`expr $ac_file + 1`
     3675    ac_beg=$ac_end
     3676    ac_end=`expr $ac_end + $ac_max_sed_cmds`
     3677  fi
     3678done
     3679if test -z "$ac_sed_cmds"; then
     3680  ac_sed_cmds=cat
     3681fi
     3682EOF
     3683
     3684cat >> $CONFIG_STATUS <<EOF
     3685
     3686CONFIG_FILES=\${CONFIG_FILES-"packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
     3687          packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
     3688      lib/Makefile Makefile $srclist $moduleDirs"}
     3689EOF
     3690cat >> $CONFIG_STATUS <<\EOF
     3691for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
     3692  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     3693  case "$ac_file" in
     3694  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     3695       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     3696  *) ac_file_in="${ac_file}.in" ;;
    54923697  esac
    54933698
    5494   case $1 in
    5495   # Handling of the options.
    5496 EOF
    5497 cat >>$CONFIG_STATUS <<EOF
    5498   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    5499     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    5500     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
    5501 EOF
    5502 cat >>$CONFIG_STATUS <<\EOF
    5503   --version | --vers* | -V )
    5504     echo "$ac_cs_version"; exit 0 ;;
    5505   --he | --h)
    5506     # Conflict between --help and --header
    5507     { { echo "$as_me:5507: error: ambiguous option: $1
    5508 Try \`$0 --help' for more information." >&5
    5509 echo "$as_me: error: ambiguous option: $1
    5510 Try \`$0 --help' for more information." >&2;}
    5511    { (exit 1); exit 1; }; };;
    5512   --help | --hel | -h )
    5513     echo "$ac_cs_usage"; exit 0 ;;
    5514   --debug | --d* | -d )
    5515     debug=: ;;
    5516   --file | --fil | --fi | --f )
    5517     shift
    5518     CONFIG_FILES="$CONFIG_FILES $1"
    5519     ac_need_defaults=false;;
    5520   --header | --heade | --head | --hea )
    5521     shift
    5522     CONFIG_HEADERS="$CONFIG_HEADERS $1"
    5523     ac_need_defaults=false;;
    5524 
    5525   # Handling of arguments.
    5526   'packages/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    5527   'packages/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/Makefile" ;;
    5528   'packages/mg/src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/text/Makefile" ;;
    5529   'packages/mg/src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/images/Makefile" ;;
    5530   'packages/mg/src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/scripts/Makefile" ;;
    5531   'packages/mg/lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/lib/Makefile" ;;
    5532   'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    5533   'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    5534   '$srclist' ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
    5535   '$moduleDirs' ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
    5536   'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    5537 
    5538   # This is an error.
    5539   -*) { { echo "$as_me:5539: error: unrecognized option: $1
    5540 Try \`$0 --help' for more information." >&5
    5541 echo "$as_me: error: unrecognized option: $1
    5542 Try \`$0 --help' for more information." >&2;}
    5543    { (exit 1); exit 1; }; } ;;
    5544   *) { { echo "$as_me:5544: error: invalid argument: $1" >&5
    5545 echo "$as_me: error: invalid argument: $1" >&2;}
    5546    { (exit 1); exit 1; }; };;
    5547   esac
    5548   shift
    5549 done
    5550 
    5551 exec 5>>config.log
    5552 cat >&5 << _ACEOF
    5553 
    5554 ## ----------------------- ##
    5555 ## Running config.status.  ##
    5556 ## ----------------------- ##
    5557 
    5558 This file was extended by $as_me 2.50, executed with
    5559   > $ac_cs_invocation
    5560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
    5561 
    5562 _ACEOF
    5563 EOF
    5564 
    5565 cat >>$CONFIG_STATUS <<\EOF
    5566 # If the user did not use the arguments to specify the items to instantiate,
    5567 # then the envvar interface is used.  Set only those that are not.
    5568 # We use the long form for the default assignment because of an extremely
    5569 # bizarre bug on SunOS 4.1.3.
    5570 if $ac_need_defaults; then
    5571   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
    5572   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    5573 fi
    5574 
    5575 # Create a temporary directory, and hook for its removal unless debugging.
    5576 $debug ||
    5577 {
    5578   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    5579   trap '{ (exit $?); exit $?; }' 1 2 13 15
    5580 }
    5581 
    5582 # Create a (secure) tmp directory for tmp files.
    5583 : ${TMPDIR=/tmp}
    5584 {
    5585   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
    5586   test -n "$tmp" && test -d "$tmp"
    5587 }  ||
    5588 {
    5589   tmp=$TMPDIR/cs$$-$RANDOM
    5590   (umask 077 && mkdir $tmp)
    5591 } ||
    5592 {
    5593    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
    5594    { (exit 1); exit 1; }
    5595 }
    5596 
    5597 EOF
    5598 
    5599 cat >>$CONFIG_STATUS <<EOF
    5600 
    5601 #
    5602 # CONFIG_FILES section.
    5603 #
    5604 
    5605 # No need to generate the scripts if there are no CONFIG_FILES.
    5606 # This happens for instance when ./config.status config.h
    5607 if test -n "\$CONFIG_FILES"; then
    5608   # Protect against being on the right side of a sed subst in config.status.
    5609   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    5610    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    5611 s,@SHELL@,$SHELL,;t t
    5612 s,@exec_prefix@,$exec_prefix,;t t
    5613 s,@prefix@,$prefix,;t t
    5614 s,@program_transform_name@,$program_transform_name,;t t
    5615 s,@bindir@,$bindir,;t t
    5616 s,@sbindir@,$sbindir,;t t
    5617 s,@libexecdir@,$libexecdir,;t t
    5618 s,@datadir@,$datadir,;t t
    5619 s,@sysconfdir@,$sysconfdir,;t t
    5620 s,@sharedstatedir@,$sharedstatedir,;t t
    5621 s,@localstatedir@,$localstatedir,;t t
    5622 s,@libdir@,$libdir,;t t
    5623 s,@includedir@,$includedir,;t t
    5624 s,@oldincludedir@,$oldincludedir,;t t
    5625 s,@infodir@,$infodir,;t t
    5626 s,@mandir@,$mandir,;t t
    5627 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    5628 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    5629 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    5630 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    5631 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    5632 s,@ECHO_C@,$ECHO_C,;t t
    5633 s,@ECHO_N@,$ECHO_N,;t t
    5634 s,@ECHO_T@,$ECHO_T,;t t
    5635 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    5636 s,@DEFS@,$DEFS,;t t
    5637 s,@LIBS@,$LIBS,;t t
    5638 s,@PACKAGE@,$PACKAGE,;t t
    5639 s,@VERSION@,$VERSION,;t t
    5640 s,@USE_FASTCGI@,$USE_FASTCGI,;t t
    5641 s,@USE_LANGACTION@,$USE_LANGACTION,;t t
    5642 s,@USE_CORBA@,$USE_CORBA,;t t
    5643 s,@MICO_DIR@,$MICO_DIR,;t t
    5644 s,@USE_Z3950@,$USE_Z3950,;t t
    5645 s,@CFLAGS@,$CFLAGS,;t t
    5646 s,@CC@,$CC,;t t
    5647 s,@LDFLAGS@,$LDFLAGS,;t t
    5648 s,@CPPFLAGS@,$CPPFLAGS,;t t
    5649 s,@ac_ct_CC@,$ac_ct_CC,;t t
    5650 s,@EXEEXT@,$EXEEXT,;t t
    5651 s,@OBJEXT@,$OBJEXT,;t t
    5652 s,@CXX@,$CXX,;t t
    5653 s,@CXXFLAGS@,$CXXFLAGS,;t t
    5654 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    5655 s,@AWK@,$AWK,;t t
    5656 s,@YACC@,$YACC,;t t
    5657 s,@build@,$build,;t t
    5658 s,@build_cpu@,$build_cpu,;t t
    5659 s,@build_vendor@,$build_vendor,;t t
    5660 s,@build_os@,$build_os,;t t
    5661 s,@host@,$host,;t t
    5662 s,@host_cpu@,$host_cpu,;t t
    5663 s,@host_vendor@,$host_vendor,;t t
    5664 s,@host_os@,$host_os,;t t
    5665 s,@target@,$target,;t t
    5666 s,@target_cpu@,$target_cpu,;t t
    5667 s,@target_vendor@,$target_vendor,;t t
    5668 s,@target_os@,$target_os,;t t
    5669 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    5670 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    5671 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    5672 s,@LN_S@,$LN_S,;t t
    5673 s,@SET_MAKE@,$SET_MAKE,;t t
    5674 s,@RANLIB@,$RANLIB,;t t
    5675 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    5676 s,@MICO_VER@,$MICO_VER,;t t
    5677 s,@CPP@,$CPP,;t t
    5678 s,@U@,$U,;t t
    5679 s,@ANSI2KNR@,$ANSI2KNR,;t t
    5680 s,@ALLOCA@,$ALLOCA,;t t
    5681 s,@LIBOBJS@,$LIBOBJS,;t t
    5682 s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
    5683 s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
    5684 s,@gsdlos@,$gsdlos,;t t
    5685 s,@MODULEDIRS@,$MODULEDIRS,;t t
    5686 s,@subdirs@,$subdirs,;t t
    5687 CEOF
    5688 
    5689 EOF
    5690 
    5691   cat >>$CONFIG_STATUS <<\EOF
    5692   # Split the substitutions into bite-sized pieces for seds with
    5693   # small command number limits, like on Digital OSF/1 and HP-UX.
    5694   ac_max_sed_lines=48
    5695   ac_sed_frag=1 # Number of current file.
    5696   ac_beg=1 # First line for current file.
    5697   ac_end=$ac_max_sed_lines # Line after last line for current file.
    5698   ac_more_lines=:
    5699   ac_sed_cmds=
    5700   while $ac_more_lines; do
    5701     if test $ac_beg -gt 1; then
    5702       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    5703     else
    5704       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    5705     fi
    5706     if test ! -s $tmp/subs.frag; then
    5707       ac_more_lines=false
    5708     else
    5709       # The purpose of the label and of the branching condition is to
    5710       # speed up the sed processing (if there are no `@' at all, there
    5711       # is no need to browse any of the substitutions).
    5712       # These are the two extra sed commands mentioned above.
    5713       (echo ':t
    5714   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    5715       if test -z "$ac_sed_cmds"; then
    5716     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    5717       else
    5718     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    5719       fi
    5720       ac_sed_frag=`expr $ac_sed_frag + 1`
    5721       ac_beg=$ac_end
    5722       ac_end=`expr $ac_end + $ac_max_sed_lines`
    5723     fi
    5724   done
    5725   if test -z "$ac_sed_cmds"; then
    5726     ac_sed_cmds=cat
    5727   fi
    5728 fi # test -n "$CONFIG_FILES"
    5729 
    5730 EOF
    5731 cat >>$CONFIG_STATUS <<\EOF
    5732 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    5733   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    5734   case $ac_file in
    5735   - | *:- | *:-:* ) # input from stdin
    5736         cat >$tmp/stdin
    5737         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5738         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5739   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5740         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5741   * )   ac_file_in=$ac_file.in ;;
    5742   esac
    5743 
    5744   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    5745   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    5746          X"$ac_file" : 'X\(//\)[^/]' \| \
    5747          X"$ac_file" : 'X\(//\)$' \| \
    5748          X"$ac_file" : 'X\(/\)' \| \
    5749          .     : '\(.\)' 2>/dev/null ||
    5750 echo X"$ac_file" |
    5751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    5752       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    5753       /^X\(\/\/\)$/{ s//\1/; q; }
    5754       /^X\(\/\).*/{ s//\1/; q; }
    5755       s/.*/./; q'`
     3699  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
     3700
     3701  # Remove last slash and all that follows it.  Not all systems have dirname.
     3702  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    57563703  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    5757     { case "$ac_dir" in
    5758   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    5759   *)                      as_incr_dir=.;;
    5760 esac
    5761 as_dummy="$ac_dir"
    5762 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    5763   case $as_mkdir_dir in
    5764     # Skip DOS drivespec
    5765     ?:) as_incr_dir=$as_mkdir_dir ;;
    5766     *)
    5767       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5768       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5769     ;;
    5770   esac
    5771 done; }
    5772 
    5773     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
     3704    # The file is in a subdirectory.
     3705    test ! -d "$ac_dir" && mkdir "$ac_dir"
     3706    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    57743707    # A "../" for each directory in $ac_dir_suffix.
    5775     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
     3708    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    57763709  else
    57773710    ac_dir_suffix= ac_dots=
    57783711  fi
    57793712
    5780   case $srcdir in
    5781   .)  ac_srcdir=.
    5782       if test -z "$ac_dots"; then
    5783          ac_top_srcdir=.
    5784       else
    5785          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
    5786       fi ;;
    5787   [\\/]* | ?:[\\/]* )
    5788       ac_srcdir=$srcdir$ac_dir_suffix;
    5789       ac_top_srcdir=$srcdir ;;
     3713  case "$ac_given_srcdir" in
     3714  .)  srcdir=.
     3715      if test -z "$ac_dots"; then top_srcdir=.
     3716      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
     3717  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    57903718  *) # Relative path.
    5791     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    5792     ac_top_srcdir=$ac_dots$srcdir ;;
     3719    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
     3720    top_srcdir="$ac_dots$ac_given_srcdir" ;;
    57933721  esac
    57943722
    5795   case $INSTALL in
    5796   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    5797   *) ac_INSTALL=$ac_dots$INSTALL ;;
     3723  case "$ac_given_INSTALL" in
     3724  [/$]*) INSTALL="$ac_given_INSTALL" ;;
     3725  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    57983726  esac
    57993727
    5800   if test x"$ac_file" != x-; then
    5801     { echo "$as_me:5801: creating $ac_file" >&5
    5802 echo "$as_me: creating $ac_file" >&6;}
    5803     rm -f "$ac_file"
    5804   fi
    5805   # Let's still pretend it is `configure' which instantiates (i.e., don't
    5806   # use $as_me), people would be surprised to read:
    5807   #    /* config.h.  Generated automatically by config.status.  */
    5808   configure_input="Generated automatically from `echo $ac_file_in |
    5809                                                  sed 's,.*/,,'` by configure."
    5810 
    5811   # First look for the input files in the build tree, otherwise in the
    5812   # src tree.
    5813   ac_file_inputs=`IFS=:
    5814     for f in $ac_file_in; do
    5815       case $f in
    5816       -) echo $tmp/stdin ;;
    5817       [\\/$]*)
    5818          # Absolute (can't be DOS-style, as IFS=:)
    5819          test -f "$f" || { { echo "$as_me:5819: error: cannot find input file: $f" >&5
    5820 echo "$as_me: error: cannot find input file: $f" >&2;}
    5821    { (exit 1); exit 1; }; }
    5822          echo $f;;
    5823       *) # Relative
    5824          if test -f "$f"; then
    5825            # Build tree
    5826            echo $f
    5827          elif test -f "$srcdir/$f"; then
    5828            # Source tree
    5829            echo $srcdir/$f
    5830          else
    5831            # /dev/null tree
    5832            { { echo "$as_me:5832: error: cannot find input file: $f" >&5
    5833 echo "$as_me: error: cannot find input file: $f" >&2;}
    5834    { (exit 1); exit 1; }; }
    5835          fi;;
    5836       esac
    5837     done` || { (exit 1); exit 1; }
    5838 EOF
    5839 cat >>$CONFIG_STATUS <<EOF
    5840   sed "$ac_vpsub
    5841 $extrasub
    5842 EOF
    5843 cat >>$CONFIG_STATUS <<\EOF
    5844 :t
    5845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    5846 s,@configure_input@,$configure_input,;t t
    5847 s,@srcdir@,$ac_srcdir,;t t
    5848 s,@top_srcdir@,$ac_top_srcdir,;t t
    5849 s,@INSTALL@,$ac_INSTALL,;t t
    5850 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    5851   rm -f $tmp/stdin
    5852   if test x"$ac_file" != x-; then
    5853     mv $tmp/out $ac_file
    5854   else
    5855     cat $tmp/out
    5856     rm -f $tmp/out
    5857   fi
    5858 
    5859 done
    5860 EOF
    5861 cat >>$CONFIG_STATUS <<\EOF
    5862 
    5863 #
    5864 # CONFIG_HEADER section.
    5865 #
     3728  echo creating "$ac_file"
     3729  rm -f "$ac_file"
     3730  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
     3731  case "$ac_file" in
     3732  *Makefile*) ac_comsub="1i\\
     3733# $configure_input" ;;
     3734  *) ac_comsub= ;;
     3735  esac
     3736
     3737  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     3738  sed -e "$ac_comsub
     3739s%@configure_input@%$configure_input%g
     3740s%@srcdir@%$srcdir%g
     3741s%@top_srcdir@%$top_srcdir%g
     3742s%@INSTALL@%$INSTALL%g
     3743" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
     3744fi; done
     3745rm -f conftest.s*
    58663746
    58673747# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    58693749#
    58703750# ac_d sets the value in "#define NAME VALUE" lines.
    5871 ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    5872 ac_dB='[    ].*$,\1#\2'
    5873 ac_dC=' '
    5874 ac_dD=',;t'
    5875 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    5876 ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    5877 ac_uB='$,\1#\2define\3'
     3751ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
     3752ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
     3753ac_dC='\3'
     3754ac_dD='%g'
     3755# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
     3756ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     3757ac_uB='\([  ]\)%\1#\2define\3'
    58783758ac_uC=' '
    5879 ac_uD=',;t'
    5880 
    5881 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
     3759ac_uD='\4%g'
     3760# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     3761ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     3762ac_eB='$%\1#\2define\3'
     3763ac_eC=' '
     3764ac_eD='%g'
     3765
     3766if test "${CONFIG_HEADERS+set}" != set; then
     3767EOF
     3768cat >> $CONFIG_STATUS <<EOF
     3769  CONFIG_HEADERS="config.h"
     3770EOF
     3771cat >> $CONFIG_STATUS <<\EOF
     3772fi
     3773for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
    58823774  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    5883   case $ac_file in
    5884   - | *:- | *:-:* ) # input from stdin
    5885         cat >$tmp/stdin
    5886         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5887         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5888   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5889         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5890   * )   ac_file_in=$ac_file.in ;;
     3775  case "$ac_file" in
     3776  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     3777       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     3778  *) ac_file_in="${ac_file}.in" ;;
    58913779  esac
    58923780
    5893   test x"$ac_file" != x- && { echo "$as_me:5893: creating $ac_file" >&5
    5894 echo "$as_me: creating $ac_file" >&6;}
    5895 
    5896   # First look for the input files in the build tree, otherwise in the
    5897   # src tree.
    5898   ac_file_inputs=`IFS=:
    5899     for f in $ac_file_in; do
    5900       case $f in
    5901       -) echo $tmp/stdin ;;
    5902       [\\/$]*)
    5903          # Absolute (can't be DOS-style, as IFS=:)
    5904          test -f "$f" || { { echo "$as_me:5904: error: cannot find input file: $f" >&5
    5905 echo "$as_me: error: cannot find input file: $f" >&2;}
    5906    { (exit 1); exit 1; }; }
    5907          echo $f;;
    5908       *) # Relative
    5909          if test -f "$f"; then
    5910            # Build tree
    5911            echo $f
    5912          elif test -f "$srcdir/$f"; then
    5913            # Source tree
    5914            echo $srcdir/$f
    5915          else
    5916            # /dev/null tree
    5917            { { echo "$as_me:5917: error: cannot find input file: $f" >&5
    5918 echo "$as_me: error: cannot find input file: $f" >&2;}
    5919    { (exit 1); exit 1; }; }
    5920          fi;;
    5921       esac
    5922     done` || { (exit 1); exit 1; }
    5923   # Remove the trailing spaces.
    5924   sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
    5925 
    5926 EOF
    5927 
    5928 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    5929 # `conftest.undefs', that substitutes the proper values into
    5930 # config.h.in to produce config.h.  The first handles `#define'
    5931 # templates, and the second `#undef' templates.
    5932 # And first: Protect against being on the right side of a sed subst in
    5933 # config.status.  Protect against being in an unquoted here document
    5934 # in config.status.
    5935 rm -f conftest.defines conftest.undefs
    5936 # Using a here document instead of a string reduces the quoting nightmare.
    5937 # Putting comments in sed scripts is not portable.
    5938 #
    5939 # `end' is used to avoid that the second main sed command (meant for
    5940 # 0-ary CPP macros) applies to n-ary macro definitions.
    5941 # See the Autoconf documentation for `clear'.
    5942 cat >confdef2sed.sed <<\EOF
    5943 s/[\\&,]/\\&/g
    5944 s,[\\$`],\\&,g
    5945 t clear
    5946 : clear
    5947 s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
    5948 t end
    5949 s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    5950 : end
    5951 EOF
    5952 # If some macros were called several times there might be several times
    5953 # the same #defines, which is useless.  Nevertheless, we may not want to
    5954 # sort them, since we want the *last* AC-DEFINE to be honored.
    5955 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    5956 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    5957 rm -f confdef2sed.sed
     3781  echo creating $ac_file
     3782
     3783  rm -f conftest.frag conftest.in conftest.out
     3784  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     3785  cat $ac_file_inputs > conftest.in
     3786
     3787EOF
     3788
     3789# Transform confdefs.h into a sed script conftest.vals that substitutes
     3790# the proper values into config.h.in to produce config.h.  And first:
     3791# Protect against being on the right side of a sed subst in config.status.
     3792# Protect against being in an unquoted here document in config.status.
     3793rm -f conftest.vals
     3794cat > conftest.hdr <<\EOF
     3795s/[\\&%]/\\&/g
     3796s%[\\$`]%\\&%g
     3797s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
     3798s%ac_d%ac_u%gp
     3799s%ac_u%ac_e%gp
     3800EOF
     3801sed -n -f conftest.hdr confdefs.h > conftest.vals
     3802rm -f conftest.hdr
    59583803
    59593804# This sed command replaces #undef with comments.  This is necessary, for
    59603805# example, in the case of _POSIX_SOURCE, which is predefined and required
    59613806# on some systems where configure will not decide to define it.
    5962 cat >>conftest.undefs <<\EOF
    5963 s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    5964 EOF
    5965 
    5966 # Break up conftest.defines because some shells have a limit on the size
    5967 # of here documents, and old seds have small limits too (100 cmds).
    5968 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    5969 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    5970 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    5971 echo '  :' >>$CONFIG_STATUS
     3807cat >> conftest.vals <<\EOF
     3808s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
     3809EOF
     3810
     3811# Break up conftest.vals because some shells have a limit on
     3812# the size of here documents, and old seds have small limits too.
     3813
    59723814rm -f conftest.tail
    5973 while grep . conftest.defines >/dev/null
     3815while :
    59743816do
    5975   # Write a limited-size here document to $tmp/defines.sed.
    5976   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    5977   # Speed up: don't consider the non `#define' lines.
    5978   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
    5979   # Work around the forget-to-reset-the-flag bug.
    5980   echo 't clr' >>$CONFIG_STATUS
    5981   echo ': clr' >>$CONFIG_STATUS
    5982   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
     3817  ac_lines=`grep -c . conftest.vals`
     3818  # grep -c gives empty output for an empty file on some AIX systems.
     3819  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
     3820  # Write a limited-size here document to conftest.frag.
     3821  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
     3822  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
    59833823  echo 'CEOF
    5984   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    5985   rm -f $tmp/in
    5986   mv $tmp/out $tmp/in
    5987 ' >>$CONFIG_STATUS
    5988   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    5989   rm -f conftest.defines
    5990   mv conftest.tail conftest.defines
     3824  sed -f conftest.frag conftest.in > conftest.out
     3825  rm -f conftest.in
     3826  mv conftest.out conftest.in
     3827' >> $CONFIG_STATUS
     3828  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
     3829  rm -f conftest.vals
     3830  mv conftest.tail conftest.vals
    59913831done
    5992 rm -f conftest.defines
    5993 echo '  fi # egrep' >>$CONFIG_STATUS
    5994 echo >>$CONFIG_STATUS
    5995 
    5996 # Break up conftest.undefs because some shells have a limit on the size
    5997 # of here documents, and old seds have small limits too (100 cmds).
    5998 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    5999 rm -f conftest.tail
    6000 while grep . conftest.undefs >/dev/null
    6001 do
    6002   # Write a limited-size here document to $tmp/undefs.sed.
    6003   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    6004   # Speed up: don't consider the non `#undef'
    6005   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    6006   # Work around the forget-to-reset-the-flag bug.
    6007   echo 't clr' >>$CONFIG_STATUS
    6008   echo ': clr' >>$CONFIG_STATUS
    6009   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    6010   echo 'CEOF
    6011   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    6012   rm -f $tmp/in
    6013   mv $tmp/out $tmp/in
    6014 ' >>$CONFIG_STATUS
    6015   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    6016   rm -f conftest.undefs
    6017   mv conftest.tail conftest.undefs
    6018 done
    6019 rm -f conftest.undefs
    6020 
    6021 cat >>$CONFIG_STATUS <<\EOF
    6022   # Let's still pretend it is `configure' which instantiates (i.e., don't
    6023   # use $as_me), people would be surprised to read:
    6024   #    /* config.h.  Generated automatically by config.status.  */
    6025   if test x"$ac_file" = x-; then
    6026     echo "/* Generated automatically by configure.  */" >$tmp/config.h
     3832rm -f conftest.vals
     3833
     3834cat >> $CONFIG_STATUS <<\EOF
     3835  rm -f conftest.frag conftest.h
     3836  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
     3837  cat conftest.in >> conftest.h
     3838  rm -f conftest.in
     3839  if cmp -s $ac_file conftest.h 2>/dev/null; then
     3840    echo "$ac_file is unchanged"
     3841    rm -f conftest.h
    60273842  else
    6028     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     3843    # Remove last slash and all that follows it.  Not all systems have dirname.
     3844      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     3845      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     3846      # The file is in a subdirectory.
     3847      test ! -d "$ac_dir" && mkdir "$ac_dir"
     3848    fi
     3849    rm -f $ac_file
     3850    mv conftest.h $ac_file
    60293851  fi
    6030   cat $tmp/in >>$tmp/config.h
    6031   rm -f $tmp/in
    6032   if test x"$ac_file" != x-; then
    6033     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
    6034       { echo "$as_me:6034: $ac_file is unchanged" >&5
    6035 echo "$as_me: $ac_file is unchanged" >&6;}
    6036     else
    6037       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    6038          X"$ac_file" : 'X\(//\)[^/]' \| \
    6039          X"$ac_file" : 'X\(//\)$' \| \
    6040          X"$ac_file" : 'X\(/\)' \| \
    6041          .     : '\(.\)' 2>/dev/null ||
    6042 echo X"$ac_file" |
    6043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    6044       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    6045       /^X\(\/\/\)$/{ s//\1/; q; }
    6046       /^X\(\/\).*/{ s//\1/; q; }
    6047       s/.*/./; q'`
    6048       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    6049         { case "$ac_dir" in
    6050   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    6051   *)                      as_incr_dir=.;;
    6052 esac
    6053 as_dummy="$ac_dir"
    6054 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    6055   case $as_mkdir_dir in
    6056     # Skip DOS drivespec
    6057     ?:) as_incr_dir=$as_mkdir_dir ;;
    6058     *)
    6059       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    6060       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    6061     ;;
    6062   esac
    6063 done; }
    6064 
    6065       fi
    6066       rm -f $ac_file
    6067       mv $tmp/config.h $ac_file
    6068     fi
    6069   else
    6070     cat $tmp/config.h
    6071     rm -f $tmp/config.h
    6072   fi
    6073 done
    6074 EOF
    6075 
    6076 cat >>$CONFIG_STATUS <<\EOF
    6077 
    6078 { (exit 0); exit 0; }
     3852fi; done
     3853
     3854EOF
     3855cat >> $CONFIG_STATUS <<EOF
     3856
     3857EOF
     3858cat >> $CONFIG_STATUS <<\EOF
     3859
     3860exit 0
    60793861EOF
    60803862chmod +x $CONFIG_STATUS
    6081 ac_clean_files=$ac_clean_files_save
    6082 
    6083 # configure is writing to config.log, and then calls config.status.
    6084 # config.status does its own redirection, appending to config.log.
    6085 # Unfortunately, on DOS this fails, as config.log is still kept open
    6086 # by configure, so config.status won't be able to write to it; its
    6087 # output is simply discarded.  So we exec the FD to /dev/null,
    6088 # effectively closing config.log, so it can be properly (re)opened and
    6089 # appended to by config.status.  When coming back to configure, we
    6090 # need to make the FD available again.
    6091 if test "$no_create" != yes; then
    6092   ac_cs_success=:
    6093   exec 5>/dev/null
    6094   $SHELL $CONFIG_STATUS || ac_cs_success=false
    6095   exec 5>>config.log
    6096   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    6097   # would make configure fail if this is the last instruction.
    6098   $ac_cs_success || { (exit 1); exit 1; }
    6099 fi
    6100 
    6101 #
    6102 # CONFIG_SUBDIRS section.
    6103 #
     3863rm -fr confdefs* $ac_clean_files
     3864test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
     3865
    61043866if test "$no_recursion" != yes; then
    61053867
     
    61123874      continue
    61133875    fi
    6114     case $ac_arg in
     3876    case "$ac_arg" in
    61153877    -cache-file | --cache-file | --cache-fil | --cache-fi \
    61163878    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    61173879      ac_prev=cache_file ;;
    61183880    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    6119     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    6120     | --c=*)
    6121       ;;
    6122     --config-cache | -C)
     3881    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    61233882      ;;
    61243883    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     
    61303889  done
    61313890
    6132   for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
     3891  for ac_config_dir in packages; do
    61333892
    61343893    # Do not complain, so a configure script can configure whichever
    61353894    # parts of a large source tree are present.
    6136     test -d $srcdir/$ac_subdir || continue
    6137 
    6138     { echo "$as_me:6138: configuring in $ac_subdir" >&5
    6139 echo "$as_me: configuring in $ac_subdir" >&6;}
    6140     case $srcdir in
     3895    if test ! -d $srcdir/$ac_config_dir; then
     3896      continue
     3897    fi
     3898
     3899    echo configuring in $ac_config_dir
     3900
     3901    case "$srcdir" in
    61413902    .) ;;
    6142     *) { case "./$ac_subdir" in
    6143   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    6144   *)                      as_incr_dir=.;;
    6145 esac
    6146 as_dummy="./$ac_subdir"
    6147 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    6148   case $as_mkdir_dir in
    6149     # Skip DOS drivespec
    6150     ?:) as_incr_dir=$as_mkdir_dir ;;
    61513903    *)
    6152       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    6153       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    6154     ;;
    6155   esac
    6156 done; }
    6157 
    6158        if test -d ./$ac_subdir; then :;
    6159        else
    6160          { { echo "$as_me:6160: error: cannot create \`pwd\`/$ac_subdir" >&5
    6161 echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
    6162    { (exit 1); exit 1; }; }
    6163        fi
    6164        ;;
     3904      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
     3905      else
     3906        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
     3907      fi
     3908      ;;
    61653909    esac
    61663910
    61673911    ac_popdir=`pwd`
    6168     cd $ac_subdir
    6169 
    6170     # A "../" for each directory in /$ac_subdir.
    6171     ac_dots=`echo $ac_subdir |
    6172              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    6173 
    6174     case $srcdir in
     3912    cd $ac_config_dir
     3913
     3914      # A "../" for each directory in /$ac_config_dir.
     3915      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
     3916
     3917    case "$srcdir" in
    61753918    .) # No --srcdir option.  We are building in place.
    61763919      ac_sub_srcdir=$srcdir ;;
    6177     [\\/]* | ?:[\\/]* ) # Absolute path.
    6178       ac_sub_srcdir=$srcdir/$ac_subdir ;;
     3920    /*) # Absolute path.
     3921      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
    61793922    *) # Relative path.
    6180       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
     3923      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
    61813924    esac
    61823925
    61833926    # Check for guested configure; otherwise get Cygnus style configure.
    6184     if test -f $ac_sub_srcdir/configure.gnu; then
    6185       ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
    6186     elif test -f $ac_sub_srcdir/configure; then
    6187       ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
     3927    if test -f $ac_sub_srcdir/configure; then
     3928      ac_sub_configure=$ac_sub_srcdir/configure
    61883929    elif test -f $ac_sub_srcdir/configure.in; then
    61893930      ac_sub_configure=$ac_configure
    61903931    else
    6191       { echo "$as_me:6191: WARNING: no configuration information is in $ac_subdir" >&5
    6192 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
     3932      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
    61933933      ac_sub_configure=
    61943934    fi
     
    61963936    # The recursion is here.
    61973937    if test -n "$ac_sub_configure"; then
     3938
    61983939      # Make the cache file name correct relative to the subdirectory.
    6199       case $cache_file in
    6200       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
     3940      case "$cache_file" in
     3941      /*) ac_sub_cache_file=$cache_file ;;
    62013942      *) # Relative path.
    6202         ac_sub_cache_file=$ac_dots$cache_file ;;
     3943        ac_sub_cache_file="$ac_dots$cache_file" ;;
    62033944      esac
    6204 
    6205       { echo "$as_me:6205: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
    6206 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
     3945  case "$ac_given_INSTALL" in
     3946        [/$]*) INSTALL="$ac_given_INSTALL" ;;
     3947        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     3948        esac
     3949
     3950      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
    62073951      # The eval makes quoting arguments work.
    6208       eval $ac_sub_configure $ac_sub_configure_args \
    6209            --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
    6210         { { echo "$as_me:6210: error: $ac_sub_configure failed for $ac_subdir" >&5
    6211 echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
    6212    { (exit 1); exit 1; }; }
     3952      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
     3953      then :
     3954      else
     3955        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
     3956      fi
    62133957    fi
    62143958
     
    62173961fi
    62183962
     3963
     3964
Note: See TracChangeset for help on using the changeset viewer.