Changeset 8756


Ignore:
Timestamp:
2004-12-08T17:04:00+13:00 (19 years ago)
Author:
jrm21
Message:

fixes for autoconf v2.59, remove libstdc++ from ACLIBS since we don't
want it passed to $CC for c things like mg

Location:
trunk/gsdl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/aclocal.m4

    r700 r8756  
    132132  AC_MSG_RESULT(regex)
    133133  AC_DEFINE(WITH_REGEX)
    134   LIBOBJS="$LIBOBJS regex.o"
     134  AC_LIBOBJ([regex])
    135135fi])
    136136if test -z "$ac_with_regex"; then
    137137  AC_MSG_RESULT(rx)
    138   AC_CHECK_FUNC(re_rx_search, , [LIBOBJS="$LIBOBJS rx.o"])
     138  AC_CHECK_FUNC(re_rx_search, , [AC_LIBOBJ([rx])])
    139139fi
    140 AC_SUBST(LIBOBJS)dnl
    141140])
  • trunk/gsdl/configure

    r8202 r8756  
    11#! /bin/sh
    2 
    32# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.13
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     3# Generated by GNU Autoconf 2.59.
    64#
     5# Copyright (C) 2003 Free Software Foundation, Inc.
    76# This configure script is free software; the Free Software Foundation
    87# gives unlimited permission to copy, distribute and modify it.
    9 
    10 # Defaults:
    11 ac_help=
     8## --------------------- ##
     9## M4sh Initialization.  ##
     10## --------------------- ##
     11
     12# Be Bourne compatible
     13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     14  emulate sh
     15  NULLCMD=:
     16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     17  # is contrary to our usage.  Disable this feature.
     18  alias -g '${1+"$@"}'='"$@"'
     19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     20  set -o posix
     21fi
     22DUALCASE=1; export DUALCASE # for MKS sh
     23
     24# Support unset when possible.
     25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     26  as_unset=unset
     27else
     28  as_unset=false
     29fi
     30
     31
     32# Work around bugs in pre-3.0 UWIN ksh.
     33$as_unset ENV MAIL MAILPATH
     34PS1='$ '
     35PS2='> '
     36PS4='+ '
     37
     38# NLS nuisances.
     39for as_var in \
     40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     42  LC_TELEPHONE LC_TIME
     43do
     44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     45    eval $as_var=C; export $as_var
     46  else
     47    $as_unset $as_var
     48  fi
     49done
     50
     51# Required to use basename.
     52if expr a : '\(a\)' >/dev/null 2>&1; then
     53  as_expr=expr
     54else
     55  as_expr=false
     56fi
     57
     58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     59  as_basename=basename
     60else
     61  as_basename=false
     62fi
     63
     64
     65# Name of the executable.
     66as_me=`$as_basename "$0" ||
     67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     68     X"$0" : 'X\(//\)$' \| \
     69     X"$0" : 'X\(/\)$' \| \
     70     .     : '\(.\)' 2>/dev/null ||
     71echo X/"$0" |
     72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     73      /^X\/\(\/\/\)$/{ s//\1/; q; }
     74      /^X\/\(\/\).*/{ s//\1/; q; }
     75      s/.*/./; q'`
     76
     77
     78# PATH needs CR, and LINENO needs CR and PATH.
     79# Avoid depending upon Character Ranges.
     80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     83as_cr_digits='0123456789'
     84as_cr_alnum=$as_cr_Letters$as_cr_digits
     85
     86# The user is always right.
     87if test "${PATH_SEPARATOR+set}" != set; then
     88  echo "#! /bin/sh" >conf$$.sh
     89  echo  "exit 0"   >>conf$$.sh
     90  chmod +x conf$$.sh
     91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     92    PATH_SEPARATOR=';'
     93  else
     94    PATH_SEPARATOR=:
     95  fi
     96  rm -f conf$$.sh
     97fi
     98
     99
     100  as_lineno_1=$LINENO
     101  as_lineno_2=$LINENO
     102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     103  test "x$as_lineno_1" != "x$as_lineno_2" &&
     104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     105  # Find who we are.  Look in the path if we contain no path at all
     106  # relative or not.
     107  case $0 in
     108    *[\\/]* ) as_myself=$0 ;;
     109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     110for as_dir in $PATH
     111do
     112  IFS=$as_save_IFS
     113  test -z "$as_dir" && as_dir=.
     114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     115done
     116
     117       ;;
     118  esac
     119  # We did not find ourselves, most probably we were run as `sh COMMAND'
     120  # in which case we are not to be found in the path.
     121  if test "x$as_myself" = x; then
     122    as_myself=$0
     123  fi
     124  if test ! -f "$as_myself"; then
     125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
     126   { (exit 1); exit 1; }; }
     127  fi
     128  case $CONFIG_SHELL in
     129  '')
     130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     132do
     133  IFS=$as_save_IFS
     134  test -z "$as_dir" && as_dir=.
     135  for as_base in sh bash ksh sh5; do
     136     case $as_dir in
     137     /*)
     138       if ("$as_dir/$as_base" -c '
     139  as_lineno_1=$LINENO
     140  as_lineno_2=$LINENO
     141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     142  test "x$as_lineno_1" != "x$as_lineno_2" &&
     143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     144         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     145         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     146         CONFIG_SHELL=$as_dir/$as_base
     147         export CONFIG_SHELL
     148         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     149       fi;;
     150     esac
     151       done
     152done
     153;;
     154  esac
     155
     156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     157  # uniformly replaced by the line number.  The first 'sed' inserts a
     158  # line-number line before each line; the second 'sed' does the real
     159  # work.  The second script uses 'N' to pair each line-number line
     160  # with the numbered line, and appends trailing '-' during
     161  # substitution so that $LINENO is not a special case at line end.
     162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     164  sed '=' <$as_myself |
     165    sed '
     166      N
     167      s,$,-,
     168      : loop
     169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     170      t loop
     171      s,-$,,
     172      s,^['$as_cr_digits']*\n,,
     173    ' >$as_me.lineno &&
     174  chmod +x $as_me.lineno ||
     175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     176   { (exit 1); exit 1; }; }
     177
     178  # Don't try to exec as it changes $[0], causing all sort of problems
     179  # (the dirname of $[0] is not the place where we might find the
     180  # original and so on.  Autoconf is especially sensible to this).
     181  . ./$as_me.lineno
     182  # Exit status is that of the last command.
     183  exit
     184}
     185
     186
     187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     188  *c*,-n*) ECHO_N= ECHO_C='
     189' ECHO_T='  ' ;;
     190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     192esac
     193
     194if expr a : '\(a\)' >/dev/null 2>&1; then
     195  as_expr=expr
     196else
     197  as_expr=false
     198fi
     199
     200rm -f conf$$ conf$$.exe conf$$.file
     201echo >conf$$.file
     202if ln -s conf$$.file conf$$ 2>/dev/null; then
     203  # We could just check for DJGPP; but this test a) works b) is more generic
     204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     205  if test -f conf$$.exe; then
     206    # Don't use ln at all; we don't have any links
     207    as_ln_s='cp -p'
     208  else
     209    as_ln_s='ln -s'
     210  fi
     211elif ln conf$$.file conf$$ 2>/dev/null; then
     212  as_ln_s=ln
     213else
     214  as_ln_s='cp -p'
     215fi
     216rm -f conf$$ conf$$.exe conf$$.file
     217
     218if mkdir -p . 2>/dev/null; then
     219  as_mkdir_p=:
     220else
     221  test -d ./-p && rmdir ./-p
     222  as_mkdir_p=false
     223fi
     224
     225as_executable_p="test -f"
     226
     227# Sed expression to map a string onto a valid CPP name.
     228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     229
     230# Sed expression to map a string onto a valid variable name.
     231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     232
     233
     234# IFS
     235# We need space, tab and new line, in precisely that order.
     236as_nl='
     237'
     238IFS="   $as_nl"
     239
     240# CDPATH.
     241$as_unset CDPATH
     242
     243
     244# Name of the host.
     245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     246# so uname gets run too.
     247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     248
     249exec 6>&1
     250
     251#
     252# Initializations.
     253#
    12254ac_default_prefix=/usr/local
    13 # Any additions from configure.in:
    14 ac_help="$ac_help
    15   --enable-corba          Enable CORBA support"
    16 ac_help="$ac_help
    17   --with-micodir          Use installed MICO directory"
    18 ac_help="$ac_help
    19   --enable-z3950          Enable Z39.50 client support"
    20 ac_help="$ac_help
    21   --with-gdbm=dir         Use local gdbm library and headers"
    22 ac_help="$ac_help
    23   --with-dmalloc          use dmalloc, as in
    24                           ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
    25 ac_help="$ac_help
    26   --with-regex            use older regex in lieu of GNU rx for matching"
     255ac_config_libobj_dir=.
     256cross_compiling=no
     257subdirs=
     258MFLAGS=
     259MAKEFLAGS=
     260SHELL=${CONFIG_SHELL-/bin/sh}
     261
     262# Maximum number of lines to put in a shell here document.
     263# This variable seems obsolete.  It should probably be removed, and
     264# only ac_max_sed_lines should be used.
     265: ${ac_max_here_lines=38}
     266
     267# Identity of this package.
     268PACKAGE_NAME=
     269PACKAGE_TARNAME=
     270PACKAGE_VERSION=
     271PACKAGE_STRING=
     272PACKAGE_BUGREPORT=
     273
     274ac_unique_file="lib/text_t.h"
     275# Factoring default headers for most tests.
     276ac_includes_default="\
     277#include <stdio.h>
     278#if HAVE_SYS_TYPES_H
     279# include <sys/types.h>
     280#endif
     281#if HAVE_SYS_STAT_H
     282# include <sys/stat.h>
     283#endif
     284#if STDC_HEADERS
     285# include <stdlib.h>
     286# include <stddef.h>
     287#else
     288# if HAVE_STDLIB_H
     289#  include <stdlib.h>
     290# endif
     291#endif
     292#if HAVE_STRING_H
     293# if !STDC_HEADERS && HAVE_MEMORY_H
     294#  include <memory.h>
     295# endif
     296# include <string.h>
     297#endif
     298#if HAVE_STRINGS_H
     299# include <strings.h>
     300#endif
     301#if HAVE_INTTYPES_H
     302# include <inttypes.h>
     303#else
     304# if HAVE_STDINT_H
     305#  include <stdint.h>
     306# endif
     307#endif
     308#if HAVE_UNISTD_H
     309# include <unistd.h>
     310#endif"
     311
     312ac_subdirs_all="$ac_subdirs_all packages"
     313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 CFLAGS CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDE gsdlos MODULEDIRS subdirs LTLIBOBJS'
     314ac_subst_files=''
    27315
    28316# Initialize some variables set by options.
     317ac_init_help=
     318ac_init_version=false
    29319# The variables have the same names as the options, with
    30320# dashes changed to underlines.
    31 build=NONE
    32 cache_file=./config.cache
     321cache_file=/dev/null
    33322exec_prefix=NONE
    34 host=NONE
    35323no_create=
    36 nonopt=NONE
    37324no_recursion=
    38325prefix=NONE
     
    43330site=
    44331srcdir=
    45 target=NONE
    46332verbose=
    47333x_includes=NONE
    48334x_libraries=NONE
     335
     336# Installation directory options.
     337# These are left unexpanded so users can "make install exec_prefix=/foo"
     338# and all the variables that are supposed to be based on exec_prefix
     339# by default will actually change.
     340# Use braces instead of parens because sh, perl, etc. also accept them.
    49341bindir='${exec_prefix}/bin'
    50342sbindir='${exec_prefix}/sbin'
     
    60352mandir='${prefix}/man'
    61353
    62 # Initialize some other variables.
    63 subdirs=
    64 MFLAGS= MAKEFLAGS=
    65 SHELL=${CONFIG_SHELL-/bin/sh}
    66 # Maximum number of lines to put in a shell here document.
    67 ac_max_here_lines=12
    68 
    69354ac_prev=
    70355for ac_option
    71356do
    72 
    73357  # If the previous option needs an argument, assign it.
    74358  if test -n "$ac_prev"; then
     
    78362  fi
    79363
    80   case "$ac_option" in
    81   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    82   *) ac_optarg= ;;
    83   esac
     364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    84365
    85366  # Accept the important Cygnus configure options, so we can diagnose typos.
    86367
    87   case "$ac_option" in
     368  case $ac_option in
    88369
    89370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    90371    ac_prev=bindir ;;
    91372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    92     bindir="$ac_optarg" ;;
     373    bindir=$ac_optarg ;;
    93374
    94375  -build | --build | --buil | --bui | --bu)
    95     ac_prev=build ;;
     376    ac_prev=build_alias ;;
    96377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    97     build="$ac_optarg" ;;
     378    build_alias=$ac_optarg ;;
    98379
    99380  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    102383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    103384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    104     cache_file="$ac_optarg" ;;
     385    cache_file=$ac_optarg ;;
     386
     387  --config-cache | -C)
     388    cache_file=config.cache ;;
    105389
    106390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    108392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    109393  | --da=*)
    110     datadir="$ac_optarg" ;;
     394    datadir=$ac_optarg ;;
    111395
    112396  -disable-* | --disable-*)
    113     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    114398    # Reject names that are not valid shell variable names.
    115     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    116       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    117     fi
    118     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    119     eval "enable_${ac_feature}=no" ;;
     399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     401   { (exit 1); exit 1; }; }
     402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     403    eval "enable_$ac_feature=no" ;;
    120404
    121405  -enable-* | --enable-*)
    122     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    123407    # Reject names that are not valid shell variable names.
    124     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    125       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    126     fi
    127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    128     case "$ac_option" in
    129       *=*) ;;
     408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     410   { (exit 1); exit 1; }; }
     411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     412    case $ac_option in
     413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    130414      *) ac_optarg=yes ;;
    131415    esac
    132     eval "enable_${ac_feature}='$ac_optarg'" ;;
     416    eval "enable_$ac_feature='$ac_optarg'" ;;
    133417
    134418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    139423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    140424  | --exec=* | --exe=* | --ex=*)
    141     exec_prefix="$ac_optarg" ;;
     425    exec_prefix=$ac_optarg ;;
    142426
    143427  -gas | --gas | --ga | --g)
     
    145429    with_gas=yes ;;
    146430
    147   -help | --help | --hel | --he)
    148     # Omit some internal or obsolete options to make the list less imposing.
    149     # This message is too long to be a string in the A/UX 3.1 sh.
    150     cat << EOF
    151 Usage: configure [options] [host]
    152 Options: [defaults in brackets after descriptions]
    153 Configuration:
    154   --cache-file=FILE       cache test results in FILE
    155   --help                  print this message
    156   --no-create             do not create output files
    157   --quiet, --silent       do not print \`checking...' messages
    158   --version               print the version of autoconf that created configure
    159 Directory and file names:
    160   --prefix=PREFIX         install architecture-independent files in PREFIX
    161                           [$ac_default_prefix]
    162   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    163                           [same as prefix]
    164   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    165   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    166   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    167   --datadir=DIR           read-only architecture-independent data in DIR
    168                           [PREFIX/share]
    169   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    170   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    171                           [PREFIX/com]
    172   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    173   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    174   --includedir=DIR        C header files in DIR [PREFIX/include]
    175   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    176   --infodir=DIR           info documentation in DIR [PREFIX/info]
    177   --mandir=DIR            man documentation in DIR [PREFIX/man]
    178   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    179   --program-prefix=PREFIX prepend PREFIX to installed program names
    180   --program-suffix=SUFFIX append SUFFIX to installed program names
    181   --program-transform-name=PROGRAM
    182                           run sed PROGRAM on installed program names
    183 EOF
    184     cat << EOF
    185 Host type:
    186   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    187   --host=HOST             configure for HOST [guessed]
    188   --target=TARGET         configure for TARGET [TARGET=HOST]
    189 Features and packages:
    190   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    191   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    192   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    193   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    194   --x-includes=DIR        X include files are in DIR
    195   --x-libraries=DIR       X library files are in DIR
    196 EOF
    197     if test -n "$ac_help"; then
    198       echo "--enable and --with options recognized:$ac_help"
    199     fi
    200     exit 0 ;;
     431  -help | --help | --hel | --he | -h)
     432    ac_init_help=long ;;
     433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     434    ac_init_help=recursive ;;
     435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     436    ac_init_help=short ;;
    201437
    202438  -host | --host | --hos | --ho)
    203     ac_prev=host ;;
     439    ac_prev=host_alias ;;
    204440  -host=* | --host=* | --hos=* | --ho=*)
    205     host="$ac_optarg" ;;
     441    host_alias=$ac_optarg ;;
    206442
    207443  -includedir | --includedir | --includedi | --included | --include \
     
    210446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    211447  | --includ=* | --inclu=* | --incl=* | --inc=*)
    212     includedir="$ac_optarg" ;;
     448    includedir=$ac_optarg ;;
    213449
    214450  -infodir | --infodir | --infodi | --infod | --info | --inf)
    215451    ac_prev=infodir ;;
    216452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    217     infodir="$ac_optarg" ;;
     453    infodir=$ac_optarg ;;
    218454
    219455  -libdir | --libdir | --libdi | --libd)
    220456    ac_prev=libdir ;;
    221457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    222     libdir="$ac_optarg" ;;
     458    libdir=$ac_optarg ;;
    223459
    224460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    227463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    228464  | --libexe=* | --libex=* | --libe=*)
    229     libexecdir="$ac_optarg" ;;
     465    libexecdir=$ac_optarg ;;
    230466
    231467  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    236472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    237473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    238     localstatedir="$ac_optarg" ;;
     474    localstatedir=$ac_optarg ;;
    239475
    240476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    241477    ac_prev=mandir ;;
    242478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    243     mandir="$ac_optarg" ;;
     479    mandir=$ac_optarg ;;
    244480
    245481  -nfp | --nfp | --nf)
     
    248484
    249485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    250   | --no-cr | --no-c)
     486  | --no-cr | --no-c | -n)
    251487    no_create=yes ;;
    252488
     
    262498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    263499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    264     oldincludedir="$ac_optarg" ;;
     500    oldincludedir=$ac_optarg ;;
    265501
    266502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    267503    ac_prev=prefix ;;
    268504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    269     prefix="$ac_optarg" ;;
     505    prefix=$ac_optarg ;;
    270506
    271507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    274510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    275511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    276     program_prefix="$ac_optarg" ;;
     512    program_prefix=$ac_optarg ;;
    277513
    278514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    281517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    282518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    283     program_suffix="$ac_optarg" ;;
     519    program_suffix=$ac_optarg ;;
    284520
    285521  -program-transform-name | --program-transform-name \
     
    298534  | --program-trans=* | --program-tran=* \
    299535  | --progr-tra=* | --program-tr=* | --program-t=*)
    300     program_transform_name="$ac_optarg" ;;
     536    program_transform_name=$ac_optarg ;;
    301537
    302538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    308544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    309545  | --sbi=* | --sb=*)
    310     sbindir="$ac_optarg" ;;
     546    sbindir=$ac_optarg ;;
    311547
    312548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    319555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    320556  | --sha=* | --sh=*)
    321     sharedstatedir="$ac_optarg" ;;
     557    sharedstatedir=$ac_optarg ;;
    322558
    323559  -site | --site | --sit)
    324560    ac_prev=site ;;
    325561  -site=* | --site=* | --sit=*)
    326     site="$ac_optarg" ;;
     562    site=$ac_optarg ;;
    327563
    328564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    329565    ac_prev=srcdir ;;
    330566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    331     srcdir="$ac_optarg" ;;
     567    srcdir=$ac_optarg ;;
    332568
    333569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    336572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    337573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    338     sysconfdir="$ac_optarg" ;;
     574    sysconfdir=$ac_optarg ;;
    339575
    340576  -target | --target | --targe | --targ | --tar | --ta | --t)
    341     ac_prev=target ;;
     577    ac_prev=target_alias ;;
    342578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    343     target="$ac_optarg" ;;
     579    target_alias=$ac_optarg ;;
    344580
    345581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    346582    verbose=yes ;;
    347583
    348   -version | --version | --versio | --versi | --vers)
    349     echo "configure generated by autoconf version 2.13"
    350     exit 0 ;;
     584  -version | --version | --versio | --versi | --vers | -V)
     585    ac_init_version=: ;;
    351586
    352587  -with-* | --with-*)
    353     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    354589    # Reject names that are not valid shell variable names.
    355     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    356       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    357     fi
     590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     591      { echo "$as_me: error: invalid package name: $ac_package" >&2
     592   { (exit 1); exit 1; }; }
    358593    ac_package=`echo $ac_package| sed 's/-/_/g'`
    359     case "$ac_option" in
    360       *=*) ;;
     594    case $ac_option in
     595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    361596      *) ac_optarg=yes ;;
    362597    esac
    363     eval "with_${ac_package}='$ac_optarg'" ;;
     598    eval "with_$ac_package='$ac_optarg'" ;;
    364599
    365600  -without-* | --without-*)
    366     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    367602    # Reject names that are not valid shell variable names.
    368     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    369       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    370     fi
    371     ac_package=`echo $ac_package| sed 's/-/_/g'`
    372     eval "with_${ac_package}=no" ;;
     603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     604      { echo "$as_me: error: invalid package name: $ac_package" >&2
     605   { (exit 1); exit 1; }; }
     606    ac_package=`echo $ac_package | sed 's/-/_/g'`
     607    eval "with_$ac_package=no" ;;
    373608
    374609  --x)
     
    381616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    382617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    383     x_includes="$ac_optarg" ;;
     618    x_includes=$ac_optarg ;;
    384619
    385620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    388623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    389624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    390     x_libraries="$ac_optarg" ;;
    391 
    392   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
     625    x_libraries=$ac_optarg ;;
     626
     627  -*) { echo "$as_me: error: unrecognized option: $ac_option
     628Try \`$0 --help' for more information." >&2
     629   { (exit 1); exit 1; }; }
    393630    ;;
    394631
     632  *=*)
     633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     634    # Reject names that are not valid shell variable names.
     635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
     636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     637   { (exit 1); exit 1; }; }
     638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     639    eval "$ac_envvar='$ac_optarg'"
     640    export $ac_envvar ;;
     641
    395642  *)
    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"
     643    # FIXME: should be removed in autoconf 3.0.
     644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    403648    ;;
    404649
     
    407652
    408653if test -n "$ac_prev"; then
    409   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    410 fi
    411 
    412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    413 
    414 # File descriptor usage:
    415 # 0 standard input
    416 # 1 file creation
    417 # 2 errors and warnings
    418 # 3 some systems may open it to /dev/tty
    419 # 4 used on the Kubota Titan
    420 # 6 checking for... messages and results
    421 # 5 compiler messages saved in config.log
    422 if test "$silent" = yes; then
    423   exec 6>/dev/null
    424 else
    425   exec 6>&1
    426 fi
    427 exec 5>./config.log
    428 
    429 echo "\
    430 This file contains any messages produced by compilers while
    431 running configure, to aid debugging if configure makes a mistake.
    432 " 1>&5
    433 
    434 # Strip out --no-create and --no-recursion so they do not pile up.
    435 # Also quote any args containing shell metacharacters.
    436 ac_configure_args=
    437 for ac_arg
     654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     655  { echo "$as_me: error: missing argument to $ac_option" >&2
     656   { (exit 1); exit 1; }; }
     657fi
     658
     659# Be sure to have absolute paths.
     660for ac_var in exec_prefix prefix
    438661do
    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" ;;
     662  eval ac_val=$`echo $ac_var`
     663  case $ac_val in
     664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     666   { (exit 1); exit 1; }; };;
    447667  esac
    448668done
    449669
    450 # NLS nuisances.
    451 # Only set these to C if already set.  These must not be set unconditionally
    452 # because not all systems understand e.g. LANG=C (notably SCO).
    453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    454 # Non-C LC_CTYPE values break the ctype check.
    455 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    458 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    459 
    460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    461 rm -rf conftest* confdefs.h
    462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    463 echo > confdefs.h
    464 
    465 # A filename unique to this package, relative to the directory that
    466 # configure is in, which we can look for to find out if srcdir is correct.
    467 ac_unique_file=lib/text_t.h
     670# Be sure to have absolute paths.
     671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     672          localstatedir libdir includedir oldincludedir infodir mandir
     673do
     674  eval ac_val=$`echo $ac_var`
     675  case $ac_val in
     676    [\\/$]* | ?:[\\/]* ) ;;
     677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     678   { (exit 1); exit 1; }; };;
     679  esac
     680done
     681
     682# There might be people who depend on the old broken behavior: `$host'
     683# used to hold the argument of --host etc.
     684# FIXME: To remove some day.
     685build=$build_alias
     686host=$host_alias
     687target=$target_alias
     688
     689# FIXME: To remove some day.
     690if test "x$host_alias" != x; then
     691  if test "x$build_alias" = x; then
     692    cross_compiling=maybe
     693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     694    If a cross compiler is detected then cross compile mode will be used." >&2
     695  elif test "x$build_alias" != "x$host_alias"; then
     696    cross_compiling=yes
     697  fi
     698fi
     699
     700ac_tool_prefix=
     701test -n "$host_alias" && ac_tool_prefix=$host_alias-
     702
     703test "$silent" = yes && exec 6>/dev/null
     704
    468705
    469706# Find the source files, if location was not specified.
     
    471708  ac_srcdir_defaulted=yes
    472709  # Try the directory containing this script, then its parent.
    473   ac_prog=$0
    474   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
    475   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
     710  ac_confdir=`(dirname "$0") 2>/dev/null ||
     711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     712     X"$0" : 'X\(//\)[^/]' \| \
     713     X"$0" : 'X\(//\)$' \| \
     714     X"$0" : 'X\(/\)' \| \
     715     .     : '\(.\)' 2>/dev/null ||
     716echo X"$0" |
     717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     718      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     719      /^X\(\/\/\)$/{ s//\1/; q; }
     720      /^X\(\/\).*/{ s//\1/; q; }
     721      s/.*/./; q'`
    476722  srcdir=$ac_confdir
    477723  if test ! -r $srcdir/$ac_unique_file; then
     
    483729if test ! -r $srcdir/$ac_unique_file; then
    484730  if test "$ac_srcdir_defaulted" = yes; then
    485     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
     732   { (exit 1); exit 1; }; }
    486733  else
    487     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     735   { (exit 1); exit 1; }; }
    488736  fi
    489737fi
    490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    491 
     738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     740   { (exit 1); exit 1; }; }
     741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     742ac_env_build_alias_set=${build_alias+set}
     743ac_env_build_alias_value=$build_alias
     744ac_cv_env_build_alias_set=${build_alias+set}
     745ac_cv_env_build_alias_value=$build_alias
     746ac_env_host_alias_set=${host_alias+set}
     747ac_env_host_alias_value=$host_alias
     748ac_cv_env_host_alias_set=${host_alias+set}
     749ac_cv_env_host_alias_value=$host_alias
     750ac_env_target_alias_set=${target_alias+set}
     751ac_env_target_alias_value=$target_alias
     752ac_cv_env_target_alias_set=${target_alias+set}
     753ac_cv_env_target_alias_value=$target_alias
     754ac_env_CC_set=${CC+set}
     755ac_env_CC_value=$CC
     756ac_cv_env_CC_set=${CC+set}
     757ac_cv_env_CC_value=$CC
     758ac_env_CFLAGS_set=${CFLAGS+set}
     759ac_env_CFLAGS_value=$CFLAGS
     760ac_cv_env_CFLAGS_set=${CFLAGS+set}
     761ac_cv_env_CFLAGS_value=$CFLAGS
     762ac_env_LDFLAGS_set=${LDFLAGS+set}
     763ac_env_LDFLAGS_value=$LDFLAGS
     764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     765ac_cv_env_LDFLAGS_value=$LDFLAGS
     766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     767ac_env_CPPFLAGS_value=$CPPFLAGS
     768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     770ac_env_CXX_set=${CXX+set}
     771ac_env_CXX_value=$CXX
     772ac_cv_env_CXX_set=${CXX+set}
     773ac_cv_env_CXX_value=$CXX
     774ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     775ac_env_CXXFLAGS_value=$CXXFLAGS
     776ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     777ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     778ac_env_CPP_set=${CPP+set}
     779ac_env_CPP_value=$CPP
     780ac_cv_env_CPP_set=${CPP+set}
     781ac_cv_env_CPP_value=$CPP
     782
     783#
     784# Report the --help message.
     785#
     786if test "$ac_init_help" = "long"; then
     787  # Omit some internal or obsolete options to make the list less imposing.
     788  # This message is too long to be a string in the A/UX 3.1 sh.
     789  cat <<_ACEOF
     790\`configure' configures this package to adapt to many kinds of systems.
     791
     792Usage: $0 [OPTION]... [VAR=VALUE]...
     793
     794To assign environment variables (e.g., CC, CFLAGS...), specify them as
     795VAR=VALUE.  See below for descriptions of some of the useful variables.
     796
     797Defaults for the options are specified in brackets.
     798
     799Configuration:
     800  -h, --help              display this help and exit
     801      --help=short        display options specific to this package
     802      --help=recursive    display the short help of all the included packages
     803  -V, --version           display version information and exit
     804  -q, --quiet, --silent   do not print \`checking...' messages
     805      --cache-file=FILE   cache test results in FILE [disabled]
     806  -C, --config-cache      alias for \`--cache-file=config.cache'
     807  -n, --no-create         do not create output files
     808      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     809
     810_ACEOF
     811
     812  cat <<_ACEOF
     813Installation directories:
     814  --prefix=PREFIX         install architecture-independent files in PREFIX
     815              [$ac_default_prefix]
     816  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     817              [PREFIX]
     818
     819By default, \`make install' will install all the files in
     820\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     821an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     822for instance \`--prefix=\$HOME'.
     823
     824For better control, use the options below.
     825
     826Fine tuning of the installation directories:
     827  --bindir=DIR           user executables [EPREFIX/bin]
     828  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     829  --libexecdir=DIR       program executables [EPREFIX/libexec]
     830  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     831  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     832  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     833  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     834  --libdir=DIR           object code libraries [EPREFIX/lib]
     835  --includedir=DIR       C header files [PREFIX/include]
     836  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     837  --infodir=DIR          info documentation [PREFIX/info]
     838  --mandir=DIR           man documentation [PREFIX/man]
     839_ACEOF
     840
     841  cat <<\_ACEOF
     842
     843System types:
     844  --build=BUILD     configure for building on BUILD [guessed]
     845  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
     846  --target=TARGET   configure for building compilers for TARGET [HOST]
     847_ACEOF
     848fi
     849
     850if test -n "$ac_init_help"; then
     851
     852  cat <<\_ACEOF
     853
     854Optional Features:
     855  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     856  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     857  --enable-corba          Enable CORBA support
     858  --enable-z3950          Enable Z39.50 client support
     859
     860Optional Packages:
     861  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     862  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     863  --with-micodir          Use installed MICO directory
     864  --with-gdbm=dir         Use local gdbm library and headers
     865  --with-dmalloc          use dmalloc, as in
     866                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
     867  --with-regex            use older regex in lieu of GNU rx for matching
     868
     869Some influential environment variables:
     870  CC          C compiler command
     871  CFLAGS      C compiler flags
     872  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     873              nonstandard directory <lib dir>
     874  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     875              headers in a nonstandard directory <include dir>
     876  CXX         C++ compiler command
     877  CXXFLAGS    C++ compiler flags
     878  CPP         C preprocessor
     879
     880Use these variables to override the choices made by `configure' or to help
     881it to find libraries and programs with nonstandard names/locations.
     882
     883_ACEOF
     884fi
     885
     886if test "$ac_init_help" = "recursive"; then
     887  # If there are subdirs, report their specific --help.
     888  ac_popdir=`pwd`
     889  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     890    test -d $ac_dir || continue
     891    ac_builddir=.
     892
     893if test "$ac_dir" != .; then
     894  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     895  # A "../" for each directory in $ac_dir_suffix.
     896  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     897else
     898  ac_dir_suffix= ac_top_builddir=
     899fi
     900
     901case $srcdir in
     902  .)  # No --srcdir option.  We are building in place.
     903    ac_srcdir=.
     904    if test -z "$ac_top_builddir"; then
     905       ac_top_srcdir=.
     906    else
     907       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     908    fi ;;
     909  [\\/]* | ?:[\\/]* )  # Absolute path.
     910    ac_srcdir=$srcdir$ac_dir_suffix;
     911    ac_top_srcdir=$srcdir ;;
     912  *) # Relative path.
     913    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     914    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     915esac
     916
     917# Do not use `cd foo && pwd` to compute absolute paths, because
     918# the directories may not exist.
     919case `pwd` in
     920.) ac_abs_builddir="$ac_dir";;
     921*)
     922  case "$ac_dir" in
     923  .) ac_abs_builddir=`pwd`;;
     924  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     925  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     926  esac;;
     927esac
     928case $ac_abs_builddir in
     929.) ac_abs_top_builddir=${ac_top_builddir}.;;
     930*)
     931  case ${ac_top_builddir}. in
     932  .) ac_abs_top_builddir=$ac_abs_builddir;;
     933  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     934  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     935  esac;;
     936esac
     937case $ac_abs_builddir in
     938.) ac_abs_srcdir=$ac_srcdir;;
     939*)
     940  case $ac_srcdir in
     941  .) ac_abs_srcdir=$ac_abs_builddir;;
     942  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     943  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     944  esac;;
     945esac
     946case $ac_abs_builddir in
     947.) ac_abs_top_srcdir=$ac_top_srcdir;;
     948*)
     949  case $ac_top_srcdir in
     950  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     951  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     952  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     953  esac;;
     954esac
     955
     956    cd $ac_dir
     957    # Check for guested configure; otherwise get Cygnus style configure.
     958    if test -f $ac_srcdir/configure.gnu; then
     959      echo
     960      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     961    elif test -f $ac_srcdir/configure; then
     962      echo
     963      $SHELL $ac_srcdir/configure  --help=recursive
     964    elif test -f $ac_srcdir/configure.ac ||
     965       test -f $ac_srcdir/configure.in; then
     966      echo
     967      $ac_configure --help
     968    else
     969      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     970    fi
     971    cd $ac_popdir
     972  done
     973fi
     974
     975test -n "$ac_init_help" && exit 0
     976if $ac_init_version; then
     977  cat <<\_ACEOF
     978
     979Copyright (C) 2003 Free Software Foundation, Inc.
     980This configure script is free software; the Free Software Foundation
     981gives unlimited permission to copy, distribute and modify it.
     982_ACEOF
     983  exit 0
     984fi
     985exec 5>config.log
     986cat >&5 <<_ACEOF
     987This file contains any messages produced by compilers while
     988running configure, to aid debugging if configure makes a mistake.
     989
     990It was created by $as_me, which was
     991generated by GNU Autoconf 2.59.  Invocation command line was
     992
     993  $ $0 $@
     994
     995_ACEOF
     996{
     997cat <<_ASUNAME
     998## --------- ##
     999## Platform. ##
     1000## --------- ##
     1001
     1002hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     1003uname -m = `(uname -m) 2>/dev/null || echo unknown`
     1004uname -r = `(uname -r) 2>/dev/null || echo unknown`
     1005uname -s = `(uname -s) 2>/dev/null || echo unknown`
     1006uname -v = `(uname -v) 2>/dev/null || echo unknown`
     1007
     1008/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     1009/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     1010
     1011/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     1012/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     1013/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     1014hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1015/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     1016/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     1017/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     1018
     1019_ASUNAME
     1020
     1021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1022for as_dir in $PATH
     1023do
     1024  IFS=$as_save_IFS
     1025  test -z "$as_dir" && as_dir=.
     1026  echo "PATH: $as_dir"
     1027done
     1028
     1029} >&5
     1030
     1031cat >&5 <<_ACEOF
     1032
     1033
     1034## ----------- ##
     1035## Core tests. ##
     1036## ----------- ##
     1037
     1038_ACEOF
     1039
     1040
     1041# Keep a trace of the command line.
     1042# Strip out --no-create and --no-recursion so they do not pile up.
     1043# Strip out --silent because we don't want to record it for future runs.
     1044# Also quote any args containing shell meta-characters.
     1045# Make two passes to allow for proper duplicate-argument suppression.
     1046ac_configure_args=
     1047ac_configure_args0=
     1048ac_configure_args1=
     1049ac_sep=
     1050ac_must_keep_next=false
     1051for ac_pass in 1 2
     1052do
     1053  for ac_arg
     1054  do
     1055    case $ac_arg in
     1056    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1057    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1058    | -silent | --silent | --silen | --sile | --sil)
     1059      continue ;;
     1060    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1061      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1062    esac
     1063    case $ac_pass in
     1064    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1065    2)
     1066      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1067      if test $ac_must_keep_next = true; then
     1068    ac_must_keep_next=false # Got value, back to normal.
     1069      else
     1070    case $ac_arg in
     1071      *=* | --config-cache | -C | -disable-* | --disable-* \
     1072      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1073      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1074      | -with-* | --with-* | -without-* | --without-* | --x)
     1075        case "$ac_configure_args0 " in
     1076          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1077        esac
     1078        ;;
     1079      -* ) ac_must_keep_next=true ;;
     1080    esac
     1081      fi
     1082      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1083      # Get rid of the leading space.
     1084      ac_sep=" "
     1085      ;;
     1086    esac
     1087  done
     1088done
     1089$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1090$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     1091
     1092# When interrupted or exit'd, cleanup temporary files, and complete
     1093# config.log.  We remove comments because anyway the quotes in there
     1094# would cause problems or look ugly.
     1095# WARNING: Be sure not to use single quotes in there, as some shells,
     1096# such as our DU 5.0 friend, will then `close' the trap.
     1097trap 'exit_status=$?
     1098  # Save into config.log some information that might help in debugging.
     1099  {
     1100    echo
     1101
     1102    cat <<\_ASBOX
     1103## ---------------- ##
     1104## Cache variables. ##
     1105## ---------------- ##
     1106_ASBOX
     1107    echo
     1108    # The following way of writing the cache mishandles newlines in values,
     1109{
     1110  (set) 2>&1 |
     1111    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     1112    *ac_space=\ *)
     1113      sed -n \
     1114    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1115      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1116      ;;
     1117    *)
     1118      sed -n \
     1119    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1120      ;;
     1121    esac;
     1122}
     1123    echo
     1124
     1125    cat <<\_ASBOX
     1126## ----------------- ##
     1127## Output variables. ##
     1128## ----------------- ##
     1129_ASBOX
     1130    echo
     1131    for ac_var in $ac_subst_vars
     1132    do
     1133      eval ac_val=$`echo $ac_var`
     1134      echo "$ac_var='"'"'$ac_val'"'"'"
     1135    done | sort
     1136    echo
     1137
     1138    if test -n "$ac_subst_files"; then
     1139      cat <<\_ASBOX
     1140## ------------- ##
     1141## Output files. ##
     1142## ------------- ##
     1143_ASBOX
     1144      echo
     1145      for ac_var in $ac_subst_files
     1146      do
     1147    eval ac_val=$`echo $ac_var`
     1148    echo "$ac_var='"'"'$ac_val'"'"'"
     1149      done | sort
     1150      echo
     1151    fi
     1152
     1153    if test -s confdefs.h; then
     1154      cat <<\_ASBOX
     1155## ----------- ##
     1156## confdefs.h. ##
     1157## ----------- ##
     1158_ASBOX
     1159      echo
     1160      sed "/^$/d" confdefs.h | sort
     1161      echo
     1162    fi
     1163    test "$ac_signal" != 0 &&
     1164      echo "$as_me: caught signal $ac_signal"
     1165    echo "$as_me: exit $exit_status"
     1166  } >&5
     1167  rm -f core *.core &&
     1168  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     1169    exit $exit_status
     1170     ' 0
     1171for ac_signal in 1 2 13 15; do
     1172  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     1173done
     1174ac_signal=0
     1175
     1176# confdefs.h avoids OS command line length limits that DEFS can exceed.
     1177rm -rf conftest* confdefs.h
     1178# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     1179echo >confdefs.h
     1180
     1181# Predefined preprocessor variables.
     1182
     1183cat >>confdefs.h <<_ACEOF
     1184#define PACKAGE_NAME "$PACKAGE_NAME"
     1185_ACEOF
     1186
     1187
     1188cat >>confdefs.h <<_ACEOF
     1189#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1190_ACEOF
     1191
     1192
     1193cat >>confdefs.h <<_ACEOF
     1194#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1195_ACEOF
     1196
     1197
     1198cat >>confdefs.h <<_ACEOF
     1199#define PACKAGE_STRING "$PACKAGE_STRING"
     1200_ACEOF
     1201
     1202
     1203cat >>confdefs.h <<_ACEOF
     1204#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1205_ACEOF
     1206
     1207
     1208# Let the site file select an alternate cache file if it wants to.
    4921209# Prefer explicitly selected file to automatically selected ones.
    4931210if test -z "$CONFIG_SITE"; then
     
    5001217for ac_site_file in $CONFIG_SITE; do
    5011218  if test -r "$ac_site_file"; then
    502     echo "loading site script $ac_site_file"
     1219    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     1220echo "$as_me: loading site script $ac_site_file" >&6;}
     1221    sed 's/^/| /' "$ac_site_file" >&5
    5031222    . "$ac_site_file"
    5041223  fi
     
    5061225
    5071226if test -r "$cache_file"; then
    508   echo "loading cache $cache_file"
    509   . $cache_file
    510 else
    511   echo "creating cache $cache_file"
    512   > $cache_file
     1227  # Some versions of bash will fail to source /dev/null (special
     1228  # files actually), so we avoid doing that.
     1229  if test -f "$cache_file"; then
     1230    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
     1231echo "$as_me: loading cache $cache_file" >&6;}
     1232    case $cache_file in
     1233      [\\/]* | ?:[\\/]* ) . $cache_file;;
     1234      *)                      . ./$cache_file;;
     1235    esac
     1236  fi
     1237else
     1238  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
     1239echo "$as_me: creating cache $cache_file" >&6;}
     1240  >$cache_file
     1241fi
     1242
     1243# Check that the precious variables saved in the cache have kept the same
     1244# value.
     1245ac_cache_corrupted=false
     1246for ac_var in `(set) 2>&1 |
     1247           sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1248  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     1249  eval ac_new_set=\$ac_env_${ac_var}_set
     1250  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     1251  eval ac_new_val="\$ac_env_${ac_var}_value"
     1252  case $ac_old_set,$ac_new_set in
     1253    set,)
     1254      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1255echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1256      ac_cache_corrupted=: ;;
     1257    ,set)
     1258      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1259echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1260      ac_cache_corrupted=: ;;
     1261    ,);;
     1262    *)
     1263      if test "x$ac_old_val" != "x$ac_new_val"; then
     1264    { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1265echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1266    { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1267echo "$as_me:   former value:  $ac_old_val" >&2;}
     1268    { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1269echo "$as_me:   current value: $ac_new_val" >&2;}
     1270    ac_cache_corrupted=:
     1271      fi;;
     1272  esac
     1273  # Pass precious variables to config.status.
     1274  if test "$ac_new_set" = set; then
     1275    case $ac_new_val in
     1276    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1277      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1278    *) ac_arg=$ac_var=$ac_new_val ;;
     1279    esac
     1280    case " $ac_configure_args " in
     1281      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1282      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1283    esac
     1284  fi
     1285done
     1286if $ac_cache_corrupted; then
     1287  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1288echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1289  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1290echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1291   { (exit 1); exit 1; }; }
    5131292fi
    5141293
    5151294ac_ext=c
    516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    5171295ac_cpp='$CPP $CPPFLAGS'
    518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    520 cross_compiling=$ac_cv_prog_cc_cross
    521 
    522 ac_exeext=
    523 ac_objext=o
    524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    525   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
    526   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    527     ac_n= ac_c='
    528 ' ac_t='    '
    529   else
    530     ac_n=-n ac_c= ac_t=
    531   fi
    532 else
    533   ac_n= ac_c='\c' ac_t=
    534 fi
    535 
    536 
     1296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1298ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1299
     1300
     1301
     1302
     1303
     1304
     1305
     1306
     1307
     1308
     1309
     1310
     1311
     1312
     1313
     1314
     1315
     1316
     1317
     1318          ac_config_headers="$ac_config_headers config.h"
    5371319
    5381320
    5391321PACKAGE=gsdl
    5401322VERSION=2.1
    541 cat >> confdefs.h <<EOF
     1323cat >>confdefs.h <<_ACEOF
    5421324#define PACKAGE "$PACKAGE"
    543 EOF
    544 
    545 cat >> confdefs.h <<EOF
     1325_ACEOF
     1326
     1327cat >>confdefs.h <<_ACEOF
    5461328#define VERSION "$VERSION"
    547 EOF
     1329_ACEOF
    5481330
    5491331
     
    5521334USE_FASTCGI=0
    5531335if test USE_FASTCGI = 1; then
    554 cat >> confdefs.h <<\EOF
     1336cat >>confdefs.h <<\_ACEOF
    5551337#define USE_FASTCGI 1
    556 EOF
     1338_ACEOF
    5571339
    5581340
     
    5601342
    5611343if test USE_LANGACTION = 1; then
    562 cat >> confdefs.h <<\EOF
     1344cat >>confdefs.h <<\_ACEOF
    5631345#define USE_LANGACTION 1
    564 EOF
     1346_ACEOF
    5651347
    5661348
     
    5731355else
    5741356  USE_CORBA=0
    575 fi
    576 
    577 cat >> confdefs.h <<EOF
     1357fi;
     1358cat >>confdefs.h <<_ACEOF
    5781359#define USE_CORBA $USE_CORBA
    579 EOF
     1360_ACEOF
     1361
    5801362
    5811363
     
    5871369else
    5881370  MICO_DIR="default"
    589 fi
    590 
    591 cat >> confdefs.h <<EOF
     1371fi;
     1372cat >>confdefs.h <<_ACEOF
    5921373#define MICO_DIR "$MICO_DIR"
    593 EOF
     1374_ACEOF
    5941375
    5951376
     
    6011382else
    6021383  USE_Z3950=0
    603 fi
    604 
     1384fi;
    6051385if test USE_Z3950 = 1; then
    606 cat >> confdefs.h <<\EOF
     1386cat >>confdefs.h <<\_ACEOF
    6071387#define USE_Z3950 $USE_Z3950
    608 EOF
    609 
    610 
    611 fi
     1388_ACEOF
     1389
     1390
     1391fi
     1392
    6121393
    6131394# Check whether --with-gdbm or --without-gdbm was given.
     
    6151396  withval="$with_gdbm"
    6161397  gdbmdir=$withval
    617 fi
    618 
     1398fi;
    6191399
    6201400LDFLAGS=
     
    6241404
    6251405
    626 # Extract the first word of "gcc", so it can be a program name with args.
    627 set dummy gcc; ac_word=$2
    628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    629 echo "configure:630: checking for $ac_word" >&5
    630 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    631   echo $ac_n "(cached) $ac_c" 1>&6
     1406ac_ext=c
     1407ac_cpp='$CPP $CPPFLAGS'
     1408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1410ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1411if test -n "$ac_tool_prefix"; then
     1412  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1413set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1414echo "$as_me:$LINENO: checking for $ac_word" >&5
     1415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1416if test "${ac_cv_prog_CC+set}" = set; then
     1417  echo $ECHO_N "(cached) $ECHO_C" >&6
    6321418else
    6331419  if test -n "$CC"; then
    6341420  ac_cv_prog_CC="$CC" # Let the user override the test.
    6351421else
    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"
    646 fi
    647 fi
    648 CC="$ac_cv_prog_CC"
     1422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1423for as_dir in $PATH
     1424do
     1425  IFS=$as_save_IFS
     1426  test -z "$as_dir" && as_dir=.
     1427  for ac_exec_ext in '' $ac_executable_extensions; do
     1428  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1429    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1431    break 2
     1432  fi
     1433done
     1434done
     1435
     1436fi
     1437fi
     1438CC=$ac_cv_prog_CC
    6491439if test -n "$CC"; then
    650   echo "$ac_t""$CC" 1>&6
    651 else
    652   echo "$ac_t""no" 1>&6
    653 fi
    654 
     1440  echo "$as_me:$LINENO: result: $CC" >&5
     1441echo "${ECHO_T}$CC" >&6
     1442else
     1443  echo "$as_me:$LINENO: result: no" >&5
     1444echo "${ECHO_T}no" >&6
     1445fi
     1446
     1447fi
     1448if test -z "$ac_cv_prog_CC"; then
     1449  ac_ct_CC=$CC
     1450  # Extract the first word of "gcc", so it can be a program name with args.
     1451set dummy gcc; ac_word=$2
     1452echo "$as_me:$LINENO: checking for $ac_word" >&5
     1453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1454if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1455  echo $ECHO_N "(cached) $ECHO_C" >&6
     1456else
     1457  if test -n "$ac_ct_CC"; then
     1458  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1459else
     1460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1461for as_dir in $PATH
     1462do
     1463  IFS=$as_save_IFS
     1464  test -z "$as_dir" && as_dir=.
     1465  for ac_exec_ext in '' $ac_executable_extensions; do
     1466  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1467    ac_cv_prog_ac_ct_CC="gcc"
     1468    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1469    break 2
     1470  fi
     1471done
     1472done
     1473
     1474fi
     1475fi
     1476ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1477if test -n "$ac_ct_CC"; then
     1478  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1479echo "${ECHO_T}$ac_ct_CC" >&6
     1480else
     1481  echo "$as_me:$LINENO: result: no" >&5
     1482echo "${ECHO_T}no" >&6
     1483fi
     1484
     1485  CC=$ac_ct_CC
     1486else
     1487  CC="$ac_cv_prog_CC"
     1488fi
     1489
     1490if test -z "$CC"; then
     1491  if test -n "$ac_tool_prefix"; then
     1492  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1493set dummy ${ac_tool_prefix}cc; ac_word=$2
     1494echo "$as_me:$LINENO: checking for $ac_word" >&5
     1495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1496if test "${ac_cv_prog_CC+set}" = set; then
     1497  echo $ECHO_N "(cached) $ECHO_C" >&6
     1498else
     1499  if test -n "$CC"; then
     1500  ac_cv_prog_CC="$CC" # Let the user override the test.
     1501else
     1502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1503for as_dir in $PATH
     1504do
     1505  IFS=$as_save_IFS
     1506  test -z "$as_dir" && as_dir=.
     1507  for ac_exec_ext in '' $ac_executable_extensions; do
     1508  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1509    ac_cv_prog_CC="${ac_tool_prefix}cc"
     1510    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1511    break 2
     1512  fi
     1513done
     1514done
     1515
     1516fi
     1517fi
     1518CC=$ac_cv_prog_CC
     1519if test -n "$CC"; then
     1520  echo "$as_me:$LINENO: result: $CC" >&5
     1521echo "${ECHO_T}$CC" >&6
     1522else
     1523  echo "$as_me:$LINENO: result: no" >&5
     1524echo "${ECHO_T}no" >&6
     1525fi
     1526
     1527fi
     1528if test -z "$ac_cv_prog_CC"; then
     1529  ac_ct_CC=$CC
     1530  # Extract the first word of "cc", so it can be a program name with args.
     1531set dummy cc; ac_word=$2
     1532echo "$as_me:$LINENO: checking for $ac_word" >&5
     1533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1534if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1535  echo $ECHO_N "(cached) $ECHO_C" >&6
     1536else
     1537  if test -n "$ac_ct_CC"; then
     1538  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1539else
     1540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1541for as_dir in $PATH
     1542do
     1543  IFS=$as_save_IFS
     1544  test -z "$as_dir" && as_dir=.
     1545  for ac_exec_ext in '' $ac_executable_extensions; do
     1546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1547    ac_cv_prog_ac_ct_CC="cc"
     1548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1549    break 2
     1550  fi
     1551done
     1552done
     1553
     1554fi
     1555fi
     1556ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1557if test -n "$ac_ct_CC"; then
     1558  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1559echo "${ECHO_T}$ac_ct_CC" >&6
     1560else
     1561  echo "$as_me:$LINENO: result: no" >&5
     1562echo "${ECHO_T}no" >&6
     1563fi
     1564
     1565  CC=$ac_ct_CC
     1566else
     1567  CC="$ac_cv_prog_CC"
     1568fi
     1569
     1570fi
    6551571if test -z "$CC"; then
    6561572  # Extract the first word of "cc", so it can be a program name with args.
    6571573set dummy cc; ac_word=$2
    658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    659 echo "configure:660: checking for $ac_word" >&5
    660 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    661   echo $ac_n "(cached) $ac_c" 1>&6
     1574echo "$as_me:$LINENO: checking for $ac_word" >&5
     1575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1576if test "${ac_cv_prog_CC+set}" = set; then
     1577  echo $ECHO_N "(cached) $ECHO_C" >&6
    6621578else
    6631579  if test -n "$CC"; then
    6641580  ac_cv_prog_CC="$CC" # Let the user override the test.
    6651581else
    666   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    6671582  ac_prog_rejected=no
    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"
     1583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1584for as_dir in $PATH
     1585do
     1586  IFS=$as_save_IFS
     1587  test -z "$as_dir" && as_dir=.
     1588  for ac_exec_ext in '' $ac_executable_extensions; do
     1589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1590    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     1591       ac_prog_rejected=yes
     1592       continue
     1593     fi
     1594    ac_cv_prog_CC="cc"
     1595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1596    break 2
     1597  fi
     1598done
     1599done
     1600
    6811601if test $ac_prog_rejected = yes; then
    6821602  # We found a bogon in the path, so make sure we never use it.
    6831603  set dummy $ac_cv_prog_CC
    6841604  shift
    685   if test $# -gt 0; then
     1605  if test $# != 0; then
    6861606    # We chose a different compiler from the bogus one.
    6871607    # However, it has the same basename, so the bogon will be chosen
    6881608    # first if we set CC to just the basename; use the full file name.
    6891609    shift
    690     set dummy "$ac_dir/$ac_word" "$@"
    691     shift
    692     ac_cv_prog_CC="$@"
     1610    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    6931611  fi
    6941612fi
    6951613fi
    6961614fi
    697 CC="$ac_cv_prog_CC"
     1615CC=$ac_cv_prog_CC
    6981616if test -n "$CC"; then
    699   echo "$ac_t""$CC" 1>&6
    700 else
    701   echo "$ac_t""no" 1>&6
    702 fi
    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.
    708 set dummy cl; ac_word=$2
    709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    710 echo "configure:711: checking for $ac_word" >&5
    711 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    712   echo $ac_n "(cached) $ac_c" 1>&6
     1617  echo "$as_me:$LINENO: result: $CC" >&5
     1618echo "${ECHO_T}$CC" >&6
     1619else
     1620  echo "$as_me:$LINENO: result: no" >&5
     1621echo "${ECHO_T}no" >&6
     1622fi
     1623
     1624fi
     1625if test -z "$CC"; then
     1626  if test -n "$ac_tool_prefix"; then
     1627  for ac_prog in cl
     1628  do
     1629    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1631echo "$as_me:$LINENO: checking for $ac_word" >&5
     1632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1633if test "${ac_cv_prog_CC+set}" = set; then
     1634  echo $ECHO_N "(cached) $ECHO_C" >&6
    7131635else
    7141636  if test -n "$CC"; then
    7151637  ac_cv_prog_CC="$CC" # Let the user override the test.
    7161638else
    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
     1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1640for as_dir in $PATH
     1641do
     1642  IFS=$as_save_IFS
     1643  test -z "$as_dir" && as_dir=.
     1644  for ac_exec_ext in '' $ac_executable_extensions; do
     1645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1646    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1648    break 2
     1649  fi
     1650done
     1651done
     1652
     1653fi
     1654fi
     1655CC=$ac_cv_prog_CC
     1656if test -n "$CC"; then
     1657  echo "$as_me:$LINENO: result: $CC" >&5
     1658echo "${ECHO_T}$CC" >&6
     1659else
     1660  echo "$as_me:$LINENO: result: no" >&5
     1661echo "${ECHO_T}no" >&6
     1662fi
     1663
     1664    test -n "$CC" && break
     1665  done
     1666fi
     1667if test -z "$CC"; then
     1668  ac_ct_CC=$CC
     1669  for ac_prog in cl
     1670do
     1671  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1672set dummy $ac_prog; ac_word=$2
     1673echo "$as_me:$LINENO: checking for $ac_word" >&5
     1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1675if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1676  echo $ECHO_N "(cached) $ECHO_C" >&6
     1677else
     1678  if test -n "$ac_ct_CC"; then
     1679  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1680else
     1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1682for as_dir in $PATH
     1683do
     1684  IFS=$as_save_IFS
     1685  test -z "$as_dir" && as_dir=.
     1686  for ac_exec_ext in '' $ac_executable_extensions; do
     1687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1688    ac_cv_prog_ac_ct_CC="$ac_prog"
     1689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1690    break 2
     1691  fi
     1692done
     1693done
     1694
     1695fi
     1696fi
     1697ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1698if test -n "$ac_ct_CC"; then
     1699  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1700echo "${ECHO_T}$ac_ct_CC" >&6
     1701else
     1702  echo "$as_me:$LINENO: result: no" >&5
     1703echo "${ECHO_T}no" >&6
     1704fi
     1705
     1706  test -n "$ac_ct_CC" && break
     1707done
     1708
     1709  CC=$ac_ct_CC
     1710fi
     1711
     1712fi
     1713
     1714
     1715test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1716See \`config.log' for more details." >&5
     1717echo "$as_me: error: no acceptable C compiler found in \$PATH
     1718See \`config.log' for more details." >&2;}
     1719   { (exit 1); exit 1; }; }
     1720
     1721# Provide some information about the compiler.
     1722echo "$as_me:$LINENO:" \
     1723     "checking for C compiler version" >&5
     1724ac_compiler=`set X $ac_compile; echo $2`
     1725{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1726  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1727  ac_status=$?
     1728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1729  (exit $ac_status); }
     1730{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1731  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1732  ac_status=$?
     1733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1734  (exit $ac_status); }
     1735{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1736  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1737  ac_status=$?
     1738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1739  (exit $ac_status); }
     1740
     1741cat >conftest.$ac_ext <<_ACEOF
     1742/* confdefs.h.  */
     1743_ACEOF
     1744cat confdefs.h >>conftest.$ac_ext
     1745cat >>conftest.$ac_ext <<_ACEOF
     1746/* end confdefs.h.  */
     1747
     1748int
     1749main ()
     1750{
     1751
     1752  ;
     1753  return 0;
     1754}
     1755_ACEOF
     1756ac_clean_files_save=$ac_clean_files
     1757ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1758# Try to create an executable without -o first, disregard a.out.
     1759# It will help us diagnose broken compilers, and finding out an intuition
     1760# of exeext.
     1761echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1762echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1763ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1764if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1765  (eval $ac_link_default) 2>&5
     1766  ac_status=$?
     1767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1768  (exit $ac_status); }; then
     1769  # Find the output, starting from the most likely.  This scheme is
     1770# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1771# resort.
     1772
     1773# Be careful to initialize this variable, since it used to be cached.
     1774# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1775ac_cv_exeext=
     1776# b.out is created by i960 compilers.
     1777for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1778do
     1779  test -f "$ac_file" || continue
     1780  case $ac_file in
     1781    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1782    ;;
     1783    conftest.$ac_ext )
     1784    # This is the source file.
     1785    ;;
     1786    [ab].out )
     1787    # We found the default executable, but exeext='' is most
     1788    # certainly right.
     1789    break;;
     1790    *.* )
     1791    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1792    # FIXME: I believe we export ac_cv_exeext for Libtool,
     1793    # but it would be cool to find out if it's true.  Does anybody
     1794    # maintain Libtool? --akim.
     1795    export ac_cv_exeext
     1796    break;;
     1797    * )
     1798    break;;
     1799  esac
     1800done
     1801else
     1802  echo "$as_me: failed program was:" >&5
     1803sed 's/^/| /' conftest.$ac_ext >&5
     1804
     1805{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
     1806See \`config.log' for more details." >&5
     1807echo "$as_me: error: C compiler cannot create executables
     1808See \`config.log' for more details." >&2;}
     1809   { (exit 77); exit 77; }; }
     1810fi
     1811
     1812ac_exeext=$ac_cv_exeext
     1813echo "$as_me:$LINENO: result: $ac_file" >&5
     1814echo "${ECHO_T}$ac_file" >&6
     1815
     1816# Check the compiler produces executables we can run.  If not, either
     1817# the compiler is broken, or we cross compile.
     1818echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     1819echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     1820# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1821# If not cross compiling, check that we can run a simple program.
     1822if test "$cross_compiling" != yes; then
     1823  if { ac_try='./$ac_file'
     1824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1825  (eval $ac_try) 2>&5
     1826  ac_status=$?
     1827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1828  (exit $ac_status); }; }; then
     1829    cross_compiling=no
     1830  else
     1831    if test "$cross_compiling" = maybe; then
     1832    cross_compiling=yes
     1833    else
     1834    { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     1835If you meant to cross compile, use \`--host'.
     1836See \`config.log' for more details." >&5
     1837echo "$as_me: error: cannot run C compiled programs.
     1838If you meant to cross compile, use \`--host'.
     1839See \`config.log' for more details." >&2;}
     1840   { (exit 1); exit 1; }; }
    7241841    fi
    725   done
    726   IFS="$ac_save_ifs"
    727 fi
    728 fi
    729 CC="$ac_cv_prog_CC"
    730 if test -n "$CC"; then
    731   echo "$ac_t""$CC" 1>&6
    732 else
    733   echo "$ac_t""no" 1>&6
    734 fi
    735  ;;
    736     esac
    7371842  fi
    738   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    739 fi
    740 
    741 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    742 echo "configure:743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    743 
    744 ac_ext=c
    745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    746 ac_cpp='$CPP $CPPFLAGS'
    747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    749 cross_compiling=$ac_cv_prog_cc_cross
    750 
    751 cat > conftest.$ac_ext << EOF
    752 
    753 #line 754 "configure"
    754 #include "confdefs.h"
    755 
    756 main(){return(0);}
    757 EOF
    758 if { (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
    763   else
    764     ac_cv_prog_cc_cross=yes
    765   fi
    766 else
    767   echo "configure: failed program was:" >&5
    768   cat conftest.$ac_ext >&5
    769   ac_cv_prog_cc_works=no
    770 fi
    771 rm -fr conftest*
    772 ac_ext=c
    773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    774 ac_cpp='$CPP $CPPFLAGS'
    775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    777 cross_compiling=$ac_cv_prog_cc_cross
    778 
    779 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    780 if 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; }
    782 fi
    783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    784 echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    785 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    786 cross_compiling=$ac_cv_prog_cc_cross
    787 
    788 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    789 echo "configure:790: checking whether we are using GNU C" >&5
    790 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    791   echo $ac_n "(cached) $ac_c" 1>&6
    792 else
    793   cat > conftest.c <<EOF
    794 #ifdef __GNUC__
    795   yes;
     1843fi
     1844echo "$as_me:$LINENO: result: yes" >&5
     1845echo "${ECHO_T}yes" >&6
     1846
     1847rm -f a.out a.exe conftest$ac_cv_exeext b.out
     1848ac_clean_files=$ac_clean_files_save
     1849# Check the compiler produces executables we can run.  If not, either
     1850# the compiler is broken, or we cross compile.
     1851echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     1852echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1853echo "$as_me:$LINENO: result: $cross_compiling" >&5
     1854echo "${ECHO_T}$cross_compiling" >&6
     1855
     1856echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1857echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     1859  (eval $ac_link) 2>&5
     1860  ac_status=$?
     1861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1862  (exit $ac_status); }; then
     1863  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1864# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1865# work properly (i.e., refer to `conftest.exe'), while it won't with
     1866# `rm'.
     1867for ac_file in conftest.exe conftest conftest.*; do
     1868  test -f "$ac_file" || continue
     1869  case $ac_file in
     1870    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     1871    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1872      export ac_cv_exeext
     1873      break;;
     1874    * ) break;;
     1875  esac
     1876done
     1877else
     1878  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1879See \`config.log' for more details." >&5
     1880echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1881See \`config.log' for more details." >&2;}
     1882   { (exit 1); exit 1; }; }
     1883fi
     1884
     1885rm -f conftest$ac_cv_exeext
     1886echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     1887echo "${ECHO_T}$ac_cv_exeext" >&6
     1888
     1889rm -f conftest.$ac_ext
     1890EXEEXT=$ac_cv_exeext
     1891ac_exeext=$EXEEXT
     1892echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1893echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     1894if test "${ac_cv_objext+set}" = set; then
     1895  echo $ECHO_N "(cached) $ECHO_C" >&6
     1896else
     1897  cat >conftest.$ac_ext <<_ACEOF
     1898/* confdefs.h.  */
     1899_ACEOF
     1900cat confdefs.h >>conftest.$ac_ext
     1901cat >>conftest.$ac_ext <<_ACEOF
     1902/* end confdefs.h.  */
     1903
     1904int
     1905main ()
     1906{
     1907
     1908  ;
     1909  return 0;
     1910}
     1911_ACEOF
     1912rm -f conftest.o conftest.obj
     1913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1914  (eval $ac_compile) 2>&5
     1915  ac_status=$?
     1916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1917  (exit $ac_status); }; then
     1918  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1919  case $ac_file in
     1920    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     1921    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1922       break;;
     1923  esac
     1924done
     1925else
     1926  echo "$as_me: failed program was:" >&5
     1927sed 's/^/| /' conftest.$ac_ext >&5
     1928
     1929{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1930See \`config.log' for more details." >&5
     1931echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1932See \`config.log' for more details." >&2;}
     1933   { (exit 1); exit 1; }; }
     1934fi
     1935
     1936rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1937fi
     1938echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     1939echo "${ECHO_T}$ac_cv_objext" >&6
     1940OBJEXT=$ac_cv_objext
     1941ac_objext=$OBJEXT
     1942echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     1943echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1944if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1945  echo $ECHO_N "(cached) $ECHO_C" >&6
     1946else
     1947  cat >conftest.$ac_ext <<_ACEOF
     1948/* confdefs.h.  */
     1949_ACEOF
     1950cat confdefs.h >>conftest.$ac_ext
     1951cat >>conftest.$ac_ext <<_ACEOF
     1952/* end confdefs.h.  */
     1953
     1954int
     1955main ()
     1956{
     1957#ifndef __GNUC__
     1958       choke me
    7961959#endif
    797 EOF
    798 if { 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
    800 else
    801   ac_cv_prog_gcc=no
    802 fi
    803 fi
    804 
    805 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    806 
    807 if test $ac_cv_prog_gcc = yes; then
    808   GCC=yes
    809 else
    810   GCC=
    811 fi
    812 
    813 ac_test_CFLAGS="${CFLAGS+set}"
    814 ac_save_CFLAGS="$CFLAGS"
    815 CFLAGS=
    816 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    817 echo "configure:818: checking whether ${CC-cc} accepts -g" >&5
    818 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    819   echo $ac_n "(cached) $ac_c" 1>&6
    820 else
    821   echo 'void f(){}' > conftest.c
    822 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1960
     1961  ;
     1962  return 0;
     1963}
     1964_ACEOF
     1965rm -f conftest.$ac_objext
     1966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1967  (eval $ac_compile) 2>conftest.er1
     1968  ac_status=$?
     1969  grep -v '^ *+' conftest.er1 >conftest.err
     1970  rm -f conftest.er1
     1971  cat conftest.err >&5
     1972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1973  (exit $ac_status); } &&
     1974     { ac_try='test -z "$ac_c_werror_flag"
     1975             || test ! -s conftest.err'
     1976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1977  (eval $ac_try) 2>&5
     1978  ac_status=$?
     1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1980  (exit $ac_status); }; } &&
     1981     { ac_try='test -s conftest.$ac_objext'
     1982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1983  (eval $ac_try) 2>&5
     1984  ac_status=$?
     1985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1986  (exit $ac_status); }; }; then
     1987  ac_compiler_gnu=yes
     1988else
     1989  echo "$as_me: failed program was:" >&5
     1990sed 's/^/| /' conftest.$ac_ext >&5
     1991
     1992ac_compiler_gnu=no
     1993fi
     1994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1995ac_cv_c_compiler_gnu=$ac_compiler_gnu
     1996
     1997fi
     1998echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     1999echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2000GCC=`test $ac_compiler_gnu = yes && echo yes`
     2001ac_test_CFLAGS=${CFLAGS+set}
     2002ac_save_CFLAGS=$CFLAGS
     2003CFLAGS="-g"
     2004echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2005echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2006if test "${ac_cv_prog_cc_g+set}" = set; then
     2007  echo $ECHO_N "(cached) $ECHO_C" >&6
     2008else
     2009  cat >conftest.$ac_ext <<_ACEOF
     2010/* confdefs.h.  */
     2011_ACEOF
     2012cat confdefs.h >>conftest.$ac_ext
     2013cat >>conftest.$ac_ext <<_ACEOF
     2014/* end confdefs.h.  */
     2015
     2016int
     2017main ()
     2018{
     2019
     2020  ;
     2021  return 0;
     2022}
     2023_ACEOF
     2024rm -f conftest.$ac_objext
     2025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2026  (eval $ac_compile) 2>conftest.er1
     2027  ac_status=$?
     2028  grep -v '^ *+' conftest.er1 >conftest.err
     2029  rm -f conftest.er1
     2030  cat conftest.err >&5
     2031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2032  (exit $ac_status); } &&
     2033     { ac_try='test -z "$ac_c_werror_flag"
     2034             || test ! -s conftest.err'
     2035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2036  (eval $ac_try) 2>&5
     2037  ac_status=$?
     2038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2039  (exit $ac_status); }; } &&
     2040     { ac_try='test -s conftest.$ac_objext'
     2041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2042  (eval $ac_try) 2>&5
     2043  ac_status=$?
     2044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2045  (exit $ac_status); }; }; then
    8232046  ac_cv_prog_cc_g=yes
    8242047else
    825   ac_cv_prog_cc_g=no
    826 fi
    827 rm -f conftest*
    828 
    829 fi
    830 
    831 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     2048  echo "$as_me: failed program was:" >&5
     2049sed 's/^/| /' conftest.$ac_ext >&5
     2050
     2051ac_cv_prog_cc_g=no
     2052fi
     2053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2054fi
     2055echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2056echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    8322057if test "$ac_test_CFLAGS" = set; then
    833   CFLAGS="$ac_save_CFLAGS"
     2058  CFLAGS=$ac_save_CFLAGS
    8342059elif test $ac_cv_prog_cc_g = yes; then
    8352060  if test "$GCC" = yes; then
     
    8452070  fi
    8462071fi
    847 
    848 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
     2072echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2073echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2074if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2075  echo $ECHO_N "(cached) $ECHO_C" >&6
     2076else
     2077  ac_cv_prog_cc_stdc=no
     2078ac_save_CC=$CC
     2079cat >conftest.$ac_ext <<_ACEOF
     2080/* confdefs.h.  */
     2081_ACEOF
     2082cat confdefs.h >>conftest.$ac_ext
     2083cat >>conftest.$ac_ext <<_ACEOF
     2084/* end confdefs.h.  */
     2085#include <stdarg.h>
     2086#include <stdio.h>
     2087#include <sys/types.h>
     2088#include <sys/stat.h>
     2089/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2090struct buf { int x; };
     2091FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2092static char *e (p, i)
     2093     char **p;
     2094     int i;
     2095{
     2096  return p[i];
     2097}
     2098static char *f (char * (*g) (char **, int), char **p, ...)
     2099{
     2100  char *s;
     2101  va_list v;
     2102  va_start (v,p);
     2103  s = g (p, va_arg (v,int));
     2104  va_end (v);
     2105  return s;
     2106}
     2107
     2108/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2109   function prototypes and stuff, but not '\xHH' hex character constants.
     2110   These don't provoke an error unfortunately, instead are silently treated
     2111   as 'x'.  The following induces an error, until -std1 is added to get
     2112   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2113   array size at least.  It's necessary to write '\x00'==0 to get something
     2114   that's true only with -std1.  */
     2115int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2116
     2117int test (int i, double x);
     2118struct s1 {int (*f) (int a);};
     2119struct s2 {int (*f) (double a);};
     2120int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2121int argc;
     2122char **argv;
     2123int
     2124main ()
     2125{
     2126return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2127  ;
     2128  return 0;
     2129}
     2130_ACEOF
     2131# Don't try gcc -ansi; that turns off useful extensions and
     2132# breaks some systems' header files.
     2133# AIX           -qlanglvl=ansi
     2134# Ultrix and OSF/1  -std1
     2135# HP-UX 10.20 and later -Ae
     2136# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2137# SVR4          -Xc -D__EXTENSIONS__
     2138for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    8492139do
    850 # Extract the first word of "$ac_prog", so it can be a program name with args.
    851 set dummy $ac_prog; ac_word=$2
    852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    853 echo "configure:854: checking for $ac_word" >&5
    854 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    855   echo $ac_n "(cached) $ac_c" 1>&6
     2140  CC="$ac_save_CC $ac_arg"
     2141  rm -f conftest.$ac_objext
     2142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2143  (eval $ac_compile) 2>conftest.er1
     2144  ac_status=$?
     2145  grep -v '^ *+' conftest.er1 >conftest.err
     2146  rm -f conftest.er1
     2147  cat conftest.err >&5
     2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2149  (exit $ac_status); } &&
     2150     { ac_try='test -z "$ac_c_werror_flag"
     2151             || test ! -s conftest.err'
     2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2153  (eval $ac_try) 2>&5
     2154  ac_status=$?
     2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2156  (exit $ac_status); }; } &&
     2157     { ac_try='test -s conftest.$ac_objext'
     2158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2159  (eval $ac_try) 2>&5
     2160  ac_status=$?
     2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2162  (exit $ac_status); }; }; then
     2163  ac_cv_prog_cc_stdc=$ac_arg
     2164break
     2165else
     2166  echo "$as_me: failed program was:" >&5
     2167sed 's/^/| /' conftest.$ac_ext >&5
     2168
     2169fi
     2170rm -f conftest.err conftest.$ac_objext
     2171done
     2172rm -f conftest.$ac_ext conftest.$ac_objext
     2173CC=$ac_save_CC
     2174
     2175fi
     2176
     2177case "x$ac_cv_prog_cc_stdc" in
     2178  x|xno)
     2179    echo "$as_me:$LINENO: result: none needed" >&5
     2180echo "${ECHO_T}none needed" >&6 ;;
     2181  *)
     2182    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2183echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2184    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2185esac
     2186
     2187# Some people use a C++ compiler to compile C.  Since we use `exit',
     2188# in C++ we need to declare it.  In case someone uses the same compiler
     2189# for both compiling C and C++ we need to have the C++ compiler decide
     2190# the declaration of exit, since it's the most demanding environment.
     2191cat >conftest.$ac_ext <<_ACEOF
     2192#ifndef __cplusplus
     2193  choke me
     2194#endif
     2195_ACEOF
     2196rm -f conftest.$ac_objext
     2197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2198  (eval $ac_compile) 2>conftest.er1
     2199  ac_status=$?
     2200  grep -v '^ *+' conftest.er1 >conftest.err
     2201  rm -f conftest.er1
     2202  cat conftest.err >&5
     2203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2204  (exit $ac_status); } &&
     2205     { ac_try='test -z "$ac_c_werror_flag"
     2206             || test ! -s conftest.err'
     2207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2208  (eval $ac_try) 2>&5
     2209  ac_status=$?
     2210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2211  (exit $ac_status); }; } &&
     2212     { ac_try='test -s conftest.$ac_objext'
     2213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2214  (eval $ac_try) 2>&5
     2215  ac_status=$?
     2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2217  (exit $ac_status); }; }; then
     2218  for ac_declaration in \
     2219   '' \
     2220   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2221   'extern "C" void std::exit (int); using std::exit;' \
     2222   'extern "C" void exit (int) throw ();' \
     2223   'extern "C" void exit (int);' \
     2224   'void exit (int);'
     2225do
     2226  cat >conftest.$ac_ext <<_ACEOF
     2227/* confdefs.h.  */
     2228_ACEOF
     2229cat confdefs.h >>conftest.$ac_ext
     2230cat >>conftest.$ac_ext <<_ACEOF
     2231/* end confdefs.h.  */
     2232$ac_declaration
     2233#include <stdlib.h>
     2234int
     2235main ()
     2236{
     2237exit (42);
     2238  ;
     2239  return 0;
     2240}
     2241_ACEOF
     2242rm -f conftest.$ac_objext
     2243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2244  (eval $ac_compile) 2>conftest.er1
     2245  ac_status=$?
     2246  grep -v '^ *+' conftest.er1 >conftest.err
     2247  rm -f conftest.er1
     2248  cat conftest.err >&5
     2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2250  (exit $ac_status); } &&
     2251     { ac_try='test -z "$ac_c_werror_flag"
     2252             || test ! -s conftest.err'
     2253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2254  (eval $ac_try) 2>&5
     2255  ac_status=$?
     2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2257  (exit $ac_status); }; } &&
     2258     { ac_try='test -s conftest.$ac_objext'
     2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2260  (eval $ac_try) 2>&5
     2261  ac_status=$?
     2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2263  (exit $ac_status); }; }; then
     2264  :
     2265else
     2266  echo "$as_me: failed program was:" >&5
     2267sed 's/^/| /' conftest.$ac_ext >&5
     2268
     2269continue
     2270fi
     2271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2272  cat >conftest.$ac_ext <<_ACEOF
     2273/* confdefs.h.  */
     2274_ACEOF
     2275cat confdefs.h >>conftest.$ac_ext
     2276cat >>conftest.$ac_ext <<_ACEOF
     2277/* end confdefs.h.  */
     2278$ac_declaration
     2279int
     2280main ()
     2281{
     2282exit (42);
     2283  ;
     2284  return 0;
     2285}
     2286_ACEOF
     2287rm -f conftest.$ac_objext
     2288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2289  (eval $ac_compile) 2>conftest.er1
     2290  ac_status=$?
     2291  grep -v '^ *+' conftest.er1 >conftest.err
     2292  rm -f conftest.er1
     2293  cat conftest.err >&5
     2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2295  (exit $ac_status); } &&
     2296     { ac_try='test -z "$ac_c_werror_flag"
     2297             || test ! -s conftest.err'
     2298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2299  (eval $ac_try) 2>&5
     2300  ac_status=$?
     2301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2302  (exit $ac_status); }; } &&
     2303     { ac_try='test -s conftest.$ac_objext'
     2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2305  (eval $ac_try) 2>&5
     2306  ac_status=$?
     2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2308  (exit $ac_status); }; }; then
     2309  break
     2310else
     2311  echo "$as_me: failed program was:" >&5
     2312sed 's/^/| /' conftest.$ac_ext >&5
     2313
     2314fi
     2315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2316done
     2317rm -f conftest*
     2318if test -n "$ac_declaration"; then
     2319  echo '#ifdef __cplusplus' >>confdefs.h
     2320  echo $ac_declaration      >>confdefs.h
     2321  echo '#endif'             >>confdefs.h
     2322fi
     2323
     2324else
     2325  echo "$as_me: failed program was:" >&5
     2326sed 's/^/| /' conftest.$ac_ext >&5
     2327
     2328fi
     2329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2330ac_ext=c
     2331ac_cpp='$CPP $CPPFLAGS'
     2332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2334ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2335
     2336ac_ext=cc
     2337ac_cpp='$CXXCPP $CPPFLAGS'
     2338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2341if test -n "$ac_tool_prefix"; then
     2342  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2343  do
     2344    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2346echo "$as_me:$LINENO: checking for $ac_word" >&5
     2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2348if test "${ac_cv_prog_CXX+set}" = set; then
     2349  echo $ECHO_N "(cached) $ECHO_C" >&6
    8562350else
    8572351  if test -n "$CXX"; then
    8582352  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    8592353else
    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
     2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2355for as_dir in $PATH
     2356do
     2357  IFS=$as_save_IFS
     2358  test -z "$as_dir" && as_dir=.
     2359  for ac_exec_ext in '' $ac_executable_extensions; do
     2360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2361    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     2362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2363    break 2
     2364  fi
     2365done
     2366done
     2367
     2368fi
     2369fi
     2370CXX=$ac_cv_prog_CXX
     2371if test -n "$CXX"; then
     2372  echo "$as_me:$LINENO: result: $CXX" >&5
     2373echo "${ECHO_T}$CXX" >&6
     2374else
     2375  echo "$as_me:$LINENO: result: no" >&5
     2376echo "${ECHO_T}no" >&6
     2377fi
     2378
     2379    test -n "$CXX" && break
    8682380  done
    869   IFS="$ac_save_ifs"
    870 fi
    871 fi
    872 CXX="$ac_cv_prog_CXX"
    873 if test -n "$CXX"; then
    874   echo "$ac_t""$CXX" 1>&6
    875 else
    876   echo "$ac_t""no" 1>&6
    877 fi
    878 
    879 test -n "$CXX" && break
     2381fi
     2382if test -z "$CXX"; then
     2383  ac_ct_CXX=$CXX
     2384  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2385do
     2386  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2387set dummy $ac_prog; ac_word=$2
     2388echo "$as_me:$LINENO: checking for $ac_word" >&5
     2389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2390if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     2391  echo $ECHO_N "(cached) $ECHO_C" >&6
     2392else
     2393  if test -n "$ac_ct_CXX"; then
     2394  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     2395else
     2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2397for as_dir in $PATH
     2398do
     2399  IFS=$as_save_IFS
     2400  test -z "$as_dir" && as_dir=.
     2401  for ac_exec_ext in '' $ac_executable_extensions; do
     2402  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2403    ac_cv_prog_ac_ct_CXX="$ac_prog"
     2404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2405    break 2
     2406  fi
    8802407done
    881 test -n "$CXX" || CXX="gcc"
    882 
    883 
    884 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    885 echo "configure:886: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    886 
    887 ac_ext=C
    888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    889 ac_cpp='$CXXCPP $CPPFLAGS'
    890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    892 cross_compiling=$ac_cv_prog_cxx_cross
    893 
    894 cat > conftest.$ac_ext << EOF
    895 
    896 #line 897 "configure"
    897 #include "confdefs.h"
    898 
    899 int main(){return(0);}
    900 EOF
    901 if { (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
    909 else
    910   echo "configure: failed program was:" >&5
    911   cat conftest.$ac_ext >&5
    912   ac_cv_prog_cxx_works=no
    913 fi
    914 rm -fr conftest*
    915 ac_ext=c
    916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    917 ac_cpp='$CPP $CPPFLAGS'
    918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    920 cross_compiling=$ac_cv_prog_cc_cross
    921 
    922 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    923 if 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; }
    925 fi
    926 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    927 echo "configure:928: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    928 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    929 cross_compiling=$ac_cv_prog_cxx_cross
    930 
    931 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    932 echo "configure:933: checking whether we are using GNU C++" >&5
    933 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    934   echo $ac_n "(cached) $ac_c" 1>&6
    935 else
    936   cat > conftest.C <<EOF
    937 #ifdef __GNUC__
    938   yes;
     2408done
     2409
     2410fi
     2411fi
     2412ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     2413if test -n "$ac_ct_CXX"; then
     2414  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     2415echo "${ECHO_T}$ac_ct_CXX" >&6
     2416else
     2417  echo "$as_me:$LINENO: result: no" >&5
     2418echo "${ECHO_T}no" >&6
     2419fi
     2420
     2421  test -n "$ac_ct_CXX" && break
     2422done
     2423test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     2424
     2425  CXX=$ac_ct_CXX
     2426fi
     2427
     2428
     2429# Provide some information about the compiler.
     2430echo "$as_me:$LINENO:" \
     2431     "checking for C++ compiler version" >&5
     2432ac_compiler=`set X $ac_compile; echo $2`
     2433{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2434  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2435  ac_status=$?
     2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2437  (exit $ac_status); }
     2438{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2439  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2440  ac_status=$?
     2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2442  (exit $ac_status); }
     2443{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2444  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2445  ac_status=$?
     2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2447  (exit $ac_status); }
     2448
     2449echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     2450echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     2451if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     2452  echo $ECHO_N "(cached) $ECHO_C" >&6
     2453else
     2454  cat >conftest.$ac_ext <<_ACEOF
     2455/* confdefs.h.  */
     2456_ACEOF
     2457cat confdefs.h >>conftest.$ac_ext
     2458cat >>conftest.$ac_ext <<_ACEOF
     2459/* end confdefs.h.  */
     2460
     2461int
     2462main ()
     2463{
     2464#ifndef __GNUC__
     2465       choke me
    9392466#endif
    940 EOF
    941 if { 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
    943 else
    944   ac_cv_prog_gxx=no
    945 fi
    946 fi
    947 
    948 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    949 
    950 if test $ac_cv_prog_gxx = yes; then
    951   GXX=yes
    952 else
    953   GXX=
    954 fi
    955 
    956 ac_test_CXXFLAGS="${CXXFLAGS+set}"
    957 ac_save_CXXFLAGS="$CXXFLAGS"
    958 CXXFLAGS=
    959 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    960 echo "configure:961: checking whether ${CXX-g++} accepts -g" >&5
    961 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    962   echo $ac_n "(cached) $ac_c" 1>&6
    963 else
    964   echo 'void f(){}' > conftest.cc
    965 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     2467
     2468  ;
     2469  return 0;
     2470}
     2471_ACEOF
     2472rm -f conftest.$ac_objext
     2473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2474  (eval $ac_compile) 2>conftest.er1
     2475  ac_status=$?
     2476  grep -v '^ *+' conftest.er1 >conftest.err
     2477  rm -f conftest.er1
     2478  cat conftest.err >&5
     2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2480  (exit $ac_status); } &&
     2481     { ac_try='test -z "$ac_cxx_werror_flag"
     2482             || test ! -s conftest.err'
     2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2484  (eval $ac_try) 2>&5
     2485  ac_status=$?
     2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2487  (exit $ac_status); }; } &&
     2488     { ac_try='test -s conftest.$ac_objext'
     2489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2490  (eval $ac_try) 2>&5
     2491  ac_status=$?
     2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2493  (exit $ac_status); }; }; then
     2494  ac_compiler_gnu=yes
     2495else
     2496  echo "$as_me: failed program was:" >&5
     2497sed 's/^/| /' conftest.$ac_ext >&5
     2498
     2499ac_compiler_gnu=no
     2500fi
     2501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     2503
     2504fi
     2505echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     2506echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     2507GXX=`test $ac_compiler_gnu = yes && echo yes`
     2508ac_test_CXXFLAGS=${CXXFLAGS+set}
     2509ac_save_CXXFLAGS=$CXXFLAGS
     2510CXXFLAGS="-g"
     2511echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     2512echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     2513if test "${ac_cv_prog_cxx_g+set}" = set; then
     2514  echo $ECHO_N "(cached) $ECHO_C" >&6
     2515else
     2516  cat >conftest.$ac_ext <<_ACEOF
     2517/* confdefs.h.  */
     2518_ACEOF
     2519cat confdefs.h >>conftest.$ac_ext
     2520cat >>conftest.$ac_ext <<_ACEOF
     2521/* end confdefs.h.  */
     2522
     2523int
     2524main ()
     2525{
     2526
     2527  ;
     2528  return 0;
     2529}
     2530_ACEOF
     2531rm -f conftest.$ac_objext
     2532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2533  (eval $ac_compile) 2>conftest.er1
     2534  ac_status=$?
     2535  grep -v '^ *+' conftest.er1 >conftest.err
     2536  rm -f conftest.er1
     2537  cat conftest.err >&5
     2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2539  (exit $ac_status); } &&
     2540     { ac_try='test -z "$ac_cxx_werror_flag"
     2541             || test ! -s conftest.err'
     2542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2543  (eval $ac_try) 2>&5
     2544  ac_status=$?
     2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2546  (exit $ac_status); }; } &&
     2547     { ac_try='test -s conftest.$ac_objext'
     2548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2549  (eval $ac_try) 2>&5
     2550  ac_status=$?
     2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2552  (exit $ac_status); }; }; then
    9662553  ac_cv_prog_cxx_g=yes
    9672554else
    968   ac_cv_prog_cxx_g=no
    969 fi
    970 rm -f conftest*
    971 
    972 fi
    973 
    974 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     2555  echo "$as_me: failed program was:" >&5
     2556sed 's/^/| /' conftest.$ac_ext >&5
     2557
     2558ac_cv_prog_cxx_g=no
     2559fi
     2560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2561fi
     2562echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     2563echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    9752564if test "$ac_test_CXXFLAGS" = set; then
    976   CXXFLAGS="$ac_save_CXXFLAGS"
     2565  CXXFLAGS=$ac_save_CXXFLAGS
    9772566elif test $ac_cv_prog_cxx_g = yes; then
    9782567  if test "$GXX" = yes; then
     
    9882577  fi
    9892578fi
    990 
    991 for ac_prog in mawk gawk nawk awk
     2579for ac_declaration in \
     2580   '' \
     2581   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2582   'extern "C" void std::exit (int); using std::exit;' \
     2583   'extern "C" void exit (int) throw ();' \
     2584   'extern "C" void exit (int);' \
     2585   'void exit (int);'
    9922586do
    993 # Extract the first word of "$ac_prog", so it can be a program name with args.
     2587  cat >conftest.$ac_ext <<_ACEOF
     2588/* confdefs.h.  */
     2589_ACEOF
     2590cat confdefs.h >>conftest.$ac_ext
     2591cat >>conftest.$ac_ext <<_ACEOF
     2592/* end confdefs.h.  */
     2593$ac_declaration
     2594#include <stdlib.h>
     2595int
     2596main ()
     2597{
     2598exit (42);
     2599  ;
     2600  return 0;
     2601}
     2602_ACEOF
     2603rm -f conftest.$ac_objext
     2604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2605  (eval $ac_compile) 2>conftest.er1
     2606  ac_status=$?
     2607  grep -v '^ *+' conftest.er1 >conftest.err
     2608  rm -f conftest.er1
     2609  cat conftest.err >&5
     2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2611  (exit $ac_status); } &&
     2612     { ac_try='test -z "$ac_cxx_werror_flag"
     2613             || test ! -s conftest.err'
     2614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2615  (eval $ac_try) 2>&5
     2616  ac_status=$?
     2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2618  (exit $ac_status); }; } &&
     2619     { ac_try='test -s conftest.$ac_objext'
     2620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2621  (eval $ac_try) 2>&5
     2622  ac_status=$?
     2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2624  (exit $ac_status); }; }; then
     2625  :
     2626else
     2627  echo "$as_me: failed program was:" >&5
     2628sed 's/^/| /' conftest.$ac_ext >&5
     2629
     2630continue
     2631fi
     2632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2633  cat >conftest.$ac_ext <<_ACEOF
     2634/* confdefs.h.  */
     2635_ACEOF
     2636cat confdefs.h >>conftest.$ac_ext
     2637cat >>conftest.$ac_ext <<_ACEOF
     2638/* end confdefs.h.  */
     2639$ac_declaration
     2640int
     2641main ()
     2642{
     2643exit (42);
     2644  ;
     2645  return 0;
     2646}
     2647_ACEOF
     2648rm -f conftest.$ac_objext
     2649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2650  (eval $ac_compile) 2>conftest.er1
     2651  ac_status=$?
     2652  grep -v '^ *+' conftest.er1 >conftest.err
     2653  rm -f conftest.er1
     2654  cat conftest.err >&5
     2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2656  (exit $ac_status); } &&
     2657     { ac_try='test -z "$ac_cxx_werror_flag"
     2658             || test ! -s conftest.err'
     2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2660  (eval $ac_try) 2>&5
     2661  ac_status=$?
     2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2663  (exit $ac_status); }; } &&
     2664     { ac_try='test -s conftest.$ac_objext'
     2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2666  (eval $ac_try) 2>&5
     2667  ac_status=$?
     2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2669  (exit $ac_status); }; }; then
     2670  break
     2671else
     2672  echo "$as_me: failed program was:" >&5
     2673sed 's/^/| /' conftest.$ac_ext >&5
     2674
     2675fi
     2676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2677done
     2678rm -f conftest*
     2679if test -n "$ac_declaration"; then
     2680  echo '#ifdef __cplusplus' >>confdefs.h
     2681  echo $ac_declaration      >>confdefs.h
     2682  echo '#endif'             >>confdefs.h
     2683fi
     2684
     2685ac_ext=c
     2686ac_cpp='$CPP $CPPFLAGS'
     2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2690
     2691for ac_prog in gawk mawk nawk awk
     2692do
     2693  # Extract the first word of "$ac_prog", so it can be a program name with args.
    9942694set dummy $ac_prog; ac_word=$2
    995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    996 echo "configure:997: checking for $ac_word" >&5
    997 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    998   echo $ac_n "(cached) $ac_c" 1>&6
     2695echo "$as_me:$LINENO: checking for $ac_word" >&5
     2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2697if test "${ac_cv_prog_AWK+set}" = set; then
     2698  echo $ECHO_N "(cached) $ECHO_C" >&6
    9992699else
    10002700  if test -n "$AWK"; then
    10012701  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    10022702else
    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"
    1013 fi
    1014 fi
    1015 AWK="$ac_cv_prog_AWK"
     2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2704for as_dir in $PATH
     2705do
     2706  IFS=$as_save_IFS
     2707  test -z "$as_dir" && as_dir=.
     2708  for ac_exec_ext in '' $ac_executable_extensions; do
     2709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2710    ac_cv_prog_AWK="$ac_prog"
     2711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2712    break 2
     2713  fi
     2714done
     2715done
     2716
     2717fi
     2718fi
     2719AWK=$ac_cv_prog_AWK
    10162720if test -n "$AWK"; then
    1017   echo "$ac_t""$AWK" 1>&6
    1018 else
    1019   echo "$ac_t""no" 1>&6
    1020 fi
    1021 
    1022 test -n "$AWK" && break
     2721  echo "$as_me:$LINENO: result: $AWK" >&5
     2722echo "${ECHO_T}$AWK" >&6
     2723else
     2724  echo "$as_me:$LINENO: result: no" >&5
     2725echo "${ECHO_T}no" >&6
     2726fi
     2727
     2728  test -n "$AWK" && break
    10232729done
    10242730
    10252731for ac_prog in 'bison -y' byacc
    10262732do
    1027 # Extract the first word of "$ac_prog", so it can be a program name with args.
     2733  # Extract the first word of "$ac_prog", so it can be a program name with args.
    10282734set dummy $ac_prog; ac_word=$2
    1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1030 echo "configure:1031: checking for $ac_word" >&5
    1031 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    1032   echo $ac_n "(cached) $ac_c" 1>&6
     2735echo "$as_me:$LINENO: checking for $ac_word" >&5
     2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2737if test "${ac_cv_prog_YACC+set}" = set; then
     2738  echo $ECHO_N "(cached) $ECHO_C" >&6
    10332739else
    10342740  if test -n "$YACC"; then
    10352741  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    10362742else
    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"
    1047 fi
    1048 fi
    1049 YACC="$ac_cv_prog_YACC"
     2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2744for as_dir in $PATH
     2745do
     2746  IFS=$as_save_IFS
     2747  test -z "$as_dir" && as_dir=.
     2748  for ac_exec_ext in '' $ac_executable_extensions; do
     2749  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2750    ac_cv_prog_YACC="$ac_prog"
     2751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2752    break 2
     2753  fi
     2754done
     2755done
     2756
     2757fi
     2758fi
     2759YACC=$ac_cv_prog_YACC
    10502760if test -n "$YACC"; then
    1051   echo "$ac_t""$YACC" 1>&6
    1052 else
    1053   echo "$ac_t""no" 1>&6
    1054 fi
    1055 
    1056 test -n "$YACC" && break
     2761  echo "$as_me:$LINENO: result: $YACC" >&5
     2762echo "${ECHO_T}$YACC" >&6
     2763else
     2764  echo "$as_me:$LINENO: result: no" >&5
     2765echo "${ECHO_T}no" >&6
     2766fi
     2767
     2768  test -n "$YACC" && break
    10572769done
    10582770test -n "$YACC" || YACC="yacc"
     
    10682780    ac_install_sh="$ac_aux_dir/install.sh -c"
    10692781    break
     2782  elif test -f $ac_dir/shtool; then
     2783    ac_aux_dir=$ac_dir
     2784    ac_install_sh="$ac_aux_dir/shtool install -c"
     2785    break
    10702786  fi
    10712787done
    10722788if test -z "$ac_aux_dir"; then
    1073   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    1074 fi
    1075 ac_config_guess=$ac_aux_dir/config.guess
    1076 ac_config_sub=$ac_aux_dir/config.sub
    1077 ac_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.
     2789  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2790echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2791   { (exit 1); exit 1; }; }
     2792fi
     2793ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2794ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2795ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     2796
     2797# Make sure we can run config.sub.
     2798$ac_config_sub sun4 >/dev/null 2>&1 ||
     2799  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     2800echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     2801   { (exit 1); exit 1; }; }
     2802
     2803echo "$as_me:$LINENO: checking build system type" >&5
     2804echo $ECHO_N "checking build system type... $ECHO_C" >&6
     2805if test "${ac_cv_build+set}" = set; then
     2806  echo $ECHO_N "(cached) $ECHO_C" >&6
     2807else
     2808  ac_cv_build_alias=$build_alias
     2809test -z "$ac_cv_build_alias" &&
     2810  ac_cv_build_alias=`$ac_config_guess`
     2811test -z "$ac_cv_build_alias" &&
     2812  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     2813echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     2814   { (exit 1); exit 1; }; }
     2815ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     2816  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     2817echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     2818   { (exit 1); exit 1; }; }
     2819
     2820fi
     2821echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     2822echo "${ECHO_T}$ac_cv_build" >&6
     2823build=$ac_cv_build
     2824build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     2825build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     2826build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2827
     2828
     2829echo "$as_me:$LINENO: checking host system type" >&5
     2830echo $ECHO_N "checking host system type... $ECHO_C" >&6
     2831if test "${ac_cv_host+set}" = set; then
     2832  echo $ECHO_N "(cached) $ECHO_C" >&6
     2833else
     2834  ac_cv_host_alias=$host_alias
     2835test -z "$ac_cv_host_alias" &&
     2836  ac_cv_host_alias=$ac_cv_build_alias
     2837ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     2838  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     2839echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     2840   { (exit 1); exit 1; }; }
     2841
     2842fi
     2843echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     2844echo "${ECHO_T}$ac_cv_host" >&6
     2845host=$ac_cv_host
     2846host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     2847host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     2848host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2849
     2850
     2851echo "$as_me:$LINENO: checking target system type" >&5
     2852echo $ECHO_N "checking target system type... $ECHO_C" >&6
     2853if test "${ac_cv_target+set}" = set; then
     2854  echo $ECHO_N "(cached) $ECHO_C" >&6
     2855else
     2856  ac_cv_target_alias=$target_alias
     2857test "x$ac_cv_target_alias" = "x" &&
     2858  ac_cv_target_alias=$ac_cv_host_alias
     2859ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
     2860  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     2861echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
     2862   { (exit 1); exit 1; }; }
     2863
     2864fi
     2865echo "$as_me:$LINENO: result: $ac_cv_target" >&5
     2866echo "${ECHO_T}$ac_cv_target" >&6
     2867target=$ac_cv_target
     2868target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     2869target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     2870target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2871
    10922872
    10932873# The aliases save the names the user supplied, while $host etc.
    10942874# will get canonicalized.
    1095 case $host---$target---$nonopt in
    1096 NONE---*---* | *---NONE---* | *---*---NONE) ;;
    1097 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
    1098 esac
    1099 
    1100 
    1101 # Make sure we can run config.sub.
    1102 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
    1103 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
    1104 fi
    1105 
    1106 echo $ac_n "checking host system type""... $ac_c" 1>&6
    1107 echo "configure:1108: checking host system type" >&5
    1108 
    1109 host_alias=$host
    1110 case "$host_alias" in
    1111 NONE)
    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 ;;
    1119 esac
    1120 
    1121 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
    1122 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1123 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1124 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1125 echo "$ac_t""$host" 1>&6
    1126 
    1127 echo $ac_n "checking target system type""... $ac_c" 1>&6
    1128 echo "configure:1129: checking target system type" >&5
    1129 
    1130 target_alias=$target
    1131 case "$target_alias" in
    1132 NONE)
    1133   case $nonopt in
    1134   NONE) target_alias=$host_alias ;;
    1135   *) target_alias=$nonopt ;;
    1136   esac ;;
    1137 esac
    1138 
    1139 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
    1140 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1141 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1142 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1143 echo "$ac_t""$target" 1>&6
    1144 
    1145 echo $ac_n "checking build system type""... $ac_c" 1>&6
    1146 echo "configure:1147: checking build system type" >&5
    1147 
    1148 build_alias=$build
    1149 case "$build_alias" in
    1150 NONE)
    1151   case $nonopt in
    1152   NONE) build_alias=$host_alias ;;
    1153   *) build_alias=$nonopt ;;
    1154   esac ;;
    1155 esac
    1156 
    1157 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
    1158 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1159 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1160 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1161 echo "$ac_t""$build" 1>&6
    1162 
    1163 test "$host_alias" != "$target_alias" &&
     2875test -n "$target_alias" &&
    11642876  test "$program_prefix$program_suffix$program_transform_name" = \
    11652877    NONENONEs,x,x, &&
    11662878  program_prefix=${target_alias}-
    1167 
    11682879# Find a good install program.  We prefer a C program (faster),
    11692880# so one script is as good as another.  But avoid the broken or
     
    11732884# IRIX /sbin/install
    11742885# AIX /bin/install
     2886# AmigaOS /C/install, which installs bootblocks on floppy discs
    11752887# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    11762888# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    11772889# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2890# OS/2's system install, which has a completely different semantic
    11782891# ./install, which can be erroneously created by make from ./install.sh.
    1179 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1180 echo "configure:1181: checking for a BSD compatible install" >&5
     2892echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2893echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    11812894if test -z "$INSTALL"; then
    1182 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1183   echo $ac_n "(cached) $ac_c" 1>&6
    1184 else
    1185     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
    1186   for ac_dir in $PATH; do
    1187     # Account for people who put trailing slashes in PATH elements.
    1188     case "$ac_dir/" in
    1189     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    1190     *)
    1191       # OSF1 and SCO ODT 3.0 have their own names for install.
    1192       # Don't use installbsd from OSF since it installs stuff as root
    1193       # by default.
    1194       for ac_prog in ginstall scoinst install; do
    1195         if test -f $ac_dir/$ac_prog; then
     2895if test "${ac_cv_path_install+set}" = set; then
     2896  echo $ECHO_N "(cached) $ECHO_C" >&6
     2897else
     2898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2899for as_dir in $PATH
     2900do
     2901  IFS=$as_save_IFS
     2902  test -z "$as_dir" && as_dir=.
     2903  # Account for people who put trailing slashes in PATH elements.
     2904case $as_dir/ in
     2905  ./ | .// | /cC/* | \
     2906  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2907  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     2908  /usr/ucb/* ) ;;
     2909  *)
     2910    # OSF1 and SCO ODT 3.0 have their own names for install.
     2911    # Don't use installbsd from OSF since it installs stuff as root
     2912    # by default.
     2913    for ac_prog in ginstall scoinst install; do
     2914      for ac_exec_ext in '' $ac_executable_extensions; do
     2915    if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    11962916      if test $ac_prog = install &&
    1197             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     2917        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    11982918        # AIX install.  It has an incompatible calling convention.
    11992919        :
     2920      elif test $ac_prog = install &&
     2921        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2922        # program-specific install script used by HP pwplus--don't use.
     2923        :
    12002924      else
    1201         ac_cv_path_install="$ac_dir/$ac_prog -c"
    1202         break 2
     2925        ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2926        break 3
    12032927      fi
    12042928    fi
    12052929      done
    1206       ;;
    1207     esac
    1208   done
    1209   IFS="$ac_save_IFS"
     2930    done
     2931    ;;
     2932esac
     2933done
     2934
    12102935
    12112936fi
    12122937  if test "${ac_cv_path_install+set}" = set; then
    1213     INSTALL="$ac_cv_path_install"
     2938    INSTALL=$ac_cv_path_install
    12142939  else
    12152940    # As a last resort, use the slow shell script.  We don't cache a
     
    12172942    # break other packages using the cache if that directory is
    12182943    # removed, or if the path is relative.
    1219     INSTALL="$ac_install_sh"
     2944    INSTALL=$ac_install_sh
    12202945  fi
    12212946fi
    1222 echo "$ac_t""$INSTALL" 1>&6
     2947echo "$as_me:$LINENO: result: $INSTALL" >&5
     2948echo "${ECHO_T}$INSTALL" >&6
    12232949
    12242950# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    12262952test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    12272953
    1228 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     2954test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    12292955
    12302956test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    12312957
    1232 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1233 echo "configure:1234: checking whether ln -s works" >&5
    1234 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1235   echo $ac_n "(cached) $ac_c" 1>&6
    1236 else
    1237   rm -f conftestdata
    1238 if ln -s X conftestdata 2>/dev/null
    1239 then
    1240   rm -f conftestdata
    1241   ac_cv_prog_LN_S="ln -s"
    1242 else
    1243   ac_cv_prog_LN_S=ln
    1244 fi
    1245 fi
    1246 LN_S="$ac_cv_prog_LN_S"
    1247 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1248   echo "$ac_t""yes" 1>&6
    1249 else
    1250   echo "$ac_t""no" 1>&6
    1251 fi
    1252 
    1253 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1254 echo "configure:1255: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1255 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1256 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1257   echo $ac_n "(cached) $ac_c" 1>&6
    1258 else
    1259   cat > conftestmake <<\EOF
     2958echo "$as_me:$LINENO: checking whether ln -s works" >&5
     2959echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2960LN_S=$as_ln_s
     2961if test "$LN_S" = "ln -s"; then
     2962  echo "$as_me:$LINENO: result: yes" >&5
     2963echo "${ECHO_T}yes" >&6
     2964else
     2965  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     2966echo "${ECHO_T}no, using $LN_S" >&6
     2967fi
     2968
     2969echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     2970echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     2971set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     2972if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2973  echo $ECHO_N "(cached) $ECHO_C" >&6
     2974else
     2975  cat >conftest.make <<\_ACEOF
    12602976all:
    1261     @echo 'ac_maketemp="${MAKE}"'
    1262 EOF
     2977    @echo 'ac_maketemp="$(MAKE)"'
     2978_ACEOF
    12632979# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1264 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     2980eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    12652981if test -n "$ac_maketemp"; then
    12662982  eval ac_cv_prog_make_${ac_make}_set=yes
     
    12682984  eval ac_cv_prog_make_${ac_make}_set=no
    12692985fi
    1270 rm -f conftestmake
     2986rm -f conftest.make
    12712987fi
    12722988if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1273   echo "$ac_t""yes" 1>&6
     2989  echo "$as_me:$LINENO: result: yes" >&5
     2990echo "${ECHO_T}yes" >&6
    12742991  SET_MAKE=
    12752992else
    1276   echo "$ac_t""no" 1>&6
     2993  echo "$as_me:$LINENO: result: no" >&5
     2994echo "${ECHO_T}no" >&6
    12772995  SET_MAKE="MAKE=${MAKE-make}"
    12782996fi
    12792997
    1280 # Extract the first word of "ranlib", so it can be a program name with args.
    1281 set dummy ranlib; ac_word=$2
    1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1283 echo "configure:1284: checking for $ac_word" >&5
    1284 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    1285   echo $ac_n "(cached) $ac_c" 1>&6
     2998if test -n "$ac_tool_prefix"; then
     2999  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     3000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     3001echo "$as_me:$LINENO: checking for $ac_word" >&5
     3002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3003if test "${ac_cv_prog_RANLIB+set}" = set; then
     3004  echo $ECHO_N "(cached) $ECHO_C" >&6
    12863005else
    12873006  if test -n "$RANLIB"; then
    12883007  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    12893008else
    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=":"
    1301 fi
    1302 fi
    1303 RANLIB="$ac_cv_prog_RANLIB"
     3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3010for as_dir in $PATH
     3011do
     3012  IFS=$as_save_IFS
     3013  test -z "$as_dir" && as_dir=.
     3014  for ac_exec_ext in '' $ac_executable_extensions; do
     3015  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3016    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     3017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3018    break 2
     3019  fi
     3020done
     3021done
     3022
     3023fi
     3024fi
     3025RANLIB=$ac_cv_prog_RANLIB
    13043026if test -n "$RANLIB"; then
    1305   echo "$ac_t""$RANLIB" 1>&6
    1306 else
    1307   echo "$ac_t""no" 1>&6
     3027  echo "$as_me:$LINENO: result: $RANLIB" >&5
     3028echo "${ECHO_T}$RANLIB" >&6
     3029else
     3030  echo "$as_me:$LINENO: result: no" >&5
     3031echo "${ECHO_T}no" >&6
     3032fi
     3033
     3034fi
     3035if test -z "$ac_cv_prog_RANLIB"; then
     3036  ac_ct_RANLIB=$RANLIB
     3037  # Extract the first word of "ranlib", so it can be a program name with args.
     3038set dummy ranlib; ac_word=$2
     3039echo "$as_me:$LINENO: checking for $ac_word" >&5
     3040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3041if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     3042  echo $ECHO_N "(cached) $ECHO_C" >&6
     3043else
     3044  if test -n "$ac_ct_RANLIB"; then
     3045  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     3046else
     3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3048for as_dir in $PATH
     3049do
     3050  IFS=$as_save_IFS
     3051  test -z "$as_dir" && as_dir=.
     3052  for ac_exec_ext in '' $ac_executable_extensions; do
     3053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3054    ac_cv_prog_ac_ct_RANLIB="ranlib"
     3055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3056    break 2
     3057  fi
     3058done
     3059done
     3060
     3061  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     3062fi
     3063fi
     3064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     3065if test -n "$ac_ct_RANLIB"; then
     3066  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     3067echo "${ECHO_T}$ac_ct_RANLIB" >&6
     3068else
     3069  echo "$as_me:$LINENO: result: no" >&5
     3070echo "${ECHO_T}no" >&6
     3071fi
     3072
     3073  RANLIB=$ac_ct_RANLIB
     3074else
     3075  RANLIB="$ac_cv_prog_RANLIB"
    13083076fi
    13093077
     
    13323100#do test of MICO_VER
    13333101if test MICO_VER != 0; then
    1334 cat >> confdefs.h <<\EOF
     3102cat >>confdefs.h <<\_ACEOF
    13353103#define MICO_VER 1
    1336 EOF
     3104_ACEOF
    13373105
    13383106
     
    13413109fi
    13423110
    1343 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1344 echo "configure:1345: checking how to run the C preprocessor" >&5
     3111
     3112ac_ext=c
     3113ac_cpp='$CPP $CPPFLAGS'
     3114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3116ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3117echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     3118echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    13453119# On Suns, sometimes $CPP names a directory.
    13463120if test -n "$CPP" && test -d "$CPP"; then
     
    13483122fi
    13493123if test -z "$CPP"; then
    1350 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1351   echo $ac_n "(cached) $ac_c" 1>&6
    1352 else
    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"
     3124  if test "${ac_cv_prog_CPP+set}" = set; then
     3125  echo $ECHO_N "(cached) $ECHO_C" >&6
     3126else
     3127      # Double quotes because CPP needs to be expanded
     3128    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     3129    do
     3130      ac_preproc_ok=false
     3131for ac_c_preproc_warn_flag in '' yes
     3132do
     3133  # Use a header file that comes with gcc, so configuring glibc
     3134  # with a fresh cross-compiler works.
     3135  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3136  # <limits.h> exists even on freestanding compilers.
    13563137  # On the NeXT, cc -E runs the code through the compiler's parser,
    1357   # not just through cpp.
    1358   cat > conftest.$ac_ext <<EOF
    1359 #line 1360 "configure"
    1360 #include "confdefs.h"
    1361 #include <assert.h>
    1362 Syntax Error
    1363 EOF
    1364 ac_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; }
    1366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1367 if test -z "$ac_err"; then
     3138  # not just through cpp. "Syntax error" is here to catch this case.
     3139  cat >conftest.$ac_ext <<_ACEOF
     3140/* confdefs.h.  */
     3141_ACEOF
     3142cat confdefs.h >>conftest.$ac_ext
     3143cat >>conftest.$ac_ext <<_ACEOF
     3144/* end confdefs.h.  */
     3145#ifdef __STDC__
     3146# include <limits.h>
     3147#else
     3148# include <assert.h>
     3149#endif
     3150             Syntax error
     3151_ACEOF
     3152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3153  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3154  ac_status=$?
     3155  grep -v '^ *+' conftest.er1 >conftest.err
     3156  rm -f conftest.er1
     3157  cat conftest.err >&5
     3158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3159  (exit $ac_status); } >/dev/null; then
     3160  if test -s conftest.err; then
     3161    ac_cpp_err=$ac_c_preproc_warn_flag
     3162    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3163  else
     3164    ac_cpp_err=
     3165  fi
     3166else
     3167  ac_cpp_err=yes
     3168fi
     3169if test -z "$ac_cpp_err"; then
    13683170  :
    13693171else
    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"
    1377 #include "confdefs.h"
    1378 #include <assert.h>
    1379 Syntax Error
    1380 EOF
    1381 ac_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; }
    1383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1384 if test -z "$ac_err"; then
     3172  echo "$as_me: failed program was:" >&5
     3173sed 's/^/| /' conftest.$ac_ext >&5
     3174
     3175  # Broken: fails on valid input.
     3176continue
     3177fi
     3178rm -f conftest.err conftest.$ac_ext
     3179
     3180  # OK, works on sane cases.  Now check whether non-existent headers
     3181  # can be detected and how.
     3182  cat >conftest.$ac_ext <<_ACEOF
     3183/* confdefs.h.  */
     3184_ACEOF
     3185cat confdefs.h >>conftest.$ac_ext
     3186cat >>conftest.$ac_ext <<_ACEOF
     3187/* end confdefs.h.  */
     3188#include <ac_nonexistent.h>
     3189_ACEOF
     3190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3191  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3192  ac_status=$?
     3193  grep -v '^ *+' conftest.er1 >conftest.err
     3194  rm -f conftest.er1
     3195  cat conftest.err >&5
     3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3197  (exit $ac_status); } >/dev/null; then
     3198  if test -s conftest.err; then
     3199    ac_cpp_err=$ac_c_preproc_warn_flag
     3200    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3201  else
     3202    ac_cpp_err=
     3203  fi
     3204else
     3205  ac_cpp_err=yes
     3206fi
     3207if test -z "$ac_cpp_err"; then
     3208  # Broken: success on invalid input.
     3209continue
     3210else
     3211  echo "$as_me: failed program was:" >&5
     3212sed 's/^/| /' conftest.$ac_ext >&5
     3213
     3214  # Passes both tests.
     3215ac_preproc_ok=:
     3216break
     3217fi
     3218rm -f conftest.err conftest.$ac_ext
     3219
     3220done
     3221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3222rm -f conftest.err conftest.$ac_ext
     3223if $ac_preproc_ok; then
     3224  break
     3225fi
     3226
     3227    done
     3228    ac_cv_prog_CPP=$CPP
     3229
     3230fi
     3231  CPP=$ac_cv_prog_CPP
     3232else
     3233  ac_cv_prog_CPP=$CPP
     3234fi
     3235echo "$as_me:$LINENO: result: $CPP" >&5
     3236echo "${ECHO_T}$CPP" >&6
     3237ac_preproc_ok=false
     3238for ac_c_preproc_warn_flag in '' yes
     3239do
     3240  # Use a header file that comes with gcc, so configuring glibc
     3241  # with a fresh cross-compiler works.
     3242  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3243  # <limits.h> exists even on freestanding compilers.
     3244  # On the NeXT, cc -E runs the code through the compiler's parser,
     3245  # not just through cpp. "Syntax error" is here to catch this case.
     3246  cat >conftest.$ac_ext <<_ACEOF
     3247/* confdefs.h.  */
     3248_ACEOF
     3249cat confdefs.h >>conftest.$ac_ext
     3250cat >>conftest.$ac_ext <<_ACEOF
     3251/* end confdefs.h.  */
     3252#ifdef __STDC__
     3253# include <limits.h>
     3254#else
     3255# include <assert.h>
     3256#endif
     3257             Syntax error
     3258_ACEOF
     3259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3261  ac_status=$?
     3262  grep -v '^ *+' conftest.er1 >conftest.err
     3263  rm -f conftest.er1
     3264  cat conftest.err >&5
     3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3266  (exit $ac_status); } >/dev/null; then
     3267  if test -s conftest.err; then
     3268    ac_cpp_err=$ac_c_preproc_warn_flag
     3269    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3270  else
     3271    ac_cpp_err=
     3272  fi
     3273else
     3274  ac_cpp_err=yes
     3275fi
     3276if test -z "$ac_cpp_err"; then
    13853277  :
    13863278else
    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>
    1396 Syntax Error
    1397 EOF
    1398 ac_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; }
    1400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1401 if test -z "$ac_err"; then
     3279  echo "$as_me: failed program was:" >&5
     3280sed 's/^/| /' conftest.$ac_ext >&5
     3281
     3282  # Broken: fails on valid input.
     3283continue
     3284fi
     3285rm -f conftest.err conftest.$ac_ext
     3286
     3287  # OK, works on sane cases.  Now check whether non-existent headers
     3288  # can be detected and how.
     3289  cat >conftest.$ac_ext <<_ACEOF
     3290/* confdefs.h.  */
     3291_ACEOF
     3292cat confdefs.h >>conftest.$ac_ext
     3293cat >>conftest.$ac_ext <<_ACEOF
     3294/* end confdefs.h.  */
     3295#include <ac_nonexistent.h>
     3296_ACEOF
     3297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3298  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3299  ac_status=$?
     3300  grep -v '^ *+' conftest.er1 >conftest.err
     3301  rm -f conftest.er1
     3302  cat conftest.err >&5
     3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3304  (exit $ac_status); } >/dev/null; then
     3305  if test -s conftest.err; then
     3306    ac_cpp_err=$ac_c_preproc_warn_flag
     3307    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3308  else
     3309    ac_cpp_err=
     3310  fi
     3311else
     3312  ac_cpp_err=yes
     3313fi
     3314if test -z "$ac_cpp_err"; then
     3315  # Broken: success on invalid input.
     3316continue
     3317else
     3318  echo "$as_me: failed program was:" >&5
     3319sed 's/^/| /' conftest.$ac_ext >&5
     3320
     3321  # Passes both tests.
     3322ac_preproc_ok=:
     3323break
     3324fi
     3325rm -f conftest.err conftest.$ac_ext
     3326
     3327done
     3328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3329rm -f conftest.err conftest.$ac_ext
     3330if $ac_preproc_ok; then
    14023331  :
    14033332else
    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
    1409 fi
    1410 rm -f conftest*
    1411 fi
    1412 rm -f conftest*
    1413 fi
    1414 rm -f conftest*
    1415   ac_cv_prog_CPP="$CPP"
    1416 fi
    1417   CPP="$ac_cv_prog_CPP"
    1418 else
    1419   ac_cv_prog_CPP="$CPP"
    1420 fi
    1421 echo "$ac_t""$CPP" 1>&6
    1422 
    1423 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1424 echo "configure:1425: checking for AIX" >&5
    1425 cat > conftest.$ac_ext <<EOF
    1426 #line 1427 "configure"
    1427 #include "confdefs.h"
     3333  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3334See \`config.log' for more details." >&5
     3335echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3336See \`config.log' for more details." >&2;}
     3337   { (exit 1); exit 1; }; }
     3338fi
     3339
     3340ac_ext=c
     3341ac_cpp='$CPP $CPPFLAGS'
     3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3345
     3346
     3347echo "$as_me:$LINENO: checking for egrep" >&5
     3348echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3349if test "${ac_cv_prog_egrep+set}" = set; then
     3350  echo $ECHO_N "(cached) $ECHO_C" >&6
     3351else
     3352  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3353    then ac_cv_prog_egrep='grep -E'
     3354    else ac_cv_prog_egrep='egrep'
     3355    fi
     3356fi
     3357echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3358echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3359 EGREP=$ac_cv_prog_egrep
     3360
     3361
     3362
     3363echo "$as_me:$LINENO: checking for AIX" >&5
     3364echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     3365cat >conftest.$ac_ext <<_ACEOF
     3366/* confdefs.h.  */
     3367_ACEOF
     3368cat confdefs.h >>conftest.$ac_ext
     3369cat >>conftest.$ac_ext <<_ACEOF
     3370/* end confdefs.h.  */
    14283371#ifdef _AIX
    14293372  yes
    14303373#endif
    14313374
    1432 EOF
     3375_ACEOF
    14333376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1434   egrep "yes" >/dev/null 2>&1; then
    1435   rm -rf conftest*
    1436   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     3377  $EGREP "yes" >/dev/null 2>&1; then
     3378  echo "$as_me:$LINENO: result: yes" >&5
     3379echo "${ECHO_T}yes" >&6
     3380cat >>confdefs.h <<\_ACEOF
    14373381#define _ALL_SOURCE 1
    1438 EOF
    1439 
    1440 else
    1441   rm -rf conftest*
    1442   echo "$ac_t""no" 1>&6
     3382_ACEOF
     3383
     3384else
     3385  echo "$as_me:$LINENO: result: no" >&5
     3386echo "${ECHO_T}no" >&6
    14433387fi
    14443388rm -f conftest*
    14453389
    14463390
    1447 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1448 echo "configure:1449: checking for POSIXized ISC" >&5
    1449 if test -d /etc/conf/kconfig.d &&
    1450   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    1451 then
    1452   echo "$ac_t""yes" 1>&6
    1453   ISC=yes # If later tests want to check for ISC.
    1454   cat >> confdefs.h <<\EOF
     3391echo "$as_me:$LINENO: checking for library containing strerror" >&5
     3392echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
     3393if test "${ac_cv_search_strerror+set}" = set; then
     3394  echo $ECHO_N "(cached) $ECHO_C" >&6
     3395else
     3396  ac_func_search_save_LIBS=$LIBS
     3397ac_cv_search_strerror=no
     3398cat >conftest.$ac_ext <<_ACEOF
     3399/* confdefs.h.  */
     3400_ACEOF
     3401cat confdefs.h >>conftest.$ac_ext
     3402cat >>conftest.$ac_ext <<_ACEOF
     3403/* end confdefs.h.  */
     3404
     3405/* Override any gcc2 internal prototype to avoid an error.  */
     3406#ifdef __cplusplus
     3407extern "C"
     3408#endif
     3409/* We use char because int might match the return type of a gcc2
     3410   builtin and then its argument prototype would still apply.  */
     3411char strerror ();
     3412int
     3413main ()
     3414{
     3415strerror ();
     3416  ;
     3417  return 0;
     3418}
     3419_ACEOF
     3420rm -f conftest.$ac_objext conftest$ac_exeext
     3421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3422  (eval $ac_link) 2>conftest.er1
     3423  ac_status=$?
     3424  grep -v '^ *+' conftest.er1 >conftest.err
     3425  rm -f conftest.er1
     3426  cat conftest.err >&5
     3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3428  (exit $ac_status); } &&
     3429     { ac_try='test -z "$ac_c_werror_flag"
     3430             || test ! -s conftest.err'
     3431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3432  (eval $ac_try) 2>&5
     3433  ac_status=$?
     3434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3435  (exit $ac_status); }; } &&
     3436     { ac_try='test -s conftest$ac_exeext'
     3437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3438  (eval $ac_try) 2>&5
     3439  ac_status=$?
     3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3441  (exit $ac_status); }; }; then
     3442  ac_cv_search_strerror="none required"
     3443else
     3444  echo "$as_me: failed program was:" >&5
     3445sed 's/^/| /' conftest.$ac_ext >&5
     3446
     3447fi
     3448rm -f conftest.err conftest.$ac_objext \
     3449      conftest$ac_exeext conftest.$ac_ext
     3450if test "$ac_cv_search_strerror" = no; then
     3451  for ac_lib in cposix; do
     3452    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     3453    cat >conftest.$ac_ext <<_ACEOF
     3454/* confdefs.h.  */
     3455_ACEOF
     3456cat confdefs.h >>conftest.$ac_ext
     3457cat >>conftest.$ac_ext <<_ACEOF
     3458/* end confdefs.h.  */
     3459
     3460/* Override any gcc2 internal prototype to avoid an error.  */
     3461#ifdef __cplusplus
     3462extern "C"
     3463#endif
     3464/* We use char because int might match the return type of a gcc2
     3465   builtin and then its argument prototype would still apply.  */
     3466char strerror ();
     3467int
     3468main ()
     3469{
     3470strerror ();
     3471  ;
     3472  return 0;
     3473}
     3474_ACEOF
     3475rm -f conftest.$ac_objext conftest$ac_exeext
     3476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3477  (eval $ac_link) 2>conftest.er1
     3478  ac_status=$?
     3479  grep -v '^ *+' conftest.er1 >conftest.err
     3480  rm -f conftest.er1
     3481  cat conftest.err >&5
     3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3483  (exit $ac_status); } &&
     3484     { ac_try='test -z "$ac_c_werror_flag"
     3485             || test ! -s conftest.err'
     3486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3487  (eval $ac_try) 2>&5
     3488  ac_status=$?
     3489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3490  (exit $ac_status); }; } &&
     3491     { ac_try='test -s conftest$ac_exeext'
     3492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3493  (eval $ac_try) 2>&5
     3494  ac_status=$?
     3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3496  (exit $ac_status); }; }; then
     3497  ac_cv_search_strerror="-l$ac_lib"
     3498break
     3499else
     3500  echo "$as_me: failed program was:" >&5
     3501sed 's/^/| /' conftest.$ac_ext >&5
     3502
     3503fi
     3504rm -f conftest.err conftest.$ac_objext \
     3505      conftest$ac_exeext conftest.$ac_ext
     3506  done
     3507fi
     3508LIBS=$ac_func_search_save_LIBS
     3509fi
     3510echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
     3511echo "${ECHO_T}$ac_cv_search_strerror" >&6
     3512if test "$ac_cv_search_strerror" != no; then
     3513  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
     3514
     3515fi
     3516
     3517echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3518echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3519if test "${ac_cv_header_stdc+set}" = set; then
     3520  echo $ECHO_N "(cached) $ECHO_C" >&6
     3521else
     3522  cat >conftest.$ac_ext <<_ACEOF
     3523/* confdefs.h.  */
     3524_ACEOF
     3525cat confdefs.h >>conftest.$ac_ext
     3526cat >>conftest.$ac_ext <<_ACEOF
     3527/* end confdefs.h.  */
     3528#include <stdlib.h>
     3529#include <stdarg.h>
     3530#include <string.h>
     3531#include <float.h>
     3532
     3533int
     3534main ()
     3535{
     3536
     3537  ;
     3538  return 0;
     3539}
     3540_ACEOF
     3541rm -f conftest.$ac_objext
     3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3543  (eval $ac_compile) 2>conftest.er1
     3544  ac_status=$?
     3545  grep -v '^ *+' conftest.er1 >conftest.err
     3546  rm -f conftest.er1
     3547  cat conftest.err >&5
     3548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3549  (exit $ac_status); } &&
     3550     { ac_try='test -z "$ac_c_werror_flag"
     3551             || test ! -s conftest.err'
     3552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3553  (eval $ac_try) 2>&5
     3554  ac_status=$?
     3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3556  (exit $ac_status); }; } &&
     3557     { ac_try='test -s conftest.$ac_objext'
     3558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3559  (eval $ac_try) 2>&5
     3560  ac_status=$?
     3561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3562  (exit $ac_status); }; }; then
     3563  ac_cv_header_stdc=yes
     3564else
     3565  echo "$as_me: failed program was:" >&5
     3566sed 's/^/| /' conftest.$ac_ext >&5
     3567
     3568ac_cv_header_stdc=no
     3569fi
     3570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3571
     3572if test $ac_cv_header_stdc = yes; then
     3573  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3574  cat >conftest.$ac_ext <<_ACEOF
     3575/* confdefs.h.  */
     3576_ACEOF
     3577cat confdefs.h >>conftest.$ac_ext
     3578cat >>conftest.$ac_ext <<_ACEOF
     3579/* end confdefs.h.  */
     3580#include <string.h>
     3581
     3582_ACEOF
     3583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3584  $EGREP "memchr" >/dev/null 2>&1; then
     3585  :
     3586else
     3587  ac_cv_header_stdc=no
     3588fi
     3589rm -f conftest*
     3590
     3591fi
     3592
     3593if test $ac_cv_header_stdc = yes; then
     3594  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3595  cat >conftest.$ac_ext <<_ACEOF
     3596/* confdefs.h.  */
     3597_ACEOF
     3598cat confdefs.h >>conftest.$ac_ext
     3599cat >>conftest.$ac_ext <<_ACEOF
     3600/* end confdefs.h.  */
     3601#include <stdlib.h>
     3602
     3603_ACEOF
     3604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3605  $EGREP "free" >/dev/null 2>&1; then
     3606  :
     3607else
     3608  ac_cv_header_stdc=no
     3609fi
     3610rm -f conftest*
     3611
     3612fi
     3613
     3614if test $ac_cv_header_stdc = yes; then
     3615  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3616  if test "$cross_compiling" = yes; then
     3617  :
     3618else
     3619  cat >conftest.$ac_ext <<_ACEOF
     3620/* confdefs.h.  */
     3621_ACEOF
     3622cat confdefs.h >>conftest.$ac_ext
     3623cat >>conftest.$ac_ext <<_ACEOF
     3624/* end confdefs.h.  */
     3625#include <ctype.h>
     3626#if ((' ' & 0x0FF) == 0x020)
     3627# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3628# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3629#else
     3630# define ISLOWER(c) \
     3631           (('a' <= (c) && (c) <= 'i') \
     3632             || ('j' <= (c) && (c) <= 'r') \
     3633             || ('s' <= (c) && (c) <= 'z'))
     3634# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3635#endif
     3636
     3637#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3638int
     3639main ()
     3640{
     3641  int i;
     3642  for (i = 0; i < 256; i++)
     3643    if (XOR (islower (i), ISLOWER (i))
     3644    || toupper (i) != TOUPPER (i))
     3645      exit(2);
     3646  exit (0);
     3647}
     3648_ACEOF
     3649rm -f conftest$ac_exeext
     3650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3651  (eval $ac_link) 2>&5
     3652  ac_status=$?
     3653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3654  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3656  (eval $ac_try) 2>&5
     3657  ac_status=$?
     3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3659  (exit $ac_status); }; }; then
     3660  :
     3661else
     3662  echo "$as_me: program exited with status $ac_status" >&5
     3663echo "$as_me: failed program was:" >&5
     3664sed 's/^/| /' conftest.$ac_ext >&5
     3665
     3666( exit $ac_status )
     3667ac_cv_header_stdc=no
     3668fi
     3669rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3670fi
     3671fi
     3672fi
     3673echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3674echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3675if test $ac_cv_header_stdc = yes; then
     3676
     3677cat >>confdefs.h <<\_ACEOF
     3678#define STDC_HEADERS 1
     3679_ACEOF
     3680
     3681fi
     3682
     3683# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3684
     3685
     3686
     3687
     3688
     3689
     3690
     3691
     3692
     3693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3694          inttypes.h stdint.h unistd.h
     3695do
     3696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3697echo "$as_me:$LINENO: checking for $ac_header" >&5
     3698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3699if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3700  echo $ECHO_N "(cached) $ECHO_C" >&6
     3701else
     3702  cat >conftest.$ac_ext <<_ACEOF
     3703/* confdefs.h.  */
     3704_ACEOF
     3705cat confdefs.h >>conftest.$ac_ext
     3706cat >>conftest.$ac_ext <<_ACEOF
     3707/* end confdefs.h.  */
     3708$ac_includes_default
     3709
     3710#include <$ac_header>
     3711_ACEOF
     3712rm -f conftest.$ac_objext
     3713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3714  (eval $ac_compile) 2>conftest.er1
     3715  ac_status=$?
     3716  grep -v '^ *+' conftest.er1 >conftest.err
     3717  rm -f conftest.er1
     3718  cat conftest.err >&5
     3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3720  (exit $ac_status); } &&
     3721     { ac_try='test -z "$ac_c_werror_flag"
     3722             || test ! -s conftest.err'
     3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3724  (eval $ac_try) 2>&5
     3725  ac_status=$?
     3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3727  (exit $ac_status); }; } &&
     3728     { ac_try='test -s conftest.$ac_objext'
     3729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3730  (eval $ac_try) 2>&5
     3731  ac_status=$?
     3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3733  (exit $ac_status); }; }; then
     3734  eval "$as_ac_Header=yes"
     3735else
     3736  echo "$as_me: failed program was:" >&5
     3737sed 's/^/| /' conftest.$ac_ext >&5
     3738
     3739eval "$as_ac_Header=no"
     3740fi
     3741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3742fi
     3743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3745if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3746  cat >>confdefs.h <<_ACEOF
     3747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3748_ACEOF
     3749
     3750fi
     3751
     3752done
     3753
     3754
     3755if test "${ac_cv_header_minix_config_h+set}" = set; then
     3756  echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3757echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3758if test "${ac_cv_header_minix_config_h+set}" = set; then
     3759  echo $ECHO_N "(cached) $ECHO_C" >&6
     3760fi
     3761echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3762echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3763else
     3764  # Is the header compilable?
     3765echo "$as_me:$LINENO: checking minix/config.h usability" >&5
     3766echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
     3767cat >conftest.$ac_ext <<_ACEOF
     3768/* confdefs.h.  */
     3769_ACEOF
     3770cat confdefs.h >>conftest.$ac_ext
     3771cat >>conftest.$ac_ext <<_ACEOF
     3772/* end confdefs.h.  */
     3773$ac_includes_default
     3774#include <minix/config.h>
     3775_ACEOF
     3776rm -f conftest.$ac_objext
     3777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3778  (eval $ac_compile) 2>conftest.er1
     3779  ac_status=$?
     3780  grep -v '^ *+' conftest.er1 >conftest.err
     3781  rm -f conftest.er1
     3782  cat conftest.err >&5
     3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3784  (exit $ac_status); } &&
     3785     { ac_try='test -z "$ac_c_werror_flag"
     3786             || test ! -s conftest.err'
     3787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3788  (eval $ac_try) 2>&5
     3789  ac_status=$?
     3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3791  (exit $ac_status); }; } &&
     3792     { ac_try='test -s conftest.$ac_objext'
     3793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3794  (eval $ac_try) 2>&5
     3795  ac_status=$?
     3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3797  (exit $ac_status); }; }; then
     3798  ac_header_compiler=yes
     3799else
     3800  echo "$as_me: failed program was:" >&5
     3801sed 's/^/| /' conftest.$ac_ext >&5
     3802
     3803ac_header_compiler=no
     3804fi
     3805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3807echo "${ECHO_T}$ac_header_compiler" >&6
     3808
     3809# Is the header present?
     3810echo "$as_me:$LINENO: checking minix/config.h presence" >&5
     3811echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
     3812cat >conftest.$ac_ext <<_ACEOF
     3813/* confdefs.h.  */
     3814_ACEOF
     3815cat confdefs.h >>conftest.$ac_ext
     3816cat >>conftest.$ac_ext <<_ACEOF
     3817/* end confdefs.h.  */
     3818#include <minix/config.h>
     3819_ACEOF
     3820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3822  ac_status=$?
     3823  grep -v '^ *+' conftest.er1 >conftest.err
     3824  rm -f conftest.er1
     3825  cat conftest.err >&5
     3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3827  (exit $ac_status); } >/dev/null; then
     3828  if test -s conftest.err; then
     3829    ac_cpp_err=$ac_c_preproc_warn_flag
     3830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3831  else
     3832    ac_cpp_err=
     3833  fi
     3834else
     3835  ac_cpp_err=yes
     3836fi
     3837if test -z "$ac_cpp_err"; then
     3838  ac_header_preproc=yes
     3839else
     3840  echo "$as_me: failed program was:" >&5
     3841sed 's/^/| /' conftest.$ac_ext >&5
     3842
     3843  ac_header_preproc=no
     3844fi
     3845rm -f conftest.err conftest.$ac_ext
     3846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     3847echo "${ECHO_T}$ac_header_preproc" >&6
     3848
     3849# So?  What about this header?
     3850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     3851  yes:no: )
     3852    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
     3853echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     3854    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
     3855echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
     3856    ac_header_preproc=yes
     3857    ;;
     3858  no:yes:* )
     3859    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
     3860echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
     3861    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
     3862echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
     3863    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
     3864echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
     3865    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
     3866echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     3867    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
     3868echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
     3869    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
     3870echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
     3871    (
     3872      cat <<\_ASBOX
     3873## ------------------------------------------ ##
     3874## Report this to the AC_PACKAGE_NAME lists.  ##
     3875## ------------------------------------------ ##
     3876_ASBOX
     3877    ) |
     3878      sed "s/^/$as_me: WARNING:     /" >&2
     3879    ;;
     3880esac
     3881echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3882echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3883if test "${ac_cv_header_minix_config_h+set}" = set; then
     3884  echo $ECHO_N "(cached) $ECHO_C" >&6
     3885else
     3886  ac_cv_header_minix_config_h=$ac_header_preproc
     3887fi
     3888echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3889echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3890
     3891fi
     3892if test $ac_cv_header_minix_config_h = yes; then
     3893  MINIX=yes
     3894else
     3895  MINIX=
     3896fi
     3897
     3898
     3899if test "$MINIX" = yes; then
     3900
     3901cat >>confdefs.h <<\_ACEOF
    14553902#define _POSIX_SOURCE 1
    1456 EOF
    1457 
    1458   if test "$GCC" = yes; then
    1459     CC="$CC -posix"
    1460   else
    1461     CC="$CC -Xp"
    1462   fi
    1463 else
    1464   echo "$ac_t""no" 1>&6
    1465   ISC=
    1466 fi
    1467 
    1468 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    1469 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    1470 echo "configure:1471: checking for minix/config.h" >&5
    1471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1472   echo $ac_n "(cached) $ac_c" 1>&6
    1473 else
    1474   cat > conftest.$ac_ext <<EOF
    1475 #line 1476 "configure"
    1476 #include "confdefs.h"
    1477 #include <minix/config.h>
    1478 EOF
    1479 ac_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; }
    1481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1482 if test -z "$ac_err"; then
    1483   rm -rf conftest*
    1484   eval "ac_cv_header_$ac_safe=yes"
    1485 else
    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"
    1491 fi
    1492 rm -f conftest*
    1493 fi
    1494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1495   echo "$ac_t""yes" 1>&6
    1496   MINIX=yes
    1497 else
    1498   echo "$ac_t""no" 1>&6
    1499 MINIX=
    1500 fi
    1501 
    1502 if test "$MINIX" = yes; then
    1503   cat >> confdefs.h <<\EOF
    1504 #define _POSIX_SOURCE 1
    1505 EOF
    1506 
    1507   cat >> confdefs.h <<\EOF
     3903_ACEOF
     3904
     3905
     3906cat >>confdefs.h <<\_ACEOF
    15083907#define _POSIX_1_SOURCE 2
    1509 EOF
    1510 
    1511   cat >> confdefs.h <<\EOF
     3908_ACEOF
     3909
     3910
     3911cat >>confdefs.h <<\_ACEOF
    15123912#define _MINIX 1
    1513 EOF
    1514 
    1515 fi
    1516 
    1517 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    1518 echo "configure:1519: checking for ${CC-cc} option to accept ANSI C" >&5
    1519 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    1520   echo $ac_n "(cached) $ac_c" 1>&6
     3913_ACEOF
     3914
     3915fi
     3916
     3917echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
     3918echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     3919if test "${ac_cv_prog_cc_stdc+set}" = set; then
     3920  echo $ECHO_N "(cached) $ECHO_C" >&6
    15213921else
    15223922  ac_cv_prog_cc_stdc=no
     
    15313931do
    15323932  CFLAGS="$ac_save_CFLAGS $ac_arg"
    1533   cat > conftest.$ac_ext <<EOF
    1534 #line 1535 "configure"
    1535 #include "confdefs.h"
     3933  cat >conftest.$ac_ext <<_ACEOF
     3934/* confdefs.h.  */
     3935_ACEOF
     3936cat confdefs.h >>conftest.$ac_ext
     3937cat >>conftest.$ac_ext <<_ACEOF
     3938/* end confdefs.h.  */
    15363939#if !defined(__STDC__) || __STDC__ != 1
    15373940choke me
    1538 #endif 
    1539 
    1540 int main() {
     3941#endif
     3942
     3943int
     3944main ()
     3945{
    15413946int test (int i, double x);
    15423947struct s1 {int (*f) (int a);};
    15433948struct s2 {int (*f) (double a);};
    1544 ; return 0; }
    1545 EOF
    1546 if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1547   rm -rf conftest*
     3949  ;
     3950  return 0;
     3951}
     3952_ACEOF
     3953rm -f conftest.$ac_objext
     3954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3955  (eval $ac_compile) 2>conftest.er1
     3956  ac_status=$?
     3957  grep -v '^ *+' conftest.er1 >conftest.err
     3958  rm -f conftest.er1
     3959  cat conftest.err >&5
     3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3961  (exit $ac_status); } &&
     3962     { ac_try='test -z "$ac_c_werror_flag"
     3963             || test ! -s conftest.err'
     3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3965  (eval $ac_try) 2>&5
     3966  ac_status=$?
     3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3968  (exit $ac_status); }; } &&
     3969     { ac_try='test -s conftest.$ac_objext'
     3970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3971  (eval $ac_try) 2>&5
     3972  ac_status=$?
     3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3974  (exit $ac_status); }; }; then
    15483975  ac_cv_prog_cc_stdc="$ac_arg"; break
    15493976else
    1550   echo "configure: failed program was:" >&5
    1551   cat conftest.$ac_ext >&5
    1552 fi
    1553 rm -f conftest*
     3977  echo "$as_me: failed program was:" >&5
     3978sed 's/^/| /' conftest.$ac_ext >&5
     3979
     3980fi
     3981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    15543982done
    15553983CFLAGS="$ac_save_CFLAGS"
     
    15573985fi
    15583986
    1559 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
     3987echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     3988echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    15603989case "x$ac_cv_prog_cc_stdc" in
    15613990  x|xno) ;;
     
    15643993
    15653994
    1566 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
    1567 echo "configure:1568: checking for function prototypes" >&5
     3995echo "$as_me:$LINENO: checking for function prototypes" >&5
     3996echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    15683997if test "$ac_cv_prog_cc_stdc" != no; then
    1569   echo "$ac_t""yes" 1>&6
    1570   cat >> confdefs.h <<\EOF
     3998  echo "$as_me:$LINENO: result: yes" >&5
     3999echo "${ECHO_T}yes" >&6
     4000  cat >>confdefs.h <<\_ACEOF
    15714001#define PROTOTYPES 1
    1572 EOF
     4002_ACEOF
    15734003
    15744004  U= ANSI2KNR=
    15754005else
    1576   echo "$ac_t""no" 1>&6
     4006  echo "$as_me:$LINENO: result: no" >&5
     4007echo "${ECHO_T}no" >&6
    15774008  U=_ ANSI2KNR=ansi2knr
    15784009fi
    15794010
    1580 echo $ac_n "checking for working const""... $ac_c" 1>&6
    1581 echo "configure:1582: checking for working const" >&5
    1582 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    1583   echo $ac_n "(cached) $ac_c" 1>&6
    1584 else
    1585   cat > conftest.$ac_ext <<EOF
    1586 #line 1587 "configure"
    1587 #include "confdefs.h"
    1588 
    1589 int main() {
    1590 
    1591 /* Ultrix mips cc rejects this.  */
    1592 typedef int charset[2]; const charset x;
    1593 /* SunOS 4.1.1 cc rejects this.  */
    1594 char const *const *ccp;
    1595 char **p;
    1596 /* NEC SVR4.0.2 mips cc rejects this.  */
    1597 struct point {int x, y;};
    1598 static 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 */
    1602 const char *g = "string";
    1603 ccp = &g + (g ? g-g : 0);
    1604 /* HPUX 7.0 cc rejects these. */
    1605 ++ccp;
    1606 p = (char**) ccp;
    1607 ccp = (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;
     4011echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
     4012echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     4013if test "${ac_cv_c_const+set}" = set; then
     4014  echo $ECHO_N "(cached) $ECHO_C" >&6
     4015else
     4016  cat >conftest.$ac_ext <<_ACEOF
     4017/* confdefs.h.  */
     4018_ACEOF
     4019cat confdefs.h >>conftest.$ac_ext
     4020cat >>conftest.$ac_ext <<_ACEOF
     4021/* end confdefs.h.  */
     4022
     4023int
     4024main ()
     4025{
     4026/* FIXME: Include the comments suggested by Paul. */
     4027#ifndef __cplusplus
     4028  /* Ultrix mips cc rejects this.  */
     4029  typedef int charset[2];
     4030  const charset x;
     4031  /* SunOS 4.1.1 cc rejects this.  */
     4032  char const *const *ccp;
     4033  char **p;
     4034  /* NEC SVR4.0.2 mips cc rejects this.  */
     4035  struct point {int x, y;};
     4036  static struct point const zero = {0,0};
     4037  /* AIX XL C 1.02.0.0 rejects this.
     4038     It does not let you subtract one const X* pointer from another in
     4039     an arm of an if-expression whose if-part is not a constant
     4040     expression */
     4041  const char *g = "string";
     4042  ccp = &g + (g ? g-g : 0);
     4043  /* HPUX 7.0 cc rejects these. */
     4044  ++ccp;
     4045  p = (char**) ccp;
     4046  ccp = (char const *const *) p;
     4047  { /* SCO 3.2v4 cc rejects this.  */
     4048    char *t;
     4049    char const *s = 0 ? (char *) 0 : (char const *) 0;
     4050
     4051    *t++ = 0;
     4052  }
     4053  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     4054    int x[] = {25, 17};
     4055    const int *foo = &x[0];
     4056    ++foo;
     4057  }
     4058  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     4059    typedef const int *iptr;
     4060    iptr p = 0;
     4061    ++p;
     4062  }
     4063  { /* AIX XL C 1.02.0.0 rejects this saying
     4064       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     4065    struct s { int j; const int *ap[3]; };
     4066    struct s *b; b->j = 5;
     4067  }
     4068  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     4069    const int foo = 10;
     4070  }
     4071#endif
     4072
     4073  ;
     4074  return 0;
    16134075}
    1614 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    1615   int x[] = {25, 17};
    1616   const int *foo = &x[0];
    1617   ++foo;
     4076_ACEOF
     4077rm -f conftest.$ac_objext
     4078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4079  (eval $ac_compile) 2>conftest.er1
     4080  ac_status=$?
     4081  grep -v '^ *+' conftest.er1 >conftest.err
     4082  rm -f conftest.er1
     4083  cat conftest.err >&5
     4084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4085  (exit $ac_status); } &&
     4086     { ac_try='test -z "$ac_c_werror_flag"
     4087             || test ! -s conftest.err'
     4088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4089  (eval $ac_try) 2>&5
     4090  ac_status=$?
     4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4092  (exit $ac_status); }; } &&
     4093     { ac_try='test -s conftest.$ac_objext'
     4094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4095  (eval $ac_try) 2>&5
     4096  ac_status=$?
     4097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4098  (exit $ac_status); }; }; then
     4099  ac_cv_c_const=yes
     4100else
     4101  echo "$as_me: failed program was:" >&5
     4102sed 's/^/| /' conftest.$ac_ext >&5
     4103
     4104ac_cv_c_const=no
     4105fi
     4106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4107fi
     4108echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
     4109echo "${ECHO_T}$ac_cv_c_const" >&6
     4110if test $ac_cv_c_const = no; then
     4111
     4112cat >>confdefs.h <<\_ACEOF
     4113#define const
     4114_ACEOF
     4115
     4116fi
     4117
     4118echo "$as_me:$LINENO: checking for off_t" >&5
     4119echo $ECHO_N "checking for off_t... $ECHO_C" >&6
     4120if test "${ac_cv_type_off_t+set}" = set; then
     4121  echo $ECHO_N "(cached) $ECHO_C" >&6
     4122else
     4123  cat >conftest.$ac_ext <<_ACEOF
     4124/* confdefs.h.  */
     4125_ACEOF
     4126cat confdefs.h >>conftest.$ac_ext
     4127cat >>conftest.$ac_ext <<_ACEOF
     4128/* end confdefs.h.  */
     4129$ac_includes_default
     4130int
     4131main ()
     4132{
     4133if ((off_t *) 0)
     4134  return 0;
     4135if (sizeof (off_t))
     4136  return 0;
     4137  ;
     4138  return 0;
    16184139}
    1619 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    1620   typedef const int *iptr;
    1621   iptr p = 0;
    1622   ++p;
     4140_ACEOF
     4141rm -f conftest.$ac_objext
     4142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4143  (eval $ac_compile) 2>conftest.er1
     4144  ac_status=$?
     4145  grep -v '^ *+' conftest.er1 >conftest.err
     4146  rm -f conftest.er1
     4147  cat conftest.err >&5
     4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4149  (exit $ac_status); } &&
     4150     { ac_try='test -z "$ac_c_werror_flag"
     4151             || test ! -s conftest.err'
     4152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4153  (eval $ac_try) 2>&5
     4154  ac_status=$?
     4155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4156  (exit $ac_status); }; } &&
     4157     { ac_try='test -s conftest.$ac_objext'
     4158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4159  (eval $ac_try) 2>&5
     4160  ac_status=$?
     4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4162  (exit $ac_status); }; }; then
     4163  ac_cv_type_off_t=yes
     4164else
     4165  echo "$as_me: failed program was:" >&5
     4166sed 's/^/| /' conftest.$ac_ext >&5
     4167
     4168ac_cv_type_off_t=no
     4169fi
     4170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4171fi
     4172echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
     4173echo "${ECHO_T}$ac_cv_type_off_t" >&6
     4174if test $ac_cv_type_off_t = yes; then
     4175  :
     4176else
     4177
     4178cat >>confdefs.h <<_ACEOF
     4179#define off_t long
     4180_ACEOF
     4181
     4182fi
     4183
     4184echo "$as_me:$LINENO: checking for size_t" >&5
     4185echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     4186if test "${ac_cv_type_size_t+set}" = set; then
     4187  echo $ECHO_N "(cached) $ECHO_C" >&6
     4188else
     4189  cat >conftest.$ac_ext <<_ACEOF
     4190/* confdefs.h.  */
     4191_ACEOF
     4192cat confdefs.h >>conftest.$ac_ext
     4193cat >>conftest.$ac_ext <<_ACEOF
     4194/* end confdefs.h.  */
     4195$ac_includes_default
     4196int
     4197main ()
     4198{
     4199if ((size_t *) 0)
     4200  return 0;
     4201if (sizeof (size_t))
     4202  return 0;
     4203  ;
     4204  return 0;
    16234205}
    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;
     4206_ACEOF
     4207rm -f conftest.$ac_objext
     4208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4209  (eval $ac_compile) 2>conftest.er1
     4210  ac_status=$?
     4211  grep -v '^ *+' conftest.er1 >conftest.err
     4212  rm -f conftest.er1
     4213  cat conftest.err >&5
     4214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4215  (exit $ac_status); } &&
     4216     { ac_try='test -z "$ac_c_werror_flag"
     4217             || test ! -s conftest.err'
     4218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4219  (eval $ac_try) 2>&5
     4220  ac_status=$?
     4221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4222  (exit $ac_status); }; } &&
     4223     { ac_try='test -s conftest.$ac_objext'
     4224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4225  (eval $ac_try) 2>&5
     4226  ac_status=$?
     4227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4228  (exit $ac_status); }; }; then
     4229  ac_cv_type_size_t=yes
     4230else
     4231  echo "$as_me: failed program was:" >&5
     4232sed 's/^/| /' conftest.$ac_ext >&5
     4233
     4234ac_cv_type_size_t=no
     4235fi
     4236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4237fi
     4238echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
     4239echo "${ECHO_T}$ac_cv_type_size_t" >&6
     4240if test $ac_cv_type_size_t = yes; then
     4241  :
     4242else
     4243
     4244cat >>confdefs.h <<_ACEOF
     4245#define size_t unsigned
     4246_ACEOF
     4247
     4248fi
     4249
     4250echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
     4251echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     4252if test "${ac_cv_header_time+set}" = set; then
     4253  echo $ECHO_N "(cached) $ECHO_C" >&6
     4254else
     4255  cat >conftest.$ac_ext <<_ACEOF
     4256/* confdefs.h.  */
     4257_ACEOF
     4258cat confdefs.h >>conftest.$ac_ext
     4259cat >>conftest.$ac_ext <<_ACEOF
     4260/* end confdefs.h.  */
     4261#include <sys/types.h>
     4262#include <sys/time.h>
     4263#include <time.h>
     4264
     4265int
     4266main ()
     4267{
     4268if ((struct tm *) 0)
     4269return 0;
     4270  ;
     4271  return 0;
    16284272}
    1629 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    1630   const int foo = 10;
     4273_ACEOF
     4274rm -f conftest.$ac_objext
     4275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4276  (eval $ac_compile) 2>conftest.er1
     4277  ac_status=$?
     4278  grep -v '^ *+' conftest.er1 >conftest.err
     4279  rm -f conftest.er1
     4280  cat conftest.err >&5
     4281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4282  (exit $ac_status); } &&
     4283     { ac_try='test -z "$ac_c_werror_flag"
     4284             || test ! -s conftest.err'
     4285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4286  (eval $ac_try) 2>&5
     4287  ac_status=$?
     4288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4289  (exit $ac_status); }; } &&
     4290     { ac_try='test -s conftest.$ac_objext'
     4291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4292  (eval $ac_try) 2>&5
     4293  ac_status=$?
     4294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4295  (exit $ac_status); }; }; then
     4296  ac_cv_header_time=yes
     4297else
     4298  echo "$as_me: failed program was:" >&5
     4299sed 's/^/| /' conftest.$ac_ext >&5
     4300
     4301ac_cv_header_time=no
     4302fi
     4303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4304fi
     4305echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
     4306echo "${ECHO_T}$ac_cv_header_time" >&6
     4307if test $ac_cv_header_time = yes; then
     4308
     4309cat >>confdefs.h <<\_ACEOF
     4310#define TIME_WITH_SYS_TIME 1
     4311_ACEOF
     4312
     4313fi
     4314
     4315echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
     4316echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     4317if test "${ac_cv_struct_tm+set}" = set; then
     4318  echo $ECHO_N "(cached) $ECHO_C" >&6
     4319else
     4320  cat >conftest.$ac_ext <<_ACEOF
     4321/* confdefs.h.  */
     4322_ACEOF
     4323cat confdefs.h >>conftest.$ac_ext
     4324cat >>conftest.$ac_ext <<_ACEOF
     4325/* end confdefs.h.  */
     4326#include <sys/types.h>
     4327#include <time.h>
     4328
     4329int
     4330main ()
     4331{
     4332struct tm *tp; tp->tm_sec;
     4333  ;
     4334  return 0;
    16314335}
    1632 
    1633 ; return 0; }
    1634 EOF
    1635 if { (eval echo configure:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1636   rm -rf conftest*
    1637   ac_cv_c_const=yes
    1638 else
    1639   echo "configure: failed program was:" >&5
    1640   cat conftest.$ac_ext >&5
    1641   rm -rf conftest*
    1642   ac_cv_c_const=no
    1643 fi
    1644 rm -f conftest*
    1645 fi
    1646 
    1647 echo "$ac_t""$ac_cv_c_const" 1>&6
    1648 if test $ac_cv_c_const = no; then
    1649   cat >> confdefs.h <<\EOF
    1650 #define const
    1651 EOF
    1652 
    1653 fi
    1654 
    1655 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1656 echo "configure:1657: checking for ANSI C header files" >&5
    1657 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1658   echo $ac_n "(cached) $ac_c" 1>&6
    1659 else
    1660   cat > conftest.$ac_ext <<EOF
    1661 #line 1662 "configure"
    1662 #include "confdefs.h"
     4336_ACEOF
     4337rm -f conftest.$ac_objext
     4338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4339  (eval $ac_compile) 2>conftest.er1
     4340  ac_status=$?
     4341  grep -v '^ *+' conftest.er1 >conftest.err
     4342  rm -f conftest.er1
     4343  cat conftest.err >&5
     4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4345  (exit $ac_status); } &&
     4346     { ac_try='test -z "$ac_c_werror_flag"
     4347             || test ! -s conftest.err'
     4348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4349  (eval $ac_try) 2>&5
     4350  ac_status=$?
     4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4352  (exit $ac_status); }; } &&
     4353     { ac_try='test -s conftest.$ac_objext'
     4354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4355  (eval $ac_try) 2>&5
     4356  ac_status=$?
     4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4358  (exit $ac_status); }; }; then
     4359  ac_cv_struct_tm=time.h
     4360else
     4361  echo "$as_me: failed program was:" >&5
     4362sed 's/^/| /' conftest.$ac_ext >&5
     4363
     4364ac_cv_struct_tm=sys/time.h
     4365fi
     4366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4367fi
     4368echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
     4369echo "${ECHO_T}$ac_cv_struct_tm" >&6
     4370if test $ac_cv_struct_tm = sys/time.h; then
     4371
     4372cat >>confdefs.h <<\_ACEOF
     4373#define TM_IN_SYS_TIME 1
     4374_ACEOF
     4375
     4376fi
     4377
     4378
     4379if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
     4380cat >conftest.$ac_ext <<_ACEOF
     4381/* confdefs.h.  */
     4382_ACEOF
     4383cat confdefs.h >>conftest.$ac_ext
     4384cat >>conftest.$ac_ext <<_ACEOF
     4385/* end confdefs.h.  */
     4386#include <stdio.h>
     4387
     4388int
     4389main ()
     4390{
     4391 FILE *rubbish = popen("yes", "r");
     4392  ;
     4393  return 0;
     4394}
     4395_ACEOF
     4396rm -f conftest.$ac_objext
     4397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4398  (eval $ac_compile) 2>conftest.er1
     4399  ac_status=$?
     4400  grep -v '^ *+' conftest.er1 >conftest.err
     4401  rm -f conftest.er1
     4402  cat conftest.err >&5
     4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4404  (exit $ac_status); } &&
     4405     { ac_try='test -z "$ac_c_werror_flag"
     4406             || test ! -s conftest.err'
     4407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4408  (eval $ac_try) 2>&5
     4409  ac_status=$?
     4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4411  (exit $ac_status); }; } &&
     4412     { ac_try='test -s conftest.$ac_objext'
     4413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4414  (eval $ac_try) 2>&5
     4415  ac_status=$?
     4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4417  (exit $ac_status); }; }; then
     4418  :
     4419else
     4420  echo "$as_me: failed program was:" >&5
     4421sed 's/^/| /' conftest.$ac_ext >&5
     4422
     4423CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     4424fi
     4425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4426fi
     4427
     4428
     4429
     4430echo "$as_me:$LINENO: checking for main in -lg" >&5
     4431echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
     4432if test "${ac_cv_lib_g_main+set}" = set; then
     4433  echo $ECHO_N "(cached) $ECHO_C" >&6
     4434else
     4435  ac_check_lib_save_LIBS=$LIBS
     4436LIBS="-lg  $LIBS"
     4437cat >conftest.$ac_ext <<_ACEOF
     4438/* confdefs.h.  */
     4439_ACEOF
     4440cat confdefs.h >>conftest.$ac_ext
     4441cat >>conftest.$ac_ext <<_ACEOF
     4442/* end confdefs.h.  */
     4443
     4444
     4445int
     4446main ()
     4447{
     4448main ();
     4449  ;
     4450  return 0;
     4451}
     4452_ACEOF
     4453rm -f conftest.$ac_objext conftest$ac_exeext
     4454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4455  (eval $ac_link) 2>conftest.er1
     4456  ac_status=$?
     4457  grep -v '^ *+' conftest.er1 >conftest.err
     4458  rm -f conftest.er1
     4459  cat conftest.err >&5
     4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4461  (exit $ac_status); } &&
     4462     { ac_try='test -z "$ac_c_werror_flag"
     4463             || test ! -s conftest.err'
     4464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4465  (eval $ac_try) 2>&5
     4466  ac_status=$?
     4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4468  (exit $ac_status); }; } &&
     4469     { ac_try='test -s conftest$ac_exeext'
     4470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4471  (eval $ac_try) 2>&5
     4472  ac_status=$?
     4473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4474  (exit $ac_status); }; }; then
     4475  ac_cv_lib_g_main=yes
     4476else
     4477  echo "$as_me: failed program was:" >&5
     4478sed 's/^/| /' conftest.$ac_ext >&5
     4479
     4480ac_cv_lib_g_main=no
     4481fi
     4482rm -f conftest.err conftest.$ac_objext \
     4483      conftest$ac_exeext conftest.$ac_ext
     4484LIBS=$ac_check_lib_save_LIBS
     4485fi
     4486echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
     4487echo "${ECHO_T}$ac_cv_lib_g_main" >&6
     4488if test $ac_cv_lib_g_main = yes; then
     4489  cat >>confdefs.h <<_ACEOF
     4490#define HAVE_LIBG 1
     4491_ACEOF
     4492
     4493  LIBS="-lg $LIBS"
     4494
     4495fi
     4496ac_cv_lib_g=ac_cv_lib_g_main
     4497
     4498
     4499echo "$as_me:$LINENO: checking for main in -lm" >&5
     4500echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     4501if test "${ac_cv_lib_m_main+set}" = set; then
     4502  echo $ECHO_N "(cached) $ECHO_C" >&6
     4503else
     4504  ac_check_lib_save_LIBS=$LIBS
     4505LIBS="-lm  $LIBS"
     4506cat >conftest.$ac_ext <<_ACEOF
     4507/* confdefs.h.  */
     4508_ACEOF
     4509cat confdefs.h >>conftest.$ac_ext
     4510cat >>conftest.$ac_ext <<_ACEOF
     4511/* end confdefs.h.  */
     4512
     4513
     4514int
     4515main ()
     4516{
     4517main ();
     4518  ;
     4519  return 0;
     4520}
     4521_ACEOF
     4522rm -f conftest.$ac_objext conftest$ac_exeext
     4523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4524  (eval $ac_link) 2>conftest.er1
     4525  ac_status=$?
     4526  grep -v '^ *+' conftest.er1 >conftest.err
     4527  rm -f conftest.er1
     4528  cat conftest.err >&5
     4529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4530  (exit $ac_status); } &&
     4531     { ac_try='test -z "$ac_c_werror_flag"
     4532             || test ! -s conftest.err'
     4533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4534  (eval $ac_try) 2>&5
     4535  ac_status=$?
     4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4537  (exit $ac_status); }; } &&
     4538     { ac_try='test -s conftest$ac_exeext'
     4539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4540  (eval $ac_try) 2>&5
     4541  ac_status=$?
     4542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4543  (exit $ac_status); }; }; then
     4544  ac_cv_lib_m_main=yes
     4545else
     4546  echo "$as_me: failed program was:" >&5
     4547sed 's/^/| /' conftest.$ac_ext >&5
     4548
     4549ac_cv_lib_m_main=no
     4550fi
     4551rm -f conftest.err conftest.$ac_objext \
     4552      conftest$ac_exeext conftest.$ac_ext
     4553LIBS=$ac_check_lib_save_LIBS
     4554fi
     4555echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     4556echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     4557if test $ac_cv_lib_m_main = yes; then
     4558  cat >>confdefs.h <<_ACEOF
     4559#define HAVE_LIBM 1
     4560_ACEOF
     4561
     4562  LIBS="-lm $LIBS"
     4563
     4564fi
     4565ac_cv_lib_m=ac_cv_lib_m_main
     4566
     4567
     4568echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
     4569echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
     4570if test "${ac_cv_lib_crypt_main+set}" = set; then
     4571  echo $ECHO_N "(cached) $ECHO_C" >&6
     4572else
     4573  ac_check_lib_save_LIBS=$LIBS
     4574LIBS="-lcrypt  $LIBS"
     4575cat >conftest.$ac_ext <<_ACEOF
     4576/* confdefs.h.  */
     4577_ACEOF
     4578cat confdefs.h >>conftest.$ac_ext
     4579cat >>conftest.$ac_ext <<_ACEOF
     4580/* end confdefs.h.  */
     4581
     4582
     4583int
     4584main ()
     4585{
     4586main ();
     4587  ;
     4588  return 0;
     4589}
     4590_ACEOF
     4591rm -f conftest.$ac_objext conftest$ac_exeext
     4592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4593  (eval $ac_link) 2>conftest.er1
     4594  ac_status=$?
     4595  grep -v '^ *+' conftest.er1 >conftest.err
     4596  rm -f conftest.er1
     4597  cat conftest.err >&5
     4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4599  (exit $ac_status); } &&
     4600     { ac_try='test -z "$ac_c_werror_flag"
     4601             || test ! -s conftest.err'
     4602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4603  (eval $ac_try) 2>&5
     4604  ac_status=$?
     4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4606  (exit $ac_status); }; } &&
     4607     { ac_try='test -s conftest$ac_exeext'
     4608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4609  (eval $ac_try) 2>&5
     4610  ac_status=$?
     4611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4612  (exit $ac_status); }; }; then
     4613  ac_cv_lib_crypt_main=yes
     4614else
     4615  echo "$as_me: failed program was:" >&5
     4616sed 's/^/| /' conftest.$ac_ext >&5
     4617
     4618ac_cv_lib_crypt_main=no
     4619fi
     4620rm -f conftest.err conftest.$ac_objext \
     4621      conftest$ac_exeext conftest.$ac_ext
     4622LIBS=$ac_check_lib_save_LIBS
     4623fi
     4624echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
     4625echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
     4626if test $ac_cv_lib_crypt_main = yes; then
     4627  cat >>confdefs.h <<_ACEOF
     4628#define HAVE_LIBCRYPT 1
     4629_ACEOF
     4630
     4631  LIBS="-lcrypt $LIBS"
     4632
     4633fi
     4634ac_cv_lib_crypt=ac_cv_lib_crypt_main
     4635
     4636
     4637
     4638
     4639
     4640
     4641
     4642
     4643ac_header_dirent=no
     4644for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
     4645  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     4646echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
     4647echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
     4648if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4649  echo $ECHO_N "(cached) $ECHO_C" >&6
     4650else
     4651  cat >conftest.$ac_ext <<_ACEOF
     4652/* confdefs.h.  */
     4653_ACEOF
     4654cat confdefs.h >>conftest.$ac_ext
     4655cat >>conftest.$ac_ext <<_ACEOF
     4656/* end confdefs.h.  */
     4657#include <sys/types.h>
     4658#include <$ac_hdr>
     4659
     4660int
     4661main ()
     4662{
     4663if ((DIR *) 0)
     4664return 0;
     4665  ;
     4666  return 0;
     4667}
     4668_ACEOF
     4669rm -f conftest.$ac_objext
     4670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4671  (eval $ac_compile) 2>conftest.er1
     4672  ac_status=$?
     4673  grep -v '^ *+' conftest.er1 >conftest.err
     4674  rm -f conftest.er1
     4675  cat conftest.err >&5
     4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4677  (exit $ac_status); } &&
     4678     { ac_try='test -z "$ac_c_werror_flag"
     4679             || test ! -s conftest.err'
     4680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4681  (eval $ac_try) 2>&5
     4682  ac_status=$?
     4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4684  (exit $ac_status); }; } &&
     4685     { ac_try='test -s conftest.$ac_objext'
     4686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4687  (eval $ac_try) 2>&5
     4688  ac_status=$?
     4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4690  (exit $ac_status); }; }; then
     4691  eval "$as_ac_Header=yes"
     4692else
     4693  echo "$as_me: failed program was:" >&5
     4694sed 's/^/| /' conftest.$ac_ext >&5
     4695
     4696eval "$as_ac_Header=no"
     4697fi
     4698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4699fi
     4700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4702if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4703  cat >>confdefs.h <<_ACEOF
     4704#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     4705_ACEOF
     4706
     4707ac_header_dirent=$ac_hdr; break
     4708fi
     4709
     4710done
     4711# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
     4712if test $ac_header_dirent = dirent.h; then
     4713  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4714echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4715if test "${ac_cv_search_opendir+set}" = set; then
     4716  echo $ECHO_N "(cached) $ECHO_C" >&6
     4717else
     4718  ac_func_search_save_LIBS=$LIBS
     4719ac_cv_search_opendir=no
     4720cat >conftest.$ac_ext <<_ACEOF
     4721/* confdefs.h.  */
     4722_ACEOF
     4723cat confdefs.h >>conftest.$ac_ext
     4724cat >>conftest.$ac_ext <<_ACEOF
     4725/* end confdefs.h.  */
     4726
     4727/* Override any gcc2 internal prototype to avoid an error.  */
     4728#ifdef __cplusplus
     4729extern "C"
     4730#endif
     4731/* We use char because int might match the return type of a gcc2
     4732   builtin and then its argument prototype would still apply.  */
     4733char opendir ();
     4734int
     4735main ()
     4736{
     4737opendir ();
     4738  ;
     4739  return 0;
     4740}
     4741_ACEOF
     4742rm -f conftest.$ac_objext conftest$ac_exeext
     4743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4744  (eval $ac_link) 2>conftest.er1
     4745  ac_status=$?
     4746  grep -v '^ *+' conftest.er1 >conftest.err
     4747  rm -f conftest.er1
     4748  cat conftest.err >&5
     4749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4750  (exit $ac_status); } &&
     4751     { ac_try='test -z "$ac_c_werror_flag"
     4752             || test ! -s conftest.err'
     4753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4754  (eval $ac_try) 2>&5
     4755  ac_status=$?
     4756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4757  (exit $ac_status); }; } &&
     4758     { ac_try='test -s conftest$ac_exeext'
     4759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4760  (eval $ac_try) 2>&5
     4761  ac_status=$?
     4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4763  (exit $ac_status); }; }; then
     4764  ac_cv_search_opendir="none required"
     4765else
     4766  echo "$as_me: failed program was:" >&5
     4767sed 's/^/| /' conftest.$ac_ext >&5
     4768
     4769fi
     4770rm -f conftest.err conftest.$ac_objext \
     4771      conftest$ac_exeext conftest.$ac_ext
     4772if test "$ac_cv_search_opendir" = no; then
     4773  for ac_lib in dir; do
     4774    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4775    cat >conftest.$ac_ext <<_ACEOF
     4776/* confdefs.h.  */
     4777_ACEOF
     4778cat confdefs.h >>conftest.$ac_ext
     4779cat >>conftest.$ac_ext <<_ACEOF
     4780/* end confdefs.h.  */
     4781
     4782/* Override any gcc2 internal prototype to avoid an error.  */
     4783#ifdef __cplusplus
     4784extern "C"
     4785#endif
     4786/* We use char because int might match the return type of a gcc2
     4787   builtin and then its argument prototype would still apply.  */
     4788char opendir ();
     4789int
     4790main ()
     4791{
     4792opendir ();
     4793  ;
     4794  return 0;
     4795}
     4796_ACEOF
     4797rm -f conftest.$ac_objext conftest$ac_exeext
     4798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4799  (eval $ac_link) 2>conftest.er1
     4800  ac_status=$?
     4801  grep -v '^ *+' conftest.er1 >conftest.err
     4802  rm -f conftest.er1
     4803  cat conftest.err >&5
     4804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4805  (exit $ac_status); } &&
     4806     { ac_try='test -z "$ac_c_werror_flag"
     4807             || test ! -s conftest.err'
     4808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4809  (eval $ac_try) 2>&5
     4810  ac_status=$?
     4811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4812  (exit $ac_status); }; } &&
     4813     { ac_try='test -s conftest$ac_exeext'
     4814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4815  (eval $ac_try) 2>&5
     4816  ac_status=$?
     4817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4818  (exit $ac_status); }; }; then
     4819  ac_cv_search_opendir="-l$ac_lib"
     4820break
     4821else
     4822  echo "$as_me: failed program was:" >&5
     4823sed 's/^/| /' conftest.$ac_ext >&5
     4824
     4825fi
     4826rm -f conftest.err conftest.$ac_objext \
     4827      conftest$ac_exeext conftest.$ac_ext
     4828  done
     4829fi
     4830LIBS=$ac_func_search_save_LIBS
     4831fi
     4832echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4833echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4834if test "$ac_cv_search_opendir" != no; then
     4835  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4836
     4837fi
     4838
     4839else
     4840  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4841echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4842if test "${ac_cv_search_opendir+set}" = set; then
     4843  echo $ECHO_N "(cached) $ECHO_C" >&6
     4844else
     4845  ac_func_search_save_LIBS=$LIBS
     4846ac_cv_search_opendir=no
     4847cat >conftest.$ac_ext <<_ACEOF
     4848/* confdefs.h.  */
     4849_ACEOF
     4850cat confdefs.h >>conftest.$ac_ext
     4851cat >>conftest.$ac_ext <<_ACEOF
     4852/* end confdefs.h.  */
     4853
     4854/* Override any gcc2 internal prototype to avoid an error.  */
     4855#ifdef __cplusplus
     4856extern "C"
     4857#endif
     4858/* We use char because int might match the return type of a gcc2
     4859   builtin and then its argument prototype would still apply.  */
     4860char opendir ();
     4861int
     4862main ()
     4863{
     4864opendir ();
     4865  ;
     4866  return 0;
     4867}
     4868_ACEOF
     4869rm -f conftest.$ac_objext conftest$ac_exeext
     4870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4871  (eval $ac_link) 2>conftest.er1
     4872  ac_status=$?
     4873  grep -v '^ *+' conftest.er1 >conftest.err
     4874  rm -f conftest.er1
     4875  cat conftest.err >&5
     4876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4877  (exit $ac_status); } &&
     4878     { ac_try='test -z "$ac_c_werror_flag"
     4879             || test ! -s conftest.err'
     4880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4881  (eval $ac_try) 2>&5
     4882  ac_status=$?
     4883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4884  (exit $ac_status); }; } &&
     4885     { ac_try='test -s conftest$ac_exeext'
     4886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4887  (eval $ac_try) 2>&5
     4888  ac_status=$?
     4889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4890  (exit $ac_status); }; }; then
     4891  ac_cv_search_opendir="none required"
     4892else
     4893  echo "$as_me: failed program was:" >&5
     4894sed 's/^/| /' conftest.$ac_ext >&5
     4895
     4896fi
     4897rm -f conftest.err conftest.$ac_objext \
     4898      conftest$ac_exeext conftest.$ac_ext
     4899if test "$ac_cv_search_opendir" = no; then
     4900  for ac_lib in x; do
     4901    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4902    cat >conftest.$ac_ext <<_ACEOF
     4903/* confdefs.h.  */
     4904_ACEOF
     4905cat confdefs.h >>conftest.$ac_ext
     4906cat >>conftest.$ac_ext <<_ACEOF
     4907/* end confdefs.h.  */
     4908
     4909/* Override any gcc2 internal prototype to avoid an error.  */
     4910#ifdef __cplusplus
     4911extern "C"
     4912#endif
     4913/* We use char because int might match the return type of a gcc2
     4914   builtin and then its argument prototype would still apply.  */
     4915char opendir ();
     4916int
     4917main ()
     4918{
     4919opendir ();
     4920  ;
     4921  return 0;
     4922}
     4923_ACEOF
     4924rm -f conftest.$ac_objext conftest$ac_exeext
     4925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4926  (eval $ac_link) 2>conftest.er1
     4927  ac_status=$?
     4928  grep -v '^ *+' conftest.er1 >conftest.err
     4929  rm -f conftest.er1
     4930  cat conftest.err >&5
     4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4932  (exit $ac_status); } &&
     4933     { ac_try='test -z "$ac_c_werror_flag"
     4934             || test ! -s conftest.err'
     4935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4936  (eval $ac_try) 2>&5
     4937  ac_status=$?
     4938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4939  (exit $ac_status); }; } &&
     4940     { ac_try='test -s conftest$ac_exeext'
     4941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4942  (eval $ac_try) 2>&5
     4943  ac_status=$?
     4944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4945  (exit $ac_status); }; }; then
     4946  ac_cv_search_opendir="-l$ac_lib"
     4947break
     4948else
     4949  echo "$as_me: failed program was:" >&5
     4950sed 's/^/| /' conftest.$ac_ext >&5
     4951
     4952fi
     4953rm -f conftest.err conftest.$ac_objext \
     4954      conftest$ac_exeext conftest.$ac_ext
     4955  done
     4956fi
     4957LIBS=$ac_func_search_save_LIBS
     4958fi
     4959echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4960echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4961if test "$ac_cv_search_opendir" != no; then
     4962  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4963
     4964fi
     4965
     4966fi
     4967
     4968echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     4969echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4970if test "${ac_cv_header_stdc+set}" = set; then
     4971  echo $ECHO_N "(cached) $ECHO_C" >&6
     4972else
     4973  cat >conftest.$ac_ext <<_ACEOF
     4974/* confdefs.h.  */
     4975_ACEOF
     4976cat confdefs.h >>conftest.$ac_ext
     4977cat >>conftest.$ac_ext <<_ACEOF
     4978/* end confdefs.h.  */
    16634979#include <stdlib.h>
    16644980#include <stdarg.h>
    16654981#include <string.h>
    16664982#include <float.h>
    1667 EOF
    1668 ac_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; }
    1670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1671 if test -z "$ac_err"; then
    1672   rm -rf conftest*
     4983
     4984int
     4985main ()
     4986{
     4987
     4988  ;
     4989  return 0;
     4990}
     4991_ACEOF
     4992rm -f conftest.$ac_objext
     4993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4994  (eval $ac_compile) 2>conftest.er1
     4995  ac_status=$?
     4996  grep -v '^ *+' conftest.er1 >conftest.err
     4997  rm -f conftest.er1
     4998  cat conftest.err >&5
     4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5000  (exit $ac_status); } &&
     5001     { ac_try='test -z "$ac_c_werror_flag"
     5002             || test ! -s conftest.err'
     5003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5004  (eval $ac_try) 2>&5
     5005  ac_status=$?
     5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5007  (exit $ac_status); }; } &&
     5008     { ac_try='test -s conftest.$ac_objext'
     5009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5010  (eval $ac_try) 2>&5
     5011  ac_status=$?
     5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5013  (exit $ac_status); }; }; then
    16735014  ac_cv_header_stdc=yes
    16745015else
    1675   echo "$ac_err" >&5
    1676   echo "configure: failed program was:" >&5
    1677   cat conftest.$ac_ext >&5
    1678   rm -rf conftest*
    1679   ac_cv_header_stdc=no
    1680 fi
    1681 rm -f conftest*
     5016  echo "$as_me: failed program was:" >&5
     5017sed 's/^/| /' conftest.$ac_ext >&5
     5018
     5019ac_cv_header_stdc=no
     5020fi
     5021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    16825022
    16835023if test $ac_cv_header_stdc = yes; then
    16845024  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1685 cat > conftest.$ac_ext <<EOF
    1686 #line 1687 "configure"
    1687 #include "confdefs.h"
     5025  cat >conftest.$ac_ext <<_ACEOF
     5026/* confdefs.h.  */
     5027_ACEOF
     5028cat confdefs.h >>conftest.$ac_ext
     5029cat >>conftest.$ac_ext <<_ACEOF
     5030/* end confdefs.h.  */
    16885031#include <string.h>
    1689 EOF
     5032
     5033_ACEOF
    16905034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1691   egrep "memchr" >/dev/null 2>&1; then
     5035  $EGREP "memchr" >/dev/null 2>&1; then
    16925036  :
    16935037else
    1694   rm -rf conftest*
    16955038  ac_cv_header_stdc=no
    16965039fi
     
    17015044if test $ac_cv_header_stdc = yes; then
    17025045  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1703 cat > conftest.$ac_ext <<EOF
    1704 #line 1705 "configure"
    1705 #include "confdefs.h"
     5046  cat >conftest.$ac_ext <<_ACEOF
     5047/* confdefs.h.  */
     5048_ACEOF
     5049cat confdefs.h >>conftest.$ac_ext
     5050cat >>conftest.$ac_ext <<_ACEOF
     5051/* end confdefs.h.  */
    17065052#include <stdlib.h>
    1707 EOF
     5053
     5054_ACEOF
    17085055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1709   egrep "free" >/dev/null 2>&1; then
     5056  $EGREP "free" >/dev/null 2>&1; then
    17105057  :
    17115058else
    1712   rm -rf conftest*
    17135059  ac_cv_header_stdc=no
    17145060fi
     
    17195065if test $ac_cv_header_stdc = yes; then
    17205066  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1721 if test "$cross_compiling" = yes; then
     5067  if test "$cross_compiling" = yes; then
    17225068  :
    17235069else
    1724   cat > conftest.$ac_ext <<EOF
    1725 #line 1726 "configure"
    1726 #include "confdefs.h"
     5070  cat >conftest.$ac_ext <<_ACEOF
     5071/* confdefs.h.  */
     5072_ACEOF
     5073cat confdefs.h >>conftest.$ac_ext
     5074cat >>conftest.$ac_ext <<_ACEOF
     5075/* end confdefs.h.  */
    17275076#include <ctype.h>
    1728 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1729 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     5077#if ((' ' & 0x0FF) == 0x020)
     5078# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     5079# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     5080#else
     5081# define ISLOWER(c) \
     5082           (('a' <= (c) && (c) <= 'i') \
     5083             || ('j' <= (c) && (c) <= 'r') \
     5084             || ('s' <= (c) && (c) <= 'z'))
     5085# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     5086#endif
     5087
    17305088#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1731 int main () { int i; for (i = 0; i < 256; i++)
    1732 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1733 exit (0); }
    1734 
    1735 EOF
    1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1737 then
     5089int
     5090main ()
     5091{
     5092  int i;
     5093  for (i = 0; i < 256; i++)
     5094    if (XOR (islower (i), ISLOWER (i))
     5095    || toupper (i) != TOUPPER (i))
     5096      exit(2);
     5097  exit (0);
     5098}
     5099_ACEOF
     5100rm -f conftest$ac_exeext
     5101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5102  (eval $ac_link) 2>&5
     5103  ac_status=$?
     5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5105  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5107  (eval $ac_try) 2>&5
     5108  ac_status=$?
     5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5110  (exit $ac_status); }; }; then
    17385111  :
    17395112else
    1740   echo "configure: failed program was:" >&5
    1741   cat conftest.$ac_ext >&5
    1742   rm -fr conftest*
    1743   ac_cv_header_stdc=no
    1744 fi
    1745 rm -fr conftest*
    1746 fi
    1747 
    1748 fi
    1749 fi
    1750 
    1751 echo "$ac_t""$ac_cv_header_stdc" 1>&6
     5113  echo "$as_me: program exited with status $ac_status" >&5
     5114echo "$as_me: failed program was:" >&5
     5115sed 's/^/| /' conftest.$ac_ext >&5
     5116
     5117( exit $ac_status )
     5118ac_cv_header_stdc=no
     5119fi
     5120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5121fi
     5122fi
     5123fi
     5124echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     5125echo "${ECHO_T}$ac_cv_header_stdc" >&6
    17525126if test $ac_cv_header_stdc = yes; then
    1753   cat >> confdefs.h <<\EOF
     5127
     5128cat >>confdefs.h <<\_ACEOF
    17545129#define STDC_HEADERS 1
    1755 EOF
    1756 
    1757 fi
    1758 
    1759 echo $ac_n "checking for off_t""... $ac_c" 1>&6
    1760 echo "configure:1761: checking for off_t" >&5
    1761 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    1762   echo $ac_n "(cached) $ac_c" 1>&6
    1763 else
    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>
    1771 #endif
    1772 EOF
     5130_ACEOF
     5131
     5132fi
     5133
     5134
     5135
     5136
     5137
     5138
     5139
     5140
     5141
     5142for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
     5143do
     5144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5145if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5146  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5148if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5149  echo $ECHO_N "(cached) $ECHO_C" >&6
     5150fi
     5151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5153else
     5154  # Is the header compilable?
     5155echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5157cat >conftest.$ac_ext <<_ACEOF
     5158/* confdefs.h.  */
     5159_ACEOF
     5160cat confdefs.h >>conftest.$ac_ext
     5161cat >>conftest.$ac_ext <<_ACEOF
     5162/* end confdefs.h.  */
     5163$ac_includes_default
     5164#include <$ac_header>
     5165_ACEOF
     5166rm -f conftest.$ac_objext
     5167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5168  (eval $ac_compile) 2>conftest.er1
     5169  ac_status=$?
     5170  grep -v '^ *+' conftest.er1 >conftest.err
     5171  rm -f conftest.er1
     5172  cat conftest.err >&5
     5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5174  (exit $ac_status); } &&
     5175     { ac_try='test -z "$ac_c_werror_flag"
     5176             || test ! -s conftest.err'
     5177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5178  (eval $ac_try) 2>&5
     5179  ac_status=$?
     5180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5181  (exit $ac_status); }; } &&
     5182     { ac_try='test -s conftest.$ac_objext'
     5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5184  (eval $ac_try) 2>&5
     5185  ac_status=$?
     5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5187  (exit $ac_status); }; }; then
     5188  ac_header_compiler=yes
     5189else
     5190  echo "$as_me: failed program was:" >&5
     5191sed 's/^/| /' conftest.$ac_ext >&5
     5192
     5193ac_header_compiler=no
     5194fi
     5195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5197echo "${ECHO_T}$ac_header_compiler" >&6
     5198
     5199# Is the header present?
     5200echo "$as_me:$LINENO: checking $ac_header presence" >&5
     5201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     5202cat >conftest.$ac_ext <<_ACEOF
     5203/* confdefs.h.  */
     5204_ACEOF
     5205cat confdefs.h >>conftest.$ac_ext
     5206cat >>conftest.$ac_ext <<_ACEOF
     5207/* end confdefs.h.  */
     5208#include <$ac_header>
     5209_ACEOF
     5210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5211  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5212  ac_status=$?
     5213  grep -v '^ *+' conftest.er1 >conftest.err
     5214  rm -f conftest.er1
     5215  cat conftest.err >&5
     5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5217  (exit $ac_status); } >/dev/null; then
     5218  if test -s conftest.err; then
     5219    ac_cpp_err=$ac_c_preproc_warn_flag
     5220    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5221  else
     5222    ac_cpp_err=
     5223  fi
     5224else
     5225  ac_cpp_err=yes
     5226fi
     5227if test -z "$ac_cpp_err"; then
     5228  ac_header_preproc=yes
     5229else
     5230  echo "$as_me: failed program was:" >&5
     5231sed 's/^/| /' conftest.$ac_ext >&5
     5232
     5233  ac_header_preproc=no
     5234fi
     5235rm -f conftest.err conftest.$ac_ext
     5236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5237echo "${ECHO_T}$ac_header_preproc" >&6
     5238
     5239# So?  What about this header?
     5240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5241  yes:no: )
     5242    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     5243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5244    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     5245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     5246    ac_header_preproc=yes
     5247    ;;
     5248  no:yes:* )
     5249    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     5250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     5251    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     5252echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     5253    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     5254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     5255    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     5256echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     5257    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     5258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     5259    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     5260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     5261    (
     5262      cat <<\_ASBOX
     5263## ------------------------------------------ ##
     5264## Report this to the AC_PACKAGE_NAME lists.  ##
     5265## ------------------------------------------ ##
     5266_ASBOX
     5267    ) |
     5268      sed "s/^/$as_me: WARNING:     /" >&2
     5269    ;;
     5270esac
     5271echo "$as_me:$LINENO: checking for $ac_header" >&5
     5272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5273if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5274  echo $ECHO_N "(cached) $ECHO_C" >&6
     5275else
     5276  eval "$as_ac_Header=\$ac_header_preproc"
     5277fi
     5278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5280
     5281fi
     5282if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5283  cat >>confdefs.h <<_ACEOF
     5284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5285_ACEOF
     5286
     5287fi
     5288
     5289done
     5290
     5291cat >conftest.$ac_ext <<_ACEOF
     5292/* confdefs.h.  */
     5293_ACEOF
     5294cat confdefs.h >>conftest.$ac_ext
     5295cat >>conftest.$ac_ext <<_ACEOF
     5296/* end confdefs.h.  */
     5297#include <stdio.h>
     5298
     5299_ACEOF
    17735300if (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*
    1776   ac_cv_type_off_t=yes
    1777 else
    1778   rm -rf conftest*
    1779   ac_cv_type_off_t=no
     5301  $EGREP "fread" >/dev/null 2>&1; then
     5302  cat >>confdefs.h <<\_ACEOF
     5303#define HAVE_FREAD_DECL 1
     5304_ACEOF
     5305
    17805306fi
    17815307rm -f conftest*
    17825308
    1783 fi
    1784 echo "$ac_t""$ac_cv_type_off_t" 1>&6
    1785 if test $ac_cv_type_off_t = no; then
    1786   cat >> confdefs.h <<\EOF
    1787 #define off_t long
    1788 EOF
    1789 
    1790 fi
    1791 
    1792 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1793 echo "configure:1794: checking for size_t" >&5
    1794 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    1795   echo $ac_n "(cached) $ac_c" 1>&6
    1796 else
    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
    1805 EOF
     5309cat >conftest.$ac_ext <<_ACEOF
     5310/* confdefs.h.  */
     5311_ACEOF
     5312cat confdefs.h >>conftest.$ac_ext
     5313cat >>conftest.$ac_ext <<_ACEOF
     5314/* end confdefs.h.  */
     5315#include <stdio.h>
     5316
     5317_ACEOF
    18065318if (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*
    1809   ac_cv_type_size_t=yes
    1810 else
    1811   rm -rf conftest*
    1812   ac_cv_type_size_t=no
     5319  $EGREP "fgetc" >/dev/null 2>&1; then
     5320  cat >>confdefs.h <<\_ACEOF
     5321#define HAVE_FGETC_DECL 1
     5322_ACEOF
     5323
    18135324fi
    18145325rm -f conftest*
    18155326
    1816 fi
    1817 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    1818 if test $ac_cv_type_size_t = no; then
    1819   cat >> confdefs.h <<\EOF
    1820 #define size_t unsigned
    1821 EOF
    1822 
    1823 fi
    1824 
    1825 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1826 echo "configure:1827: checking whether time.h and sys/time.h may both be included" >&5
    1827 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    1828   echo $ac_n "(cached) $ac_c" 1>&6
    1829 else
    1830   cat > conftest.$ac_ext <<EOF
    1831 #line 1832 "configure"
    1832 #include "confdefs.h"
    1833 #include <sys/types.h>
    1834 #include <sys/time.h>
    1835 #include <time.h>
    1836 int main() {
    1837 struct tm *tp;
    1838 ; return 0; }
    1839 EOF
    1840 if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1841   rm -rf conftest*
    1842   ac_cv_header_time=yes
    1843 else
    1844   echo "configure: failed program was:" >&5
    1845   cat conftest.$ac_ext >&5
    1846   rm -rf conftest*
    1847   ac_cv_header_time=no
    1848 fi
    1849 rm -f conftest*
    1850 fi
    1851 
    1852 echo "$ac_t""$ac_cv_header_time" 1>&6
    1853 if test $ac_cv_header_time = yes; then
    1854   cat >> confdefs.h <<\EOF
    1855 #define TIME_WITH_SYS_TIME 1
    1856 EOF
    1857 
    1858 fi
    1859 
    1860 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1861 echo "configure:1862: checking whether struct tm is in sys/time.h or time.h" >&5
    1862 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    1863   echo $ac_n "(cached) $ac_c" 1>&6
    1864 else
    1865   cat > conftest.$ac_ext <<EOF
    1866 #line 1867 "configure"
    1867 #include "confdefs.h"
    1868 #include <sys/types.h>
    1869 #include <time.h>
    1870 int main() {
    1871 struct tm *tp; tp->tm_sec;
    1872 ; return 0; }
    1873 EOF
    1874 if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1875   rm -rf conftest*
    1876   ac_cv_struct_tm=time.h
    1877 else
    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
    1882 fi
    1883 rm -f conftest*
    1884 fi
    1885 
    1886 echo "$ac_t""$ac_cv_struct_tm" 1>&6
    1887 if test $ac_cv_struct_tm = sys/time.h; then
    1888   cat >> confdefs.h <<\EOF
    1889 #define TM_IN_SYS_TIME 1
    1890 EOF
    1891 
    1892 fi
    1893 
    1894 
    1895 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    1896 cat > conftest.$ac_ext <<EOF
    1897 #line 1898 "configure"
    1898 #include "confdefs.h"
    1899 #include <stdio.h>
    1900 
    1901 int main() {
    1902  FILE *rubbish = popen("yes", "r");
    1903 ; return 0; }
    1904 EOF
    1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1906   :
    1907 else
    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'
    1912 fi
    1913 rm -f conftest*
    1914 fi
    1915 
    1916 
    1917 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
    1918 echo "configure:1919: checking for main in -lg" >&5
    1919 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
    1920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1921   echo $ac_n "(cached) $ac_c" 1>&6
    1922 else
    1923   ac_save_LIBS="$LIBS"
    1924 LIBS="-lg  $LIBS"
    1925 cat > conftest.$ac_ext <<EOF
    1926 #line 1927 "configure"
    1927 #include "confdefs.h"
    1928 
    1929 int main() {
    1930 main()
    1931 ; return 0; }
    1932 EOF
    1933 if { (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"
    1936 else
    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"
    1941 fi
    1942 rm -f conftest*
    1943 LIBS="$ac_save_LIBS"
    1944 
    1945 fi
    1946 if 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
    1952 EOF
    1953 
    1954   LIBS="-lg $LIBS"
    1955 
    1956 else
    1957   echo "$ac_t""no" 1>&6
    1958 fi
    1959 
    1960 echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
    1961 echo "configure:1962: checking for main in -lgdbm" >&5
    1962 ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
    1963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1964   echo $ac_n "(cached) $ac_c" 1>&6
    1965 else
    1966   ac_save_LIBS="$LIBS"
    1967 LIBS="-lgdbm  $LIBS"
    1968 cat > conftest.$ac_ext <<EOF
    1969 #line 1970 "configure"
    1970 #include "confdefs.h"
    1971 
    1972 int main() {
    1973 main()
    1974 ; return 0; }
    1975 EOF
    1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1977   rm -rf conftest*
    1978   eval "ac_cv_lib_$ac_lib_var=yes"
    1979 else
    1980   echo "configure: failed program was:" >&5
    1981   cat conftest.$ac_ext >&5
    1982   rm -rf conftest*
    1983   eval "ac_cv_lib_$ac_lib_var=no"
    1984 fi
    1985 rm -f conftest*
    1986 LIBS="$ac_save_LIBS"
    1987 
    1988 fi
    1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1990   echo "$ac_t""yes" 1>&6
    1991     ac_tr_lib=HAVE_LIB`echo 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
    1995 EOF
    1996 
    1997   LIBS="-lgdbm $LIBS"
    1998 
    1999 else
    2000   echo "$ac_t""no" 1>&6
    2001 fi
    2002 
    2003 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    2004 echo "configure:2005: checking for main in -lm" >&5
    2005 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    2006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2007   echo $ac_n "(cached) $ac_c" 1>&6
    2008 else
    2009   ac_save_LIBS="$LIBS"
    2010 LIBS="-lm  $LIBS"
    2011 cat > conftest.$ac_ext <<EOF
    2012 #line 2013 "configure"
    2013 #include "confdefs.h"
    2014 
    2015 int main() {
    2016 main()
    2017 ; return 0; }
    2018 EOF
    2019 if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2020   rm -rf conftest*
    2021   eval "ac_cv_lib_$ac_lib_var=yes"
    2022 else
    2023   echo "configure: failed program was:" >&5
    2024   cat conftest.$ac_ext >&5
    2025   rm -rf conftest*
    2026   eval "ac_cv_lib_$ac_lib_var=no"
    2027 fi
    2028 rm -f conftest*
    2029 LIBS="$ac_save_LIBS"
    2030 
    2031 fi
    2032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2033   echo "$ac_t""yes" 1>&6
    2034     ac_tr_lib=HAVE_LIB`echo 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
    2038 EOF
    2039 
    2040   LIBS="-lm $LIBS"
    2041 
    2042 else
    2043   echo "$ac_t""no" 1>&6
    2044 fi
    2045 
    2046 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
    2047 echo "configure:2048: checking for main in -lstdc++" >&5
    2048 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
    2049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2050   echo $ac_n "(cached) $ac_c" 1>&6
    2051 else
    2052   ac_save_LIBS="$LIBS"
    2053 LIBS="-lstdc++  $LIBS"
    2054 cat > conftest.$ac_ext <<EOF
    2055 #line 2056 "configure"
    2056 #include "confdefs.h"
    2057 
    2058 int main() {
    2059 main()
    2060 ; return 0; }
    2061 EOF
    2062 if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2063   rm -rf conftest*
    2064   eval "ac_cv_lib_$ac_lib_var=yes"
    2065 else
    2066   echo "configure: failed program was:" >&5
    2067   cat conftest.$ac_ext >&5
    2068   rm -rf conftest*
    2069   eval "ac_cv_lib_$ac_lib_var=no"
    2070 fi
    2071 rm -f conftest*
    2072 LIBS="$ac_save_LIBS"
    2073 
    2074 fi
    2075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2076   echo "$ac_t""yes" 1>&6
    2077     ac_tr_lib=HAVE_LIB`echo 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
    2081 EOF
    2082 
    2083   LIBS="-lstdc++ $LIBS"
    2084 
    2085 else
    2086   echo "$ac_t""no" 1>&6
    2087 fi
    2088 
    2089 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
    2090 echo "configure:2091: checking for main in -lcrypt" >&5
    2091 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
    2092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2093   echo $ac_n "(cached) $ac_c" 1>&6
    2094 else
    2095   ac_save_LIBS="$LIBS"
    2096 LIBS="-lcrypt  $LIBS"
    2097 cat > conftest.$ac_ext <<EOF
    2098 #line 2099 "configure"
    2099 #include "confdefs.h"
    2100 
    2101 int main() {
    2102 main()
    2103 ; return 0; }
    2104 EOF
    2105 if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2106   rm -rf conftest*
    2107   eval "ac_cv_lib_$ac_lib_var=yes"
    2108 else
    2109   echo "configure: failed program was:" >&5
    2110   cat conftest.$ac_ext >&5
    2111   rm -rf conftest*
    2112   eval "ac_cv_lib_$ac_lib_var=no"
    2113 fi
    2114 rm -f conftest*
    2115 LIBS="$ac_save_LIBS"
    2116 
    2117 fi
    2118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2119   echo "$ac_t""yes" 1>&6
    2120     ac_tr_lib=HAVE_LIB`echo 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
    2124 EOF
    2125 
    2126   LIBS="-lcrypt $LIBS"
    2127 
    2128 else
    2129   echo "$ac_t""no" 1>&6
    2130 fi
    2131 
    2132 
    2133 
    2134 ac_header_dirent=no
    2135 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
    2136 do
    2137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2138 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    2139 echo "configure:2140: checking for $ac_hdr that defines DIR" >&5
    2140 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    2141   echo $ac_n "(cached) $ac_c" 1>&6
    2142 else
    2143   cat > conftest.$ac_ext <<EOF
    2144 #line 2145 "configure"
    2145 #include "confdefs.h"
    2146 #include <sys/types.h>
    2147 #include <$ac_hdr>
    2148 int main() {
    2149 DIR *dirp = 0;
    2150 ; return 0; }
    2151 EOF
    2152 if { (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"
    2155 else
    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"
    2160 fi
    2161 rm -f conftest*
    2162 fi
    2163 if 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
    2168 EOF
    2169  ac_header_dirent=$ac_hdr; break
    2170 else
    2171   echo "$ac_t""no" 1>&6
    2172 fi
    2173 done
    2174 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    2175 if test $ac_header_dirent = dirent.h; then
    2176 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    2177 echo "configure:2178: checking for opendir in -ldir" >&5
    2178 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    2179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2180   echo $ac_n "(cached) $ac_c" 1>&6
    2181 else
    2182   ac_save_LIBS="$LIBS"
    2183 LIBS="-ldir  $LIBS"
    2184 cat > conftest.$ac_ext <<EOF
    2185 #line 2186 "configure"
    2186 #include "confdefs.h"
    2187 /* Override any gcc2 internal prototype to avoid an error.  */
    2188 /* We use char because int might match the return type of a gcc2
    2189     builtin and then its argument prototype would still apply.  */
    2190 char opendir();
    2191 
    2192 int main() {
    2193 opendir()
    2194 ; return 0; }
    2195 EOF
    2196 if { (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"
    2199 else
    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"
    2204 fi
    2205 rm -f conftest*
    2206 LIBS="$ac_save_LIBS"
    2207 
    2208 fi
    2209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2210   echo "$ac_t""yes" 1>&6
    2211   LIBS="$LIBS -ldir"
    2212 else
    2213   echo "$ac_t""no" 1>&6
    2214 fi
    2215 
    2216 else
    2217 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
    2218 echo "configure:2219: checking for opendir in -lx" >&5
    2219 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
    2220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2221   echo $ac_n "(cached) $ac_c" 1>&6
    2222 else
    2223   ac_save_LIBS="$LIBS"
    2224 LIBS="-lx  $LIBS"
    2225 cat > conftest.$ac_ext <<EOF
    2226 #line 2227 "configure"
    2227 #include "confdefs.h"
    2228 /* Override any gcc2 internal prototype to avoid an error.  */
    2229 /* We use char because int might match the return type of a gcc2
    2230     builtin and then its argument prototype would still apply.  */
    2231 char opendir();
    2232 
    2233 int main() {
    2234 opendir()
    2235 ; return 0; }
    2236 EOF
    2237 if { (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"
    2240 else
    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"
    2245 fi
    2246 rm -f conftest*
    2247 LIBS="$ac_save_LIBS"
    2248 
    2249 fi
    2250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2251   echo "$ac_t""yes" 1>&6
    2252   LIBS="$LIBS -lx"
    2253 else
    2254   echo "$ac_t""no" 1>&6
    2255 fi
    2256 
    2257 fi
    2258 
    2259 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    2260 echo "configure:2261: checking for ANSI C header files" >&5
    2261 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    2262   echo $ac_n "(cached) $ac_c" 1>&6
    2263 else
    2264   cat > conftest.$ac_ext <<EOF
    2265 #line 2266 "configure"
    2266 #include "confdefs.h"
    2267 #include <stdlib.h>
    2268 #include <stdarg.h>
    2269 #include <string.h>
    2270 #include <float.h>
    2271 EOF
    2272 ac_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; }
    2274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2275 if test -z "$ac_err"; then
    2276   rm -rf conftest*
    2277   ac_cv_header_stdc=yes
    2278 else
    2279   echo "$ac_err" >&5
    2280   echo "configure: failed program was:" >&5
    2281   cat conftest.$ac_ext >&5
    2282   rm -rf conftest*
    2283   ac_cv_header_stdc=no
    2284 fi
    2285 rm -f conftest*
    2286 
    2287 if test $ac_cv_header_stdc = yes; then
    2288   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2289 cat > conftest.$ac_ext <<EOF
    2290 #line 2291 "configure"
    2291 #include "confdefs.h"
    2292 #include <string.h>
    2293 EOF
     5327cat >conftest.$ac_ext <<_ACEOF
     5328/* confdefs.h.  */
     5329_ACEOF
     5330cat confdefs.h >>conftest.$ac_ext
     5331cat >>conftest.$ac_ext <<_ACEOF
     5332/* end confdefs.h.  */
     5333#include <sys/procfs.h>
     5334
     5335_ACEOF
    22945336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2295   egrep "memchr" >/dev/null 2>&1; then
    2296   :
    2297 else
    2298   rm -rf conftest*
    2299   ac_cv_header_stdc=no
    2300 fi
    2301 rm -f conftest*
    2302 
    2303 fi
    2304 
    2305 if test $ac_cv_header_stdc = yes; then
    2306   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2307 cat > conftest.$ac_ext <<EOF
    2308 #line 2309 "configure"
    2309 #include "confdefs.h"
    2310 #include <stdlib.h>
    2311 EOF
    2312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2313   egrep "free" >/dev/null 2>&1; then
    2314   :
    2315 else
    2316   rm -rf conftest*
    2317   ac_cv_header_stdc=no
    2318 fi
    2319 rm -f conftest*
    2320 
    2321 fi
    2322 
    2323 if test $ac_cv_header_stdc = yes; then
    2324   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2325 if test "$cross_compiling" = yes; then
    2326   :
    2327 else
    2328   cat > conftest.$ac_ext <<EOF
    2329 #line 2330 "configure"
    2330 #include "confdefs.h"
    2331 #include <ctype.h>
    2332 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2333 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    2334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2335 int main () { int i; for (i = 0; i < 256; i++)
    2336 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    2337 exit (0); }
    2338 
    2339 EOF
    2340 if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2341 then
    2342   :
    2343 else
    2344   echo "configure: failed program was:" >&5
    2345   cat conftest.$ac_ext >&5
    2346   rm -fr conftest*
    2347   ac_cv_header_stdc=no
    2348 fi
    2349 rm -fr conftest*
    2350 fi
    2351 
    2352 fi
    2353 fi
    2354 
    2355 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    2356 if test $ac_cv_header_stdc = yes; then
    2357   cat >> confdefs.h <<\EOF
    2358 #define STDC_HEADERS 1
    2359 EOF
    2360 
    2361 fi
    2362 
    2363 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
    2364 do
    2365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2367 echo "configure:2368: checking for $ac_hdr" >&5
    2368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2369   echo $ac_n "(cached) $ac_c" 1>&6
    2370 else
    2371   cat > conftest.$ac_ext <<EOF
    2372 #line 2373 "configure"
    2373 #include "confdefs.h"
    2374 #include <$ac_hdr>
    2375 EOF
    2376 ac_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; }
    2378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2379 if test -z "$ac_err"; then
    2380   rm -rf conftest*
    2381   eval "ac_cv_header_$ac_safe=yes"
    2382 else
    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"
    2388 fi
    2389 rm -f conftest*
    2390 fi
    2391 if 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
    2396 EOF
    2397  
    2398 else
    2399   echo "$ac_t""no" 1>&6
    2400 fi
    2401 done
    2402 
    2403 cat > conftest.$ac_ext <<EOF
    2404 #line 2405 "configure"
    2405 #include "confdefs.h"
    2406 #include <stdio.h>
    2407 EOF
    2408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2409   egrep "fread" >/dev/null 2>&1; then
    2410   rm -rf conftest*
    2411   cat >> confdefs.h <<\EOF
    2412 #define HAVE_FREAD_DECL 1
    2413 EOF
    2414 
    2415 fi
    2416 rm -f conftest*
    2417 
    2418 cat > conftest.$ac_ext <<EOF
    2419 #line 2420 "configure"
    2420 #include "confdefs.h"
    2421 #include <stdio.h>
    2422 EOF
    2423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2424   egrep "fgetc" >/dev/null 2>&1; then
    2425   rm -rf conftest*
    2426   cat >> confdefs.h <<\EOF
    2427 #define HAVE_FGETC_DECL 1
    2428 EOF
    2429 
    2430 fi
    2431 rm -f conftest*
    2432 
    2433 cat > conftest.$ac_ext <<EOF
    2434 #line 2435 "configure"
    2435 #include "confdefs.h"
    2436 #include <sys/procfs.h>
    2437 EOF
    2438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2439   egrep "pr_brksize" >/dev/null 2>&1; then
    2440   rm -rf conftest*
    2441   cat >> confdefs.h <<\EOF
     5337  $EGREP "pr_brksize" >/dev/null 2>&1; then
     5338  cat >>confdefs.h <<\_ACEOF
    24425339#define HAVE_PR_BRKSIZE 1
    2443 EOF
     5340_ACEOF
    24445341
    24455342fi
     
    24495346# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    24505347# for constant arguments.  Useless!
    2451 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2452 echo "configure:2453: checking for working alloca.h" >&5
    2453 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2454   echo $ac_n "(cached) $ac_c" 1>&6
    2455 else
    2456   cat > conftest.$ac_ext <<EOF
    2457 #line 2458 "configure"
    2458 #include "confdefs.h"
     5348echo "$as_me:$LINENO: checking for working alloca.h" >&5
     5349echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     5350if test "${ac_cv_working_alloca_h+set}" = set; then
     5351  echo $ECHO_N "(cached) $ECHO_C" >&6
     5352else
     5353  cat >conftest.$ac_ext <<_ACEOF
     5354/* confdefs.h.  */
     5355_ACEOF
     5356cat confdefs.h >>conftest.$ac_ext
     5357cat >>conftest.$ac_ext <<_ACEOF
     5358/* end confdefs.h.  */
    24595359#include <alloca.h>
    2460 int main() {
    2461 char *p = alloca(2 * sizeof(int));
    2462 ; return 0; }
    2463 EOF
    2464 if { (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
    2467 else
    2468   echo "configure: failed program was:" >&5
    2469   cat conftest.$ac_ext >&5
    2470   rm -rf conftest*
    2471   ac_cv_header_alloca_h=no
    2472 fi
    2473 rm -f conftest*
    2474 fi
    2475 
    2476 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2477 if test $ac_cv_header_alloca_h = yes; then
    2478   cat >> confdefs.h <<\EOF
     5360int
     5361main ()
     5362{
     5363char *p = (char *) alloca (2 * sizeof (int));
     5364  ;
     5365  return 0;
     5366}
     5367_ACEOF
     5368rm -f conftest.$ac_objext conftest$ac_exeext
     5369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5370  (eval $ac_link) 2>conftest.er1
     5371  ac_status=$?
     5372  grep -v '^ *+' conftest.er1 >conftest.err
     5373  rm -f conftest.er1
     5374  cat conftest.err >&5
     5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5376  (exit $ac_status); } &&
     5377     { ac_try='test -z "$ac_c_werror_flag"
     5378             || test ! -s conftest.err'
     5379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5380  (eval $ac_try) 2>&5
     5381  ac_status=$?
     5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5383  (exit $ac_status); }; } &&
     5384     { ac_try='test -s conftest$ac_exeext'
     5385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5386  (eval $ac_try) 2>&5
     5387  ac_status=$?
     5388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5389  (exit $ac_status); }; }; then
     5390  ac_cv_working_alloca_h=yes
     5391else
     5392  echo "$as_me: failed program was:" >&5
     5393sed 's/^/| /' conftest.$ac_ext >&5
     5394
     5395ac_cv_working_alloca_h=no
     5396fi
     5397rm -f conftest.err conftest.$ac_objext \
     5398      conftest$ac_exeext conftest.$ac_ext
     5399fi
     5400echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
     5401echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5402if test $ac_cv_working_alloca_h = yes; then
     5403
     5404cat >>confdefs.h <<\_ACEOF
    24795405#define HAVE_ALLOCA_H 1
    2480 EOF
    2481 
    2482 fi
    2483 
    2484 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2485 echo "configure:2486: checking for alloca" >&5
    2486 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2487   echo $ac_n "(cached) $ac_c" 1>&6
    2488 else
    2489   cat > conftest.$ac_ext <<EOF
    2490 #line 2491 "configure"
    2491 #include "confdefs.h"
    2492 
     5406_ACEOF
     5407
     5408fi
     5409
     5410echo "$as_me:$LINENO: checking for alloca" >&5
     5411echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     5412if test "${ac_cv_func_alloca_works+set}" = set; then
     5413  echo $ECHO_N "(cached) $ECHO_C" >&6
     5414else
     5415  cat >conftest.$ac_ext <<_ACEOF
     5416/* confdefs.h.  */
     5417_ACEOF
     5418cat confdefs.h >>conftest.$ac_ext
     5419cat >>conftest.$ac_ext <<_ACEOF
     5420/* end confdefs.h.  */
    24935421#ifdef __GNUC__
    24945422# define alloca __builtin_alloca
     
    25125440#endif
    25135441
    2514 int main() {
    2515 char *p = (char *) alloca(1);
    2516 ; return 0; }
    2517 EOF
    2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2519   rm -rf conftest*
     5442int
     5443main ()
     5444{
     5445char *p = (char *) alloca (1);
     5446  ;
     5447  return 0;
     5448}
     5449_ACEOF
     5450rm -f conftest.$ac_objext conftest$ac_exeext
     5451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5452  (eval $ac_link) 2>conftest.er1
     5453  ac_status=$?
     5454  grep -v '^ *+' conftest.er1 >conftest.err
     5455  rm -f conftest.er1
     5456  cat conftest.err >&5
     5457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5458  (exit $ac_status); } &&
     5459     { ac_try='test -z "$ac_c_werror_flag"
     5460             || test ! -s conftest.err'
     5461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5462  (eval $ac_try) 2>&5
     5463  ac_status=$?
     5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5465  (exit $ac_status); }; } &&
     5466     { ac_try='test -s conftest$ac_exeext'
     5467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5468  (eval $ac_try) 2>&5
     5469  ac_status=$?
     5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5471  (exit $ac_status); }; }; then
    25205472  ac_cv_func_alloca_works=yes
    25215473else
    2522   echo "configure: failed program was:" >&5
    2523   cat conftest.$ac_ext >&5
    2524   rm -rf conftest*
    2525   ac_cv_func_alloca_works=no
    2526 fi
    2527 rm -f conftest*
    2528 fi
    2529 
    2530 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     5474  echo "$as_me: failed program was:" >&5
     5475sed 's/^/| /' conftest.$ac_ext >&5
     5476
     5477ac_cv_func_alloca_works=no
     5478fi
     5479rm -f conftest.err conftest.$ac_objext \
     5480      conftest$ac_exeext conftest.$ac_ext
     5481fi
     5482echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
     5483echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5484
    25315485if test $ac_cv_func_alloca_works = yes; then
    2532   cat >> confdefs.h <<\EOF
     5486
     5487cat >>confdefs.h <<\_ACEOF
    25335488#define HAVE_ALLOCA 1
    2534 EOF
    2535 
    2536 fi
    2537 
    2538 if test $ac_cv_func_alloca_works = no; then
     5489_ACEOF
     5490
     5491else
    25395492  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    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
     5493# that cause trouble.  Some versions do not even contain alloca or
     5494# contain a buggy version.  If you still want to use their alloca,
     5495# use ar to extract alloca.o from them instead of compiling alloca.c.
     5496
     5497ALLOCA=alloca.$ac_objext
     5498
     5499cat >>confdefs.h <<\_ACEOF
    25455500#define C_ALLOCA 1
    2546 EOF
    2547 
    2548 
    2549 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2550 echo "configure:2551: checking whether alloca needs Cray hooks" >&5
    2551 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2552   echo $ac_n "(cached) $ac_c" 1>&6
    2553 else
    2554   cat > conftest.$ac_ext <<EOF
    2555 #line 2556 "configure"
    2556 #include "confdefs.h"
     5501_ACEOF
     5502
     5503
     5504echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
     5505echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     5506if test "${ac_cv_os_cray+set}" = set; then
     5507  echo $ECHO_N "(cached) $ECHO_C" >&6
     5508else
     5509  cat >conftest.$ac_ext <<_ACEOF
     5510/* confdefs.h.  */
     5511_ACEOF
     5512cat confdefs.h >>conftest.$ac_ext
     5513cat >>conftest.$ac_ext <<_ACEOF
     5514/* end confdefs.h.  */
    25575515#if defined(CRAY) && ! defined(CRAY2)
    25585516webecray
     
    25615519#endif
    25625520
    2563 EOF
     5521_ACEOF
    25645522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2565   egrep "webecray" >/dev/null 2>&1; then
    2566   rm -rf conftest*
     5523  $EGREP "webecray" >/dev/null 2>&1; then
    25675524  ac_cv_os_cray=yes
    25685525else
    2569   rm -rf conftest*
    25705526  ac_cv_os_cray=no
    25715527fi
     
    25735529
    25745530fi
    2575 
    2576 echo "$ac_t""$ac_cv_os_cray" 1>&6
     5531echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
     5532echo "${ECHO_T}$ac_cv_os_cray" >&6
    25775533if test $ac_cv_os_cray = yes; then
    2578 for ac_func in _getb67 GETB67 getb67; do
    2579   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2580 echo "configure:2581: checking for $ac_func" >&5
    2581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2582   echo $ac_n "(cached) $ac_c" 1>&6
    2583 else
    2584   cat > conftest.$ac_ext <<EOF
    2585 #line 2586 "configure"
    2586 #include "confdefs.h"
     5534  for ac_func in _getb67 GETB67 getb67; do
     5535    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5536echo "$as_me:$LINENO: checking for $ac_func" >&5
     5537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5538if eval "test \"\${$as_ac_var+set}\" = set"; then
     5539  echo $ECHO_N "(cached) $ECHO_C" >&6
     5540else
     5541  cat >conftest.$ac_ext <<_ACEOF
     5542/* confdefs.h.  */
     5543_ACEOF
     5544cat confdefs.h >>conftest.$ac_ext
     5545cat >>conftest.$ac_ext <<_ACEOF
     5546/* end confdefs.h.  */
     5547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5548   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5549#define $ac_func innocuous_$ac_func
     5550
    25875551/* System header to define __stub macros and hopefully few prototypes,
    2588     which can conflict with char $ac_func(); below.  */
    2589 #include <assert.h>
     5552    which can conflict with char $ac_func (); below.
     5553    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5554    <limits.h> exists even on freestanding compilers.  */
     5555
     5556#ifdef __STDC__
     5557# include <limits.h>
     5558#else
     5559# include <assert.h>
     5560#endif
     5561
     5562#undef $ac_func
     5563
    25905564/* Override any gcc2 internal prototype to avoid an error.  */
     5565#ifdef __cplusplus
     5566extern "C"
     5567{
     5568#endif
    25915569/* We use char because int might match the return type of a gcc2
    2592     builtin and then its argument prototype would still apply.  */
    2593 char $ac_func();
    2594 
    2595 int main() {
    2596 
     5570   builtin and then its argument prototype would still apply.  */
     5571char $ac_func ();
    25975572/* The GNU C library defines this for functions which it implements
    25985573    to always fail with ENOSYS.  Some functions are actually named
     
    26015576choke me
    26025577#else
    2603 $ac_func();
     5578char (*f) () = $ac_func;
    26045579#endif
    2605 
    2606 ; return 0; }
    2607 EOF
    2608 if { (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"
    2611 else
    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"
    2616 fi
    2617 rm -f conftest*
    2618 fi
    2619 
    2620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2621   echo "$ac_t""yes" 1>&6
    2622   cat >> confdefs.h <<EOF
     5580#ifdef __cplusplus
     5581}
     5582#endif
     5583
     5584int
     5585main ()
     5586{
     5587return f != $ac_func;
     5588  ;
     5589  return 0;
     5590}
     5591_ACEOF
     5592rm -f conftest.$ac_objext conftest$ac_exeext
     5593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5594  (eval $ac_link) 2>conftest.er1
     5595  ac_status=$?
     5596  grep -v '^ *+' conftest.er1 >conftest.err
     5597  rm -f conftest.er1
     5598  cat conftest.err >&5
     5599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5600  (exit $ac_status); } &&
     5601     { ac_try='test -z "$ac_c_werror_flag"
     5602             || test ! -s conftest.err'
     5603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5604  (eval $ac_try) 2>&5
     5605  ac_status=$?
     5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5607  (exit $ac_status); }; } &&
     5608     { ac_try='test -s conftest$ac_exeext'
     5609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5610  (eval $ac_try) 2>&5
     5611  ac_status=$?
     5612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5613  (exit $ac_status); }; }; then
     5614  eval "$as_ac_var=yes"
     5615else
     5616  echo "$as_me: failed program was:" >&5
     5617sed 's/^/| /' conftest.$ac_ext >&5
     5618
     5619eval "$as_ac_var=no"
     5620fi
     5621rm -f conftest.err conftest.$ac_objext \
     5622      conftest$ac_exeext conftest.$ac_ext
     5623fi
     5624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5626if test `eval echo '${'$as_ac_var'}'` = yes; then
     5627
     5628cat >>confdefs.h <<_ACEOF
    26235629#define CRAY_STACKSEG_END $ac_func
    2624 EOF
    2625 
    2626   break
    2627 else
    2628   echo "$ac_t""no" 1>&6
    2629 fi
    2630 
    2631 done
    2632 fi
    2633 
    2634 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2635 echo "configure:2636: checking stack direction for C alloca" >&5
    2636 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    2637   echo $ac_n "(cached) $ac_c" 1>&6
     5630_ACEOF
     5631
     5632    break
     5633fi
     5634
     5635  done
     5636fi
     5637
     5638echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
     5639echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
     5640if test "${ac_cv_c_stack_direction+set}" = set; then
     5641  echo $ECHO_N "(cached) $ECHO_C" >&6
    26385642else
    26395643  if test "$cross_compiling" = yes; then
    26405644  ac_cv_c_stack_direction=0
    26415645else
    2642   cat > conftest.$ac_ext <<EOF
    2643 #line 2644 "configure"
    2644 #include "confdefs.h"
     5646  cat >conftest.$ac_ext <<_ACEOF
     5647/* confdefs.h.  */
     5648_ACEOF
     5649cat confdefs.h >>conftest.$ac_ext
     5650cat >>conftest.$ac_ext <<_ACEOF
     5651/* end confdefs.h.  */
     5652int
    26455653find_stack_direction ()
    26465654{
     
    26555663    return (&dummy > addr) ? 1 : -1;
    26565664}
     5665
     5666int
    26575667main ()
    26585668{
    2659   exit (find_stack_direction() < 0);
     5669  exit (find_stack_direction () < 0);
    26605670}
    2661 EOF
    2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2663 then
     5671_ACEOF
     5672rm -f conftest$ac_exeext
     5673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5674  (eval $ac_link) 2>&5
     5675  ac_status=$?
     5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5677  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5679  (eval $ac_try) 2>&5
     5680  ac_status=$?
     5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5682  (exit $ac_status); }; }; then
    26645683  ac_cv_c_stack_direction=1
    26655684else
    2666   echo "configure: failed program was:" >&5
    2667   cat conftest.$ac_ext >&5
    2668   rm -fr conftest*
    2669   ac_cv_c_stack_direction=-1
    2670 fi
    2671 rm -fr conftest*
    2672 fi
    2673 
    2674 fi
    2675 
    2676 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
    2677 cat >> confdefs.h <<EOF
     5685  echo "$as_me: program exited with status $ac_status" >&5
     5686echo "$as_me: failed program was:" >&5
     5687sed 's/^/| /' conftest.$ac_ext >&5
     5688
     5689( exit $ac_status )
     5690ac_cv_c_stack_direction=-1
     5691fi
     5692rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5693fi
     5694fi
     5695echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
     5696echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
     5697
     5698cat >>confdefs.h <<_ACEOF
    26785699#define STACK_DIRECTION $ac_cv_c_stack_direction
    2679 EOF
    2680 
    2681 fi
    2682 
    2683 if test $ac_cv_prog_gcc = yes; then
    2684     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2685 echo "configure:2686: checking whether ${CC-cc} needs -traditional" >&5
    2686 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    2687   echo $ac_n "(cached) $ac_c" 1>&6
     5700_ACEOF
     5701
     5702
     5703fi
     5704
     5705if test $ac_cv_c_compiler_gnu = yes; then
     5706    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
     5707echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
     5708if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     5709  echo $ECHO_N "(cached) $ECHO_C" >&6
    26885710else
    26895711    ac_pattern="Autoconf.*'x'"
    2690   cat > conftest.$ac_ext <<EOF
    2691 #line 2692 "configure"
    2692 #include "confdefs.h"
     5712  cat >conftest.$ac_ext <<_ACEOF
     5713/* confdefs.h.  */
     5714_ACEOF
     5715cat confdefs.h >>conftest.$ac_ext
     5716cat >>conftest.$ac_ext <<_ACEOF
     5717/* end confdefs.h.  */
    26935718#include <sgtty.h>
    26945719Autoconf TIOCGETP
    2695 EOF
     5720_ACEOF
    26965721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2697   egrep "$ac_pattern" >/dev/null 2>&1; then
    2698   rm -rf conftest*
     5722  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    26995723  ac_cv_prog_gcc_traditional=yes
    27005724else
    2701   rm -rf conftest*
    27025725  ac_cv_prog_gcc_traditional=no
    27035726fi
     
    27065729
    27075730  if test $ac_cv_prog_gcc_traditional = no; then
    2708     cat > conftest.$ac_ext <<EOF
    2709 #line 2710 "configure"
    2710 #include "confdefs.h"
     5731    cat >conftest.$ac_ext <<_ACEOF
     5732/* confdefs.h.  */
     5733_ACEOF
     5734cat confdefs.h >>conftest.$ac_ext
     5735cat >>conftest.$ac_ext <<_ACEOF
     5736/* end confdefs.h.  */
    27115737#include <termio.h>
    27125738Autoconf TCGETA
    2713 EOF
     5739_ACEOF
    27145740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2715   egrep "$ac_pattern" >/dev/null 2>&1; then
    2716   rm -rf conftest*
     5741  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    27175742  ac_cv_prog_gcc_traditional=yes
    27185743fi
     
    27215746  fi
    27225747fi
    2723 
    2724 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
     5748echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
     5749echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    27255750  if test $ac_cv_prog_gcc_traditional = yes; then
    27265751    CC="$CC -traditional"
     
    27285753fi
    27295754
    2730 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2731 echo "configure:2732: checking return type of signal handlers" >&5
    2732 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    2733   echo $ac_n "(cached) $ac_c" 1>&6
    2734 else
    2735   cat > conftest.$ac_ext <<EOF
    2736 #line 2737 "configure"
    2737 #include "confdefs.h"
     5755echo "$as_me:$LINENO: checking return type of signal handlers" >&5
     5756echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
     5757if test "${ac_cv_type_signal+set}" = set; then
     5758  echo $ECHO_N "(cached) $ECHO_C" >&6
     5759else
     5760  cat >conftest.$ac_ext <<_ACEOF
     5761/* confdefs.h.  */
     5762_ACEOF
     5763cat confdefs.h >>conftest.$ac_ext
     5764cat >>conftest.$ac_ext <<_ACEOF
     5765/* end confdefs.h.  */
    27385766#include <sys/types.h>
    27395767#include <signal.h>
    27405768#ifdef signal
    2741 #undef signal
     5769# undef signal
    27425770#endif
    27435771#ifdef __cplusplus
     
    27475775#endif
    27485776
    2749 int main() {
     5777int
     5778main ()
     5779{
    27505780int i;
    2751 ; return 0; }
    2752 EOF
    2753 if { (eval echo configure:2754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2754   rm -rf conftest*
     5781  ;
     5782  return 0;
     5783}
     5784_ACEOF
     5785rm -f conftest.$ac_objext
     5786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5787  (eval $ac_compile) 2>conftest.er1
     5788  ac_status=$?
     5789  grep -v '^ *+' conftest.er1 >conftest.err
     5790  rm -f conftest.er1
     5791  cat conftest.err >&5
     5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5793  (exit $ac_status); } &&
     5794     { ac_try='test -z "$ac_c_werror_flag"
     5795             || test ! -s conftest.err'
     5796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5797  (eval $ac_try) 2>&5
     5798  ac_status=$?
     5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5800  (exit $ac_status); }; } &&
     5801     { ac_try='test -s conftest.$ac_objext'
     5802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5803  (eval $ac_try) 2>&5
     5804  ac_status=$?
     5805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5806  (exit $ac_status); }; }; then
    27555807  ac_cv_type_signal=void
    27565808else
    2757   echo "configure: failed program was:" >&5
    2758   cat conftest.$ac_ext >&5
    2759   rm -rf conftest*
    2760   ac_cv_type_signal=int
    2761 fi
    2762 rm -f conftest*
    2763 fi
    2764 
    2765 echo "$ac_t""$ac_cv_type_signal" 1>&6
    2766 cat >> confdefs.h <<EOF
     5809  echo "$as_me: failed program was:" >&5
     5810sed 's/^/| /' conftest.$ac_ext >&5
     5811
     5812ac_cv_type_signal=int
     5813fi
     5814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5815fi
     5816echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
     5817echo "${ECHO_T}$ac_cv_type_signal" >&6
     5818
     5819cat >>confdefs.h <<_ACEOF
    27675820#define RETSIGTYPE $ac_cv_type_signal
    2768 EOF
    2769 
    2770 
    2771 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2772 echo "configure:2773: checking for vprintf" >&5
    2773 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    2774   echo $ac_n "(cached) $ac_c" 1>&6
    2775 else
    2776   cat > conftest.$ac_ext <<EOF
    2777 #line 2778 "configure"
    2778 #include "confdefs.h"
     5821_ACEOF
     5822
     5823
     5824
     5825for ac_func in vprintf
     5826do
     5827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5828echo "$as_me:$LINENO: checking for $ac_func" >&5
     5829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5830if eval "test \"\${$as_ac_var+set}\" = set"; then
     5831  echo $ECHO_N "(cached) $ECHO_C" >&6
     5832else
     5833  cat >conftest.$ac_ext <<_ACEOF
     5834/* confdefs.h.  */
     5835_ACEOF
     5836cat confdefs.h >>conftest.$ac_ext
     5837cat >>conftest.$ac_ext <<_ACEOF
     5838/* end confdefs.h.  */
     5839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5841#define $ac_func innocuous_$ac_func
     5842
    27795843/* System header to define __stub macros and hopefully few prototypes,
    2780     which can conflict with char vprintf(); below.  */
    2781 #include <assert.h>
     5844    which can conflict with char $ac_func (); below.
     5845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5846    <limits.h> exists even on freestanding compilers.  */
     5847
     5848#ifdef __STDC__
     5849# include <limits.h>
     5850#else
     5851# include <assert.h>
     5852#endif
     5853
     5854#undef $ac_func
     5855
    27825856/* Override any gcc2 internal prototype to avoid an error.  */
     5857#ifdef __cplusplus
     5858extern "C"
     5859{
     5860#endif
    27835861/* We use char because int might match the return type of a gcc2
    2784     builtin and then its argument prototype would still apply.  */
    2785 char vprintf();
    2786 
    2787 int main() {
    2788 
     5862   builtin and then its argument prototype would still apply.  */
     5863char $ac_func ();
    27895864/* The GNU C library defines this for functions which it implements
    27905865    to always fail with ENOSYS.  Some functions are actually named
    27915866    something starting with __ and the normal name is an alias.  */
    2792 #if defined (__stub_vprintf) || defined (__stub___vprintf)
     5867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    27935868choke me
    27945869#else
    2795 vprintf();
     5870char (*f) () = $ac_func;
    27965871#endif
    2797 
    2798 ; return 0; }
    2799 EOF
    2800 if { (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"
    2803 else
    2804   echo "configure: failed program was:" >&5
    2805   cat conftest.$ac_ext >&5
    2806   rm -rf conftest*
    2807   eval "ac_cv_func_vprintf=no"
    2808 fi
    2809 rm -f conftest*
    2810 fi
    2811 
    2812 if 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
    2816 EOF
    2817 
    2818 else
    2819   echo "$ac_t""no" 1>&6
    2820 fi
    2821 
    2822 if test "$ac_cv_func_vprintf" != yes; then
    2823 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2824 echo "configure:2825: checking for _doprnt" >&5
    2825 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    2826   echo $ac_n "(cached) $ac_c" 1>&6
    2827 else
    2828   cat > conftest.$ac_ext <<EOF
    2829 #line 2830 "configure"
    2830 #include "confdefs.h"
     5872#ifdef __cplusplus
     5873}
     5874#endif
     5875
     5876int
     5877main ()
     5878{
     5879return f != $ac_func;
     5880  ;
     5881  return 0;
     5882}
     5883_ACEOF
     5884rm -f conftest.$ac_objext conftest$ac_exeext
     5885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5886  (eval $ac_link) 2>conftest.er1
     5887  ac_status=$?
     5888  grep -v '^ *+' conftest.er1 >conftest.err
     5889  rm -f conftest.er1
     5890  cat conftest.err >&5
     5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5892  (exit $ac_status); } &&
     5893     { ac_try='test -z "$ac_c_werror_flag"
     5894             || test ! -s conftest.err'
     5895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5896  (eval $ac_try) 2>&5
     5897  ac_status=$?
     5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5899  (exit $ac_status); }; } &&
     5900     { ac_try='test -s conftest$ac_exeext'
     5901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5902  (eval $ac_try) 2>&5
     5903  ac_status=$?
     5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5905  (exit $ac_status); }; }; then
     5906  eval "$as_ac_var=yes"
     5907else
     5908  echo "$as_me: failed program was:" >&5
     5909sed 's/^/| /' conftest.$ac_ext >&5
     5910
     5911eval "$as_ac_var=no"
     5912fi
     5913rm -f conftest.err conftest.$ac_objext \
     5914      conftest$ac_exeext conftest.$ac_ext
     5915fi
     5916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5917echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5918if test `eval echo '${'$as_ac_var'}'` = yes; then
     5919  cat >>confdefs.h <<_ACEOF
     5920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5921_ACEOF
     5922
     5923echo "$as_me:$LINENO: checking for _doprnt" >&5
     5924echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
     5925if test "${ac_cv_func__doprnt+set}" = set; then
     5926  echo $ECHO_N "(cached) $ECHO_C" >&6
     5927else
     5928  cat >conftest.$ac_ext <<_ACEOF
     5929/* confdefs.h.  */
     5930_ACEOF
     5931cat confdefs.h >>conftest.$ac_ext
     5932cat >>conftest.$ac_ext <<_ACEOF
     5933/* end confdefs.h.  */
     5934/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
     5935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5936#define _doprnt innocuous__doprnt
     5937
    28315938/* System header to define __stub macros and hopefully few prototypes,
    2832     which can conflict with char _doprnt(); below.  */
    2833 #include <assert.h>
     5939    which can conflict with char _doprnt (); below.
     5940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5941    <limits.h> exists even on freestanding compilers.  */
     5942
     5943#ifdef __STDC__
     5944# include <limits.h>
     5945#else
     5946# include <assert.h>
     5947#endif
     5948
     5949#undef _doprnt
     5950
    28345951/* Override any gcc2 internal prototype to avoid an error.  */
     5952#ifdef __cplusplus
     5953extern "C"
     5954{
     5955#endif
    28355956/* We use char because int might match the return type of a gcc2
    2836     builtin and then its argument prototype would still apply.  */
    2837 char _doprnt();
    2838 
    2839 int main() {
    2840 
     5957   builtin and then its argument prototype would still apply.  */
     5958char _doprnt ();
    28415959/* The GNU C library defines this for functions which it implements
    28425960    to always fail with ENOSYS.  Some functions are actually named
     
    28455963choke me
    28465964#else
    2847 _doprnt();
     5965char (*f) () = _doprnt;
    28485966#endif
    2849 
    2850 ; return 0; }
    2851 EOF
    2852 if { (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"
    2855 else
    2856   echo "configure: failed program was:" >&5
    2857   cat conftest.$ac_ext >&5
    2858   rm -rf conftest*
    2859   eval "ac_cv_func__doprnt=no"
    2860 fi
    2861 rm -f conftest*
    2862 fi
    2863 
    2864 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    2865   echo "$ac_t""yes" 1>&6
    2866   cat >> confdefs.h <<\EOF
     5967#ifdef __cplusplus
     5968}
     5969#endif
     5970
     5971int
     5972main ()
     5973{
     5974return f != _doprnt;
     5975  ;
     5976  return 0;
     5977}
     5978_ACEOF
     5979rm -f conftest.$ac_objext conftest$ac_exeext
     5980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5981  (eval $ac_link) 2>conftest.er1
     5982  ac_status=$?
     5983  grep -v '^ *+' conftest.er1 >conftest.err
     5984  rm -f conftest.er1
     5985  cat conftest.err >&5
     5986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5987  (exit $ac_status); } &&
     5988     { ac_try='test -z "$ac_c_werror_flag"
     5989             || test ! -s conftest.err'
     5990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5991  (eval $ac_try) 2>&5
     5992  ac_status=$?
     5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5994  (exit $ac_status); }; } &&
     5995     { ac_try='test -s conftest$ac_exeext'
     5996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5997  (eval $ac_try) 2>&5
     5998  ac_status=$?
     5999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6000  (exit $ac_status); }; }; then
     6001  ac_cv_func__doprnt=yes
     6002else
     6003  echo "$as_me: failed program was:" >&5
     6004sed 's/^/| /' conftest.$ac_ext >&5
     6005
     6006ac_cv_func__doprnt=no
     6007fi
     6008rm -f conftest.err conftest.$ac_objext \
     6009      conftest$ac_exeext conftest.$ac_ext
     6010fi
     6011echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
     6012echo "${ECHO_T}$ac_cv_func__doprnt" >&6
     6013if test $ac_cv_func__doprnt = yes; then
     6014
     6015cat >>confdefs.h <<\_ACEOF
    28676016#define HAVE_DOPRNT 1
    2868 EOF
    2869 
    2870 else
    2871   echo "$ac_t""no" 1>&6
    2872 fi
    2873 
    2874 fi
     6017_ACEOF
     6018
     6019fi
     6020
     6021fi
     6022done
     6023
     6024
     6025
     6026
     6027
     6028
     6029
     6030
     6031
     6032
     6033
    28756034
    28766035for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    28776036do
    2878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2879 echo "configure:2880: checking for $ac_func" >&5
    2880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2881   echo $ac_n "(cached) $ac_c" 1>&6
    2882 else
    2883   cat > conftest.$ac_ext <<EOF
    2884 #line 2885 "configure"
    2885 #include "confdefs.h"
     6037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6038echo "$as_me:$LINENO: checking for $ac_func" >&5
     6039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     6040if eval "test \"\${$as_ac_var+set}\" = set"; then
     6041  echo $ECHO_N "(cached) $ECHO_C" >&6
     6042else
     6043  cat >conftest.$ac_ext <<_ACEOF
     6044/* confdefs.h.  */
     6045_ACEOF
     6046cat confdefs.h >>conftest.$ac_ext
     6047cat >>conftest.$ac_ext <<_ACEOF
     6048/* end confdefs.h.  */
     6049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     6050   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6051#define $ac_func innocuous_$ac_func
     6052
    28866053/* System header to define __stub macros and hopefully few prototypes,
    2887     which can conflict with char $ac_func(); below.  */
    2888 #include <assert.h>
     6054    which can conflict with char $ac_func (); below.
     6055    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6056    <limits.h> exists even on freestanding compilers.  */
     6057
     6058#ifdef __STDC__
     6059# include <limits.h>
     6060#else
     6061# include <assert.h>
     6062#endif
     6063
     6064#undef $ac_func
     6065
    28896066/* Override any gcc2 internal prototype to avoid an error.  */
     6067#ifdef __cplusplus
     6068extern "C"
     6069{
     6070#endif
    28906071/* We use char because int might match the return type of a gcc2
    2891     builtin and then its argument prototype would still apply.  */
    2892 char $ac_func();
    2893 
    2894 int main() {
    2895 
     6072   builtin and then its argument prototype would still apply.  */
     6073char $ac_func ();
    28966074/* The GNU C library defines this for functions which it implements
    28976075    to always fail with ENOSYS.  Some functions are actually named
     
    29006078choke me
    29016079#else
    2902 $ac_func();
     6080char (*f) () = $ac_func;
    29036081#endif
    2904 
    2905 ; return 0; }
    2906 EOF
    2907 if { (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"
    2910 else
    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"
    2915 fi
    2916 rm -f conftest*
    2917 fi
    2918 
    2919 if 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
    2924 EOF
    2925  
    2926 else
    2927   echo "$ac_t""no" 1>&6
     6082#ifdef __cplusplus
     6083}
     6084#endif
     6085
     6086int
     6087main ()
     6088{
     6089return f != $ac_func;
     6090  ;
     6091  return 0;
     6092}
     6093_ACEOF
     6094rm -f conftest.$ac_objext conftest$ac_exeext
     6095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6096  (eval $ac_link) 2>conftest.er1
     6097  ac_status=$?
     6098  grep -v '^ *+' conftest.er1 >conftest.err
     6099  rm -f conftest.er1
     6100  cat conftest.err >&5
     6101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6102  (exit $ac_status); } &&
     6103     { ac_try='test -z "$ac_c_werror_flag"
     6104             || test ! -s conftest.err'
     6105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6106  (eval $ac_try) 2>&5
     6107  ac_status=$?
     6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6109  (exit $ac_status); }; } &&
     6110     { ac_try='test -s conftest$ac_exeext'
     6111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6112  (eval $ac_try) 2>&5
     6113  ac_status=$?
     6114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6115  (exit $ac_status); }; }; then
     6116  eval "$as_ac_var=yes"
     6117else
     6118  echo "$as_me: failed program was:" >&5
     6119sed 's/^/| /' conftest.$ac_ext >&5
     6120
     6121eval "$as_ac_var=no"
     6122fi
     6123rm -f conftest.err conftest.$ac_objext \
     6124      conftest$ac_exeext conftest.$ac_ext
     6125fi
     6126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6128if test `eval echo '${'$as_ac_var'}'` = yes; then
     6129  cat >>confdefs.h <<_ACEOF
     6130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6131_ACEOF
     6132
    29286133fi
    29296134done
     6135
     6136
     6137
    29306138
    29316139for ac_func in ftruncate strstr strcasecmp
    29326140do
    2933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2934 echo "configure:2935: checking for $ac_func" >&5
    2935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2936   echo $ac_n "(cached) $ac_c" 1>&6
    2937 else
    2938   cat > conftest.$ac_ext <<EOF
    2939 #line 2940 "configure"
    2940 #include "confdefs.h"
     6141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6142echo "$as_me:$LINENO: checking for $ac_func" >&5
     6143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     6144if eval "test \"\${$as_ac_var+set}\" = set"; then
     6145  echo $ECHO_N "(cached) $ECHO_C" >&6
     6146else
     6147  cat >conftest.$ac_ext <<_ACEOF
     6148/* confdefs.h.  */
     6149_ACEOF
     6150cat confdefs.h >>conftest.$ac_ext
     6151cat >>conftest.$ac_ext <<_ACEOF
     6152/* end confdefs.h.  */
     6153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     6154   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6155#define $ac_func innocuous_$ac_func
     6156
    29416157/* System header to define __stub macros and hopefully few prototypes,
    2942     which can conflict with char $ac_func(); below.  */
    2943 #include <assert.h>
     6158    which can conflict with char $ac_func (); below.
     6159    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6160    <limits.h> exists even on freestanding compilers.  */
     6161
     6162#ifdef __STDC__
     6163# include <limits.h>
     6164#else
     6165# include <assert.h>
     6166#endif
     6167
     6168#undef $ac_func
     6169
    29446170/* Override any gcc2 internal prototype to avoid an error.  */
     6171#ifdef __cplusplus
     6172extern "C"
     6173{
     6174#endif
    29456175/* We use char because int might match the return type of a gcc2
    2946     builtin and then its argument prototype would still apply.  */
    2947 char $ac_func();
    2948 
    2949 int main() {
    2950 
     6176   builtin and then its argument prototype would still apply.  */
     6177char $ac_func ();
    29516178/* The GNU C library defines this for functions which it implements
    29526179    to always fail with ENOSYS.  Some functions are actually named
     
    29556182choke me
    29566183#else
    2957 $ac_func();
     6184char (*f) () = $ac_func;
    29586185#endif
    2959 
    2960 ; return 0; }
    2961 EOF
    2962 if { (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"
    2965 else
    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"
    2970 fi
    2971 rm -f conftest*
    2972 fi
    2973 
    2974 if 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
    2979 EOF
    2980  
    2981 else
    2982   echo "$ac_t""no" 1>&6
    2983 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
     6186#ifdef __cplusplus
     6187}
     6188#endif
     6189
     6190int
     6191main ()
     6192{
     6193return f != $ac_func;
     6194  ;
     6195  return 0;
     6196}
     6197_ACEOF
     6198rm -f conftest.$ac_objext conftest$ac_exeext
     6199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6200  (eval $ac_link) 2>conftest.er1
     6201  ac_status=$?
     6202  grep -v '^ *+' conftest.er1 >conftest.err
     6203  rm -f conftest.er1
     6204  cat conftest.err >&5
     6205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6206  (exit $ac_status); } &&
     6207     { ac_try='test -z "$ac_c_werror_flag"
     6208             || test ! -s conftest.err'
     6209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6210  (eval $ac_try) 2>&5
     6211  ac_status=$?
     6212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6213  (exit $ac_status); }; } &&
     6214     { ac_try='test -s conftest$ac_exeext'
     6215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6216  (eval $ac_try) 2>&5
     6217  ac_status=$?
     6218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6219  (exit $ac_status); }; }; then
     6220  eval "$as_ac_var=yes"
     6221else
     6222  echo "$as_me: failed program was:" >&5
     6223sed 's/^/| /' conftest.$ac_ext >&5
     6224
     6225eval "$as_ac_var=no"
     6226fi
     6227rm -f conftest.err conftest.$ac_objext \
     6228      conftest$ac_exeext conftest.$ac_ext
     6229fi
     6230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6232if test `eval echo '${'$as_ac_var'}'` = yes; then
     6233  cat >>confdefs.h <<_ACEOF
     6234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6235_ACEOF
     6236
     6237else
     6238  case $LIBOBJS in
     6239    "$ac_func.$ac_objext"   | \
     6240  *" $ac_func.$ac_objext"   | \
     6241    "$ac_func.$ac_objext "* | \
     6242  *" $ac_func.$ac_objext "* ) ;;
     6243  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     6244esac
     6245
    29846246fi
    29856247done
     
    29876249
    29886250
    2989 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
    2990 echo "configure:2991: checking for textdomain" >&5
    2991 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
    2992   echo $ac_n "(cached) $ac_c" 1>&6
    2993 else
    2994   cat > conftest.$ac_ext <<EOF
    2995 #line 2996 "configure"
    2996 #include "confdefs.h"
     6251echo "$as_me:$LINENO: checking for textdomain" >&5
     6252echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
     6253if test "${ac_cv_func_textdomain+set}" = set; then
     6254  echo $ECHO_N "(cached) $ECHO_C" >&6
     6255else
     6256  cat >conftest.$ac_ext <<_ACEOF
     6257/* confdefs.h.  */
     6258_ACEOF
     6259cat confdefs.h >>conftest.$ac_ext
     6260cat >>conftest.$ac_ext <<_ACEOF
     6261/* end confdefs.h.  */
     6262/* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
     6263   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6264#define textdomain innocuous_textdomain
     6265
    29976266/* System header to define __stub macros and hopefully few prototypes,
    2998     which can conflict with char textdomain(); below.  */
    2999 #include <assert.h>
     6267    which can conflict with char textdomain (); below.
     6268    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6269    <limits.h> exists even on freestanding compilers.  */
     6270
     6271#ifdef __STDC__
     6272# include <limits.h>
     6273#else
     6274# include <assert.h>
     6275#endif
     6276
     6277#undef textdomain
     6278
    30006279/* Override any gcc2 internal prototype to avoid an error.  */
     6280#ifdef __cplusplus
     6281extern "C"
     6282{
     6283#endif
    30016284/* We use char because int might match the return type of a gcc2
    3002     builtin and then its argument prototype would still apply.  */
    3003 char textdomain();
    3004 
    3005 int main() {
    3006 
     6285   builtin and then its argument prototype would still apply.  */
     6286char textdomain ();
    30076287/* The GNU C library defines this for functions which it implements
    30086288    to always fail with ENOSYS.  Some functions are actually named
     
    30116291choke me
    30126292#else
    3013 textdomain();
     6293char (*f) () = textdomain;
    30146294#endif
    3015 
    3016 ; return 0; }
    3017 EOF
    3018 if { (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"
    3021 else
    3022   echo "configure: failed program was:" >&5
    3023   cat conftest.$ac_ext >&5
    3024   rm -rf conftest*
    3025   eval "ac_cv_func_textdomain=no"
    3026 fi
    3027 rm -f conftest*
    3028 fi
    3029 
    3030 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
    3031   echo "$ac_t""yes" 1>&6
    3032   cat >> confdefs.h <<\EOF
     6295#ifdef __cplusplus
     6296}
     6297#endif
     6298
     6299int
     6300main ()
     6301{
     6302return f != textdomain;
     6303  ;
     6304  return 0;
     6305}
     6306_ACEOF
     6307rm -f conftest.$ac_objext conftest$ac_exeext
     6308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6309  (eval $ac_link) 2>conftest.er1
     6310  ac_status=$?
     6311  grep -v '^ *+' conftest.er1 >conftest.err
     6312  rm -f conftest.er1
     6313  cat conftest.err >&5
     6314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6315  (exit $ac_status); } &&
     6316     { ac_try='test -z "$ac_c_werror_flag"
     6317             || test ! -s conftest.err'
     6318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6319  (eval $ac_try) 2>&5
     6320  ac_status=$?
     6321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6322  (exit $ac_status); }; } &&
     6323     { ac_try='test -s conftest$ac_exeext'
     6324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6325  (eval $ac_try) 2>&5
     6326  ac_status=$?
     6327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6328  (exit $ac_status); }; }; then
     6329  ac_cv_func_textdomain=yes
     6330else
     6331  echo "$as_me: failed program was:" >&5
     6332sed 's/^/| /' conftest.$ac_ext >&5
     6333
     6334ac_cv_func_textdomain=no
     6335fi
     6336rm -f conftest.err conftest.$ac_objext \
     6337      conftest$ac_exeext conftest.$ac_ext
     6338fi
     6339echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
     6340echo "${ECHO_T}$ac_cv_func_textdomain" >&6
     6341if test $ac_cv_func_textdomain = yes; then
     6342  cat >>confdefs.h <<\_ACEOF
    30336343#define ENABLE_NLS  1
    3034 EOF
    3035  
    3036 else
    3037   echo "$ac_t""no" 1>&6
     6344_ACEOF
     6345
    30386346fi
    30396347
     
    30416349# *** Custom checking (based on GNU tar configure.in) ***
    30426350# ---------------------------------------------------------------------------
    3043 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
    3044 echo "configure:3045: checking for HP-UX needing gmalloc" >&5
     6351echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
     6352echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    30456353if 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
     6354  echo "$as_me:$LINENO: result: yes" >&5
     6355echo "${ECHO_T}yes" >&6
     6356  case $LIBOBJS in
     6357    "gmalloc.$ac_objext"   | \
     6358  *" gmalloc.$ac_objext"   | \
     6359    "gmalloc.$ac_objext "* | \
     6360  *" gmalloc.$ac_objext "* ) ;;
     6361  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     6362esac
     6363
     6364  cat >>confdefs.h <<\_ACEOF
    30496365#define HAVE_VALLOC 1
    3050 EOF
    3051 
    3052 else
    3053   echo "$ac_t""no" 1>&6
    3054   for ac_func in valloc
     6366_ACEOF
     6367
     6368else
     6369  echo "$as_me:$LINENO: result: no" >&5
     6370echo "${ECHO_T}no" >&6
     6371
     6372for ac_func in valloc
    30556373do
    3056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3057 echo "configure:3058: checking for $ac_func" >&5
    3058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    3059   echo $ac_n "(cached) $ac_c" 1>&6
    3060 else
    3061   cat > conftest.$ac_ext <<EOF
    3062 #line 3063 "configure"
    3063 #include "confdefs.h"
     6374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6375echo "$as_me:$LINENO: checking for $ac_func" >&5
     6376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     6377if eval "test \"\${$as_ac_var+set}\" = set"; then
     6378  echo $ECHO_N "(cached) $ECHO_C" >&6
     6379else
     6380  cat >conftest.$ac_ext <<_ACEOF
     6381/* confdefs.h.  */
     6382_ACEOF
     6383cat confdefs.h >>conftest.$ac_ext
     6384cat >>conftest.$ac_ext <<_ACEOF
     6385/* end confdefs.h.  */
     6386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     6387   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6388#define $ac_func innocuous_$ac_func
     6389
    30646390/* System header to define __stub macros and hopefully few prototypes,
    3065     which can conflict with char $ac_func(); below.  */
    3066 #include <assert.h>
     6391    which can conflict with char $ac_func (); below.
     6392    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6393    <limits.h> exists even on freestanding compilers.  */
     6394
     6395#ifdef __STDC__
     6396# include <limits.h>
     6397#else
     6398# include <assert.h>
     6399#endif
     6400
     6401#undef $ac_func
     6402
    30676403/* Override any gcc2 internal prototype to avoid an error.  */
     6404#ifdef __cplusplus
     6405extern "C"
     6406{
     6407#endif
    30686408/* We use char because int might match the return type of a gcc2
    3069     builtin and then its argument prototype would still apply.  */
    3070 char $ac_func();
    3071 
    3072 int main() {
    3073 
     6409   builtin and then its argument prototype would still apply.  */
     6410char $ac_func ();
    30746411/* The GNU C library defines this for functions which it implements
    30756412    to always fail with ENOSYS.  Some functions are actually named
     
    30786415choke me
    30796416#else
    3080 $ac_func();
     6417char (*f) () = $ac_func;
    30816418#endif
    3082 
    3083 ; return 0; }
    3084 EOF
    3085 if { (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"
    3088 else
    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"
    3093 fi
    3094 rm -f conftest*
    3095 fi
    3096 
    3097 if 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
    3102 EOF
    3103  
    3104 else
    3105   echo "$ac_t""no" 1>&6
     6419#ifdef __cplusplus
     6420}
     6421#endif
     6422
     6423int
     6424main ()
     6425{
     6426return f != $ac_func;
     6427  ;
     6428  return 0;
     6429}
     6430_ACEOF
     6431rm -f conftest.$ac_objext conftest$ac_exeext
     6432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6433  (eval $ac_link) 2>conftest.er1
     6434  ac_status=$?
     6435  grep -v '^ *+' conftest.er1 >conftest.err
     6436  rm -f conftest.er1
     6437  cat conftest.err >&5
     6438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6439  (exit $ac_status); } &&
     6440     { ac_try='test -z "$ac_c_werror_flag"
     6441             || test ! -s conftest.err'
     6442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6443  (eval $ac_try) 2>&5
     6444  ac_status=$?
     6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6446  (exit $ac_status); }; } &&
     6447     { ac_try='test -s conftest$ac_exeext'
     6448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6449  (eval $ac_try) 2>&5
     6450  ac_status=$?
     6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6452  (exit $ac_status); }; }; then
     6453  eval "$as_ac_var=yes"
     6454else
     6455  echo "$as_me: failed program was:" >&5
     6456sed 's/^/| /' conftest.$ac_ext >&5
     6457
     6458eval "$as_ac_var=no"
     6459fi
     6460rm -f conftest.err conftest.$ac_objext \
     6461      conftest$ac_exeext conftest.$ac_ext
     6462fi
     6463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6464echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6465if test `eval echo '${'$as_ac_var'}'` = yes; then
     6466  cat >>confdefs.h <<_ACEOF
     6467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6468_ACEOF
     6469
    31066470fi
    31076471done
     
    31106474
    31116475# we cannot generate static libraries under Darwin
    3112 echo $ac_n "checking for Apple MacOS X/Darwin""... $ac_c" 1>&6
    3113 echo "configure:3114: checking for Apple MacOS X/Darwin" >&5
     6476echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
     6477echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
    31146478if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    3115   echo "$ac_t""yes" 1>&6
     6479  echo "$as_me:$LINENO: result: yes" >&5
     6480echo "${ECHO_T}yes" >&6
    31166481  STATIC=""
    31176482else
    3118   echo "$ac_t""no" 1>&6
     6483  echo "$as_me:$LINENO: result: no" >&5
     6484echo "${ECHO_T}no" >&6
    31196485  STATIC="-static "
    31206486fi
    31216487
    31226488
    3123 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
    3124 echo "configure:3125: checking if malloc debugging is wanted" >&5
     6489echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
     6490echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
     6491
    31256492# Check whether --with-dmalloc or --without-dmalloc was given.
    31266493if test "${with_dmalloc+set}" = set; then
    31276494  withval="$with_dmalloc"
    31286495  if test "$withval" = yes; then
    3129   echo "$ac_t""yes" 1>&6
    3130   cat >> confdefs.h <<\EOF
     6496  echo "$as_me:$LINENO: result: yes" >&5
     6497echo "${ECHO_T}yes" >&6
     6498  cat >>confdefs.h <<\_ACEOF
    31316499#define WITH_DMALLOC 1
    3132 EOF
     6500_ACEOF
    31336501
    31346502  LIBS="$LIBS -ldmalloc"
    31356503  LDFLAGS="$LDFLAGS -g"
    31366504else
    3137   echo "$ac_t""no" 1>&6
    3138 fi
    3139 else
    3140   echo "$ac_t""no" 1>&6
    3141 fi
    3142 
    3143 
    3144 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
    3145 echo "configure:3146: checking which of rx or regex is wanted" >&5
     6505  echo "$as_me:$LINENO: result: no" >&5
     6506echo "${ECHO_T}no" >&6
     6507fi
     6508else
     6509  echo "$as_me:$LINENO: result: no" >&5
     6510echo "${ECHO_T}no" >&6
     6511fi;
     6512
     6513echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
     6514echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
     6515
    31466516# Check whether --with-regex or --without-regex was given.
    31476517if test "${with_regex+set}" = set; then
     
    31496519  if test "$withval" = yes; then
    31506520  ac_with_regex=1
    3151   echo "$ac_t""regex" 1>&6
    3152   cat >> confdefs.h <<\EOF
     6521  echo "$as_me:$LINENO: result: regex" >&5
     6522echo "${ECHO_T}regex" >&6
     6523  cat >>confdefs.h <<\_ACEOF
    31536524#define WITH_REGEX 1
    3154 EOF
    3155 
    3156   LIBOBJS="$LIBOBJS regex.o"
    3157 fi
    3158 fi
    3159 
     6525_ACEOF
     6526
     6527  case $LIBOBJS in
     6528    "regex.$ac_objext"   | \
     6529  *" regex.$ac_objext"   | \
     6530    "regex.$ac_objext "* | \
     6531  *" regex.$ac_objext "* ) ;;
     6532  *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
     6533esac
     6534
     6535fi
     6536fi;
    31606537if test -z "$ac_with_regex"; then
    3161   echo "$ac_t""rx" 1>&6
    3162   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
    3163 echo "configure:3164: checking for re_rx_search" >&5
    3164 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    3165   echo $ac_n "(cached) $ac_c" 1>&6
    3166 else
    3167   cat > conftest.$ac_ext <<EOF
    3168 #line 3169 "configure"
    3169 #include "confdefs.h"
     6538  echo "$as_me:$LINENO: result: rx" >&5
     6539echo "${ECHO_T}rx" >&6
     6540  echo "$as_me:$LINENO: checking for re_rx_search" >&5
     6541echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
     6542if test "${ac_cv_func_re_rx_search+set}" = set; then
     6543  echo $ECHO_N "(cached) $ECHO_C" >&6
     6544else
     6545  cat >conftest.$ac_ext <<_ACEOF
     6546/* confdefs.h.  */
     6547_ACEOF
     6548cat confdefs.h >>conftest.$ac_ext
     6549cat >>conftest.$ac_ext <<_ACEOF
     6550/* end confdefs.h.  */
     6551/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
     6552   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6553#define re_rx_search innocuous_re_rx_search
     6554
    31706555/* System header to define __stub macros and hopefully few prototypes,
    3171     which can conflict with char re_rx_search(); below.  */
    3172 #include <assert.h>
     6556    which can conflict with char re_rx_search (); below.
     6557    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6558    <limits.h> exists even on freestanding compilers.  */
     6559
     6560#ifdef __STDC__
     6561# include <limits.h>
     6562#else
     6563# include <assert.h>
     6564#endif
     6565
     6566#undef re_rx_search
     6567
    31736568/* Override any gcc2 internal prototype to avoid an error.  */
     6569#ifdef __cplusplus
     6570extern "C"
     6571{
     6572#endif
    31746573/* We use char because int might match the return type of a gcc2
    3175     builtin and then its argument prototype would still apply.  */
    3176 char re_rx_search();
    3177 
    3178 int main() {
    3179 
     6574   builtin and then its argument prototype would still apply.  */
     6575char re_rx_search ();
    31806576/* The GNU C library defines this for functions which it implements
    31816577    to always fail with ENOSYS.  Some functions are actually named
     
    31846580choke me
    31856581#else
    3186 re_rx_search();
     6582char (*f) () = re_rx_search;
    31876583#endif
    3188 
    3189 ; return 0; }
    3190 EOF
    3191 if { (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"
    3194 else
    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"
    3199 fi
    3200 rm -f conftest*
    3201 fi
    3202 
    3203 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
    3204   echo "$ac_t""yes" 1>&6
     6584#ifdef __cplusplus
     6585}
     6586#endif
     6587
     6588int
     6589main ()
     6590{
     6591return f != re_rx_search;
     6592  ;
     6593  return 0;
     6594}
     6595_ACEOF
     6596rm -f conftest.$ac_objext conftest$ac_exeext
     6597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6598  (eval $ac_link) 2>conftest.er1
     6599  ac_status=$?
     6600  grep -v '^ *+' conftest.er1 >conftest.err
     6601  rm -f conftest.er1
     6602  cat conftest.err >&5
     6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6604  (exit $ac_status); } &&
     6605     { ac_try='test -z "$ac_c_werror_flag"
     6606             || test ! -s conftest.err'
     6607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6608  (eval $ac_try) 2>&5
     6609  ac_status=$?
     6610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6611  (exit $ac_status); }; } &&
     6612     { ac_try='test -s conftest$ac_exeext'
     6613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6614  (eval $ac_try) 2>&5
     6615  ac_status=$?
     6616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6617  (exit $ac_status); }; }; then
     6618  ac_cv_func_re_rx_search=yes
     6619else
     6620  echo "$as_me: failed program was:" >&5
     6621sed 's/^/| /' conftest.$ac_ext >&5
     6622
     6623ac_cv_func_re_rx_search=no
     6624fi
     6625rm -f conftest.err conftest.$ac_objext \
     6626      conftest$ac_exeext conftest.$ac_ext
     6627fi
     6628echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
     6629echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
     6630if test $ac_cv_func_re_rx_search = yes; then
    32056631  :
    32066632else
    3207   echo "$ac_t""no" 1>&6
    3208 LIBOBJS="$LIBOBJS rx.o"
     6633  case $LIBOBJS in
     6634    "rx.$ac_objext"   | \
     6635  *" rx.$ac_objext"   | \
     6636    "rx.$ac_objext "* | \
     6637  *" rx.$ac_objext "* ) ;;
     6638  *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
     6639esac
     6640
    32096641fi
    32106642
     
    32146646# ---------------------------------------------------------------------------
    32156647if test "$ac_cv_func_alloca" = 'no'; then
    3216   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     6648  case $LIBOBJS in
     6649    "xmalloc.$ac_objext"   | \
     6650  *" xmalloc.$ac_objext"   | \
     6651    "xmalloc.$ac_objext "* | \
     6652  *" xmalloc.$ac_objext "* ) ;;
     6653  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6654esac
     6655
     6656  case $LIBOBJS in
     6657    "error.$ac_objext"   | \
     6658  *" error.$ac_objext"   | \
     6659    "error.$ac_objext "* | \
     6660  *" error.$ac_objext "* ) ;;
     6661  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6662esac
     6663
    32176664fi
    32186665
     
    32206667# ---------------------------------------------------------------------------
    32216668
    3222 ac_ext=C
    3223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     6669ac_ext=cc
    32246670ac_cpp='$CXXCPP $CPPFLAGS'
    3225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    3226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    3227 cross_compiling=$ac_cv_prog_cxx_cross
    3228 
    3229 
    3230 
    3231 echo $ac_n "checking that the GDBM library is available""... $ac_c" 1>&6
    3232 echo "configure:3233: checking that the GDBM library is available" >&5
     6671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     6674
     6675
     6676
     6677echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
     6678echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
    32336679if test ! -z "$gdbmdir" ; then
    32346680  # look in given directory for header file
     
    32496695
    32506696  if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
    3251     echo "$ac_t""$gdbmdir" 1>&6 ;
     6697    echo "$as_me:$LINENO: result: $gdbmdir" >&5
     6698echo "${ECHO_T}$gdbmdir" >&6 ;
    32526699  else
    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
    3255 echo "configure:3256: checking looking for GDBM library in default locations" >&5
     6700    echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
     6701echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
     6702    echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
     6703echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
    32566704  fi
    32576705fi
     
    32596707# look in default path and in /usr/local
    32606708if test -z "$GDBM_INCLUDE" ; then
    3261   # try in system directory
    3262   cat > conftest.$ac_ext <<EOF
    3263 #line 3264 "configure"
    3264 #include "confdefs.h"
     6709  # try in system directory
     6710
     6711cat >conftest.$ac_ext <<_ACEOF
     6712/* confdefs.h.  */
     6713_ACEOF
     6714cat confdefs.h >>conftest.$ac_ext
     6715cat >>conftest.$ac_ext <<_ACEOF
     6716/* end confdefs.h.  */
    32656717#include <gdbm.h>
    32666718
    3267 int main() {
    3268 
    3269 ; return 0; }
    3270 EOF
    3271 if { (eval echo configure:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3272   rm -rf conftest*
     6719int
     6720main ()
     6721{
     6722
     6723  ;
     6724  return 0;
     6725}
     6726_ACEOF
     6727rm -f conftest.$ac_objext
     6728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6729  (eval $ac_compile) 2>conftest.er1
     6730  ac_status=$?
     6731  grep -v '^ *+' conftest.er1 >conftest.err
     6732  rm -f conftest.er1
     6733  cat conftest.err >&5
     6734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6735  (exit $ac_status); } &&
     6736     { ac_try='test -z "$ac_cxx_werror_flag"
     6737             || test ! -s conftest.err'
     6738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6739  (eval $ac_try) 2>&5
     6740  ac_status=$?
     6741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6742  (exit $ac_status); }; } &&
     6743     { ac_try='test -s conftest.$ac_objext'
     6744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6745  (eval $ac_try) 2>&5
     6746  ac_status=$?
     6747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6748  (exit $ac_status); }; }; then
    32736749  success=yes
    32746750else
    3275   echo "configure: failed program was:" >&5
    3276   cat conftest.$ac_ext >&5
    3277   rm -rf conftest*
    3278   success=no
    3279  
    3280 fi
    3281 rm -f conftest*
     6751  echo "$as_me: failed program was:" >&5
     6752sed 's/^/| /' conftest.$ac_ext >&5
     6753
     6754success=no
     6755
     6756fi
     6757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    32826758
    32836759  if test $success = "no"; then
     
    32896765      CXXFLAGS="$CXXFLAGS -I/usr/local/include"
    32906766      LIBS="$LIBS -L/usr/local/lib -lgdbm"
    3291       cat > conftest.$ac_ext <<EOF
    3292 #line 3293 "configure"
    3293 #include "confdefs.h"
     6767      cat >conftest.$ac_ext <<_ACEOF
     6768/* confdefs.h.  */
     6769_ACEOF
     6770cat confdefs.h >>conftest.$ac_ext
     6771cat >>conftest.$ac_ext <<_ACEOF
     6772/* end confdefs.h.  */
    32946773#include <gdbm.h>
    32956774#include <stdio.h>
    3296    
    3297 int main() {
     6775
     6776int
     6777main ()
     6778{
    32986779printf("%s",gdbm_version);
    3299 ; return 0; }
    3300 EOF
    3301 if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3302   rm -rf conftest*
     6780  ;
     6781  return 0;
     6782}
     6783_ACEOF
     6784rm -f conftest.$ac_objext conftest$ac_exeext
     6785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6786  (eval $ac_link) 2>conftest.er1
     6787  ac_status=$?
     6788  grep -v '^ *+' conftest.er1 >conftest.err
     6789  rm -f conftest.er1
     6790  cat conftest.err >&5
     6791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6792  (exit $ac_status); } &&
     6793     { ac_try='test -z "$ac_cxx_werror_flag"
     6794             || test ! -s conftest.err'
     6795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6796  (eval $ac_try) 2>&5
     6797  ac_status=$?
     6798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6799  (exit $ac_status); }; } &&
     6800     { ac_try='test -s conftest$ac_exeext'
     6801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6802  (eval $ac_try) 2>&5
     6803  ac_status=$?
     6804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6805  (exit $ac_status); }; }; then
    33036806  success=/usr/local
    33046807else
    3305   echo "configure: failed program was:" >&5
    3306   cat conftest.$ac_ext >&5
    3307   rm -rf conftest*
    3308   success=no
    3309      
    3310 fi
    3311 rm -f conftest*
     6808  echo "$as_me: failed program was:" >&5
     6809sed 's/^/| /' conftest.$ac_ext >&5
     6810
     6811success=no
     6812
     6813fi
     6814rm -f conftest.err conftest.$ac_objext \
     6815      conftest$ac_exeext conftest.$ac_ext
    33126816      CXXFLAGS=$ac_save_CXXFLAGS
    33136817      LIBS=$ac_save_LIBS
    33146818  fi
    33156819
    3316   echo "$ac_t""$success" 1>&6
     6820  echo "$as_me:$LINENO: result: $success" >&5
     6821echo "${ECHO_T}$success" >&6
    33176822  if test $success = "no"; then
    3318   { echo "configure: error: GDBM Library not available - cannot install" 1>&2; exit 1; }
     6823  { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
     6824echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
     6825   { (exit 1); exit 1; }; }
    33196826  fi
    33206827fi
    3321 cat >> confdefs.h <<\EOF
     6828cat >>confdefs.h <<\_ACEOF
    33226829#define HAVE_LIBGDBM  1
    3323 EOF
    3324 
    3325 
    3326 
    3327 
    3328 
    3329 echo $ac_n "checking that Perl 5 is available""... $ac_c" 1>&6
    3330 echo "configure:3331: checking that Perl 5 is available" >&5
     6830_ACEOF
     6831
     6832
     6833
     6834
     6835
     6836echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
     6837echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
    33316838success="no"
    33326839pl_path="$PATH"
     
    33456852try=`expr $try \> 5.000`
    33466853if test $try = "1"; then
    3347 echo "$ac_t"""yes"" 1>&6
     6854echo "$as_me:$LINENO: result: \"yes\"" >&5
     6855echo "${ECHO_T}\"yes\"" >&6
    33486856else
    33496857success="no"
     
    33526860
    33536861if test $success = "no"; then
    3354 echo "$ac_t"""no"" 1>&6
    3355 { echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
     6862echo "$as_me:$LINENO: result: \"no\"" >&5
     6863echo "${ECHO_T}\"no\"" >&6
     6864{ { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
     6865echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
     6866   { (exit 1); exit 1; }; }
    33566867fi
    33576868
    33586869success=no
    3359 echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
    3360 echo "configure:3361: checking "whether STL library has known faults"" >&5
    3361 
    3362 cat > conftest.$ac_ext <<EOF
    3363 #line 3364 "configure"
    3364 #include "confdefs.h"
     6870echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
     6871echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
     6872
     6873cat >conftest.$ac_ext <<_ACEOF
     6874/* confdefs.h.  */
     6875_ACEOF
     6876cat confdefs.h >>conftest.$ac_ext
     6877cat >>conftest.$ac_ext <<_ACEOF
     6878/* end confdefs.h.  */
    33656879#include <vector>
    33666880
    3367 int main() {
    3368 
    3369 ; return 0; }
    3370 EOF
    3371 if { (eval echo configure:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3372   rm -rf conftest*
     6881int
     6882main ()
     6883{
     6884
     6885  ;
     6886  return 0;
     6887}
     6888_ACEOF
     6889rm -f conftest.$ac_objext
     6890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6891  (eval $ac_compile) 2>conftest.er1
     6892  ac_status=$?
     6893  grep -v '^ *+' conftest.er1 >conftest.err
     6894  rm -f conftest.er1
     6895  cat conftest.err >&5
     6896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6897  (exit $ac_status); } &&
     6898     { ac_try='test -z "$ac_cxx_werror_flag"
     6899             || test ! -s conftest.err'
     6900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6901  (eval $ac_try) 2>&5
     6902  ac_status=$?
     6903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6904  (exit $ac_status); }; } &&
     6905     { ac_try='test -s conftest.$ac_objext'
     6906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6907  (eval $ac_try) 2>&5
     6908  ac_status=$?
     6909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6910  (exit $ac_status); }; }; then
    33736911  success=yes
    33746912else
    3375   echo "configure: failed program was:" >&5
    3376   cat conftest.$ac_ext >&5
    3377 fi
    3378 rm -f conftest*
     6913  echo "$as_me: failed program was:" >&5
     6914sed 's/^/| /' conftest.$ac_ext >&5
     6915
     6916fi
     6917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    33796918
    33806919if test $success = "no"; then
    3381 cat > conftest.$ac_ext <<EOF
    3382 #line 3383 "configure"
    3383 #include "confdefs.h"
     6920cat >conftest.$ac_ext <<_ACEOF
     6921/* confdefs.h.  */
     6922_ACEOF
     6923cat confdefs.h >>conftest.$ac_ext
     6924cat >>conftest.$ac_ext <<_ACEOF
     6925/* end confdefs.h.  */
    33846926#include <vector.h>
    33856927
    3386 int main() {
    3387 
    3388 ; return 0; }
    3389 EOF
    3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3391   rm -rf conftest*
     6928int
     6929main ()
     6930{
     6931
     6932  ;
     6933  return 0;
     6934}
     6935_ACEOF
     6936rm -f conftest.$ac_objext
     6937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6938  (eval $ac_compile) 2>conftest.er1
     6939  ac_status=$?
     6940  grep -v '^ *+' conftest.er1 >conftest.err
     6941  rm -f conftest.er1
     6942  cat conftest.err >&5
     6943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6944  (exit $ac_status); } &&
     6945     { ac_try='test -z "$ac_cxx_werror_flag"
     6946             || test ! -s conftest.err'
     6947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6948  (eval $ac_try) 2>&5
     6949  ac_status=$?
     6950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6951  (exit $ac_status); }; } &&
     6952     { ac_try='test -s conftest.$ac_objext'
     6953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6954  (eval $ac_try) 2>&5
     6955  ac_status=$?
     6956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6957  (exit $ac_status); }; }; then
    33926958  success="yes"
    33936959else
    3394   echo "configure: failed program was:" >&5
    3395   cat conftest.$ac_ext >&5
    3396 fi
    3397 rm -f conftest*
     6960  echo "$as_me: failed program was:" >&5
     6961sed 's/^/| /' conftest.$ac_ext >&5
     6962
     6963fi
     6964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    33986965fi
    33996966
    34006967if test $success = "no"; then
    3401 cat > conftest.$ac_ext <<EOF
    3402 #line 3403 "configure"
    3403 #include "confdefs.h"
     6968cat >conftest.$ac_ext <<_ACEOF
     6969/* confdefs.h.  */
     6970_ACEOF
     6971cat confdefs.h >>conftest.$ac_ext
     6972cat >>conftest.$ac_ext <<_ACEOF
     6973/* end confdefs.h.  */
    34046974#include <ospace\\std\\vector>
    34056975
    3406 int main() {
    3407 
    3408 ; return 0; }
    3409 EOF
    3410 if { (eval echo configure:3411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3411   rm -rf conftest*
     6976int
     6977main ()
     6978{
     6979
     6980  ;
     6981  return 0;
     6982}
     6983_ACEOF
     6984rm -f conftest.$ac_objext
     6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6986  (eval $ac_compile) 2>conftest.er1
     6987  ac_status=$?
     6988  grep -v '^ *+' conftest.er1 >conftest.err
     6989  rm -f conftest.er1
     6990  cat conftest.err >&5
     6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6992  (exit $ac_status); } &&
     6993     { ac_try='test -z "$ac_cxx_werror_flag"
     6994             || test ! -s conftest.err'
     6995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6996  (eval $ac_try) 2>&5
     6997  ac_status=$?
     6998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6999  (exit $ac_status); }; } &&
     7000     { ac_try='test -s conftest.$ac_objext'
     7001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7002  (eval $ac_try) 2>&5
     7003  ac_status=$?
     7004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7005  (exit $ac_status); }; }; then
    34127006  success="yes"
    34137007else
    3414   echo "configure: failed program was:" >&5
    3415   cat conftest.$ac_ext >&5
    3416 fi
    3417 rm -f conftest*
     7008  echo "$as_me: failed program was:" >&5
     7009sed 's/^/| /' conftest.$ac_ext >&5
     7010
     7011fi
     7012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    34187013fi
    34197014
    34207015if test $success = yes; then
    3421 echo "$ac_t"""no"" 1>&6
    3422 else
    3423 echo "$ac_t"""yes"" 1>&6
    3424 { echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
     7016echo "$as_me:$LINENO: result: \"no\"" >&5
     7017echo "${ECHO_T}\"no\"" >&6
     7018else
     7019echo "$as_me:$LINENO: result: \"yes\"" >&5
     7020echo "${ECHO_T}\"yes\"" >&6
     7021{ { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
     7022echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
     7023   { (exit 1); exit 1; }; }
    34257024fi
    34267025
     
    34357034# ---------------------------------------------------------------------------
    34367035if test "$ac_cv_func_alloca" = 'no'; then
    3437   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     7036  case $LIBOBJS in
     7037    "xmalloc.o.$ac_objext"   | \
     7038  *" xmalloc.o.$ac_objext"   | \
     7039    "xmalloc.o.$ac_objext "* | \
     7040  *" xmalloc.o.$ac_objext "* ) ;;
     7041  *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
     7042esac
     7043
     7044  case $LIBOBJS in
     7045    "error.$ac_objext"   | \
     7046  *" error.$ac_objext"   | \
     7047    "error.$ac_objext "* | \
     7048  *" error.$ac_objext "* ) ;;
     7049  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     7050esac
     7051
    34387052fi
    34397053
     
    34557069
    34567070# ---------------------------------------------------------------------------
    3457 subdirs="packages"
     7071
     7072
     7073subdirs="$subdirs packages"
    34587074
    34597075
     
    34637079          src/oaiservr/Makefile src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
    34647080
    3465 trap '' 1 2 15
    3466 cat > confcache <<\EOF
     7081                                                                                                    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"
     7082cat >confcache <<\_ACEOF
    34677083# This file is a shell script that caches the results of configure
    34687084# tests run on this system so they can be shared between configure
    3469 # scripts and configure runs.  It is not useful on other systems.
    3470 # If it contains results you don't want to keep, you may remove or edit it.
     7085# scripts and configure runs, see configure's option --config-cache.
     7086# It is not useful on other systems.  If it contains results you don't
     7087# want to keep, you may remove or edit it.
    34717088#
    3472 # By default, configure uses ./config.cache as the cache file,
    3473 # creating it if it does not exist already.  You can give configure
    3474 # the --cache-file=FILE option to use a different cache file; that is
    3475 # what configure does when it calls configure scripts in
    3476 # subdirectories, so they share the cache.
    3477 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    3478 # config.status only pays attention to the cache file if you give it the
    3479 # --recheck option to rerun configure.
     7089# config.status only pays attention to the cache file if you give it
     7090# the --recheck option to rerun configure.
    34807091#
    3481 EOF
     7092# `ac_cv_env_foo' variables (set or unset) will be overridden when
     7093# loading this file, other *unset* `ac_cv_foo' will be assigned the
     7094# following values.
     7095
     7096_ACEOF
     7097
    34827098# The following way of writing the cache mishandles newlines in values,
    34837099# but we know of no workaround that is simple, portable, and efficient.
     
    34857101# Ultrix sh set writes to stderr and can't be redirected directly,
    34867102# and sets the high bit in the cache file unless we assign to the vars.
    3487 (set) 2>&1 |
    3488   case `(ac_space=' '; set | grep ac_space) 2>&1` in
    3489   *ac_space=\ *)
    3490     # `set' does not quote correctly, so add quotes (double-quote substitution
    3491     # turns \\\\ into \\, and sed turns \\ into \).
    3492     sed -n \
    3493       -e "s/'/'\\\\''/g" \
    3494       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    3495     ;;
    3496   *)
    3497     # `set' quotes correctly as required by POSIX, so do not add quotes.
    3498     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    3499     ;;
    3500   esac >> confcache
    3501 if cmp -s $cache_file confcache; then
    3502   :
    3503 else
     7103{
     7104  (set) 2>&1 |
     7105    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     7106    *ac_space=\ *)
     7107      # `set' does not quote correctly, so add quotes (double-quote
     7108      # substitution turns \\\\ into \\, and sed turns \\ into \).
     7109      sed -n \
     7110    "s/'/'\\\\''/g;
     7111      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     7112      ;;
     7113    *)
     7114      # `set' quotes correctly as required by POSIX, so do not add quotes.
     7115      sed -n \
     7116    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     7117      ;;
     7118    esac;
     7119} |
     7120  sed '
     7121     t clear
     7122     : clear
     7123     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     7124     t end
     7125     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     7126     : end' >>confcache
     7127if diff $cache_file confcache >/dev/null 2>&1; then :; else
    35047128  if test -w $cache_file; then
    3505     echo "updating cache $cache_file"
    3506     cat confcache > $cache_file
     7129    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     7130    cat confcache >$cache_file
    35077131  else
    35087132    echo "not updating unwritable cache $cache_file"
     
    35117135rm -f confcache
    35127136
    3513 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    3514 
    35157137test "x$prefix" = xNONE && prefix=$ac_default_prefix
    35167138# Let make expand exec_prefix.
    35177139test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    35187140
    3519 # Any assignment to VPATH causes Sun make to only execute
    3520 # the first set of double-colon rules, so remove it if not needed.
    3521 # If there is a colon in the path, we need to keep it.
     7141# VPATH may cause trouble with some makes, so we remove $(srcdir),
     7142# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     7143# trailing colons and then remove the whole line if VPATH becomes empty
     7144# (actually we leave an empty line to preserve line numbers).
    35227145if test "x$srcdir" = x.; then
    3523   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
    3524 fi
    3525 
    3526 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     7146  ac_vpsub='/^[  ]*VPATH[    ]*=/{
     7147s/:*\$(srcdir):*/:/;
     7148s/:*\${srcdir}:*/:/;
     7149s/:*@srcdir@:*/:/;
     7150s/^\([^=]*=[     ]*\):*/\1/;
     7151s/:*$//;
     7152s/^[^=]*=[   ]*$//;
     7153}'
     7154fi
    35277155
    35287156DEFS=-DHAVE_CONFIG_H
    35297157
    3530 # Without the "./", some shells look in PATH for config.status.
     7158ac_libobjs=
     7159ac_ltlibobjs=
     7160for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
     7161  # 1. Remove the extension, and $U if already installed.
     7162  ac_i=`echo "$ac_i" |
     7163     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     7164  # 2. Add them.
     7165  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     7166  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     7167done
     7168LIBOBJS=$ac_libobjs
     7169
     7170LTLIBOBJS=$ac_ltlibobjs
     7171
     7172
     7173
    35317174: ${CONFIG_STATUS=./config.status}
    3532 
    3533 echo creating $CONFIG_STATUS
    3534 rm -f $CONFIG_STATUS
    3535 cat > $CONFIG_STATUS <<EOF
    3536 #! /bin/sh
    3537 # Generated automatically by configure.
     7175ac_clean_files_save=$ac_clean_files
     7176ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     7177{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
     7178echo "$as_me: creating $CONFIG_STATUS" >&6;}
     7179cat >$CONFIG_STATUS <<_ACEOF
     7180#! $SHELL
     7181# Generated by $as_me.
    35387182# Run this file to recreate the current configuration.
    3539 # This directory was configured as follows,
    3540 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    3541 #
    3542 # $0 $ac_configure_args
    3543 #
    35447183# Compiler output produced by configure, useful for debugging
    3545 # configure, is in ./config.log if it exists.
    3546 
    3547 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    3548 for ac_option
     7184# configure, is in config.log if it exists.
     7185
     7186debug=false
     7187ac_cs_recheck=false
     7188ac_cs_silent=false
     7189SHELL=\${CONFIG_SHELL-$SHELL}
     7190_ACEOF
     7191
     7192cat >>$CONFIG_STATUS <<\_ACEOF
     7193## --------------------- ##
     7194## M4sh Initialization.  ##
     7195## --------------------- ##
     7196
     7197# Be Bourne compatible
     7198if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     7199  emulate sh
     7200  NULLCMD=:
     7201  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     7202  # is contrary to our usage.  Disable this feature.
     7203  alias -g '${1+"$@"}'='"$@"'
     7204elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     7205  set -o posix
     7206fi
     7207DUALCASE=1; export DUALCASE # for MKS sh
     7208
     7209# Support unset when possible.
     7210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     7211  as_unset=unset
     7212else
     7213  as_unset=false
     7214fi
     7215
     7216
     7217# Work around bugs in pre-3.0 UWIN ksh.
     7218$as_unset ENV MAIL MAILPATH
     7219PS1='$ '
     7220PS2='> '
     7221PS4='+ '
     7222
     7223# NLS nuisances.
     7224for as_var in \
     7225  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     7226  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     7227  LC_TELEPHONE LC_TIME
    35497228do
    3550   case "\$ac_option" in
     7229  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     7230    eval $as_var=C; export $as_var
     7231  else
     7232    $as_unset $as_var
     7233  fi
     7234done
     7235
     7236# Required to use basename.
     7237if expr a : '\(a\)' >/dev/null 2>&1; then
     7238  as_expr=expr
     7239else
     7240  as_expr=false
     7241fi
     7242
     7243if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     7244  as_basename=basename
     7245else
     7246  as_basename=false
     7247fi
     7248
     7249
     7250# Name of the executable.
     7251as_me=`$as_basename "$0" ||
     7252$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     7253     X"$0" : 'X\(//\)$' \| \
     7254     X"$0" : 'X\(/\)$' \| \
     7255     .     : '\(.\)' 2>/dev/null ||
     7256echo X/"$0" |
     7257    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     7258      /^X\/\(\/\/\)$/{ s//\1/; q; }
     7259      /^X\/\(\/\).*/{ s//\1/; q; }
     7260      s/.*/./; q'`
     7261
     7262
     7263# PATH needs CR, and LINENO needs CR and PATH.
     7264# Avoid depending upon Character Ranges.
     7265as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     7266as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     7267as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     7268as_cr_digits='0123456789'
     7269as_cr_alnum=$as_cr_Letters$as_cr_digits
     7270
     7271# The user is always right.
     7272if test "${PATH_SEPARATOR+set}" != set; then
     7273  echo "#! /bin/sh" >conf$$.sh
     7274  echo  "exit 0"   >>conf$$.sh
     7275  chmod +x conf$$.sh
     7276  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     7277    PATH_SEPARATOR=';'
     7278  else
     7279    PATH_SEPARATOR=:
     7280  fi
     7281  rm -f conf$$.sh
     7282fi
     7283
     7284
     7285  as_lineno_1=$LINENO
     7286  as_lineno_2=$LINENO
     7287  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     7288  test "x$as_lineno_1" != "x$as_lineno_2" &&
     7289  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     7290  # Find who we are.  Look in the path if we contain no path at all
     7291  # relative or not.
     7292  case $0 in
     7293    *[\\/]* ) as_myself=$0 ;;
     7294    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7295for as_dir in $PATH
     7296do
     7297  IFS=$as_save_IFS
     7298  test -z "$as_dir" && as_dir=.
     7299  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     7300done
     7301
     7302       ;;
     7303  esac
     7304  # We did not find ourselves, most probably we were run as `sh COMMAND'
     7305  # in which case we are not to be found in the path.
     7306  if test "x$as_myself" = x; then
     7307    as_myself=$0
     7308  fi
     7309  if test ! -f "$as_myself"; then
     7310    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
     7311echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
     7312   { (exit 1); exit 1; }; }
     7313  fi
     7314  case $CONFIG_SHELL in
     7315  '')
     7316    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7317for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     7318do
     7319  IFS=$as_save_IFS
     7320  test -z "$as_dir" && as_dir=.
     7321  for as_base in sh bash ksh sh5; do
     7322     case $as_dir in
     7323     /*)
     7324       if ("$as_dir/$as_base" -c '
     7325  as_lineno_1=$LINENO
     7326  as_lineno_2=$LINENO
     7327  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     7328  test "x$as_lineno_1" != "x$as_lineno_2" &&
     7329  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     7330         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     7331         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     7332         CONFIG_SHELL=$as_dir/$as_base
     7333         export CONFIG_SHELL
     7334         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     7335       fi;;
     7336     esac
     7337       done
     7338done
     7339;;
     7340  esac
     7341
     7342  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     7343  # uniformly replaced by the line number.  The first 'sed' inserts a
     7344  # line-number line before each line; the second 'sed' does the real
     7345  # work.  The second script uses 'N' to pair each line-number line
     7346  # with the numbered line, and appends trailing '-' during
     7347  # substitution so that $LINENO is not a special case at line end.
     7348  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     7349  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     7350  sed '=' <$as_myself |
     7351    sed '
     7352      N
     7353      s,$,-,
     7354      : loop
     7355      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     7356      t loop
     7357      s,-$,,
     7358      s,^['$as_cr_digits']*\n,,
     7359    ' >$as_me.lineno &&
     7360  chmod +x $as_me.lineno ||
     7361    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
     7362echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     7363   { (exit 1); exit 1; }; }
     7364
     7365  # Don't try to exec as it changes $[0], causing all sort of problems
     7366  # (the dirname of $[0] is not the place where we might find the
     7367  # original and so on.  Autoconf is especially sensible to this).
     7368  . ./$as_me.lineno
     7369  # Exit status is that of the last command.
     7370  exit
     7371}
     7372
     7373
     7374case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     7375  *c*,-n*) ECHO_N= ECHO_C='
     7376' ECHO_T='  ' ;;
     7377  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     7378  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     7379esac
     7380
     7381if expr a : '\(a\)' >/dev/null 2>&1; then
     7382  as_expr=expr
     7383else
     7384  as_expr=false
     7385fi
     7386
     7387rm -f conf$$ conf$$.exe conf$$.file
     7388echo >conf$$.file
     7389if ln -s conf$$.file conf$$ 2>/dev/null; then
     7390  # We could just check for DJGPP; but this test a) works b) is more generic
     7391  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     7392  if test -f conf$$.exe; then
     7393    # Don't use ln at all; we don't have any links
     7394    as_ln_s='cp -p'
     7395  else
     7396    as_ln_s='ln -s'
     7397  fi
     7398elif ln conf$$.file conf$$ 2>/dev/null; then
     7399  as_ln_s=ln
     7400else
     7401  as_ln_s='cp -p'
     7402fi
     7403rm -f conf$$ conf$$.exe conf$$.file
     7404
     7405if mkdir -p . 2>/dev/null; then
     7406  as_mkdir_p=:
     7407else
     7408  test -d ./-p && rmdir ./-p
     7409  as_mkdir_p=false
     7410fi
     7411
     7412as_executable_p="test -f"
     7413
     7414# Sed expression to map a string onto a valid CPP name.
     7415as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     7416
     7417# Sed expression to map a string onto a valid variable name.
     7418as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     7419
     7420
     7421# IFS
     7422# We need space, tab and new line, in precisely that order.
     7423as_nl='
     7424'
     7425IFS="   $as_nl"
     7426
     7427# CDPATH.
     7428$as_unset CDPATH
     7429
     7430exec 6>&1
     7431
     7432# Open the log real soon, to keep \$[0] and so on meaningful, and to
     7433# report actual input values of CONFIG_FILES etc. instead of their
     7434# values after options handling.  Logging --version etc. is OK.
     7435exec 5>>config.log
     7436{
     7437  echo
     7438  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     7439## Running $as_me. ##
     7440_ASBOX
     7441} >&5
     7442cat >&5 <<_CSEOF
     7443
     7444This file was extended by $as_me, which was
     7445generated by GNU Autoconf 2.59.  Invocation command line was
     7446
     7447  CONFIG_FILES    = $CONFIG_FILES
     7448  CONFIG_HEADERS  = $CONFIG_HEADERS
     7449  CONFIG_LINKS    = $CONFIG_LINKS
     7450  CONFIG_COMMANDS = $CONFIG_COMMANDS
     7451  $ $0 $@
     7452
     7453_CSEOF
     7454echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
     7455echo >&5
     7456_ACEOF
     7457
     7458# Files that config.status was made for.
     7459if test -n "$ac_config_files"; then
     7460  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     7461fi
     7462
     7463if test -n "$ac_config_headers"; then
     7464  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     7465fi
     7466
     7467if test -n "$ac_config_links"; then
     7468  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     7469fi
     7470
     7471if test -n "$ac_config_commands"; then
     7472  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     7473fi
     7474
     7475cat >>$CONFIG_STATUS <<\_ACEOF
     7476
     7477ac_cs_usage="\
     7478\`$as_me' instantiates files from templates according to the
     7479current configuration.
     7480
     7481Usage: $0 [OPTIONS] [FILE]...
     7482
     7483  -h, --help       print this help, then exit
     7484  -V, --version    print version number, then exit
     7485  -q, --quiet      do not print progress messages
     7486  -d, --debug      don't remove temporary files
     7487      --recheck    update $as_me by reconfiguring in the same conditions
     7488  --file=FILE[:TEMPLATE]
     7489           instantiate the configuration file FILE
     7490  --header=FILE[:TEMPLATE]
     7491           instantiate the configuration header FILE
     7492
     7493Configuration files:
     7494$config_files
     7495
     7496Configuration headers:
     7497$config_headers
     7498
     7499Report bugs to <[email protected]>."
     7500_ACEOF
     7501
     7502cat >>$CONFIG_STATUS <<_ACEOF
     7503ac_cs_version="\\
     7504config.status
     7505configured by $0, generated by GNU Autoconf 2.59,
     7506  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     7507
     7508Copyright (C) 2003 Free Software Foundation, Inc.
     7509This config.status script is free software; the Free Software Foundation
     7510gives unlimited permission to copy, distribute and modify it."
     7511srcdir=$srcdir
     7512INSTALL="$INSTALL"
     7513_ACEOF
     7514
     7515cat >>$CONFIG_STATUS <<\_ACEOF
     7516# If no file are specified by the user, then we need to provide default
     7517# value.  By we need to know if files were specified by the user.
     7518ac_need_defaults=:
     7519while test $# != 0
     7520do
     7521  case $1 in
     7522  --*=*)
     7523    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     7524    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     7525    ac_shift=:
     7526    ;;
     7527  -*)
     7528    ac_option=$1
     7529    ac_optarg=$2
     7530    ac_shift=shift
     7531    ;;
     7532  *) # This is not an option, so the user has probably given explicit
     7533     # arguments.
     7534     ac_option=$1
     7535     ac_need_defaults=false;;
     7536  esac
     7537
     7538  case $ac_option in
     7539  # Handling of the options.
     7540_ACEOF
     7541cat >>$CONFIG_STATUS <<\_ACEOF
    35517542  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    3552     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    3553     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    3554   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    3555     echo "$CONFIG_STATUS generated by autoconf version 2.13"
    3556     exit 0 ;;
    3557   -help | --help | --hel | --he | --h)
    3558     echo "\$ac_cs_usage"; exit 0 ;;
    3559   *) echo "\$ac_cs_usage"; exit 1 ;;
     7543    ac_cs_recheck=: ;;
     7544  --version | --vers* | -V )
     7545    echo "$ac_cs_version"; exit 0 ;;
     7546  --he | --h)
     7547    # Conflict between --help and --header
     7548    { { echo "$as_me:$LINENO: error: ambiguous option: $1
     7549Try \`$0 --help' for more information." >&5
     7550echo "$as_me: error: ambiguous option: $1
     7551Try \`$0 --help' for more information." >&2;}
     7552   { (exit 1); exit 1; }; };;
     7553  --help | --hel | -h )
     7554    echo "$ac_cs_usage"; exit 0 ;;
     7555  --debug | --d* | -d )
     7556    debug=: ;;
     7557  --file | --fil | --fi | --f )
     7558    $ac_shift
     7559    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
     7560    ac_need_defaults=false;;
     7561  --header | --heade | --head | --hea )
     7562    $ac_shift
     7563    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
     7564    ac_need_defaults=false;;
     7565  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     7566  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     7567    ac_cs_silent=: ;;
     7568
     7569  # This is an error.
     7570  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
     7571Try \`$0 --help' for more information." >&5
     7572echo "$as_me: error: unrecognized option: $1
     7573Try \`$0 --help' for more information." >&2;}
     7574   { (exit 1); exit 1; }; } ;;
     7575
     7576  *) ac_config_targets="$ac_config_targets $1" ;;
     7577
     7578  esac
     7579  shift
     7580done
     7581
     7582ac_configure_extra_args=
     7583
     7584if $ac_cs_silent; then
     7585  exec 6>/dev/null
     7586  ac_configure_extra_args="$ac_configure_extra_args --silent"
     7587fi
     7588
     7589_ACEOF
     7590cat >>$CONFIG_STATUS <<_ACEOF
     7591if \$ac_cs_recheck; then
     7592  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     7593  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     7594fi
     7595
     7596_ACEOF
     7597
     7598
     7599
     7600
     7601
     7602cat >>$CONFIG_STATUS <<\_ACEOF
     7603for ac_config_target in $ac_config_targets
     7604do
     7605  case "$ac_config_target" in
     7606  # Handling of arguments.
     7607  "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
     7608  "packages/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/Makefile" ;;
     7609  "packages/mg/src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/text/Makefile" ;;
     7610  "packages/mg/src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/images/Makefile" ;;
     7611  "packages/mg/src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/scripts/Makefile" ;;
     7612  "packages/mg/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/lib/Makefile" ;;
     7613  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     7614  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     7615  "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
     7616  "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
     7617  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     7618  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     7619echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     7620   { (exit 1); exit 1; }; };;
    35607621  esac
    35617622done
    35627623
    3563 ac_given_srcdir=$srcdir
    3564 ac_given_INSTALL="$INSTALL"
    3565 
    3566 trap 'rm -fr `echo "packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
    3567           packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
    3568       lib/Makefile Makefile $srclist $moduleDirs config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    3569 EOF
    3570 cat >> $CONFIG_STATUS <<EOF
    3571 
    3572 # Protect against being on the right side of a sed subst in config.status.
    3573 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    3574  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    3575 $ac_vpsub
     7624# If the user did not use the arguments to specify the items to instantiate,
     7625# then the envvar interface is used.  Set only those that are not.
     7626# We use the long form for the default assignment because of an extremely
     7627# bizarre bug on SunOS 4.1.3.
     7628if $ac_need_defaults; then
     7629  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     7630  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     7631fi
     7632
     7633# Have a temporary directory for convenience.  Make it in the build tree
     7634# simply because there is no reason to put it here, and in addition,
     7635# creating and moving files from /tmp can sometimes cause problems.
     7636# Create a temporary directory, and hook for its removal unless debugging.
     7637$debug ||
     7638{
     7639  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     7640  trap '{ (exit 1); exit 1; }' 1 2 13 15
     7641}
     7642
     7643# Create a (secure) tmp directory for tmp files.
     7644
     7645{
     7646  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     7647  test -n "$tmp" && test -d "$tmp"
     7648}  ||
     7649{
     7650  tmp=./confstat$$-$RANDOM
     7651  (umask 077 && mkdir $tmp)
     7652} ||
     7653{
     7654   echo "$me: cannot create a temporary directory in ." >&2
     7655   { (exit 1); exit 1; }
     7656}
     7657
     7658_ACEOF
     7659
     7660cat >>$CONFIG_STATUS <<_ACEOF
     7661
     7662#
     7663# CONFIG_FILES section.
     7664#
     7665
     7666# No need to generate the scripts if there are no CONFIG_FILES.
     7667# This happens for instance when ./config.status config.h
     7668if test -n "\$CONFIG_FILES"; then
     7669  # Protect against being on the right side of a sed subst in config.status.
     7670  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     7671   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     7672s,@SHELL@,$SHELL,;t t
     7673s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     7674s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     7675s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     7676s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     7677s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     7678s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     7679s,@exec_prefix@,$exec_prefix,;t t
     7680s,@prefix@,$prefix,;t t
     7681s,@program_transform_name@,$program_transform_name,;t t
     7682s,@bindir@,$bindir,;t t
     7683s,@sbindir@,$sbindir,;t t
     7684s,@libexecdir@,$libexecdir,;t t
     7685s,@datadir@,$datadir,;t t
     7686s,@sysconfdir@,$sysconfdir,;t t
     7687s,@sharedstatedir@,$sharedstatedir,;t t
     7688s,@localstatedir@,$localstatedir,;t t
     7689s,@libdir@,$libdir,;t t
     7690s,@includedir@,$includedir,;t t
     7691s,@oldincludedir@,$oldincludedir,;t t
     7692s,@infodir@,$infodir,;t t
     7693s,@mandir@,$mandir,;t t
     7694s,@build_alias@,$build_alias,;t t
     7695s,@host_alias@,$host_alias,;t t
     7696s,@target_alias@,$target_alias,;t t
     7697s,@DEFS@,$DEFS,;t t
     7698s,@ECHO_C@,$ECHO_C,;t t
     7699s,@ECHO_N@,$ECHO_N,;t t
     7700s,@ECHO_T@,$ECHO_T,;t t
     7701s,@LIBS@,$LIBS,;t t
     7702s,@PACKAGE@,$PACKAGE,;t t
     7703s,@VERSION@,$VERSION,;t t
     7704s,@USE_FASTCGI@,$USE_FASTCGI,;t t
     7705s,@USE_LANGACTION@,$USE_LANGACTION,;t t
     7706s,@USE_CORBA@,$USE_CORBA,;t t
     7707s,@MICO_DIR@,$MICO_DIR,;t t
     7708s,@USE_Z3950@,$USE_Z3950,;t t
     7709s,@CFLAGS@,$CFLAGS,;t t
     7710s,@CC@,$CC,;t t
     7711s,@LDFLAGS@,$LDFLAGS,;t t
     7712s,@CPPFLAGS@,$CPPFLAGS,;t t
     7713s,@ac_ct_CC@,$ac_ct_CC,;t t
     7714s,@EXEEXT@,$EXEEXT,;t t
     7715s,@OBJEXT@,$OBJEXT,;t t
     7716s,@CXX@,$CXX,;t t
     7717s,@CXXFLAGS@,$CXXFLAGS,;t t
     7718s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     7719s,@AWK@,$AWK,;t t
     7720s,@YACC@,$YACC,;t t
     7721s,@build@,$build,;t t
     7722s,@build_cpu@,$build_cpu,;t t
     7723s,@build_vendor@,$build_vendor,;t t
     7724s,@build_os@,$build_os,;t t
     7725s,@host@,$host,;t t
     7726s,@host_cpu@,$host_cpu,;t t
     7727s,@host_vendor@,$host_vendor,;t t
     7728s,@host_os@,$host_os,;t t
     7729s,@target@,$target,;t t
     7730s,@target_cpu@,$target_cpu,;t t
     7731s,@target_vendor@,$target_vendor,;t t
     7732s,@target_os@,$target_os,;t t
     7733s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     7734s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     7735s,@INSTALL_DATA@,$INSTALL_DATA,;t t
     7736s,@LN_S@,$LN_S,;t t
     7737s,@SET_MAKE@,$SET_MAKE,;t t
     7738s,@RANLIB@,$RANLIB,;t t
     7739s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
     7740s,@MICO_VER@,$MICO_VER,;t t
     7741s,@CPP@,$CPP,;t t
     7742s,@EGREP@,$EGREP,;t t
     7743s,@U@,$U,;t t
     7744s,@ANSI2KNR@,$ANSI2KNR,;t t
     7745s,@ALLOCA@,$ALLOCA,;t t
     7746s,@LIBOBJS@,$LIBOBJS,;t t
     7747s,@STATIC@,$STATIC,;t t
     7748s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
     7749s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
     7750s,@gsdlos@,$gsdlos,;t t
     7751s,@MODULEDIRS@,$MODULEDIRS,;t t
     7752s,@subdirs@,$subdirs,;t t
     7753s,@LTLIBOBJS@,$LTLIBOBJS,;t t
     7754CEOF
     7755
     7756_ACEOF
     7757
     7758  cat >>$CONFIG_STATUS <<\_ACEOF
     7759  # Split the substitutions into bite-sized pieces for seds with
     7760  # small command number limits, like on Digital OSF/1 and HP-UX.
     7761  ac_max_sed_lines=48
     7762  ac_sed_frag=1 # Number of current file.
     7763  ac_beg=1 # First line for current file.
     7764  ac_end=$ac_max_sed_lines # Line after last line for current file.
     7765  ac_more_lines=:
     7766  ac_sed_cmds=
     7767  while $ac_more_lines; do
     7768    if test $ac_beg -gt 1; then
     7769      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7770    else
     7771      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7772    fi
     7773    if test ! -s $tmp/subs.frag; then
     7774      ac_more_lines=false
     7775    else
     7776      # The purpose of the label and of the branching condition is to
     7777      # speed up the sed processing (if there are no `@' at all, there
     7778      # is no need to browse any of the substitutions).
     7779      # These are the two extra sed commands mentioned above.
     7780      (echo ':t
     7781  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     7782      if test -z "$ac_sed_cmds"; then
     7783    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     7784      else
     7785    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     7786      fi
     7787      ac_sed_frag=`expr $ac_sed_frag + 1`
     7788      ac_beg=$ac_end
     7789      ac_end=`expr $ac_end + $ac_max_sed_lines`
     7790    fi
     7791  done
     7792  if test -z "$ac_sed_cmds"; then
     7793    ac_sed_cmds=cat
     7794  fi
     7795fi # test -n "$CONFIG_FILES"
     7796
     7797_ACEOF
     7798cat >>$CONFIG_STATUS <<\_ACEOF
     7799for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     7800  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     7801  case $ac_file in
     7802  - | *:- | *:-:* ) # input from stdin
     7803    cat >$tmp/stdin
     7804    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7805    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7806  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7807    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7808  * )   ac_file_in=$ac_file.in ;;
     7809  esac
     7810
     7811  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     7812  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7813$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7814     X"$ac_file" : 'X\(//\)[^/]' \| \
     7815     X"$ac_file" : 'X\(//\)$' \| \
     7816     X"$ac_file" : 'X\(/\)' \| \
     7817     .     : '\(.\)' 2>/dev/null ||
     7818echo X"$ac_file" |
     7819    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7820      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7821      /^X\(\/\/\)$/{ s//\1/; q; }
     7822      /^X\(\/\).*/{ s//\1/; q; }
     7823      s/.*/./; q'`
     7824  { if $as_mkdir_p; then
     7825    mkdir -p "$ac_dir"
     7826  else
     7827    as_dir="$ac_dir"
     7828    as_dirs=
     7829    while test ! -d "$as_dir"; do
     7830      as_dirs="$as_dir $as_dirs"
     7831      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7832$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7833     X"$as_dir" : 'X\(//\)[^/]' \| \
     7834     X"$as_dir" : 'X\(//\)$' \| \
     7835     X"$as_dir" : 'X\(/\)' \| \
     7836     .     : '\(.\)' 2>/dev/null ||
     7837echo X"$as_dir" |
     7838    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7839      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7840      /^X\(\/\/\)$/{ s//\1/; q; }
     7841      /^X\(\/\).*/{ s//\1/; q; }
     7842      s/.*/./; q'`
     7843    done
     7844    test ! -n "$as_dirs" || mkdir $as_dirs
     7845  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7846echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7847   { (exit 1); exit 1; }; }; }
     7848
     7849  ac_builddir=.
     7850
     7851if test "$ac_dir" != .; then
     7852  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7853  # A "../" for each directory in $ac_dir_suffix.
     7854  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7855else
     7856  ac_dir_suffix= ac_top_builddir=
     7857fi
     7858
     7859case $srcdir in
     7860  .)  # No --srcdir option.  We are building in place.
     7861    ac_srcdir=.
     7862    if test -z "$ac_top_builddir"; then
     7863       ac_top_srcdir=.
     7864    else
     7865       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7866    fi ;;
     7867  [\\/]* | ?:[\\/]* )  # Absolute path.
     7868    ac_srcdir=$srcdir$ac_dir_suffix;
     7869    ac_top_srcdir=$srcdir ;;
     7870  *) # Relative path.
     7871    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7872    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7873esac
     7874
     7875# Do not use `cd foo && pwd` to compute absolute paths, because
     7876# the directories may not exist.
     7877case `pwd` in
     7878.) ac_abs_builddir="$ac_dir";;
     7879*)
     7880  case "$ac_dir" in
     7881  .) ac_abs_builddir=`pwd`;;
     7882  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     7883  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     7884  esac;;
     7885esac
     7886case $ac_abs_builddir in
     7887.) ac_abs_top_builddir=${ac_top_builddir}.;;
     7888*)
     7889  case ${ac_top_builddir}. in
     7890  .) ac_abs_top_builddir=$ac_abs_builddir;;
     7891  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     7892  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     7893  esac;;
     7894esac
     7895case $ac_abs_builddir in
     7896.) ac_abs_srcdir=$ac_srcdir;;
     7897*)
     7898  case $ac_srcdir in
     7899  .) ac_abs_srcdir=$ac_abs_builddir;;
     7900  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     7901  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     7902  esac;;
     7903esac
     7904case $ac_abs_builddir in
     7905.) ac_abs_top_srcdir=$ac_top_srcdir;;
     7906*)
     7907  case $ac_top_srcdir in
     7908  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     7909  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     7910  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     7911  esac;;
     7912esac
     7913
     7914
     7915  case $INSTALL in
     7916  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
     7917  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     7918  esac
     7919
     7920  if test x"$ac_file" != x-; then
     7921    { echo "$as_me:$LINENO: creating $ac_file" >&5
     7922echo "$as_me: creating $ac_file" >&6;}
     7923    rm -f "$ac_file"
     7924  fi
     7925  # Let's still pretend it is `configure' which instantiates (i.e., don't
     7926  # use $as_me), people would be surprised to read:
     7927  #    /* config.h.  Generated by config.status.  */
     7928  if test x"$ac_file" = x-; then
     7929    configure_input=
     7930  else
     7931    configure_input="$ac_file.  "
     7932  fi
     7933  configure_input=$configure_input"Generated from `echo $ac_file_in |
     7934                     sed 's,.*/,,'` by configure."
     7935
     7936  # First look for the input files in the build tree, otherwise in the
     7937  # src tree.
     7938  ac_file_inputs=`IFS=:
     7939    for f in $ac_file_in; do
     7940      case $f in
     7941      -) echo $tmp/stdin ;;
     7942      [\\/$]*)
     7943     # Absolute (can't be DOS-style, as IFS=:)
     7944     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     7945echo "$as_me: error: cannot find input file: $f" >&2;}
     7946   { (exit 1); exit 1; }; }
     7947     echo "$f";;
     7948      *) # Relative
     7949     if test -f "$f"; then
     7950       # Build tree
     7951       echo "$f"
     7952     elif test -f "$srcdir/$f"; then
     7953       # Source tree
     7954       echo "$srcdir/$f"
     7955     else
     7956       # /dev/null tree
     7957       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     7958echo "$as_me: error: cannot find input file: $f" >&2;}
     7959   { (exit 1); exit 1; }; }
     7960     fi;;
     7961      esac
     7962    done` || { (exit 1); exit 1; }
     7963_ACEOF
     7964cat >>$CONFIG_STATUS <<_ACEOF
     7965  sed "$ac_vpsub
    35767966$extrasub
    3577 s%@SHELL@%$SHELL%g
    3578 s%@CFLAGS@%$CFLAGS%g
    3579 s%@CPPFLAGS@%$CPPFLAGS%g
    3580 s%@CXXFLAGS@%$CXXFLAGS%g
    3581 s%@FFLAGS@%$FFLAGS%g
    3582 s%@DEFS@%$DEFS%g
    3583 s%@LDFLAGS@%$LDFLAGS%g
    3584 s%@LIBS@%$LIBS%g
    3585 s%@exec_prefix@%$exec_prefix%g
    3586 s%@prefix@%$prefix%g
    3587 s%@program_transform_name@%$program_transform_name%g
    3588 s%@bindir@%$bindir%g
    3589 s%@sbindir@%$sbindir%g
    3590 s%@libexecdir@%$libexecdir%g
    3591 s%@datadir@%$datadir%g
    3592 s%@sysconfdir@%$sysconfdir%g
    3593 s%@sharedstatedir@%$sharedstatedir%g
    3594 s%@localstatedir@%$localstatedir%g
    3595 s%@libdir@%$libdir%g
    3596 s%@includedir@%$includedir%g
    3597 s%@oldincludedir@%$oldincludedir%g
    3598 s%@infodir@%$infodir%g
    3599 s%@mandir@%$mandir%g
    3600 s%@PACKAGE@%$PACKAGE%g
    3601 s%@VERSION@%$VERSION%g
    3602 s%@USE_FASTCGI@%$USE_FASTCGI%g
    3603 s%@USE_LANGACTION@%$USE_LANGACTION%g
    3604 s%@USE_CORBA@%$USE_CORBA%g
    3605 s%@MICO_DIR@%$MICO_DIR%g
    3606 s%@USE_Z3950@%$USE_Z3950%g
    3607 s%@CC@%$CC%g
    3608 s%@CXX@%$CXX%g
    3609 s%@AWK@%$AWK%g
    3610 s%@YACC@%$YACC%g
    3611 s%@host@%$host%g
    3612 s%@host_alias@%$host_alias%g
    3613 s%@host_cpu@%$host_cpu%g
    3614 s%@host_vendor@%$host_vendor%g
    3615 s%@host_os@%$host_os%g
    3616 s%@target@%$target%g
    3617 s%@target_alias@%$target_alias%g
    3618 s%@target_cpu@%$target_cpu%g
    3619 s%@target_vendor@%$target_vendor%g
    3620 s%@target_os@%$target_os%g
    3621 s%@build@%$build%g
    3622 s%@build_alias@%$build_alias%g
    3623 s%@build_cpu@%$build_cpu%g
    3624 s%@build_vendor@%$build_vendor%g
    3625 s%@build_os@%$build_os%g
    3626 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    3627 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    3628 s%@INSTALL_DATA@%$INSTALL_DATA%g
    3629 s%@LN_S@%$LN_S%g
    3630 s%@SET_MAKE@%$SET_MAKE%g
    3631 s%@RANLIB@%$RANLIB%g
    3632 s%@MICO_VER@%$MICO_VER%g
    3633 s%@CPP@%$CPP%g
    3634 s%@U@%$U%g
    3635 s%@ANSI2KNR@%$ANSI2KNR%g
    3636 s%@ALLOCA@%$ALLOCA%g
    3637 s%@LIBOBJS@%$LIBOBJS%g
    3638 s%@STATIC@%$STATIC%g
    3639 s%@GDBM_LIBPATH@%$GDBM_LIBPATH%g
    3640 s%@GDBM_INCLUDE@%$GDBM_INCLUDE%g
    3641 s%@gsdlos@%$gsdlos%g
    3642 s%@MODULEDIRS@%$MODULEDIRS%g
    3643 s%@subdirs@%$subdirs%g
    3644 
    3645 CEOF
    3646 EOF
    3647 
    3648 cat >> $CONFIG_STATUS <<\EOF
    3649 
    3650 # Split the substitutions into bite-sized pieces for seds with
    3651 # small command number limits, like on Digital OSF/1 and HP-UX.
    3652 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    3653 ac_file=1 # Number of current file.
    3654 ac_beg=1 # First line for current file.
    3655 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    3656 ac_more_lines=:
    3657 ac_sed_cmds=""
    3658 while $ac_more_lines; do
    3659   if test $ac_beg -gt 1; then
    3660     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
     7967_ACEOF
     7968cat >>$CONFIG_STATUS <<\_ACEOF
     7969:t
     7970/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     7971s,@configure_input@,$configure_input,;t t
     7972s,@srcdir@,$ac_srcdir,;t t
     7973s,@abs_srcdir@,$ac_abs_srcdir,;t t
     7974s,@top_srcdir@,$ac_top_srcdir,;t t
     7975s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
     7976s,@builddir@,$ac_builddir,;t t
     7977s,@abs_builddir@,$ac_abs_builddir,;t t
     7978s,@top_builddir@,$ac_top_builddir,;t t
     7979s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
     7980s,@INSTALL@,$ac_INSTALL,;t t
     7981" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     7982  rm -f $tmp/stdin
     7983  if test x"$ac_file" != x-; then
     7984    mv $tmp/out $ac_file
    36617985  else
    3662     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
     7986    cat $tmp/out
     7987    rm -f $tmp/out
    36637988  fi
    3664   if test ! -s conftest.s$ac_file; then
    3665     ac_more_lines=false
    3666     rm -f conftest.s$ac_file
    3667   else
    3668     if test -z "$ac_sed_cmds"; then
    3669       ac_sed_cmds="sed -f conftest.s$ac_file"
    3670     else
    3671       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    3672     fi
    3673     ac_file=`expr $ac_file + 1`
    3674     ac_beg=$ac_end
    3675     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    3676   fi
     7989
    36777990done
    3678 if test -z "$ac_sed_cmds"; then
    3679   ac_sed_cmds=cat
    3680 fi
    3681 EOF
    3682 
    3683 cat >> $CONFIG_STATUS <<EOF
    3684 
    3685 CONFIG_FILES=\${CONFIG_FILES-"packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
    3686           packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
    3687       lib/Makefile Makefile $srclist $moduleDirs"}
    3688 EOF
    3689 cat >> $CONFIG_STATUS <<\EOF
    3690 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    3691   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3692   case "$ac_file" in
    3693   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3694        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3695   *) ac_file_in="${ac_file}.in" ;;
    3696   esac
    3697 
    3698   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    3699 
    3700   # Remove last slash and all that follows it.  Not all systems have dirname.
    3701   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    3702   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3703     # The file is in a subdirectory.
    3704     test ! -d "$ac_dir" && mkdir "$ac_dir"
    3705     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    3706     # A "../" for each directory in $ac_dir_suffix.
    3707     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    3708   else
    3709     ac_dir_suffix= ac_dots=
    3710   fi
    3711 
    3712   case "$ac_given_srcdir" in
    3713   .)  srcdir=.
    3714       if test -z "$ac_dots"; then top_srcdir=.
    3715       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    3716   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    3717   *) # Relative path.
    3718     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    3719     top_srcdir="$ac_dots$ac_given_srcdir" ;;
    3720   esac
    3721 
    3722   case "$ac_given_INSTALL" in
    3723   [/$]*) INSTALL="$ac_given_INSTALL" ;;
    3724   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    3725   esac
    3726 
    3727   echo creating "$ac_file"
    3728   rm -f "$ac_file"
    3729   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    3730   case "$ac_file" in
    3731   *Makefile*) ac_comsub="1i\\
    3732 # $configure_input" ;;
    3733   *) ac_comsub= ;;
    3734   esac
    3735 
    3736   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3737   sed -e "$ac_comsub
    3738 s%@configure_input@%$configure_input%g
    3739 s%@srcdir@%$srcdir%g
    3740 s%@top_srcdir@%$top_srcdir%g
    3741 s%@INSTALL@%$INSTALL%g
    3742 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    3743 fi; done
    3744 rm -f conftest.s*
     7991_ACEOF
     7992cat >>$CONFIG_STATUS <<\_ACEOF
     7993
     7994#
     7995# CONFIG_HEADER section.
     7996#
    37457997
    37467998# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    37488000#
    37498001# ac_d sets the value in "#define NAME VALUE" lines.
    3750 ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    3751 ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
    3752 ac_dC='\3'
    3753 ac_dD='%g'
    3754 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    3755 ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3756 ac_uB='\([  ]\)%\1#\2define\3'
     8002ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
     8003ac_dB='[     ].*$,\1#\2'
     8004ac_dC=' '
     8005ac_dD=',;t'
     8006# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     8007ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     8008ac_uB='$,\1#\2define\3'
    37578009ac_uC=' '
    3758 ac_uD='\4%g'
    3759 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    3760 ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    3761 ac_eB='$%\1#\2define\3'
    3762 ac_eC=' '
    3763 ac_eD='%g'
    3764 
    3765 if test "${CONFIG_HEADERS+set}" != set; then
    3766 EOF
    3767 cat >> $CONFIG_STATUS <<EOF
    3768   CONFIG_HEADERS="config.h"
    3769 EOF
    3770 cat >> $CONFIG_STATUS <<\EOF
    3771 fi
    3772 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     8010ac_uD=',;t'
     8011
     8012for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    37738013  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    3774   case "$ac_file" in
    3775   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    3776        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    3777   *) ac_file_in="${ac_file}.in" ;;
     8014  case $ac_file in
     8015  - | *:- | *:-:* ) # input from stdin
     8016    cat >$tmp/stdin
     8017    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     8018    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     8019  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     8020    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     8021  * )   ac_file_in=$ac_file.in ;;
    37788022  esac
    37798023
    3780   echo creating $ac_file
    3781 
    3782   rm -f conftest.frag conftest.in conftest.out
    3783   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    3784   cat $ac_file_inputs > conftest.in
    3785 
    3786 EOF
    3787 
    3788 # Transform confdefs.h into a sed script conftest.vals that substitutes
    3789 # the proper values into config.h.in to produce config.h.  And first:
    3790 # Protect against being on the right side of a sed subst in config.status.
    3791 # Protect against being in an unquoted here document in config.status.
    3792 rm -f conftest.vals
    3793 cat > conftest.hdr <<\EOF
    3794 s/[\\&%]/\\&/g
    3795 s%[\\$`]%\\&%g
    3796 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    3797 s%ac_d%ac_u%gp
    3798 s%ac_u%ac_e%gp
    3799 EOF
    3800 sed -n -f conftest.hdr confdefs.h > conftest.vals
    3801 rm -f conftest.hdr
     8024  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
     8025echo "$as_me: creating $ac_file" >&6;}
     8026
     8027  # First look for the input files in the build tree, otherwise in the
     8028  # src tree.
     8029  ac_file_inputs=`IFS=:
     8030    for f in $ac_file_in; do
     8031      case $f in
     8032      -) echo $tmp/stdin ;;
     8033      [\\/$]*)
     8034     # Absolute (can't be DOS-style, as IFS=:)
     8035     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     8036echo "$as_me: error: cannot find input file: $f" >&2;}
     8037   { (exit 1); exit 1; }; }
     8038     # Do quote $f, to prevent DOS paths from being IFS'd.
     8039     echo "$f";;
     8040      *) # Relative
     8041     if test -f "$f"; then
     8042       # Build tree
     8043       echo "$f"
     8044     elif test -f "$srcdir/$f"; then
     8045       # Source tree
     8046       echo "$srcdir/$f"
     8047     else
     8048       # /dev/null tree
     8049       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     8050echo "$as_me: error: cannot find input file: $f" >&2;}
     8051   { (exit 1); exit 1; }; }
     8052     fi;;
     8053      esac
     8054    done` || { (exit 1); exit 1; }
     8055  # Remove the trailing spaces.
     8056  sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
     8057
     8058_ACEOF
     8059
     8060# Transform confdefs.h into two sed scripts, `conftest.defines' and
     8061# `conftest.undefs', that substitutes the proper values into
     8062# config.h.in to produce config.h.  The first handles `#define'
     8063# templates, and the second `#undef' templates.
     8064# And first: Protect against being on the right side of a sed subst in
     8065# config.status.  Protect against being in an unquoted here document
     8066# in config.status.
     8067rm -f conftest.defines conftest.undefs
     8068# Using a here document instead of a string reduces the quoting nightmare.
     8069# Putting comments in sed scripts is not portable.
     8070#
     8071# `end' is used to avoid that the second main sed command (meant for
     8072# 0-ary CPP macros) applies to n-ary macro definitions.
     8073# See the Autoconf documentation for `clear'.
     8074cat >confdef2sed.sed <<\_ACEOF
     8075s/[\\&,]/\\&/g
     8076s,[\\$`],\\&,g
     8077t clear
     8078: clear
     8079s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
     8080t end
     8081s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     8082: end
     8083_ACEOF
     8084# If some macros were called several times there might be several times
     8085# the same #defines, which is useless.  Nevertheless, we may not want to
     8086# sort them, since we want the *last* AC-DEFINE to be honored.
     8087uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     8088sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     8089rm -f confdef2sed.sed
    38028090
    38038091# This sed command replaces #undef with comments.  This is necessary, for
    38048092# example, in the case of _POSIX_SOURCE, which is predefined and required
    38058093# on some systems where configure will not decide to define it.
    3806 cat >> conftest.vals <<\EOF
    3807 s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
    3808 EOF
    3809 
    3810 # Break up conftest.vals because some shells have a limit on
    3811 # the size of here documents, and old seds have small limits too.
    3812 
     8094cat >>conftest.undefs <<\_ACEOF
     8095s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     8096_ACEOF
     8097
     8098# Break up conftest.defines because some shells have a limit on the size
     8099# of here documents, and old seds have small limits too (100 cmds).
     8100echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     8101echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     8102echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     8103echo '  :' >>$CONFIG_STATUS
    38138104rm -f conftest.tail
    3814 while :
     8105while grep . conftest.defines >/dev/null
    38158106do
    3816   ac_lines=`grep -c . conftest.vals`
    3817   # grep -c gives empty output for an empty file on some AIX systems.
    3818   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    3819   # Write a limited-size here document to conftest.frag.
    3820   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    3821   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     8107  # Write a limited-size here document to $tmp/defines.sed.
     8108  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     8109  # Speed up: don't consider the non `#define' lines.
     8110  echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
     8111  # Work around the forget-to-reset-the-flag bug.
     8112  echo 't clr' >>$CONFIG_STATUS
     8113  echo ': clr' >>$CONFIG_STATUS
     8114  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    38228115  echo 'CEOF
    3823   sed -f conftest.frag conftest.in > conftest.out
    3824   rm -f conftest.in
    3825   mv conftest.out conftest.in
    3826 ' >> $CONFIG_STATUS
    3827   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    3828   rm -f conftest.vals
    3829   mv conftest.tail conftest.vals
     8116  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     8117  rm -f $tmp/in
     8118  mv $tmp/out $tmp/in
     8119' >>$CONFIG_STATUS
     8120  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     8121  rm -f conftest.defines
     8122  mv conftest.tail conftest.defines
    38308123done
    3831 rm -f conftest.vals
    3832 
    3833 cat >> $CONFIG_STATUS <<\EOF
    3834   rm -f conftest.frag conftest.h
    3835   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    3836   cat conftest.in >> conftest.h
    3837   rm -f conftest.in
    3838   if cmp -s $ac_file conftest.h 2>/dev/null; then
    3839     echo "$ac_file is unchanged"
    3840     rm -f conftest.h
     8124rm -f conftest.defines
     8125echo '  fi # grep' >>$CONFIG_STATUS
     8126echo >>$CONFIG_STATUS
     8127
     8128# Break up conftest.undefs because some shells have a limit on the size
     8129# of here documents, and old seds have small limits too (100 cmds).
     8130echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     8131rm -f conftest.tail
     8132while grep . conftest.undefs >/dev/null
     8133do
     8134  # Write a limited-size here document to $tmp/undefs.sed.
     8135  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     8136  # Speed up: don't consider the non `#undef'
     8137  echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     8138  # Work around the forget-to-reset-the-flag bug.
     8139  echo 't clr' >>$CONFIG_STATUS
     8140  echo ': clr' >>$CONFIG_STATUS
     8141  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     8142  echo 'CEOF
     8143  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     8144  rm -f $tmp/in
     8145  mv $tmp/out $tmp/in
     8146' >>$CONFIG_STATUS
     8147  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     8148  rm -f conftest.undefs
     8149  mv conftest.tail conftest.undefs
     8150done
     8151rm -f conftest.undefs
     8152
     8153cat >>$CONFIG_STATUS <<\_ACEOF
     8154  # Let's still pretend it is `configure' which instantiates (i.e., don't
     8155  # use $as_me), people would be surprised to read:
     8156  #    /* config.h.  Generated by config.status.  */
     8157  if test x"$ac_file" = x-; then
     8158    echo "/* Generated by configure.  */" >$tmp/config.h
    38418159  else
    3842     # Remove last slash and all that follows it.  Not all systems have dirname.
    3843       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    3844       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3845       # The file is in a subdirectory.
    3846       test ! -d "$ac_dir" && mkdir "$ac_dir"
     8160    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
     8161  fi
     8162  cat $tmp/in >>$tmp/config.h
     8163  rm -f $tmp/in
     8164  if test x"$ac_file" != x-; then
     8165    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     8166      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
     8167echo "$as_me: $ac_file is unchanged" >&6;}
     8168    else
     8169      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     8170$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     8171     X"$ac_file" : 'X\(//\)[^/]' \| \
     8172     X"$ac_file" : 'X\(//\)$' \| \
     8173     X"$ac_file" : 'X\(/\)' \| \
     8174     .     : '\(.\)' 2>/dev/null ||
     8175echo X"$ac_file" |
     8176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     8177      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     8178      /^X\(\/\/\)$/{ s//\1/; q; }
     8179      /^X\(\/\).*/{ s//\1/; q; }
     8180      s/.*/./; q'`
     8181      { if $as_mkdir_p; then
     8182    mkdir -p "$ac_dir"
     8183  else
     8184    as_dir="$ac_dir"
     8185    as_dirs=
     8186    while test ! -d "$as_dir"; do
     8187      as_dirs="$as_dir $as_dirs"
     8188      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     8189$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     8190     X"$as_dir" : 'X\(//\)[^/]' \| \
     8191     X"$as_dir" : 'X\(//\)$' \| \
     8192     X"$as_dir" : 'X\(/\)' \| \
     8193     .     : '\(.\)' 2>/dev/null ||
     8194echo X"$as_dir" |
     8195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     8196      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     8197      /^X\(\/\/\)$/{ s//\1/; q; }
     8198      /^X\(\/\).*/{ s//\1/; q; }
     8199      s/.*/./; q'`
     8200    done
     8201    test ! -n "$as_dirs" || mkdir $as_dirs
     8202  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     8203echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     8204   { (exit 1); exit 1; }; }; }
     8205
     8206      rm -f $ac_file
     8207      mv $tmp/config.h $ac_file
    38478208    fi
    3848     rm -f $ac_file
    3849     mv conftest.h $ac_file
     8209  else
     8210    cat $tmp/config.h
     8211    rm -f $tmp/config.h
    38508212  fi
    3851 fi; done
    3852 
    3853 EOF
    3854 cat >> $CONFIG_STATUS <<EOF
    3855 
    3856 EOF
    3857 cat >> $CONFIG_STATUS <<\EOF
    3858 
    3859 exit 0
    3860 EOF
     8213done
     8214_ACEOF
     8215
     8216cat >>$CONFIG_STATUS <<\_ACEOF
     8217
     8218{ (exit 0); exit 0; }
     8219_ACEOF
    38618220chmod +x $CONFIG_STATUS
    3862 rm -fr confdefs* $ac_clean_files
    3863 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    3864 
     8221ac_clean_files=$ac_clean_files_save
     8222
     8223
     8224# configure is writing to config.log, and then calls config.status.
     8225# config.status does its own redirection, appending to config.log.
     8226# Unfortunately, on DOS this fails, as config.log is still kept open
     8227# by configure, so config.status won't be able to write to it; its
     8228# output is simply discarded.  So we exec the FD to /dev/null,
     8229# effectively closing config.log, so it can be properly (re)opened and
     8230# appended to by config.status.  When coming back to configure, we
     8231# need to make the FD available again.
     8232if test "$no_create" != yes; then
     8233  ac_cs_success=:
     8234  ac_config_status_args=
     8235  test "$silent" = yes &&
     8236    ac_config_status_args="$ac_config_status_args --quiet"
     8237  exec 5>/dev/null
     8238  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
     8239  exec 5>>config.log
     8240  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     8241  # would make configure fail if this is the last instruction.
     8242  $ac_cs_success || { (exit 1); exit 1; }
     8243fi
     8244
     8245#
     8246# CONFIG_SUBDIRS section.
     8247#
    38658248if test "$no_recursion" != yes; then
    38668249
     
    38738256      continue
    38748257    fi
    3875     case "$ac_arg" in
     8258    case $ac_arg in
    38768259    -cache-file | --cache-file | --cache-fil | --cache-fi \
    38778260    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    38788261      ac_prev=cache_file ;;
    38798262    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    3880     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
     8263    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
     8264    | --c=*)
     8265      ;;
     8266    --config-cache | -C)
    38818267      ;;
    38828268    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     
    38848270    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    38858271      ;;
     8272    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
     8273      ac_prev=prefix ;;
     8274    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
     8275      ;;
    38868276    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
    38878277    esac
    38888278  done
    38898279
    3890   for ac_config_dir in packages; do
     8280  # Always prepend --prefix to ensure using the same prefix
     8281  # in subdir configurations.
     8282  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
     8283
     8284  ac_popdir=`pwd`
     8285  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
    38918286
    38928287    # Do not complain, so a configure script can configure whichever
    38938288    # parts of a large source tree are present.
    3894     if test ! -d $srcdir/$ac_config_dir; then
    3895       continue
    3896     fi
    3897 
    3898     echo configuring in $ac_config_dir
    3899 
    3900     case "$srcdir" in
    3901     .) ;;
    3902     *)
    3903       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
    3904       else
    3905         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
    3906       fi
    3907       ;;
    3908     esac
    3909 
    3910     ac_popdir=`pwd`
    3911     cd $ac_config_dir
    3912 
    3913       # A "../" for each directory in /$ac_config_dir.
    3914       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
    3915 
    3916     case "$srcdir" in
    3917     .) # No --srcdir option.  We are building in place.
    3918       ac_sub_srcdir=$srcdir ;;
    3919     /*) # Absolute path.
    3920       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
    3921     *) # Relative path.
    3922       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
    3923     esac
     8289    test -d $srcdir/$ac_dir || continue
     8290
     8291    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
     8292echo "$as_me: configuring in $ac_dir" >&6;}
     8293    { if $as_mkdir_p; then
     8294    mkdir -p "$ac_dir"
     8295  else
     8296    as_dir="$ac_dir"
     8297    as_dirs=
     8298    while test ! -d "$as_dir"; do
     8299      as_dirs="$as_dir $as_dirs"
     8300      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     8301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     8302     X"$as_dir" : 'X\(//\)[^/]' \| \
     8303     X"$as_dir" : 'X\(//\)$' \| \
     8304     X"$as_dir" : 'X\(/\)' \| \
     8305     .     : '\(.\)' 2>/dev/null ||
     8306echo X"$as_dir" |
     8307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     8308      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     8309      /^X\(\/\/\)$/{ s//\1/; q; }
     8310      /^X\(\/\).*/{ s//\1/; q; }
     8311      s/.*/./; q'`
     8312    done
     8313    test ! -n "$as_dirs" || mkdir $as_dirs
     8314  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     8315echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     8316   { (exit 1); exit 1; }; }; }
     8317
     8318    ac_builddir=.
     8319
     8320if test "$ac_dir" != .; then
     8321  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     8322  # A "../" for each directory in $ac_dir_suffix.
     8323  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     8324else
     8325  ac_dir_suffix= ac_top_builddir=
     8326fi
     8327
     8328case $srcdir in
     8329  .)  # No --srcdir option.  We are building in place.
     8330    ac_srcdir=.
     8331    if test -z "$ac_top_builddir"; then
     8332       ac_top_srcdir=.
     8333    else
     8334       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     8335    fi ;;
     8336  [\\/]* | ?:[\\/]* )  # Absolute path.
     8337    ac_srcdir=$srcdir$ac_dir_suffix;
     8338    ac_top_srcdir=$srcdir ;;
     8339  *) # Relative path.
     8340    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     8341    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     8342esac
     8343
     8344# Do not use `cd foo && pwd` to compute absolute paths, because
     8345# the directories may not exist.
     8346case `pwd` in
     8347.) ac_abs_builddir="$ac_dir";;
     8348*)
     8349  case "$ac_dir" in
     8350  .) ac_abs_builddir=`pwd`;;
     8351  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     8352  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     8353  esac;;
     8354esac
     8355case $ac_abs_builddir in
     8356.) ac_abs_top_builddir=${ac_top_builddir}.;;
     8357*)
     8358  case ${ac_top_builddir}. in
     8359  .) ac_abs_top_builddir=$ac_abs_builddir;;
     8360  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     8361  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     8362  esac;;
     8363esac
     8364case $ac_abs_builddir in
     8365.) ac_abs_srcdir=$ac_srcdir;;
     8366*)
     8367  case $ac_srcdir in
     8368  .) ac_abs_srcdir=$ac_abs_builddir;;
     8369  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     8370  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     8371  esac;;
     8372esac
     8373case $ac_abs_builddir in
     8374.) ac_abs_top_srcdir=$ac_top_srcdir;;
     8375*)
     8376  case $ac_top_srcdir in
     8377  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     8378  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     8379  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     8380  esac;;
     8381esac
     8382
     8383
     8384    cd $ac_dir
    39248385
    39258386    # Check for guested configure; otherwise get Cygnus style configure.
    3926     if test -f $ac_sub_srcdir/configure; then
    3927       ac_sub_configure=$ac_sub_srcdir/configure
    3928     elif test -f $ac_sub_srcdir/configure.in; then
     8387    if test -f $ac_srcdir/configure.gnu; then
     8388      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
     8389    elif test -f $ac_srcdir/configure; then
     8390      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
     8391    elif test -f $ac_srcdir/configure.in; then
    39298392      ac_sub_configure=$ac_configure
    39308393    else
    3931       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
     8394      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
     8395echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
    39328396      ac_sub_configure=
    39338397    fi
     
    39358399    # The recursion is here.
    39368400    if test -n "$ac_sub_configure"; then
    3937 
    39388401      # Make the cache file name correct relative to the subdirectory.
    3939       case "$cache_file" in
    3940       /*) ac_sub_cache_file=$cache_file ;;
     8402      case $cache_file in
     8403      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
    39418404      *) # Relative path.
    3942         ac_sub_cache_file="$ac_dots$cache_file" ;;
     8405    ac_sub_cache_file=$ac_top_builddir$cache_file ;;
    39438406      esac
    3944   case "$ac_given_INSTALL" in
    3945         [/$]*) INSTALL="$ac_given_INSTALL" ;;
    3946         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    3947         esac
    3948 
    3949       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
     8407
     8408      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
     8409echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
    39508410      # The eval makes quoting arguments work.
    3951       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
    3952       then :
    3953       else
    3954         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
    3955       fi
     8411      eval $ac_sub_configure $ac_sub_configure_args \
     8412       --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
     8413    { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
     8414echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
     8415   { (exit 1); exit 1; }; }
    39568416    fi
    39578417
  • trunk/gsdl/configure.in

    r8202 r8756  
    131131
    132132dnl Checks for libraries.
    133 dnl Replace `main' with a function in -lg:
    134 AC_CHECK_LIB(g, main)
    135 dnl Replace `main' with a function in -lgdbm:
    136 AC_CHECK_LIB(gdbm, main)
    137 dnl Replace `main' with a function in -lm:
    138 AC_CHECK_LIB(m, main)
    139 dnl Replace `main' with a function in -lstdc++:
    140 AC_CHECK_LIB(stdc++, main)
    141 dnl Replace `main' with a function in -lcrypt:
    142 AC_CHECK_LIB(crypt, main)
     133dnl check for -lg:
     134AC_HAVE_LIBRARY(g)
     135dnl check for -lm:
     136AC_HAVE_LIBRARY(m)
     137dnl check for -lcrypt:
     138AC_HAVE_LIBRARY(crypt)
    143139
    144140
     
    167163if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    168164  AC_MSG_RESULT(yes)
    169   LIBOBJS="$LIBOBJS gmalloc.o"
     165  AC_LIBOBJ([gmalloc])
    170166  AC_DEFINE(HAVE_VALLOC)
    171167else
     
    191187if test "$ac_cv_func_alloca" = 'no'; then
    192188dnl    support functions for alloca.c
    193   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     189  AC_LIBOBJ([xmalloc])
     190  AC_LIBOBJ([error])
    194191fi
    195192
     
    370367if test "$ac_cv_func_alloca" = 'no'; then
    371368dnl    support functions for alloca.c
    372   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     369  AC_LIBOBJ([xmalloc.o])
     370  AC_LIBOBJ([error])
    373371fi
    374372
Note: See TracChangeset for help on using the changeset viewer.