Changeset 10191


Ignore:
Timestamp:
2005-06-29T12:33:27+12:00 (19 years ago)
Author:
kjdon
Message:

changes to jni stuff for Mac OS -configure now sets JNIINC, JNISUFFIX, JNIFLAGS for use in jni/Makefile.in - Mac OS has a different extension for the shared library, also uses different linker options

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/packages/mg/configure

    r3745 r10191  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by Autoconf 2.50.
     3# Generated by GNU Autoconf 2.59.
    44#
    5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    6 # Free Software Foundation, Inc.
     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.
     8## --------------------- ##
     9## M4sh Initialization.  ##
     10## --------------------- ##
    911
    1012# Be Bourne compatible
     
    1214  emulate sh
    1315  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+"$@"}'='"$@"'
    1419elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    1520  set -o posix
    1621fi
     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
    1764
    1865# Name of the executable.
    19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
     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
    20193
    21194if expr a : '\(a\)' >/dev/null 2>&1; then
     
    43216rm -f conf$$ conf$$.exe conf$$.file
    44217
     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
    45225as_executable_p="test -f"
    46226
    47 # Support unset when possible.
    48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    49   as_unset=unset
    50 else
    51   as_unset=false
    52 fi
    53 
    54 # NLS nuisances.
    55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     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
    63233
    64234# IFS
     
    69239
    70240# CDPATH.
    71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     241$as_unset CDPATH
     242
    72243
    73244# Name of the host.
     
    82253#
    83254ac_default_prefix=/usr/local
     255ac_config_libobj_dir=.
    84256cross_compiling=no
    85257subdirs=
    86 MFLAGS= MAKEFLAGS=
     258MFLAGS=
     259MAKEFLAGS=
    87260SHELL=${CONFIG_SHELL-/bin/sh}
    88261
     
    92265: ${ac_max_here_lines=38}
    93266
    94 # Avoid depending upon Character Ranges.
    95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
    96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    97 ac_cr_09='0123456789'
    98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
    99 
    100 # Sed expression to map a string onto a valid sh and CPP variable names.
    101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
    102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
     267# Identity of this package.
     268PACKAGE_NAME=
     269PACKAGE_TARNAME=
     270PACKAGE_VERSION=
     271PACKAGE_STRING=
     272PACKAGE_BUGREPORT=
    103273
    104274ac_unique_file="src/text/mgquery.c"
     
    106276ac_includes_default="\
    107277#include <stdio.h>
    108 #include <sys/types.h>
    109 #include <sys/stat.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
    110284#if STDC_HEADERS
    111285# include <stdlib.h>
     
    121295# endif
    122296# include <string.h>
    123 #else
    124 # if HAVE_STRINGS_H
    125 #  include <strings.h>
    126 # endif
     297#endif
     298#if HAVE_STRINGS_H
     299# include <strings.h>
    127300#endif
    128301#if HAVE_INTTYPES_H
    129302# include <inttypes.h>
     303#else
     304# if HAVE_STDINT_H
     305#  include <stdint.h>
     306# endif
    130307#endif
    131308#if HAVE_UNISTD_H
    132309# include <unistd.h>
    133310#endif"
     311
     312ac_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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS'
     313ac_subst_files=''
    134314
    135315# Initialize some variables set by options.
     
    171351mandir='${prefix}/man'
    172352
    173 # Identity of this package.
    174 PACKAGE_NAME=
    175 PACKAGE_TARNAME=
    176 PACKAGE_VERSION=
    177 PACKAGE_STRING=
    178 PACKAGE_BUGREPORT=
    179 
    180353ac_prev=
    181354for ac_option
     
    223396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    224397    # Reject names that are not valid shell variable names.
    225     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    226399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    227400   { (exit 1); exit 1; }; }
     
    232405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    233406    # Reject names that are not valid shell variable names.
    234     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    235408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    236409   { (exit 1); exit 1; }; }
     
    310483
    311484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    312   | --no-cr | --no-c)
     485  | --no-cr | --no-c | -n)
    313486    no_create=yes ;;
    314487
     
    414587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    415588    # Reject names that are not valid shell variable names.
    416     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    417590      { echo "$as_me: error: invalid package name: $ac_package" >&2
    418591   { (exit 1); exit 1; }; }
     
    427600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    428601    # Reject names that are not valid shell variable names.
    429     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    430603      { echo "$as_me: error: invalid package name: $ac_package" >&2
    431604   { (exit 1); exit 1; }; }
     
    459632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    460633    # Reject names that are not valid shell variable names.
    461     expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
     634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    462635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    463636   { (exit 1); exit 1; }; }
     
    469642    # FIXME: should be removed in autoconf 3.0.
    470643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    471     expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
     644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    472645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    473646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     
    484657
    485658# Be sure to have absolute paths.
     659for ac_var in exec_prefix prefix
     660do
     661  eval ac_val=$`echo $ac_var`
     662  case $ac_val in
     663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     665   { (exit 1); exit 1; }; };;
     666  esac
     667done
     668
     669# Be sure to have absolute paths.
    486670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    487               localstatedir libdir includedir oldincludedir infodir mandir \
    488               exec_prefix prefix
     671          localstatedir libdir includedir oldincludedir infodir mandir
    489672do
    490673  eval ac_val=$`echo $ac_var`
    491674  case $ac_val in
    492675    [\\/$]* | ?:[\\/]* ) ;;
    493     NONE ) ;;
    494     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
     676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    495677   { (exit 1); exit 1; }; };;
    496678  esac
     
    499681# There might be people who depend on the old broken behavior: `$host'
    500682# used to hold the argument of --host etc.
     683# FIXME: To remove some day.
    501684build=$build_alias
    502685host=$host_alias
    503686target=$target_alias
    504687
    505 # FIXME: should be removed in autoconf 3.0.
     688# FIXME: To remove some day.
    506689if test "x$host_alias" != x; then
    507690  if test "x$build_alias" = x; then
     
    519702test "$silent" = yes && exec 6>/dev/null
    520703
     704
    521705# Find the source files, if location was not specified.
    522706if test -z "$srcdir"; then
    523707  ac_srcdir_defaulted=yes
    524708  # Try the directory containing this script, then its parent.
    525   ac_prog=$0
    526   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    527   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
     709  ac_confdir=`(dirname "$0") 2>/dev/null ||
     710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     711     X"$0" : 'X\(//\)[^/]' \| \
     712     X"$0" : 'X\(//\)$' \| \
     713     X"$0" : 'X\(/\)' \| \
     714     .     : '\(.\)' 2>/dev/null ||
     715echo X"$0" |
     716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     717      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     718      /^X\(\/\/\)$/{ s//\1/; q; }
     719      /^X\(\/\).*/{ s//\1/; q; }
     720      s/.*/./; q'`
    528721  srcdir=$ac_confdir
    529722  if test ! -r $srcdir/$ac_unique_file; then
     
    535728if test ! -r $srcdir/$ac_unique_file; then
    536729  if test "$ac_srcdir_defaulted" = yes; then
    537     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
     730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    538731   { (exit 1); exit 1; }; }
    539732  else
    540     { echo "$as_me: error: cannot find sources in $srcdir" >&2
     733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    541734   { (exit 1); exit 1; }; }
    542735  fi
    543736fi
     737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     739   { (exit 1); exit 1; }; }
    544740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    545741ac_env_build_alias_set=${build_alias+set}
     
    590786  # Omit some internal or obsolete options to make the list less imposing.
    591787  # This message is too long to be a string in the A/UX 3.1 sh.
    592   cat <<EOF
     788  cat <<_ACEOF
    593789\`configure' configures this package to adapt to many kinds of systems.
    594790
     
    611807      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    612808
    613 EOF
    614 
    615   cat <<EOF
     809_ACEOF
     810
     811  cat <<_ACEOF
    616812Installation directories:
    617813  --prefix=PREFIX         install architecture-independent files in PREFIX
    618                           [$ac_default_prefix]
     814              [$ac_default_prefix]
    619815  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    620                           [PREFIX]
     816              [PREFIX]
    621817
    622818By default, \`make install' will install all the files in
     
    640836  --infodir=DIR          info documentation [PREFIX/info]
    641837  --mandir=DIR           man documentation [PREFIX/man]
    642 EOF
    643 
    644   cat <<\EOF
     838_ACEOF
     839
     840  cat <<\_ACEOF
    645841
    646842Program names:
     
    648844  --program-suffix=SUFFIX            append SUFFIX to installed program names
    649845  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    650 EOF
     846_ACEOF
    651847fi
    652848
    653849if test -n "$ac_init_help"; then
    654850
    655   cat <<\EOF
     851  cat <<\_ACEOF
    656852
    657853Optional Packages:
     
    676872it to find libraries and programs with nonstandard names/locations.
    677873
    678 EOF
     874_ACEOF
    679875fi
    680876
     
    682878  # If there are subdirs, report their specific --help.
    683879  ac_popdir=`pwd`
    684   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    685     cd $ac_subdir
    686     # A "../" for each directory in /$ac_subdir.
    687     ac_dots=`echo $ac_subdir |
    688              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    689 
    690     case $srcdir in
    691     .) # No --srcdir option.  We are building in place.
    692       ac_sub_srcdir=$srcdir ;;
    693     [\\/]* | ?:[\\/]* ) # Absolute path.
    694       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    695     *) # Relative path.
    696       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    697     esac
    698 
     880  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     881    test -d $ac_dir || continue
     882    ac_builddir=.
     883
     884if test "$ac_dir" != .; then
     885  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     886  # A "../" for each directory in $ac_dir_suffix.
     887  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     888else
     889  ac_dir_suffix= ac_top_builddir=
     890fi
     891
     892case $srcdir in
     893  .)  # No --srcdir option.  We are building in place.
     894    ac_srcdir=.
     895    if test -z "$ac_top_builddir"; then
     896       ac_top_srcdir=.
     897    else
     898       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     899    fi ;;
     900  [\\/]* | ?:[\\/]* )  # Absolute path.
     901    ac_srcdir=$srcdir$ac_dir_suffix;
     902    ac_top_srcdir=$srcdir ;;
     903  *) # Relative path.
     904    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     905    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     906esac
     907
     908# Do not use `cd foo && pwd` to compute absolute paths, because
     909# the directories may not exist.
     910case `pwd` in
     911.) ac_abs_builddir="$ac_dir";;
     912*)
     913  case "$ac_dir" in
     914  .) ac_abs_builddir=`pwd`;;
     915  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     916  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     917  esac;;
     918esac
     919case $ac_abs_builddir in
     920.) ac_abs_top_builddir=${ac_top_builddir}.;;
     921*)
     922  case ${ac_top_builddir}. in
     923  .) ac_abs_top_builddir=$ac_abs_builddir;;
     924  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     925  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     926  esac;;
     927esac
     928case $ac_abs_builddir in
     929.) ac_abs_srcdir=$ac_srcdir;;
     930*)
     931  case $ac_srcdir in
     932  .) ac_abs_srcdir=$ac_abs_builddir;;
     933  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     934  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     935  esac;;
     936esac
     937case $ac_abs_builddir in
     938.) ac_abs_top_srcdir=$ac_top_srcdir;;
     939*)
     940  case $ac_top_srcdir in
     941  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     942  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     943  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     944  esac;;
     945esac
     946
     947    cd $ac_dir
    699948    # Check for guested configure; otherwise get Cygnus style configure.
    700     if test -f $ac_sub_srcdir/configure.gnu; then
     949    if test -f $ac_srcdir/configure.gnu; then
    701950      echo
    702       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    703     elif test -f $ac_sub_srcdir/configure; then
     951      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     952    elif test -f $ac_srcdir/configure; then
    704953      echo
    705       $SHELL $ac_sub_srcdir/configure  --help=recursive
    706     elif test -f $ac_sub_srcdir/configure.ac ||
    707            test -f $ac_sub_srcdir/configure.in; then
     954      $SHELL $ac_srcdir/configure  --help=recursive
     955    elif test -f $ac_srcdir/configure.ac ||
     956       test -f $ac_srcdir/configure.in; then
    708957      echo
    709958      $ac_configure --help
    710959    else
    711       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
     960      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    712961    fi
    713962    cd $ac_popdir
     
    717966test -n "$ac_init_help" && exit 0
    718967if $ac_init_version; then
    719   cat <<\EOF
    720 
    721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    722 Free Software Foundation, Inc.
     968  cat <<\_ACEOF
     969
     970Copyright (C) 2003 Free Software Foundation, Inc.
    723971This configure script is free software; the Free Software Foundation
    724972gives unlimited permission to copy, distribute and modify it.
    725 EOF
     973_ACEOF
    726974  exit 0
    727975fi
    728976exec 5>config.log
    729 cat >&5 <<EOF
     977cat >&5 <<_ACEOF
    730978This file contains any messages produced by compilers while
    731979running configure, to aid debugging if configure makes a mistake.
    732980
    733981It was created by $as_me, which was
    734 generated by GNU Autoconf 2.50.  Invocation command line was
     982generated by GNU Autoconf 2.59.  Invocation command line was
    735983
    736984  $ $0 $@
    737985
    738 EOF
     986_ACEOF
    739987{
    740988cat <<_ASUNAME
    741 ## ---------- ##
    742 ## Platform.  ##
    743 ## ---------- ##
     989## --------- ##
     990## Platform. ##
     991## --------- ##
    744992
    745993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     
    7601008/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    7611009
    762 PATH = $PATH
    763 
    7641010_ASUNAME
     1011
     1012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1013for as_dir in $PATH
     1014do
     1015  IFS=$as_save_IFS
     1016  test -z "$as_dir" && as_dir=.
     1017  echo "PATH: $as_dir"
     1018done
     1019
    7651020} >&5
    7661021
    767 cat >&5 <<EOF
    768 ## ------------ ##
    769 ## Core tests.  ##
    770 ## ------------ ##
    771 
    772 EOF
     1022cat >&5 <<_ACEOF
     1023
     1024
     1025## ----------- ##
     1026## Core tests. ##
     1027## ----------- ##
     1028
     1029_ACEOF
     1030
    7731031
    7741032# Keep a trace of the command line.
    7751033# Strip out --no-create and --no-recursion so they do not pile up.
     1034# Strip out --silent because we don't want to record it for future runs.
    7761035# Also quote any args containing shell meta-characters.
     1036# Make two passes to allow for proper duplicate-argument suppression.
    7771037ac_configure_args=
     1038ac_configure_args0=
     1039ac_configure_args1=
    7781040ac_sep=
    779 for ac_arg
     1041ac_must_keep_next=false
     1042for ac_pass in 1 2
    7801043do
    781   case $ac_arg in
    782   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    783   | --no-cr | --no-c) ;;
    784   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    785   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    786   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    787     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    788     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    789     ac_sep=" " ;;
    790   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    791      ac_sep=" " ;;
    792   esac
    793   # Get rid of the leading space.
     1044  for ac_arg
     1045  do
     1046    case $ac_arg in
     1047    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1049    | -silent | --silent | --silen | --sile | --sil)
     1050      continue ;;
     1051    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1052      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1053    esac
     1054    case $ac_pass in
     1055    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1056    2)
     1057      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1058      if test $ac_must_keep_next = true; then
     1059    ac_must_keep_next=false # Got value, back to normal.
     1060      else
     1061    case $ac_arg in
     1062      *=* | --config-cache | -C | -disable-* | --disable-* \
     1063      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1064      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1065      | -with-* | --with-* | -without-* | --without-* | --x)
     1066        case "$ac_configure_args0 " in
     1067          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1068        esac
     1069        ;;
     1070      -* ) ac_must_keep_next=true ;;
     1071    esac
     1072      fi
     1073      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1074      # Get rid of the leading space.
     1075      ac_sep=" "
     1076      ;;
     1077    esac
     1078  done
    7941079done
     1080$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1081$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
    7951082
    7961083# When interrupted or exit'd, cleanup temporary files, and complete
    7971084# config.log.  We remove comments because anyway the quotes in there
    7981085# would cause problems or look ugly.
     1086# WARNING: Be sure not to use single quotes in there, as some shells,
     1087# such as our DU 5.0 friend, will then `close' the trap.
    7991088trap 'exit_status=$?
    8001089  # Save into config.log some information that might help in debugging.
    801   echo >&5
    802   echo "## ----------------- ##" >&5
    803   echo "## Cache variables.  ##" >&5
    804   echo "## ----------------- ##" >&5
    805   echo >&5
    806   # The following way of writing the cache mishandles newlines in values,
     1090  {
     1091    echo
     1092
     1093    cat <<\_ASBOX
     1094## ---------------- ##
     1095## Cache variables. ##
     1096## ---------------- ##
     1097_ASBOX
     1098    echo
     1099    # The following way of writing the cache mishandles newlines in values,
    8071100{
    8081101  (set) 2>&1 |
     
    8101103    *ac_space=\ *)
    8111104      sed -n \
    812         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    813           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1105    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1106      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    8141107      ;;
    8151108    *)
    8161109      sed -n \
    817         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1110    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    8181111      ;;
    8191112    esac;
    820 } >&5
    821   sed "/^$/d" confdefs.h >conftest.log
    822   if test -s conftest.log; then
    823     echo >&5
    824     echo "## ------------ ##" >&5
    825     echo "## confdefs.h.  ##" >&5
    826     echo "## ------------ ##" >&5
    827     echo >&5
    828     cat conftest.log >&5
    829   fi
    830   (echo; echo) >&5
    831   test "$ac_signal" != 0 &&
    832     echo "$as_me: caught signal $ac_signal" >&5
    833   echo "$as_me: exit $exit_status" >&5
    834   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
     1113}
     1114    echo
     1115
     1116    cat <<\_ASBOX
     1117## ----------------- ##
     1118## Output variables. ##
     1119## ----------------- ##
     1120_ASBOX
     1121    echo
     1122    for ac_var in $ac_subst_vars
     1123    do
     1124      eval ac_val=$`echo $ac_var`
     1125      echo "$ac_var='"'"'$ac_val'"'"'"
     1126    done | sort
     1127    echo
     1128
     1129    if test -n "$ac_subst_files"; then
     1130      cat <<\_ASBOX
     1131## ------------- ##
     1132## Output files. ##
     1133## ------------- ##
     1134_ASBOX
     1135      echo
     1136      for ac_var in $ac_subst_files
     1137      do
     1138    eval ac_val=$`echo $ac_var`
     1139    echo "$ac_var='"'"'$ac_val'"'"'"
     1140      done | sort
     1141      echo
     1142    fi
     1143
     1144    if test -s confdefs.h; then
     1145      cat <<\_ASBOX
     1146## ----------- ##
     1147## confdefs.h. ##
     1148## ----------- ##
     1149_ASBOX
     1150      echo
     1151      sed "/^$/d" confdefs.h | sort
     1152      echo
     1153    fi
     1154    test "$ac_signal" != 0 &&
     1155      echo "$as_me: caught signal $ac_signal"
     1156    echo "$as_me: exit $exit_status"
     1157  } >&5
     1158  rm -f core *.core &&
     1159  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    8351160    exit $exit_status
    8361161     ' 0
    8371162for ac_signal in 1 2 13 15; do
    838   trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
     1163  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    8391164done
    8401165ac_signal=0
     
    8441169# AIX cpp loses on an empty file, so make sure it contains at least a newline.
    8451170echo >confdefs.h
     1171
     1172# Predefined preprocessor variables.
     1173
     1174cat >>confdefs.h <<_ACEOF
     1175#define PACKAGE_NAME "$PACKAGE_NAME"
     1176_ACEOF
     1177
     1178
     1179cat >>confdefs.h <<_ACEOF
     1180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1181_ACEOF
     1182
     1183
     1184cat >>confdefs.h <<_ACEOF
     1185#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1186_ACEOF
     1187
     1188
     1189cat >>confdefs.h <<_ACEOF
     1190#define PACKAGE_STRING "$PACKAGE_STRING"
     1191_ACEOF
     1192
     1193
     1194cat >>confdefs.h <<_ACEOF
     1195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1196_ACEOF
     1197
    8461198
    8471199# Let the site file select an alternate cache file if it wants to.
     
    8561208for ac_site_file in $CONFIG_SITE; do
    8571209  if test -r "$ac_site_file"; then
    858     { echo "$as_me:858: loading site script $ac_site_file" >&5
     1210    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    8591211echo "$as_me: loading site script $ac_site_file" >&6;}
    860     cat "$ac_site_file" >&5
     1212    sed 's/^/| /' "$ac_site_file" >&5
    8611213    . "$ac_site_file"
    8621214  fi
     
    8671219  # files actually), so we avoid doing that.
    8681220  if test -f "$cache_file"; then
    869     { echo "$as_me:869: loading cache $cache_file" >&5
     1221    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    8701222echo "$as_me: loading cache $cache_file" >&6;}
    8711223    case $cache_file in
     
    8751227  fi
    8761228else
    877   { echo "$as_me:877: creating cache $cache_file" >&5
     1229  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    8781230echo "$as_me: creating cache $cache_file" >&6;}
    8791231  >$cache_file
     
    8821234# Check that the precious variables saved in the cache have kept the same
    8831235# value.
    884 ac_suggest_removing_cache=false
     1236ac_cache_corrupted=false
    8851237for ac_var in `(set) 2>&1 |
    886                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1238           sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    8871239  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    8881240  eval ac_new_set=\$ac_env_${ac_var}_set
     
    8911243  case $ac_old_set,$ac_new_set in
    8921244    set,)
    893       { echo "$as_me:893: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    894 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    895       ac_suggest_removing_cache=: ;;
     1245      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1246echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1247      ac_cache_corrupted=: ;;
    8961248    ,set)
    897       { echo "$as_me:897: WARNING: \`$ac_var' was not set in the previous run" >&5
    898 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
    899       ac_suggest_removing_cache=: ;;
     1249      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1250echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1251      ac_cache_corrupted=: ;;
    9001252    ,);;
    9011253    *)
    9021254      if test "x$ac_old_val" != "x$ac_new_val"; then
    903         { echo "$as_me:903: WARNING: \`$ac_var' has changed since the previous run:" >&5
    904 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
    905         { echo "$as_me:905: WARNING:   former value:  $ac_old_val" >&5
    906 echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
    907         { echo "$as_me:907: WARNING:   current value: $ac_new_val" >&5
    908 echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
    909         ac_suggest_removing_cache=:
     1255    { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1256echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1257    { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1258echo "$as_me:   former value:  $ac_old_val" >&2;}
     1259    { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1260echo "$as_me:   current value: $ac_new_val" >&2;}
     1261    ac_cache_corrupted=:
    9101262      fi;;
    9111263  esac
     1264  # Pass precious variables to config.status.
     1265  if test "$ac_new_set" = set; then
     1266    case $ac_new_val in
     1267    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1268      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1269    *) ac_arg=$ac_var=$ac_new_val ;;
     1270    esac
     1271    case " $ac_configure_args " in
     1272      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1273      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1274    esac
     1275  fi
    9121276done
    913 if $ac_suggest_removing_cache; then
    914   { echo "$as_me:914: WARNING: changes in the environment can compromise the build" >&5
    915 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
    916   { echo "$as_me:916: WARNING: consider removing $cache_file and starting over" >&5
    917 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
     1277if $ac_cache_corrupted; then
     1278  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1279echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1280  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1281echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1282   { (exit 1); exit 1; }; }
    9181283fi
    9191284
     
    9241289ac_compiler_gnu=$ac_cv_c_compiler_gnu
    9251290
    926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    927   *c*,-n*) ECHO_N= ECHO_C='
    928 ' ECHO_T='  ' ;;
    929   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    930   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
    931 esac
    932 echo "#! $SHELL" >conftest.sh
    933 echo  "exit 0"   >>conftest.sh
    934 chmod +x conftest.sh
    935 if { (echo "$as_me:935: PATH=\".;.\"; conftest.sh") >&5
    936   (PATH=".;."; conftest.sh) 2>&5
    937   ac_status=$?
    938   echo "$as_me:938: \$? = $ac_status" >&5
    939   (exit $ac_status); }; then
    940   ac_path_separator=';'
    941 else
    942   ac_path_separator=:
    943 fi
    944 PATH_SEPARATOR="$ac_path_separator"
    945 rm -f conftest.sh
    946 
    947 ac_config_headers="$ac_config_headers config.h"
    948 
    949 if test "$program_transform_name" = s,x,x,; then
    950   program_transform_name=
    951 else
    952   # Double any \ or $.  echo might interpret backslashes.
    953   cat <<\EOF >conftest.sed
    954 s,\\,\\\\,g; s,\$,$$,g
    955 EOF
    956   program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    957   rm -f conftest.sed
    958 fi
     1291
     1292
     1293
     1294
     1295
     1296
     1297
     1298
     1299
     1300
     1301
     1302
     1303
     1304
     1305
     1306
     1307
     1308
     1309          ac_config_headers="$ac_config_headers config.h"
     1310
    9591311test "$program_prefix" != NONE &&
    960   program_transform_name="s,^,${program_prefix},;$program_transform_name"
     1312  program_transform_name="s,^,$program_prefix,;$program_transform_name"
    9611313# Use a double $ so make ignores it.
    9621314test "$program_suffix" != NONE &&
    963   program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
    964 
    965 # sed with no file args requires a program.
    966 test -z "$program_transform_name" && program_transform_name="s,x,x,"
     1315  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
     1316# Double any \ or $.  echo might interpret backslashes.
     1317# By default was `s,x,x', remove it if useless.
     1318cat <<\_ACEOF >conftest.sed
     1319s/[\\$]/&&/g;s/;s,x,x,$//
     1320_ACEOF
     1321program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     1322rm conftest.sed
     1323
    9671324
    9681325PACKAGE=mg
    9691326VERSION=1.2
    9701327
    971 cat >>confdefs.h <<EOF
     1328LDFLAGS=
     1329
     1330cat >>confdefs.h <<_ACEOF
    9721331#define PACKAGE "$PACKAGE"
    973 EOF
    974 
    975 cat >>confdefs.h <<EOF
     1332_ACEOF
     1333
     1334cat >>confdefs.h <<_ACEOF
    9761335#define VERSION "$VERSION"
    977 EOF
     1336_ACEOF
     1337
     1338
     1339
    9781340
    9791341ac_ext=cc
     
    9831345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    9841346if test -n "$ac_tool_prefix"; then
    985   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1347  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    9861348  do
    9871349    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    9881350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    989 echo "$as_me:989: checking for $ac_word" >&5
     1351echo "$as_me:$LINENO: checking for $ac_word" >&5
    9901352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    9911353if test "${ac_cv_prog_CXX+set}" = set; then
     
    9951357  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    9961358else
    997   ac_save_IFS=$IFS; IFS=$ac_path_separator
    998 ac_dummy="$PATH"
    999 for ac_dir in $ac_dummy; do
    1000   IFS=$ac_save_IFS
    1001   test -z "$ac_dir" && ac_dir=.
    1002   $as_executable_p "$ac_dir/$ac_word" || continue
    1003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    1004 echo "$as_me:1004: found $ac_dir/$ac_word" >&5
    1005 break
     1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1360for as_dir in $PATH
     1361do
     1362  IFS=$as_save_IFS
     1363  test -z "$as_dir" && as_dir=.
     1364  for ac_exec_ext in '' $ac_executable_extensions; do
     1365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1366    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1368    break 2
     1369  fi
     1370done
    10061371done
    10071372
     
    10101375CXX=$ac_cv_prog_CXX
    10111376if test -n "$CXX"; then
    1012   echo "$as_me:1012: result: $CXX" >&5
     1377  echo "$as_me:$LINENO: result: $CXX" >&5
    10131378echo "${ECHO_T}$CXX" >&6
    10141379else
    1015   echo "$as_me:1015: result: no" >&5
     1380  echo "$as_me:$LINENO: result: no" >&5
    10161381echo "${ECHO_T}no" >&6
    10171382fi
     
    10221387if test -z "$CXX"; then
    10231388  ac_ct_CXX=$CXX
    1024   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1389  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    10251390do
    10261391  # Extract the first word of "$ac_prog", so it can be a program name with args.
    10271392set dummy $ac_prog; ac_word=$2
    1028 echo "$as_me:1028: checking for $ac_word" >&5
     1393echo "$as_me:$LINENO: checking for $ac_word" >&5
    10291394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    10301395if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     
    10341399  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    10351400else
    1036   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1037 ac_dummy="$PATH"
    1038 for ac_dir in $ac_dummy; do
    1039   IFS=$ac_save_IFS
    1040   test -z "$ac_dir" && ac_dir=.
    1041   $as_executable_p "$ac_dir/$ac_word" || continue
    1042 ac_cv_prog_ac_ct_CXX="$ac_prog"
    1043 echo "$as_me:1043: found $ac_dir/$ac_word" >&5
    1044 break
     1401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1402for as_dir in $PATH
     1403do
     1404  IFS=$as_save_IFS
     1405  test -z "$as_dir" && as_dir=.
     1406  for ac_exec_ext in '' $ac_executable_extensions; do
     1407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1408    ac_cv_prog_ac_ct_CXX="$ac_prog"
     1409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1410    break 2
     1411  fi
     1412done
    10451413done
    10461414
     
    10491417ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    10501418if test -n "$ac_ct_CXX"; then
    1051   echo "$as_me:1051: result: $ac_ct_CXX" >&5
     1419  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    10521420echo "${ECHO_T}$ac_ct_CXX" >&6
    10531421else
    1054   echo "$as_me:1054: result: no" >&5
     1422  echo "$as_me:$LINENO: result: no" >&5
    10551423echo "${ECHO_T}no" >&6
    10561424fi
     
    10631431fi
    10641432
     1433
     1434# Provide some information about the compiler.
     1435echo "$as_me:$LINENO:" \
     1436     "checking for C++ compiler version" >&5
     1437ac_compiler=`set X $ac_compile; echo $2`
     1438{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1439  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1440  ac_status=$?
     1441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1442  (exit $ac_status); }
     1443{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1444  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1445  ac_status=$?
     1446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1447  (exit $ac_status); }
     1448{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1449  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1450  ac_status=$?
     1451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1452  (exit $ac_status); }
     1453
    10651454cat >conftest.$ac_ext <<_ACEOF
    1066 #line 1066 "configure"
    1067 #include "confdefs.h"
     1455/* confdefs.h.  */
     1456_ACEOF
     1457cat confdefs.h >>conftest.$ac_ext
     1458cat >>conftest.$ac_ext <<_ACEOF
     1459/* end confdefs.h.  */
    10681460
    10691461int
     
    10761468_ACEOF
    10771469ac_clean_files_save=$ac_clean_files
    1078 ac_clean_files="$ac_clean_files a.out a.exe"
     1470ac_clean_files="$ac_clean_files a.out a.exe b.out"
    10791471# Try to create an executable without -o first, disregard a.out.
    1080 # It will help us diagnose broken compiler, and finding out an intuition
     1472# It will help us diagnose broken compilers, and finding out an intuition
    10811473# of exeext.
    1082 echo "$as_me:1082: checking for C++ compiler default output" >&5
    1083 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
     1474echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
     1475echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
    10841476ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1085 if { (eval echo "$as_me:1085: \"$ac_link_default\"") >&5
     1477if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    10861478  (eval $ac_link_default) 2>&5
    10871479  ac_status=$?
    1088   echo "$as_me:1088: \$? = $ac_status" >&5
     1480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10891481  (exit $ac_status); }; then
    1090   for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
     1482  # Find the output, starting from the most likely.  This scheme is
     1483# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1484# resort.
     1485
     1486# Be careful to initialize this variable, since it used to be cached.
     1487# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1488ac_cv_exeext=
     1489# b.out is created by i960 compilers.
     1490for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1491do
     1492  test -f "$ac_file" || continue
    10911493  case $ac_file in
    1092     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    1093     a.out ) # We found the default executable, but exeext='' is most
    1094             # certainly right.
    1095             break;;
    1096     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1097           export ac_cv_exeext
    1098           break;;
    1099     * ) break;;
     1494    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1495    ;;
     1496    conftest.$ac_ext )
     1497    # This is the source file.
     1498    ;;
     1499    [ab].out )
     1500    # We found the default executable, but exeext='' is most
     1501    # certainly right.
     1502    break;;
     1503    *.* )
     1504    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1505    # FIXME: I believe we export ac_cv_exeext for Libtool,
     1506    # but it would be cool to find out if it's true.  Does anybody
     1507    # maintain Libtool? --akim.
     1508    export ac_cv_exeext
     1509    break;;
     1510    * )
     1511    break;;
    11001512  esac
    11011513done
    11021514else
    11031515  echo "$as_me: failed program was:" >&5
    1104 cat conftest.$ac_ext >&5
    1105 { { echo "$as_me:1105: error: C++ compiler cannot create executables" >&5
    1106 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
     1516sed 's/^/| /' conftest.$ac_ext >&5
     1517
     1518{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
     1519See \`config.log' for more details." >&5
     1520echo "$as_me: error: C++ compiler cannot create executables
     1521See \`config.log' for more details." >&2;}
    11071522   { (exit 77); exit 77; }; }
    11081523fi
    11091524
    11101525ac_exeext=$ac_cv_exeext
    1111 echo "$as_me:1111: result: $ac_file" >&5
     1526echo "$as_me:$LINENO: result: $ac_file" >&5
    11121527echo "${ECHO_T}$ac_file" >&6
    11131528
    11141529# Check the compiler produces executables we can run.  If not, either
    11151530# the compiler is broken, or we cross compile.
    1116 echo "$as_me:1116: checking whether the C++ compiler works" >&5
     1531echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
    11171532echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
    11181533# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     
    11201535if test "$cross_compiling" != yes; then
    11211536  if { ac_try='./$ac_file'
    1122   { (eval echo "$as_me:1122: \"$ac_try\"") >&5
    1123   (eval $ac_try) 2>&5
    1124   ac_status=$?
    1125   echo "$as_me:1125: \$? = $ac_status" >&5
     1537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1538  (eval $ac_try) 2>&5
     1539  ac_status=$?
     1540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11261541  (exit $ac_status); }; }; then
    11271542    cross_compiling=no
     
    11301545    cross_compiling=yes
    11311546    else
    1132     { { echo "$as_me:1132: error: cannot run C++ compiled programs.
    1133 If you meant to cross compile, use \`--host'." >&5
     1547    { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
     1548If you meant to cross compile, use \`--host'.
     1549See \`config.log' for more details." >&5
    11341550echo "$as_me: error: cannot run C++ compiled programs.
    1135 If you meant to cross compile, use \`--host'." >&2;}
     1551If you meant to cross compile, use \`--host'.
     1552See \`config.log' for more details." >&2;}
    11361553   { (exit 1); exit 1; }; }
    11371554    fi
    11381555  fi
    11391556fi
    1140 echo "$as_me:1140: result: yes" >&5
     1557echo "$as_me:$LINENO: result: yes" >&5
    11411558echo "${ECHO_T}yes" >&6
    11421559
    1143 rm -f a.out a.exe conftest$ac_cv_exeext
     1560rm -f a.out a.exe conftest$ac_cv_exeext b.out
    11441561ac_clean_files=$ac_clean_files_save
    11451562# Check the compiler produces executables we can run.  If not, either
    11461563# the compiler is broken, or we cross compile.
    1147 echo "$as_me:1147: checking whether we are cross compiling" >&5
     1564echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    11481565echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1149 echo "$as_me:1149: result: $cross_compiling" >&5
     1566echo "$as_me:$LINENO: result: $cross_compiling" >&5
    11501567echo "${ECHO_T}$cross_compiling" >&6
    11511568
    1152 echo "$as_me:1152: checking for executable suffix" >&5
    1153 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
    1154 if { (eval echo "$as_me:1154: \"$ac_link\"") >&5
     1569echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1570echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    11551572  (eval $ac_link) 2>&5
    11561573  ac_status=$?
    1157   echo "$as_me:1157: \$? = $ac_status" >&5
     1574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11581575  (exit $ac_status); }; then
    11591576  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     
    11611578# work properly (i.e., refer to `conftest.exe'), while it won't with
    11621579# `rm'.
    1163 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     1580for ac_file in conftest.exe conftest conftest.*; do
     1581  test -f "$ac_file" || continue
    11641582  case $ac_file in
    1165     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1583    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    11661584    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1167           export ac_cv_exeext
    1168           break;;
     1585      export ac_cv_exeext
     1586      break;;
    11691587    * ) break;;
    11701588  esac
    11711589done
    11721590else
    1173   { { echo "$as_me:1173: error: cannot compute EXEEXT: cannot compile and link" >&5
    1174 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
     1591  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1592See \`config.log' for more details." >&5
     1593echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1594See \`config.log' for more details." >&2;}
    11751595   { (exit 1); exit 1; }; }
    11761596fi
    11771597
    11781598rm -f conftest$ac_cv_exeext
    1179 echo "$as_me:1179: result: $ac_cv_exeext" >&5
     1599echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    11801600echo "${ECHO_T}$ac_cv_exeext" >&6
    11811601
     
    11831603EXEEXT=$ac_cv_exeext
    11841604ac_exeext=$EXEEXT
    1185 echo "$as_me:1185: checking for object suffix" >&5
    1186 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
     1605echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1606echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    11871607if test "${ac_cv_objext+set}" = set; then
    11881608  echo $ECHO_N "(cached) $ECHO_C" >&6
    11891609else
    11901610  cat >conftest.$ac_ext <<_ACEOF
    1191 #line 1191 "configure"
    1192 #include "confdefs.h"
     1611/* confdefs.h.  */
     1612_ACEOF
     1613cat confdefs.h >>conftest.$ac_ext
     1614cat >>conftest.$ac_ext <<_ACEOF
     1615/* end confdefs.h.  */
    11931616
    11941617int
     
    12011624_ACEOF
    12021625rm -f conftest.o conftest.obj
    1203 if { (eval echo "$as_me:1203: \"$ac_compile\"") >&5
     1626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    12041627  (eval $ac_compile) 2>&5
    12051628  ac_status=$?
    1206   echo "$as_me:1206: \$? = $ac_status" >&5
     1629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12071630  (exit $ac_status); }; then
    12081631  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    12091632  case $ac_file in
    1210     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1633    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    12111634    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    12121635       break;;
     
    12151638else
    12161639  echo "$as_me: failed program was:" >&5
    1217 cat conftest.$ac_ext >&5
    1218 { { echo "$as_me:1218: error: cannot compute OBJEXT: cannot compile" >&5
    1219 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
     1640sed 's/^/| /' conftest.$ac_ext >&5
     1641
     1642{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1643See \`config.log' for more details." >&5
     1644echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1645See \`config.log' for more details." >&2;}
    12201646   { (exit 1); exit 1; }; }
    12211647fi
     
    12231649rm -f conftest.$ac_cv_objext conftest.$ac_ext
    12241650fi
    1225 echo "$as_me:1225: result: $ac_cv_objext" >&5
     1651echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    12261652echo "${ECHO_T}$ac_cv_objext" >&6
    12271653OBJEXT=$ac_cv_objext
    12281654ac_objext=$OBJEXT
    1229 echo "$as_me:1229: checking whether we are using the GNU C++ compiler" >&5
     1655echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    12301656echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    12311657if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     
    12331659else
    12341660  cat >conftest.$ac_ext <<_ACEOF
    1235 #line 1235 "configure"
    1236 #include "confdefs.h"
     1661/* confdefs.h.  */
     1662_ACEOF
     1663cat confdefs.h >>conftest.$ac_ext
     1664cat >>conftest.$ac_ext <<_ACEOF
     1665/* end confdefs.h.  */
    12371666
    12381667int
     
    12481677_ACEOF
    12491678rm -f conftest.$ac_objext
    1250 if { (eval echo "$as_me:1250: \"$ac_compile\"") >&5
    1251   (eval $ac_compile) 2>&5
    1252   ac_status=$?
    1253   echo "$as_me:1253: \$? = $ac_status" >&5
     1679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1680  (eval $ac_compile) 2>conftest.er1
     1681  ac_status=$?
     1682  grep -v '^ *+' conftest.er1 >conftest.err
     1683  rm -f conftest.er1
     1684  cat conftest.err >&5
     1685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12541686  (exit $ac_status); } &&
    1255          { ac_try='test -s conftest.$ac_objext'
    1256   { (eval echo "$as_me:1256: \"$ac_try\"") >&5
    1257   (eval $ac_try) 2>&5
    1258   ac_status=$?
    1259   echo "$as_me:1259: \$? = $ac_status" >&5
     1687     { ac_try='test -z "$ac_cxx_werror_flag"
     1688             || test ! -s conftest.err'
     1689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1690  (eval $ac_try) 2>&5
     1691  ac_status=$?
     1692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1693  (exit $ac_status); }; } &&
     1694     { ac_try='test -s conftest.$ac_objext'
     1695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1696  (eval $ac_try) 2>&5
     1697  ac_status=$?
     1698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12601699  (exit $ac_status); }; }; then
    12611700  ac_compiler_gnu=yes
    12621701else
    12631702  echo "$as_me: failed program was:" >&5
    1264 cat conftest.$ac_ext >&5
     1703sed 's/^/| /' conftest.$ac_ext >&5
     1704
    12651705ac_compiler_gnu=no
    12661706fi
    1267 rm -f conftest.$ac_objext conftest.$ac_ext
     1707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    12681708ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    12691709
    12701710fi
    1271 echo "$as_me:1271: result: $ac_cv_cxx_compiler_gnu" >&5
     1711echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    12721712echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    12731713GXX=`test $ac_compiler_gnu = yes && echo yes`
     
    12751715ac_save_CXXFLAGS=$CXXFLAGS
    12761716CXXFLAGS="-g"
    1277 echo "$as_me:1277: checking whether $CXX accepts -g" >&5
     1717echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    12781718echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    12791719if test "${ac_cv_prog_cxx_g+set}" = set; then
     
    12811721else
    12821722  cat >conftest.$ac_ext <<_ACEOF
    1283 #line 1283 "configure"
    1284 #include "confdefs.h"
     1723/* confdefs.h.  */
     1724_ACEOF
     1725cat confdefs.h >>conftest.$ac_ext
     1726cat >>conftest.$ac_ext <<_ACEOF
     1727/* end confdefs.h.  */
    12851728
    12861729int
     
    12931736_ACEOF
    12941737rm -f conftest.$ac_objext
    1295 if { (eval echo "$as_me:1295: \"$ac_compile\"") >&5
    1296   (eval $ac_compile) 2>&5
    1297   ac_status=$?
    1298   echo "$as_me:1298: \$? = $ac_status" >&5
     1738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1739  (eval $ac_compile) 2>conftest.er1
     1740  ac_status=$?
     1741  grep -v '^ *+' conftest.er1 >conftest.err
     1742  rm -f conftest.er1
     1743  cat conftest.err >&5
     1744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12991745  (exit $ac_status); } &&
    1300          { ac_try='test -s conftest.$ac_objext'
    1301   { (eval echo "$as_me:1301: \"$ac_try\"") >&5
    1302   (eval $ac_try) 2>&5
    1303   ac_status=$?
    1304   echo "$as_me:1304: \$? = $ac_status" >&5
     1746     { ac_try='test -z "$ac_cxx_werror_flag"
     1747             || test ! -s conftest.err'
     1748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1749  (eval $ac_try) 2>&5
     1750  ac_status=$?
     1751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1752  (exit $ac_status); }; } &&
     1753     { ac_try='test -s conftest.$ac_objext'
     1754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1755  (eval $ac_try) 2>&5
     1756  ac_status=$?
     1757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13051758  (exit $ac_status); }; }; then
    13061759  ac_cv_prog_cxx_g=yes
    13071760else
    13081761  echo "$as_me: failed program was:" >&5
    1309 cat conftest.$ac_ext >&5
     1762sed 's/^/| /' conftest.$ac_ext >&5
     1763
    13101764ac_cv_prog_cxx_g=no
    13111765fi
    1312 rm -f conftest.$ac_objext conftest.$ac_ext
    1313 fi
    1314 echo "$as_me:1314: result: $ac_cv_prog_cxx_g" >&5
     1766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1767fi
     1768echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    13151769echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    13161770if test "$ac_test_CXXFLAGS" = set; then
     
    13301784fi
    13311785for ac_declaration in \
    1332    ''\
    1333    '#include <stdlib.h>' \
     1786   '' \
    13341787   'extern "C" void std::exit (int) throw (); using std::exit;' \
    13351788   'extern "C" void std::exit (int); using std::exit;' \
     
    13391792do
    13401793  cat >conftest.$ac_ext <<_ACEOF
    1341 #line 1341 "configure"
    1342 #include "confdefs.h"
     1794/* confdefs.h.  */
     1795_ACEOF
     1796cat confdefs.h >>conftest.$ac_ext
     1797cat >>conftest.$ac_ext <<_ACEOF
     1798/* end confdefs.h.  */
     1799$ac_declaration
    13431800#include <stdlib.h>
     1801int
     1802main ()
     1803{
     1804exit (42);
     1805  ;
     1806  return 0;
     1807}
     1808_ACEOF
     1809rm -f conftest.$ac_objext
     1810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1811  (eval $ac_compile) 2>conftest.er1
     1812  ac_status=$?
     1813  grep -v '^ *+' conftest.er1 >conftest.err
     1814  rm -f conftest.er1
     1815  cat conftest.err >&5
     1816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1817  (exit $ac_status); } &&
     1818     { ac_try='test -z "$ac_cxx_werror_flag"
     1819             || test ! -s conftest.err'
     1820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1821  (eval $ac_try) 2>&5
     1822  ac_status=$?
     1823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1824  (exit $ac_status); }; } &&
     1825     { ac_try='test -s conftest.$ac_objext'
     1826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1827  (eval $ac_try) 2>&5
     1828  ac_status=$?
     1829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1830  (exit $ac_status); }; }; then
     1831  :
     1832else
     1833  echo "$as_me: failed program was:" >&5
     1834sed 's/^/| /' conftest.$ac_ext >&5
     1835
     1836continue
     1837fi
     1838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1839  cat >conftest.$ac_ext <<_ACEOF
     1840/* confdefs.h.  */
     1841_ACEOF
     1842cat confdefs.h >>conftest.$ac_ext
     1843cat >>conftest.$ac_ext <<_ACEOF
     1844/* end confdefs.h.  */
    13441845$ac_declaration
    13451846int
     
    13521853_ACEOF
    13531854rm -f conftest.$ac_objext
    1354 if { (eval echo "$as_me:1354: \"$ac_compile\"") >&5
    1355   (eval $ac_compile) 2>&5
    1356   ac_status=$?
    1357   echo "$as_me:1357: \$? = $ac_status" >&5
     1855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1856  (eval $ac_compile) 2>conftest.er1
     1857  ac_status=$?
     1858  grep -v '^ *+' conftest.er1 >conftest.err
     1859  rm -f conftest.er1
     1860  cat conftest.err >&5
     1861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13581862  (exit $ac_status); } &&
    1359          { ac_try='test -s conftest.$ac_objext'
    1360   { (eval echo "$as_me:1360: \"$ac_try\"") >&5
    1361   (eval $ac_try) 2>&5
    1362   ac_status=$?
    1363   echo "$as_me:1363: \$? = $ac_status" >&5
    1364   (exit $ac_status); }; }; then
    1365   :
    1366 else
    1367   echo "$as_me: failed program was:" >&5
    1368 cat conftest.$ac_ext >&5
    1369 continue
    1370 fi
    1371 rm -f conftest.$ac_objext conftest.$ac_ext
    1372   cat >conftest.$ac_ext <<_ACEOF
    1373 #line 1373 "configure"
    1374 #include "confdefs.h"
    1375 $ac_declaration
    1376 int
    1377 main ()
    1378 {
    1379 exit (42);
    1380   ;
    1381   return 0;
    1382 }
    1383 _ACEOF
    1384 rm -f conftest.$ac_objext
    1385 if { (eval echo "$as_me:1385: \"$ac_compile\"") >&5
    1386   (eval $ac_compile) 2>&5
    1387   ac_status=$?
    1388   echo "$as_me:1388: \$? = $ac_status" >&5
    1389   (exit $ac_status); } &&
    1390          { ac_try='test -s conftest.$ac_objext'
    1391   { (eval echo "$as_me:1391: \"$ac_try\"") >&5
    1392   (eval $ac_try) 2>&5
    1393   ac_status=$?
    1394   echo "$as_me:1394: \$? = $ac_status" >&5
     1863     { ac_try='test -z "$ac_cxx_werror_flag"
     1864             || test ! -s conftest.err'
     1865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1866  (eval $ac_try) 2>&5
     1867  ac_status=$?
     1868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1869  (exit $ac_status); }; } &&
     1870     { ac_try='test -s conftest.$ac_objext'
     1871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1872  (eval $ac_try) 2>&5
     1873  ac_status=$?
     1874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13951875  (exit $ac_status); }; }; then
    13961876  break
    13971877else
    13981878  echo "$as_me: failed program was:" >&5
    1399 cat conftest.$ac_ext >&5
    1400 fi
    1401 rm -f conftest.$ac_objext conftest.$ac_ext
     1879sed 's/^/| /' conftest.$ac_ext >&5
     1880
     1881fi
     1882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    14021883done
    1403 echo '#ifdef __cplusplus' >>confdefs.h
    1404 echo $ac_declaration      >>confdefs.h
    1405 echo '#endif'             >>confdefs.h
     1884rm -f conftest*
     1885if test -n "$ac_declaration"; then
     1886  echo '#ifdef __cplusplus' >>confdefs.h
     1887  echo $ac_declaration      >>confdefs.h
     1888  echo '#endif'             >>confdefs.h
     1889fi
    14061890
    14071891ac_ext=c
     
    14111895ac_compiler_gnu=$ac_cv_c_compiler_gnu
    14121896
    1413 for ac_prog in mawk gawk nawk awk
     1897for ac_prog in gawk mawk nawk awk
    14141898do
    14151899  # Extract the first word of "$ac_prog", so it can be a program name with args.
    14161900set dummy $ac_prog; ac_word=$2
    1417 echo "$as_me:1417: checking for $ac_word" >&5
     1901echo "$as_me:$LINENO: checking for $ac_word" >&5
    14181902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    14191903if test "${ac_cv_prog_AWK+set}" = set; then
     
    14231907  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    14241908else
    1425   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1426 ac_dummy="$PATH"
    1427 for ac_dir in $ac_dummy; do
    1428   IFS=$ac_save_IFS
    1429   test -z "$ac_dir" && ac_dir=.
    1430   $as_executable_p "$ac_dir/$ac_word" || continue
    1431 ac_cv_prog_AWK="$ac_prog"
    1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5
    1433 break
     1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1910for as_dir in $PATH
     1911do
     1912  IFS=$as_save_IFS
     1913  test -z "$as_dir" && as_dir=.
     1914  for ac_exec_ext in '' $ac_executable_extensions; do
     1915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1916    ac_cv_prog_AWK="$ac_prog"
     1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1918    break 2
     1919  fi
     1920done
    14341921done
    14351922
     
    14381925AWK=$ac_cv_prog_AWK
    14391926if test -n "$AWK"; then
    1440   echo "$as_me:1440: result: $AWK" >&5
     1927  echo "$as_me:$LINENO: result: $AWK" >&5
    14411928echo "${ECHO_T}$AWK" >&6
    14421929else
    1443   echo "$as_me:1443: result: no" >&5
     1930  echo "$as_me:$LINENO: result: no" >&5
    14441931echo "${ECHO_T}no" >&6
    14451932fi
     
    14521939  # Extract the first word of "$ac_prog", so it can be a program name with args.
    14531940set dummy $ac_prog; ac_word=$2
    1454 echo "$as_me:1454: checking for $ac_word" >&5
     1941echo "$as_me:$LINENO: checking for $ac_word" >&5
    14551942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    14561943if test "${ac_cv_prog_YACC+set}" = set; then
     
    14601947  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    14611948else
    1462   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1463 ac_dummy="$PATH"
    1464 for ac_dir in $ac_dummy; do
    1465   IFS=$ac_save_IFS
    1466   test -z "$ac_dir" && ac_dir=.
    1467   $as_executable_p "$ac_dir/$ac_word" || continue
    1468 ac_cv_prog_YACC="$ac_prog"
    1469 echo "$as_me:1469: found $ac_dir/$ac_word" >&5
    1470 break
     1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1950for as_dir in $PATH
     1951do
     1952  IFS=$as_save_IFS
     1953  test -z "$as_dir" && as_dir=.
     1954  for ac_exec_ext in '' $ac_executable_extensions; do
     1955  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1956    ac_cv_prog_YACC="$ac_prog"
     1957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1958    break 2
     1959  fi
     1960done
    14711961done
    14721962
     
    14751965YACC=$ac_cv_prog_YACC
    14761966if test -n "$YACC"; then
    1477   echo "$as_me:1477: result: $YACC" >&5
     1967  echo "$as_me:$LINENO: result: $YACC" >&5
    14781968echo "${ECHO_T}$YACC" >&6
    14791969else
    1480   echo "$as_me:1480: result: no" >&5
     1970  echo "$as_me:$LINENO: result: no" >&5
    14811971echo "${ECHO_T}no" >&6
    14821972fi
     
    14941984  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    14951985set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1496 echo "$as_me:1496: checking for $ac_word" >&5
     1986echo "$as_me:$LINENO: checking for $ac_word" >&5
    14971987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    14981988if test "${ac_cv_prog_CC+set}" = set; then
     
    15021992  ac_cv_prog_CC="$CC" # Let the user override the test.
    15031993else
    1504   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1505 ac_dummy="$PATH"
    1506 for ac_dir in $ac_dummy; do
    1507   IFS=$ac_save_IFS
    1508   test -z "$ac_dir" && ac_dir=.
    1509   $as_executable_p "$ac_dir/$ac_word" || continue
    1510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1511 echo "$as_me:1511: found $ac_dir/$ac_word" >&5
    1512 break
     1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1995for as_dir in $PATH
     1996do
     1997  IFS=$as_save_IFS
     1998  test -z "$as_dir" && as_dir=.
     1999  for ac_exec_ext in '' $ac_executable_extensions; do
     2000  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2001    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2003    break 2
     2004  fi
     2005done
    15132006done
    15142007
     
    15172010CC=$ac_cv_prog_CC
    15182011if test -n "$CC"; then
    1519   echo "$as_me:1519: result: $CC" >&5
     2012  echo "$as_me:$LINENO: result: $CC" >&5
    15202013echo "${ECHO_T}$CC" >&6
    15212014else
    1522   echo "$as_me:1522: result: no" >&5
     2015  echo "$as_me:$LINENO: result: no" >&5
    15232016echo "${ECHO_T}no" >&6
    15242017fi
     
    15292022  # Extract the first word of "gcc", so it can be a program name with args.
    15302023set dummy gcc; ac_word=$2
    1531 echo "$as_me:1531: checking for $ac_word" >&5
     2024echo "$as_me:$LINENO: checking for $ac_word" >&5
    15322025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15332026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    15372030  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    15382031else
    1539   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1540 ac_dummy="$PATH"
    1541 for ac_dir in $ac_dummy; do
    1542   IFS=$ac_save_IFS
    1543   test -z "$ac_dir" && ac_dir=.
    1544   $as_executable_p "$ac_dir/$ac_word" || continue
    1545 ac_cv_prog_ac_ct_CC="gcc"
    1546 echo "$as_me:1546: found $ac_dir/$ac_word" >&5
    1547 break
     2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2033for as_dir in $PATH
     2034do
     2035  IFS=$as_save_IFS
     2036  test -z "$as_dir" && as_dir=.
     2037  for ac_exec_ext in '' $ac_executable_extensions; do
     2038  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2039    ac_cv_prog_ac_ct_CC="gcc"
     2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2041    break 2
     2042  fi
     2043done
    15482044done
    15492045
     
    15522048ac_ct_CC=$ac_cv_prog_ac_ct_CC
    15532049if test -n "$ac_ct_CC"; then
    1554   echo "$as_me:1554: result: $ac_ct_CC" >&5
     2050  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    15552051echo "${ECHO_T}$ac_ct_CC" >&6
    15562052else
    1557   echo "$as_me:1557: result: no" >&5
     2053  echo "$as_me:$LINENO: result: no" >&5
    15582054echo "${ECHO_T}no" >&6
    15592055fi
     
    15682064  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    15692065set dummy ${ac_tool_prefix}cc; ac_word=$2
    1570 echo "$as_me:1570: checking for $ac_word" >&5
     2066echo "$as_me:$LINENO: checking for $ac_word" >&5
    15712067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15722068if test "${ac_cv_prog_CC+set}" = set; then
     
    15762072  ac_cv_prog_CC="$CC" # Let the user override the test.
    15772073else
    1578   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1579 ac_dummy="$PATH"
    1580 for ac_dir in $ac_dummy; do
    1581   IFS=$ac_save_IFS
    1582   test -z "$ac_dir" && ac_dir=.
    1583   $as_executable_p "$ac_dir/$ac_word" || continue
    1584 ac_cv_prog_CC="${ac_tool_prefix}cc"
    1585 echo "$as_me:1585: found $ac_dir/$ac_word" >&5
    1586 break
     2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2075for as_dir in $PATH
     2076do
     2077  IFS=$as_save_IFS
     2078  test -z "$as_dir" && as_dir=.
     2079  for ac_exec_ext in '' $ac_executable_extensions; do
     2080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2081    ac_cv_prog_CC="${ac_tool_prefix}cc"
     2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2083    break 2
     2084  fi
     2085done
    15872086done
    15882087
     
    15912090CC=$ac_cv_prog_CC
    15922091if test -n "$CC"; then
    1593   echo "$as_me:1593: result: $CC" >&5
     2092  echo "$as_me:$LINENO: result: $CC" >&5
    15942093echo "${ECHO_T}$CC" >&6
    15952094else
    1596   echo "$as_me:1596: result: no" >&5
     2095  echo "$as_me:$LINENO: result: no" >&5
    15972096echo "${ECHO_T}no" >&6
    15982097fi
     
    16032102  # Extract the first word of "cc", so it can be a program name with args.
    16042103set dummy cc; ac_word=$2
    1605 echo "$as_me:1605: checking for $ac_word" >&5
     2104echo "$as_me:$LINENO: checking for $ac_word" >&5
    16062105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    16072106if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    16112110  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    16122111else
    1613   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1614 ac_dummy="$PATH"
    1615 for ac_dir in $ac_dummy; do
    1616   IFS=$ac_save_IFS
    1617   test -z "$ac_dir" && ac_dir=.
    1618   $as_executable_p "$ac_dir/$ac_word" || continue
    1619 ac_cv_prog_ac_ct_CC="cc"
    1620 echo "$as_me:1620: found $ac_dir/$ac_word" >&5
    1621 break
     2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2113for as_dir in $PATH
     2114do
     2115  IFS=$as_save_IFS
     2116  test -z "$as_dir" && as_dir=.
     2117  for ac_exec_ext in '' $ac_executable_extensions; do
     2118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2119    ac_cv_prog_ac_ct_CC="cc"
     2120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2121    break 2
     2122  fi
     2123done
    16222124done
    16232125
     
    16262128ac_ct_CC=$ac_cv_prog_ac_ct_CC
    16272129if test -n "$ac_ct_CC"; then
    1628   echo "$as_me:1628: result: $ac_ct_CC" >&5
     2130  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    16292131echo "${ECHO_T}$ac_ct_CC" >&6
    16302132else
    1631   echo "$as_me:1631: result: no" >&5
     2133  echo "$as_me:$LINENO: result: no" >&5
    16322134echo "${ECHO_T}no" >&6
    16332135fi
     
    16422144  # Extract the first word of "cc", so it can be a program name with args.
    16432145set dummy cc; ac_word=$2
    1644 echo "$as_me:1644: checking for $ac_word" >&5
     2146echo "$as_me:$LINENO: checking for $ac_word" >&5
    16452147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    16462148if test "${ac_cv_prog_CC+set}" = set; then
     
    16512153else
    16522154  ac_prog_rejected=no
    1653   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1654 ac_dummy="$PATH"
    1655 for ac_dir in $ac_dummy; do
    1656   IFS=$ac_save_IFS
    1657   test -z "$ac_dir" && ac_dir=.
    1658   $as_executable_p "$ac_dir/$ac_word" || continue
    1659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    1660   ac_prog_rejected=yes
    1661   continue
    1662 fi
    1663 ac_cv_prog_CC="cc"
    1664 echo "$as_me:1664: found $ac_dir/$ac_word" >&5
    1665 break
     2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2156for as_dir in $PATH
     2157do
     2158  IFS=$as_save_IFS
     2159  test -z "$as_dir" && as_dir=.
     2160  for ac_exec_ext in '' $ac_executable_extensions; do
     2161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2162    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     2163       ac_prog_rejected=yes
     2164       continue
     2165     fi
     2166    ac_cv_prog_CC="cc"
     2167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2168    break 2
     2169  fi
     2170done
    16662171done
    16672172
     
    16752180    # first if we set CC to just the basename; use the full file name.
    16762181    shift
    1677     set dummy "$ac_dir/$ac_word" ${1+"$@"}
    1678     shift
    1679     ac_cv_prog_CC="$@"
     2182    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    16802183  fi
    16812184fi
     
    16842187CC=$ac_cv_prog_CC
    16852188if test -n "$CC"; then
    1686   echo "$as_me:1686: result: $CC" >&5
     2189  echo "$as_me:$LINENO: result: $CC" >&5
    16872190echo "${ECHO_T}$CC" >&6
    16882191else
    1689   echo "$as_me:1689: result: no" >&5
     2192  echo "$as_me:$LINENO: result: no" >&5
    16902193echo "${ECHO_T}no" >&6
    16912194fi
     
    16982201    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    16992202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1700 echo "$as_me:1700: checking for $ac_word" >&5
     2203echo "$as_me:$LINENO: checking for $ac_word" >&5
    17012204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    17022205if test "${ac_cv_prog_CC+set}" = set; then
     
    17062209  ac_cv_prog_CC="$CC" # Let the user override the test.
    17072210else
    1708   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1709 ac_dummy="$PATH"
    1710 for ac_dir in $ac_dummy; do
    1711   IFS=$ac_save_IFS
    1712   test -z "$ac_dir" && ac_dir=.
    1713   $as_executable_p "$ac_dir/$ac_word" || continue
    1714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1715 echo "$as_me:1715: found $ac_dir/$ac_word" >&5
    1716 break
     2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2212for as_dir in $PATH
     2213do
     2214  IFS=$as_save_IFS
     2215  test -z "$as_dir" && as_dir=.
     2216  for ac_exec_ext in '' $ac_executable_extensions; do
     2217  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2218    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     2219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2220    break 2
     2221  fi
     2222done
    17172223done
    17182224
     
    17212227CC=$ac_cv_prog_CC
    17222228if test -n "$CC"; then
    1723   echo "$as_me:1723: result: $CC" >&5
     2229  echo "$as_me:$LINENO: result: $CC" >&5
    17242230echo "${ECHO_T}$CC" >&6
    17252231else
    1726   echo "$as_me:1726: result: no" >&5
     2232  echo "$as_me:$LINENO: result: no" >&5
    17272233echo "${ECHO_T}no" >&6
    17282234fi
     
    17372243  # Extract the first word of "$ac_prog", so it can be a program name with args.
    17382244set dummy $ac_prog; ac_word=$2
    1739 echo "$as_me:1739: checking for $ac_word" >&5
     2245echo "$as_me:$LINENO: checking for $ac_word" >&5
    17402246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    17412247if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    17452251  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    17462252else
    1747   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1748 ac_dummy="$PATH"
    1749 for ac_dir in $ac_dummy; do
    1750   IFS=$ac_save_IFS
    1751   test -z "$ac_dir" && ac_dir=.
    1752   $as_executable_p "$ac_dir/$ac_word" || continue
    1753 ac_cv_prog_ac_ct_CC="$ac_prog"
    1754 echo "$as_me:1754: found $ac_dir/$ac_word" >&5
    1755 break
     2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2254for as_dir in $PATH
     2255do
     2256  IFS=$as_save_IFS
     2257  test -z "$as_dir" && as_dir=.
     2258  for ac_exec_ext in '' $ac_executable_extensions; do
     2259  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2260    ac_cv_prog_ac_ct_CC="$ac_prog"
     2261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2262    break 2
     2263  fi
     2264done
    17562265done
    17572266
     
    17602269ac_ct_CC=$ac_cv_prog_ac_ct_CC
    17612270if test -n "$ac_ct_CC"; then
    1762   echo "$as_me:1762: result: $ac_ct_CC" >&5
     2271  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    17632272echo "${ECHO_T}$ac_ct_CC" >&6
    17642273else
    1765   echo "$as_me:1765: result: no" >&5
     2274  echo "$as_me:$LINENO: result: no" >&5
    17662275echo "${ECHO_T}no" >&6
    17672276fi
     
    17752284fi
    17762285
    1777 test -z "$CC" && { { echo "$as_me:1777: error: no acceptable cc found in \$PATH" >&5
    1778 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
     2286
     2287test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2288See \`config.log' for more details." >&5
     2289echo "$as_me: error: no acceptable C compiler found in \$PATH
     2290See \`config.log' for more details." >&2;}
    17792291   { (exit 1); exit 1; }; }
    17802292
    1781 echo "$as_me:1781: checking whether we are using the GNU C compiler" >&5
     2293# Provide some information about the compiler.
     2294echo "$as_me:$LINENO:" \
     2295     "checking for C compiler version" >&5
     2296ac_compiler=`set X $ac_compile; echo $2`
     2297{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2298  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2299  ac_status=$?
     2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2301  (exit $ac_status); }
     2302{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2303  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2304  ac_status=$?
     2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2306  (exit $ac_status); }
     2307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2308  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2309  ac_status=$?
     2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2311  (exit $ac_status); }
     2312
     2313echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    17822314echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    17832315if test "${ac_cv_c_compiler_gnu+set}" = set; then
     
    17852317else
    17862318  cat >conftest.$ac_ext <<_ACEOF
    1787 #line 1787 "configure"
    1788 #include "confdefs.h"
     2319/* confdefs.h.  */
     2320_ACEOF
     2321cat confdefs.h >>conftest.$ac_ext
     2322cat >>conftest.$ac_ext <<_ACEOF
     2323/* end confdefs.h.  */
    17892324
    17902325int
     
    18002335_ACEOF
    18012336rm -f conftest.$ac_objext
    1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5
    1803   (eval $ac_compile) 2>&5
    1804   ac_status=$?
    1805   echo "$as_me:1805: \$? = $ac_status" >&5
     2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2338  (eval $ac_compile) 2>conftest.er1
     2339  ac_status=$?
     2340  grep -v '^ *+' conftest.er1 >conftest.err
     2341  rm -f conftest.er1
     2342  cat conftest.err >&5
     2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18062344  (exit $ac_status); } &&
    1807          { ac_try='test -s conftest.$ac_objext'
    1808   { (eval echo "$as_me:1808: \"$ac_try\"") >&5
    1809   (eval $ac_try) 2>&5
    1810   ac_status=$?
    1811   echo "$as_me:1811: \$? = $ac_status" >&5
     2345     { ac_try='test -z "$ac_c_werror_flag"
     2346             || test ! -s conftest.err'
     2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2348  (eval $ac_try) 2>&5
     2349  ac_status=$?
     2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2351  (exit $ac_status); }; } &&
     2352     { ac_try='test -s conftest.$ac_objext'
     2353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2354  (eval $ac_try) 2>&5
     2355  ac_status=$?
     2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18122357  (exit $ac_status); }; }; then
    18132358  ac_compiler_gnu=yes
    18142359else
    18152360  echo "$as_me: failed program was:" >&5
    1816 cat conftest.$ac_ext >&5
     2361sed 's/^/| /' conftest.$ac_ext >&5
     2362
    18172363ac_compiler_gnu=no
    18182364fi
    1819 rm -f conftest.$ac_objext conftest.$ac_ext
     2365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    18202366ac_cv_c_compiler_gnu=$ac_compiler_gnu
    18212367
    18222368fi
    1823 echo "$as_me:1823: result: $ac_cv_c_compiler_gnu" >&5
     2369echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    18242370echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    18252371GCC=`test $ac_compiler_gnu = yes && echo yes`
     
    18272373ac_save_CFLAGS=$CFLAGS
    18282374CFLAGS="-g"
    1829 echo "$as_me:1829: checking whether $CC accepts -g" >&5
     2375echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    18302376echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    18312377if test "${ac_cv_prog_cc_g+set}" = set; then
     
    18332379else
    18342380  cat >conftest.$ac_ext <<_ACEOF
    1835 #line 1835 "configure"
    1836 #include "confdefs.h"
     2381/* confdefs.h.  */
     2382_ACEOF
     2383cat confdefs.h >>conftest.$ac_ext
     2384cat >>conftest.$ac_ext <<_ACEOF
     2385/* end confdefs.h.  */
    18372386
    18382387int
     
    18452394_ACEOF
    18462395rm -f conftest.$ac_objext
    1847 if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5
    1848   (eval $ac_compile) 2>&5
    1849   ac_status=$?
    1850   echo "$as_me:1850: \$? = $ac_status" >&5
     2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2397  (eval $ac_compile) 2>conftest.er1
     2398  ac_status=$?
     2399  grep -v '^ *+' conftest.er1 >conftest.err
     2400  rm -f conftest.er1
     2401  cat conftest.err >&5
     2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18512403  (exit $ac_status); } &&
    1852          { ac_try='test -s conftest.$ac_objext'
    1853   { (eval echo "$as_me:1853: \"$ac_try\"") >&5
    1854   (eval $ac_try) 2>&5
    1855   ac_status=$?
    1856   echo "$as_me:1856: \$? = $ac_status" >&5
     2404     { ac_try='test -z "$ac_c_werror_flag"
     2405             || test ! -s conftest.err'
     2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2407  (eval $ac_try) 2>&5
     2408  ac_status=$?
     2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2410  (exit $ac_status); }; } &&
     2411     { ac_try='test -s conftest.$ac_objext'
     2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2413  (eval $ac_try) 2>&5
     2414  ac_status=$?
     2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18572416  (exit $ac_status); }; }; then
    18582417  ac_cv_prog_cc_g=yes
    18592418else
    18602419  echo "$as_me: failed program was:" >&5
    1861 cat conftest.$ac_ext >&5
     2420sed 's/^/| /' conftest.$ac_ext >&5
     2421
    18622422ac_cv_prog_cc_g=no
    18632423fi
    1864 rm -f conftest.$ac_objext conftest.$ac_ext
    1865 fi
    1866 echo "$as_me:1866: result: $ac_cv_prog_cc_g" >&5
     2424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2425fi
     2426echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    18672427echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    18682428if test "$ac_test_CFLAGS" = set; then
     
    18812441  fi
    18822442fi
    1883 # Some people use a C++ compiler to compile C.  Since we use `exit',
    1884 # in C++ we need to declare it.  In case someone uses the same compiler
    1885 # for both compiling C and C++ we need to have the C++ compiler decide
    1886 # the declaration of exit, since it's the most demanding environment.
    1887 cat >conftest.$ac_ext <<_ACEOF
    1888 #ifndef __cplusplus
    1889   choke me
    1890 #endif
    1891 _ACEOF
    1892 rm -f conftest.$ac_objext
    1893 if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5
    1894   (eval $ac_compile) 2>&5
    1895   ac_status=$?
    1896   echo "$as_me:1896: \$? = $ac_status" >&5
    1897   (exit $ac_status); } &&
    1898          { ac_try='test -s conftest.$ac_objext'
    1899   { (eval echo "$as_me:1899: \"$ac_try\"") >&5
    1900   (eval $ac_try) 2>&5
    1901   ac_status=$?
    1902   echo "$as_me:1902: \$? = $ac_status" >&5
    1903   (exit $ac_status); }; }; then
    1904   for ac_declaration in \
    1905    ''\
    1906    '#include <stdlib.h>' \
    1907    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1908    'extern "C" void std::exit (int); using std::exit;' \
    1909    'extern "C" void exit (int) throw ();' \
    1910    'extern "C" void exit (int);' \
    1911    'void exit (int);'
    1912 do
    1913   cat >conftest.$ac_ext <<_ACEOF
    1914 #line 1914 "configure"
    1915 #include "confdefs.h"
    1916 #include <stdlib.h>
    1917 $ac_declaration
    1918 int
    1919 main ()
    1920 {
    1921 exit (42);
    1922   ;
    1923   return 0;
    1924 }
    1925 _ACEOF
    1926 rm -f conftest.$ac_objext
    1927 if { (eval echo "$as_me:1927: \"$ac_compile\"") >&5
    1928   (eval $ac_compile) 2>&5
    1929   ac_status=$?
    1930   echo "$as_me:1930: \$? = $ac_status" >&5
    1931   (exit $ac_status); } &&
    1932          { ac_try='test -s conftest.$ac_objext'
    1933   { (eval echo "$as_me:1933: \"$ac_try\"") >&5
    1934   (eval $ac_try) 2>&5
    1935   ac_status=$?
    1936   echo "$as_me:1936: \$? = $ac_status" >&5
    1937   (exit $ac_status); }; }; then
    1938   :
    1939 else
    1940   echo "$as_me: failed program was:" >&5
    1941 cat conftest.$ac_ext >&5
    1942 continue
    1943 fi
    1944 rm -f conftest.$ac_objext conftest.$ac_ext
    1945   cat >conftest.$ac_ext <<_ACEOF
    1946 #line 1946 "configure"
    1947 #include "confdefs.h"
    1948 $ac_declaration
    1949 int
    1950 main ()
    1951 {
    1952 exit (42);
    1953   ;
    1954   return 0;
    1955 }
    1956 _ACEOF
    1957 rm -f conftest.$ac_objext
    1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
    1959   (eval $ac_compile) 2>&5
    1960   ac_status=$?
    1961   echo "$as_me:1961: \$? = $ac_status" >&5
    1962   (exit $ac_status); } &&
    1963          { ac_try='test -s conftest.$ac_objext'
    1964   { (eval echo "$as_me:1964: \"$ac_try\"") >&5
    1965   (eval $ac_try) 2>&5
    1966   ac_status=$?
    1967   echo "$as_me:1967: \$? = $ac_status" >&5
    1968   (exit $ac_status); }; }; then
    1969   break
    1970 else
    1971   echo "$as_me: failed program was:" >&5
    1972 cat conftest.$ac_ext >&5
    1973 fi
    1974 rm -f conftest.$ac_objext conftest.$ac_ext
    1975 done
    1976 echo '#ifdef __cplusplus' >>confdefs.h
    1977 echo $ac_declaration      >>confdefs.h
    1978 echo '#endif'             >>confdefs.h
    1979 
    1980 else
    1981   echo "$as_me: failed program was:" >&5
    1982 cat conftest.$ac_ext >&5
    1983 fi
    1984 rm -f conftest.$ac_objext conftest.$ac_ext
    1985 ac_ext=c
    1986 ac_cpp='$CPP $CPPFLAGS'
    1987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1990 
    1991 ac_aux_dir=
    1992 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    1993   if test -f $ac_dir/install-sh; then
    1994     ac_aux_dir=$ac_dir
    1995     ac_install_sh="$ac_aux_dir/install-sh -c"
    1996     break
    1997   elif test -f $ac_dir/install.sh; then
    1998     ac_aux_dir=$ac_dir
    1999     ac_install_sh="$ac_aux_dir/install.sh -c"
    2000     break
    2001   elif test -f $ac_dir/shtool; then
    2002     ac_aux_dir=$ac_dir
    2003     ac_install_sh="$ac_aux_dir/shtool install -c"
    2004     break
    2005   fi
    2006 done
    2007 if test -z "$ac_aux_dir"; then
    2008   { { echo "$as_me:2008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2009 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2010    { (exit 1); exit 1; }; }
    2011 fi
    2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2014 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    2015 
    2016 # Find a good install program.  We prefer a C program (faster),
    2017 # so one script is as good as another.  But avoid the broken or
    2018 # incompatible versions:
    2019 # SysV /etc/install, /usr/sbin/install
    2020 # SunOS /usr/etc/install
    2021 # IRIX /sbin/install
    2022 # AIX /bin/install
    2023 # AmigaOS /C/install, which installs bootblocks on floppy discs
    2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    2025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    2026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    2027 # ./install, which can be erroneously created by make from ./install.sh.
    2028 echo "$as_me:2028: checking for a BSD compatible install" >&5
    2029 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    2030 if test -z "$INSTALL"; then
    2031 if test "${ac_cv_path_install+set}" = set; then
    2032   echo $ECHO_N "(cached) $ECHO_C" >&6
    2033 else
    2034     ac_save_IFS=$IFS; IFS=$ac_path_separator
    2035   for ac_dir in $PATH; do
    2036     IFS=$ac_save_IFS
    2037     # Account for people who put trailing slashes in PATH elements.
    2038     case $ac_dir/ in
    2039     / | ./ | .// | /cC/* \
    2040     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    2041     | /usr/ucb/* ) ;;
    2042     *)
    2043       # OSF1 and SCO ODT 3.0 have their own names for install.
    2044       # Don't use installbsd from OSF since it installs stuff as root
    2045       # by default.
    2046       for ac_prog in ginstall scoinst install; do
    2047         if $as_executable_p "$ac_dir/$ac_prog"; then
    2048       if test $ac_prog = install &&
    2049             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    2050         # AIX install.  It has an incompatible calling convention.
    2051         :
    2052       elif test $ac_prog = install &&
    2053         grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    2054         # program-specific install script used by HP pwplus--don't use.
    2055         :
    2056       else
    2057         ac_cv_path_install="$ac_dir/$ac_prog -c"
    2058         break 2
    2059       fi
    2060     fi
    2061       done
    2062       ;;
    2063     esac
    2064   done
    2065 
    2066 fi
    2067   if test "${ac_cv_path_install+set}" = set; then
    2068     INSTALL=$ac_cv_path_install
    2069   else
    2070     # As a last resort, use the slow shell script.  We don't cache a
    2071     # path for INSTALL within a source directory, because that will
    2072     # break other packages using the cache if that directory is
    2073     # removed, or if the path is relative.
    2074     INSTALL=$ac_install_sh
    2075   fi
    2076 fi
    2077 echo "$as_me:2077: result: $INSTALL" >&5
    2078 echo "${ECHO_T}$INSTALL" >&6
    2079 
    2080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    2081 # It thinks the first close brace ends the variable substitution.
    2082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    2083 
    2084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    2085 
    2086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    2087 
    2088 echo "$as_me:2088: checking whether ln -s works" >&5
    2089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    2090 LN_S=$as_ln_s
    2091 if test "$LN_S" = "ln -s"; then
    2092   echo "$as_me:2092: result: yes" >&5
    2093 echo "${ECHO_T}yes" >&6
    2094 else
    2095   echo "$as_me:2095: result: no, using $LN_S" >&5
    2096 echo "${ECHO_T}no, using $LN_S" >&6
    2097 fi
    2098 
    2099 echo "$as_me:2099: checking whether ${MAKE-make} sets \${MAKE}" >&5
    2100 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
    2101 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    2102 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2103   echo $ECHO_N "(cached) $ECHO_C" >&6
    2104 else
    2105   cat >conftest.make <<\EOF
    2106 all:
    2107     @echo 'ac_maketemp="${MAKE}"'
    2108 EOF
    2109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2110 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    2111 if test -n "$ac_maketemp"; then
    2112   eval ac_cv_prog_make_${ac_make}_set=yes
    2113 else
    2114   eval ac_cv_prog_make_${ac_make}_set=no
    2115 fi
    2116 rm -f conftest.make
    2117 fi
    2118 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2119   echo "$as_me:2119: result: yes" >&5
    2120 echo "${ECHO_T}yes" >&6
    2121   SET_MAKE=
    2122 else
    2123   echo "$as_me:2123: result: no" >&5
    2124 echo "${ECHO_T}no" >&6
    2125   SET_MAKE="MAKE=${MAKE-make}"
    2126 fi
    2127 
    2128 if test -n "$ac_tool_prefix"; then
    2129   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    2130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2131 echo "$as_me:2131: checking for $ac_word" >&5
    2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2133 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2134   echo $ECHO_N "(cached) $ECHO_C" >&6
    2135 else
    2136   if test -n "$RANLIB"; then
    2137   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    2138 else
    2139   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2140 ac_dummy="$PATH"
    2141 for ac_dir in $ac_dummy; do
    2142   IFS=$ac_save_IFS
    2143   test -z "$ac_dir" && ac_dir=.
    2144   $as_executable_p "$ac_dir/$ac_word" || continue
    2145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2146 echo "$as_me:2146: found $ac_dir/$ac_word" >&5
    2147 break
    2148 done
    2149 
    2150 fi
    2151 fi
    2152 RANLIB=$ac_cv_prog_RANLIB
    2153 if test -n "$RANLIB"; then
    2154   echo "$as_me:2154: result: $RANLIB" >&5
    2155 echo "${ECHO_T}$RANLIB" >&6
    2156 else
    2157   echo "$as_me:2157: result: no" >&5
    2158 echo "${ECHO_T}no" >&6
    2159 fi
    2160 
    2161 fi
    2162 if test -z "$ac_cv_prog_RANLIB"; then
    2163   ac_ct_RANLIB=$RANLIB
    2164   # Extract the first word of "ranlib", so it can be a program name with args.
    2165 set dummy ranlib; ac_word=$2
    2166 echo "$as_me:2166: checking for $ac_word" >&5
    2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    2169   echo $ECHO_N "(cached) $ECHO_C" >&6
    2170 else
    2171   if test -n "$ac_ct_RANLIB"; then
    2172   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    2173 else
    2174   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2175 ac_dummy="$PATH"
    2176 for ac_dir in $ac_dummy; do
    2177   IFS=$ac_save_IFS
    2178   test -z "$ac_dir" && ac_dir=.
    2179   $as_executable_p "$ac_dir/$ac_word" || continue
    2180 ac_cv_prog_ac_ct_RANLIB="ranlib"
    2181 echo "$as_me:2181: found $ac_dir/$ac_word" >&5
    2182 break
    2183 done
    2184 
    2185   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
    2186 fi
    2187 fi
    2188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    2189 if test -n "$ac_ct_RANLIB"; then
    2190   echo "$as_me:2190: result: $ac_ct_RANLIB" >&5
    2191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    2192 else
    2193   echo "$as_me:2193: result: no" >&5
    2194 echo "${ECHO_T}no" >&6
    2195 fi
    2196 
    2197   RANLIB=$ac_ct_RANLIB
    2198 else
    2199   RANLIB="$ac_cv_prog_RANLIB"
    2200 fi
    2201 
    2202 ac_ext=c
    2203 ac_cpp='$CPP $CPPFLAGS'
    2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2207 echo "$as_me:2207: checking how to run the C preprocessor" >&5
    2208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    2209 # On Suns, sometimes $CPP names a directory.
    2210 if test -n "$CPP" && test -d "$CPP"; then
    2211   CPP=
    2212 fi
    2213 if test -z "$CPP"; then
    2214   if test "${ac_cv_prog_CPP+set}" = set; then
    2215   echo $ECHO_N "(cached) $ECHO_C" >&6
    2216 else
    2217       # Double quotes because CPP needs to be expanded
    2218     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    2219     do
    2220       # break 2 since there is a loop in there.
    2221       ac_preproc_ok=false
    2222 for ac_c_preproc_warn_flag in '' yes
    2223 do
    2224   # Use a header file that comes with gcc, so configuring glibc
    2225   # with a fresh cross-compiler works.
    2226   # On the NeXT, cc -E runs the code through the compiler's parser,
    2227   # not just through cpp. "Syntax error" is here to catch this case.
    2228   cat >conftest.$ac_ext <<_ACEOF
    2229 #line 2229 "configure"
    2230 #include "confdefs.h"
    2231 #include <assert.h>
    2232                      Syntax error
    2233 _ACEOF
    2234 if { (eval echo "$as_me:2234: \"$ac_cpp conftest.$ac_ext\"") >&5
    2235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2236   ac_status=$?
    2237   egrep -v '^ *\+' conftest.er1 >conftest.err
    2238   rm -f conftest.er1
    2239   cat conftest.err >&5
    2240   echo "$as_me:2240: \$? = $ac_status" >&5
    2241   (exit $ac_status); } >/dev/null; then
    2242   if test -s conftest.err; then
    2243     ac_cpp_err=$ac_c_preproc_warn_flag
    2244   else
    2245     ac_cpp_err=
    2246   fi
    2247 else
    2248   ac_cpp_err=yes
    2249 fi
    2250 if test -z "$ac_cpp_err"; then
    2251   :
    2252 else
    2253   echo "$as_me: failed program was:" >&5
    2254   cat conftest.$ac_ext >&5
    2255   # Broken: fails on valid input.
    2256 continue
    2257 fi
    2258 rm -f conftest.err conftest.$ac_ext
    2259 
    2260   # OK, works on sane cases.  Now check whether non-existent headers
    2261   # can be detected and how.
    2262   cat >conftest.$ac_ext <<_ACEOF
    2263 #line 2263 "configure"
    2264 #include "confdefs.h"
    2265 #include <ac_nonexistent.h>
    2266 _ACEOF
    2267 if { (eval echo "$as_me:2267: \"$ac_cpp conftest.$ac_ext\"") >&5
    2268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2269   ac_status=$?
    2270   egrep -v '^ *\+' conftest.er1 >conftest.err
    2271   rm -f conftest.er1
    2272   cat conftest.err >&5
    2273   echo "$as_me:2273: \$? = $ac_status" >&5
    2274   (exit $ac_status); } >/dev/null; then
    2275   if test -s conftest.err; then
    2276     ac_cpp_err=$ac_c_preproc_warn_flag
    2277   else
    2278     ac_cpp_err=
    2279   fi
    2280 else
    2281   ac_cpp_err=yes
    2282 fi
    2283 if test -z "$ac_cpp_err"; then
    2284   # Broken: success on invalid input.
    2285 continue
    2286 else
    2287   echo "$as_me: failed program was:" >&5
    2288   cat conftest.$ac_ext >&5
    2289   # Passes both tests.
    2290 ac_preproc_ok=:
    2291 break
    2292 fi
    2293 rm -f conftest.err conftest.$ac_ext
    2294 
    2295 done
    2296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2297 rm -f conftest.err conftest.$ac_ext
    2298 if $ac_preproc_ok; then
    2299   break 2
    2300 fi
    2301 
    2302     done
    2303     ac_cv_prog_CPP=$CPP
    2304 
    2305 fi
    2306   CPP=$ac_cv_prog_CPP
    2307 else
    2308   ac_cv_prog_CPP=$CPP
    2309 fi
    2310 echo "$as_me:2310: result: $CPP" >&5
    2311 echo "${ECHO_T}$CPP" >&6
    2312 ac_preproc_ok=false
    2313 for ac_c_preproc_warn_flag in '' yes
    2314 do
    2315   # Use a header file that comes with gcc, so configuring glibc
    2316   # with a fresh cross-compiler works.
    2317   # On the NeXT, cc -E runs the code through the compiler's parser,
    2318   # not just through cpp. "Syntax error" is here to catch this case.
    2319   cat >conftest.$ac_ext <<_ACEOF
    2320 #line 2320 "configure"
    2321 #include "confdefs.h"
    2322 #include <assert.h>
    2323                      Syntax error
    2324 _ACEOF
    2325 if { (eval echo "$as_me:2325: \"$ac_cpp conftest.$ac_ext\"") >&5
    2326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2327   ac_status=$?
    2328   egrep -v '^ *\+' conftest.er1 >conftest.err
    2329   rm -f conftest.er1
    2330   cat conftest.err >&5
    2331   echo "$as_me:2331: \$? = $ac_status" >&5
    2332   (exit $ac_status); } >/dev/null; then
    2333   if test -s conftest.err; then
    2334     ac_cpp_err=$ac_c_preproc_warn_flag
    2335   else
    2336     ac_cpp_err=
    2337   fi
    2338 else
    2339   ac_cpp_err=yes
    2340 fi
    2341 if test -z "$ac_cpp_err"; then
    2342   :
    2343 else
    2344   echo "$as_me: failed program was:" >&5
    2345   cat conftest.$ac_ext >&5
    2346   # Broken: fails on valid input.
    2347 continue
    2348 fi
    2349 rm -f conftest.err conftest.$ac_ext
    2350 
    2351   # OK, works on sane cases.  Now check whether non-existent headers
    2352   # can be detected and how.
    2353   cat >conftest.$ac_ext <<_ACEOF
    2354 #line 2354 "configure"
    2355 #include "confdefs.h"
    2356 #include <ac_nonexistent.h>
    2357 _ACEOF
    2358 if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5
    2359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2360   ac_status=$?
    2361   egrep -v '^ *\+' conftest.er1 >conftest.err
    2362   rm -f conftest.er1
    2363   cat conftest.err >&5
    2364   echo "$as_me:2364: \$? = $ac_status" >&5
    2365   (exit $ac_status); } >/dev/null; then
    2366   if test -s conftest.err; then
    2367     ac_cpp_err=$ac_c_preproc_warn_flag
    2368   else
    2369     ac_cpp_err=
    2370   fi
    2371 else
    2372   ac_cpp_err=yes
    2373 fi
    2374 if test -z "$ac_cpp_err"; then
    2375   # Broken: success on invalid input.
    2376 continue
    2377 else
    2378   echo "$as_me: failed program was:" >&5
    2379   cat conftest.$ac_ext >&5
    2380   # Passes both tests.
    2381 ac_preproc_ok=:
    2382 break
    2383 fi
    2384 rm -f conftest.err conftest.$ac_ext
    2385 
    2386 done
    2387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2388 rm -f conftest.err conftest.$ac_ext
    2389 if $ac_preproc_ok; then
    2390   :
    2391 else
    2392   { { echo "$as_me:2392: error: C preprocessor \"$CPP\" fails sanity check" >&5
    2393 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
    2394    { (exit 1); exit 1; }; }
    2395 fi
    2396 
    2397 ac_ext=c
    2398 ac_cpp='$CPP $CPPFLAGS'
    2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2402 
    2403 echo "$as_me:2403: checking for AIX" >&5
    2404 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    2405 cat >conftest.$ac_ext <<_ACEOF
    2406 #line 2406 "configure"
    2407 #include "confdefs.h"
    2408 #ifdef _AIX
    2409   yes
    2410 #endif
    2411 
    2412 _ACEOF
    2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2414   egrep "yes" >/dev/null 2>&1; then
    2415   echo "$as_me:2415: result: yes" >&5
    2416 echo "${ECHO_T}yes" >&6
    2417 cat >>confdefs.h <<\EOF
    2418 #define _ALL_SOURCE 1
    2419 EOF
    2420 
    2421 else
    2422   echo "$as_me:2422: result: no" >&5
    2423 echo "${ECHO_T}no" >&6
    2424 fi
    2425 rm -f conftest*
    2426 
    2427 echo "$as_me:2427: checking for POSIXized ISC" >&5
    2428 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
    2429 if test -d /etc/conf/kconfig.d &&
    2430    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    2431 then
    2432   echo "$as_me:2432: result: yes" >&5
    2433 echo "${ECHO_T}yes" >&6
    2434   ISC=yes # If later tests want to check for ISC.
    2435 
    2436 cat >>confdefs.h <<\EOF
    2437 #define _POSIX_SOURCE 1
    2438 EOF
    2439 
    2440   if test "$GCC" = yes; then
    2441     CC="$CC -posix"
    2442   else
    2443     CC="$CC -Xp"
    2444   fi
    2445 else
    2446   echo "$as_me:2446: result: no" >&5
    2447 echo "${ECHO_T}no" >&6
    2448   ISC=
    2449 fi
    2450 
    2451 echo "$as_me:2451: checking for minix/config.h" >&5
    2452 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    2453 if test "${ac_cv_header_minix_config_h+set}" = set; then
    2454   echo $ECHO_N "(cached) $ECHO_C" >&6
    2455 else
    2456   cat >conftest.$ac_ext <<_ACEOF
    2457 #line 2457 "configure"
    2458 #include "confdefs.h"
    2459 #include <minix/config.h>
    2460 _ACEOF
    2461 if { (eval echo "$as_me:2461: \"$ac_cpp conftest.$ac_ext\"") >&5
    2462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2463   ac_status=$?
    2464   egrep -v '^ *\+' conftest.er1 >conftest.err
    2465   rm -f conftest.er1
    2466   cat conftest.err >&5
    2467   echo "$as_me:2467: \$? = $ac_status" >&5
    2468   (exit $ac_status); } >/dev/null; then
    2469   if test -s conftest.err; then
    2470     ac_cpp_err=$ac_c_preproc_warn_flag
    2471   else
    2472     ac_cpp_err=
    2473   fi
    2474 else
    2475   ac_cpp_err=yes
    2476 fi
    2477 if test -z "$ac_cpp_err"; then
    2478   ac_cv_header_minix_config_h=yes
    2479 else
    2480   echo "$as_me: failed program was:" >&5
    2481   cat conftest.$ac_ext >&5
    2482   ac_cv_header_minix_config_h=no
    2483 fi
    2484 rm -f conftest.err conftest.$ac_ext
    2485 fi
    2486 echo "$as_me:2486: result: $ac_cv_header_minix_config_h" >&5
    2487 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    2488 if test $ac_cv_header_minix_config_h = yes; then
    2489   MINIX=yes
    2490 else
    2491   MINIX=
    2492 fi
    2493 
    2494 if test "$MINIX" = yes; then
    2495 
    2496 cat >>confdefs.h <<\EOF
    2497 #define _POSIX_SOURCE 1
    2498 EOF
    2499 
    2500 cat >>confdefs.h <<\EOF
    2501 #define _POSIX_1_SOURCE 2
    2502 EOF
    2503 
    2504 cat >>confdefs.h <<\EOF
    2505 #define _MINIX 1
    2506 EOF
    2507 
    2508 fi
    2509 
    2510 echo "$as_me:2510: checking for ${CC-cc} option to accept ANSI C" >&5
    2511 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2513   echo $ECHO_N "(cached) $ECHO_C" >&6
    2514 else
    2515   ac_cv_prog_cc_stdc=no
    2516 ac_save_CFLAGS="$CFLAGS"
    2517 # Don't try gcc -ansi; that turns off useful extensions and
    2518 # breaks some systems' header files.
    2519 # AIX           -qlanglvl=ansi
    2520 # Ultrix and OSF/1  -std1
    2521 # HP-UX         -Aa -D_HPUX_SOURCE
    2522 # SVR4          -Xc
    2523 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
    2524 do
    2525   CFLAGS="$ac_save_CFLAGS $ac_arg"
    2526   cat >conftest.$ac_ext <<_ACEOF
    2527 #line 2527 "configure"
    2528 #include "confdefs.h"
    2529 #if !defined(__STDC__) || __STDC__ != 1
    2530 choke me
    2531 #endif
    2532 
    2533 int
    2534 main ()
    2535 {
    2536 int test (int i, double x);
    2537 struct s1 {int (*f) (int a);};
    2538 struct s2 {int (*f) (double a);};
    2539   ;
    2540   return 0;
    2541 }
    2542 _ACEOF
    2543 rm -f conftest.$ac_objext
    2544 if { (eval echo "$as_me:2544: \"$ac_compile\"") >&5
    2545   (eval $ac_compile) 2>&5
    2546   ac_status=$?
    2547   echo "$as_me:2547: \$? = $ac_status" >&5
    2548   (exit $ac_status); } &&
    2549          { ac_try='test -s conftest.$ac_objext'
    2550   { (eval echo "$as_me:2550: \"$ac_try\"") >&5
    2551   (eval $ac_try) 2>&5
    2552   ac_status=$?
    2553   echo "$as_me:2553: \$? = $ac_status" >&5
    2554   (exit $ac_status); }; }; then
    2555   ac_cv_prog_cc_stdc="$ac_arg"; break
    2556 else
    2557   echo "$as_me: failed program was:" >&5
    2558 cat conftest.$ac_ext >&5
    2559 fi
    2560 rm -f conftest.$ac_objext conftest.$ac_ext
    2561 done
    2562 CFLAGS="$ac_save_CFLAGS"
    2563 
    2564 fi
    2565 
    2566 echo "$as_me:2566: result: $ac_cv_prog_cc_stdc" >&5
    2567 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2568 case "x$ac_cv_prog_cc_stdc" in
    2569   x|xno) ;;
    2570   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
    2571 esac
    2572 
    2573 echo "$as_me:2573: checking for function prototypes" >&5
    2574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    2575 if test "$ac_cv_prog_cc_stdc" != no; then
    2576   echo "$as_me:2576: result: yes" >&5
    2577 echo "${ECHO_T}yes" >&6
    2578   cat >>confdefs.h <<\EOF
    2579 #define PROTOTYPES 1
    2580 EOF
    2581 
    2582   U= ANSI2KNR=
    2583 else
    2584   echo "$as_me:2584: result: no" >&5
    2585 echo "${ECHO_T}no" >&6
    2586   U=_ ANSI2KNR=ansi2knr
    2587 fi
    2588 
    2589 echo "$as_me:2589: checking for $CC option to accept ANSI C" >&5
     2443echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    25902444echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    25912445if test "${ac_cv_prog_cc_stdc+set}" = set; then
     
    25952449ac_save_CC=$CC
    25962450cat >conftest.$ac_ext <<_ACEOF
    2597 #line 2597 "configure"
    2598 #include "confdefs.h"
     2451/* confdefs.h.  */
     2452_ACEOF
     2453cat confdefs.h >>conftest.$ac_ext
     2454cat >>conftest.$ac_ext <<_ACEOF
     2455/* end confdefs.h.  */
    25992456#include <stdarg.h>
    26002457#include <stdio.h>
     
    26192476  return s;
    26202477}
     2478
     2479/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2480   function prototypes and stuff, but not '\xHH' hex character constants.
     2481   These don't provoke an error unfortunately, instead are silently treated
     2482   as 'x'.  The following induces an error, until -std1 is added to get
     2483   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2484   array size at least.  It's necessary to write '\x00'==0 to get something
     2485   that's true only with -std1.  */
     2486int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2487
    26212488int test (int i, double x);
    26222489struct s1 {int (*f) (int a);};
     
    26442511  CC="$ac_save_CC $ac_arg"
    26452512  rm -f conftest.$ac_objext
    2646 if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5
    2647   (eval $ac_compile) 2>&5
    2648   ac_status=$?
    2649   echo "$as_me:2649: \$? = $ac_status" >&5
     2513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2514  (eval $ac_compile) 2>conftest.er1
     2515  ac_status=$?
     2516  grep -v '^ *+' conftest.er1 >conftest.err
     2517  rm -f conftest.er1
     2518  cat conftest.err >&5
     2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26502520  (exit $ac_status); } &&
    2651          { ac_try='test -s conftest.$ac_objext'
    2652   { (eval echo "$as_me:2652: \"$ac_try\"") >&5
    2653   (eval $ac_try) 2>&5
    2654   ac_status=$?
    2655   echo "$as_me:2655: \$? = $ac_status" >&5
     2521     { ac_try='test -z "$ac_c_werror_flag"
     2522             || test ! -s conftest.err'
     2523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2524  (eval $ac_try) 2>&5
     2525  ac_status=$?
     2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2527  (exit $ac_status); }; } &&
     2528     { ac_try='test -s conftest.$ac_objext'
     2529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2530  (eval $ac_try) 2>&5
     2531  ac_status=$?
     2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26562533  (exit $ac_status); }; }; then
    26572534  ac_cv_prog_cc_stdc=$ac_arg
     
    26592536else
    26602537  echo "$as_me: failed program was:" >&5
    2661 cat conftest.$ac_ext >&5
    2662 fi
    2663 rm -f conftest.$ac_objext
     2538sed 's/^/| /' conftest.$ac_ext >&5
     2539
     2540fi
     2541rm -f conftest.err conftest.$ac_objext
    26642542done
    26652543rm -f conftest.$ac_ext conftest.$ac_objext
     
    26702548case "x$ac_cv_prog_cc_stdc" in
    26712549  x|xno)
    2672     echo "$as_me:2672: result: none needed" >&5
     2550    echo "$as_me:$LINENO: result: none needed" >&5
    26732551echo "${ECHO_T}none needed" >&6 ;;
    26742552  *)
    2675     echo "$as_me:2675: result: $ac_cv_prog_cc_stdc" >&5
     2553    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    26762554echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    26772555    CC="$CC $ac_cv_prog_cc_stdc" ;;
    26782556esac
    26792557
    2680 echo "$as_me:2680: checking for an ANSI C-conforming const" >&5
     2558# Some people use a C++ compiler to compile C.  Since we use `exit',
     2559# in C++ we need to declare it.  In case someone uses the same compiler
     2560# for both compiling C and C++ we need to have the C++ compiler decide
     2561# the declaration of exit, since it's the most demanding environment.
     2562cat >conftest.$ac_ext <<_ACEOF
     2563#ifndef __cplusplus
     2564  choke me
     2565#endif
     2566_ACEOF
     2567rm -f conftest.$ac_objext
     2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2569  (eval $ac_compile) 2>conftest.er1
     2570  ac_status=$?
     2571  grep -v '^ *+' conftest.er1 >conftest.err
     2572  rm -f conftest.er1
     2573  cat conftest.err >&5
     2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2575  (exit $ac_status); } &&
     2576     { ac_try='test -z "$ac_c_werror_flag"
     2577             || test ! -s conftest.err'
     2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2579  (eval $ac_try) 2>&5
     2580  ac_status=$?
     2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2582  (exit $ac_status); }; } &&
     2583     { ac_try='test -s conftest.$ac_objext'
     2584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2585  (eval $ac_try) 2>&5
     2586  ac_status=$?
     2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2588  (exit $ac_status); }; }; then
     2589  for ac_declaration in \
     2590   '' \
     2591   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2592   'extern "C" void std::exit (int); using std::exit;' \
     2593   'extern "C" void exit (int) throw ();' \
     2594   'extern "C" void exit (int);' \
     2595   'void exit (int);'
     2596do
     2597  cat >conftest.$ac_ext <<_ACEOF
     2598/* confdefs.h.  */
     2599_ACEOF
     2600cat confdefs.h >>conftest.$ac_ext
     2601cat >>conftest.$ac_ext <<_ACEOF
     2602/* end confdefs.h.  */
     2603$ac_declaration
     2604#include <stdlib.h>
     2605int
     2606main ()
     2607{
     2608exit (42);
     2609  ;
     2610  return 0;
     2611}
     2612_ACEOF
     2613rm -f conftest.$ac_objext
     2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2615  (eval $ac_compile) 2>conftest.er1
     2616  ac_status=$?
     2617  grep -v '^ *+' conftest.er1 >conftest.err
     2618  rm -f conftest.er1
     2619  cat conftest.err >&5
     2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2621  (exit $ac_status); } &&
     2622     { ac_try='test -z "$ac_c_werror_flag"
     2623             || test ! -s conftest.err'
     2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2625  (eval $ac_try) 2>&5
     2626  ac_status=$?
     2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2628  (exit $ac_status); }; } &&
     2629     { ac_try='test -s conftest.$ac_objext'
     2630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2631  (eval $ac_try) 2>&5
     2632  ac_status=$?
     2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2634  (exit $ac_status); }; }; then
     2635  :
     2636else
     2637  echo "$as_me: failed program was:" >&5
     2638sed 's/^/| /' conftest.$ac_ext >&5
     2639
     2640continue
     2641fi
     2642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2643  cat >conftest.$ac_ext <<_ACEOF
     2644/* confdefs.h.  */
     2645_ACEOF
     2646cat confdefs.h >>conftest.$ac_ext
     2647cat >>conftest.$ac_ext <<_ACEOF
     2648/* end confdefs.h.  */
     2649$ac_declaration
     2650int
     2651main ()
     2652{
     2653exit (42);
     2654  ;
     2655  return 0;
     2656}
     2657_ACEOF
     2658rm -f conftest.$ac_objext
     2659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2660  (eval $ac_compile) 2>conftest.er1
     2661  ac_status=$?
     2662  grep -v '^ *+' conftest.er1 >conftest.err
     2663  rm -f conftest.er1
     2664  cat conftest.err >&5
     2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2666  (exit $ac_status); } &&
     2667     { ac_try='test -z "$ac_c_werror_flag"
     2668             || test ! -s conftest.err'
     2669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2670  (eval $ac_try) 2>&5
     2671  ac_status=$?
     2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2673  (exit $ac_status); }; } &&
     2674     { ac_try='test -s conftest.$ac_objext'
     2675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2676  (eval $ac_try) 2>&5
     2677  ac_status=$?
     2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2679  (exit $ac_status); }; }; then
     2680  break
     2681else
     2682  echo "$as_me: failed program was:" >&5
     2683sed 's/^/| /' conftest.$ac_ext >&5
     2684
     2685fi
     2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2687done
     2688rm -f conftest*
     2689if test -n "$ac_declaration"; then
     2690  echo '#ifdef __cplusplus' >>confdefs.h
     2691  echo $ac_declaration      >>confdefs.h
     2692  echo '#endif'             >>confdefs.h
     2693fi
     2694
     2695else
     2696  echo "$as_me: failed program was:" >&5
     2697sed 's/^/| /' conftest.$ac_ext >&5
     2698
     2699fi
     2700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2701ac_ext=c
     2702ac_cpp='$CPP $CPPFLAGS'
     2703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2705ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2706
     2707ac_aux_dir=
     2708for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     2709  if test -f $ac_dir/install-sh; then
     2710    ac_aux_dir=$ac_dir
     2711    ac_install_sh="$ac_aux_dir/install-sh -c"
     2712    break
     2713  elif test -f $ac_dir/install.sh; then
     2714    ac_aux_dir=$ac_dir
     2715    ac_install_sh="$ac_aux_dir/install.sh -c"
     2716    break
     2717  elif test -f $ac_dir/shtool; then
     2718    ac_aux_dir=$ac_dir
     2719    ac_install_sh="$ac_aux_dir/shtool install -c"
     2720    break
     2721  fi
     2722done
     2723if test -z "$ac_aux_dir"; then
     2724  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2725echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2726   { (exit 1); exit 1; }; }
     2727fi
     2728ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2729ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2730ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     2731
     2732# Find a good install program.  We prefer a C program (faster),
     2733# so one script is as good as another.  But avoid the broken or
     2734# incompatible versions:
     2735# SysV /etc/install, /usr/sbin/install
     2736# SunOS /usr/etc/install
     2737# IRIX /sbin/install
     2738# AIX /bin/install
     2739# AmigaOS /C/install, which installs bootblocks on floppy discs
     2740# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     2741# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     2742# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2743# OS/2's system install, which has a completely different semantic
     2744# ./install, which can be erroneously created by make from ./install.sh.
     2745echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2746echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     2747if test -z "$INSTALL"; then
     2748if test "${ac_cv_path_install+set}" = set; then
     2749  echo $ECHO_N "(cached) $ECHO_C" >&6
     2750else
     2751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2752for as_dir in $PATH
     2753do
     2754  IFS=$as_save_IFS
     2755  test -z "$as_dir" && as_dir=.
     2756  # Account for people who put trailing slashes in PATH elements.
     2757case $as_dir/ in
     2758  ./ | .// | /cC/* | \
     2759  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2760  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     2761  /usr/ucb/* ) ;;
     2762  *)
     2763    # OSF1 and SCO ODT 3.0 have their own names for install.
     2764    # Don't use installbsd from OSF since it installs stuff as root
     2765    # by default.
     2766    for ac_prog in ginstall scoinst install; do
     2767      for ac_exec_ext in '' $ac_executable_extensions; do
     2768    if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     2769      if test $ac_prog = install &&
     2770        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2771        # AIX install.  It has an incompatible calling convention.
     2772        :
     2773      elif test $ac_prog = install &&
     2774        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2775        # program-specific install script used by HP pwplus--don't use.
     2776        :
     2777      else
     2778        ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2779        break 3
     2780      fi
     2781    fi
     2782      done
     2783    done
     2784    ;;
     2785esac
     2786done
     2787
     2788
     2789fi
     2790  if test "${ac_cv_path_install+set}" = set; then
     2791    INSTALL=$ac_cv_path_install
     2792  else
     2793    # As a last resort, use the slow shell script.  We don't cache a
     2794    # path for INSTALL within a source directory, because that will
     2795    # break other packages using the cache if that directory is
     2796    # removed, or if the path is relative.
     2797    INSTALL=$ac_install_sh
     2798  fi
     2799fi
     2800echo "$as_me:$LINENO: result: $INSTALL" >&5
     2801echo "${ECHO_T}$INSTALL" >&6
     2802
     2803# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     2804# It thinks the first close brace ends the variable substitution.
     2805test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     2806
     2807test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     2808
     2809test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     2810
     2811echo "$as_me:$LINENO: checking whether ln -s works" >&5
     2812echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2813LN_S=$as_ln_s
     2814if test "$LN_S" = "ln -s"; then
     2815  echo "$as_me:$LINENO: result: yes" >&5
     2816echo "${ECHO_T}yes" >&6
     2817else
     2818  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     2819echo "${ECHO_T}no, using $LN_S" >&6
     2820fi
     2821
     2822echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     2823echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     2824set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     2825if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2826  echo $ECHO_N "(cached) $ECHO_C" >&6
     2827else
     2828  cat >conftest.make <<\_ACEOF
     2829all:
     2830    @echo 'ac_maketemp="$(MAKE)"'
     2831_ACEOF
     2832# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     2833eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     2834if test -n "$ac_maketemp"; then
     2835  eval ac_cv_prog_make_${ac_make}_set=yes
     2836else
     2837  eval ac_cv_prog_make_${ac_make}_set=no
     2838fi
     2839rm -f conftest.make
     2840fi
     2841if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     2842  echo "$as_me:$LINENO: result: yes" >&5
     2843echo "${ECHO_T}yes" >&6
     2844  SET_MAKE=
     2845else
     2846  echo "$as_me:$LINENO: result: no" >&5
     2847echo "${ECHO_T}no" >&6
     2848  SET_MAKE="MAKE=${MAKE-make}"
     2849fi
     2850
     2851if test -n "$ac_tool_prefix"; then
     2852  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2853set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2854echo "$as_me:$LINENO: checking for $ac_word" >&5
     2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2856if test "${ac_cv_prog_RANLIB+set}" = set; then
     2857  echo $ECHO_N "(cached) $ECHO_C" >&6
     2858else
     2859  if test -n "$RANLIB"; then
     2860  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     2861else
     2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2863for as_dir in $PATH
     2864do
     2865  IFS=$as_save_IFS
     2866  test -z "$as_dir" && as_dir=.
     2867  for ac_exec_ext in '' $ac_executable_extensions; do
     2868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2869    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2871    break 2
     2872  fi
     2873done
     2874done
     2875
     2876fi
     2877fi
     2878RANLIB=$ac_cv_prog_RANLIB
     2879if test -n "$RANLIB"; then
     2880  echo "$as_me:$LINENO: result: $RANLIB" >&5
     2881echo "${ECHO_T}$RANLIB" >&6
     2882else
     2883  echo "$as_me:$LINENO: result: no" >&5
     2884echo "${ECHO_T}no" >&6
     2885fi
     2886
     2887fi
     2888if test -z "$ac_cv_prog_RANLIB"; then
     2889  ac_ct_RANLIB=$RANLIB
     2890  # Extract the first word of "ranlib", so it can be a program name with args.
     2891set dummy ranlib; ac_word=$2
     2892echo "$as_me:$LINENO: checking for $ac_word" >&5
     2893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2895  echo $ECHO_N "(cached) $ECHO_C" >&6
     2896else
     2897  if test -n "$ac_ct_RANLIB"; then
     2898  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2899else
     2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2901for as_dir in $PATH
     2902do
     2903  IFS=$as_save_IFS
     2904  test -z "$as_dir" && as_dir=.
     2905  for ac_exec_ext in '' $ac_executable_extensions; do
     2906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2907    ac_cv_prog_ac_ct_RANLIB="ranlib"
     2908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2909    break 2
     2910  fi
     2911done
     2912done
     2913
     2914  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2915fi
     2916fi
     2917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2918if test -n "$ac_ct_RANLIB"; then
     2919  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     2920echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2921else
     2922  echo "$as_me:$LINENO: result: no" >&5
     2923echo "${ECHO_T}no" >&6
     2924fi
     2925
     2926  RANLIB=$ac_ct_RANLIB
     2927else
     2928  RANLIB="$ac_cv_prog_RANLIB"
     2929fi
     2930
     2931
     2932
     2933ac_ext=c
     2934ac_cpp='$CPP $CPPFLAGS'
     2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2937ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2938echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     2939echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     2940# On Suns, sometimes $CPP names a directory.
     2941if test -n "$CPP" && test -d "$CPP"; then
     2942  CPP=
     2943fi
     2944if test -z "$CPP"; then
     2945  if test "${ac_cv_prog_CPP+set}" = set; then
     2946  echo $ECHO_N "(cached) $ECHO_C" >&6
     2947else
     2948      # Double quotes because CPP needs to be expanded
     2949    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2950    do
     2951      ac_preproc_ok=false
     2952for ac_c_preproc_warn_flag in '' yes
     2953do
     2954  # Use a header file that comes with gcc, so configuring glibc
     2955  # with a fresh cross-compiler works.
     2956  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2957  # <limits.h> exists even on freestanding compilers.
     2958  # On the NeXT, cc -E runs the code through the compiler's parser,
     2959  # not just through cpp. "Syntax error" is here to catch this case.
     2960  cat >conftest.$ac_ext <<_ACEOF
     2961/* confdefs.h.  */
     2962_ACEOF
     2963cat confdefs.h >>conftest.$ac_ext
     2964cat >>conftest.$ac_ext <<_ACEOF
     2965/* end confdefs.h.  */
     2966#ifdef __STDC__
     2967# include <limits.h>
     2968#else
     2969# include <assert.h>
     2970#endif
     2971             Syntax error
     2972_ACEOF
     2973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2974  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2975  ac_status=$?
     2976  grep -v '^ *+' conftest.er1 >conftest.err
     2977  rm -f conftest.er1
     2978  cat conftest.err >&5
     2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2980  (exit $ac_status); } >/dev/null; then
     2981  if test -s conftest.err; then
     2982    ac_cpp_err=$ac_c_preproc_warn_flag
     2983    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2984  else
     2985    ac_cpp_err=
     2986  fi
     2987else
     2988  ac_cpp_err=yes
     2989fi
     2990if test -z "$ac_cpp_err"; then
     2991  :
     2992else
     2993  echo "$as_me: failed program was:" >&5
     2994sed 's/^/| /' conftest.$ac_ext >&5
     2995
     2996  # Broken: fails on valid input.
     2997continue
     2998fi
     2999rm -f conftest.err conftest.$ac_ext
     3000
     3001  # OK, works on sane cases.  Now check whether non-existent headers
     3002  # can be detected and how.
     3003  cat >conftest.$ac_ext <<_ACEOF
     3004/* confdefs.h.  */
     3005_ACEOF
     3006cat confdefs.h >>conftest.$ac_ext
     3007cat >>conftest.$ac_ext <<_ACEOF
     3008/* end confdefs.h.  */
     3009#include <ac_nonexistent.h>
     3010_ACEOF
     3011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3013  ac_status=$?
     3014  grep -v '^ *+' conftest.er1 >conftest.err
     3015  rm -f conftest.er1
     3016  cat conftest.err >&5
     3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3018  (exit $ac_status); } >/dev/null; then
     3019  if test -s conftest.err; then
     3020    ac_cpp_err=$ac_c_preproc_warn_flag
     3021    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3022  else
     3023    ac_cpp_err=
     3024  fi
     3025else
     3026  ac_cpp_err=yes
     3027fi
     3028if test -z "$ac_cpp_err"; then
     3029  # Broken: success on invalid input.
     3030continue
     3031else
     3032  echo "$as_me: failed program was:" >&5
     3033sed 's/^/| /' conftest.$ac_ext >&5
     3034
     3035  # Passes both tests.
     3036ac_preproc_ok=:
     3037break
     3038fi
     3039rm -f conftest.err conftest.$ac_ext
     3040
     3041done
     3042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3043rm -f conftest.err conftest.$ac_ext
     3044if $ac_preproc_ok; then
     3045  break
     3046fi
     3047
     3048    done
     3049    ac_cv_prog_CPP=$CPP
     3050
     3051fi
     3052  CPP=$ac_cv_prog_CPP
     3053else
     3054  ac_cv_prog_CPP=$CPP
     3055fi
     3056echo "$as_me:$LINENO: result: $CPP" >&5
     3057echo "${ECHO_T}$CPP" >&6
     3058ac_preproc_ok=false
     3059for ac_c_preproc_warn_flag in '' yes
     3060do
     3061  # Use a header file that comes with gcc, so configuring glibc
     3062  # with a fresh cross-compiler works.
     3063  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3064  # <limits.h> exists even on freestanding compilers.
     3065  # On the NeXT, cc -E runs the code through the compiler's parser,
     3066  # not just through cpp. "Syntax error" is here to catch this case.
     3067  cat >conftest.$ac_ext <<_ACEOF
     3068/* confdefs.h.  */
     3069_ACEOF
     3070cat confdefs.h >>conftest.$ac_ext
     3071cat >>conftest.$ac_ext <<_ACEOF
     3072/* end confdefs.h.  */
     3073#ifdef __STDC__
     3074# include <limits.h>
     3075#else
     3076# include <assert.h>
     3077#endif
     3078             Syntax error
     3079_ACEOF
     3080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3081  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3082  ac_status=$?
     3083  grep -v '^ *+' conftest.er1 >conftest.err
     3084  rm -f conftest.er1
     3085  cat conftest.err >&5
     3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3087  (exit $ac_status); } >/dev/null; then
     3088  if test -s conftest.err; then
     3089    ac_cpp_err=$ac_c_preproc_warn_flag
     3090    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3091  else
     3092    ac_cpp_err=
     3093  fi
     3094else
     3095  ac_cpp_err=yes
     3096fi
     3097if test -z "$ac_cpp_err"; then
     3098  :
     3099else
     3100  echo "$as_me: failed program was:" >&5
     3101sed 's/^/| /' conftest.$ac_ext >&5
     3102
     3103  # Broken: fails on valid input.
     3104continue
     3105fi
     3106rm -f conftest.err conftest.$ac_ext
     3107
     3108  # OK, works on sane cases.  Now check whether non-existent headers
     3109  # can be detected and how.
     3110  cat >conftest.$ac_ext <<_ACEOF
     3111/* confdefs.h.  */
     3112_ACEOF
     3113cat confdefs.h >>conftest.$ac_ext
     3114cat >>conftest.$ac_ext <<_ACEOF
     3115/* end confdefs.h.  */
     3116#include <ac_nonexistent.h>
     3117_ACEOF
     3118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3120  ac_status=$?
     3121  grep -v '^ *+' conftest.er1 >conftest.err
     3122  rm -f conftest.er1
     3123  cat conftest.err >&5
     3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3125  (exit $ac_status); } >/dev/null; then
     3126  if test -s conftest.err; then
     3127    ac_cpp_err=$ac_c_preproc_warn_flag
     3128    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3129  else
     3130    ac_cpp_err=
     3131  fi
     3132else
     3133  ac_cpp_err=yes
     3134fi
     3135if test -z "$ac_cpp_err"; then
     3136  # Broken: success on invalid input.
     3137continue
     3138else
     3139  echo "$as_me: failed program was:" >&5
     3140sed 's/^/| /' conftest.$ac_ext >&5
     3141
     3142  # Passes both tests.
     3143ac_preproc_ok=:
     3144break
     3145fi
     3146rm -f conftest.err conftest.$ac_ext
     3147
     3148done
     3149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3150rm -f conftest.err conftest.$ac_ext
     3151if $ac_preproc_ok; then
     3152  :
     3153else
     3154  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3155See \`config.log' for more details." >&5
     3156echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3157See \`config.log' for more details." >&2;}
     3158   { (exit 1); exit 1; }; }
     3159fi
     3160
     3161ac_ext=c
     3162ac_cpp='$CPP $CPPFLAGS'
     3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3165ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3166
     3167
     3168echo "$as_me:$LINENO: checking for egrep" >&5
     3169echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3170if test "${ac_cv_prog_egrep+set}" = set; then
     3171  echo $ECHO_N "(cached) $ECHO_C" >&6
     3172else
     3173  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3174    then ac_cv_prog_egrep='grep -E'
     3175    else ac_cv_prog_egrep='egrep'
     3176    fi
     3177fi
     3178echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3179echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3180 EGREP=$ac_cv_prog_egrep
     3181
     3182
     3183
     3184echo "$as_me:$LINENO: checking for AIX" >&5
     3185echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     3186cat >conftest.$ac_ext <<_ACEOF
     3187/* confdefs.h.  */
     3188_ACEOF
     3189cat confdefs.h >>conftest.$ac_ext
     3190cat >>conftest.$ac_ext <<_ACEOF
     3191/* end confdefs.h.  */
     3192#ifdef _AIX
     3193  yes
     3194#endif
     3195
     3196_ACEOF
     3197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3198  $EGREP "yes" >/dev/null 2>&1; then
     3199  echo "$as_me:$LINENO: result: yes" >&5
     3200echo "${ECHO_T}yes" >&6
     3201cat >>confdefs.h <<\_ACEOF
     3202#define _ALL_SOURCE 1
     3203_ACEOF
     3204
     3205else
     3206  echo "$as_me:$LINENO: result: no" >&5
     3207echo "${ECHO_T}no" >&6
     3208fi
     3209rm -f conftest*
     3210
     3211
     3212echo "$as_me:$LINENO: checking for library containing strerror" >&5
     3213echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
     3214if test "${ac_cv_search_strerror+set}" = set; then
     3215  echo $ECHO_N "(cached) $ECHO_C" >&6
     3216else
     3217  ac_func_search_save_LIBS=$LIBS
     3218ac_cv_search_strerror=no
     3219cat >conftest.$ac_ext <<_ACEOF
     3220/* confdefs.h.  */
     3221_ACEOF
     3222cat confdefs.h >>conftest.$ac_ext
     3223cat >>conftest.$ac_ext <<_ACEOF
     3224/* end confdefs.h.  */
     3225
     3226/* Override any gcc2 internal prototype to avoid an error.  */
     3227#ifdef __cplusplus
     3228extern "C"
     3229#endif
     3230/* We use char because int might match the return type of a gcc2
     3231   builtin and then its argument prototype would still apply.  */
     3232char strerror ();
     3233int
     3234main ()
     3235{
     3236strerror ();
     3237  ;
     3238  return 0;
     3239}
     3240_ACEOF
     3241rm -f conftest.$ac_objext conftest$ac_exeext
     3242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3243  (eval $ac_link) 2>conftest.er1
     3244  ac_status=$?
     3245  grep -v '^ *+' conftest.er1 >conftest.err
     3246  rm -f conftest.er1
     3247  cat conftest.err >&5
     3248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3249  (exit $ac_status); } &&
     3250     { ac_try='test -z "$ac_c_werror_flag"
     3251             || test ! -s conftest.err'
     3252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3253  (eval $ac_try) 2>&5
     3254  ac_status=$?
     3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3256  (exit $ac_status); }; } &&
     3257     { ac_try='test -s conftest$ac_exeext'
     3258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3259  (eval $ac_try) 2>&5
     3260  ac_status=$?
     3261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3262  (exit $ac_status); }; }; then
     3263  ac_cv_search_strerror="none required"
     3264else
     3265  echo "$as_me: failed program was:" >&5
     3266sed 's/^/| /' conftest.$ac_ext >&5
     3267
     3268fi
     3269rm -f conftest.err conftest.$ac_objext \
     3270      conftest$ac_exeext conftest.$ac_ext
     3271if test "$ac_cv_search_strerror" = no; then
     3272  for ac_lib in cposix; do
     3273    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     3274    cat >conftest.$ac_ext <<_ACEOF
     3275/* confdefs.h.  */
     3276_ACEOF
     3277cat confdefs.h >>conftest.$ac_ext
     3278cat >>conftest.$ac_ext <<_ACEOF
     3279/* end confdefs.h.  */
     3280
     3281/* Override any gcc2 internal prototype to avoid an error.  */
     3282#ifdef __cplusplus
     3283extern "C"
     3284#endif
     3285/* We use char because int might match the return type of a gcc2
     3286   builtin and then its argument prototype would still apply.  */
     3287char strerror ();
     3288int
     3289main ()
     3290{
     3291strerror ();
     3292  ;
     3293  return 0;
     3294}
     3295_ACEOF
     3296rm -f conftest.$ac_objext conftest$ac_exeext
     3297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3298  (eval $ac_link) 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); } &&
     3305     { ac_try='test -z "$ac_c_werror_flag"
     3306             || test ! -s conftest.err'
     3307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3308  (eval $ac_try) 2>&5
     3309  ac_status=$?
     3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3311  (exit $ac_status); }; } &&
     3312     { ac_try='test -s conftest$ac_exeext'
     3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3314  (eval $ac_try) 2>&5
     3315  ac_status=$?
     3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3317  (exit $ac_status); }; }; then
     3318  ac_cv_search_strerror="-l$ac_lib"
     3319break
     3320else
     3321  echo "$as_me: failed program was:" >&5
     3322sed 's/^/| /' conftest.$ac_ext >&5
     3323
     3324fi
     3325rm -f conftest.err conftest.$ac_objext \
     3326      conftest$ac_exeext conftest.$ac_ext
     3327  done
     3328fi
     3329LIBS=$ac_func_search_save_LIBS
     3330fi
     3331echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
     3332echo "${ECHO_T}$ac_cv_search_strerror" >&6
     3333if test "$ac_cv_search_strerror" != no; then
     3334  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
     3335
     3336fi
     3337
     3338echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3339echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3340if test "${ac_cv_header_stdc+set}" = set; then
     3341  echo $ECHO_N "(cached) $ECHO_C" >&6
     3342else
     3343  cat >conftest.$ac_ext <<_ACEOF
     3344/* confdefs.h.  */
     3345_ACEOF
     3346cat confdefs.h >>conftest.$ac_ext
     3347cat >>conftest.$ac_ext <<_ACEOF
     3348/* end confdefs.h.  */
     3349#include <stdlib.h>
     3350#include <stdarg.h>
     3351#include <string.h>
     3352#include <float.h>
     3353
     3354int
     3355main ()
     3356{
     3357
     3358  ;
     3359  return 0;
     3360}
     3361_ACEOF
     3362rm -f conftest.$ac_objext
     3363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3364  (eval $ac_compile) 2>conftest.er1
     3365  ac_status=$?
     3366  grep -v '^ *+' conftest.er1 >conftest.err
     3367  rm -f conftest.er1
     3368  cat conftest.err >&5
     3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3370  (exit $ac_status); } &&
     3371     { ac_try='test -z "$ac_c_werror_flag"
     3372             || test ! -s conftest.err'
     3373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3374  (eval $ac_try) 2>&5
     3375  ac_status=$?
     3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3377  (exit $ac_status); }; } &&
     3378     { ac_try='test -s conftest.$ac_objext'
     3379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3380  (eval $ac_try) 2>&5
     3381  ac_status=$?
     3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3383  (exit $ac_status); }; }; then
     3384  ac_cv_header_stdc=yes
     3385else
     3386  echo "$as_me: failed program was:" >&5
     3387sed 's/^/| /' conftest.$ac_ext >&5
     3388
     3389ac_cv_header_stdc=no
     3390fi
     3391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3392
     3393if test $ac_cv_header_stdc = yes; then
     3394  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3395  cat >conftest.$ac_ext <<_ACEOF
     3396/* confdefs.h.  */
     3397_ACEOF
     3398cat confdefs.h >>conftest.$ac_ext
     3399cat >>conftest.$ac_ext <<_ACEOF
     3400/* end confdefs.h.  */
     3401#include <string.h>
     3402
     3403_ACEOF
     3404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3405  $EGREP "memchr" >/dev/null 2>&1; then
     3406  :
     3407else
     3408  ac_cv_header_stdc=no
     3409fi
     3410rm -f conftest*
     3411
     3412fi
     3413
     3414if test $ac_cv_header_stdc = yes; then
     3415  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3416  cat >conftest.$ac_ext <<_ACEOF
     3417/* confdefs.h.  */
     3418_ACEOF
     3419cat confdefs.h >>conftest.$ac_ext
     3420cat >>conftest.$ac_ext <<_ACEOF
     3421/* end confdefs.h.  */
     3422#include <stdlib.h>
     3423
     3424_ACEOF
     3425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3426  $EGREP "free" >/dev/null 2>&1; then
     3427  :
     3428else
     3429  ac_cv_header_stdc=no
     3430fi
     3431rm -f conftest*
     3432
     3433fi
     3434
     3435if test $ac_cv_header_stdc = yes; then
     3436  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3437  if test "$cross_compiling" = yes; then
     3438  :
     3439else
     3440  cat >conftest.$ac_ext <<_ACEOF
     3441/* confdefs.h.  */
     3442_ACEOF
     3443cat confdefs.h >>conftest.$ac_ext
     3444cat >>conftest.$ac_ext <<_ACEOF
     3445/* end confdefs.h.  */
     3446#include <ctype.h>
     3447#if ((' ' & 0x0FF) == 0x020)
     3448# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3449# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3450#else
     3451# define ISLOWER(c) \
     3452           (('a' <= (c) && (c) <= 'i') \
     3453             || ('j' <= (c) && (c) <= 'r') \
     3454             || ('s' <= (c) && (c) <= 'z'))
     3455# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3456#endif
     3457
     3458#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3459int
     3460main ()
     3461{
     3462  int i;
     3463  for (i = 0; i < 256; i++)
     3464    if (XOR (islower (i), ISLOWER (i))
     3465    || toupper (i) != TOUPPER (i))
     3466      exit(2);
     3467  exit (0);
     3468}
     3469_ACEOF
     3470rm -f conftest$ac_exeext
     3471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3472  (eval $ac_link) 2>&5
     3473  ac_status=$?
     3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3475  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3477  (eval $ac_try) 2>&5
     3478  ac_status=$?
     3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3480  (exit $ac_status); }; }; then
     3481  :
     3482else
     3483  echo "$as_me: program exited with status $ac_status" >&5
     3484echo "$as_me: failed program was:" >&5
     3485sed 's/^/| /' conftest.$ac_ext >&5
     3486
     3487( exit $ac_status )
     3488ac_cv_header_stdc=no
     3489fi
     3490rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3491fi
     3492fi
     3493fi
     3494echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3495echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3496if test $ac_cv_header_stdc = yes; then
     3497
     3498cat >>confdefs.h <<\_ACEOF
     3499#define STDC_HEADERS 1
     3500_ACEOF
     3501
     3502fi
     3503
     3504# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3505
     3506
     3507
     3508
     3509
     3510
     3511
     3512
     3513
     3514for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3515          inttypes.h stdint.h unistd.h
     3516do
     3517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3518echo "$as_me:$LINENO: checking for $ac_header" >&5
     3519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3520if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3521  echo $ECHO_N "(cached) $ECHO_C" >&6
     3522else
     3523  cat >conftest.$ac_ext <<_ACEOF
     3524/* confdefs.h.  */
     3525_ACEOF
     3526cat confdefs.h >>conftest.$ac_ext
     3527cat >>conftest.$ac_ext <<_ACEOF
     3528/* end confdefs.h.  */
     3529$ac_includes_default
     3530
     3531#include <$ac_header>
     3532_ACEOF
     3533rm -f conftest.$ac_objext
     3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3535  (eval $ac_compile) 2>conftest.er1
     3536  ac_status=$?
     3537  grep -v '^ *+' conftest.er1 >conftest.err
     3538  rm -f conftest.er1
     3539  cat conftest.err >&5
     3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3541  (exit $ac_status); } &&
     3542     { ac_try='test -z "$ac_c_werror_flag"
     3543             || test ! -s conftest.err'
     3544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3545  (eval $ac_try) 2>&5
     3546  ac_status=$?
     3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3548  (exit $ac_status); }; } &&
     3549     { ac_try='test -s conftest.$ac_objext'
     3550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3551  (eval $ac_try) 2>&5
     3552  ac_status=$?
     3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3554  (exit $ac_status); }; }; then
     3555  eval "$as_ac_Header=yes"
     3556else
     3557  echo "$as_me: failed program was:" >&5
     3558sed 's/^/| /' conftest.$ac_ext >&5
     3559
     3560eval "$as_ac_Header=no"
     3561fi
     3562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3563fi
     3564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3566if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3567  cat >>confdefs.h <<_ACEOF
     3568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3569_ACEOF
     3570
     3571fi
     3572
     3573done
     3574
     3575
     3576if test "${ac_cv_header_minix_config_h+set}" = set; then
     3577  echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3578echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3579if test "${ac_cv_header_minix_config_h+set}" = set; then
     3580  echo $ECHO_N "(cached) $ECHO_C" >&6
     3581fi
     3582echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3583echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3584else
     3585  # Is the header compilable?
     3586echo "$as_me:$LINENO: checking minix/config.h usability" >&5
     3587echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
     3588cat >conftest.$ac_ext <<_ACEOF
     3589/* confdefs.h.  */
     3590_ACEOF
     3591cat confdefs.h >>conftest.$ac_ext
     3592cat >>conftest.$ac_ext <<_ACEOF
     3593/* end confdefs.h.  */
     3594$ac_includes_default
     3595#include <minix/config.h>
     3596_ACEOF
     3597rm -f conftest.$ac_objext
     3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3599  (eval $ac_compile) 2>conftest.er1
     3600  ac_status=$?
     3601  grep -v '^ *+' conftest.er1 >conftest.err
     3602  rm -f conftest.er1
     3603  cat conftest.err >&5
     3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3605  (exit $ac_status); } &&
     3606     { ac_try='test -z "$ac_c_werror_flag"
     3607             || test ! -s conftest.err'
     3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3609  (eval $ac_try) 2>&5
     3610  ac_status=$?
     3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3612  (exit $ac_status); }; } &&
     3613     { ac_try='test -s conftest.$ac_objext'
     3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3615  (eval $ac_try) 2>&5
     3616  ac_status=$?
     3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3618  (exit $ac_status); }; }; then
     3619  ac_header_compiler=yes
     3620else
     3621  echo "$as_me: failed program was:" >&5
     3622sed 's/^/| /' conftest.$ac_ext >&5
     3623
     3624ac_header_compiler=no
     3625fi
     3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3628echo "${ECHO_T}$ac_header_compiler" >&6
     3629
     3630# Is the header present?
     3631echo "$as_me:$LINENO: checking minix/config.h presence" >&5
     3632echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
     3633cat >conftest.$ac_ext <<_ACEOF
     3634/* confdefs.h.  */
     3635_ACEOF
     3636cat confdefs.h >>conftest.$ac_ext
     3637cat >>conftest.$ac_ext <<_ACEOF
     3638/* end confdefs.h.  */
     3639#include <minix/config.h>
     3640_ACEOF
     3641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3642  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3643  ac_status=$?
     3644  grep -v '^ *+' conftest.er1 >conftest.err
     3645  rm -f conftest.er1
     3646  cat conftest.err >&5
     3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3648  (exit $ac_status); } >/dev/null; then
     3649  if test -s conftest.err; then
     3650    ac_cpp_err=$ac_c_preproc_warn_flag
     3651    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3652  else
     3653    ac_cpp_err=
     3654  fi
     3655else
     3656  ac_cpp_err=yes
     3657fi
     3658if test -z "$ac_cpp_err"; then
     3659  ac_header_preproc=yes
     3660else
     3661  echo "$as_me: failed program was:" >&5
     3662sed 's/^/| /' conftest.$ac_ext >&5
     3663
     3664  ac_header_preproc=no
     3665fi
     3666rm -f conftest.err conftest.$ac_ext
     3667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     3668echo "${ECHO_T}$ac_header_preproc" >&6
     3669
     3670# So?  What about this header?
     3671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     3672  yes:no: )
     3673    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
     3674echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     3675    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
     3676echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
     3677    ac_header_preproc=yes
     3678    ;;
     3679  no:yes:* )
     3680    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
     3681echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
     3682    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
     3683echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
     3684    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
     3685echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
     3686    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
     3687echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     3688    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
     3689echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
     3690    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
     3691echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
     3692    (
     3693      cat <<\_ASBOX
     3694## ------------------------------------------ ##
     3695## Report this to the AC_PACKAGE_NAME lists.  ##
     3696## ------------------------------------------ ##
     3697_ASBOX
     3698    ) |
     3699      sed "s/^/$as_me: WARNING:     /" >&2
     3700    ;;
     3701esac
     3702echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3703echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3704if test "${ac_cv_header_minix_config_h+set}" = set; then
     3705  echo $ECHO_N "(cached) $ECHO_C" >&6
     3706else
     3707  ac_cv_header_minix_config_h=$ac_header_preproc
     3708fi
     3709echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3710echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3711
     3712fi
     3713if test $ac_cv_header_minix_config_h = yes; then
     3714  MINIX=yes
     3715else
     3716  MINIX=
     3717fi
     3718
     3719
     3720if test "$MINIX" = yes; then
     3721
     3722cat >>confdefs.h <<\_ACEOF
     3723#define _POSIX_SOURCE 1
     3724_ACEOF
     3725
     3726
     3727cat >>confdefs.h <<\_ACEOF
     3728#define _POSIX_1_SOURCE 2
     3729_ACEOF
     3730
     3731
     3732cat >>confdefs.h <<\_ACEOF
     3733#define _MINIX 1
     3734_ACEOF
     3735
     3736fi
     3737
     3738echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
     3739echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     3740if test "${ac_cv_prog_cc_stdc+set}" = set; then
     3741  echo $ECHO_N "(cached) $ECHO_C" >&6
     3742else
     3743  ac_cv_prog_cc_stdc=no
     3744ac_save_CFLAGS="$CFLAGS"
     3745# Don't try gcc -ansi; that turns off useful extensions and
     3746# breaks some systems' header files.
     3747# AIX           -qlanglvl=ansi
     3748# Ultrix and OSF/1  -std1
     3749# HP-UX         -Aa -D_HPUX_SOURCE
     3750# SVR4          -Xc
     3751for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
     3752do
     3753  CFLAGS="$ac_save_CFLAGS $ac_arg"
     3754  cat >conftest.$ac_ext <<_ACEOF
     3755/* confdefs.h.  */
     3756_ACEOF
     3757cat confdefs.h >>conftest.$ac_ext
     3758cat >>conftest.$ac_ext <<_ACEOF
     3759/* end confdefs.h.  */
     3760#if !defined(__STDC__) || __STDC__ != 1
     3761choke me
     3762#endif
     3763
     3764int
     3765main ()
     3766{
     3767int test (int i, double x);
     3768struct s1 {int (*f) (int a);};
     3769struct s2 {int (*f) (double a);};
     3770  ;
     3771  return 0;
     3772}
     3773_ACEOF
     3774rm -f conftest.$ac_objext
     3775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3776  (eval $ac_compile) 2>conftest.er1
     3777  ac_status=$?
     3778  grep -v '^ *+' conftest.er1 >conftest.err
     3779  rm -f conftest.er1
     3780  cat conftest.err >&5
     3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3782  (exit $ac_status); } &&
     3783     { ac_try='test -z "$ac_c_werror_flag"
     3784             || test ! -s conftest.err'
     3785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3786  (eval $ac_try) 2>&5
     3787  ac_status=$?
     3788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3789  (exit $ac_status); }; } &&
     3790     { ac_try='test -s conftest.$ac_objext'
     3791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3792  (eval $ac_try) 2>&5
     3793  ac_status=$?
     3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3795  (exit $ac_status); }; }; then
     3796  ac_cv_prog_cc_stdc="$ac_arg"; break
     3797else
     3798  echo "$as_me: failed program was:" >&5
     3799sed 's/^/| /' conftest.$ac_ext >&5
     3800
     3801fi
     3802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3803done
     3804CFLAGS="$ac_save_CFLAGS"
     3805
     3806fi
     3807
     3808echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     3809echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     3810case "x$ac_cv_prog_cc_stdc" in
     3811  x|xno) ;;
     3812  *) CC="$CC $ac_cv_prog_cc_stdc" ;;
     3813esac
     3814
     3815
     3816echo "$as_me:$LINENO: checking for function prototypes" >&5
     3817echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     3818if test "$ac_cv_prog_cc_stdc" != no; then
     3819  echo "$as_me:$LINENO: result: yes" >&5
     3820echo "${ECHO_T}yes" >&6
     3821  cat >>confdefs.h <<\_ACEOF
     3822#define PROTOTYPES 1
     3823_ACEOF
     3824
     3825  U= ANSI2KNR=
     3826else
     3827  echo "$as_me:$LINENO: result: no" >&5
     3828echo "${ECHO_T}no" >&6
     3829  U=_ ANSI2KNR=ansi2knr
     3830fi
     3831
     3832echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    26813833echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    26823834if test "${ac_cv_c_const+set}" = set; then
     
    26843836else
    26853837  cat >conftest.$ac_ext <<_ACEOF
    2686 #line 2686 "configure"
    2687 #include "confdefs.h"
     3838/* confdefs.h.  */
     3839_ACEOF
     3840cat confdefs.h >>conftest.$ac_ext
     3841cat >>conftest.$ac_ext <<_ACEOF
     3842/* end confdefs.h.  */
    26883843
    26893844int
     
    27423897_ACEOF
    27433898rm -f conftest.$ac_objext
    2744 if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5
    2745   (eval $ac_compile) 2>&5
    2746   ac_status=$?
    2747   echo "$as_me:2747: \$? = $ac_status" >&5
     3899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3900  (eval $ac_compile) 2>conftest.er1
     3901  ac_status=$?
     3902  grep -v '^ *+' conftest.er1 >conftest.err
     3903  rm -f conftest.er1
     3904  cat conftest.err >&5
     3905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    27483906  (exit $ac_status); } &&
    2749          { ac_try='test -s conftest.$ac_objext'
    2750   { (eval echo "$as_me:2750: \"$ac_try\"") >&5
    2751   (eval $ac_try) 2>&5
    2752   ac_status=$?
    2753   echo "$as_me:2753: \$? = $ac_status" >&5
     3907     { ac_try='test -z "$ac_c_werror_flag"
     3908             || test ! -s conftest.err'
     3909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3910  (eval $ac_try) 2>&5
     3911  ac_status=$?
     3912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3913  (exit $ac_status); }; } &&
     3914     { ac_try='test -s conftest.$ac_objext'
     3915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3916  (eval $ac_try) 2>&5
     3917  ac_status=$?
     3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    27543919  (exit $ac_status); }; }; then
    27553920  ac_cv_c_const=yes
    27563921else
    27573922  echo "$as_me: failed program was:" >&5
    2758 cat conftest.$ac_ext >&5
     3923sed 's/^/| /' conftest.$ac_ext >&5
     3924
    27593925ac_cv_c_const=no
    27603926fi
    2761 rm -f conftest.$ac_objext conftest.$ac_ext
    2762 fi
    2763 echo "$as_me:2763: result: $ac_cv_c_const" >&5
     3927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3928fi
     3929echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    27643930echo "${ECHO_T}$ac_cv_c_const" >&6
    27653931if test $ac_cv_c_const = no; then
    27663932
    2767 cat >>confdefs.h <<\EOF
     3933cat >>confdefs.h <<\_ACEOF
    27683934#define const
    2769 EOF
    2770 
    2771 fi
    2772 
    2773 echo "$as_me:2773: checking for ANSI C header files" >&5
    2774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    2775 if test "${ac_cv_header_stdc+set}" = set; then
    2776   echo $ECHO_N "(cached) $ECHO_C" >&6
    2777 else
    2778   cat >conftest.$ac_ext <<_ACEOF
    2779 #line 2779 "configure"
    2780 #include "confdefs.h"
    2781 #include <stdlib.h>
    2782 #include <stdarg.h>
    2783 #include <string.h>
    2784 #include <float.h>
    2785 
    2786 _ACEOF
    2787 if { (eval echo "$as_me:2787: \"$ac_cpp conftest.$ac_ext\"") >&5
    2788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2789   ac_status=$?
    2790   egrep -v '^ *\+' conftest.er1 >conftest.err
    2791   rm -f conftest.er1
    2792   cat conftest.err >&5
    2793   echo "$as_me:2793: \$? = $ac_status" >&5
    2794   (exit $ac_status); } >/dev/null; then
    2795   if test -s conftest.err; then
    2796     ac_cpp_err=$ac_c_preproc_warn_flag
    2797   else
    2798     ac_cpp_err=
    2799   fi
    2800 else
    2801   ac_cpp_err=yes
    2802 fi
    2803 if test -z "$ac_cpp_err"; then
    2804   ac_cv_header_stdc=yes
    2805 else
    2806   echo "$as_me: failed program was:" >&5
    2807   cat conftest.$ac_ext >&5
    2808   ac_cv_header_stdc=no
    2809 fi
    2810 rm -f conftest.err conftest.$ac_ext
    2811 
    2812 if test $ac_cv_header_stdc = yes; then
    2813   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2814   cat >conftest.$ac_ext <<_ACEOF
    2815 #line 2815 "configure"
    2816 #include "confdefs.h"
    2817 #include <string.h>
    2818 
    2819 _ACEOF
    2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2821   egrep "memchr" >/dev/null 2>&1; then
    2822   :
    2823 else
    2824   ac_cv_header_stdc=no
    2825 fi
    2826 rm -f conftest*
    2827 
    2828 fi
    2829 
    2830 if test $ac_cv_header_stdc = yes; then
    2831   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2832   cat >conftest.$ac_ext <<_ACEOF
    2833 #line 2833 "configure"
    2834 #include "confdefs.h"
    2835 #include <stdlib.h>
    2836 
    2837 _ACEOF
    2838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2839   egrep "free" >/dev/null 2>&1; then
    2840   :
    2841 else
    2842   ac_cv_header_stdc=no
    2843 fi
    2844 rm -f conftest*
    2845 
    2846 fi
    2847 
    2848 if test $ac_cv_header_stdc = yes; then
    2849   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2850   if test "$cross_compiling" = yes; then
    2851   :
    2852 else
    2853   cat >conftest.$ac_ext <<_ACEOF
    2854 #line 2854 "configure"
    2855 #include "confdefs.h"
    2856 #include <ctype.h>
    2857 #if ((' ' & 0x0FF) == 0x020)
    2858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    2860 #else
    2861 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    2862                      || ('j' <= (c) && (c) <= 'r') \
    2863                      || ('s' <= (c) && (c) <= 'z'))
    2864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    2865 #endif
    2866 
    2867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2868 int
    2869 main ()
    2870 {
    2871   int i;
    2872   for (i = 0; i < 256; i++)
    2873     if (XOR (islower (i), ISLOWER (i))
    2874         || toupper (i) != TOUPPER (i))
    2875       exit(2);
    2876   exit (0);
    2877 }
    2878 _ACEOF
    2879 rm -f conftest$ac_exeext
    2880 if { (eval echo "$as_me:2880: \"$ac_link\"") >&5
    2881   (eval $ac_link) 2>&5
    2882   ac_status=$?
    2883   echo "$as_me:2883: \$? = $ac_status" >&5
    2884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2885   { (eval echo "$as_me:2885: \"$ac_try\"") >&5
    2886   (eval $ac_try) 2>&5
    2887   ac_status=$?
    2888   echo "$as_me:2888: \$? = $ac_status" >&5
    2889   (exit $ac_status); }; }; then
    2890   :
    2891 else
    2892   echo "$as_me: program exited with status $ac_status" >&5
    2893 echo "$as_me: failed program was:" >&5
    2894 cat conftest.$ac_ext >&5
    2895 ac_cv_header_stdc=no
    2896 fi
    2897 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    2898 fi
    2899 fi
    2900 fi
    2901 echo "$as_me:2901: result: $ac_cv_header_stdc" >&5
    2902 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    2903 if test $ac_cv_header_stdc = yes; then
    2904 
    2905 cat >>confdefs.h <<\EOF
    2906 #define STDC_HEADERS 1
    2907 EOF
    2908 
    2909 fi
    2910 
    2911 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
    2912 do
    2913 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    2914 echo "$as_me:2914: checking for $ac_header" >&5
    2915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2916 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    2917   echo $ECHO_N "(cached) $ECHO_C" >&6
    2918 else
    2919   cat >conftest.$ac_ext <<_ACEOF
    2920 #line 2920 "configure"
    2921 #include "confdefs.h"
    2922 #include <$ac_header>
    2923 _ACEOF
    2924 if { (eval echo "$as_me:2924: \"$ac_cpp conftest.$ac_ext\"") >&5
    2925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2926   ac_status=$?
    2927   egrep -v '^ *\+' conftest.er1 >conftest.err
    2928   rm -f conftest.er1
    2929   cat conftest.err >&5
    2930   echo "$as_me:2930: \$? = $ac_status" >&5
    2931   (exit $ac_status); } >/dev/null; then
    2932   if test -s conftest.err; then
    2933     ac_cpp_err=$ac_c_preproc_warn_flag
    2934   else
    2935     ac_cpp_err=
    2936   fi
    2937 else
    2938   ac_cpp_err=yes
    2939 fi
    2940 if test -z "$ac_cpp_err"; then
    2941   eval "$ac_ac_Header=yes"
    2942 else
    2943   echo "$as_me: failed program was:" >&5
    2944   cat conftest.$ac_ext >&5
    2945   eval "$ac_ac_Header=no"
    2946 fi
    2947 rm -f conftest.err conftest.$ac_ext
    2948 fi
    2949 echo "$as_me:2949: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    2950 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    2951 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    2952   cat >>confdefs.h <<EOF
    2953 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    2954 EOF
    2955 
    2956 fi
    2957 done
    2958 
    2959 echo "$as_me:2959: checking for off_t" >&5
     3935_ACEOF
     3936
     3937fi
     3938
     3939echo "$as_me:$LINENO: checking for off_t" >&5
    29603940echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    29613941if test "${ac_cv_type_off_t+set}" = set; then
     
    29633943else
    29643944  cat >conftest.$ac_ext <<_ACEOF
    2965 #line 2965 "configure"
    2966 #include "confdefs.h"
     3945/* confdefs.h.  */
     3946_ACEOF
     3947cat confdefs.h >>conftest.$ac_ext
     3948cat >>conftest.$ac_ext <<_ACEOF
     3949/* end confdefs.h.  */
    29673950$ac_includes_default
    29683951int
     
    29783961_ACEOF
    29793962rm -f conftest.$ac_objext
    2980 if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5
    2981   (eval $ac_compile) 2>&5
    2982   ac_status=$?
    2983   echo "$as_me:2983: \$? = $ac_status" >&5
     3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3964  (eval $ac_compile) 2>conftest.er1
     3965  ac_status=$?
     3966  grep -v '^ *+' conftest.er1 >conftest.err
     3967  rm -f conftest.er1
     3968  cat conftest.err >&5
     3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29843970  (exit $ac_status); } &&
    2985          { ac_try='test -s conftest.$ac_objext'
    2986   { (eval echo "$as_me:2986: \"$ac_try\"") >&5
    2987   (eval $ac_try) 2>&5
    2988   ac_status=$?
    2989   echo "$as_me:2989: \$? = $ac_status" >&5
     3971     { ac_try='test -z "$ac_c_werror_flag"
     3972             || test ! -s conftest.err'
     3973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3974  (eval $ac_try) 2>&5
     3975  ac_status=$?
     3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3977  (exit $ac_status); }; } &&
     3978     { ac_try='test -s conftest.$ac_objext'
     3979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3980  (eval $ac_try) 2>&5
     3981  ac_status=$?
     3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29903983  (exit $ac_status); }; }; then
    29913984  ac_cv_type_off_t=yes
    29923985else
    29933986  echo "$as_me: failed program was:" >&5
    2994 cat conftest.$ac_ext >&5
     3987sed 's/^/| /' conftest.$ac_ext >&5
     3988
    29953989ac_cv_type_off_t=no
    29963990fi
    2997 rm -f conftest.$ac_objext conftest.$ac_ext
    2998 fi
    2999 echo "$as_me:2999: result: $ac_cv_type_off_t" >&5
     3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3992fi
     3993echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    30003994echo "${ECHO_T}$ac_cv_type_off_t" >&6
    30013995if test $ac_cv_type_off_t = yes; then
     
    30033997else
    30043998
    3005 cat >>confdefs.h <<EOF
     3999cat >>confdefs.h <<_ACEOF
    30064000#define off_t long
    3007 EOF
    3008 
    3009 fi
    3010 
    3011 echo "$as_me:3011: checking for size_t" >&5
     4001_ACEOF
     4002
     4003fi
     4004
     4005echo "$as_me:$LINENO: checking for size_t" >&5
    30124006echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    30134007if test "${ac_cv_type_size_t+set}" = set; then
     
    30154009else
    30164010  cat >conftest.$ac_ext <<_ACEOF
    3017 #line 3017 "configure"
    3018 #include "confdefs.h"
     4011/* confdefs.h.  */
     4012_ACEOF
     4013cat confdefs.h >>conftest.$ac_ext
     4014cat >>conftest.$ac_ext <<_ACEOF
     4015/* end confdefs.h.  */
    30194016$ac_includes_default
    30204017int
     
    30304027_ACEOF
    30314028rm -f conftest.$ac_objext
    3032 if { (eval echo "$as_me:3032: \"$ac_compile\"") >&5
    3033   (eval $ac_compile) 2>&5
    3034   ac_status=$?
    3035   echo "$as_me:3035: \$? = $ac_status" >&5
     4029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4030  (eval $ac_compile) 2>conftest.er1
     4031  ac_status=$?
     4032  grep -v '^ *+' conftest.er1 >conftest.err
     4033  rm -f conftest.er1
     4034  cat conftest.err >&5
     4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30364036  (exit $ac_status); } &&
    3037          { ac_try='test -s conftest.$ac_objext'
    3038   { (eval echo "$as_me:3038: \"$ac_try\"") >&5
    3039   (eval $ac_try) 2>&5
    3040   ac_status=$?
    3041   echo "$as_me:3041: \$? = $ac_status" >&5
     4037     { ac_try='test -z "$ac_c_werror_flag"
     4038             || test ! -s conftest.err'
     4039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4040  (eval $ac_try) 2>&5
     4041  ac_status=$?
     4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4043  (exit $ac_status); }; } &&
     4044     { ac_try='test -s conftest.$ac_objext'
     4045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4046  (eval $ac_try) 2>&5
     4047  ac_status=$?
     4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30424049  (exit $ac_status); }; }; then
    30434050  ac_cv_type_size_t=yes
    30444051else
    30454052  echo "$as_me: failed program was:" >&5
    3046 cat conftest.$ac_ext >&5
     4053sed 's/^/| /' conftest.$ac_ext >&5
     4054
    30474055ac_cv_type_size_t=no
    30484056fi
    3049 rm -f conftest.$ac_objext conftest.$ac_ext
    3050 fi
    3051 echo "$as_me:3051: result: $ac_cv_type_size_t" >&5
     4057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4058fi
     4059echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    30524060echo "${ECHO_T}$ac_cv_type_size_t" >&6
    30534061if test $ac_cv_type_size_t = yes; then
     
    30554063else
    30564064
    3057 cat >>confdefs.h <<EOF
     4065cat >>confdefs.h <<_ACEOF
    30584066#define size_t unsigned
    3059 EOF
    3060 
    3061 fi
    3062 
    3063 echo "$as_me:3063: checking whether time.h and sys/time.h may both be included" >&5
     4067_ACEOF
     4068
     4069fi
     4070
     4071echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    30644072echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    30654073if test "${ac_cv_header_time+set}" = set; then
     
    30674075else
    30684076  cat >conftest.$ac_ext <<_ACEOF
    3069 #line 3069 "configure"
    3070 #include "confdefs.h"
     4077/* confdefs.h.  */
     4078_ACEOF
     4079cat confdefs.h >>conftest.$ac_ext
     4080cat >>conftest.$ac_ext <<_ACEOF
     4081/* end confdefs.h.  */
    30714082#include <sys/types.h>
    30724083#include <sys/time.h>
     
    30764087main ()
    30774088{
    3078 struct tm *tp;
     4089if ((struct tm *) 0)
     4090return 0;
    30794091  ;
    30804092  return 0;
     
    30824094_ACEOF
    30834095rm -f conftest.$ac_objext
    3084 if { (eval echo "$as_me:3084: \"$ac_compile\"") >&5
    3085   (eval $ac_compile) 2>&5
    3086   ac_status=$?
    3087   echo "$as_me:3087: \$? = $ac_status" >&5
     4096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4097  (eval $ac_compile) 2>conftest.er1
     4098  ac_status=$?
     4099  grep -v '^ *+' conftest.er1 >conftest.err
     4100  rm -f conftest.er1
     4101  cat conftest.err >&5
     4102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30884103  (exit $ac_status); } &&
    3089          { ac_try='test -s conftest.$ac_objext'
    3090   { (eval echo "$as_me:3090: \"$ac_try\"") >&5
    3091   (eval $ac_try) 2>&5
    3092   ac_status=$?
    3093   echo "$as_me:3093: \$? = $ac_status" >&5
     4104     { ac_try='test -z "$ac_c_werror_flag"
     4105             || test ! -s conftest.err'
     4106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4107  (eval $ac_try) 2>&5
     4108  ac_status=$?
     4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4110  (exit $ac_status); }; } &&
     4111     { ac_try='test -s conftest.$ac_objext'
     4112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4113  (eval $ac_try) 2>&5
     4114  ac_status=$?
     4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30944116  (exit $ac_status); }; }; then
    30954117  ac_cv_header_time=yes
    30964118else
    30974119  echo "$as_me: failed program was:" >&5
    3098 cat conftest.$ac_ext >&5
     4120sed 's/^/| /' conftest.$ac_ext >&5
     4121
    30994122ac_cv_header_time=no
    31004123fi
    3101 rm -f conftest.$ac_objext conftest.$ac_ext
    3102 fi
    3103 echo "$as_me:3103: result: $ac_cv_header_time" >&5
     4124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4125fi
     4126echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    31044127echo "${ECHO_T}$ac_cv_header_time" >&6
    31054128if test $ac_cv_header_time = yes; then
    31064129
    3107 cat >>confdefs.h <<\EOF
     4130cat >>confdefs.h <<\_ACEOF
    31084131#define TIME_WITH_SYS_TIME 1
    3109 EOF
    3110 
    3111 fi
    3112 
    3113 echo "$as_me:3113: checking whether struct tm is in sys/time.h or time.h" >&5
     4132_ACEOF
     4133
     4134fi
     4135
     4136echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    31144137echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    31154138if test "${ac_cv_struct_tm+set}" = set; then
     
    31174140else
    31184141  cat >conftest.$ac_ext <<_ACEOF
    3119 #line 3119 "configure"
    3120 #include "confdefs.h"
     4142/* confdefs.h.  */
     4143_ACEOF
     4144cat confdefs.h >>conftest.$ac_ext
     4145cat >>conftest.$ac_ext <<_ACEOF
     4146/* end confdefs.h.  */
    31214147#include <sys/types.h>
    31224148#include <time.h>
     
    31314157_ACEOF
    31324158rm -f conftest.$ac_objext
    3133 if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5
    3134   (eval $ac_compile) 2>&5
    3135   ac_status=$?
    3136   echo "$as_me:3136: \$? = $ac_status" >&5
     4159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4160  (eval $ac_compile) 2>conftest.er1
     4161  ac_status=$?
     4162  grep -v '^ *+' conftest.er1 >conftest.err
     4163  rm -f conftest.er1
     4164  cat conftest.err >&5
     4165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31374166  (exit $ac_status); } &&
    3138          { ac_try='test -s conftest.$ac_objext'
    3139   { (eval echo "$as_me:3139: \"$ac_try\"") >&5
    3140   (eval $ac_try) 2>&5
    3141   ac_status=$?
    3142   echo "$as_me:3142: \$? = $ac_status" >&5
     4167     { ac_try='test -z "$ac_c_werror_flag"
     4168             || test ! -s conftest.err'
     4169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4170  (eval $ac_try) 2>&5
     4171  ac_status=$?
     4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4173  (exit $ac_status); }; } &&
     4174     { ac_try='test -s conftest.$ac_objext'
     4175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4176  (eval $ac_try) 2>&5
     4177  ac_status=$?
     4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31434179  (exit $ac_status); }; }; then
    31444180  ac_cv_struct_tm=time.h
    31454181else
    31464182  echo "$as_me: failed program was:" >&5
    3147 cat conftest.$ac_ext >&5
     4183sed 's/^/| /' conftest.$ac_ext >&5
     4184
    31484185ac_cv_struct_tm=sys/time.h
    31494186fi
    3150 rm -f conftest.$ac_objext conftest.$ac_ext
    3151 fi
    3152 echo "$as_me:3152: result: $ac_cv_struct_tm" >&5
     4187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4188fi
     4189echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    31534190echo "${ECHO_T}$ac_cv_struct_tm" >&6
    31544191if test $ac_cv_struct_tm = sys/time.h; then
    31554192
    3156 cat >>confdefs.h <<\EOF
     4193cat >>confdefs.h <<\_ACEOF
    31574194#define TM_IN_SYS_TIME 1
    3158 EOF
    3159 
    3160 fi
     4195_ACEOF
     4196
     4197fi
     4198
    31614199
    31624200if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    31634201cat >conftest.$ac_ext <<_ACEOF
    3164 #line 3164 "configure"
    3165 #include "confdefs.h"
     4202/* confdefs.h.  */
     4203_ACEOF
     4204cat confdefs.h >>conftest.$ac_ext
     4205cat >>conftest.$ac_ext <<_ACEOF
     4206/* end confdefs.h.  */
    31664207#include <stdio.h>
    31674208
     
    31754216_ACEOF
    31764217rm -f conftest.$ac_objext
    3177 if { (eval echo "$as_me:3177: \"$ac_compile\"") >&5
    3178   (eval $ac_compile) 2>&5
    3179   ac_status=$?
    3180   echo "$as_me:3180: \$? = $ac_status" >&5
     4218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4219  (eval $ac_compile) 2>conftest.er1
     4220  ac_status=$?
     4221  grep -v '^ *+' conftest.er1 >conftest.err
     4222  rm -f conftest.er1
     4223  cat conftest.err >&5
     4224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31814225  (exit $ac_status); } &&
    3182          { ac_try='test -s conftest.$ac_objext'
    3183   { (eval echo "$as_me:3183: \"$ac_try\"") >&5
    3184   (eval $ac_try) 2>&5
    3185   ac_status=$?
    3186   echo "$as_me:3186: \$? = $ac_status" >&5
     4226     { ac_try='test -z "$ac_c_werror_flag"
     4227             || test ! -s conftest.err'
     4228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4229  (eval $ac_try) 2>&5
     4230  ac_status=$?
     4231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4232  (exit $ac_status); }; } &&
     4233     { ac_try='test -s conftest.$ac_objext'
     4234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4235  (eval $ac_try) 2>&5
     4236  ac_status=$?
     4237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31874238  (exit $ac_status); }; }; then
    31884239  :
    31894240else
    31904241  echo "$as_me: failed program was:" >&5
    3191 cat conftest.$ac_ext >&5
     4242sed 's/^/| /' conftest.$ac_ext >&5
     4243
    31924244CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    31934245fi
    3194 rm -f conftest.$ac_objext conftest.$ac_ext
    3195 fi
    3196 
    3197 echo "$as_me:3197: checking for main in -lm" >&5
     4246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4247fi
     4248
     4249
     4250
     4251echo "$as_me:$LINENO: checking for main in -lm" >&5
    31984252echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    31994253if test "${ac_cv_lib_m_main+set}" = set; then
     
    32034257LIBS="-lm  $LIBS"
    32044258cat >conftest.$ac_ext <<_ACEOF
    3205 #line 3205 "configure"
    3206 #include "confdefs.h"
     4259/* confdefs.h.  */
     4260_ACEOF
     4261cat confdefs.h >>conftest.$ac_ext
     4262cat >>conftest.$ac_ext <<_ACEOF
     4263/* end confdefs.h.  */
     4264
    32074265
    32084266int
     
    32154273_ACEOF
    32164274rm -f conftest.$ac_objext conftest$ac_exeext
    3217 if { (eval echo "$as_me:3217: \"$ac_link\"") >&5
    3218   (eval $ac_link) 2>&5
    3219   ac_status=$?
    3220   echo "$as_me:3220: \$? = $ac_status" >&5
     4275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4276  (eval $ac_link) 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
    32214282  (exit $ac_status); } &&
    3222          { ac_try='test -s conftest$ac_exeext'
    3223   { (eval echo "$as_me:3223: \"$ac_try\"") >&5
    3224   (eval $ac_try) 2>&5
    3225   ac_status=$?
    3226   echo "$as_me:3226: \$? = $ac_status" >&5
     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_exeext'
     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
    32274295  (exit $ac_status); }; }; then
    32284296  ac_cv_lib_m_main=yes
    32294297else
    32304298  echo "$as_me: failed program was:" >&5
    3231 cat conftest.$ac_ext >&5
     4299sed 's/^/| /' conftest.$ac_ext >&5
     4300
    32324301ac_cv_lib_m_main=no
    32334302fi
    3234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4303rm -f conftest.err conftest.$ac_objext \
     4304      conftest$ac_exeext conftest.$ac_ext
    32354305LIBS=$ac_check_lib_save_LIBS
    32364306fi
    3237 echo "$as_me:3237: result: $ac_cv_lib_m_main" >&5
     4307echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    32384308echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    32394309if test $ac_cv_lib_m_main = yes; then
    3240   cat >>confdefs.h <<EOF
     4310  cat >>confdefs.h <<_ACEOF
    32414311#define HAVE_LIBM 1
    3242 EOF
     4312_ACEOF
    32434313
    32444314  LIBS="-lm $LIBS"
    32454315
    32464316fi
     4317
     4318
     4319
     4320
     4321
     4322
    32474323
    32484324ac_header_dirent=no
    32494325for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    3250   ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
    3251 echo "$as_me:3251: checking for $ac_hdr that defines DIR" >&5
     4326  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     4327echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    32524328echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    3253 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     4329if eval "test \"\${$as_ac_Header+set}\" = set"; then
    32544330  echo $ECHO_N "(cached) $ECHO_C" >&6
    32554331else
    32564332  cat >conftest.$ac_ext <<_ACEOF
    3257 #line 3257 "configure"
    3258 #include "confdefs.h"
     4333/* confdefs.h.  */
     4334_ACEOF
     4335cat confdefs.h >>conftest.$ac_ext
     4336cat >>conftest.$ac_ext <<_ACEOF
     4337/* end confdefs.h.  */
    32594338#include <sys/types.h>
    32604339#include <$ac_hdr>
     
    32634342main ()
    32644343{
    3265 DIR *dirp = 0;
     4344if ((DIR *) 0)
     4345return 0;
    32664346  ;
    32674347  return 0;
     
    32694349_ACEOF
    32704350rm -f conftest.$ac_objext
    3271 if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5
    3272   (eval $ac_compile) 2>&5
    3273   ac_status=$?
    3274   echo "$as_me:3274: \$? = $ac_status" >&5
     4351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4352  (eval $ac_compile) 2>conftest.er1
     4353  ac_status=$?
     4354  grep -v '^ *+' conftest.er1 >conftest.err
     4355  rm -f conftest.er1
     4356  cat conftest.err >&5
     4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32754358  (exit $ac_status); } &&
    3276          { ac_try='test -s conftest.$ac_objext'
    3277   { (eval echo "$as_me:3277: \"$ac_try\"") >&5
    3278   (eval $ac_try) 2>&5
    3279   ac_status=$?
    3280   echo "$as_me:3280: \$? = $ac_status" >&5
     4359     { ac_try='test -z "$ac_c_werror_flag"
     4360             || test ! -s conftest.err'
     4361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4362  (eval $ac_try) 2>&5
     4363  ac_status=$?
     4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4365  (exit $ac_status); }; } &&
     4366     { ac_try='test -s conftest.$ac_objext'
     4367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4368  (eval $ac_try) 2>&5
     4369  ac_status=$?
     4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32814371  (exit $ac_status); }; }; then
    3282   eval "$ac_ac_Header=yes"
     4372  eval "$as_ac_Header=yes"
    32834373else
    32844374  echo "$as_me: failed program was:" >&5
    3285 cat conftest.$ac_ext >&5
    3286 eval "$ac_ac_Header=no"
    3287 fi
    3288 rm -f conftest.$ac_objext conftest.$ac_ext
    3289 fi
    3290 echo "$as_me:3290: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3291 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3292 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3293   cat >>confdefs.h <<EOF
    3294 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
    3295 EOF
     4375sed 's/^/| /' conftest.$ac_ext >&5
     4376
     4377eval "$as_ac_Header=no"
     4378fi
     4379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4380fi
     4381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4383if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4384  cat >>confdefs.h <<_ACEOF
     4385#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     4386_ACEOF
    32964387
    32974388ac_header_dirent=$ac_hdr; break
     
    33014392# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    33024393if test $ac_header_dirent = dirent.h; then
    3303   echo "$as_me:3303: checking for opendir in -ldir" >&5
    3304 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
    3305 if test "${ac_cv_lib_dir_opendir+set}" = set; then
     4394  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4395echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4396if test "${ac_cv_search_opendir+set}" = set; then
    33064397  echo $ECHO_N "(cached) $ECHO_C" >&6
    33074398else
    3308   ac_check_lib_save_LIBS=$LIBS
    3309 LIBS="-ldir  $LIBS"
     4399  ac_func_search_save_LIBS=$LIBS
     4400ac_cv_search_opendir=no
    33104401cat >conftest.$ac_ext <<_ACEOF
    3311 #line 3311 "configure"
    3312 #include "confdefs.h"
     4402/* confdefs.h.  */
     4403_ACEOF
     4404cat confdefs.h >>conftest.$ac_ext
     4405cat >>conftest.$ac_ext <<_ACEOF
     4406/* end confdefs.h.  */
    33134407
    33144408/* Override any gcc2 internal prototype to avoid an error.  */
     
    33284422_ACEOF
    33294423rm -f conftest.$ac_objext conftest$ac_exeext
    3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5
    3331   (eval $ac_link) 2>&5
    3332   ac_status=$?
    3333   echo "$as_me:3333: \$? = $ac_status" >&5
     4424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4425  (eval $ac_link) 2>conftest.er1
     4426  ac_status=$?
     4427  grep -v '^ *+' conftest.er1 >conftest.err
     4428  rm -f conftest.er1
     4429  cat conftest.err >&5
     4430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33344431  (exit $ac_status); } &&
    3335          { ac_try='test -s conftest$ac_exeext'
    3336   { (eval echo "$as_me:3336: \"$ac_try\"") >&5
    3337   (eval $ac_try) 2>&5
    3338   ac_status=$?
    3339   echo "$as_me:3339: \$? = $ac_status" >&5
     4432     { ac_try='test -z "$ac_c_werror_flag"
     4433             || test ! -s conftest.err'
     4434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4435  (eval $ac_try) 2>&5
     4436  ac_status=$?
     4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4438  (exit $ac_status); }; } &&
     4439     { ac_try='test -s conftest$ac_exeext'
     4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4441  (eval $ac_try) 2>&5
     4442  ac_status=$?
     4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33404444  (exit $ac_status); }; }; then
    3341   ac_cv_lib_dir_opendir=yes
     4445  ac_cv_search_opendir="none required"
    33424446else
    33434447  echo "$as_me: failed program was:" >&5
    3344 cat conftest.$ac_ext >&5
    3345 ac_cv_lib_dir_opendir=no
    3346 fi
    3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3348 LIBS=$ac_check_lib_save_LIBS
    3349 fi
    3350 echo "$as_me:3350: result: $ac_cv_lib_dir_opendir" >&5
    3351 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
    3352 if test $ac_cv_lib_dir_opendir = yes; then
    3353   LIBS="$LIBS -ldir"
    3354 fi
    3355 
    3356 else
    3357   echo "$as_me:3357: checking for opendir in -lx" >&5
    3358 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
    3359 if test "${ac_cv_lib_x_opendir+set}" = set; then
    3360   echo $ECHO_N "(cached) $ECHO_C" >&6
    3361 else
    3362   ac_check_lib_save_LIBS=$LIBS
    3363 LIBS="-lx  $LIBS"
    3364 cat >conftest.$ac_ext <<_ACEOF
    3365 #line 3365 "configure"
    3366 #include "confdefs.h"
     4448sed 's/^/| /' conftest.$ac_ext >&5
     4449
     4450fi
     4451rm -f conftest.err conftest.$ac_objext \
     4452      conftest$ac_exeext conftest.$ac_ext
     4453if test "$ac_cv_search_opendir" = no; then
     4454  for ac_lib in dir; do
     4455    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4456    cat >conftest.$ac_ext <<_ACEOF
     4457/* confdefs.h.  */
     4458_ACEOF
     4459cat confdefs.h >>conftest.$ac_ext
     4460cat >>conftest.$ac_ext <<_ACEOF
     4461/* end confdefs.h.  */
    33674462
    33684463/* Override any gcc2 internal prototype to avoid an error.  */
     
    33824477_ACEOF
    33834478rm -f conftest.$ac_objext conftest$ac_exeext
    3384 if { (eval echo "$as_me:3384: \"$ac_link\"") >&5
    3385   (eval $ac_link) 2>&5
    3386   ac_status=$?
    3387   echo "$as_me:3387: \$? = $ac_status" >&5
     4479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4480  (eval $ac_link) 2>conftest.er1
     4481  ac_status=$?
     4482  grep -v '^ *+' conftest.er1 >conftest.err
     4483  rm -f conftest.er1
     4484  cat conftest.err >&5
     4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33884486  (exit $ac_status); } &&
    3389          { ac_try='test -s conftest$ac_exeext'
    3390   { (eval echo "$as_me:3390: \"$ac_try\"") >&5
    3391   (eval $ac_try) 2>&5
    3392   ac_status=$?
    3393   echo "$as_me:3393: \$? = $ac_status" >&5
     4487     { ac_try='test -z "$ac_c_werror_flag"
     4488             || test ! -s conftest.err'
     4489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4490  (eval $ac_try) 2>&5
     4491  ac_status=$?
     4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4493  (exit $ac_status); }; } &&
     4494     { ac_try='test -s conftest$ac_exeext'
     4495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4496  (eval $ac_try) 2>&5
     4497  ac_status=$?
     4498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33944499  (exit $ac_status); }; }; then
    3395   ac_cv_lib_x_opendir=yes
     4500  ac_cv_search_opendir="-l$ac_lib"
     4501break
    33964502else
    33974503  echo "$as_me: failed program was:" >&5
    3398 cat conftest.$ac_ext >&5
    3399 ac_cv_lib_x_opendir=no
    3400 fi
    3401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3402 LIBS=$ac_check_lib_save_LIBS
    3403 fi
    3404 echo "$as_me:3404: result: $ac_cv_lib_x_opendir" >&5
    3405 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
    3406 if test $ac_cv_lib_x_opendir = yes; then
    3407   LIBS="$LIBS -lx"
    3408 fi
    3409 
    3410 fi
    3411 
    3412 echo "$as_me:3412: checking for ANSI C header files" >&5
     4504sed 's/^/| /' conftest.$ac_ext >&5
     4505
     4506fi
     4507rm -f conftest.err conftest.$ac_objext \
     4508      conftest$ac_exeext conftest.$ac_ext
     4509  done
     4510fi
     4511LIBS=$ac_func_search_save_LIBS
     4512fi
     4513echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4514echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4515if test "$ac_cv_search_opendir" != no; then
     4516  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4517
     4518fi
     4519
     4520else
     4521  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4522echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4523if test "${ac_cv_search_opendir+set}" = set; then
     4524  echo $ECHO_N "(cached) $ECHO_C" >&6
     4525else
     4526  ac_func_search_save_LIBS=$LIBS
     4527ac_cv_search_opendir=no
     4528cat >conftest.$ac_ext <<_ACEOF
     4529/* confdefs.h.  */
     4530_ACEOF
     4531cat confdefs.h >>conftest.$ac_ext
     4532cat >>conftest.$ac_ext <<_ACEOF
     4533/* end confdefs.h.  */
     4534
     4535/* Override any gcc2 internal prototype to avoid an error.  */
     4536#ifdef __cplusplus
     4537extern "C"
     4538#endif
     4539/* We use char because int might match the return type of a gcc2
     4540   builtin and then its argument prototype would still apply.  */
     4541char opendir ();
     4542int
     4543main ()
     4544{
     4545opendir ();
     4546  ;
     4547  return 0;
     4548}
     4549_ACEOF
     4550rm -f conftest.$ac_objext conftest$ac_exeext
     4551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4552  (eval $ac_link) 2>conftest.er1
     4553  ac_status=$?
     4554  grep -v '^ *+' conftest.er1 >conftest.err
     4555  rm -f conftest.er1
     4556  cat conftest.err >&5
     4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4558  (exit $ac_status); } &&
     4559     { ac_try='test -z "$ac_c_werror_flag"
     4560             || test ! -s conftest.err'
     4561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4562  (eval $ac_try) 2>&5
     4563  ac_status=$?
     4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4565  (exit $ac_status); }; } &&
     4566     { ac_try='test -s conftest$ac_exeext'
     4567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4568  (eval $ac_try) 2>&5
     4569  ac_status=$?
     4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4571  (exit $ac_status); }; }; then
     4572  ac_cv_search_opendir="none required"
     4573else
     4574  echo "$as_me: failed program was:" >&5
     4575sed 's/^/| /' conftest.$ac_ext >&5
     4576
     4577fi
     4578rm -f conftest.err conftest.$ac_objext \
     4579      conftest$ac_exeext conftest.$ac_ext
     4580if test "$ac_cv_search_opendir" = no; then
     4581  for ac_lib in x; do
     4582    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4583    cat >conftest.$ac_ext <<_ACEOF
     4584/* confdefs.h.  */
     4585_ACEOF
     4586cat confdefs.h >>conftest.$ac_ext
     4587cat >>conftest.$ac_ext <<_ACEOF
     4588/* end confdefs.h.  */
     4589
     4590/* Override any gcc2 internal prototype to avoid an error.  */
     4591#ifdef __cplusplus
     4592extern "C"
     4593#endif
     4594/* We use char because int might match the return type of a gcc2
     4595   builtin and then its argument prototype would still apply.  */
     4596char opendir ();
     4597int
     4598main ()
     4599{
     4600opendir ();
     4601  ;
     4602  return 0;
     4603}
     4604_ACEOF
     4605rm -f conftest.$ac_objext conftest$ac_exeext
     4606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4607  (eval $ac_link) 2>conftest.er1
     4608  ac_status=$?
     4609  grep -v '^ *+' conftest.er1 >conftest.err
     4610  rm -f conftest.er1
     4611  cat conftest.err >&5
     4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4613  (exit $ac_status); } &&
     4614     { ac_try='test -z "$ac_c_werror_flag"
     4615             || test ! -s conftest.err'
     4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4617  (eval $ac_try) 2>&5
     4618  ac_status=$?
     4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4620  (exit $ac_status); }; } &&
     4621     { ac_try='test -s conftest$ac_exeext'
     4622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4623  (eval $ac_try) 2>&5
     4624  ac_status=$?
     4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4626  (exit $ac_status); }; }; then
     4627  ac_cv_search_opendir="-l$ac_lib"
     4628break
     4629else
     4630  echo "$as_me: failed program was:" >&5
     4631sed 's/^/| /' conftest.$ac_ext >&5
     4632
     4633fi
     4634rm -f conftest.err conftest.$ac_objext \
     4635      conftest$ac_exeext conftest.$ac_ext
     4636  done
     4637fi
     4638LIBS=$ac_func_search_save_LIBS
     4639fi
     4640echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4641echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4642if test "$ac_cv_search_opendir" != no; then
     4643  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4644
     4645fi
     4646
     4647fi
     4648
     4649echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    34134650echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    34144651if test "${ac_cv_header_stdc+set}" = set; then
     
    34164653else
    34174654  cat >conftest.$ac_ext <<_ACEOF
    3418 #line 3418 "configure"
    3419 #include "confdefs.h"
     4655/* confdefs.h.  */
     4656_ACEOF
     4657cat confdefs.h >>conftest.$ac_ext
     4658cat >>conftest.$ac_ext <<_ACEOF
     4659/* end confdefs.h.  */
    34204660#include <stdlib.h>
    34214661#include <stdarg.h>
     
    34234663#include <float.h>
    34244664
    3425 _ACEOF
    3426 if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5
    3427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3428   ac_status=$?
    3429   egrep -v '^ *\+' conftest.er1 >conftest.err
     4665int
     4666main ()
     4667{
     4668
     4669  ;
     4670  return 0;
     4671}
     4672_ACEOF
     4673rm -f conftest.$ac_objext
     4674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4675  (eval $ac_compile) 2>conftest.er1
     4676  ac_status=$?
     4677  grep -v '^ *+' conftest.er1 >conftest.err
    34304678  rm -f conftest.er1
    34314679  cat conftest.err >&5
    3432   echo "$as_me:3432: \$? = $ac_status" >&5
    3433   (exit $ac_status); } >/dev/null; then
    3434   if test -s conftest.err; then
    3435     ac_cpp_err=$ac_c_preproc_warn_flag
    3436   else
    3437     ac_cpp_err=
    3438   fi
    3439 else
    3440   ac_cpp_err=yes
    3441 fi
    3442 if test -z "$ac_cpp_err"; then
     4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4681  (exit $ac_status); } &&
     4682     { ac_try='test -z "$ac_c_werror_flag"
     4683             || test ! -s conftest.err'
     4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4685  (eval $ac_try) 2>&5
     4686  ac_status=$?
     4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4688  (exit $ac_status); }; } &&
     4689     { ac_try='test -s conftest.$ac_objext'
     4690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4691  (eval $ac_try) 2>&5
     4692  ac_status=$?
     4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4694  (exit $ac_status); }; }; then
    34434695  ac_cv_header_stdc=yes
    34444696else
    34454697  echo "$as_me: failed program was:" >&5
    3446   cat conftest.$ac_ext >&5
    3447   ac_cv_header_stdc=no
    3448 fi
    3449 rm -f conftest.err conftest.$ac_ext
     4698sed 's/^/| /' conftest.$ac_ext >&5
     4699
     4700ac_cv_header_stdc=no
     4701fi
     4702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    34504703
    34514704if test $ac_cv_header_stdc = yes; then
    34524705  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    34534706  cat >conftest.$ac_ext <<_ACEOF
    3454 #line 3454 "configure"
    3455 #include "confdefs.h"
     4707/* confdefs.h.  */
     4708_ACEOF
     4709cat confdefs.h >>conftest.$ac_ext
     4710cat >>conftest.$ac_ext <<_ACEOF
     4711/* end confdefs.h.  */
    34564712#include <string.h>
    34574713
    34584714_ACEOF
    34594715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3460   egrep "memchr" >/dev/null 2>&1; then
     4716  $EGREP "memchr" >/dev/null 2>&1; then
    34614717  :
    34624718else
     
    34704726  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    34714727  cat >conftest.$ac_ext <<_ACEOF
    3472 #line 3472 "configure"
    3473 #include "confdefs.h"
     4728/* confdefs.h.  */
     4729_ACEOF
     4730cat confdefs.h >>conftest.$ac_ext
     4731cat >>conftest.$ac_ext <<_ACEOF
     4732/* end confdefs.h.  */
    34744733#include <stdlib.h>
    34754734
    34764735_ACEOF
    34774736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3478   egrep "free" >/dev/null 2>&1; then
     4737  $EGREP "free" >/dev/null 2>&1; then
    34794738  :
    34804739else
     
    34914750else
    34924751  cat >conftest.$ac_ext <<_ACEOF
    3493 #line 3493 "configure"
    3494 #include "confdefs.h"
     4752/* confdefs.h.  */
     4753_ACEOF
     4754cat confdefs.h >>conftest.$ac_ext
     4755cat >>conftest.$ac_ext <<_ACEOF
     4756/* end confdefs.h.  */
    34954757#include <ctype.h>
    34964758#if ((' ' & 0x0FF) == 0x020)
     
    34984760# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    34994761#else
    3500 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    3501                      || ('j' <= (c) && (c) <= 'r') \
    3502                      || ('s' <= (c) && (c) <= 'z'))
     4762# define ISLOWER(c) \
     4763           (('a' <= (c) && (c) <= 'i') \
     4764             || ('j' <= (c) && (c) <= 'r') \
     4765             || ('s' <= (c) && (c) <= 'z'))
    35034766# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    35044767#endif
     
    35114774  for (i = 0; i < 256; i++)
    35124775    if (XOR (islower (i), ISLOWER (i))
    3513         || toupper (i) != TOUPPER (i))
     4776    || toupper (i) != TOUPPER (i))
    35144777      exit(2);
    35154778  exit (0);
     
    35174780_ACEOF
    35184781rm -f conftest$ac_exeext
    3519 if { (eval echo "$as_me:3519: \"$ac_link\"") >&5
     4782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    35204783  (eval $ac_link) 2>&5
    35214784  ac_status=$?
    3522   echo "$as_me:3522: \$? = $ac_status" >&5
     4785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35234786  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3524   { (eval echo "$as_me:3524: \"$ac_try\"") >&5
    3525   (eval $ac_try) 2>&5
    3526   ac_status=$?
    3527   echo "$as_me:3527: \$? = $ac_status" >&5
     4787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4788  (eval $ac_try) 2>&5
     4789  ac_status=$?
     4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35284791  (exit $ac_status); }; }; then
    35294792  :
     
    35314794  echo "$as_me: program exited with status $ac_status" >&5
    35324795echo "$as_me: failed program was:" >&5
    3533 cat conftest.$ac_ext >&5
     4796sed 's/^/| /' conftest.$ac_ext >&5
     4797
     4798( exit $ac_status )
    35344799ac_cv_header_stdc=no
    35354800fi
    3536 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3537 fi
    3538 fi
    3539 fi
    3540 echo "$as_me:3540: result: $ac_cv_header_stdc" >&5
     4801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4802fi
     4803fi
     4804fi
     4805echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    35414806echo "${ECHO_T}$ac_cv_header_stdc" >&6
    35424807if test $ac_cv_header_stdc = yes; then
    35434808
    3544 cat >>confdefs.h <<\EOF
     4809cat >>confdefs.h <<\_ACEOF
    35454810#define STDC_HEADERS 1
    3546 EOF
    3547 
    3548 fi
     4811_ACEOF
     4812
     4813fi
     4814
     4815
     4816
     4817
     4818
     4819
     4820
    35494821
    35504822for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
    35514823do
    3552 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    3553 echo "$as_me:3553: checking for $ac_header" >&5
     4824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4825if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4826  echo "$as_me:$LINENO: checking for $ac_header" >&5
    35544827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3555 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     4828if eval "test \"\${$as_ac_Header+set}\" = set"; then
    35564829  echo $ECHO_N "(cached) $ECHO_C" >&6
    3557 else
    3558   cat >conftest.$ac_ext <<_ACEOF
    3559 #line 3559 "configure"
    3560 #include "confdefs.h"
     4830fi
     4831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4833else
     4834  # Is the header compilable?
     4835echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4837cat >conftest.$ac_ext <<_ACEOF
     4838/* confdefs.h.  */
     4839_ACEOF
     4840cat confdefs.h >>conftest.$ac_ext
     4841cat >>conftest.$ac_ext <<_ACEOF
     4842/* end confdefs.h.  */
     4843$ac_includes_default
    35614844#include <$ac_header>
    35624845_ACEOF
    3563 if { (eval echo "$as_me:3563: \"$ac_cpp conftest.$ac_ext\"") >&5
    3564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3565   ac_status=$?
    3566   egrep -v '^ *\+' conftest.er1 >conftest.err
     4846rm -f conftest.$ac_objext
     4847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4848  (eval $ac_compile) 2>conftest.er1
     4849  ac_status=$?
     4850  grep -v '^ *+' conftest.er1 >conftest.err
    35674851  rm -f conftest.er1
    35684852  cat conftest.err >&5
    3569   echo "$as_me:3569: \$? = $ac_status" >&5
     4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4854  (exit $ac_status); } &&
     4855     { ac_try='test -z "$ac_c_werror_flag"
     4856             || test ! -s conftest.err'
     4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4858  (eval $ac_try) 2>&5
     4859  ac_status=$?
     4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4861  (exit $ac_status); }; } &&
     4862     { ac_try='test -s conftest.$ac_objext'
     4863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4864  (eval $ac_try) 2>&5
     4865  ac_status=$?
     4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4867  (exit $ac_status); }; }; then
     4868  ac_header_compiler=yes
     4869else
     4870  echo "$as_me: failed program was:" >&5
     4871sed 's/^/| /' conftest.$ac_ext >&5
     4872
     4873ac_header_compiler=no
     4874fi
     4875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4877echo "${ECHO_T}$ac_header_compiler" >&6
     4878
     4879# Is the header present?
     4880echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4882cat >conftest.$ac_ext <<_ACEOF
     4883/* confdefs.h.  */
     4884_ACEOF
     4885cat confdefs.h >>conftest.$ac_ext
     4886cat >>conftest.$ac_ext <<_ACEOF
     4887/* end confdefs.h.  */
     4888#include <$ac_header>
     4889_ACEOF
     4890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4891  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4892  ac_status=$?
     4893  grep -v '^ *+' conftest.er1 >conftest.err
     4894  rm -f conftest.er1
     4895  cat conftest.err >&5
     4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35704897  (exit $ac_status); } >/dev/null; then
    35714898  if test -s conftest.err; then
    35724899    ac_cpp_err=$ac_c_preproc_warn_flag
     4900    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    35734901  else
    35744902    ac_cpp_err=
     
    35784906fi
    35794907if test -z "$ac_cpp_err"; then
    3580   eval "$ac_ac_Header=yes"
     4908  ac_header_preproc=yes
    35814909else
    35824910  echo "$as_me: failed program was:" >&5
    3583   cat conftest.$ac_ext >&5
    3584   eval "$ac_ac_Header=no"
     4911sed 's/^/| /' conftest.$ac_ext >&5
     4912
     4913  ac_header_preproc=no
    35854914fi
    35864915rm -f conftest.err conftest.$ac_ext
    3587 fi
    3588 echo "$as_me:3588: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3589 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3590 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3591   cat >>confdefs.h <<EOF
    3592 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    3593 EOF
    3594 
    3595 fi
     4916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4917echo "${ECHO_T}$ac_header_preproc" >&6
     4918
     4919# So?  What about this header?
     4920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4921  yes:no: )
     4922    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4926    ac_header_preproc=yes
     4927    ;;
     4928  no:yes:* )
     4929    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4931    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4932echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4933    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4935    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4936echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4937    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4939    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4941    (
     4942      cat <<\_ASBOX
     4943## ------------------------------------------ ##
     4944## Report this to the AC_PACKAGE_NAME lists.  ##
     4945## ------------------------------------------ ##
     4946_ASBOX
     4947    ) |
     4948      sed "s/^/$as_me: WARNING:     /" >&2
     4949    ;;
     4950esac
     4951echo "$as_me:$LINENO: checking for $ac_header" >&5
     4952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4953if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4954  echo $ECHO_N "(cached) $ECHO_C" >&6
     4955else
     4956  eval "$as_ac_Header=\$ac_header_preproc"
     4957fi
     4958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4960
     4961fi
     4962if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4963  cat >>confdefs.h <<_ACEOF
     4964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4965_ACEOF
     4966
     4967fi
     4968
    35964969done
    35974970
    35984971cat >conftest.$ac_ext <<_ACEOF
    3599 #line 3599 "configure"
    3600 #include "confdefs.h"
     4972/* confdefs.h.  */
     4973_ACEOF
     4974cat confdefs.h >>conftest.$ac_ext
     4975cat >>conftest.$ac_ext <<_ACEOF
     4976/* end confdefs.h.  */
    36014977#include <stdio.h>
    36024978
    36034979_ACEOF
    36044980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3605   egrep "fread" >/dev/null 2>&1; then
    3606   cat >>confdefs.h <<\EOF
     4981  $EGREP "fread" >/dev/null 2>&1; then
     4982  cat >>confdefs.h <<\_ACEOF
    36074983#define HAVE_FREAD_DECL 1
    3608 EOF
     4984_ACEOF
    36094985
    36104986fi
     
    36124988
    36134989cat >conftest.$ac_ext <<_ACEOF
    3614 #line 3614 "configure"
    3615 #include "confdefs.h"
     4990/* confdefs.h.  */
     4991_ACEOF
     4992cat confdefs.h >>conftest.$ac_ext
     4993cat >>conftest.$ac_ext <<_ACEOF
     4994/* end confdefs.h.  */
    36164995#include <stdio.h>
    36174996
    36184997_ACEOF
    36194998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3620   egrep "fgetc" >/dev/null 2>&1; then
    3621   cat >>confdefs.h <<\EOF
     4999  $EGREP "fgetc" >/dev/null 2>&1; then
     5000  cat >>confdefs.h <<\_ACEOF
    36225001#define HAVE_FGETC_DECL 1
    3623 EOF
     5002_ACEOF
    36245003
    36255004fi
     
    36275006
    36285007cat >conftest.$ac_ext <<_ACEOF
    3629 #line 3629 "configure"
    3630 #include "confdefs.h"
     5008/* confdefs.h.  */
     5009_ACEOF
     5010cat confdefs.h >>conftest.$ac_ext
     5011cat >>conftest.$ac_ext <<_ACEOF
     5012/* end confdefs.h.  */
    36315013#include <sys/procfs.h>
    36325014
    36335015_ACEOF
    36345016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3635   egrep "pr_brksize" >/dev/null 2>&1; then
    3636   cat >>confdefs.h <<\EOF
     5017  $EGREP "pr_brksize" >/dev/null 2>&1; then
     5018  cat >>confdefs.h <<\_ACEOF
    36375019#define HAVE_PR_BRKSIZE 1
    3638 EOF
     5020_ACEOF
    36395021
    36405022fi
    36415023rm -f conftest*
     5024
    36425025
    36435026# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    36445027# for constant arguments.  Useless!
    3645 echo "$as_me:3645: checking for working alloca.h" >&5
     5028echo "$as_me:$LINENO: checking for working alloca.h" >&5
    36465029echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    36475030if test "${ac_cv_working_alloca_h+set}" = set; then
     
    36495032else
    36505033  cat >conftest.$ac_ext <<_ACEOF
    3651 #line 3651 "configure"
    3652 #include "confdefs.h"
     5034/* confdefs.h.  */
     5035_ACEOF
     5036cat confdefs.h >>conftest.$ac_ext
     5037cat >>conftest.$ac_ext <<_ACEOF
     5038/* end confdefs.h.  */
    36535039#include <alloca.h>
    36545040int
     
    36615047_ACEOF
    36625048rm -f conftest.$ac_objext conftest$ac_exeext
    3663 if { (eval echo "$as_me:3663: \"$ac_link\"") >&5
    3664   (eval $ac_link) 2>&5
    3665   ac_status=$?
    3666   echo "$as_me:3666: \$? = $ac_status" >&5
     5049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5050  (eval $ac_link) 2>conftest.er1
     5051  ac_status=$?
     5052  grep -v '^ *+' conftest.er1 >conftest.err
     5053  rm -f conftest.er1
     5054  cat conftest.err >&5
     5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    36675056  (exit $ac_status); } &&
    3668          { ac_try='test -s conftest$ac_exeext'
    3669   { (eval echo "$as_me:3669: \"$ac_try\"") >&5
    3670   (eval $ac_try) 2>&5
    3671   ac_status=$?
    3672   echo "$as_me:3672: \$? = $ac_status" >&5
     5057     { ac_try='test -z "$ac_c_werror_flag"
     5058             || test ! -s conftest.err'
     5059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5060  (eval $ac_try) 2>&5
     5061  ac_status=$?
     5062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5063  (exit $ac_status); }; } &&
     5064     { ac_try='test -s conftest$ac_exeext'
     5065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5066  (eval $ac_try) 2>&5
     5067  ac_status=$?
     5068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    36735069  (exit $ac_status); }; }; then
    36745070  ac_cv_working_alloca_h=yes
    36755071else
    36765072  echo "$as_me: failed program was:" >&5
    3677 cat conftest.$ac_ext >&5
     5073sed 's/^/| /' conftest.$ac_ext >&5
     5074
    36785075ac_cv_working_alloca_h=no
    36795076fi
    3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3681 fi
    3682 echo "$as_me:3682: result: $ac_cv_working_alloca_h" >&5
     5077rm -f conftest.err conftest.$ac_objext \
     5078      conftest$ac_exeext conftest.$ac_ext
     5079fi
     5080echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    36835081echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
    36845082if test $ac_cv_working_alloca_h = yes; then
    36855083
    3686 cat >>confdefs.h <<\EOF
     5084cat >>confdefs.h <<\_ACEOF
    36875085#define HAVE_ALLOCA_H 1
    3688 EOF
    3689 
    3690 fi
    3691 
    3692 echo "$as_me:3692: checking for alloca" >&5
     5086_ACEOF
     5087
     5088fi
     5089
     5090echo "$as_me:$LINENO: checking for alloca" >&5
    36935091echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    36945092if test "${ac_cv_func_alloca_works+set}" = set; then
     
    36965094else
    36975095  cat >conftest.$ac_ext <<_ACEOF
    3698 #line 3698 "configure"
    3699 #include "confdefs.h"
     5096/* confdefs.h.  */
     5097_ACEOF
     5098cat confdefs.h >>conftest.$ac_ext
     5099cat >>conftest.$ac_ext <<_ACEOF
     5100/* end confdefs.h.  */
    37005101#ifdef __GNUC__
    37015102# define alloca __builtin_alloca
     
    37285129_ACEOF
    37295130rm -f conftest.$ac_objext conftest$ac_exeext
    3730 if { (eval echo "$as_me:3730: \"$ac_link\"") >&5
    3731   (eval $ac_link) 2>&5
    3732   ac_status=$?
    3733   echo "$as_me:3733: \$? = $ac_status" >&5
     5131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5132  (eval $ac_link) 2>conftest.er1
     5133  ac_status=$?
     5134  grep -v '^ *+' conftest.er1 >conftest.err
     5135  rm -f conftest.er1
     5136  cat conftest.err >&5
     5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    37345138  (exit $ac_status); } &&
    3735          { ac_try='test -s conftest$ac_exeext'
    3736   { (eval echo "$as_me:3736: \"$ac_try\"") >&5
    3737   (eval $ac_try) 2>&5
    3738   ac_status=$?
    3739   echo "$as_me:3739: \$? = $ac_status" >&5
     5139     { ac_try='test -z "$ac_c_werror_flag"
     5140             || test ! -s conftest.err'
     5141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5142  (eval $ac_try) 2>&5
     5143  ac_status=$?
     5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5145  (exit $ac_status); }; } &&
     5146     { ac_try='test -s conftest$ac_exeext'
     5147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5148  (eval $ac_try) 2>&5
     5149  ac_status=$?
     5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    37405151  (exit $ac_status); }; }; then
    37415152  ac_cv_func_alloca_works=yes
    37425153else
    37435154  echo "$as_me: failed program was:" >&5
    3744 cat conftest.$ac_ext >&5
     5155sed 's/^/| /' conftest.$ac_ext >&5
     5156
    37455157ac_cv_func_alloca_works=no
    37465158fi
    3747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3748 fi
    3749 echo "$as_me:3749: result: $ac_cv_func_alloca_works" >&5
     5159rm -f conftest.err conftest.$ac_objext \
     5160      conftest$ac_exeext conftest.$ac_ext
     5161fi
     5162echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    37505163echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
    37515164
    37525165if test $ac_cv_func_alloca_works = yes; then
    37535166
    3754 cat >>confdefs.h <<\EOF
     5167cat >>confdefs.h <<\_ACEOF
    37555168#define HAVE_ALLOCA 1
    3756 EOF
     5169_ACEOF
    37575170
    37585171else
     
    37645177ALLOCA=alloca.$ac_objext
    37655178
    3766 cat >>confdefs.h <<\EOF
     5179cat >>confdefs.h <<\_ACEOF
    37675180#define C_ALLOCA 1
    3768 EOF
    3769 
    3770 echo "$as_me:3770: checking whether \`alloca.c' needs Cray hooks" >&5
     5181_ACEOF
     5182
     5183
     5184echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    37715185echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    37725186if test "${ac_cv_os_cray+set}" = set; then
     
    37745188else
    37755189  cat >conftest.$ac_ext <<_ACEOF
    3776 #line 3776 "configure"
    3777 #include "confdefs.h"
     5190/* confdefs.h.  */
     5191_ACEOF
     5192cat confdefs.h >>conftest.$ac_ext
     5193cat >>conftest.$ac_ext <<_ACEOF
     5194/* end confdefs.h.  */
    37785195#if defined(CRAY) && ! defined(CRAY2)
    37795196webecray
     
    37845201_ACEOF
    37855202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3786   egrep "webecray" >/dev/null 2>&1; then
     5203  $EGREP "webecray" >/dev/null 2>&1; then
    37875204  ac_cv_os_cray=yes
    37885205else
     
    37925209
    37935210fi
    3794 echo "$as_me:3794: result: $ac_cv_os_cray" >&5
     5211echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    37955212echo "${ECHO_T}$ac_cv_os_cray" >&6
    37965213if test $ac_cv_os_cray = yes; then
    37975214  for ac_func in _getb67 GETB67 getb67; do
    3798     ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    3799 echo "$as_me:3799: checking for $ac_func" >&5
     5215    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5216echo "$as_me:$LINENO: checking for $ac_func" >&5
    38005217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    3801 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5218if eval "test \"\${$as_ac_var+set}\" = set"; then
    38025219  echo $ECHO_N "(cached) $ECHO_C" >&6
    38035220else
    38045221  cat >conftest.$ac_ext <<_ACEOF
    3805 #line 3805 "configure"
    3806 #include "confdefs.h"
     5222/* confdefs.h.  */
     5223_ACEOF
     5224cat confdefs.h >>conftest.$ac_ext
     5225cat >>conftest.$ac_ext <<_ACEOF
     5226/* end confdefs.h.  */
     5227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5228   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5229#define $ac_func innocuous_$ac_func
     5230
    38075231/* System header to define __stub macros and hopefully few prototypes,
    3808     which can conflict with char $ac_func (); below.  */
    3809 #include <assert.h>
     5232    which can conflict with char $ac_func (); below.
     5233    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5234    <limits.h> exists even on freestanding compilers.  */
     5235
     5236#ifdef __STDC__
     5237# include <limits.h>
     5238#else
     5239# include <assert.h>
     5240#endif
     5241
     5242#undef $ac_func
     5243
    38105244/* Override any gcc2 internal prototype to avoid an error.  */
    38115245#ifdef __cplusplus
    38125246extern "C"
     5247{
    38135248#endif
    38145249/* We use char because int might match the return type of a gcc2
    38155250   builtin and then its argument prototype would still apply.  */
    38165251char $ac_func ();
    3817 char (*f) ();
    3818 
    3819 int
    3820 main ()
    3821 {
    38225252/* The GNU C library defines this for functions which it implements
    38235253    to always fail with ENOSYS.  Some functions are actually named
     
    38265256choke me
    38275257#else
    3828 f = $ac_func;
     5258char (*f) () = $ac_func;
    38295259#endif
    3830 
     5260#ifdef __cplusplus
     5261}
     5262#endif
     5263
     5264int
     5265main ()
     5266{
     5267return f != $ac_func;
    38315268  ;
    38325269  return 0;
     
    38345271_ACEOF
    38355272rm -f conftest.$ac_objext conftest$ac_exeext
    3836 if { (eval echo "$as_me:3836: \"$ac_link\"") >&5
    3837   (eval $ac_link) 2>&5
    3838   ac_status=$?
    3839   echo "$as_me:3839: \$? = $ac_status" >&5
     5273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5274  (eval $ac_link) 2>conftest.er1
     5275  ac_status=$?
     5276  grep -v '^ *+' conftest.er1 >conftest.err
     5277  rm -f conftest.er1
     5278  cat conftest.err >&5
     5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38405280  (exit $ac_status); } &&
    3841          { ac_try='test -s conftest$ac_exeext'
    3842   { (eval echo "$as_me:3842: \"$ac_try\"") >&5
    3843   (eval $ac_try) 2>&5
    3844   ac_status=$?
    3845   echo "$as_me:3845: \$? = $ac_status" >&5
     5281     { ac_try='test -z "$ac_c_werror_flag"
     5282             || test ! -s conftest.err'
     5283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5284  (eval $ac_try) 2>&5
     5285  ac_status=$?
     5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5287  (exit $ac_status); }; } &&
     5288     { ac_try='test -s conftest$ac_exeext'
     5289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5290  (eval $ac_try) 2>&5
     5291  ac_status=$?
     5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38465293  (exit $ac_status); }; }; then
    3847   eval "$ac_ac_var=yes"
     5294  eval "$as_ac_var=yes"
    38485295else
    38495296  echo "$as_me: failed program was:" >&5
    3850 cat conftest.$ac_ext >&5
    3851 eval "$ac_ac_var=no"
    3852 fi
    3853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3854 fi
    3855 echo "$as_me:3855: result: `eval echo '${'$ac_ac_var'}'`" >&5
    3856 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    3857 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    3858 
    3859 cat >>confdefs.h <<EOF
     5297sed 's/^/| /' conftest.$ac_ext >&5
     5298
     5299eval "$as_ac_var=no"
     5300fi
     5301rm -f conftest.err conftest.$ac_objext \
     5302      conftest$ac_exeext conftest.$ac_ext
     5303fi
     5304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5306if test `eval echo '${'$as_ac_var'}'` = yes; then
     5307
     5308cat >>confdefs.h <<_ACEOF
    38605309#define CRAY_STACKSEG_END $ac_func
    3861 EOF
     5310_ACEOF
    38625311
    38635312    break
     
    38675316fi
    38685317
    3869 echo "$as_me:3869: checking stack direction for C alloca" >&5
     5318echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    38705319echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    38715320if test "${ac_cv_c_stack_direction+set}" = set; then
     
    38765325else
    38775326  cat >conftest.$ac_ext <<_ACEOF
    3878 #line 3878 "configure"
    3879 #include "confdefs.h"
     5327/* confdefs.h.  */
     5328_ACEOF
     5329cat confdefs.h >>conftest.$ac_ext
     5330cat >>conftest.$ac_ext <<_ACEOF
     5331/* end confdefs.h.  */
    38805332int
    38815333find_stack_direction ()
     
    38995351_ACEOF
    39005352rm -f conftest$ac_exeext
    3901 if { (eval echo "$as_me:3901: \"$ac_link\"") >&5
     5353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    39025354  (eval $ac_link) 2>&5
    39035355  ac_status=$?
    3904   echo "$as_me:3904: \$? = $ac_status" >&5
     5356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39055357  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3906   { (eval echo "$as_me:3906: \"$ac_try\"") >&5
    3907   (eval $ac_try) 2>&5
    3908   ac_status=$?
    3909   echo "$as_me:3909: \$? = $ac_status" >&5
     5358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5359  (eval $ac_try) 2>&5
     5360  ac_status=$?
     5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39105362  (exit $ac_status); }; }; then
    39115363  ac_cv_c_stack_direction=1
     
    39135365  echo "$as_me: program exited with status $ac_status" >&5
    39145366echo "$as_me: failed program was:" >&5
    3915 cat conftest.$ac_ext >&5
     5367sed 's/^/| /' conftest.$ac_ext >&5
     5368
     5369( exit $ac_status )
    39165370ac_cv_c_stack_direction=-1
    39175371fi
    3918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3919 fi
    3920 fi
    3921 echo "$as_me:3921: result: $ac_cv_c_stack_direction" >&5
     5372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5373fi
     5374fi
     5375echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    39225376echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    39235377
    3924 cat >>confdefs.h <<EOF
     5378cat >>confdefs.h <<_ACEOF
    39255379#define STACK_DIRECTION $ac_cv_c_stack_direction
    3926 EOF
     5380_ACEOF
     5381
    39275382
    39285383fi
    39295384
    39305385if test $ac_cv_c_compiler_gnu = yes; then
    3931     echo "$as_me:3931: checking whether $CC needs -traditional" >&5
     5386    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    39325387echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    39335388if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     
    39365391    ac_pattern="Autoconf.*'x'"
    39375392  cat >conftest.$ac_ext <<_ACEOF
    3938 #line 3938 "configure"
    3939 #include "confdefs.h"
     5393/* confdefs.h.  */
     5394_ACEOF
     5395cat confdefs.h >>conftest.$ac_ext
     5396cat >>conftest.$ac_ext <<_ACEOF
     5397/* end confdefs.h.  */
    39405398#include <sgtty.h>
    39415399Autoconf TIOCGETP
    39425400_ACEOF
    39435401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3944   egrep "$ac_pattern" >/dev/null 2>&1; then
     5402  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    39455403  ac_cv_prog_gcc_traditional=yes
    39465404else
     
    39485406fi
    39495407rm -f conftest*
     5408
    39505409
    39515410  if test $ac_cv_prog_gcc_traditional = no; then
    39525411    cat >conftest.$ac_ext <<_ACEOF
    3953 #line 3953 "configure"
    3954 #include "confdefs.h"
     5412/* confdefs.h.  */
     5413_ACEOF
     5414cat confdefs.h >>conftest.$ac_ext
     5415cat >>conftest.$ac_ext <<_ACEOF
     5416/* end confdefs.h.  */
    39555417#include <termio.h>
    39565418Autoconf TCGETA
    39575419_ACEOF
    39585420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3959   egrep "$ac_pattern" >/dev/null 2>&1; then
     5421  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    39605422  ac_cv_prog_gcc_traditional=yes
    39615423fi
     
    39645426  fi
    39655427fi
    3966 echo "$as_me:3966: result: $ac_cv_prog_gcc_traditional" >&5
     5428echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    39675429echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    39685430  if test $ac_cv_prog_gcc_traditional = yes; then
     
    39715433fi
    39725434
    3973 echo "$as_me:3973: checking return type of signal handlers" >&5
     5435echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    39745436echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    39755437if test "${ac_cv_type_signal+set}" = set; then
     
    39775439else
    39785440  cat >conftest.$ac_ext <<_ACEOF
    3979 #line 3979 "configure"
    3980 #include "confdefs.h"
     5441/* confdefs.h.  */
     5442_ACEOF
     5443cat confdefs.h >>conftest.$ac_ext
     5444cat >>conftest.$ac_ext <<_ACEOF
     5445/* end confdefs.h.  */
    39815446#include <sys/types.h>
    39825447#include <signal.h>
     
    39995464_ACEOF
    40005465rm -f conftest.$ac_objext
    4001 if { (eval echo "$as_me:4001: \"$ac_compile\"") >&5
    4002   (eval $ac_compile) 2>&5
    4003   ac_status=$?
    4004   echo "$as_me:4004: \$? = $ac_status" >&5
     5466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5467  (eval $ac_compile) 2>conftest.er1
     5468  ac_status=$?
     5469  grep -v '^ *+' conftest.er1 >conftest.err
     5470  rm -f conftest.er1
     5471  cat conftest.err >&5
     5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40055473  (exit $ac_status); } &&
    4006          { ac_try='test -s conftest.$ac_objext'
    4007   { (eval echo "$as_me:4007: \"$ac_try\"") >&5
    4008   (eval $ac_try) 2>&5
    4009   ac_status=$?
    4010   echo "$as_me:4010: \$? = $ac_status" >&5
     5474     { ac_try='test -z "$ac_c_werror_flag"
     5475             || test ! -s conftest.err'
     5476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5477  (eval $ac_try) 2>&5
     5478  ac_status=$?
     5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5480  (exit $ac_status); }; } &&
     5481     { ac_try='test -s conftest.$ac_objext'
     5482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5483  (eval $ac_try) 2>&5
     5484  ac_status=$?
     5485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40115486  (exit $ac_status); }; }; then
    40125487  ac_cv_type_signal=void
    40135488else
    40145489  echo "$as_me: failed program was:" >&5
    4015 cat conftest.$ac_ext >&5
     5490sed 's/^/| /' conftest.$ac_ext >&5
     5491
    40165492ac_cv_type_signal=int
    40175493fi
    4018 rm -f conftest.$ac_objext conftest.$ac_ext
    4019 fi
    4020 echo "$as_me:4020: result: $ac_cv_type_signal" >&5
     5494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5495fi
     5496echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    40215497echo "${ECHO_T}$ac_cv_type_signal" >&6
    40225498
    4023 cat >>confdefs.h <<EOF
     5499cat >>confdefs.h <<_ACEOF
    40245500#define RETSIGTYPE $ac_cv_type_signal
    4025 EOF
     5501_ACEOF
     5502
     5503
    40265504
    40275505for ac_func in vprintf
    40285506do
    4029 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4030 echo "$as_me:4030: checking for $ac_func" >&5
     5507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5508echo "$as_me:$LINENO: checking for $ac_func" >&5
    40315509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4032 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5510if eval "test \"\${$as_ac_var+set}\" = set"; then
    40335511  echo $ECHO_N "(cached) $ECHO_C" >&6
    40345512else
    40355513  cat >conftest.$ac_ext <<_ACEOF
    4036 #line 4036 "configure"
    4037 #include "confdefs.h"
     5514/* confdefs.h.  */
     5515_ACEOF
     5516cat confdefs.h >>conftest.$ac_ext
     5517cat >>conftest.$ac_ext <<_ACEOF
     5518/* end confdefs.h.  */
     5519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5520   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5521#define $ac_func innocuous_$ac_func
     5522
    40385523/* System header to define __stub macros and hopefully few prototypes,
    4039     which can conflict with char $ac_func (); below.  */
    4040 #include <assert.h>
     5524    which can conflict with char $ac_func (); below.
     5525    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5526    <limits.h> exists even on freestanding compilers.  */
     5527
     5528#ifdef __STDC__
     5529# include <limits.h>
     5530#else
     5531# include <assert.h>
     5532#endif
     5533
     5534#undef $ac_func
     5535
    40415536/* Override any gcc2 internal prototype to avoid an error.  */
    40425537#ifdef __cplusplus
    40435538extern "C"
     5539{
    40445540#endif
    40455541/* We use char because int might match the return type of a gcc2
    40465542   builtin and then its argument prototype would still apply.  */
    40475543char $ac_func ();
    4048 char (*f) ();
    4049 
    4050 int
    4051 main ()
    4052 {
    40535544/* The GNU C library defines this for functions which it implements
    40545545    to always fail with ENOSYS.  Some functions are actually named
     
    40575548choke me
    40585549#else
    4059 f = $ac_func;
     5550char (*f) () = $ac_func;
    40605551#endif
    4061 
     5552#ifdef __cplusplus
     5553}
     5554#endif
     5555
     5556int
     5557main ()
     5558{
     5559return f != $ac_func;
    40625560  ;
    40635561  return 0;
     
    40655563_ACEOF
    40665564rm -f conftest.$ac_objext conftest$ac_exeext
    4067 if { (eval echo "$as_me:4067: \"$ac_link\"") >&5
    4068   (eval $ac_link) 2>&5
    4069   ac_status=$?
    4070   echo "$as_me:4070: \$? = $ac_status" >&5
     5565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5566  (eval $ac_link) 2>conftest.er1
     5567  ac_status=$?
     5568  grep -v '^ *+' conftest.er1 >conftest.err
     5569  rm -f conftest.er1
     5570  cat conftest.err >&5
     5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40715572  (exit $ac_status); } &&
    4072          { ac_try='test -s conftest$ac_exeext'
    4073   { (eval echo "$as_me:4073: \"$ac_try\"") >&5
    4074   (eval $ac_try) 2>&5
    4075   ac_status=$?
    4076   echo "$as_me:4076: \$? = $ac_status" >&5
     5573     { ac_try='test -z "$ac_c_werror_flag"
     5574             || test ! -s conftest.err'
     5575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5576  (eval $ac_try) 2>&5
     5577  ac_status=$?
     5578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5579  (exit $ac_status); }; } &&
     5580     { ac_try='test -s conftest$ac_exeext'
     5581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5582  (eval $ac_try) 2>&5
     5583  ac_status=$?
     5584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40775585  (exit $ac_status); }; }; then
    4078   eval "$ac_ac_var=yes"
     5586  eval "$as_ac_var=yes"
    40795587else
    40805588  echo "$as_me: failed program was:" >&5
    4081 cat conftest.$ac_ext >&5
    4082 eval "$ac_ac_var=no"
    4083 fi
    4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4085 fi
    4086 echo "$as_me:4086: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4087 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4088 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4089   cat >>confdefs.h <<EOF
    4090 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4091 EOF
    4092 
    4093 echo "$as_me:4093: checking for _doprnt" >&5
     5589sed 's/^/| /' conftest.$ac_ext >&5
     5590
     5591eval "$as_ac_var=no"
     5592fi
     5593rm -f conftest.err conftest.$ac_objext \
     5594      conftest$ac_exeext conftest.$ac_ext
     5595fi
     5596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5598if test `eval echo '${'$as_ac_var'}'` = yes; then
     5599  cat >>confdefs.h <<_ACEOF
     5600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5601_ACEOF
     5602
     5603echo "$as_me:$LINENO: checking for _doprnt" >&5
    40945604echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    40955605if test "${ac_cv_func__doprnt+set}" = set; then
     
    40975607else
    40985608  cat >conftest.$ac_ext <<_ACEOF
    4099 #line 4099 "configure"
    4100 #include "confdefs.h"
     5609/* confdefs.h.  */
     5610_ACEOF
     5611cat confdefs.h >>conftest.$ac_ext
     5612cat >>conftest.$ac_ext <<_ACEOF
     5613/* end confdefs.h.  */
     5614/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
     5615   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5616#define _doprnt innocuous__doprnt
     5617
    41015618/* System header to define __stub macros and hopefully few prototypes,
    4102     which can conflict with char _doprnt (); below.  */
    4103 #include <assert.h>
     5619    which can conflict with char _doprnt (); below.
     5620    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5621    <limits.h> exists even on freestanding compilers.  */
     5622
     5623#ifdef __STDC__
     5624# include <limits.h>
     5625#else
     5626# include <assert.h>
     5627#endif
     5628
     5629#undef _doprnt
     5630
    41045631/* Override any gcc2 internal prototype to avoid an error.  */
    41055632#ifdef __cplusplus
    41065633extern "C"
     5634{
    41075635#endif
    41085636/* We use char because int might match the return type of a gcc2
    41095637   builtin and then its argument prototype would still apply.  */
    41105638char _doprnt ();
    4111 char (*f) ();
    4112 
    4113 int
    4114 main ()
    4115 {
    41165639/* The GNU C library defines this for functions which it implements
    41175640    to always fail with ENOSYS.  Some functions are actually named
     
    41205643choke me
    41215644#else
    4122 f = _doprnt;
     5645char (*f) () = _doprnt;
    41235646#endif
    4124 
     5647#ifdef __cplusplus
     5648}
     5649#endif
     5650
     5651int
     5652main ()
     5653{
     5654return f != _doprnt;
    41255655  ;
    41265656  return 0;
     
    41285658_ACEOF
    41295659rm -f conftest.$ac_objext conftest$ac_exeext
    4130 if { (eval echo "$as_me:4130: \"$ac_link\"") >&5
    4131   (eval $ac_link) 2>&5
    4132   ac_status=$?
    4133   echo "$as_me:4133: \$? = $ac_status" >&5
     5660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5661  (eval $ac_link) 2>conftest.er1
     5662  ac_status=$?
     5663  grep -v '^ *+' conftest.er1 >conftest.err
     5664  rm -f conftest.er1
     5665  cat conftest.err >&5
     5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41345667  (exit $ac_status); } &&
    4135          { ac_try='test -s conftest$ac_exeext'
    4136   { (eval echo "$as_me:4136: \"$ac_try\"") >&5
    4137   (eval $ac_try) 2>&5
    4138   ac_status=$?
    4139   echo "$as_me:4139: \$? = $ac_status" >&5
     5668     { ac_try='test -z "$ac_c_werror_flag"
     5669             || test ! -s conftest.err'
     5670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5671  (eval $ac_try) 2>&5
     5672  ac_status=$?
     5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5674  (exit $ac_status); }; } &&
     5675     { ac_try='test -s conftest$ac_exeext'
     5676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5677  (eval $ac_try) 2>&5
     5678  ac_status=$?
     5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41405680  (exit $ac_status); }; }; then
    41415681  ac_cv_func__doprnt=yes
    41425682else
    41435683  echo "$as_me: failed program was:" >&5
    4144 cat conftest.$ac_ext >&5
     5684sed 's/^/| /' conftest.$ac_ext >&5
     5685
    41455686ac_cv_func__doprnt=no
    41465687fi
    4147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4148 fi
    4149 echo "$as_me:4149: result: $ac_cv_func__doprnt" >&5
     5688rm -f conftest.err conftest.$ac_objext \
     5689      conftest$ac_exeext conftest.$ac_ext
     5690fi
     5691echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    41505692echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    41515693if test $ac_cv_func__doprnt = yes; then
    41525694
    4153 cat >>confdefs.h <<\EOF
     5695cat >>confdefs.h <<\_ACEOF
    41545696#define HAVE_DOPRNT 1
    4155 EOF
     5697_ACEOF
    41565698
    41575699fi
     
    41595701fi
    41605702done
     5703
     5704
     5705
     5706
     5707
     5708
     5709
     5710
     5711
     5712
    41615713
    41625714for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
    41635715do
    4164 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4165 echo "$as_me:4165: checking for $ac_func" >&5
     5716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5717echo "$as_me:$LINENO: checking for $ac_func" >&5
    41665718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4167 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5719if eval "test \"\${$as_ac_var+set}\" = set"; then
    41685720  echo $ECHO_N "(cached) $ECHO_C" >&6
    41695721else
    41705722  cat >conftest.$ac_ext <<_ACEOF
    4171 #line 4171 "configure"
    4172 #include "confdefs.h"
     5723/* confdefs.h.  */
     5724_ACEOF
     5725cat confdefs.h >>conftest.$ac_ext
     5726cat >>conftest.$ac_ext <<_ACEOF
     5727/* end confdefs.h.  */
     5728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5729   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5730#define $ac_func innocuous_$ac_func
     5731
    41735732/* System header to define __stub macros and hopefully few prototypes,
    4174     which can conflict with char $ac_func (); below.  */
    4175 #include <assert.h>
     5733    which can conflict with char $ac_func (); below.
     5734    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5735    <limits.h> exists even on freestanding compilers.  */
     5736
     5737#ifdef __STDC__
     5738# include <limits.h>
     5739#else
     5740# include <assert.h>
     5741#endif
     5742
     5743#undef $ac_func
     5744
    41765745/* Override any gcc2 internal prototype to avoid an error.  */
    41775746#ifdef __cplusplus
    41785747extern "C"
     5748{
    41795749#endif
    41805750/* We use char because int might match the return type of a gcc2
    41815751   builtin and then its argument prototype would still apply.  */
    41825752char $ac_func ();
    4183 char (*f) ();
    4184 
    4185 int
    4186 main ()
    4187 {
    41885753/* The GNU C library defines this for functions which it implements
    41895754    to always fail with ENOSYS.  Some functions are actually named
     
    41925757choke me
    41935758#else
    4194 f = $ac_func;
     5759char (*f) () = $ac_func;
    41955760#endif
    4196 
     5761#ifdef __cplusplus
     5762}
     5763#endif
     5764
     5765int
     5766main ()
     5767{
     5768return f != $ac_func;
    41975769  ;
    41985770  return 0;
     
    42005772_ACEOF
    42015773rm -f conftest.$ac_objext conftest$ac_exeext
    4202 if { (eval echo "$as_me:4202: \"$ac_link\"") >&5
    4203   (eval $ac_link) 2>&5
    4204   ac_status=$?
    4205   echo "$as_me:4205: \$? = $ac_status" >&5
     5774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5775  (eval $ac_link) 2>conftest.er1
     5776  ac_status=$?
     5777  grep -v '^ *+' conftest.er1 >conftest.err
     5778  rm -f conftest.er1
     5779  cat conftest.err >&5
     5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42065781  (exit $ac_status); } &&
    4207          { ac_try='test -s conftest$ac_exeext'
    4208   { (eval echo "$as_me:4208: \"$ac_try\"") >&5
    4209   (eval $ac_try) 2>&5
    4210   ac_status=$?
    4211   echo "$as_me:4211: \$? = $ac_status" >&5
     5782     { ac_try='test -z "$ac_c_werror_flag"
     5783             || test ! -s conftest.err'
     5784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5785  (eval $ac_try) 2>&5
     5786  ac_status=$?
     5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5788  (exit $ac_status); }; } &&
     5789     { ac_try='test -s conftest$ac_exeext'
     5790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5791  (eval $ac_try) 2>&5
     5792  ac_status=$?
     5793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42125794  (exit $ac_status); }; }; then
    4213   eval "$ac_ac_var=yes"
     5795  eval "$as_ac_var=yes"
    42145796else
    42155797  echo "$as_me: failed program was:" >&5
    4216 cat conftest.$ac_ext >&5
    4217 eval "$ac_ac_var=no"
    4218 fi
    4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4220 fi
    4221 echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4222 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4223 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4224   cat >>confdefs.h <<EOF
    4225 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4226 EOF
     5798sed 's/^/| /' conftest.$ac_ext >&5
     5799
     5800eval "$as_ac_var=no"
     5801fi
     5802rm -f conftest.err conftest.$ac_objext \
     5803      conftest$ac_exeext conftest.$ac_ext
     5804fi
     5805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5807if test `eval echo '${'$as_ac_var'}'` = yes; then
     5808  cat >>confdefs.h <<_ACEOF
     5809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5810_ACEOF
    42275811
    42285812fi
    42295813done
     5814
     5815
     5816
    42305817
    42315818for ac_func in ftruncate strstr strcasecmp
    42325819do
    4233 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4234 echo "$as_me:4234: checking for $ac_func" >&5
     5820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5821echo "$as_me:$LINENO: checking for $ac_func" >&5
    42355822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4236 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5823if eval "test \"\${$as_ac_var+set}\" = set"; then
    42375824  echo $ECHO_N "(cached) $ECHO_C" >&6
    42385825else
    42395826  cat >conftest.$ac_ext <<_ACEOF
    4240 #line 4240 "configure"
    4241 #include "confdefs.h"
     5827/* confdefs.h.  */
     5828_ACEOF
     5829cat confdefs.h >>conftest.$ac_ext
     5830cat >>conftest.$ac_ext <<_ACEOF
     5831/* end confdefs.h.  */
     5832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5834#define $ac_func innocuous_$ac_func
     5835
    42425836/* System header to define __stub macros and hopefully few prototypes,
    4243     which can conflict with char $ac_func (); below.  */
    4244 #include <assert.h>
     5837    which can conflict with char $ac_func (); below.
     5838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5839    <limits.h> exists even on freestanding compilers.  */
     5840
     5841#ifdef __STDC__
     5842# include <limits.h>
     5843#else
     5844# include <assert.h>
     5845#endif
     5846
     5847#undef $ac_func
     5848
    42455849/* Override any gcc2 internal prototype to avoid an error.  */
    42465850#ifdef __cplusplus
    42475851extern "C"
     5852{
    42485853#endif
    42495854/* We use char because int might match the return type of a gcc2
    42505855   builtin and then its argument prototype would still apply.  */
    42515856char $ac_func ();
    4252 char (*f) ();
    4253 
    4254 int
    4255 main ()
    4256 {
    42575857/* The GNU C library defines this for functions which it implements
    42585858    to always fail with ENOSYS.  Some functions are actually named
     
    42615861choke me
    42625862#else
    4263 f = $ac_func;
     5863char (*f) () = $ac_func;
    42645864#endif
    4265 
     5865#ifdef __cplusplus
     5866}
     5867#endif
     5868
     5869int
     5870main ()
     5871{
     5872return f != $ac_func;
    42665873  ;
    42675874  return 0;
     
    42695876_ACEOF
    42705877rm -f conftest.$ac_objext conftest$ac_exeext
    4271 if { (eval echo "$as_me:4271: \"$ac_link\"") >&5
    4272   (eval $ac_link) 2>&5
    4273   ac_status=$?
    4274   echo "$as_me:4274: \$? = $ac_status" >&5
     5878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5879  (eval $ac_link) 2>conftest.er1
     5880  ac_status=$?
     5881  grep -v '^ *+' conftest.er1 >conftest.err
     5882  rm -f conftest.er1
     5883  cat conftest.err >&5
     5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42755885  (exit $ac_status); } &&
    4276          { ac_try='test -s conftest$ac_exeext'
    4277   { (eval echo "$as_me:4277: \"$ac_try\"") >&5
    4278   (eval $ac_try) 2>&5
    4279   ac_status=$?
    4280   echo "$as_me:4280: \$? = $ac_status" >&5
     5886     { ac_try='test -z "$ac_c_werror_flag"
     5887             || test ! -s conftest.err'
     5888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5889  (eval $ac_try) 2>&5
     5890  ac_status=$?
     5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5892  (exit $ac_status); }; } &&
     5893     { ac_try='test -s conftest$ac_exeext'
     5894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5895  (eval $ac_try) 2>&5
     5896  ac_status=$?
     5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42815898  (exit $ac_status); }; }; then
    4282   eval "$ac_ac_var=yes"
     5899  eval "$as_ac_var=yes"
    42835900else
    42845901  echo "$as_me: failed program was:" >&5
    4285 cat conftest.$ac_ext >&5
    4286 eval "$ac_ac_var=no"
    4287 fi
    4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4289 fi
    4290 echo "$as_me:4290: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4291 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4292 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4293   cat >>confdefs.h <<EOF
    4294 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4295 EOF
    4296 
    4297 else
    4298   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
     5902sed 's/^/| /' conftest.$ac_ext >&5
     5903
     5904eval "$as_ac_var=no"
     5905fi
     5906rm -f conftest.err conftest.$ac_objext \
     5907      conftest$ac_exeext conftest.$ac_ext
     5908fi
     5909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5911if test `eval echo '${'$as_ac_var'}'` = yes; then
     5912  cat >>confdefs.h <<_ACEOF
     5913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5914_ACEOF
     5915
     5916else
     5917  case $LIBOBJS in
     5918    "$ac_func.$ac_objext"   | \
     5919  *" $ac_func.$ac_objext"   | \
     5920    "$ac_func.$ac_objext "* | \
     5921  *" $ac_func.$ac_objext "* ) ;;
     5922  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     5923esac
     5924
    42995925fi
    43005926done
     5927
     5928
     5929
    43015930
    43025931# *** Custom checking (based on GNU tar configure.in) ***
    43035932# ---------------------------------------------------------------------------
    4304 echo "$as_me:4304: checking for HP-UX needing gmalloc" >&5
     5933echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
    43055934echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    43065935if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    4307   echo "$as_me:4307: result: yes" >&5
     5936  echo "$as_me:$LINENO: result: yes" >&5
    43085937echo "${ECHO_T}yes" >&6
    4309   LIBOBJS="$LIBOBJS gmalloc.o"
    4310   cat >>confdefs.h <<\EOF
     5938  case $LIBOBJS in
     5939    "gmalloc.$ac_objext"   | \
     5940  *" gmalloc.$ac_objext"   | \
     5941    "gmalloc.$ac_objext "* | \
     5942  *" gmalloc.$ac_objext "* ) ;;
     5943  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     5944esac
     5945
     5946  cat >>confdefs.h <<\_ACEOF
    43115947#define HAVE_VALLOC 1
    4312 EOF
    4313 
    4314 else
    4315   echo "$as_me:4315: result: no" >&5
     5948_ACEOF
     5949
     5950else
     5951  echo "$as_me:$LINENO: result: no" >&5
    43165952echo "${ECHO_T}no" >&6
    43175953
    43185954for ac_func in valloc
    43195955do
    4320 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4321 echo "$as_me:4321: checking for $ac_func" >&5
     5956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5957echo "$as_me:$LINENO: checking for $ac_func" >&5
    43225958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4323 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5959if eval "test \"\${$as_ac_var+set}\" = set"; then
    43245960  echo $ECHO_N "(cached) $ECHO_C" >&6
    43255961else
    43265962  cat >conftest.$ac_ext <<_ACEOF
    4327 #line 4327 "configure"
    4328 #include "confdefs.h"
     5963/* confdefs.h.  */
     5964_ACEOF
     5965cat confdefs.h >>conftest.$ac_ext
     5966cat >>conftest.$ac_ext <<_ACEOF
     5967/* end confdefs.h.  */
     5968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5969   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5970#define $ac_func innocuous_$ac_func
     5971
    43295972/* System header to define __stub macros and hopefully few prototypes,
    4330     which can conflict with char $ac_func (); below.  */
    4331 #include <assert.h>
     5973    which can conflict with char $ac_func (); below.
     5974    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5975    <limits.h> exists even on freestanding compilers.  */
     5976
     5977#ifdef __STDC__
     5978# include <limits.h>
     5979#else
     5980# include <assert.h>
     5981#endif
     5982
     5983#undef $ac_func
     5984
    43325985/* Override any gcc2 internal prototype to avoid an error.  */
    43335986#ifdef __cplusplus
    43345987extern "C"
     5988{
    43355989#endif
    43365990/* We use char because int might match the return type of a gcc2
    43375991   builtin and then its argument prototype would still apply.  */
    43385992char $ac_func ();
    4339 char (*f) ();
    4340 
    4341 int
    4342 main ()
    4343 {
    43445993/* The GNU C library defines this for functions which it implements
    43455994    to always fail with ENOSYS.  Some functions are actually named
     
    43485997choke me
    43495998#else
    4350 f = $ac_func;
     5999char (*f) () = $ac_func;
    43516000#endif
    4352 
     6001#ifdef __cplusplus
     6002}
     6003#endif
     6004
     6005int
     6006main ()
     6007{
     6008return f != $ac_func;
    43536009  ;
    43546010  return 0;
     
    43566012_ACEOF
    43576013rm -f conftest.$ac_objext conftest$ac_exeext
    4358 if { (eval echo "$as_me:4358: \"$ac_link\"") >&5
    4359   (eval $ac_link) 2>&5
    4360   ac_status=$?
    4361   echo "$as_me:4361: \$? = $ac_status" >&5
     6014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6015  (eval $ac_link) 2>conftest.er1
     6016  ac_status=$?
     6017  grep -v '^ *+' conftest.er1 >conftest.err
     6018  rm -f conftest.er1
     6019  cat conftest.err >&5
     6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    43626021  (exit $ac_status); } &&
    4363          { ac_try='test -s conftest$ac_exeext'
    4364   { (eval echo "$as_me:4364: \"$ac_try\"") >&5
    4365   (eval $ac_try) 2>&5
    4366   ac_status=$?
    4367   echo "$as_me:4367: \$? = $ac_status" >&5
     6022     { ac_try='test -z "$ac_c_werror_flag"
     6023             || test ! -s conftest.err'
     6024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6025  (eval $ac_try) 2>&5
     6026  ac_status=$?
     6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6028  (exit $ac_status); }; } &&
     6029     { ac_try='test -s conftest$ac_exeext'
     6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6031  (eval $ac_try) 2>&5
     6032  ac_status=$?
     6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    43686034  (exit $ac_status); }; }; then
    4369   eval "$ac_ac_var=yes"
     6035  eval "$as_ac_var=yes"
    43706036else
    43716037  echo "$as_me: failed program was:" >&5
    4372 cat conftest.$ac_ext >&5
    4373 eval "$ac_ac_var=no"
    4374 fi
    4375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4376 fi
    4377 echo "$as_me:4377: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4378 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4379 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4380   cat >>confdefs.h <<EOF
    4381 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4382 EOF
     6038sed 's/^/| /' conftest.$ac_ext >&5
     6039
     6040eval "$as_ac_var=no"
     6041fi
     6042rm -f conftest.err conftest.$ac_objext \
     6043      conftest$ac_exeext conftest.$ac_ext
     6044fi
     6045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6047if test `eval echo '${'$as_ac_var'}'` = yes; then
     6048  cat >>confdefs.h <<_ACEOF
     6049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6050_ACEOF
    43836051
    43846052fi
     
    43876055fi
    43886056
    4389 echo "$as_me:4389: checking if malloc debugging is wanted" >&5
     6057# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
     6058# a non-standard Path
     6059echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
     6060echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6061if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
     6062  echo "$as_me:$LINENO: result: yes" >&5
     6063echo "${ECHO_T}yes" >&6
     6064  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
     6065  JNISUFFIX="jnilib"
     6066  JNIFLAGS="-dynamiclib -fno-common -single_module"
     6067  LDFLAGS="-framework JavaVM"
     6068else
     6069  echo "$as_me:$LINENO: result: no" >&5
     6070echo "${ECHO_T}no" >&6
     6071  JNIINC=""
     6072  JNISUFFIX="so"
     6073  JNIFLAGS="-shared"
     6074fi
     6075
     6076
     6077
     6078
     6079echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
    43906080echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    43916081
     
    43946084  withval="$with_dmalloc"
    43956085  if test "$withval" = yes; then
    4396   echo "$as_me:4396: result: yes" >&5
     6086  echo "$as_me:$LINENO: result: yes" >&5
    43976087echo "${ECHO_T}yes" >&6
    4398   cat >>confdefs.h <<\EOF
     6088  cat >>confdefs.h <<\_ACEOF
    43996089#define WITH_DMALLOC 1
    4400 EOF
     6090_ACEOF
    44016091
    44026092  LIBS="$LIBS -ldmalloc"
    44036093  LDFLAGS="$LDFLAGS -g"
    44046094else
    4405   echo "$as_me:4405: result: no" >&5
     6095  echo "$as_me:$LINENO: result: no" >&5
    44066096echo "${ECHO_T}no" >&6
    44076097fi
    44086098else
    4409   echo "$as_me:4409: result: no" >&5
     6099  echo "$as_me:$LINENO: result: no" >&5
    44106100echo "${ECHO_T}no" >&6
    44116101fi;
    44126102
    4413 echo "$as_me:4413: checking which of rx or regex is wanted" >&5
     6103echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
    44146104echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    44156105
     
    44196109  if test "$withval" = yes; then
    44206110  ac_with_regex=1
    4421   echo "$as_me:4421: result: regex" >&5
     6111  echo "$as_me:$LINENO: result: regex" >&5
    44226112echo "${ECHO_T}regex" >&6
    4423   cat >>confdefs.h <<\EOF
     6113  cat >>confdefs.h <<\_ACEOF
    44246114#define WITH_REGEX 1
    4425 EOF
     6115_ACEOF
    44266116
    44276117  LIBOBJS="$LIBOBJS regex.o"
     
    44296119fi;
    44306120if test -z "$ac_with_regex"; then
    4431   echo "$as_me:4431: result: rx" >&5
     6121  echo "$as_me:$LINENO: result: rx" >&5
    44326122echo "${ECHO_T}rx" >&6
    4433   echo "$as_me:4433: checking for re_rx_search" >&5
     6123  echo "$as_me:$LINENO: checking for re_rx_search" >&5
    44346124echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    44356125if test "${ac_cv_func_re_rx_search+set}" = set; then
     
    44376127else
    44386128  cat >conftest.$ac_ext <<_ACEOF
    4439 #line 4439 "configure"
    4440 #include "confdefs.h"
     6129/* confdefs.h.  */
     6130_ACEOF
     6131cat confdefs.h >>conftest.$ac_ext
     6132cat >>conftest.$ac_ext <<_ACEOF
     6133/* end confdefs.h.  */
     6134/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
     6135   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6136#define re_rx_search innocuous_re_rx_search
     6137
    44416138/* System header to define __stub macros and hopefully few prototypes,
    4442     which can conflict with char re_rx_search (); below.  */
    4443 #include <assert.h>
     6139    which can conflict with char re_rx_search (); below.
     6140    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6141    <limits.h> exists even on freestanding compilers.  */
     6142
     6143#ifdef __STDC__
     6144# include <limits.h>
     6145#else
     6146# include <assert.h>
     6147#endif
     6148
     6149#undef re_rx_search
     6150
    44446151/* Override any gcc2 internal prototype to avoid an error.  */
    44456152#ifdef __cplusplus
    44466153extern "C"
     6154{
    44476155#endif
    44486156/* We use char because int might match the return type of a gcc2
    44496157   builtin and then its argument prototype would still apply.  */
    44506158char re_rx_search ();
    4451 char (*f) ();
    4452 
    4453 int
    4454 main ()
    4455 {
    44566159/* The GNU C library defines this for functions which it implements
    44576160    to always fail with ENOSYS.  Some functions are actually named
     
    44606163choke me
    44616164#else
    4462 f = re_rx_search;
     6165char (*f) () = re_rx_search;
    44636166#endif
    4464 
     6167#ifdef __cplusplus
     6168}
     6169#endif
     6170
     6171int
     6172main ()
     6173{
     6174return f != re_rx_search;
    44656175  ;
    44666176  return 0;
     
    44686178_ACEOF
    44696179rm -f conftest.$ac_objext conftest$ac_exeext
    4470 if { (eval echo "$as_me:4470: \"$ac_link\"") >&5
    4471   (eval $ac_link) 2>&5
    4472   ac_status=$?
    4473   echo "$as_me:4473: \$? = $ac_status" >&5
     6180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6181  (eval $ac_link) 2>conftest.er1
     6182  ac_status=$?
     6183  grep -v '^ *+' conftest.er1 >conftest.err
     6184  rm -f conftest.er1
     6185  cat conftest.err >&5
     6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44746187  (exit $ac_status); } &&
    4475          { ac_try='test -s conftest$ac_exeext'
    4476   { (eval echo "$as_me:4476: \"$ac_try\"") >&5
    4477   (eval $ac_try) 2>&5
    4478   ac_status=$?
    4479   echo "$as_me:4479: \$? = $ac_status" >&5
     6188     { ac_try='test -z "$ac_c_werror_flag"
     6189             || test ! -s conftest.err'
     6190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6191  (eval $ac_try) 2>&5
     6192  ac_status=$?
     6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6194  (exit $ac_status); }; } &&
     6195     { ac_try='test -s conftest$ac_exeext'
     6196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6197  (eval $ac_try) 2>&5
     6198  ac_status=$?
     6199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44806200  (exit $ac_status); }; }; then
    44816201  ac_cv_func_re_rx_search=yes
    44826202else
    44836203  echo "$as_me: failed program was:" >&5
    4484 cat conftest.$ac_ext >&5
     6204sed 's/^/| /' conftest.$ac_ext >&5
     6205
    44856206ac_cv_func_re_rx_search=no
    44866207fi
    4487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4488 fi
    4489 echo "$as_me:4489: result: $ac_cv_func_re_rx_search" >&5
     6208rm -f conftest.err conftest.$ac_objext \
     6209      conftest$ac_exeext conftest.$ac_ext
     6210fi
     6211echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
    44906212echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    44916213if test $ac_cv_func_re_rx_search = yes; then
     
    44976219fi
    44986220
     6221
    44996222# ---------------------------------------------------------------------------
    45006223if test "$ac_cv_func_alloca" = 'no'; then
    4501   LIBOBJS="$LIBOBJS xmalloc.o error.o"
    4502 fi
     6224  case $LIBOBJS in
     6225    "xmalloc.$ac_objext"   | \
     6226  *" xmalloc.$ac_objext"   | \
     6227    "xmalloc.$ac_objext "* | \
     6228  *" xmalloc.$ac_objext "* ) ;;
     6229  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6230esac
     6231
     6232  case $LIBOBJS in
     6233    "error.$ac_objext"   | \
     6234  *" error.$ac_objext"   | \
     6235    "error.$ac_objext "* | \
     6236  *" error.$ac_objext "* ) ;;
     6237  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6238esac
     6239
     6240fi
     6241
    45036242
    45046243# ---------------------------------------------------------------------------
    45056244
    4506 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
    4507 ac_config_commands="$ac_config_commands default"
     6245                                                                      ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
     6246          ac_config_commands="$ac_config_commands default"
    45086247cat >confcache <<\_ACEOF
    45096248# This file is a shell script that caches the results of configure
     
    45166255# the --recheck option to rerun configure.
    45176256#
    4518 # `ac_cv_env_foo' variables (set or unset) will be overriden when
     6257# `ac_cv_env_foo' variables (set or unset) will be overridden when
    45196258# loading this file, other *unset* `ac_cv_foo' will be assigned the
    45206259# following values.
     
    45346273      # substitution turns \\\\ into \\, and sed turns \\ into \).
    45356274      sed -n \
    4536         "s/'/'\\\\''/g;
    4537           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     6275    "s/'/'\\\\''/g;
     6276      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    45386277      ;;
    45396278    *)
    45406279      # `set' quotes correctly as required by POSIX, so do not add quotes.
    45416280      sed -n \
    4542         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6281    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    45436282      ;;
    45446283    esac;
     
    45516290     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    45526291     : end' >>confcache
    4553 if cmp -s $cache_file confcache; then :; else
     6292if diff $cache_file confcache >/dev/null 2>&1; then :; else
    45546293  if test -w $cache_file; then
    45556294    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     
    45706309# (actually we leave an empty line to preserve line numbers).
    45716310if test "x$srcdir" = x.; then
    4572   ac_vpsub='/^[     ]*VPATH[    ]*=/{
     6311  ac_vpsub='/^[  ]*VPATH[    ]*=/{
    45736312s/:*\$(srcdir):*/:/;
    45746313s/:*\${srcdir}:*/:/;
    45756314s/:*@srcdir@:*/:/;
    4576 s/^\([^=]*=[    ]*\):*/\1/;
     6315s/^\([^=]*=[     ]*\):*/\1/;
    45776316s/:*$//;
    4578 s/^[^=]*=[  ]*$//;
     6317s/^[^=]*=[   ]*$//;
    45796318}'
    45806319fi
    45816320
    45826321DEFS=-DHAVE_CONFIG_H
     6322
     6323ac_libobjs=
     6324ac_ltlibobjs=
     6325for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
     6326  # 1. Remove the extension, and $U if already installed.
     6327  ac_i=`echo "$ac_i" |
     6328     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     6329  # 2. Add them.
     6330  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     6331  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6332done
     6333LIBOBJS=$ac_libobjs
     6334
     6335LTLIBOBJS=$ac_ltlibobjs
     6336
     6337
    45836338
    45846339: ${CONFIG_STATUS=./config.status}
    45856340ac_clean_files_save=$ac_clean_files
    45866341ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    4587 { echo "$as_me:4587: creating $CONFIG_STATUS" >&5
     6342{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    45886343echo "$as_me: creating $CONFIG_STATUS" >&6;}
    45896344cat >$CONFIG_STATUS <<_ACEOF
    45906345#! $SHELL
    4591 # Generated automatically by configure.
     6346# Generated by $as_me.
    45926347# Run this file to recreate the current configuration.
    45936348# Compiler output produced by configure, useful for debugging
     
    45956350
    45966351debug=false
     6352ac_cs_recheck=false
     6353ac_cs_silent=false
    45976354SHELL=\${CONFIG_SHELL-$SHELL}
    4598 ac_cs_invocation="\$0 \$@"
    4599 
    46006355_ACEOF
    46016356
    46026357cat >>$CONFIG_STATUS <<\_ACEOF
     6358## --------------------- ##
     6359## M4sh Initialization.  ##
     6360## --------------------- ##
     6361
    46036362# Be Bourne compatible
    46046363if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    46056364  emulate sh
    46066365  NULLCMD=:
     6366  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6367  # is contrary to our usage.  Disable this feature.
     6368  alias -g '${1+"$@"}'='"$@"'
    46076369elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    46086370  set -o posix
    46096371fi
     6372DUALCASE=1; export DUALCASE # for MKS sh
     6373
     6374# Support unset when possible.
     6375if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     6376  as_unset=unset
     6377else
     6378  as_unset=false
     6379fi
     6380
     6381
     6382# Work around bugs in pre-3.0 UWIN ksh.
     6383$as_unset ENV MAIL MAILPATH
     6384PS1='$ '
     6385PS2='> '
     6386PS4='+ '
     6387
     6388# NLS nuisances.
     6389for as_var in \
     6390  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     6391  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     6392  LC_TELEPHONE LC_TIME
     6393do
     6394  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     6395    eval $as_var=C; export $as_var
     6396  else
     6397    $as_unset $as_var
     6398  fi
     6399done
     6400
     6401# Required to use basename.
     6402if expr a : '\(a\)' >/dev/null 2>&1; then
     6403  as_expr=expr
     6404else
     6405  as_expr=false
     6406fi
     6407
     6408if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6409  as_basename=basename
     6410else
     6411  as_basename=false
     6412fi
     6413
    46106414
    46116415# Name of the executable.
    4612 as_me=`echo "$0" |sed 's,.*[\\/],,'`
     6416as_me=`$as_basename "$0" ||
     6417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     6418     X"$0" : 'X\(//\)$' \| \
     6419     X"$0" : 'X\(/\)$' \| \
     6420     .     : '\(.\)' 2>/dev/null ||
     6421echo X/"$0" |
     6422    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     6423      /^X\/\(\/\/\)$/{ s//\1/; q; }
     6424      /^X\/\(\/\).*/{ s//\1/; q; }
     6425      s/.*/./; q'`
     6426
     6427
     6428# PATH needs CR, and LINENO needs CR and PATH.
     6429# Avoid depending upon Character Ranges.
     6430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     6431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     6432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     6433as_cr_digits='0123456789'
     6434as_cr_alnum=$as_cr_Letters$as_cr_digits
     6435
     6436# The user is always right.
     6437if test "${PATH_SEPARATOR+set}" != set; then
     6438  echo "#! /bin/sh" >conf$$.sh
     6439  echo  "exit 0"   >>conf$$.sh
     6440  chmod +x conf$$.sh
     6441  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     6442    PATH_SEPARATOR=';'
     6443  else
     6444    PATH_SEPARATOR=:
     6445  fi
     6446  rm -f conf$$.sh
     6447fi
     6448
     6449
     6450  as_lineno_1=$LINENO
     6451  as_lineno_2=$LINENO
     6452  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6453  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6454  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     6455  # Find who we are.  Look in the path if we contain no path at all
     6456  # relative or not.
     6457  case $0 in
     6458    *[\\/]* ) as_myself=$0 ;;
     6459    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6460for as_dir in $PATH
     6461do
     6462  IFS=$as_save_IFS
     6463  test -z "$as_dir" && as_dir=.
     6464  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6465done
     6466
     6467       ;;
     6468  esac
     6469  # We did not find ourselves, most probably we were run as `sh COMMAND'
     6470  # in which case we are not to be found in the path.
     6471  if test "x$as_myself" = x; then
     6472    as_myself=$0
     6473  fi
     6474  if test ! -f "$as_myself"; then
     6475    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
     6476echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
     6477   { (exit 1); exit 1; }; }
     6478  fi
     6479  case $CONFIG_SHELL in
     6480  '')
     6481    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6482for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     6483do
     6484  IFS=$as_save_IFS
     6485  test -z "$as_dir" && as_dir=.
     6486  for as_base in sh bash ksh sh5; do
     6487     case $as_dir in
     6488     /*)
     6489       if ("$as_dir/$as_base" -c '
     6490  as_lineno_1=$LINENO
     6491  as_lineno_2=$LINENO
     6492  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6493  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6494  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     6495         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     6496         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     6497         CONFIG_SHELL=$as_dir/$as_base
     6498         export CONFIG_SHELL
     6499         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     6500       fi;;
     6501     esac
     6502       done
     6503done
     6504;;
     6505  esac
     6506
     6507  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     6508  # uniformly replaced by the line number.  The first 'sed' inserts a
     6509  # line-number line before each line; the second 'sed' does the real
     6510  # work.  The second script uses 'N' to pair each line-number line
     6511  # with the numbered line, and appends trailing '-' during
     6512  # substitution so that $LINENO is not a special case at line end.
     6513  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     6514  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     6515  sed '=' <$as_myself |
     6516    sed '
     6517      N
     6518      s,$,-,
     6519      : loop
     6520      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     6521      t loop
     6522      s,-$,,
     6523      s,^['$as_cr_digits']*\n,,
     6524    ' >$as_me.lineno &&
     6525  chmod +x $as_me.lineno ||
     6526    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
     6527echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     6528   { (exit 1); exit 1; }; }
     6529
     6530  # Don't try to exec as it changes $[0], causing all sort of problems
     6531  # (the dirname of $[0] is not the place where we might find the
     6532  # original and so on.  Autoconf is especially sensible to this).
     6533  . ./$as_me.lineno
     6534  # Exit status is that of the last command.
     6535  exit
     6536}
     6537
     6538
     6539case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     6540  *c*,-n*) ECHO_N= ECHO_C='
     6541' ECHO_T='  ' ;;
     6542  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     6543  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     6544esac
    46136545
    46146546if expr a : '\(a\)' >/dev/null 2>&1; then
     
    46366568rm -f conf$$ conf$$.exe conf$$.file
    46376569
     6570if mkdir -p . 2>/dev/null; then
     6571  as_mkdir_p=:
     6572else
     6573  test -d ./-p && rmdir ./-p
     6574  as_mkdir_p=false
     6575fi
     6576
    46386577as_executable_p="test -f"
    46396578
    4640 # Support unset when possible.
    4641 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    4642   as_unset=unset
    4643 else
    4644   as_unset=false
    4645 fi
    4646 
    4647 # NLS nuisances.
    4648 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    4649 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    4650 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    4651 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    4652 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    4653 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    4654 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    4655 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     6579# Sed expression to map a string onto a valid CPP name.
     6580as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     6581
     6582# Sed expression to map a string onto a valid variable name.
     6583as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     6584
    46566585
    46576586# IFS
     
    46626591
    46636592# CDPATH.
    4664 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     6593$as_unset CDPATH
    46656594
    46666595exec 6>&1
    46676596
     6597# Open the log real soon, to keep \$[0] and so on meaningful, and to
     6598# report actual input values of CONFIG_FILES etc. instead of their
     6599# values after options handling.  Logging --version etc. is OK.
     6600exec 5>>config.log
     6601{
     6602  echo
     6603  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     6604## Running $as_me. ##
     6605_ASBOX
     6606} >&5
     6607cat >&5 <<_CSEOF
     6608
     6609This file was extended by $as_me, which was
     6610generated by GNU Autoconf 2.59.  Invocation command line was
     6611
     6612  CONFIG_FILES    = $CONFIG_FILES
     6613  CONFIG_HEADERS  = $CONFIG_HEADERS
     6614  CONFIG_LINKS    = $CONFIG_LINKS
     6615  CONFIG_COMMANDS = $CONFIG_COMMANDS
     6616  $ $0 $@
     6617
     6618_CSEOF
     6619echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
     6620echo >&5
    46686621_ACEOF
    46696622
     
    46856638fi
    46866639
    4687 cat >>$CONFIG_STATUS <<\EOF
     6640cat >>$CONFIG_STATUS <<\_ACEOF
    46886641
    46896642ac_cs_usage="\
     
    46956648  -h, --help       print this help, then exit
    46966649  -V, --version    print version number, then exit
     6650  -q, --quiet      do not print progress messages
    46976651  -d, --debug      don't remove temporary files
    46986652      --recheck    update $as_me by reconfiguring in the same conditions
    46996653  --file=FILE[:TEMPLATE]
    4700                    instantiate the configuration file FILE
     6654           instantiate the configuration file FILE
    47016655  --header=FILE[:TEMPLATE]
    4702                    instantiate the configuration header FILE
     6656           instantiate the configuration header FILE
    47036657
    47046658Configuration files:
     
    47126666
    47136667Report bugs to <[email protected]>."
    4714 EOF
    4715 
    4716 cat >>$CONFIG_STATUS <<EOF
     6668_ACEOF
     6669
     6670cat >>$CONFIG_STATUS <<_ACEOF
    47176671ac_cs_version="\\
    47186672config.status
    4719 configured by $0, generated by GNU Autoconf 2.50,
     6673configured by $0, generated by GNU Autoconf 2.59,
    47206674  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    47216675
    4722 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    4723 Free Software Foundation, Inc.
     6676Copyright (C) 2003 Free Software Foundation, Inc.
    47246677This config.status script is free software; the Free Software Foundation
    47256678gives unlimited permission to copy, distribute and modify it."
    47266679srcdir=$srcdir
    47276680INSTALL="$INSTALL"
    4728 EOF
    4729 
    4730 cat >>$CONFIG_STATUS <<\EOF
     6681_ACEOF
     6682
     6683cat >>$CONFIG_STATUS <<\_ACEOF
    47316684# If no file are specified by the user, then we need to provide default
    47326685# value.  By we need to know if files were specified by the user.
     
    47386691    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    47396692    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    4740     shift
    4741     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
    4742     shift
     6693    ac_shift=:
    47436694    ;;
    4744   -*);;
     6695  -*)
     6696    ac_option=$1
     6697    ac_optarg=$2
     6698    ac_shift=shift
     6699    ;;
    47456700  *) # This is not an option, so the user has probably given explicit
    47466701     # arguments.
     6702     ac_option=$1
    47476703     ac_need_defaults=false;;
    47486704  esac
    47496705
    4750   case $1 in
     6706  case $ac_option in
    47516707  # Handling of the options.
    4752 EOF
    4753 cat >>$CONFIG_STATUS <<EOF
     6708_ACEOF
     6709cat >>$CONFIG_STATUS <<\_ACEOF
    47546710  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    4755     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    4756     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
    4757 EOF
    4758 cat >>$CONFIG_STATUS <<\EOF
     6711    ac_cs_recheck=: ;;
    47596712  --version | --vers* | -V )
    47606713    echo "$ac_cs_version"; exit 0 ;;
    47616714  --he | --h)
    47626715    # Conflict between --help and --header
    4763     { { echo "$as_me:4763: error: ambiguous option: $1
     6716    { { echo "$as_me:$LINENO: error: ambiguous option: $1
    47646717Try \`$0 --help' for more information." >&5
    47656718echo "$as_me: error: ambiguous option: $1
     
    47716724    debug=: ;;
    47726725  --file | --fil | --fi | --f )
    4773     shift
    4774     CONFIG_FILES="$CONFIG_FILES $1"
     6726    $ac_shift
     6727    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    47756728    ac_need_defaults=false;;
    47766729  --header | --heade | --head | --hea )
    4777     shift
    4778     CONFIG_HEADERS="$CONFIG_HEADERS $1"
     6730    $ac_shift
     6731    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    47796732    ac_need_defaults=false;;
    4780 
    4781   # Handling of arguments.
    4782   'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    4783   'src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
    4784   'src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
    4785   'src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
    4786   'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    4787   'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
    4788   'java/org/greenstone/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
    4789   'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    4790   'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     6733  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     6734  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     6735    ac_cs_silent=: ;;
    47916736
    47926737  # This is an error.
    4793   -*) { { echo "$as_me:4793: error: unrecognized option: $1
     6738  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    47946739Try \`$0 --help' for more information." >&5
    47956740echo "$as_me: error: unrecognized option: $1
    47966741Try \`$0 --help' for more information." >&2;}
    47976742   { (exit 1); exit 1; }; } ;;
    4798   *) { { echo "$as_me:4798: error: invalid argument: $1" >&5
    4799 echo "$as_me: error: invalid argument: $1" >&2;}
    4800    { (exit 1); exit 1; }; };;
     6743
     6744  *) ac_config_targets="$ac_config_targets $1" ;;
     6745
    48016746  esac
    48026747  shift
    48036748done
    48046749
    4805 exec 5>>config.log
    4806 cat >&5 << _ACEOF
    4807 
    4808 ## ----------------------- ##
    4809 ## Running config.status.  ##
    4810 ## ----------------------- ##
    4811 
    4812 This file was extended by $as_me 2.50, executed with
    4813   > $ac_cs_invocation
    4814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
    4815 
    4816 _ACEOF
    4817 EOF
    4818 
    4819 cat >>$CONFIG_STATUS <<\EOF
     6750ac_configure_extra_args=
     6751
     6752if $ac_cs_silent; then
     6753  exec 6>/dev/null
     6754  ac_configure_extra_args="$ac_configure_extra_args --silent"
     6755fi
     6756
     6757_ACEOF
     6758cat >>$CONFIG_STATUS <<_ACEOF
     6759if \$ac_cs_recheck; then
     6760  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     6761  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     6762fi
     6763
     6764_ACEOF
     6765
     6766
     6767
     6768
     6769
     6770cat >>$CONFIG_STATUS <<\_ACEOF
     6771for ac_config_target in $ac_config_targets
     6772do
     6773  case "$ac_config_target" in
     6774  # Handling of arguments.
     6775  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     6776  "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
     6777  "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
     6778  "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
     6779  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     6780  "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
     6781  "java/org/greenstone/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
     6782  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     6783  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     6784  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     6785echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     6786   { (exit 1); exit 1; }; };;
     6787  esac
     6788done
     6789
    48206790# If the user did not use the arguments to specify the items to instantiate,
    48216791# then the envvar interface is used.  Set only those that are not.
     
    48286798fi
    48296799
     6800# Have a temporary directory for convenience.  Make it in the build tree
     6801# simply because there is no reason to put it here, and in addition,
     6802# creating and moving files from /tmp can sometimes cause problems.
    48306803# Create a temporary directory, and hook for its removal unless debugging.
    48316804$debug ||
    48326805{
    48336806  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    4834   trap '{ (exit $?); exit $?; }' 1 2 13 15
     6807  trap '{ (exit 1); exit 1; }' 1 2 13 15
    48356808}
    48366809
    48376810# Create a (secure) tmp directory for tmp files.
    4838 : ${TMPDIR=/tmp}
     6811
    48396812{
    4840   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
     6813  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
    48416814  test -n "$tmp" && test -d "$tmp"
    48426815}  ||
    48436816{
    4844   tmp=$TMPDIR/cs$$-$RANDOM
     6817  tmp=./confstat$$-$RANDOM
    48456818  (umask 077 && mkdir $tmp)
    48466819} ||
    48476820{
    4848    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     6821   echo "$me: cannot create a temporary directory in ." >&2
    48496822   { (exit 1); exit 1; }
    48506823}
    48516824
    4852 EOF
    4853 
    4854 cat >>$CONFIG_STATUS <<EOF
     6825_ACEOF
     6826
     6827cat >>$CONFIG_STATUS <<_ACEOF
    48556828
    48566829#
     
    48656838   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    48666839s,@SHELL@,$SHELL,;t t
     6840s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     6841s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     6842s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     6843s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     6844s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     6845s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    48676846s,@exec_prefix@,$exec_prefix,;t t
    48686847s,@prefix@,$prefix,;t t
     
    48806859s,@infodir@,$infodir,;t t
    48816860s,@mandir@,$mandir,;t t
    4882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    4883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    4884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    4885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    4886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     6861s,@build_alias@,$build_alias,;t t
     6862s,@host_alias@,$host_alias,;t t
     6863s,@target_alias@,$target_alias,;t t
     6864s,@DEFS@,$DEFS,;t t
    48876865s,@ECHO_C@,$ECHO_C,;t t
    48886866s,@ECHO_N@,$ECHO_N,;t t
    48896867s,@ECHO_T@,$ECHO_T,;t t
    4890 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    4891 s,@DEFS@,$DEFS,;t t
    48926868s,@LIBS@,$LIBS,;t t
    48936869s,@PACKAGE@,$PACKAGE,;t t
     
    49136889s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    49146890s,@CPP@,$CPP,;t t
     6891s,@EGREP@,$EGREP,;t t
    49156892s,@U@,$U,;t t
    49166893s,@ANSI2KNR@,$ANSI2KNR,;t t
    49176894s,@ALLOCA@,$ALLOCA,;t t
    49186895s,@LIBOBJS@,$LIBOBJS,;t t
     6896s,@JNIINC@,$JNIINC,;t t
     6897s,@JNISUFFIX@,$JNISUFFIX,;t t
     6898s,@JNIFLAGS@,$JNIFLAGS,;t t
     6899s,@LIBOBJS@,$LIBOBJS,;t t
     6900s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    49196901CEOF
    49206902
    4921 EOF
    4922 
    4923   cat >>$CONFIG_STATUS <<\EOF
     6903_ACEOF
     6904
     6905  cat >>$CONFIG_STATUS <<\_ACEOF
    49246906  # Split the substitutions into bite-sized pieces for seds with
    49256907  # small command number limits, like on Digital OSF/1 and HP-UX.
     
    49466928  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    49476929      if test -z "$ac_sed_cmds"; then
    4948     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     6930    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    49496931      else
    4950     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     6932    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    49516933      fi
    49526934      ac_sed_frag=`expr $ac_sed_frag + 1`
     
    49606942fi # test -n "$CONFIG_FILES"
    49616943
    4962 EOF
    4963 cat >>$CONFIG_STATUS <<\EOF
     6944_ACEOF
     6945cat >>$CONFIG_STATUS <<\_ACEOF
    49646946for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    49656947  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    49666948  case $ac_file in
    49676949  - | *:- | *:-:* ) # input from stdin
    4968         cat >$tmp/stdin
    4969         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    4970         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6950    cat >$tmp/stdin
     6951    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     6952    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    49716953  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    4972         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6954    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    49736955  * )   ac_file_in=$ac_file.in ;;
    49746956  esac
    49756957
    49766958  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    4977   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    4978          X"$ac_file" : 'X\(//\)[^/]' \| \
    4979          X"$ac_file" : 'X\(//\)$' \| \
    4980          X"$ac_file" : 'X\(/\)' \| \
    4981          .     : '\(.\)' 2>/dev/null ||
     6959  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     6960$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     6961     X"$ac_file" : 'X\(//\)[^/]' \| \
     6962     X"$ac_file" : 'X\(//\)$' \| \
     6963     X"$ac_file" : 'X\(/\)' \| \
     6964     .     : '\(.\)' 2>/dev/null ||
    49826965echo X"$ac_file" |
    49836966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    49866969      /^X\(\/\).*/{ s//\1/; q; }
    49876970      s/.*/./; q'`
    4988   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    4989     { case "$ac_dir" in
    4990   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    4991   *)                      as_incr_dir=.;;
     6971  { if $as_mkdir_p; then
     6972    mkdir -p "$ac_dir"
     6973  else
     6974    as_dir="$ac_dir"
     6975    as_dirs=
     6976    while test ! -d "$as_dir"; do
     6977      as_dirs="$as_dir $as_dirs"
     6978      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     6979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     6980     X"$as_dir" : 'X\(//\)[^/]' \| \
     6981     X"$as_dir" : 'X\(//\)$' \| \
     6982     X"$as_dir" : 'X\(/\)' \| \
     6983     .     : '\(.\)' 2>/dev/null ||
     6984echo X"$as_dir" |
     6985    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     6986      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     6987      /^X\(\/\/\)$/{ s//\1/; q; }
     6988      /^X\(\/\).*/{ s//\1/; q; }
     6989      s/.*/./; q'`
     6990    done
     6991    test ! -n "$as_dirs" || mkdir $as_dirs
     6992  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     6993echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     6994   { (exit 1); exit 1; }; }; }
     6995
     6996  ac_builddir=.
     6997
     6998if test "$ac_dir" != .; then
     6999  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7000  # A "../" for each directory in $ac_dir_suffix.
     7001  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7002else
     7003  ac_dir_suffix= ac_top_builddir=
     7004fi
     7005
     7006case $srcdir in
     7007  .)  # No --srcdir option.  We are building in place.
     7008    ac_srcdir=.
     7009    if test -z "$ac_top_builddir"; then
     7010       ac_top_srcdir=.
     7011    else
     7012       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7013    fi ;;
     7014  [\\/]* | ?:[\\/]* )  # Absolute path.
     7015    ac_srcdir=$srcdir$ac_dir_suffix;
     7016    ac_top_srcdir=$srcdir ;;
     7017  *) # Relative path.
     7018    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7019    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    49927020esac
    4993 as_dummy="$ac_dir"
    4994 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    4995   case $as_mkdir_dir in
    4996     # Skip DOS drivespec
    4997     ?:) as_incr_dir=$as_mkdir_dir ;;
    4998     *)
    4999       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5000       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5001     ;;
    5002   esac
    5003 done; }
    5004 
    5005     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    5006     # A "../" for each directory in $ac_dir_suffix.
    5007     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
    5008   else
    5009     ac_dir_suffix= ac_dots=
    5010   fi
    5011 
    5012   case $srcdir in
    5013   .)  ac_srcdir=.
    5014       if test -z "$ac_dots"; then
    5015          ac_top_srcdir=.
    5016       else
    5017          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
    5018       fi ;;
    5019   [\\/]* | ?:[\\/]* )
    5020       ac_srcdir=$srcdir$ac_dir_suffix;
    5021       ac_top_srcdir=$srcdir ;;
    5022   *) # Relative path.
    5023     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    5024     ac_top_srcdir=$ac_dots$srcdir ;;
    5025   esac
     7021
     7022# Do not use `cd foo && pwd` to compute absolute paths, because
     7023# the directories may not exist.
     7024case `pwd` in
     7025.) ac_abs_builddir="$ac_dir";;
     7026*)
     7027  case "$ac_dir" in
     7028  .) ac_abs_builddir=`pwd`;;
     7029  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     7030  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     7031  esac;;
     7032esac
     7033case $ac_abs_builddir in
     7034.) ac_abs_top_builddir=${ac_top_builddir}.;;
     7035*)
     7036  case ${ac_top_builddir}. in
     7037  .) ac_abs_top_builddir=$ac_abs_builddir;;
     7038  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     7039  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     7040  esac;;
     7041esac
     7042case $ac_abs_builddir in
     7043.) ac_abs_srcdir=$ac_srcdir;;
     7044*)
     7045  case $ac_srcdir in
     7046  .) ac_abs_srcdir=$ac_abs_builddir;;
     7047  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     7048  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     7049  esac;;
     7050esac
     7051case $ac_abs_builddir in
     7052.) ac_abs_top_srcdir=$ac_top_srcdir;;
     7053*)
     7054  case $ac_top_srcdir in
     7055  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     7056  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     7057  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     7058  esac;;
     7059esac
     7060
    50267061
    50277062  case $INSTALL in
    50287063  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    5029   *) ac_INSTALL=$ac_dots$INSTALL ;;
     7064  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
    50307065  esac
    50317066
    50327067  if test x"$ac_file" != x-; then
    5033     { echo "$as_me:5033: creating $ac_file" >&5
     7068    { echo "$as_me:$LINENO: creating $ac_file" >&5
    50347069echo "$as_me: creating $ac_file" >&6;}
    50357070    rm -f "$ac_file"
     
    50377072  # Let's still pretend it is `configure' which instantiates (i.e., don't
    50387073  # use $as_me), people would be surprised to read:
    5039   #    /* config.h.  Generated automatically by config.status.  */
    5040   configure_input="Generated automatically from `echo $ac_file_in |
    5041                                                  sed 's,.*/,,'` by configure."
     7074  #    /* config.h.  Generated by config.status.  */
     7075  if test x"$ac_file" = x-; then
     7076    configure_input=
     7077  else
     7078    configure_input="$ac_file.  "
     7079  fi
     7080  configure_input=$configure_input"Generated from `echo $ac_file_in |
     7081                     sed 's,.*/,,'` by configure."
    50427082
    50437083  # First look for the input files in the build tree, otherwise in the
     
    50487088      -) echo $tmp/stdin ;;
    50497089      [\\/$]*)
    5050         # Absolute (can't be DOS-style, as IFS=:)
    5051          test -f "$f" || { { echo "$as_me:5051: error: cannot find input file: $f" >&5
     7090    # Absolute (can't be DOS-style, as IFS=:)
     7091     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    50527092echo "$as_me: error: cannot find input file: $f" >&2;}
    50537093   { (exit 1); exit 1; }; }
    5054          echo $f;;
     7094     echo "$f";;
    50557095      *) # Relative
    5056         if test -f "$f"; then
    5057            # Build tree
    5058            echo $f
    5059         elif test -f "$srcdir/$f"; then
    5060            # Source tree
    5061            echo $srcdir/$f
    5062         else
    5063            # /dev/null tree
    5064            { { echo "$as_me:5064: error: cannot find input file: $f" >&5
     7096    if test -f "$f"; then
     7097       # Build tree
     7098       echo "$f"
     7099    elif test -f "$srcdir/$f"; then
     7100       # Source tree
     7101       echo "$srcdir/$f"
     7102    else
     7103       # /dev/null tree
     7104       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    50657105echo "$as_me: error: cannot find input file: $f" >&2;}
    50667106   { (exit 1); exit 1; }; }
    5067         fi;;
     7107    fi;;
    50687108      esac
    50697109    done` || { (exit 1); exit 1; }
    5070 EOF
    5071 cat >>$CONFIG_STATUS <<EOF
     7110_ACEOF
     7111cat >>$CONFIG_STATUS <<_ACEOF
    50727112  sed "$ac_vpsub
    50737113$extrasub
    5074 EOF
    5075 cat >>$CONFIG_STATUS <<\EOF
     7114_ACEOF
     7115cat >>$CONFIG_STATUS <<\_ACEOF
    50767116:t
    50777117/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    50787118s,@configure_input@,$configure_input,;t t
    50797119s,@srcdir@,$ac_srcdir,;t t
     7120s,@abs_srcdir@,$ac_abs_srcdir,;t t
    50807121s,@top_srcdir@,$ac_top_srcdir,;t t
     7122s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
     7123s,@builddir@,$ac_builddir,;t t
     7124s,@abs_builddir@,$ac_abs_builddir,;t t
     7125s,@top_builddir@,$ac_top_builddir,;t t
     7126s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    50817127s,@INSTALL@,$ac_INSTALL,;t t
    50827128" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     
    50907136
    50917137done
    5092 EOF
    5093 cat >>$CONFIG_STATUS <<\EOF
     7138_ACEOF
     7139cat >>$CONFIG_STATUS <<\_ACEOF
    50947140
    50957141#
     
    51017147#
    51027148# ac_d sets the value in "#define NAME VALUE" lines.
    5103 ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    5104 ac_dB='[    ].*$,\1#\2'
     7149ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
     7150ac_dB='[     ].*$,\1#\2'
    51057151ac_dC=' '
    51067152ac_dD=',;t'
    51077153# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    5108 ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     7154ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    51097155ac_uB='$,\1#\2define\3'
    51107156ac_uC=' '
     
    51157161  case $ac_file in
    51167162  - | *:- | *:-:* ) # input from stdin
    5117         cat >$tmp/stdin
    5118         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5119         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7163    cat >$tmp/stdin
     7164    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7165    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    51207166  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5121         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7167    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    51227168  * )   ac_file_in=$ac_file.in ;;
    51237169  esac
    51247170
    5125   test x"$ac_file" != x- && { echo "$as_me:5125: creating $ac_file" >&5
     7171  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    51267172echo "$as_me: creating $ac_file" >&6;}
    51277173
     
    51337179      -) echo $tmp/stdin ;;
    51347180      [\\/$]*)
    5135         # Absolute (can't be DOS-style, as IFS=:)
    5136          test -f "$f" || { { echo "$as_me:5136: error: cannot find input file: $f" >&5
     7181    # Absolute (can't be DOS-style, as IFS=:)
     7182     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    51377183echo "$as_me: error: cannot find input file: $f" >&2;}
    51387184   { (exit 1); exit 1; }; }
    5139          echo $f;;
     7185     # Do quote $f, to prevent DOS paths from being IFS'd.
     7186     echo "$f";;
    51407187      *) # Relative
    5141         if test -f "$f"; then
    5142            # Build tree
    5143            echo $f
    5144         elif test -f "$srcdir/$f"; then
    5145            # Source tree
    5146            echo $srcdir/$f
    5147         else
    5148            # /dev/null tree
    5149            { { echo "$as_me:5149: error: cannot find input file: $f" >&5
     7188    if test -f "$f"; then
     7189       # Build tree
     7190       echo "$f"
     7191    elif test -f "$srcdir/$f"; then
     7192       # Source tree
     7193       echo "$srcdir/$f"
     7194    else
     7195       # /dev/null tree
     7196       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    51507197echo "$as_me: error: cannot find input file: $f" >&2;}
    51517198   { (exit 1); exit 1; }; }
    5152         fi;;
     7199    fi;;
    51537200      esac
    51547201    done` || { (exit 1); exit 1; }
    51557202  # Remove the trailing spaces.
    5156   sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
    5157 
    5158 EOF
     7203  sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
     7204
     7205_ACEOF
    51597206
    51607207# Transform confdefs.h into two sed scripts, `conftest.defines' and
     
    51727219# 0-ary CPP macros) applies to n-ary macro definitions.
    51737220# See the Autoconf documentation for `clear'.
    5174 cat >confdef2sed.sed <<\EOF
     7221cat >confdef2sed.sed <<\_ACEOF
    51757222s/[\\&,]/\\&/g
    51767223s,[\\$`],\\&,g
    51777224t clear
    51787225: clear
    5179 s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
     7226s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    51807227t end
    5181 s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     7228s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    51827229: end
    5183 EOF
     7230_ACEOF
    51847231# If some macros were called several times there might be several times
    51857232# the same #defines, which is useless.  Nevertheless, we may not want to
     
    51927239# example, in the case of _POSIX_SOURCE, which is predefined and required
    51937240# on some systems where configure will not decide to define it.
    5194 cat >>conftest.undefs <<\EOF
    5195 s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    5196 EOF
     7241cat >>conftest.undefs <<\_ACEOF
     7242s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     7243_ACEOF
    51977244
    51987245# Break up conftest.defines because some shells have a limit on the size
    51997246# of here documents, and old seds have small limits too (100 cmds).
    52007247echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    5201 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     7248echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    52027249echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    52037250echo '  :' >>$CONFIG_STATUS
     
    52087255  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    52097256  # Speed up: don't consider the non `#define' lines.
    5210   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
     7257  echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
    52117258  # Work around the forget-to-reset-the-flag bug.
    52127259  echo 't clr' >>$CONFIG_STATUS
     
    52237270done
    52247271rm -f conftest.defines
    5225 echo '  fi # egrep' >>$CONFIG_STATUS
     7272echo '  fi # grep' >>$CONFIG_STATUS
    52267273echo >>$CONFIG_STATUS
    52277274
     
    52357282  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    52367283  # Speed up: don't consider the non `#undef'
    5237   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     7284  echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    52387285  # Work around the forget-to-reset-the-flag bug.
    52397286  echo 't clr' >>$CONFIG_STATUS
     
    52517298rm -f conftest.undefs
    52527299
    5253 cat >>$CONFIG_STATUS <<\EOF
     7300cat >>$CONFIG_STATUS <<\_ACEOF
    52547301  # Let's still pretend it is `configure' which instantiates (i.e., don't
    52557302  # use $as_me), people would be surprised to read:
    5256   #    /* config.h.  Generated automatically by config.status.  */
     7303  #    /* config.h.  Generated by config.status.  */
    52577304  if test x"$ac_file" = x-; then
    5258     echo "/* Generated automatically by configure.  */" >$tmp/config.h
     7305    echo "/* Generated by configure.  */" >$tmp/config.h
    52597306  else
    5260     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     7307    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    52617308  fi
    52627309  cat $tmp/in >>$tmp/config.h
    52637310  rm -f $tmp/in
    52647311  if test x"$ac_file" != x-; then
    5265     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
    5266       { echo "$as_me:5266: $ac_file is unchanged" >&5
     7312    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     7313      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    52677314echo "$as_me: $ac_file is unchanged" >&6;}
    52687315    else
    5269       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    5270          X"$ac_file" : 'X\(//\)[^/]' \| \
    5271          X"$ac_file" : 'X\(//\)$' \| \
    5272          X"$ac_file" : 'X\(/\)' \| \
    5273          .     : '\(.\)' 2>/dev/null ||
     7316      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7317$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7318     X"$ac_file" : 'X\(//\)[^/]' \| \
     7319     X"$ac_file" : 'X\(//\)$' \| \
     7320     X"$ac_file" : 'X\(/\)' \| \
     7321     .     : '\(.\)' 2>/dev/null ||
    52747322echo X"$ac_file" |
    52757323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    52787326      /^X\(\/\).*/{ s//\1/; q; }
    52797327      s/.*/./; q'`
    5280       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    5281         { case "$ac_dir" in
    5282   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    5283   *)                      as_incr_dir=.;;
    5284 esac
    5285 as_dummy="$ac_dir"
    5286 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    5287   case $as_mkdir_dir in
    5288     # Skip DOS drivespec
    5289     ?:) as_incr_dir=$as_mkdir_dir ;;
    5290     *)
    5291       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5292       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5293     ;;
    5294   esac
    5295 done; }
    5296 
    5297       fi
     7328      { if $as_mkdir_p; then
     7329    mkdir -p "$ac_dir"
     7330  else
     7331    as_dir="$ac_dir"
     7332    as_dirs=
     7333    while test ! -d "$as_dir"; do
     7334      as_dirs="$as_dir $as_dirs"
     7335      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7337     X"$as_dir" : 'X\(//\)[^/]' \| \
     7338     X"$as_dir" : 'X\(//\)$' \| \
     7339     X"$as_dir" : 'X\(/\)' \| \
     7340     .     : '\(.\)' 2>/dev/null ||
     7341echo X"$as_dir" |
     7342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7343      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7344      /^X\(\/\/\)$/{ s//\1/; q; }
     7345      /^X\(\/\).*/{ s//\1/; q; }
     7346      s/.*/./; q'`
     7347    done
     7348    test ! -n "$as_dirs" || mkdir $as_dirs
     7349  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7350echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7351   { (exit 1); exit 1; }; }; }
     7352
    52987353      rm -f $ac_file
    52997354      mv $tmp/config.h $ac_file
     
    53047359  fi
    53057360done
    5306 EOF
    5307 cat >>$CONFIG_STATUS <<\EOF
     7361_ACEOF
     7362cat >>$CONFIG_STATUS <<\_ACEOF
    53087363
    53097364#
     
    53137368  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    53147369  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5315 
     7370  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
     7371$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7372     X"$ac_dest" : 'X\(//\)[^/]' \| \
     7373     X"$ac_dest" : 'X\(//\)$' \| \
     7374     X"$ac_dest" : 'X\(/\)' \| \
     7375     .     : '\(.\)' 2>/dev/null ||
     7376echo X"$ac_dest" |
     7377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7378      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7379      /^X\(\/\/\)$/{ s//\1/; q; }
     7380      /^X\(\/\).*/{ s//\1/; q; }
     7381      s/.*/./; q'`
     7382  { if $as_mkdir_p; then
     7383    mkdir -p "$ac_dir"
     7384  else
     7385    as_dir="$ac_dir"
     7386    as_dirs=
     7387    while test ! -d "$as_dir"; do
     7388      as_dirs="$as_dir $as_dirs"
     7389      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7390$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7391     X"$as_dir" : 'X\(//\)[^/]' \| \
     7392     X"$as_dir" : 'X\(//\)$' \| \
     7393     X"$as_dir" : 'X\(/\)' \| \
     7394     .     : '\(.\)' 2>/dev/null ||
     7395echo X"$as_dir" |
     7396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7397      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7398      /^X\(\/\/\)$/{ s//\1/; q; }
     7399      /^X\(\/\).*/{ s//\1/; q; }
     7400      s/.*/./; q'`
     7401    done
     7402    test ! -n "$as_dirs" || mkdir $as_dirs
     7403  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7404echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7405   { (exit 1); exit 1; }; }; }
     7406
     7407  ac_builddir=.
     7408
     7409if test "$ac_dir" != .; then
     7410  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7411  # A "../" for each directory in $ac_dir_suffix.
     7412  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7413else
     7414  ac_dir_suffix= ac_top_builddir=
     7415fi
     7416
     7417case $srcdir in
     7418  .)  # No --srcdir option.  We are building in place.
     7419    ac_srcdir=.
     7420    if test -z "$ac_top_builddir"; then
     7421       ac_top_srcdir=.
     7422    else
     7423       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7424    fi ;;
     7425  [\\/]* | ?:[\\/]* )  # Absolute path.
     7426    ac_srcdir=$srcdir$ac_dir_suffix;
     7427    ac_top_srcdir=$srcdir ;;
     7428  *) # Relative path.
     7429    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7430    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7431esac
     7432
     7433# Do not use `cd foo && pwd` to compute absolute paths, because
     7434# the directories may not exist.
     7435case `pwd` in
     7436.) ac_abs_builddir="$ac_dir";;
     7437*)
     7438  case "$ac_dir" in
     7439  .) ac_abs_builddir=`pwd`;;
     7440  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     7441  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     7442  esac;;
     7443esac
     7444case $ac_abs_builddir in
     7445.) ac_abs_top_builddir=${ac_top_builddir}.;;
     7446*)
     7447  case ${ac_top_builddir}. in
     7448  .) ac_abs_top_builddir=$ac_abs_builddir;;
     7449  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     7450  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     7451  esac;;
     7452esac
     7453case $ac_abs_builddir in
     7454.) ac_abs_srcdir=$ac_srcdir;;
     7455*)
     7456  case $ac_srcdir in
     7457  .) ac_abs_srcdir=$ac_abs_builddir;;
     7458  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     7459  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     7460  esac;;
     7461esac
     7462case $ac_abs_builddir in
     7463.) ac_abs_top_srcdir=$ac_top_srcdir;;
     7464*)
     7465  case $ac_top_srcdir in
     7466  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     7467  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     7468  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     7469  esac;;
     7470esac
     7471
     7472
     7473  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
     7474echo "$as_me: executing $ac_dest commands" >&6;}
    53167475  case $ac_dest in
    53177476    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
    53187477  esac
    53197478done
    5320 EOF
    5321 
    5322 cat >>$CONFIG_STATUS <<\EOF
     7479_ACEOF
     7480
     7481cat >>$CONFIG_STATUS <<\_ACEOF
    53237482
    53247483{ (exit 0); exit 0; }
    5325 EOF
     7484_ACEOF
    53267485chmod +x $CONFIG_STATUS
    53277486ac_clean_files=$ac_clean_files_save
     7487
    53287488
    53297489# configure is writing to config.log, and then calls config.status.
     
    53377497if test "$no_create" != yes; then
    53387498  ac_cs_success=:
     7499  ac_config_status_args=
     7500  test "$silent" = yes &&
     7501    ac_config_status_args="$ac_config_status_args --quiet"
    53397502  exec 5>/dev/null
    5340   $SHELL $CONFIG_STATUS || ac_cs_success=false
     7503  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
    53417504  exec 5>>config.log
    53427505  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  • trunk/gsdl3/packages/mg/configure.in

    r7882 r10191  
    7777if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    7878  AC_MSG_RESULT(yes)
    79   LIBOBJS="$LIBOBJS gmalloc.o"
     79  AC_LIBOBJ(gmalloc)
    8080  AC_DEFINE(HAVE_VALLOC)
    8181else
     
    8383  AC_CHECK_FUNCS(valloc)
    8484fi
     85
     86# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
     87# a non-standard Path
     88AC_MSG_CHECKING(for Apple MacOS X/Darwin)
     89if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
     90  AC_MSG_RESULT(yes)
     91  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
     92  JNISUFFIX="jnilib"
     93  JNIFLAGS="-dynamiclib -fno-common -single_module"
     94  LDFLAGS="-framework JavaVM"
     95else
     96  AC_MSG_RESULT(no)
     97  JNIINC=""
     98  JNISUFFIX="so"
     99  JNIFLAGS="-shared"
     100fi
     101AC_SUBST(JNIINC)
     102AC_SUBST(JNISUFFIX)
     103AC_SUBST(JNIFLAGS)
    85104
    86105fp_WITH_DMALLOC
     
    90109if test "$ac_cv_func_alloca" = 'no'; then
    91110dnl    support functions for alloca.c
    92   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     111  AC_LIBOBJ(xmalloc)
     112  AC_LIBOBJ(error)
    93113fi
    94114
  • trunk/gsdl3/packages/mg/jni/Makefile.in

    r8208 r10191  
    2626AWK = @AWK@
    2727
     28JNIFLAGS=@JNIFLAGS@
     29JNISUFFIX=@JNISUFFIX@
     30JNIINC=@JNIINC@
    2831datadir = $(prefix)/share
    2932libexecdir = $(exec_prefix)/libexec
     
    3942    $(CCOMPILE) $<
    4043
    41 
    42 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
     44# can we get rid of JAVA_HOME from here??
     45INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(JNIINC)
    4346
    4447all: compile link
     
    4851
    4952link:
    50     $(CC) $(LDFLAGS) -shared -o libmgjni.so MGWrapperImpl.o $(QUERY_LIBS)
    51     $(CC) $(LDFLAGS) -shared -o libmgpassjni.so  MGPassesWrapperImpl.o  $(PASSES_LIBS)
     53    $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgjni.$(JNISUFFIX) MGWrapperImpl.o $(QUERY_LIBS)
     54    $(CC) $(LDFLAGS)  $(JNIFLAGS) -o libmgpassjni.$(JNISUFFIX)  MGPassesWrapperImpl.o  $(PASSES_LIBS)
    5255
    5356clean:
    54     rm -rf *.o libmgjni.so libmgpassjni.so
     57    rm -rf *.o libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX)
    5558
    5659distclean: clean
     
    5962install:
    6063    ../mkinstalldirs $(libdir); \
    61     cp libmgjni.so libmgpassjni.so  $(libdir)/;
     64    cp libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX)  $(libdir)/;
    6265
    6366
  • trunk/gsdl3/src/packages/mg/configure

    r3745 r10191  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by Autoconf 2.50.
     3# Generated by GNU Autoconf 2.59.
    44#
    5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    6 # Free Software Foundation, Inc.
     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.
     8## --------------------- ##
     9## M4sh Initialization.  ##
     10## --------------------- ##
    911
    1012# Be Bourne compatible
     
    1214  emulate sh
    1315  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+"$@"}'='"$@"'
    1419elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    1520  set -o posix
    1621fi
     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
    1764
    1865# Name of the executable.
    19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
     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
    20193
    21194if expr a : '\(a\)' >/dev/null 2>&1; then
     
    43216rm -f conf$$ conf$$.exe conf$$.file
    44217
     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
    45225as_executable_p="test -f"
    46226
    47 # Support unset when possible.
    48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    49   as_unset=unset
    50 else
    51   as_unset=false
    52 fi
    53 
    54 # NLS nuisances.
    55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     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
    63233
    64234# IFS
     
    69239
    70240# CDPATH.
    71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     241$as_unset CDPATH
     242
    72243
    73244# Name of the host.
     
    82253#
    83254ac_default_prefix=/usr/local
     255ac_config_libobj_dir=.
    84256cross_compiling=no
    85257subdirs=
    86 MFLAGS= MAKEFLAGS=
     258MFLAGS=
     259MAKEFLAGS=
    87260SHELL=${CONFIG_SHELL-/bin/sh}
    88261
     
    92265: ${ac_max_here_lines=38}
    93266
    94 # Avoid depending upon Character Ranges.
    95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
    96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    97 ac_cr_09='0123456789'
    98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
    99 
    100 # Sed expression to map a string onto a valid sh and CPP variable names.
    101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
    102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
     267# Identity of this package.
     268PACKAGE_NAME=
     269PACKAGE_TARNAME=
     270PACKAGE_VERSION=
     271PACKAGE_STRING=
     272PACKAGE_BUGREPORT=
    103273
    104274ac_unique_file="src/text/mgquery.c"
     
    106276ac_includes_default="\
    107277#include <stdio.h>
    108 #include <sys/types.h>
    109 #include <sys/stat.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
    110284#if STDC_HEADERS
    111285# include <stdlib.h>
     
    121295# endif
    122296# include <string.h>
    123 #else
    124 # if HAVE_STRINGS_H
    125 #  include <strings.h>
    126 # endif
     297#endif
     298#if HAVE_STRINGS_H
     299# include <strings.h>
    127300#endif
    128301#if HAVE_INTTYPES_H
    129302# include <inttypes.h>
     303#else
     304# if HAVE_STDINT_H
     305#  include <stdint.h>
     306# endif
    130307#endif
    131308#if HAVE_UNISTD_H
    132309# include <unistd.h>
    133310#endif"
     311
     312ac_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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS'
     313ac_subst_files=''
    134314
    135315# Initialize some variables set by options.
     
    171351mandir='${prefix}/man'
    172352
    173 # Identity of this package.
    174 PACKAGE_NAME=
    175 PACKAGE_TARNAME=
    176 PACKAGE_VERSION=
    177 PACKAGE_STRING=
    178 PACKAGE_BUGREPORT=
    179 
    180353ac_prev=
    181354for ac_option
     
    223396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    224397    # Reject names that are not valid shell variable names.
    225     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    226399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    227400   { (exit 1); exit 1; }; }
     
    232405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    233406    # Reject names that are not valid shell variable names.
    234     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    235408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    236409   { (exit 1); exit 1; }; }
     
    310483
    311484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    312   | --no-cr | --no-c)
     485  | --no-cr | --no-c | -n)
    313486    no_create=yes ;;
    314487
     
    414587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    415588    # Reject names that are not valid shell variable names.
    416     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    417590      { echo "$as_me: error: invalid package name: $ac_package" >&2
    418591   { (exit 1); exit 1; }; }
     
    427600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    428601    # Reject names that are not valid shell variable names.
    429     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    430603      { echo "$as_me: error: invalid package name: $ac_package" >&2
    431604   { (exit 1); exit 1; }; }
     
    459632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    460633    # Reject names that are not valid shell variable names.
    461     expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
     634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    462635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    463636   { (exit 1); exit 1; }; }
     
    469642    # FIXME: should be removed in autoconf 3.0.
    470643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    471     expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
     644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    472645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    473646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     
    484657
    485658# Be sure to have absolute paths.
     659for ac_var in exec_prefix prefix
     660do
     661  eval ac_val=$`echo $ac_var`
     662  case $ac_val in
     663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     665   { (exit 1); exit 1; }; };;
     666  esac
     667done
     668
     669# Be sure to have absolute paths.
    486670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    487               localstatedir libdir includedir oldincludedir infodir mandir \
    488               exec_prefix prefix
     671          localstatedir libdir includedir oldincludedir infodir mandir
    489672do
    490673  eval ac_val=$`echo $ac_var`
    491674  case $ac_val in
    492675    [\\/$]* | ?:[\\/]* ) ;;
    493     NONE ) ;;
    494     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
     676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    495677   { (exit 1); exit 1; }; };;
    496678  esac
     
    499681# There might be people who depend on the old broken behavior: `$host'
    500682# used to hold the argument of --host etc.
     683# FIXME: To remove some day.
    501684build=$build_alias
    502685host=$host_alias
    503686target=$target_alias
    504687
    505 # FIXME: should be removed in autoconf 3.0.
     688# FIXME: To remove some day.
    506689if test "x$host_alias" != x; then
    507690  if test "x$build_alias" = x; then
     
    519702test "$silent" = yes && exec 6>/dev/null
    520703
     704
    521705# Find the source files, if location was not specified.
    522706if test -z "$srcdir"; then
    523707  ac_srcdir_defaulted=yes
    524708  # Try the directory containing this script, then its parent.
    525   ac_prog=$0
    526   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    527   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
     709  ac_confdir=`(dirname "$0") 2>/dev/null ||
     710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     711     X"$0" : 'X\(//\)[^/]' \| \
     712     X"$0" : 'X\(//\)$' \| \
     713     X"$0" : 'X\(/\)' \| \
     714     .     : '\(.\)' 2>/dev/null ||
     715echo X"$0" |
     716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     717      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     718      /^X\(\/\/\)$/{ s//\1/; q; }
     719      /^X\(\/\).*/{ s//\1/; q; }
     720      s/.*/./; q'`
    528721  srcdir=$ac_confdir
    529722  if test ! -r $srcdir/$ac_unique_file; then
     
    535728if test ! -r $srcdir/$ac_unique_file; then
    536729  if test "$ac_srcdir_defaulted" = yes; then
    537     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
     730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    538731   { (exit 1); exit 1; }; }
    539732  else
    540     { echo "$as_me: error: cannot find sources in $srcdir" >&2
     733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    541734   { (exit 1); exit 1; }; }
    542735  fi
    543736fi
     737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     739   { (exit 1); exit 1; }; }
    544740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    545741ac_env_build_alias_set=${build_alias+set}
     
    590786  # Omit some internal or obsolete options to make the list less imposing.
    591787  # This message is too long to be a string in the A/UX 3.1 sh.
    592   cat <<EOF
     788  cat <<_ACEOF
    593789\`configure' configures this package to adapt to many kinds of systems.
    594790
     
    611807      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    612808
    613 EOF
    614 
    615   cat <<EOF
     809_ACEOF
     810
     811  cat <<_ACEOF
    616812Installation directories:
    617813  --prefix=PREFIX         install architecture-independent files in PREFIX
    618                           [$ac_default_prefix]
     814              [$ac_default_prefix]
    619815  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    620                           [PREFIX]
     816              [PREFIX]
    621817
    622818By default, \`make install' will install all the files in
     
    640836  --infodir=DIR          info documentation [PREFIX/info]
    641837  --mandir=DIR           man documentation [PREFIX/man]
    642 EOF
    643 
    644   cat <<\EOF
     838_ACEOF
     839
     840  cat <<\_ACEOF
    645841
    646842Program names:
     
    648844  --program-suffix=SUFFIX            append SUFFIX to installed program names
    649845  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    650 EOF
     846_ACEOF
    651847fi
    652848
    653849if test -n "$ac_init_help"; then
    654850
    655   cat <<\EOF
     851  cat <<\_ACEOF
    656852
    657853Optional Packages:
     
    676872it to find libraries and programs with nonstandard names/locations.
    677873
    678 EOF
     874_ACEOF
    679875fi
    680876
     
    682878  # If there are subdirs, report their specific --help.
    683879  ac_popdir=`pwd`
    684   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    685     cd $ac_subdir
    686     # A "../" for each directory in /$ac_subdir.
    687     ac_dots=`echo $ac_subdir |
    688              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    689 
    690     case $srcdir in
    691     .) # No --srcdir option.  We are building in place.
    692       ac_sub_srcdir=$srcdir ;;
    693     [\\/]* | ?:[\\/]* ) # Absolute path.
    694       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    695     *) # Relative path.
    696       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    697     esac
    698 
     880  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     881    test -d $ac_dir || continue
     882    ac_builddir=.
     883
     884if test "$ac_dir" != .; then
     885  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     886  # A "../" for each directory in $ac_dir_suffix.
     887  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     888else
     889  ac_dir_suffix= ac_top_builddir=
     890fi
     891
     892case $srcdir in
     893  .)  # No --srcdir option.  We are building in place.
     894    ac_srcdir=.
     895    if test -z "$ac_top_builddir"; then
     896       ac_top_srcdir=.
     897    else
     898       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     899    fi ;;
     900  [\\/]* | ?:[\\/]* )  # Absolute path.
     901    ac_srcdir=$srcdir$ac_dir_suffix;
     902    ac_top_srcdir=$srcdir ;;
     903  *) # Relative path.
     904    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     905    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     906esac
     907
     908# Do not use `cd foo && pwd` to compute absolute paths, because
     909# the directories may not exist.
     910case `pwd` in
     911.) ac_abs_builddir="$ac_dir";;
     912*)
     913  case "$ac_dir" in
     914  .) ac_abs_builddir=`pwd`;;
     915  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     916  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     917  esac;;
     918esac
     919case $ac_abs_builddir in
     920.) ac_abs_top_builddir=${ac_top_builddir}.;;
     921*)
     922  case ${ac_top_builddir}. in
     923  .) ac_abs_top_builddir=$ac_abs_builddir;;
     924  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     925  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     926  esac;;
     927esac
     928case $ac_abs_builddir in
     929.) ac_abs_srcdir=$ac_srcdir;;
     930*)
     931  case $ac_srcdir in
     932  .) ac_abs_srcdir=$ac_abs_builddir;;
     933  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     934  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     935  esac;;
     936esac
     937case $ac_abs_builddir in
     938.) ac_abs_top_srcdir=$ac_top_srcdir;;
     939*)
     940  case $ac_top_srcdir in
     941  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     942  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     943  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     944  esac;;
     945esac
     946
     947    cd $ac_dir
    699948    # Check for guested configure; otherwise get Cygnus style configure.
    700     if test -f $ac_sub_srcdir/configure.gnu; then
     949    if test -f $ac_srcdir/configure.gnu; then
    701950      echo
    702       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    703     elif test -f $ac_sub_srcdir/configure; then
     951      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     952    elif test -f $ac_srcdir/configure; then
    704953      echo
    705       $SHELL $ac_sub_srcdir/configure  --help=recursive
    706     elif test -f $ac_sub_srcdir/configure.ac ||
    707            test -f $ac_sub_srcdir/configure.in; then
     954      $SHELL $ac_srcdir/configure  --help=recursive
     955    elif test -f $ac_srcdir/configure.ac ||
     956       test -f $ac_srcdir/configure.in; then
    708957      echo
    709958      $ac_configure --help
    710959    else
    711       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
     960      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    712961    fi
    713962    cd $ac_popdir
     
    717966test -n "$ac_init_help" && exit 0
    718967if $ac_init_version; then
    719   cat <<\EOF
    720 
    721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    722 Free Software Foundation, Inc.
     968  cat <<\_ACEOF
     969
     970Copyright (C) 2003 Free Software Foundation, Inc.
    723971This configure script is free software; the Free Software Foundation
    724972gives unlimited permission to copy, distribute and modify it.
    725 EOF
     973_ACEOF
    726974  exit 0
    727975fi
    728976exec 5>config.log
    729 cat >&5 <<EOF
     977cat >&5 <<_ACEOF
    730978This file contains any messages produced by compilers while
    731979running configure, to aid debugging if configure makes a mistake.
    732980
    733981It was created by $as_me, which was
    734 generated by GNU Autoconf 2.50.  Invocation command line was
     982generated by GNU Autoconf 2.59.  Invocation command line was
    735983
    736984  $ $0 $@
    737985
    738 EOF
     986_ACEOF
    739987{
    740988cat <<_ASUNAME
    741 ## ---------- ##
    742 ## Platform.  ##
    743 ## ---------- ##
     989## --------- ##
     990## Platform. ##
     991## --------- ##
    744992
    745993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     
    7601008/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    7611009
    762 PATH = $PATH
    763 
    7641010_ASUNAME
     1011
     1012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1013for as_dir in $PATH
     1014do
     1015  IFS=$as_save_IFS
     1016  test -z "$as_dir" && as_dir=.
     1017  echo "PATH: $as_dir"
     1018done
     1019
    7651020} >&5
    7661021
    767 cat >&5 <<EOF
    768 ## ------------ ##
    769 ## Core tests.  ##
    770 ## ------------ ##
    771 
    772 EOF
     1022cat >&5 <<_ACEOF
     1023
     1024
     1025## ----------- ##
     1026## Core tests. ##
     1027## ----------- ##
     1028
     1029_ACEOF
     1030
    7731031
    7741032# Keep a trace of the command line.
    7751033# Strip out --no-create and --no-recursion so they do not pile up.
     1034# Strip out --silent because we don't want to record it for future runs.
    7761035# Also quote any args containing shell meta-characters.
     1036# Make two passes to allow for proper duplicate-argument suppression.
    7771037ac_configure_args=
     1038ac_configure_args0=
     1039ac_configure_args1=
    7781040ac_sep=
    779 for ac_arg
     1041ac_must_keep_next=false
     1042for ac_pass in 1 2
    7801043do
    781   case $ac_arg in
    782   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    783   | --no-cr | --no-c) ;;
    784   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    785   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    786   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    787     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    788     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    789     ac_sep=" " ;;
    790   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    791      ac_sep=" " ;;
    792   esac
    793   # Get rid of the leading space.
     1044  for ac_arg
     1045  do
     1046    case $ac_arg in
     1047    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1049    | -silent | --silent | --silen | --sile | --sil)
     1050      continue ;;
     1051    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1052      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1053    esac
     1054    case $ac_pass in
     1055    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1056    2)
     1057      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1058      if test $ac_must_keep_next = true; then
     1059    ac_must_keep_next=false # Got value, back to normal.
     1060      else
     1061    case $ac_arg in
     1062      *=* | --config-cache | -C | -disable-* | --disable-* \
     1063      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1064      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1065      | -with-* | --with-* | -without-* | --without-* | --x)
     1066        case "$ac_configure_args0 " in
     1067          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1068        esac
     1069        ;;
     1070      -* ) ac_must_keep_next=true ;;
     1071    esac
     1072      fi
     1073      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1074      # Get rid of the leading space.
     1075      ac_sep=" "
     1076      ;;
     1077    esac
     1078  done
    7941079done
     1080$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1081$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
    7951082
    7961083# When interrupted or exit'd, cleanup temporary files, and complete
    7971084# config.log.  We remove comments because anyway the quotes in there
    7981085# would cause problems or look ugly.
     1086# WARNING: Be sure not to use single quotes in there, as some shells,
     1087# such as our DU 5.0 friend, will then `close' the trap.
    7991088trap 'exit_status=$?
    8001089  # Save into config.log some information that might help in debugging.
    801   echo >&5
    802   echo "## ----------------- ##" >&5
    803   echo "## Cache variables.  ##" >&5
    804   echo "## ----------------- ##" >&5
    805   echo >&5
    806   # The following way of writing the cache mishandles newlines in values,
     1090  {
     1091    echo
     1092
     1093    cat <<\_ASBOX
     1094## ---------------- ##
     1095## Cache variables. ##
     1096## ---------------- ##
     1097_ASBOX
     1098    echo
     1099    # The following way of writing the cache mishandles newlines in values,
    8071100{
    8081101  (set) 2>&1 |
     
    8101103    *ac_space=\ *)
    8111104      sed -n \
    812         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    813           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1105    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1106      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    8141107      ;;
    8151108    *)
    8161109      sed -n \
    817         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1110    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    8181111      ;;
    8191112    esac;
    820 } >&5
    821   sed "/^$/d" confdefs.h >conftest.log
    822   if test -s conftest.log; then
    823     echo >&5
    824     echo "## ------------ ##" >&5
    825     echo "## confdefs.h.  ##" >&5
    826     echo "## ------------ ##" >&5
    827     echo >&5
    828     cat conftest.log >&5
    829   fi
    830   (echo; echo) >&5
    831   test "$ac_signal" != 0 &&
    832     echo "$as_me: caught signal $ac_signal" >&5
    833   echo "$as_me: exit $exit_status" >&5
    834   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
     1113}
     1114    echo
     1115
     1116    cat <<\_ASBOX
     1117## ----------------- ##
     1118## Output variables. ##
     1119## ----------------- ##
     1120_ASBOX
     1121    echo
     1122    for ac_var in $ac_subst_vars
     1123    do
     1124      eval ac_val=$`echo $ac_var`
     1125      echo "$ac_var='"'"'$ac_val'"'"'"
     1126    done | sort
     1127    echo
     1128
     1129    if test -n "$ac_subst_files"; then
     1130      cat <<\_ASBOX
     1131## ------------- ##
     1132## Output files. ##
     1133## ------------- ##
     1134_ASBOX
     1135      echo
     1136      for ac_var in $ac_subst_files
     1137      do
     1138    eval ac_val=$`echo $ac_var`
     1139    echo "$ac_var='"'"'$ac_val'"'"'"
     1140      done | sort
     1141      echo
     1142    fi
     1143
     1144    if test -s confdefs.h; then
     1145      cat <<\_ASBOX
     1146## ----------- ##
     1147## confdefs.h. ##
     1148## ----------- ##
     1149_ASBOX
     1150      echo
     1151      sed "/^$/d" confdefs.h | sort
     1152      echo
     1153    fi
     1154    test "$ac_signal" != 0 &&
     1155      echo "$as_me: caught signal $ac_signal"
     1156    echo "$as_me: exit $exit_status"
     1157  } >&5
     1158  rm -f core *.core &&
     1159  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    8351160    exit $exit_status
    8361161     ' 0
    8371162for ac_signal in 1 2 13 15; do
    838   trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
     1163  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    8391164done
    8401165ac_signal=0
     
    8441169# AIX cpp loses on an empty file, so make sure it contains at least a newline.
    8451170echo >confdefs.h
     1171
     1172# Predefined preprocessor variables.
     1173
     1174cat >>confdefs.h <<_ACEOF
     1175#define PACKAGE_NAME "$PACKAGE_NAME"
     1176_ACEOF
     1177
     1178
     1179cat >>confdefs.h <<_ACEOF
     1180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1181_ACEOF
     1182
     1183
     1184cat >>confdefs.h <<_ACEOF
     1185#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1186_ACEOF
     1187
     1188
     1189cat >>confdefs.h <<_ACEOF
     1190#define PACKAGE_STRING "$PACKAGE_STRING"
     1191_ACEOF
     1192
     1193
     1194cat >>confdefs.h <<_ACEOF
     1195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1196_ACEOF
     1197
    8461198
    8471199# Let the site file select an alternate cache file if it wants to.
     
    8561208for ac_site_file in $CONFIG_SITE; do
    8571209  if test -r "$ac_site_file"; then
    858     { echo "$as_me:858: loading site script $ac_site_file" >&5
     1210    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    8591211echo "$as_me: loading site script $ac_site_file" >&6;}
    860     cat "$ac_site_file" >&5
     1212    sed 's/^/| /' "$ac_site_file" >&5
    8611213    . "$ac_site_file"
    8621214  fi
     
    8671219  # files actually), so we avoid doing that.
    8681220  if test -f "$cache_file"; then
    869     { echo "$as_me:869: loading cache $cache_file" >&5
     1221    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    8701222echo "$as_me: loading cache $cache_file" >&6;}
    8711223    case $cache_file in
     
    8751227  fi
    8761228else
    877   { echo "$as_me:877: creating cache $cache_file" >&5
     1229  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    8781230echo "$as_me: creating cache $cache_file" >&6;}
    8791231  >$cache_file
     
    8821234# Check that the precious variables saved in the cache have kept the same
    8831235# value.
    884 ac_suggest_removing_cache=false
     1236ac_cache_corrupted=false
    8851237for ac_var in `(set) 2>&1 |
    886                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1238           sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    8871239  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    8881240  eval ac_new_set=\$ac_env_${ac_var}_set
     
    8911243  case $ac_old_set,$ac_new_set in
    8921244    set,)
    893       { echo "$as_me:893: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    894 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    895       ac_suggest_removing_cache=: ;;
     1245      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1246echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1247      ac_cache_corrupted=: ;;
    8961248    ,set)
    897       { echo "$as_me:897: WARNING: \`$ac_var' was not set in the previous run" >&5
    898 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
    899       ac_suggest_removing_cache=: ;;
     1249      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1250echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1251      ac_cache_corrupted=: ;;
    9001252    ,);;
    9011253    *)
    9021254      if test "x$ac_old_val" != "x$ac_new_val"; then
    903         { echo "$as_me:903: WARNING: \`$ac_var' has changed since the previous run:" >&5
    904 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
    905         { echo "$as_me:905: WARNING:   former value:  $ac_old_val" >&5
    906 echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
    907         { echo "$as_me:907: WARNING:   current value: $ac_new_val" >&5
    908 echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
    909         ac_suggest_removing_cache=:
     1255    { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1256echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1257    { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1258echo "$as_me:   former value:  $ac_old_val" >&2;}
     1259    { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1260echo "$as_me:   current value: $ac_new_val" >&2;}
     1261    ac_cache_corrupted=:
    9101262      fi;;
    9111263  esac
     1264  # Pass precious variables to config.status.
     1265  if test "$ac_new_set" = set; then
     1266    case $ac_new_val in
     1267    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1268      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1269    *) ac_arg=$ac_var=$ac_new_val ;;
     1270    esac
     1271    case " $ac_configure_args " in
     1272      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1273      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1274    esac
     1275  fi
    9121276done
    913 if $ac_suggest_removing_cache; then
    914   { echo "$as_me:914: WARNING: changes in the environment can compromise the build" >&5
    915 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
    916   { echo "$as_me:916: WARNING: consider removing $cache_file and starting over" >&5
    917 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
     1277if $ac_cache_corrupted; then
     1278  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1279echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1280  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1281echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1282   { (exit 1); exit 1; }; }
    9181283fi
    9191284
     
    9241289ac_compiler_gnu=$ac_cv_c_compiler_gnu
    9251290
    926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    927   *c*,-n*) ECHO_N= ECHO_C='
    928 ' ECHO_T='  ' ;;
    929   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    930   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
    931 esac
    932 echo "#! $SHELL" >conftest.sh
    933 echo  "exit 0"   >>conftest.sh
    934 chmod +x conftest.sh
    935 if { (echo "$as_me:935: PATH=\".;.\"; conftest.sh") >&5
    936   (PATH=".;."; conftest.sh) 2>&5
    937   ac_status=$?
    938   echo "$as_me:938: \$? = $ac_status" >&5
    939   (exit $ac_status); }; then
    940   ac_path_separator=';'
    941 else
    942   ac_path_separator=:
    943 fi
    944 PATH_SEPARATOR="$ac_path_separator"
    945 rm -f conftest.sh
    946 
    947 ac_config_headers="$ac_config_headers config.h"
    948 
    949 if test "$program_transform_name" = s,x,x,; then
    950   program_transform_name=
    951 else
    952   # Double any \ or $.  echo might interpret backslashes.
    953   cat <<\EOF >conftest.sed
    954 s,\\,\\\\,g; s,\$,$$,g
    955 EOF
    956   program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    957   rm -f conftest.sed
    958 fi
     1291
     1292
     1293
     1294
     1295
     1296
     1297
     1298
     1299
     1300
     1301
     1302
     1303
     1304
     1305
     1306
     1307
     1308
     1309          ac_config_headers="$ac_config_headers config.h"
     1310
    9591311test "$program_prefix" != NONE &&
    960   program_transform_name="s,^,${program_prefix},;$program_transform_name"
     1312  program_transform_name="s,^,$program_prefix,;$program_transform_name"
    9611313# Use a double $ so make ignores it.
    9621314test "$program_suffix" != NONE &&
    963   program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
    964 
    965 # sed with no file args requires a program.
    966 test -z "$program_transform_name" && program_transform_name="s,x,x,"
     1315  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
     1316# Double any \ or $.  echo might interpret backslashes.
     1317# By default was `s,x,x', remove it if useless.
     1318cat <<\_ACEOF >conftest.sed
     1319s/[\\$]/&&/g;s/;s,x,x,$//
     1320_ACEOF
     1321program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     1322rm conftest.sed
     1323
    9671324
    9681325PACKAGE=mg
    9691326VERSION=1.2
    9701327
    971 cat >>confdefs.h <<EOF
     1328LDFLAGS=
     1329
     1330cat >>confdefs.h <<_ACEOF
    9721331#define PACKAGE "$PACKAGE"
    973 EOF
    974 
    975 cat >>confdefs.h <<EOF
     1332_ACEOF
     1333
     1334cat >>confdefs.h <<_ACEOF
    9761335#define VERSION "$VERSION"
    977 EOF
     1336_ACEOF
     1337
     1338
     1339
    9781340
    9791341ac_ext=cc
     
    9831345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    9841346if test -n "$ac_tool_prefix"; then
    985   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1347  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    9861348  do
    9871349    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    9881350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    989 echo "$as_me:989: checking for $ac_word" >&5
     1351echo "$as_me:$LINENO: checking for $ac_word" >&5
    9901352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    9911353if test "${ac_cv_prog_CXX+set}" = set; then
     
    9951357  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    9961358else
    997   ac_save_IFS=$IFS; IFS=$ac_path_separator
    998 ac_dummy="$PATH"
    999 for ac_dir in $ac_dummy; do
    1000   IFS=$ac_save_IFS
    1001   test -z "$ac_dir" && ac_dir=.
    1002   $as_executable_p "$ac_dir/$ac_word" || continue
    1003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    1004 echo "$as_me:1004: found $ac_dir/$ac_word" >&5
    1005 break
     1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1360for as_dir in $PATH
     1361do
     1362  IFS=$as_save_IFS
     1363  test -z "$as_dir" && as_dir=.
     1364  for ac_exec_ext in '' $ac_executable_extensions; do
     1365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1366    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1368    break 2
     1369  fi
     1370done
    10061371done
    10071372
     
    10101375CXX=$ac_cv_prog_CXX
    10111376if test -n "$CXX"; then
    1012   echo "$as_me:1012: result: $CXX" >&5
     1377  echo "$as_me:$LINENO: result: $CXX" >&5
    10131378echo "${ECHO_T}$CXX" >&6
    10141379else
    1015   echo "$as_me:1015: result: no" >&5
     1380  echo "$as_me:$LINENO: result: no" >&5
    10161381echo "${ECHO_T}no" >&6
    10171382fi
     
    10221387if test -z "$CXX"; then
    10231388  ac_ct_CXX=$CXX
    1024   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1389  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    10251390do
    10261391  # Extract the first word of "$ac_prog", so it can be a program name with args.
    10271392set dummy $ac_prog; ac_word=$2
    1028 echo "$as_me:1028: checking for $ac_word" >&5
     1393echo "$as_me:$LINENO: checking for $ac_word" >&5
    10291394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    10301395if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     
    10341399  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    10351400else
    1036   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1037 ac_dummy="$PATH"
    1038 for ac_dir in $ac_dummy; do
    1039   IFS=$ac_save_IFS
    1040   test -z "$ac_dir" && ac_dir=.
    1041   $as_executable_p "$ac_dir/$ac_word" || continue
    1042 ac_cv_prog_ac_ct_CXX="$ac_prog"
    1043 echo "$as_me:1043: found $ac_dir/$ac_word" >&5
    1044 break
     1401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1402for as_dir in $PATH
     1403do
     1404  IFS=$as_save_IFS
     1405  test -z "$as_dir" && as_dir=.
     1406  for ac_exec_ext in '' $ac_executable_extensions; do
     1407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1408    ac_cv_prog_ac_ct_CXX="$ac_prog"
     1409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1410    break 2
     1411  fi
     1412done
    10451413done
    10461414
     
    10491417ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    10501418if test -n "$ac_ct_CXX"; then
    1051   echo "$as_me:1051: result: $ac_ct_CXX" >&5
     1419  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    10521420echo "${ECHO_T}$ac_ct_CXX" >&6
    10531421else
    1054   echo "$as_me:1054: result: no" >&5
     1422  echo "$as_me:$LINENO: result: no" >&5
    10551423echo "${ECHO_T}no" >&6
    10561424fi
     
    10631431fi
    10641432
     1433
     1434# Provide some information about the compiler.
     1435echo "$as_me:$LINENO:" \
     1436     "checking for C++ compiler version" >&5
     1437ac_compiler=`set X $ac_compile; echo $2`
     1438{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1439  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1440  ac_status=$?
     1441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1442  (exit $ac_status); }
     1443{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1444  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1445  ac_status=$?
     1446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1447  (exit $ac_status); }
     1448{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1449  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1450  ac_status=$?
     1451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1452  (exit $ac_status); }
     1453
    10651454cat >conftest.$ac_ext <<_ACEOF
    1066 #line 1066 "configure"
    1067 #include "confdefs.h"
     1455/* confdefs.h.  */
     1456_ACEOF
     1457cat confdefs.h >>conftest.$ac_ext
     1458cat >>conftest.$ac_ext <<_ACEOF
     1459/* end confdefs.h.  */
    10681460
    10691461int
     
    10761468_ACEOF
    10771469ac_clean_files_save=$ac_clean_files
    1078 ac_clean_files="$ac_clean_files a.out a.exe"
     1470ac_clean_files="$ac_clean_files a.out a.exe b.out"
    10791471# Try to create an executable without -o first, disregard a.out.
    1080 # It will help us diagnose broken compiler, and finding out an intuition
     1472# It will help us diagnose broken compilers, and finding out an intuition
    10811473# of exeext.
    1082 echo "$as_me:1082: checking for C++ compiler default output" >&5
    1083 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
     1474echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
     1475echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
    10841476ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1085 if { (eval echo "$as_me:1085: \"$ac_link_default\"") >&5
     1477if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    10861478  (eval $ac_link_default) 2>&5
    10871479  ac_status=$?
    1088   echo "$as_me:1088: \$? = $ac_status" >&5
     1480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10891481  (exit $ac_status); }; then
    1090   for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
     1482  # Find the output, starting from the most likely.  This scheme is
     1483# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1484# resort.
     1485
     1486# Be careful to initialize this variable, since it used to be cached.
     1487# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1488ac_cv_exeext=
     1489# b.out is created by i960 compilers.
     1490for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1491do
     1492  test -f "$ac_file" || continue
    10911493  case $ac_file in
    1092     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    1093     a.out ) # We found the default executable, but exeext='' is most
    1094             # certainly right.
    1095             break;;
    1096     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1097           export ac_cv_exeext
    1098           break;;
    1099     * ) break;;
     1494    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1495    ;;
     1496    conftest.$ac_ext )
     1497    # This is the source file.
     1498    ;;
     1499    [ab].out )
     1500    # We found the default executable, but exeext='' is most
     1501    # certainly right.
     1502    break;;
     1503    *.* )
     1504    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1505    # FIXME: I believe we export ac_cv_exeext for Libtool,
     1506    # but it would be cool to find out if it's true.  Does anybody
     1507    # maintain Libtool? --akim.
     1508    export ac_cv_exeext
     1509    break;;
     1510    * )
     1511    break;;
    11001512  esac
    11011513done
    11021514else
    11031515  echo "$as_me: failed program was:" >&5
    1104 cat conftest.$ac_ext >&5
    1105 { { echo "$as_me:1105: error: C++ compiler cannot create executables" >&5
    1106 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
     1516sed 's/^/| /' conftest.$ac_ext >&5
     1517
     1518{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
     1519See \`config.log' for more details." >&5
     1520echo "$as_me: error: C++ compiler cannot create executables
     1521See \`config.log' for more details." >&2;}
    11071522   { (exit 77); exit 77; }; }
    11081523fi
    11091524
    11101525ac_exeext=$ac_cv_exeext
    1111 echo "$as_me:1111: result: $ac_file" >&5
     1526echo "$as_me:$LINENO: result: $ac_file" >&5
    11121527echo "${ECHO_T}$ac_file" >&6
    11131528
    11141529# Check the compiler produces executables we can run.  If not, either
    11151530# the compiler is broken, or we cross compile.
    1116 echo "$as_me:1116: checking whether the C++ compiler works" >&5
     1531echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
    11171532echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
    11181533# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     
    11201535if test "$cross_compiling" != yes; then
    11211536  if { ac_try='./$ac_file'
    1122   { (eval echo "$as_me:1122: \"$ac_try\"") >&5
    1123   (eval $ac_try) 2>&5
    1124   ac_status=$?
    1125   echo "$as_me:1125: \$? = $ac_status" >&5
     1537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1538  (eval $ac_try) 2>&5
     1539  ac_status=$?
     1540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11261541  (exit $ac_status); }; }; then
    11271542    cross_compiling=no
     
    11301545    cross_compiling=yes
    11311546    else
    1132     { { echo "$as_me:1132: error: cannot run C++ compiled programs.
    1133 If you meant to cross compile, use \`--host'." >&5
     1547    { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
     1548If you meant to cross compile, use \`--host'.
     1549See \`config.log' for more details." >&5
    11341550echo "$as_me: error: cannot run C++ compiled programs.
    1135 If you meant to cross compile, use \`--host'." >&2;}
     1551If you meant to cross compile, use \`--host'.
     1552See \`config.log' for more details." >&2;}
    11361553   { (exit 1); exit 1; }; }
    11371554    fi
    11381555  fi
    11391556fi
    1140 echo "$as_me:1140: result: yes" >&5
     1557echo "$as_me:$LINENO: result: yes" >&5
    11411558echo "${ECHO_T}yes" >&6
    11421559
    1143 rm -f a.out a.exe conftest$ac_cv_exeext
     1560rm -f a.out a.exe conftest$ac_cv_exeext b.out
    11441561ac_clean_files=$ac_clean_files_save
    11451562# Check the compiler produces executables we can run.  If not, either
    11461563# the compiler is broken, or we cross compile.
    1147 echo "$as_me:1147: checking whether we are cross compiling" >&5
     1564echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    11481565echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1149 echo "$as_me:1149: result: $cross_compiling" >&5
     1566echo "$as_me:$LINENO: result: $cross_compiling" >&5
    11501567echo "${ECHO_T}$cross_compiling" >&6
    11511568
    1152 echo "$as_me:1152: checking for executable suffix" >&5
    1153 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
    1154 if { (eval echo "$as_me:1154: \"$ac_link\"") >&5
     1569echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1570echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    11551572  (eval $ac_link) 2>&5
    11561573  ac_status=$?
    1157   echo "$as_me:1157: \$? = $ac_status" >&5
     1574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11581575  (exit $ac_status); }; then
    11591576  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     
    11611578# work properly (i.e., refer to `conftest.exe'), while it won't with
    11621579# `rm'.
    1163 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     1580for ac_file in conftest.exe conftest conftest.*; do
     1581  test -f "$ac_file" || continue
    11641582  case $ac_file in
    1165     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1583    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    11661584    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1167           export ac_cv_exeext
    1168           break;;
     1585      export ac_cv_exeext
     1586      break;;
    11691587    * ) break;;
    11701588  esac
    11711589done
    11721590else
    1173   { { echo "$as_me:1173: error: cannot compute EXEEXT: cannot compile and link" >&5
    1174 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
     1591  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1592See \`config.log' for more details." >&5
     1593echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1594See \`config.log' for more details." >&2;}
    11751595   { (exit 1); exit 1; }; }
    11761596fi
    11771597
    11781598rm -f conftest$ac_cv_exeext
    1179 echo "$as_me:1179: result: $ac_cv_exeext" >&5
     1599echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    11801600echo "${ECHO_T}$ac_cv_exeext" >&6
    11811601
     
    11831603EXEEXT=$ac_cv_exeext
    11841604ac_exeext=$EXEEXT
    1185 echo "$as_me:1185: checking for object suffix" >&5
    1186 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
     1605echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1606echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    11871607if test "${ac_cv_objext+set}" = set; then
    11881608  echo $ECHO_N "(cached) $ECHO_C" >&6
    11891609else
    11901610  cat >conftest.$ac_ext <<_ACEOF
    1191 #line 1191 "configure"
    1192 #include "confdefs.h"
     1611/* confdefs.h.  */
     1612_ACEOF
     1613cat confdefs.h >>conftest.$ac_ext
     1614cat >>conftest.$ac_ext <<_ACEOF
     1615/* end confdefs.h.  */
    11931616
    11941617int
     
    12011624_ACEOF
    12021625rm -f conftest.o conftest.obj
    1203 if { (eval echo "$as_me:1203: \"$ac_compile\"") >&5
     1626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    12041627  (eval $ac_compile) 2>&5
    12051628  ac_status=$?
    1206   echo "$as_me:1206: \$? = $ac_status" >&5
     1629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12071630  (exit $ac_status); }; then
    12081631  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    12091632  case $ac_file in
    1210     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1633    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    12111634    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    12121635       break;;
     
    12151638else
    12161639  echo "$as_me: failed program was:" >&5
    1217 cat conftest.$ac_ext >&5
    1218 { { echo "$as_me:1218: error: cannot compute OBJEXT: cannot compile" >&5
    1219 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
     1640sed 's/^/| /' conftest.$ac_ext >&5
     1641
     1642{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1643See \`config.log' for more details." >&5
     1644echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1645See \`config.log' for more details." >&2;}
    12201646   { (exit 1); exit 1; }; }
    12211647fi
     
    12231649rm -f conftest.$ac_cv_objext conftest.$ac_ext
    12241650fi
    1225 echo "$as_me:1225: result: $ac_cv_objext" >&5
     1651echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    12261652echo "${ECHO_T}$ac_cv_objext" >&6
    12271653OBJEXT=$ac_cv_objext
    12281654ac_objext=$OBJEXT
    1229 echo "$as_me:1229: checking whether we are using the GNU C++ compiler" >&5
     1655echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    12301656echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    12311657if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     
    12331659else
    12341660  cat >conftest.$ac_ext <<_ACEOF
    1235 #line 1235 "configure"
    1236 #include "confdefs.h"
     1661/* confdefs.h.  */
     1662_ACEOF
     1663cat confdefs.h >>conftest.$ac_ext
     1664cat >>conftest.$ac_ext <<_ACEOF
     1665/* end confdefs.h.  */
    12371666
    12381667int
     
    12481677_ACEOF
    12491678rm -f conftest.$ac_objext
    1250 if { (eval echo "$as_me:1250: \"$ac_compile\"") >&5
    1251   (eval $ac_compile) 2>&5
    1252   ac_status=$?
    1253   echo "$as_me:1253: \$? = $ac_status" >&5
     1679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1680  (eval $ac_compile) 2>conftest.er1
     1681  ac_status=$?
     1682  grep -v '^ *+' conftest.er1 >conftest.err
     1683  rm -f conftest.er1
     1684  cat conftest.err >&5
     1685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12541686  (exit $ac_status); } &&
    1255          { ac_try='test -s conftest.$ac_objext'
    1256   { (eval echo "$as_me:1256: \"$ac_try\"") >&5
    1257   (eval $ac_try) 2>&5
    1258   ac_status=$?
    1259   echo "$as_me:1259: \$? = $ac_status" >&5
     1687     { ac_try='test -z "$ac_cxx_werror_flag"
     1688             || test ! -s conftest.err'
     1689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1690  (eval $ac_try) 2>&5
     1691  ac_status=$?
     1692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1693  (exit $ac_status); }; } &&
     1694     { ac_try='test -s conftest.$ac_objext'
     1695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1696  (eval $ac_try) 2>&5
     1697  ac_status=$?
     1698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12601699  (exit $ac_status); }; }; then
    12611700  ac_compiler_gnu=yes
    12621701else
    12631702  echo "$as_me: failed program was:" >&5
    1264 cat conftest.$ac_ext >&5
     1703sed 's/^/| /' conftest.$ac_ext >&5
     1704
    12651705ac_compiler_gnu=no
    12661706fi
    1267 rm -f conftest.$ac_objext conftest.$ac_ext
     1707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    12681708ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    12691709
    12701710fi
    1271 echo "$as_me:1271: result: $ac_cv_cxx_compiler_gnu" >&5
     1711echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    12721712echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    12731713GXX=`test $ac_compiler_gnu = yes && echo yes`
     
    12751715ac_save_CXXFLAGS=$CXXFLAGS
    12761716CXXFLAGS="-g"
    1277 echo "$as_me:1277: checking whether $CXX accepts -g" >&5
     1717echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    12781718echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    12791719if test "${ac_cv_prog_cxx_g+set}" = set; then
     
    12811721else
    12821722  cat >conftest.$ac_ext <<_ACEOF
    1283 #line 1283 "configure"
    1284 #include "confdefs.h"
     1723/* confdefs.h.  */
     1724_ACEOF
     1725cat confdefs.h >>conftest.$ac_ext
     1726cat >>conftest.$ac_ext <<_ACEOF
     1727/* end confdefs.h.  */
    12851728
    12861729int
     
    12931736_ACEOF
    12941737rm -f conftest.$ac_objext
    1295 if { (eval echo "$as_me:1295: \"$ac_compile\"") >&5
    1296   (eval $ac_compile) 2>&5
    1297   ac_status=$?
    1298   echo "$as_me:1298: \$? = $ac_status" >&5
     1738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1739  (eval $ac_compile) 2>conftest.er1
     1740  ac_status=$?
     1741  grep -v '^ *+' conftest.er1 >conftest.err
     1742  rm -f conftest.er1
     1743  cat conftest.err >&5
     1744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12991745  (exit $ac_status); } &&
    1300          { ac_try='test -s conftest.$ac_objext'
    1301   { (eval echo "$as_me:1301: \"$ac_try\"") >&5
    1302   (eval $ac_try) 2>&5
    1303   ac_status=$?
    1304   echo "$as_me:1304: \$? = $ac_status" >&5
     1746     { ac_try='test -z "$ac_cxx_werror_flag"
     1747             || test ! -s conftest.err'
     1748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1749  (eval $ac_try) 2>&5
     1750  ac_status=$?
     1751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1752  (exit $ac_status); }; } &&
     1753     { ac_try='test -s conftest.$ac_objext'
     1754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1755  (eval $ac_try) 2>&5
     1756  ac_status=$?
     1757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13051758  (exit $ac_status); }; }; then
    13061759  ac_cv_prog_cxx_g=yes
    13071760else
    13081761  echo "$as_me: failed program was:" >&5
    1309 cat conftest.$ac_ext >&5
     1762sed 's/^/| /' conftest.$ac_ext >&5
     1763
    13101764ac_cv_prog_cxx_g=no
    13111765fi
    1312 rm -f conftest.$ac_objext conftest.$ac_ext
    1313 fi
    1314 echo "$as_me:1314: result: $ac_cv_prog_cxx_g" >&5
     1766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1767fi
     1768echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    13151769echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    13161770if test "$ac_test_CXXFLAGS" = set; then
     
    13301784fi
    13311785for ac_declaration in \
    1332    ''\
    1333    '#include <stdlib.h>' \
     1786   '' \
    13341787   'extern "C" void std::exit (int) throw (); using std::exit;' \
    13351788   'extern "C" void std::exit (int); using std::exit;' \
     
    13391792do
    13401793  cat >conftest.$ac_ext <<_ACEOF
    1341 #line 1341 "configure"
    1342 #include "confdefs.h"
     1794/* confdefs.h.  */
     1795_ACEOF
     1796cat confdefs.h >>conftest.$ac_ext
     1797cat >>conftest.$ac_ext <<_ACEOF
     1798/* end confdefs.h.  */
     1799$ac_declaration
    13431800#include <stdlib.h>
     1801int
     1802main ()
     1803{
     1804exit (42);
     1805  ;
     1806  return 0;
     1807}
     1808_ACEOF
     1809rm -f conftest.$ac_objext
     1810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1811  (eval $ac_compile) 2>conftest.er1
     1812  ac_status=$?
     1813  grep -v '^ *+' conftest.er1 >conftest.err
     1814  rm -f conftest.er1
     1815  cat conftest.err >&5
     1816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1817  (exit $ac_status); } &&
     1818     { ac_try='test -z "$ac_cxx_werror_flag"
     1819             || test ! -s conftest.err'
     1820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1821  (eval $ac_try) 2>&5
     1822  ac_status=$?
     1823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1824  (exit $ac_status); }; } &&
     1825     { ac_try='test -s conftest.$ac_objext'
     1826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1827  (eval $ac_try) 2>&5
     1828  ac_status=$?
     1829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1830  (exit $ac_status); }; }; then
     1831  :
     1832else
     1833  echo "$as_me: failed program was:" >&5
     1834sed 's/^/| /' conftest.$ac_ext >&5
     1835
     1836continue
     1837fi
     1838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1839  cat >conftest.$ac_ext <<_ACEOF
     1840/* confdefs.h.  */
     1841_ACEOF
     1842cat confdefs.h >>conftest.$ac_ext
     1843cat >>conftest.$ac_ext <<_ACEOF
     1844/* end confdefs.h.  */
    13441845$ac_declaration
    13451846int
     
    13521853_ACEOF
    13531854rm -f conftest.$ac_objext
    1354 if { (eval echo "$as_me:1354: \"$ac_compile\"") >&5
    1355   (eval $ac_compile) 2>&5
    1356   ac_status=$?
    1357   echo "$as_me:1357: \$? = $ac_status" >&5
     1855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1856  (eval $ac_compile) 2>conftest.er1
     1857  ac_status=$?
     1858  grep -v '^ *+' conftest.er1 >conftest.err
     1859  rm -f conftest.er1
     1860  cat conftest.err >&5
     1861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13581862  (exit $ac_status); } &&
    1359          { ac_try='test -s conftest.$ac_objext'
    1360   { (eval echo "$as_me:1360: \"$ac_try\"") >&5
    1361   (eval $ac_try) 2>&5
    1362   ac_status=$?
    1363   echo "$as_me:1363: \$? = $ac_status" >&5
    1364   (exit $ac_status); }; }; then
    1365   :
    1366 else
    1367   echo "$as_me: failed program was:" >&5
    1368 cat conftest.$ac_ext >&5
    1369 continue
    1370 fi
    1371 rm -f conftest.$ac_objext conftest.$ac_ext
    1372   cat >conftest.$ac_ext <<_ACEOF
    1373 #line 1373 "configure"
    1374 #include "confdefs.h"
    1375 $ac_declaration
    1376 int
    1377 main ()
    1378 {
    1379 exit (42);
    1380   ;
    1381   return 0;
    1382 }
    1383 _ACEOF
    1384 rm -f conftest.$ac_objext
    1385 if { (eval echo "$as_me:1385: \"$ac_compile\"") >&5
    1386   (eval $ac_compile) 2>&5
    1387   ac_status=$?
    1388   echo "$as_me:1388: \$? = $ac_status" >&5
    1389   (exit $ac_status); } &&
    1390          { ac_try='test -s conftest.$ac_objext'
    1391   { (eval echo "$as_me:1391: \"$ac_try\"") >&5
    1392   (eval $ac_try) 2>&5
    1393   ac_status=$?
    1394   echo "$as_me:1394: \$? = $ac_status" >&5
     1863     { ac_try='test -z "$ac_cxx_werror_flag"
     1864             || test ! -s conftest.err'
     1865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1866  (eval $ac_try) 2>&5
     1867  ac_status=$?
     1868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1869  (exit $ac_status); }; } &&
     1870     { ac_try='test -s conftest.$ac_objext'
     1871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1872  (eval $ac_try) 2>&5
     1873  ac_status=$?
     1874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13951875  (exit $ac_status); }; }; then
    13961876  break
    13971877else
    13981878  echo "$as_me: failed program was:" >&5
    1399 cat conftest.$ac_ext >&5
    1400 fi
    1401 rm -f conftest.$ac_objext conftest.$ac_ext
     1879sed 's/^/| /' conftest.$ac_ext >&5
     1880
     1881fi
     1882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    14021883done
    1403 echo '#ifdef __cplusplus' >>confdefs.h
    1404 echo $ac_declaration      >>confdefs.h
    1405 echo '#endif'             >>confdefs.h
     1884rm -f conftest*
     1885if test -n "$ac_declaration"; then
     1886  echo '#ifdef __cplusplus' >>confdefs.h
     1887  echo $ac_declaration      >>confdefs.h
     1888  echo '#endif'             >>confdefs.h
     1889fi
    14061890
    14071891ac_ext=c
     
    14111895ac_compiler_gnu=$ac_cv_c_compiler_gnu
    14121896
    1413 for ac_prog in mawk gawk nawk awk
     1897for ac_prog in gawk mawk nawk awk
    14141898do
    14151899  # Extract the first word of "$ac_prog", so it can be a program name with args.
    14161900set dummy $ac_prog; ac_word=$2
    1417 echo "$as_me:1417: checking for $ac_word" >&5
     1901echo "$as_me:$LINENO: checking for $ac_word" >&5
    14181902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    14191903if test "${ac_cv_prog_AWK+set}" = set; then
     
    14231907  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    14241908else
    1425   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1426 ac_dummy="$PATH"
    1427 for ac_dir in $ac_dummy; do
    1428   IFS=$ac_save_IFS
    1429   test -z "$ac_dir" && ac_dir=.
    1430   $as_executable_p "$ac_dir/$ac_word" || continue
    1431 ac_cv_prog_AWK="$ac_prog"
    1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5
    1433 break
     1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1910for as_dir in $PATH
     1911do
     1912  IFS=$as_save_IFS
     1913  test -z "$as_dir" && as_dir=.
     1914  for ac_exec_ext in '' $ac_executable_extensions; do
     1915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1916    ac_cv_prog_AWK="$ac_prog"
     1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1918    break 2
     1919  fi
     1920done
    14341921done
    14351922
     
    14381925AWK=$ac_cv_prog_AWK
    14391926if test -n "$AWK"; then
    1440   echo "$as_me:1440: result: $AWK" >&5
     1927  echo "$as_me:$LINENO: result: $AWK" >&5
    14411928echo "${ECHO_T}$AWK" >&6
    14421929else
    1443   echo "$as_me:1443: result: no" >&5
     1930  echo "$as_me:$LINENO: result: no" >&5
    14441931echo "${ECHO_T}no" >&6
    14451932fi
     
    14521939  # Extract the first word of "$ac_prog", so it can be a program name with args.
    14531940set dummy $ac_prog; ac_word=$2
    1454 echo "$as_me:1454: checking for $ac_word" >&5
     1941echo "$as_me:$LINENO: checking for $ac_word" >&5
    14551942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    14561943if test "${ac_cv_prog_YACC+set}" = set; then
     
    14601947  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    14611948else
    1462   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1463 ac_dummy="$PATH"
    1464 for ac_dir in $ac_dummy; do
    1465   IFS=$ac_save_IFS
    1466   test -z "$ac_dir" && ac_dir=.
    1467   $as_executable_p "$ac_dir/$ac_word" || continue
    1468 ac_cv_prog_YACC="$ac_prog"
    1469 echo "$as_me:1469: found $ac_dir/$ac_word" >&5
    1470 break
     1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1950for as_dir in $PATH
     1951do
     1952  IFS=$as_save_IFS
     1953  test -z "$as_dir" && as_dir=.
     1954  for ac_exec_ext in '' $ac_executable_extensions; do
     1955  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1956    ac_cv_prog_YACC="$ac_prog"
     1957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1958    break 2
     1959  fi
     1960done
    14711961done
    14721962
     
    14751965YACC=$ac_cv_prog_YACC
    14761966if test -n "$YACC"; then
    1477   echo "$as_me:1477: result: $YACC" >&5
     1967  echo "$as_me:$LINENO: result: $YACC" >&5
    14781968echo "${ECHO_T}$YACC" >&6
    14791969else
    1480   echo "$as_me:1480: result: no" >&5
     1970  echo "$as_me:$LINENO: result: no" >&5
    14811971echo "${ECHO_T}no" >&6
    14821972fi
     
    14941984  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    14951985set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1496 echo "$as_me:1496: checking for $ac_word" >&5
     1986echo "$as_me:$LINENO: checking for $ac_word" >&5
    14971987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    14981988if test "${ac_cv_prog_CC+set}" = set; then
     
    15021992  ac_cv_prog_CC="$CC" # Let the user override the test.
    15031993else
    1504   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1505 ac_dummy="$PATH"
    1506 for ac_dir in $ac_dummy; do
    1507   IFS=$ac_save_IFS
    1508   test -z "$ac_dir" && ac_dir=.
    1509   $as_executable_p "$ac_dir/$ac_word" || continue
    1510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1511 echo "$as_me:1511: found $ac_dir/$ac_word" >&5
    1512 break
     1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1995for as_dir in $PATH
     1996do
     1997  IFS=$as_save_IFS
     1998  test -z "$as_dir" && as_dir=.
     1999  for ac_exec_ext in '' $ac_executable_extensions; do
     2000  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2001    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2003    break 2
     2004  fi
     2005done
    15132006done
    15142007
     
    15172010CC=$ac_cv_prog_CC
    15182011if test -n "$CC"; then
    1519   echo "$as_me:1519: result: $CC" >&5
     2012  echo "$as_me:$LINENO: result: $CC" >&5
    15202013echo "${ECHO_T}$CC" >&6
    15212014else
    1522   echo "$as_me:1522: result: no" >&5
     2015  echo "$as_me:$LINENO: result: no" >&5
    15232016echo "${ECHO_T}no" >&6
    15242017fi
     
    15292022  # Extract the first word of "gcc", so it can be a program name with args.
    15302023set dummy gcc; ac_word=$2
    1531 echo "$as_me:1531: checking for $ac_word" >&5
     2024echo "$as_me:$LINENO: checking for $ac_word" >&5
    15322025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15332026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    15372030  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    15382031else
    1539   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1540 ac_dummy="$PATH"
    1541 for ac_dir in $ac_dummy; do
    1542   IFS=$ac_save_IFS
    1543   test -z "$ac_dir" && ac_dir=.
    1544   $as_executable_p "$ac_dir/$ac_word" || continue
    1545 ac_cv_prog_ac_ct_CC="gcc"
    1546 echo "$as_me:1546: found $ac_dir/$ac_word" >&5
    1547 break
     2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2033for as_dir in $PATH
     2034do
     2035  IFS=$as_save_IFS
     2036  test -z "$as_dir" && as_dir=.
     2037  for ac_exec_ext in '' $ac_executable_extensions; do
     2038  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2039    ac_cv_prog_ac_ct_CC="gcc"
     2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2041    break 2
     2042  fi
     2043done
    15482044done
    15492045
     
    15522048ac_ct_CC=$ac_cv_prog_ac_ct_CC
    15532049if test -n "$ac_ct_CC"; then
    1554   echo "$as_me:1554: result: $ac_ct_CC" >&5
     2050  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    15552051echo "${ECHO_T}$ac_ct_CC" >&6
    15562052else
    1557   echo "$as_me:1557: result: no" >&5
     2053  echo "$as_me:$LINENO: result: no" >&5
    15582054echo "${ECHO_T}no" >&6
    15592055fi
     
    15682064  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    15692065set dummy ${ac_tool_prefix}cc; ac_word=$2
    1570 echo "$as_me:1570: checking for $ac_word" >&5
     2066echo "$as_me:$LINENO: checking for $ac_word" >&5
    15712067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15722068if test "${ac_cv_prog_CC+set}" = set; then
     
    15762072  ac_cv_prog_CC="$CC" # Let the user override the test.
    15772073else
    1578   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1579 ac_dummy="$PATH"
    1580 for ac_dir in $ac_dummy; do
    1581   IFS=$ac_save_IFS
    1582   test -z "$ac_dir" && ac_dir=.
    1583   $as_executable_p "$ac_dir/$ac_word" || continue
    1584 ac_cv_prog_CC="${ac_tool_prefix}cc"
    1585 echo "$as_me:1585: found $ac_dir/$ac_word" >&5
    1586 break
     2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2075for as_dir in $PATH
     2076do
     2077  IFS=$as_save_IFS
     2078  test -z "$as_dir" && as_dir=.
     2079  for ac_exec_ext in '' $ac_executable_extensions; do
     2080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2081    ac_cv_prog_CC="${ac_tool_prefix}cc"
     2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2083    break 2
     2084  fi
     2085done
    15872086done
    15882087
     
    15912090CC=$ac_cv_prog_CC
    15922091if test -n "$CC"; then
    1593   echo "$as_me:1593: result: $CC" >&5
     2092  echo "$as_me:$LINENO: result: $CC" >&5
    15942093echo "${ECHO_T}$CC" >&6
    15952094else
    1596   echo "$as_me:1596: result: no" >&5
     2095  echo "$as_me:$LINENO: result: no" >&5
    15972096echo "${ECHO_T}no" >&6
    15982097fi
     
    16032102  # Extract the first word of "cc", so it can be a program name with args.
    16042103set dummy cc; ac_word=$2
    1605 echo "$as_me:1605: checking for $ac_word" >&5
     2104echo "$as_me:$LINENO: checking for $ac_word" >&5
    16062105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    16072106if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    16112110  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    16122111else
    1613   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1614 ac_dummy="$PATH"
    1615 for ac_dir in $ac_dummy; do
    1616   IFS=$ac_save_IFS
    1617   test -z "$ac_dir" && ac_dir=.
    1618   $as_executable_p "$ac_dir/$ac_word" || continue
    1619 ac_cv_prog_ac_ct_CC="cc"
    1620 echo "$as_me:1620: found $ac_dir/$ac_word" >&5
    1621 break
     2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2113for as_dir in $PATH
     2114do
     2115  IFS=$as_save_IFS
     2116  test -z "$as_dir" && as_dir=.
     2117  for ac_exec_ext in '' $ac_executable_extensions; do
     2118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2119    ac_cv_prog_ac_ct_CC="cc"
     2120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2121    break 2
     2122  fi
     2123done
    16222124done
    16232125
     
    16262128ac_ct_CC=$ac_cv_prog_ac_ct_CC
    16272129if test -n "$ac_ct_CC"; then
    1628   echo "$as_me:1628: result: $ac_ct_CC" >&5
     2130  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    16292131echo "${ECHO_T}$ac_ct_CC" >&6
    16302132else
    1631   echo "$as_me:1631: result: no" >&5
     2133  echo "$as_me:$LINENO: result: no" >&5
    16322134echo "${ECHO_T}no" >&6
    16332135fi
     
    16422144  # Extract the first word of "cc", so it can be a program name with args.
    16432145set dummy cc; ac_word=$2
    1644 echo "$as_me:1644: checking for $ac_word" >&5
     2146echo "$as_me:$LINENO: checking for $ac_word" >&5
    16452147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    16462148if test "${ac_cv_prog_CC+set}" = set; then
     
    16512153else
    16522154  ac_prog_rejected=no
    1653   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1654 ac_dummy="$PATH"
    1655 for ac_dir in $ac_dummy; do
    1656   IFS=$ac_save_IFS
    1657   test -z "$ac_dir" && ac_dir=.
    1658   $as_executable_p "$ac_dir/$ac_word" || continue
    1659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    1660   ac_prog_rejected=yes
    1661   continue
    1662 fi
    1663 ac_cv_prog_CC="cc"
    1664 echo "$as_me:1664: found $ac_dir/$ac_word" >&5
    1665 break
     2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2156for as_dir in $PATH
     2157do
     2158  IFS=$as_save_IFS
     2159  test -z "$as_dir" && as_dir=.
     2160  for ac_exec_ext in '' $ac_executable_extensions; do
     2161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2162    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     2163       ac_prog_rejected=yes
     2164       continue
     2165     fi
     2166    ac_cv_prog_CC="cc"
     2167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2168    break 2
     2169  fi
     2170done
    16662171done
    16672172
     
    16752180    # first if we set CC to just the basename; use the full file name.
    16762181    shift
    1677     set dummy "$ac_dir/$ac_word" ${1+"$@"}
    1678     shift
    1679     ac_cv_prog_CC="$@"
     2182    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    16802183  fi
    16812184fi
     
    16842187CC=$ac_cv_prog_CC
    16852188if test -n "$CC"; then
    1686   echo "$as_me:1686: result: $CC" >&5
     2189  echo "$as_me:$LINENO: result: $CC" >&5
    16872190echo "${ECHO_T}$CC" >&6
    16882191else
    1689   echo "$as_me:1689: result: no" >&5
     2192  echo "$as_me:$LINENO: result: no" >&5
    16902193echo "${ECHO_T}no" >&6
    16912194fi
     
    16982201    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    16992202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1700 echo "$as_me:1700: checking for $ac_word" >&5
     2203echo "$as_me:$LINENO: checking for $ac_word" >&5
    17012204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    17022205if test "${ac_cv_prog_CC+set}" = set; then
     
    17062209  ac_cv_prog_CC="$CC" # Let the user override the test.
    17072210else
    1708   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1709 ac_dummy="$PATH"
    1710 for ac_dir in $ac_dummy; do
    1711   IFS=$ac_save_IFS
    1712   test -z "$ac_dir" && ac_dir=.
    1713   $as_executable_p "$ac_dir/$ac_word" || continue
    1714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1715 echo "$as_me:1715: found $ac_dir/$ac_word" >&5
    1716 break
     2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2212for as_dir in $PATH
     2213do
     2214  IFS=$as_save_IFS
     2215  test -z "$as_dir" && as_dir=.
     2216  for ac_exec_ext in '' $ac_executable_extensions; do
     2217  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2218    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     2219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2220    break 2
     2221  fi
     2222done
    17172223done
    17182224
     
    17212227CC=$ac_cv_prog_CC
    17222228if test -n "$CC"; then
    1723   echo "$as_me:1723: result: $CC" >&5
     2229  echo "$as_me:$LINENO: result: $CC" >&5
    17242230echo "${ECHO_T}$CC" >&6
    17252231else
    1726   echo "$as_me:1726: result: no" >&5
     2232  echo "$as_me:$LINENO: result: no" >&5
    17272233echo "${ECHO_T}no" >&6
    17282234fi
     
    17372243  # Extract the first word of "$ac_prog", so it can be a program name with args.
    17382244set dummy $ac_prog; ac_word=$2
    1739 echo "$as_me:1739: checking for $ac_word" >&5
     2245echo "$as_me:$LINENO: checking for $ac_word" >&5
    17402246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    17412247if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    17452251  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    17462252else
    1747   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1748 ac_dummy="$PATH"
    1749 for ac_dir in $ac_dummy; do
    1750   IFS=$ac_save_IFS
    1751   test -z "$ac_dir" && ac_dir=.
    1752   $as_executable_p "$ac_dir/$ac_word" || continue
    1753 ac_cv_prog_ac_ct_CC="$ac_prog"
    1754 echo "$as_me:1754: found $ac_dir/$ac_word" >&5
    1755 break
     2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2254for as_dir in $PATH
     2255do
     2256  IFS=$as_save_IFS
     2257  test -z "$as_dir" && as_dir=.
     2258  for ac_exec_ext in '' $ac_executable_extensions; do
     2259  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2260    ac_cv_prog_ac_ct_CC="$ac_prog"
     2261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2262    break 2
     2263  fi
     2264done
    17562265done
    17572266
     
    17602269ac_ct_CC=$ac_cv_prog_ac_ct_CC
    17612270if test -n "$ac_ct_CC"; then
    1762   echo "$as_me:1762: result: $ac_ct_CC" >&5
     2271  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    17632272echo "${ECHO_T}$ac_ct_CC" >&6
    17642273else
    1765   echo "$as_me:1765: result: no" >&5
     2274  echo "$as_me:$LINENO: result: no" >&5
    17662275echo "${ECHO_T}no" >&6
    17672276fi
     
    17752284fi
    17762285
    1777 test -z "$CC" && { { echo "$as_me:1777: error: no acceptable cc found in \$PATH" >&5
    1778 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
     2286
     2287test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2288See \`config.log' for more details." >&5
     2289echo "$as_me: error: no acceptable C compiler found in \$PATH
     2290See \`config.log' for more details." >&2;}
    17792291   { (exit 1); exit 1; }; }
    17802292
    1781 echo "$as_me:1781: checking whether we are using the GNU C compiler" >&5
     2293# Provide some information about the compiler.
     2294echo "$as_me:$LINENO:" \
     2295     "checking for C compiler version" >&5
     2296ac_compiler=`set X $ac_compile; echo $2`
     2297{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2298  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2299  ac_status=$?
     2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2301  (exit $ac_status); }
     2302{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2303  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2304  ac_status=$?
     2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2306  (exit $ac_status); }
     2307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2308  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2309  ac_status=$?
     2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2311  (exit $ac_status); }
     2312
     2313echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    17822314echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    17832315if test "${ac_cv_c_compiler_gnu+set}" = set; then
     
    17852317else
    17862318  cat >conftest.$ac_ext <<_ACEOF
    1787 #line 1787 "configure"
    1788 #include "confdefs.h"
     2319/* confdefs.h.  */
     2320_ACEOF
     2321cat confdefs.h >>conftest.$ac_ext
     2322cat >>conftest.$ac_ext <<_ACEOF
     2323/* end confdefs.h.  */
    17892324
    17902325int
     
    18002335_ACEOF
    18012336rm -f conftest.$ac_objext
    1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5
    1803   (eval $ac_compile) 2>&5
    1804   ac_status=$?
    1805   echo "$as_me:1805: \$? = $ac_status" >&5
     2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2338  (eval $ac_compile) 2>conftest.er1
     2339  ac_status=$?
     2340  grep -v '^ *+' conftest.er1 >conftest.err
     2341  rm -f conftest.er1
     2342  cat conftest.err >&5
     2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18062344  (exit $ac_status); } &&
    1807          { ac_try='test -s conftest.$ac_objext'
    1808   { (eval echo "$as_me:1808: \"$ac_try\"") >&5
    1809   (eval $ac_try) 2>&5
    1810   ac_status=$?
    1811   echo "$as_me:1811: \$? = $ac_status" >&5
     2345     { ac_try='test -z "$ac_c_werror_flag"
     2346             || test ! -s conftest.err'
     2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2348  (eval $ac_try) 2>&5
     2349  ac_status=$?
     2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2351  (exit $ac_status); }; } &&
     2352     { ac_try='test -s conftest.$ac_objext'
     2353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2354  (eval $ac_try) 2>&5
     2355  ac_status=$?
     2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18122357  (exit $ac_status); }; }; then
    18132358  ac_compiler_gnu=yes
    18142359else
    18152360  echo "$as_me: failed program was:" >&5
    1816 cat conftest.$ac_ext >&5
     2361sed 's/^/| /' conftest.$ac_ext >&5
     2362
    18172363ac_compiler_gnu=no
    18182364fi
    1819 rm -f conftest.$ac_objext conftest.$ac_ext
     2365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    18202366ac_cv_c_compiler_gnu=$ac_compiler_gnu
    18212367
    18222368fi
    1823 echo "$as_me:1823: result: $ac_cv_c_compiler_gnu" >&5
     2369echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    18242370echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    18252371GCC=`test $ac_compiler_gnu = yes && echo yes`
     
    18272373ac_save_CFLAGS=$CFLAGS
    18282374CFLAGS="-g"
    1829 echo "$as_me:1829: checking whether $CC accepts -g" >&5
     2375echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    18302376echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    18312377if test "${ac_cv_prog_cc_g+set}" = set; then
     
    18332379else
    18342380  cat >conftest.$ac_ext <<_ACEOF
    1835 #line 1835 "configure"
    1836 #include "confdefs.h"
     2381/* confdefs.h.  */
     2382_ACEOF
     2383cat confdefs.h >>conftest.$ac_ext
     2384cat >>conftest.$ac_ext <<_ACEOF
     2385/* end confdefs.h.  */
    18372386
    18382387int
     
    18452394_ACEOF
    18462395rm -f conftest.$ac_objext
    1847 if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5
    1848   (eval $ac_compile) 2>&5
    1849   ac_status=$?
    1850   echo "$as_me:1850: \$? = $ac_status" >&5
     2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2397  (eval $ac_compile) 2>conftest.er1
     2398  ac_status=$?
     2399  grep -v '^ *+' conftest.er1 >conftest.err
     2400  rm -f conftest.er1
     2401  cat conftest.err >&5
     2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18512403  (exit $ac_status); } &&
    1852          { ac_try='test -s conftest.$ac_objext'
    1853   { (eval echo "$as_me:1853: \"$ac_try\"") >&5
    1854   (eval $ac_try) 2>&5
    1855   ac_status=$?
    1856   echo "$as_me:1856: \$? = $ac_status" >&5
     2404     { ac_try='test -z "$ac_c_werror_flag"
     2405             || test ! -s conftest.err'
     2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2407  (eval $ac_try) 2>&5
     2408  ac_status=$?
     2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2410  (exit $ac_status); }; } &&
     2411     { ac_try='test -s conftest.$ac_objext'
     2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2413  (eval $ac_try) 2>&5
     2414  ac_status=$?
     2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18572416  (exit $ac_status); }; }; then
    18582417  ac_cv_prog_cc_g=yes
    18592418else
    18602419  echo "$as_me: failed program was:" >&5
    1861 cat conftest.$ac_ext >&5
     2420sed 's/^/| /' conftest.$ac_ext >&5
     2421
    18622422ac_cv_prog_cc_g=no
    18632423fi
    1864 rm -f conftest.$ac_objext conftest.$ac_ext
    1865 fi
    1866 echo "$as_me:1866: result: $ac_cv_prog_cc_g" >&5
     2424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2425fi
     2426echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    18672427echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    18682428if test "$ac_test_CFLAGS" = set; then
     
    18812441  fi
    18822442fi
    1883 # Some people use a C++ compiler to compile C.  Since we use `exit',
    1884 # in C++ we need to declare it.  In case someone uses the same compiler
    1885 # for both compiling C and C++ we need to have the C++ compiler decide
    1886 # the declaration of exit, since it's the most demanding environment.
    1887 cat >conftest.$ac_ext <<_ACEOF
    1888 #ifndef __cplusplus
    1889   choke me
    1890 #endif
    1891 _ACEOF
    1892 rm -f conftest.$ac_objext
    1893 if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5
    1894   (eval $ac_compile) 2>&5
    1895   ac_status=$?
    1896   echo "$as_me:1896: \$? = $ac_status" >&5
    1897   (exit $ac_status); } &&
    1898          { ac_try='test -s conftest.$ac_objext'
    1899   { (eval echo "$as_me:1899: \"$ac_try\"") >&5
    1900   (eval $ac_try) 2>&5
    1901   ac_status=$?
    1902   echo "$as_me:1902: \$? = $ac_status" >&5
    1903   (exit $ac_status); }; }; then
    1904   for ac_declaration in \
    1905    ''\
    1906    '#include <stdlib.h>' \
    1907    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1908    'extern "C" void std::exit (int); using std::exit;' \
    1909    'extern "C" void exit (int) throw ();' \
    1910    'extern "C" void exit (int);' \
    1911    'void exit (int);'
    1912 do
    1913   cat >conftest.$ac_ext <<_ACEOF
    1914 #line 1914 "configure"
    1915 #include "confdefs.h"
    1916 #include <stdlib.h>
    1917 $ac_declaration
    1918 int
    1919 main ()
    1920 {
    1921 exit (42);
    1922   ;
    1923   return 0;
    1924 }
    1925 _ACEOF
    1926 rm -f conftest.$ac_objext
    1927 if { (eval echo "$as_me:1927: \"$ac_compile\"") >&5
    1928   (eval $ac_compile) 2>&5
    1929   ac_status=$?
    1930   echo "$as_me:1930: \$? = $ac_status" >&5
    1931   (exit $ac_status); } &&
    1932          { ac_try='test -s conftest.$ac_objext'
    1933   { (eval echo "$as_me:1933: \"$ac_try\"") >&5
    1934   (eval $ac_try) 2>&5
    1935   ac_status=$?
    1936   echo "$as_me:1936: \$? = $ac_status" >&5
    1937   (exit $ac_status); }; }; then
    1938   :
    1939 else
    1940   echo "$as_me: failed program was:" >&5
    1941 cat conftest.$ac_ext >&5
    1942 continue
    1943 fi
    1944 rm -f conftest.$ac_objext conftest.$ac_ext
    1945   cat >conftest.$ac_ext <<_ACEOF
    1946 #line 1946 "configure"
    1947 #include "confdefs.h"
    1948 $ac_declaration
    1949 int
    1950 main ()
    1951 {
    1952 exit (42);
    1953   ;
    1954   return 0;
    1955 }
    1956 _ACEOF
    1957 rm -f conftest.$ac_objext
    1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
    1959   (eval $ac_compile) 2>&5
    1960   ac_status=$?
    1961   echo "$as_me:1961: \$? = $ac_status" >&5
    1962   (exit $ac_status); } &&
    1963          { ac_try='test -s conftest.$ac_objext'
    1964   { (eval echo "$as_me:1964: \"$ac_try\"") >&5
    1965   (eval $ac_try) 2>&5
    1966   ac_status=$?
    1967   echo "$as_me:1967: \$? = $ac_status" >&5
    1968   (exit $ac_status); }; }; then
    1969   break
    1970 else
    1971   echo "$as_me: failed program was:" >&5
    1972 cat conftest.$ac_ext >&5
    1973 fi
    1974 rm -f conftest.$ac_objext conftest.$ac_ext
    1975 done
    1976 echo '#ifdef __cplusplus' >>confdefs.h
    1977 echo $ac_declaration      >>confdefs.h
    1978 echo '#endif'             >>confdefs.h
    1979 
    1980 else
    1981   echo "$as_me: failed program was:" >&5
    1982 cat conftest.$ac_ext >&5
    1983 fi
    1984 rm -f conftest.$ac_objext conftest.$ac_ext
    1985 ac_ext=c
    1986 ac_cpp='$CPP $CPPFLAGS'
    1987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1990 
    1991 ac_aux_dir=
    1992 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    1993   if test -f $ac_dir/install-sh; then
    1994     ac_aux_dir=$ac_dir
    1995     ac_install_sh="$ac_aux_dir/install-sh -c"
    1996     break
    1997   elif test -f $ac_dir/install.sh; then
    1998     ac_aux_dir=$ac_dir
    1999     ac_install_sh="$ac_aux_dir/install.sh -c"
    2000     break
    2001   elif test -f $ac_dir/shtool; then
    2002     ac_aux_dir=$ac_dir
    2003     ac_install_sh="$ac_aux_dir/shtool install -c"
    2004     break
    2005   fi
    2006 done
    2007 if test -z "$ac_aux_dir"; then
    2008   { { echo "$as_me:2008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2009 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2010    { (exit 1); exit 1; }; }
    2011 fi
    2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2014 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    2015 
    2016 # Find a good install program.  We prefer a C program (faster),
    2017 # so one script is as good as another.  But avoid the broken or
    2018 # incompatible versions:
    2019 # SysV /etc/install, /usr/sbin/install
    2020 # SunOS /usr/etc/install
    2021 # IRIX /sbin/install
    2022 # AIX /bin/install
    2023 # AmigaOS /C/install, which installs bootblocks on floppy discs
    2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    2025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    2026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    2027 # ./install, which can be erroneously created by make from ./install.sh.
    2028 echo "$as_me:2028: checking for a BSD compatible install" >&5
    2029 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    2030 if test -z "$INSTALL"; then
    2031 if test "${ac_cv_path_install+set}" = set; then
    2032   echo $ECHO_N "(cached) $ECHO_C" >&6
    2033 else
    2034     ac_save_IFS=$IFS; IFS=$ac_path_separator
    2035   for ac_dir in $PATH; do
    2036     IFS=$ac_save_IFS
    2037     # Account for people who put trailing slashes in PATH elements.
    2038     case $ac_dir/ in
    2039     / | ./ | .// | /cC/* \
    2040     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    2041     | /usr/ucb/* ) ;;
    2042     *)
    2043       # OSF1 and SCO ODT 3.0 have their own names for install.
    2044       # Don't use installbsd from OSF since it installs stuff as root
    2045       # by default.
    2046       for ac_prog in ginstall scoinst install; do
    2047         if $as_executable_p "$ac_dir/$ac_prog"; then
    2048       if test $ac_prog = install &&
    2049             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    2050         # AIX install.  It has an incompatible calling convention.
    2051         :
    2052       elif test $ac_prog = install &&
    2053         grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    2054         # program-specific install script used by HP pwplus--don't use.
    2055         :
    2056       else
    2057         ac_cv_path_install="$ac_dir/$ac_prog -c"
    2058         break 2
    2059       fi
    2060     fi
    2061       done
    2062       ;;
    2063     esac
    2064   done
    2065 
    2066 fi
    2067   if test "${ac_cv_path_install+set}" = set; then
    2068     INSTALL=$ac_cv_path_install
    2069   else
    2070     # As a last resort, use the slow shell script.  We don't cache a
    2071     # path for INSTALL within a source directory, because that will
    2072     # break other packages using the cache if that directory is
    2073     # removed, or if the path is relative.
    2074     INSTALL=$ac_install_sh
    2075   fi
    2076 fi
    2077 echo "$as_me:2077: result: $INSTALL" >&5
    2078 echo "${ECHO_T}$INSTALL" >&6
    2079 
    2080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    2081 # It thinks the first close brace ends the variable substitution.
    2082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    2083 
    2084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    2085 
    2086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    2087 
    2088 echo "$as_me:2088: checking whether ln -s works" >&5
    2089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    2090 LN_S=$as_ln_s
    2091 if test "$LN_S" = "ln -s"; then
    2092   echo "$as_me:2092: result: yes" >&5
    2093 echo "${ECHO_T}yes" >&6
    2094 else
    2095   echo "$as_me:2095: result: no, using $LN_S" >&5
    2096 echo "${ECHO_T}no, using $LN_S" >&6
    2097 fi
    2098 
    2099 echo "$as_me:2099: checking whether ${MAKE-make} sets \${MAKE}" >&5
    2100 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
    2101 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    2102 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2103   echo $ECHO_N "(cached) $ECHO_C" >&6
    2104 else
    2105   cat >conftest.make <<\EOF
    2106 all:
    2107     @echo 'ac_maketemp="${MAKE}"'
    2108 EOF
    2109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2110 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    2111 if test -n "$ac_maketemp"; then
    2112   eval ac_cv_prog_make_${ac_make}_set=yes
    2113 else
    2114   eval ac_cv_prog_make_${ac_make}_set=no
    2115 fi
    2116 rm -f conftest.make
    2117 fi
    2118 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2119   echo "$as_me:2119: result: yes" >&5
    2120 echo "${ECHO_T}yes" >&6
    2121   SET_MAKE=
    2122 else
    2123   echo "$as_me:2123: result: no" >&5
    2124 echo "${ECHO_T}no" >&6
    2125   SET_MAKE="MAKE=${MAKE-make}"
    2126 fi
    2127 
    2128 if test -n "$ac_tool_prefix"; then
    2129   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    2130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2131 echo "$as_me:2131: checking for $ac_word" >&5
    2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2133 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2134   echo $ECHO_N "(cached) $ECHO_C" >&6
    2135 else
    2136   if test -n "$RANLIB"; then
    2137   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    2138 else
    2139   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2140 ac_dummy="$PATH"
    2141 for ac_dir in $ac_dummy; do
    2142   IFS=$ac_save_IFS
    2143   test -z "$ac_dir" && ac_dir=.
    2144   $as_executable_p "$ac_dir/$ac_word" || continue
    2145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2146 echo "$as_me:2146: found $ac_dir/$ac_word" >&5
    2147 break
    2148 done
    2149 
    2150 fi
    2151 fi
    2152 RANLIB=$ac_cv_prog_RANLIB
    2153 if test -n "$RANLIB"; then
    2154   echo "$as_me:2154: result: $RANLIB" >&5
    2155 echo "${ECHO_T}$RANLIB" >&6
    2156 else
    2157   echo "$as_me:2157: result: no" >&5
    2158 echo "${ECHO_T}no" >&6
    2159 fi
    2160 
    2161 fi
    2162 if test -z "$ac_cv_prog_RANLIB"; then
    2163   ac_ct_RANLIB=$RANLIB
    2164   # Extract the first word of "ranlib", so it can be a program name with args.
    2165 set dummy ranlib; ac_word=$2
    2166 echo "$as_me:2166: checking for $ac_word" >&5
    2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    2169   echo $ECHO_N "(cached) $ECHO_C" >&6
    2170 else
    2171   if test -n "$ac_ct_RANLIB"; then
    2172   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    2173 else
    2174   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2175 ac_dummy="$PATH"
    2176 for ac_dir in $ac_dummy; do
    2177   IFS=$ac_save_IFS
    2178   test -z "$ac_dir" && ac_dir=.
    2179   $as_executable_p "$ac_dir/$ac_word" || continue
    2180 ac_cv_prog_ac_ct_RANLIB="ranlib"
    2181 echo "$as_me:2181: found $ac_dir/$ac_word" >&5
    2182 break
    2183 done
    2184 
    2185   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
    2186 fi
    2187 fi
    2188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    2189 if test -n "$ac_ct_RANLIB"; then
    2190   echo "$as_me:2190: result: $ac_ct_RANLIB" >&5
    2191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    2192 else
    2193   echo "$as_me:2193: result: no" >&5
    2194 echo "${ECHO_T}no" >&6
    2195 fi
    2196 
    2197   RANLIB=$ac_ct_RANLIB
    2198 else
    2199   RANLIB="$ac_cv_prog_RANLIB"
    2200 fi
    2201 
    2202 ac_ext=c
    2203 ac_cpp='$CPP $CPPFLAGS'
    2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2207 echo "$as_me:2207: checking how to run the C preprocessor" >&5
    2208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    2209 # On Suns, sometimes $CPP names a directory.
    2210 if test -n "$CPP" && test -d "$CPP"; then
    2211   CPP=
    2212 fi
    2213 if test -z "$CPP"; then
    2214   if test "${ac_cv_prog_CPP+set}" = set; then
    2215   echo $ECHO_N "(cached) $ECHO_C" >&6
    2216 else
    2217       # Double quotes because CPP needs to be expanded
    2218     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    2219     do
    2220       # break 2 since there is a loop in there.
    2221       ac_preproc_ok=false
    2222 for ac_c_preproc_warn_flag in '' yes
    2223 do
    2224   # Use a header file that comes with gcc, so configuring glibc
    2225   # with a fresh cross-compiler works.
    2226   # On the NeXT, cc -E runs the code through the compiler's parser,
    2227   # not just through cpp. "Syntax error" is here to catch this case.
    2228   cat >conftest.$ac_ext <<_ACEOF
    2229 #line 2229 "configure"
    2230 #include "confdefs.h"
    2231 #include <assert.h>
    2232                      Syntax error
    2233 _ACEOF
    2234 if { (eval echo "$as_me:2234: \"$ac_cpp conftest.$ac_ext\"") >&5
    2235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2236   ac_status=$?
    2237   egrep -v '^ *\+' conftest.er1 >conftest.err
    2238   rm -f conftest.er1
    2239   cat conftest.err >&5
    2240   echo "$as_me:2240: \$? = $ac_status" >&5
    2241   (exit $ac_status); } >/dev/null; then
    2242   if test -s conftest.err; then
    2243     ac_cpp_err=$ac_c_preproc_warn_flag
    2244   else
    2245     ac_cpp_err=
    2246   fi
    2247 else
    2248   ac_cpp_err=yes
    2249 fi
    2250 if test -z "$ac_cpp_err"; then
    2251   :
    2252 else
    2253   echo "$as_me: failed program was:" >&5
    2254   cat conftest.$ac_ext >&5
    2255   # Broken: fails on valid input.
    2256 continue
    2257 fi
    2258 rm -f conftest.err conftest.$ac_ext
    2259 
    2260   # OK, works on sane cases.  Now check whether non-existent headers
    2261   # can be detected and how.
    2262   cat >conftest.$ac_ext <<_ACEOF
    2263 #line 2263 "configure"
    2264 #include "confdefs.h"
    2265 #include <ac_nonexistent.h>
    2266 _ACEOF
    2267 if { (eval echo "$as_me:2267: \"$ac_cpp conftest.$ac_ext\"") >&5
    2268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2269   ac_status=$?
    2270   egrep -v '^ *\+' conftest.er1 >conftest.err
    2271   rm -f conftest.er1
    2272   cat conftest.err >&5
    2273   echo "$as_me:2273: \$? = $ac_status" >&5
    2274   (exit $ac_status); } >/dev/null; then
    2275   if test -s conftest.err; then
    2276     ac_cpp_err=$ac_c_preproc_warn_flag
    2277   else
    2278     ac_cpp_err=
    2279   fi
    2280 else
    2281   ac_cpp_err=yes
    2282 fi
    2283 if test -z "$ac_cpp_err"; then
    2284   # Broken: success on invalid input.
    2285 continue
    2286 else
    2287   echo "$as_me: failed program was:" >&5
    2288   cat conftest.$ac_ext >&5
    2289   # Passes both tests.
    2290 ac_preproc_ok=:
    2291 break
    2292 fi
    2293 rm -f conftest.err conftest.$ac_ext
    2294 
    2295 done
    2296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2297 rm -f conftest.err conftest.$ac_ext
    2298 if $ac_preproc_ok; then
    2299   break 2
    2300 fi
    2301 
    2302     done
    2303     ac_cv_prog_CPP=$CPP
    2304 
    2305 fi
    2306   CPP=$ac_cv_prog_CPP
    2307 else
    2308   ac_cv_prog_CPP=$CPP
    2309 fi
    2310 echo "$as_me:2310: result: $CPP" >&5
    2311 echo "${ECHO_T}$CPP" >&6
    2312 ac_preproc_ok=false
    2313 for ac_c_preproc_warn_flag in '' yes
    2314 do
    2315   # Use a header file that comes with gcc, so configuring glibc
    2316   # with a fresh cross-compiler works.
    2317   # On the NeXT, cc -E runs the code through the compiler's parser,
    2318   # not just through cpp. "Syntax error" is here to catch this case.
    2319   cat >conftest.$ac_ext <<_ACEOF
    2320 #line 2320 "configure"
    2321 #include "confdefs.h"
    2322 #include <assert.h>
    2323                      Syntax error
    2324 _ACEOF
    2325 if { (eval echo "$as_me:2325: \"$ac_cpp conftest.$ac_ext\"") >&5
    2326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2327   ac_status=$?
    2328   egrep -v '^ *\+' conftest.er1 >conftest.err
    2329   rm -f conftest.er1
    2330   cat conftest.err >&5
    2331   echo "$as_me:2331: \$? = $ac_status" >&5
    2332   (exit $ac_status); } >/dev/null; then
    2333   if test -s conftest.err; then
    2334     ac_cpp_err=$ac_c_preproc_warn_flag
    2335   else
    2336     ac_cpp_err=
    2337   fi
    2338 else
    2339   ac_cpp_err=yes
    2340 fi
    2341 if test -z "$ac_cpp_err"; then
    2342   :
    2343 else
    2344   echo "$as_me: failed program was:" >&5
    2345   cat conftest.$ac_ext >&5
    2346   # Broken: fails on valid input.
    2347 continue
    2348 fi
    2349 rm -f conftest.err conftest.$ac_ext
    2350 
    2351   # OK, works on sane cases.  Now check whether non-existent headers
    2352   # can be detected and how.
    2353   cat >conftest.$ac_ext <<_ACEOF
    2354 #line 2354 "configure"
    2355 #include "confdefs.h"
    2356 #include <ac_nonexistent.h>
    2357 _ACEOF
    2358 if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5
    2359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2360   ac_status=$?
    2361   egrep -v '^ *\+' conftest.er1 >conftest.err
    2362   rm -f conftest.er1
    2363   cat conftest.err >&5
    2364   echo "$as_me:2364: \$? = $ac_status" >&5
    2365   (exit $ac_status); } >/dev/null; then
    2366   if test -s conftest.err; then
    2367     ac_cpp_err=$ac_c_preproc_warn_flag
    2368   else
    2369     ac_cpp_err=
    2370   fi
    2371 else
    2372   ac_cpp_err=yes
    2373 fi
    2374 if test -z "$ac_cpp_err"; then
    2375   # Broken: success on invalid input.
    2376 continue
    2377 else
    2378   echo "$as_me: failed program was:" >&5
    2379   cat conftest.$ac_ext >&5
    2380   # Passes both tests.
    2381 ac_preproc_ok=:
    2382 break
    2383 fi
    2384 rm -f conftest.err conftest.$ac_ext
    2385 
    2386 done
    2387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2388 rm -f conftest.err conftest.$ac_ext
    2389 if $ac_preproc_ok; then
    2390   :
    2391 else
    2392   { { echo "$as_me:2392: error: C preprocessor \"$CPP\" fails sanity check" >&5
    2393 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
    2394    { (exit 1); exit 1; }; }
    2395 fi
    2396 
    2397 ac_ext=c
    2398 ac_cpp='$CPP $CPPFLAGS'
    2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2402 
    2403 echo "$as_me:2403: checking for AIX" >&5
    2404 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    2405 cat >conftest.$ac_ext <<_ACEOF
    2406 #line 2406 "configure"
    2407 #include "confdefs.h"
    2408 #ifdef _AIX
    2409   yes
    2410 #endif
    2411 
    2412 _ACEOF
    2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2414   egrep "yes" >/dev/null 2>&1; then
    2415   echo "$as_me:2415: result: yes" >&5
    2416 echo "${ECHO_T}yes" >&6
    2417 cat >>confdefs.h <<\EOF
    2418 #define _ALL_SOURCE 1
    2419 EOF
    2420 
    2421 else
    2422   echo "$as_me:2422: result: no" >&5
    2423 echo "${ECHO_T}no" >&6
    2424 fi
    2425 rm -f conftest*
    2426 
    2427 echo "$as_me:2427: checking for POSIXized ISC" >&5
    2428 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
    2429 if test -d /etc/conf/kconfig.d &&
    2430    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    2431 then
    2432   echo "$as_me:2432: result: yes" >&5
    2433 echo "${ECHO_T}yes" >&6
    2434   ISC=yes # If later tests want to check for ISC.
    2435 
    2436 cat >>confdefs.h <<\EOF
    2437 #define _POSIX_SOURCE 1
    2438 EOF
    2439 
    2440   if test "$GCC" = yes; then
    2441     CC="$CC -posix"
    2442   else
    2443     CC="$CC -Xp"
    2444   fi
    2445 else
    2446   echo "$as_me:2446: result: no" >&5
    2447 echo "${ECHO_T}no" >&6
    2448   ISC=
    2449 fi
    2450 
    2451 echo "$as_me:2451: checking for minix/config.h" >&5
    2452 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    2453 if test "${ac_cv_header_minix_config_h+set}" = set; then
    2454   echo $ECHO_N "(cached) $ECHO_C" >&6
    2455 else
    2456   cat >conftest.$ac_ext <<_ACEOF
    2457 #line 2457 "configure"
    2458 #include "confdefs.h"
    2459 #include <minix/config.h>
    2460 _ACEOF
    2461 if { (eval echo "$as_me:2461: \"$ac_cpp conftest.$ac_ext\"") >&5
    2462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2463   ac_status=$?
    2464   egrep -v '^ *\+' conftest.er1 >conftest.err
    2465   rm -f conftest.er1
    2466   cat conftest.err >&5
    2467   echo "$as_me:2467: \$? = $ac_status" >&5
    2468   (exit $ac_status); } >/dev/null; then
    2469   if test -s conftest.err; then
    2470     ac_cpp_err=$ac_c_preproc_warn_flag
    2471   else
    2472     ac_cpp_err=
    2473   fi
    2474 else
    2475   ac_cpp_err=yes
    2476 fi
    2477 if test -z "$ac_cpp_err"; then
    2478   ac_cv_header_minix_config_h=yes
    2479 else
    2480   echo "$as_me: failed program was:" >&5
    2481   cat conftest.$ac_ext >&5
    2482   ac_cv_header_minix_config_h=no
    2483 fi
    2484 rm -f conftest.err conftest.$ac_ext
    2485 fi
    2486 echo "$as_me:2486: result: $ac_cv_header_minix_config_h" >&5
    2487 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    2488 if test $ac_cv_header_minix_config_h = yes; then
    2489   MINIX=yes
    2490 else
    2491   MINIX=
    2492 fi
    2493 
    2494 if test "$MINIX" = yes; then
    2495 
    2496 cat >>confdefs.h <<\EOF
    2497 #define _POSIX_SOURCE 1
    2498 EOF
    2499 
    2500 cat >>confdefs.h <<\EOF
    2501 #define _POSIX_1_SOURCE 2
    2502 EOF
    2503 
    2504 cat >>confdefs.h <<\EOF
    2505 #define _MINIX 1
    2506 EOF
    2507 
    2508 fi
    2509 
    2510 echo "$as_me:2510: checking for ${CC-cc} option to accept ANSI C" >&5
    2511 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2513   echo $ECHO_N "(cached) $ECHO_C" >&6
    2514 else
    2515   ac_cv_prog_cc_stdc=no
    2516 ac_save_CFLAGS="$CFLAGS"
    2517 # Don't try gcc -ansi; that turns off useful extensions and
    2518 # breaks some systems' header files.
    2519 # AIX           -qlanglvl=ansi
    2520 # Ultrix and OSF/1  -std1
    2521 # HP-UX         -Aa -D_HPUX_SOURCE
    2522 # SVR4          -Xc
    2523 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
    2524 do
    2525   CFLAGS="$ac_save_CFLAGS $ac_arg"
    2526   cat >conftest.$ac_ext <<_ACEOF
    2527 #line 2527 "configure"
    2528 #include "confdefs.h"
    2529 #if !defined(__STDC__) || __STDC__ != 1
    2530 choke me
    2531 #endif
    2532 
    2533 int
    2534 main ()
    2535 {
    2536 int test (int i, double x);
    2537 struct s1 {int (*f) (int a);};
    2538 struct s2 {int (*f) (double a);};
    2539   ;
    2540   return 0;
    2541 }
    2542 _ACEOF
    2543 rm -f conftest.$ac_objext
    2544 if { (eval echo "$as_me:2544: \"$ac_compile\"") >&5
    2545   (eval $ac_compile) 2>&5
    2546   ac_status=$?
    2547   echo "$as_me:2547: \$? = $ac_status" >&5
    2548   (exit $ac_status); } &&
    2549          { ac_try='test -s conftest.$ac_objext'
    2550   { (eval echo "$as_me:2550: \"$ac_try\"") >&5
    2551   (eval $ac_try) 2>&5
    2552   ac_status=$?
    2553   echo "$as_me:2553: \$? = $ac_status" >&5
    2554   (exit $ac_status); }; }; then
    2555   ac_cv_prog_cc_stdc="$ac_arg"; break
    2556 else
    2557   echo "$as_me: failed program was:" >&5
    2558 cat conftest.$ac_ext >&5
    2559 fi
    2560 rm -f conftest.$ac_objext conftest.$ac_ext
    2561 done
    2562 CFLAGS="$ac_save_CFLAGS"
    2563 
    2564 fi
    2565 
    2566 echo "$as_me:2566: result: $ac_cv_prog_cc_stdc" >&5
    2567 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2568 case "x$ac_cv_prog_cc_stdc" in
    2569   x|xno) ;;
    2570   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
    2571 esac
    2572 
    2573 echo "$as_me:2573: checking for function prototypes" >&5
    2574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    2575 if test "$ac_cv_prog_cc_stdc" != no; then
    2576   echo "$as_me:2576: result: yes" >&5
    2577 echo "${ECHO_T}yes" >&6
    2578   cat >>confdefs.h <<\EOF
    2579 #define PROTOTYPES 1
    2580 EOF
    2581 
    2582   U= ANSI2KNR=
    2583 else
    2584   echo "$as_me:2584: result: no" >&5
    2585 echo "${ECHO_T}no" >&6
    2586   U=_ ANSI2KNR=ansi2knr
    2587 fi
    2588 
    2589 echo "$as_me:2589: checking for $CC option to accept ANSI C" >&5
     2443echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    25902444echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    25912445if test "${ac_cv_prog_cc_stdc+set}" = set; then
     
    25952449ac_save_CC=$CC
    25962450cat >conftest.$ac_ext <<_ACEOF
    2597 #line 2597 "configure"
    2598 #include "confdefs.h"
     2451/* confdefs.h.  */
     2452_ACEOF
     2453cat confdefs.h >>conftest.$ac_ext
     2454cat >>conftest.$ac_ext <<_ACEOF
     2455/* end confdefs.h.  */
    25992456#include <stdarg.h>
    26002457#include <stdio.h>
     
    26192476  return s;
    26202477}
     2478
     2479/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2480   function prototypes and stuff, but not '\xHH' hex character constants.
     2481   These don't provoke an error unfortunately, instead are silently treated
     2482   as 'x'.  The following induces an error, until -std1 is added to get
     2483   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2484   array size at least.  It's necessary to write '\x00'==0 to get something
     2485   that's true only with -std1.  */
     2486int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2487
    26212488int test (int i, double x);
    26222489struct s1 {int (*f) (int a);};
     
    26442511  CC="$ac_save_CC $ac_arg"
    26452512  rm -f conftest.$ac_objext
    2646 if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5
    2647   (eval $ac_compile) 2>&5
    2648   ac_status=$?
    2649   echo "$as_me:2649: \$? = $ac_status" >&5
     2513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2514  (eval $ac_compile) 2>conftest.er1
     2515  ac_status=$?
     2516  grep -v '^ *+' conftest.er1 >conftest.err
     2517  rm -f conftest.er1
     2518  cat conftest.err >&5
     2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26502520  (exit $ac_status); } &&
    2651          { ac_try='test -s conftest.$ac_objext'
    2652   { (eval echo "$as_me:2652: \"$ac_try\"") >&5
    2653   (eval $ac_try) 2>&5
    2654   ac_status=$?
    2655   echo "$as_me:2655: \$? = $ac_status" >&5
     2521     { ac_try='test -z "$ac_c_werror_flag"
     2522             || test ! -s conftest.err'
     2523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2524  (eval $ac_try) 2>&5
     2525  ac_status=$?
     2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2527  (exit $ac_status); }; } &&
     2528     { ac_try='test -s conftest.$ac_objext'
     2529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2530  (eval $ac_try) 2>&5
     2531  ac_status=$?
     2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26562533  (exit $ac_status); }; }; then
    26572534  ac_cv_prog_cc_stdc=$ac_arg
     
    26592536else
    26602537  echo "$as_me: failed program was:" >&5
    2661 cat conftest.$ac_ext >&5
    2662 fi
    2663 rm -f conftest.$ac_objext
     2538sed 's/^/| /' conftest.$ac_ext >&5
     2539
     2540fi
     2541rm -f conftest.err conftest.$ac_objext
    26642542done
    26652543rm -f conftest.$ac_ext conftest.$ac_objext
     
    26702548case "x$ac_cv_prog_cc_stdc" in
    26712549  x|xno)
    2672     echo "$as_me:2672: result: none needed" >&5
     2550    echo "$as_me:$LINENO: result: none needed" >&5
    26732551echo "${ECHO_T}none needed" >&6 ;;
    26742552  *)
    2675     echo "$as_me:2675: result: $ac_cv_prog_cc_stdc" >&5
     2553    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    26762554echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    26772555    CC="$CC $ac_cv_prog_cc_stdc" ;;
    26782556esac
    26792557
    2680 echo "$as_me:2680: checking for an ANSI C-conforming const" >&5
     2558# Some people use a C++ compiler to compile C.  Since we use `exit',
     2559# in C++ we need to declare it.  In case someone uses the same compiler
     2560# for both compiling C and C++ we need to have the C++ compiler decide
     2561# the declaration of exit, since it's the most demanding environment.
     2562cat >conftest.$ac_ext <<_ACEOF
     2563#ifndef __cplusplus
     2564  choke me
     2565#endif
     2566_ACEOF
     2567rm -f conftest.$ac_objext
     2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2569  (eval $ac_compile) 2>conftest.er1
     2570  ac_status=$?
     2571  grep -v '^ *+' conftest.er1 >conftest.err
     2572  rm -f conftest.er1
     2573  cat conftest.err >&5
     2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2575  (exit $ac_status); } &&
     2576     { ac_try='test -z "$ac_c_werror_flag"
     2577             || test ! -s conftest.err'
     2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2579  (eval $ac_try) 2>&5
     2580  ac_status=$?
     2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2582  (exit $ac_status); }; } &&
     2583     { ac_try='test -s conftest.$ac_objext'
     2584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2585  (eval $ac_try) 2>&5
     2586  ac_status=$?
     2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2588  (exit $ac_status); }; }; then
     2589  for ac_declaration in \
     2590   '' \
     2591   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2592   'extern "C" void std::exit (int); using std::exit;' \
     2593   'extern "C" void exit (int) throw ();' \
     2594   'extern "C" void exit (int);' \
     2595   'void exit (int);'
     2596do
     2597  cat >conftest.$ac_ext <<_ACEOF
     2598/* confdefs.h.  */
     2599_ACEOF
     2600cat confdefs.h >>conftest.$ac_ext
     2601cat >>conftest.$ac_ext <<_ACEOF
     2602/* end confdefs.h.  */
     2603$ac_declaration
     2604#include <stdlib.h>
     2605int
     2606main ()
     2607{
     2608exit (42);
     2609  ;
     2610  return 0;
     2611}
     2612_ACEOF
     2613rm -f conftest.$ac_objext
     2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2615  (eval $ac_compile) 2>conftest.er1
     2616  ac_status=$?
     2617  grep -v '^ *+' conftest.er1 >conftest.err
     2618  rm -f conftest.er1
     2619  cat conftest.err >&5
     2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2621  (exit $ac_status); } &&
     2622     { ac_try='test -z "$ac_c_werror_flag"
     2623             || test ! -s conftest.err'
     2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2625  (eval $ac_try) 2>&5
     2626  ac_status=$?
     2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2628  (exit $ac_status); }; } &&
     2629     { ac_try='test -s conftest.$ac_objext'
     2630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2631  (eval $ac_try) 2>&5
     2632  ac_status=$?
     2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2634  (exit $ac_status); }; }; then
     2635  :
     2636else
     2637  echo "$as_me: failed program was:" >&5
     2638sed 's/^/| /' conftest.$ac_ext >&5
     2639
     2640continue
     2641fi
     2642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2643  cat >conftest.$ac_ext <<_ACEOF
     2644/* confdefs.h.  */
     2645_ACEOF
     2646cat confdefs.h >>conftest.$ac_ext
     2647cat >>conftest.$ac_ext <<_ACEOF
     2648/* end confdefs.h.  */
     2649$ac_declaration
     2650int
     2651main ()
     2652{
     2653exit (42);
     2654  ;
     2655  return 0;
     2656}
     2657_ACEOF
     2658rm -f conftest.$ac_objext
     2659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2660  (eval $ac_compile) 2>conftest.er1
     2661  ac_status=$?
     2662  grep -v '^ *+' conftest.er1 >conftest.err
     2663  rm -f conftest.er1
     2664  cat conftest.err >&5
     2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2666  (exit $ac_status); } &&
     2667     { ac_try='test -z "$ac_c_werror_flag"
     2668             || test ! -s conftest.err'
     2669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2670  (eval $ac_try) 2>&5
     2671  ac_status=$?
     2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2673  (exit $ac_status); }; } &&
     2674     { ac_try='test -s conftest.$ac_objext'
     2675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2676  (eval $ac_try) 2>&5
     2677  ac_status=$?
     2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2679  (exit $ac_status); }; }; then
     2680  break
     2681else
     2682  echo "$as_me: failed program was:" >&5
     2683sed 's/^/| /' conftest.$ac_ext >&5
     2684
     2685fi
     2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2687done
     2688rm -f conftest*
     2689if test -n "$ac_declaration"; then
     2690  echo '#ifdef __cplusplus' >>confdefs.h
     2691  echo $ac_declaration      >>confdefs.h
     2692  echo '#endif'             >>confdefs.h
     2693fi
     2694
     2695else
     2696  echo "$as_me: failed program was:" >&5
     2697sed 's/^/| /' conftest.$ac_ext >&5
     2698
     2699fi
     2700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2701ac_ext=c
     2702ac_cpp='$CPP $CPPFLAGS'
     2703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2705ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2706
     2707ac_aux_dir=
     2708for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     2709  if test -f $ac_dir/install-sh; then
     2710    ac_aux_dir=$ac_dir
     2711    ac_install_sh="$ac_aux_dir/install-sh -c"
     2712    break
     2713  elif test -f $ac_dir/install.sh; then
     2714    ac_aux_dir=$ac_dir
     2715    ac_install_sh="$ac_aux_dir/install.sh -c"
     2716    break
     2717  elif test -f $ac_dir/shtool; then
     2718    ac_aux_dir=$ac_dir
     2719    ac_install_sh="$ac_aux_dir/shtool install -c"
     2720    break
     2721  fi
     2722done
     2723if test -z "$ac_aux_dir"; then
     2724  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2725echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2726   { (exit 1); exit 1; }; }
     2727fi
     2728ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2729ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2730ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     2731
     2732# Find a good install program.  We prefer a C program (faster),
     2733# so one script is as good as another.  But avoid the broken or
     2734# incompatible versions:
     2735# SysV /etc/install, /usr/sbin/install
     2736# SunOS /usr/etc/install
     2737# IRIX /sbin/install
     2738# AIX /bin/install
     2739# AmigaOS /C/install, which installs bootblocks on floppy discs
     2740# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     2741# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     2742# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2743# OS/2's system install, which has a completely different semantic
     2744# ./install, which can be erroneously created by make from ./install.sh.
     2745echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2746echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     2747if test -z "$INSTALL"; then
     2748if test "${ac_cv_path_install+set}" = set; then
     2749  echo $ECHO_N "(cached) $ECHO_C" >&6
     2750else
     2751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2752for as_dir in $PATH
     2753do
     2754  IFS=$as_save_IFS
     2755  test -z "$as_dir" && as_dir=.
     2756  # Account for people who put trailing slashes in PATH elements.
     2757case $as_dir/ in
     2758  ./ | .// | /cC/* | \
     2759  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2760  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     2761  /usr/ucb/* ) ;;
     2762  *)
     2763    # OSF1 and SCO ODT 3.0 have their own names for install.
     2764    # Don't use installbsd from OSF since it installs stuff as root
     2765    # by default.
     2766    for ac_prog in ginstall scoinst install; do
     2767      for ac_exec_ext in '' $ac_executable_extensions; do
     2768    if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     2769      if test $ac_prog = install &&
     2770        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2771        # AIX install.  It has an incompatible calling convention.
     2772        :
     2773      elif test $ac_prog = install &&
     2774        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2775        # program-specific install script used by HP pwplus--don't use.
     2776        :
     2777      else
     2778        ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2779        break 3
     2780      fi
     2781    fi
     2782      done
     2783    done
     2784    ;;
     2785esac
     2786done
     2787
     2788
     2789fi
     2790  if test "${ac_cv_path_install+set}" = set; then
     2791    INSTALL=$ac_cv_path_install
     2792  else
     2793    # As a last resort, use the slow shell script.  We don't cache a
     2794    # path for INSTALL within a source directory, because that will
     2795    # break other packages using the cache if that directory is
     2796    # removed, or if the path is relative.
     2797    INSTALL=$ac_install_sh
     2798  fi
     2799fi
     2800echo "$as_me:$LINENO: result: $INSTALL" >&5
     2801echo "${ECHO_T}$INSTALL" >&6
     2802
     2803# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     2804# It thinks the first close brace ends the variable substitution.
     2805test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     2806
     2807test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     2808
     2809test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     2810
     2811echo "$as_me:$LINENO: checking whether ln -s works" >&5
     2812echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2813LN_S=$as_ln_s
     2814if test "$LN_S" = "ln -s"; then
     2815  echo "$as_me:$LINENO: result: yes" >&5
     2816echo "${ECHO_T}yes" >&6
     2817else
     2818  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     2819echo "${ECHO_T}no, using $LN_S" >&6
     2820fi
     2821
     2822echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     2823echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     2824set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     2825if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2826  echo $ECHO_N "(cached) $ECHO_C" >&6
     2827else
     2828  cat >conftest.make <<\_ACEOF
     2829all:
     2830    @echo 'ac_maketemp="$(MAKE)"'
     2831_ACEOF
     2832# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     2833eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     2834if test -n "$ac_maketemp"; then
     2835  eval ac_cv_prog_make_${ac_make}_set=yes
     2836else
     2837  eval ac_cv_prog_make_${ac_make}_set=no
     2838fi
     2839rm -f conftest.make
     2840fi
     2841if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     2842  echo "$as_me:$LINENO: result: yes" >&5
     2843echo "${ECHO_T}yes" >&6
     2844  SET_MAKE=
     2845else
     2846  echo "$as_me:$LINENO: result: no" >&5
     2847echo "${ECHO_T}no" >&6
     2848  SET_MAKE="MAKE=${MAKE-make}"
     2849fi
     2850
     2851if test -n "$ac_tool_prefix"; then
     2852  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2853set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2854echo "$as_me:$LINENO: checking for $ac_word" >&5
     2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2856if test "${ac_cv_prog_RANLIB+set}" = set; then
     2857  echo $ECHO_N "(cached) $ECHO_C" >&6
     2858else
     2859  if test -n "$RANLIB"; then
     2860  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     2861else
     2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2863for as_dir in $PATH
     2864do
     2865  IFS=$as_save_IFS
     2866  test -z "$as_dir" && as_dir=.
     2867  for ac_exec_ext in '' $ac_executable_extensions; do
     2868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2869    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2871    break 2
     2872  fi
     2873done
     2874done
     2875
     2876fi
     2877fi
     2878RANLIB=$ac_cv_prog_RANLIB
     2879if test -n "$RANLIB"; then
     2880  echo "$as_me:$LINENO: result: $RANLIB" >&5
     2881echo "${ECHO_T}$RANLIB" >&6
     2882else
     2883  echo "$as_me:$LINENO: result: no" >&5
     2884echo "${ECHO_T}no" >&6
     2885fi
     2886
     2887fi
     2888if test -z "$ac_cv_prog_RANLIB"; then
     2889  ac_ct_RANLIB=$RANLIB
     2890  # Extract the first word of "ranlib", so it can be a program name with args.
     2891set dummy ranlib; ac_word=$2
     2892echo "$as_me:$LINENO: checking for $ac_word" >&5
     2893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2895  echo $ECHO_N "(cached) $ECHO_C" >&6
     2896else
     2897  if test -n "$ac_ct_RANLIB"; then
     2898  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2899else
     2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2901for as_dir in $PATH
     2902do
     2903  IFS=$as_save_IFS
     2904  test -z "$as_dir" && as_dir=.
     2905  for ac_exec_ext in '' $ac_executable_extensions; do
     2906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2907    ac_cv_prog_ac_ct_RANLIB="ranlib"
     2908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2909    break 2
     2910  fi
     2911done
     2912done
     2913
     2914  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2915fi
     2916fi
     2917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2918if test -n "$ac_ct_RANLIB"; then
     2919  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     2920echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2921else
     2922  echo "$as_me:$LINENO: result: no" >&5
     2923echo "${ECHO_T}no" >&6
     2924fi
     2925
     2926  RANLIB=$ac_ct_RANLIB
     2927else
     2928  RANLIB="$ac_cv_prog_RANLIB"
     2929fi
     2930
     2931
     2932
     2933ac_ext=c
     2934ac_cpp='$CPP $CPPFLAGS'
     2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2937ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2938echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     2939echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     2940# On Suns, sometimes $CPP names a directory.
     2941if test -n "$CPP" && test -d "$CPP"; then
     2942  CPP=
     2943fi
     2944if test -z "$CPP"; then
     2945  if test "${ac_cv_prog_CPP+set}" = set; then
     2946  echo $ECHO_N "(cached) $ECHO_C" >&6
     2947else
     2948      # Double quotes because CPP needs to be expanded
     2949    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2950    do
     2951      ac_preproc_ok=false
     2952for ac_c_preproc_warn_flag in '' yes
     2953do
     2954  # Use a header file that comes with gcc, so configuring glibc
     2955  # with a fresh cross-compiler works.
     2956  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2957  # <limits.h> exists even on freestanding compilers.
     2958  # On the NeXT, cc -E runs the code through the compiler's parser,
     2959  # not just through cpp. "Syntax error" is here to catch this case.
     2960  cat >conftest.$ac_ext <<_ACEOF
     2961/* confdefs.h.  */
     2962_ACEOF
     2963cat confdefs.h >>conftest.$ac_ext
     2964cat >>conftest.$ac_ext <<_ACEOF
     2965/* end confdefs.h.  */
     2966#ifdef __STDC__
     2967# include <limits.h>
     2968#else
     2969# include <assert.h>
     2970#endif
     2971             Syntax error
     2972_ACEOF
     2973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2974  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2975  ac_status=$?
     2976  grep -v '^ *+' conftest.er1 >conftest.err
     2977  rm -f conftest.er1
     2978  cat conftest.err >&5
     2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2980  (exit $ac_status); } >/dev/null; then
     2981  if test -s conftest.err; then
     2982    ac_cpp_err=$ac_c_preproc_warn_flag
     2983    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2984  else
     2985    ac_cpp_err=
     2986  fi
     2987else
     2988  ac_cpp_err=yes
     2989fi
     2990if test -z "$ac_cpp_err"; then
     2991  :
     2992else
     2993  echo "$as_me: failed program was:" >&5
     2994sed 's/^/| /' conftest.$ac_ext >&5
     2995
     2996  # Broken: fails on valid input.
     2997continue
     2998fi
     2999rm -f conftest.err conftest.$ac_ext
     3000
     3001  # OK, works on sane cases.  Now check whether non-existent headers
     3002  # can be detected and how.
     3003  cat >conftest.$ac_ext <<_ACEOF
     3004/* confdefs.h.  */
     3005_ACEOF
     3006cat confdefs.h >>conftest.$ac_ext
     3007cat >>conftest.$ac_ext <<_ACEOF
     3008/* end confdefs.h.  */
     3009#include <ac_nonexistent.h>
     3010_ACEOF
     3011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3013  ac_status=$?
     3014  grep -v '^ *+' conftest.er1 >conftest.err
     3015  rm -f conftest.er1
     3016  cat conftest.err >&5
     3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3018  (exit $ac_status); } >/dev/null; then
     3019  if test -s conftest.err; then
     3020    ac_cpp_err=$ac_c_preproc_warn_flag
     3021    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3022  else
     3023    ac_cpp_err=
     3024  fi
     3025else
     3026  ac_cpp_err=yes
     3027fi
     3028if test -z "$ac_cpp_err"; then
     3029  # Broken: success on invalid input.
     3030continue
     3031else
     3032  echo "$as_me: failed program was:" >&5
     3033sed 's/^/| /' conftest.$ac_ext >&5
     3034
     3035  # Passes both tests.
     3036ac_preproc_ok=:
     3037break
     3038fi
     3039rm -f conftest.err conftest.$ac_ext
     3040
     3041done
     3042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3043rm -f conftest.err conftest.$ac_ext
     3044if $ac_preproc_ok; then
     3045  break
     3046fi
     3047
     3048    done
     3049    ac_cv_prog_CPP=$CPP
     3050
     3051fi
     3052  CPP=$ac_cv_prog_CPP
     3053else
     3054  ac_cv_prog_CPP=$CPP
     3055fi
     3056echo "$as_me:$LINENO: result: $CPP" >&5
     3057echo "${ECHO_T}$CPP" >&6
     3058ac_preproc_ok=false
     3059for ac_c_preproc_warn_flag in '' yes
     3060do
     3061  # Use a header file that comes with gcc, so configuring glibc
     3062  # with a fresh cross-compiler works.
     3063  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3064  # <limits.h> exists even on freestanding compilers.
     3065  # On the NeXT, cc -E runs the code through the compiler's parser,
     3066  # not just through cpp. "Syntax error" is here to catch this case.
     3067  cat >conftest.$ac_ext <<_ACEOF
     3068/* confdefs.h.  */
     3069_ACEOF
     3070cat confdefs.h >>conftest.$ac_ext
     3071cat >>conftest.$ac_ext <<_ACEOF
     3072/* end confdefs.h.  */
     3073#ifdef __STDC__
     3074# include <limits.h>
     3075#else
     3076# include <assert.h>
     3077#endif
     3078             Syntax error
     3079_ACEOF
     3080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3081  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3082  ac_status=$?
     3083  grep -v '^ *+' conftest.er1 >conftest.err
     3084  rm -f conftest.er1
     3085  cat conftest.err >&5
     3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3087  (exit $ac_status); } >/dev/null; then
     3088  if test -s conftest.err; then
     3089    ac_cpp_err=$ac_c_preproc_warn_flag
     3090    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3091  else
     3092    ac_cpp_err=
     3093  fi
     3094else
     3095  ac_cpp_err=yes
     3096fi
     3097if test -z "$ac_cpp_err"; then
     3098  :
     3099else
     3100  echo "$as_me: failed program was:" >&5
     3101sed 's/^/| /' conftest.$ac_ext >&5
     3102
     3103  # Broken: fails on valid input.
     3104continue
     3105fi
     3106rm -f conftest.err conftest.$ac_ext
     3107
     3108  # OK, works on sane cases.  Now check whether non-existent headers
     3109  # can be detected and how.
     3110  cat >conftest.$ac_ext <<_ACEOF
     3111/* confdefs.h.  */
     3112_ACEOF
     3113cat confdefs.h >>conftest.$ac_ext
     3114cat >>conftest.$ac_ext <<_ACEOF
     3115/* end confdefs.h.  */
     3116#include <ac_nonexistent.h>
     3117_ACEOF
     3118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3120  ac_status=$?
     3121  grep -v '^ *+' conftest.er1 >conftest.err
     3122  rm -f conftest.er1
     3123  cat conftest.err >&5
     3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3125  (exit $ac_status); } >/dev/null; then
     3126  if test -s conftest.err; then
     3127    ac_cpp_err=$ac_c_preproc_warn_flag
     3128    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3129  else
     3130    ac_cpp_err=
     3131  fi
     3132else
     3133  ac_cpp_err=yes
     3134fi
     3135if test -z "$ac_cpp_err"; then
     3136  # Broken: success on invalid input.
     3137continue
     3138else
     3139  echo "$as_me: failed program was:" >&5
     3140sed 's/^/| /' conftest.$ac_ext >&5
     3141
     3142  # Passes both tests.
     3143ac_preproc_ok=:
     3144break
     3145fi
     3146rm -f conftest.err conftest.$ac_ext
     3147
     3148done
     3149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3150rm -f conftest.err conftest.$ac_ext
     3151if $ac_preproc_ok; then
     3152  :
     3153else
     3154  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3155See \`config.log' for more details." >&5
     3156echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3157See \`config.log' for more details." >&2;}
     3158   { (exit 1); exit 1; }; }
     3159fi
     3160
     3161ac_ext=c
     3162ac_cpp='$CPP $CPPFLAGS'
     3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3165ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3166
     3167
     3168echo "$as_me:$LINENO: checking for egrep" >&5
     3169echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3170if test "${ac_cv_prog_egrep+set}" = set; then
     3171  echo $ECHO_N "(cached) $ECHO_C" >&6
     3172else
     3173  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3174    then ac_cv_prog_egrep='grep -E'
     3175    else ac_cv_prog_egrep='egrep'
     3176    fi
     3177fi
     3178echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3179echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3180 EGREP=$ac_cv_prog_egrep
     3181
     3182
     3183
     3184echo "$as_me:$LINENO: checking for AIX" >&5
     3185echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     3186cat >conftest.$ac_ext <<_ACEOF
     3187/* confdefs.h.  */
     3188_ACEOF
     3189cat confdefs.h >>conftest.$ac_ext
     3190cat >>conftest.$ac_ext <<_ACEOF
     3191/* end confdefs.h.  */
     3192#ifdef _AIX
     3193  yes
     3194#endif
     3195
     3196_ACEOF
     3197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3198  $EGREP "yes" >/dev/null 2>&1; then
     3199  echo "$as_me:$LINENO: result: yes" >&5
     3200echo "${ECHO_T}yes" >&6
     3201cat >>confdefs.h <<\_ACEOF
     3202#define _ALL_SOURCE 1
     3203_ACEOF
     3204
     3205else
     3206  echo "$as_me:$LINENO: result: no" >&5
     3207echo "${ECHO_T}no" >&6
     3208fi
     3209rm -f conftest*
     3210
     3211
     3212echo "$as_me:$LINENO: checking for library containing strerror" >&5
     3213echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
     3214if test "${ac_cv_search_strerror+set}" = set; then
     3215  echo $ECHO_N "(cached) $ECHO_C" >&6
     3216else
     3217  ac_func_search_save_LIBS=$LIBS
     3218ac_cv_search_strerror=no
     3219cat >conftest.$ac_ext <<_ACEOF
     3220/* confdefs.h.  */
     3221_ACEOF
     3222cat confdefs.h >>conftest.$ac_ext
     3223cat >>conftest.$ac_ext <<_ACEOF
     3224/* end confdefs.h.  */
     3225
     3226/* Override any gcc2 internal prototype to avoid an error.  */
     3227#ifdef __cplusplus
     3228extern "C"
     3229#endif
     3230/* We use char because int might match the return type of a gcc2
     3231   builtin and then its argument prototype would still apply.  */
     3232char strerror ();
     3233int
     3234main ()
     3235{
     3236strerror ();
     3237  ;
     3238  return 0;
     3239}
     3240_ACEOF
     3241rm -f conftest.$ac_objext conftest$ac_exeext
     3242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3243  (eval $ac_link) 2>conftest.er1
     3244  ac_status=$?
     3245  grep -v '^ *+' conftest.er1 >conftest.err
     3246  rm -f conftest.er1
     3247  cat conftest.err >&5
     3248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3249  (exit $ac_status); } &&
     3250     { ac_try='test -z "$ac_c_werror_flag"
     3251             || test ! -s conftest.err'
     3252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3253  (eval $ac_try) 2>&5
     3254  ac_status=$?
     3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3256  (exit $ac_status); }; } &&
     3257     { ac_try='test -s conftest$ac_exeext'
     3258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3259  (eval $ac_try) 2>&5
     3260  ac_status=$?
     3261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3262  (exit $ac_status); }; }; then
     3263  ac_cv_search_strerror="none required"
     3264else
     3265  echo "$as_me: failed program was:" >&5
     3266sed 's/^/| /' conftest.$ac_ext >&5
     3267
     3268fi
     3269rm -f conftest.err conftest.$ac_objext \
     3270      conftest$ac_exeext conftest.$ac_ext
     3271if test "$ac_cv_search_strerror" = no; then
     3272  for ac_lib in cposix; do
     3273    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     3274    cat >conftest.$ac_ext <<_ACEOF
     3275/* confdefs.h.  */
     3276_ACEOF
     3277cat confdefs.h >>conftest.$ac_ext
     3278cat >>conftest.$ac_ext <<_ACEOF
     3279/* end confdefs.h.  */
     3280
     3281/* Override any gcc2 internal prototype to avoid an error.  */
     3282#ifdef __cplusplus
     3283extern "C"
     3284#endif
     3285/* We use char because int might match the return type of a gcc2
     3286   builtin and then its argument prototype would still apply.  */
     3287char strerror ();
     3288int
     3289main ()
     3290{
     3291strerror ();
     3292  ;
     3293  return 0;
     3294}
     3295_ACEOF
     3296rm -f conftest.$ac_objext conftest$ac_exeext
     3297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3298  (eval $ac_link) 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); } &&
     3305     { ac_try='test -z "$ac_c_werror_flag"
     3306             || test ! -s conftest.err'
     3307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3308  (eval $ac_try) 2>&5
     3309  ac_status=$?
     3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3311  (exit $ac_status); }; } &&
     3312     { ac_try='test -s conftest$ac_exeext'
     3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3314  (eval $ac_try) 2>&5
     3315  ac_status=$?
     3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3317  (exit $ac_status); }; }; then
     3318  ac_cv_search_strerror="-l$ac_lib"
     3319break
     3320else
     3321  echo "$as_me: failed program was:" >&5
     3322sed 's/^/| /' conftest.$ac_ext >&5
     3323
     3324fi
     3325rm -f conftest.err conftest.$ac_objext \
     3326      conftest$ac_exeext conftest.$ac_ext
     3327  done
     3328fi
     3329LIBS=$ac_func_search_save_LIBS
     3330fi
     3331echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
     3332echo "${ECHO_T}$ac_cv_search_strerror" >&6
     3333if test "$ac_cv_search_strerror" != no; then
     3334  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
     3335
     3336fi
     3337
     3338echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3339echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3340if test "${ac_cv_header_stdc+set}" = set; then
     3341  echo $ECHO_N "(cached) $ECHO_C" >&6
     3342else
     3343  cat >conftest.$ac_ext <<_ACEOF
     3344/* confdefs.h.  */
     3345_ACEOF
     3346cat confdefs.h >>conftest.$ac_ext
     3347cat >>conftest.$ac_ext <<_ACEOF
     3348/* end confdefs.h.  */
     3349#include <stdlib.h>
     3350#include <stdarg.h>
     3351#include <string.h>
     3352#include <float.h>
     3353
     3354int
     3355main ()
     3356{
     3357
     3358  ;
     3359  return 0;
     3360}
     3361_ACEOF
     3362rm -f conftest.$ac_objext
     3363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3364  (eval $ac_compile) 2>conftest.er1
     3365  ac_status=$?
     3366  grep -v '^ *+' conftest.er1 >conftest.err
     3367  rm -f conftest.er1
     3368  cat conftest.err >&5
     3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3370  (exit $ac_status); } &&
     3371     { ac_try='test -z "$ac_c_werror_flag"
     3372             || test ! -s conftest.err'
     3373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3374  (eval $ac_try) 2>&5
     3375  ac_status=$?
     3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3377  (exit $ac_status); }; } &&
     3378     { ac_try='test -s conftest.$ac_objext'
     3379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3380  (eval $ac_try) 2>&5
     3381  ac_status=$?
     3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3383  (exit $ac_status); }; }; then
     3384  ac_cv_header_stdc=yes
     3385else
     3386  echo "$as_me: failed program was:" >&5
     3387sed 's/^/| /' conftest.$ac_ext >&5
     3388
     3389ac_cv_header_stdc=no
     3390fi
     3391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3392
     3393if test $ac_cv_header_stdc = yes; then
     3394  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3395  cat >conftest.$ac_ext <<_ACEOF
     3396/* confdefs.h.  */
     3397_ACEOF
     3398cat confdefs.h >>conftest.$ac_ext
     3399cat >>conftest.$ac_ext <<_ACEOF
     3400/* end confdefs.h.  */
     3401#include <string.h>
     3402
     3403_ACEOF
     3404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3405  $EGREP "memchr" >/dev/null 2>&1; then
     3406  :
     3407else
     3408  ac_cv_header_stdc=no
     3409fi
     3410rm -f conftest*
     3411
     3412fi
     3413
     3414if test $ac_cv_header_stdc = yes; then
     3415  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3416  cat >conftest.$ac_ext <<_ACEOF
     3417/* confdefs.h.  */
     3418_ACEOF
     3419cat confdefs.h >>conftest.$ac_ext
     3420cat >>conftest.$ac_ext <<_ACEOF
     3421/* end confdefs.h.  */
     3422#include <stdlib.h>
     3423
     3424_ACEOF
     3425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3426  $EGREP "free" >/dev/null 2>&1; then
     3427  :
     3428else
     3429  ac_cv_header_stdc=no
     3430fi
     3431rm -f conftest*
     3432
     3433fi
     3434
     3435if test $ac_cv_header_stdc = yes; then
     3436  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3437  if test "$cross_compiling" = yes; then
     3438  :
     3439else
     3440  cat >conftest.$ac_ext <<_ACEOF
     3441/* confdefs.h.  */
     3442_ACEOF
     3443cat confdefs.h >>conftest.$ac_ext
     3444cat >>conftest.$ac_ext <<_ACEOF
     3445/* end confdefs.h.  */
     3446#include <ctype.h>
     3447#if ((' ' & 0x0FF) == 0x020)
     3448# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3449# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3450#else
     3451# define ISLOWER(c) \
     3452           (('a' <= (c) && (c) <= 'i') \
     3453             || ('j' <= (c) && (c) <= 'r') \
     3454             || ('s' <= (c) && (c) <= 'z'))
     3455# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3456#endif
     3457
     3458#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3459int
     3460main ()
     3461{
     3462  int i;
     3463  for (i = 0; i < 256; i++)
     3464    if (XOR (islower (i), ISLOWER (i))
     3465    || toupper (i) != TOUPPER (i))
     3466      exit(2);
     3467  exit (0);
     3468}
     3469_ACEOF
     3470rm -f conftest$ac_exeext
     3471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3472  (eval $ac_link) 2>&5
     3473  ac_status=$?
     3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3475  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3477  (eval $ac_try) 2>&5
     3478  ac_status=$?
     3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3480  (exit $ac_status); }; }; then
     3481  :
     3482else
     3483  echo "$as_me: program exited with status $ac_status" >&5
     3484echo "$as_me: failed program was:" >&5
     3485sed 's/^/| /' conftest.$ac_ext >&5
     3486
     3487( exit $ac_status )
     3488ac_cv_header_stdc=no
     3489fi
     3490rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3491fi
     3492fi
     3493fi
     3494echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3495echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3496if test $ac_cv_header_stdc = yes; then
     3497
     3498cat >>confdefs.h <<\_ACEOF
     3499#define STDC_HEADERS 1
     3500_ACEOF
     3501
     3502fi
     3503
     3504# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3505
     3506
     3507
     3508
     3509
     3510
     3511
     3512
     3513
     3514for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3515          inttypes.h stdint.h unistd.h
     3516do
     3517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3518echo "$as_me:$LINENO: checking for $ac_header" >&5
     3519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3520if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3521  echo $ECHO_N "(cached) $ECHO_C" >&6
     3522else
     3523  cat >conftest.$ac_ext <<_ACEOF
     3524/* confdefs.h.  */
     3525_ACEOF
     3526cat confdefs.h >>conftest.$ac_ext
     3527cat >>conftest.$ac_ext <<_ACEOF
     3528/* end confdefs.h.  */
     3529$ac_includes_default
     3530
     3531#include <$ac_header>
     3532_ACEOF
     3533rm -f conftest.$ac_objext
     3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3535  (eval $ac_compile) 2>conftest.er1
     3536  ac_status=$?
     3537  grep -v '^ *+' conftest.er1 >conftest.err
     3538  rm -f conftest.er1
     3539  cat conftest.err >&5
     3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3541  (exit $ac_status); } &&
     3542     { ac_try='test -z "$ac_c_werror_flag"
     3543             || test ! -s conftest.err'
     3544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3545  (eval $ac_try) 2>&5
     3546  ac_status=$?
     3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3548  (exit $ac_status); }; } &&
     3549     { ac_try='test -s conftest.$ac_objext'
     3550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3551  (eval $ac_try) 2>&5
     3552  ac_status=$?
     3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3554  (exit $ac_status); }; }; then
     3555  eval "$as_ac_Header=yes"
     3556else
     3557  echo "$as_me: failed program was:" >&5
     3558sed 's/^/| /' conftest.$ac_ext >&5
     3559
     3560eval "$as_ac_Header=no"
     3561fi
     3562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3563fi
     3564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3566if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3567  cat >>confdefs.h <<_ACEOF
     3568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3569_ACEOF
     3570
     3571fi
     3572
     3573done
     3574
     3575
     3576if test "${ac_cv_header_minix_config_h+set}" = set; then
     3577  echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3578echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3579if test "${ac_cv_header_minix_config_h+set}" = set; then
     3580  echo $ECHO_N "(cached) $ECHO_C" >&6
     3581fi
     3582echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3583echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3584else
     3585  # Is the header compilable?
     3586echo "$as_me:$LINENO: checking minix/config.h usability" >&5
     3587echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
     3588cat >conftest.$ac_ext <<_ACEOF
     3589/* confdefs.h.  */
     3590_ACEOF
     3591cat confdefs.h >>conftest.$ac_ext
     3592cat >>conftest.$ac_ext <<_ACEOF
     3593/* end confdefs.h.  */
     3594$ac_includes_default
     3595#include <minix/config.h>
     3596_ACEOF
     3597rm -f conftest.$ac_objext
     3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3599  (eval $ac_compile) 2>conftest.er1
     3600  ac_status=$?
     3601  grep -v '^ *+' conftest.er1 >conftest.err
     3602  rm -f conftest.er1
     3603  cat conftest.err >&5
     3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3605  (exit $ac_status); } &&
     3606     { ac_try='test -z "$ac_c_werror_flag"
     3607             || test ! -s conftest.err'
     3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3609  (eval $ac_try) 2>&5
     3610  ac_status=$?
     3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3612  (exit $ac_status); }; } &&
     3613     { ac_try='test -s conftest.$ac_objext'
     3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3615  (eval $ac_try) 2>&5
     3616  ac_status=$?
     3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3618  (exit $ac_status); }; }; then
     3619  ac_header_compiler=yes
     3620else
     3621  echo "$as_me: failed program was:" >&5
     3622sed 's/^/| /' conftest.$ac_ext >&5
     3623
     3624ac_header_compiler=no
     3625fi
     3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3628echo "${ECHO_T}$ac_header_compiler" >&6
     3629
     3630# Is the header present?
     3631echo "$as_me:$LINENO: checking minix/config.h presence" >&5
     3632echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
     3633cat >conftest.$ac_ext <<_ACEOF
     3634/* confdefs.h.  */
     3635_ACEOF
     3636cat confdefs.h >>conftest.$ac_ext
     3637cat >>conftest.$ac_ext <<_ACEOF
     3638/* end confdefs.h.  */
     3639#include <minix/config.h>
     3640_ACEOF
     3641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3642  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3643  ac_status=$?
     3644  grep -v '^ *+' conftest.er1 >conftest.err
     3645  rm -f conftest.er1
     3646  cat conftest.err >&5
     3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3648  (exit $ac_status); } >/dev/null; then
     3649  if test -s conftest.err; then
     3650    ac_cpp_err=$ac_c_preproc_warn_flag
     3651    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3652  else
     3653    ac_cpp_err=
     3654  fi
     3655else
     3656  ac_cpp_err=yes
     3657fi
     3658if test -z "$ac_cpp_err"; then
     3659  ac_header_preproc=yes
     3660else
     3661  echo "$as_me: failed program was:" >&5
     3662sed 's/^/| /' conftest.$ac_ext >&5
     3663
     3664  ac_header_preproc=no
     3665fi
     3666rm -f conftest.err conftest.$ac_ext
     3667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     3668echo "${ECHO_T}$ac_header_preproc" >&6
     3669
     3670# So?  What about this header?
     3671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     3672  yes:no: )
     3673    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
     3674echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     3675    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
     3676echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
     3677    ac_header_preproc=yes
     3678    ;;
     3679  no:yes:* )
     3680    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
     3681echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
     3682    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
     3683echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
     3684    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
     3685echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
     3686    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
     3687echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     3688    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
     3689echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
     3690    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
     3691echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
     3692    (
     3693      cat <<\_ASBOX
     3694## ------------------------------------------ ##
     3695## Report this to the AC_PACKAGE_NAME lists.  ##
     3696## ------------------------------------------ ##
     3697_ASBOX
     3698    ) |
     3699      sed "s/^/$as_me: WARNING:     /" >&2
     3700    ;;
     3701esac
     3702echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3703echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3704if test "${ac_cv_header_minix_config_h+set}" = set; then
     3705  echo $ECHO_N "(cached) $ECHO_C" >&6
     3706else
     3707  ac_cv_header_minix_config_h=$ac_header_preproc
     3708fi
     3709echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3710echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3711
     3712fi
     3713if test $ac_cv_header_minix_config_h = yes; then
     3714  MINIX=yes
     3715else
     3716  MINIX=
     3717fi
     3718
     3719
     3720if test "$MINIX" = yes; then
     3721
     3722cat >>confdefs.h <<\_ACEOF
     3723#define _POSIX_SOURCE 1
     3724_ACEOF
     3725
     3726
     3727cat >>confdefs.h <<\_ACEOF
     3728#define _POSIX_1_SOURCE 2
     3729_ACEOF
     3730
     3731
     3732cat >>confdefs.h <<\_ACEOF
     3733#define _MINIX 1
     3734_ACEOF
     3735
     3736fi
     3737
     3738echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
     3739echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     3740if test "${ac_cv_prog_cc_stdc+set}" = set; then
     3741  echo $ECHO_N "(cached) $ECHO_C" >&6
     3742else
     3743  ac_cv_prog_cc_stdc=no
     3744ac_save_CFLAGS="$CFLAGS"
     3745# Don't try gcc -ansi; that turns off useful extensions and
     3746# breaks some systems' header files.
     3747# AIX           -qlanglvl=ansi
     3748# Ultrix and OSF/1  -std1
     3749# HP-UX         -Aa -D_HPUX_SOURCE
     3750# SVR4          -Xc
     3751for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
     3752do
     3753  CFLAGS="$ac_save_CFLAGS $ac_arg"
     3754  cat >conftest.$ac_ext <<_ACEOF
     3755/* confdefs.h.  */
     3756_ACEOF
     3757cat confdefs.h >>conftest.$ac_ext
     3758cat >>conftest.$ac_ext <<_ACEOF
     3759/* end confdefs.h.  */
     3760#if !defined(__STDC__) || __STDC__ != 1
     3761choke me
     3762#endif
     3763
     3764int
     3765main ()
     3766{
     3767int test (int i, double x);
     3768struct s1 {int (*f) (int a);};
     3769struct s2 {int (*f) (double a);};
     3770  ;
     3771  return 0;
     3772}
     3773_ACEOF
     3774rm -f conftest.$ac_objext
     3775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3776  (eval $ac_compile) 2>conftest.er1
     3777  ac_status=$?
     3778  grep -v '^ *+' conftest.er1 >conftest.err
     3779  rm -f conftest.er1
     3780  cat conftest.err >&5
     3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3782  (exit $ac_status); } &&
     3783     { ac_try='test -z "$ac_c_werror_flag"
     3784             || test ! -s conftest.err'
     3785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3786  (eval $ac_try) 2>&5
     3787  ac_status=$?
     3788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3789  (exit $ac_status); }; } &&
     3790     { ac_try='test -s conftest.$ac_objext'
     3791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3792  (eval $ac_try) 2>&5
     3793  ac_status=$?
     3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3795  (exit $ac_status); }; }; then
     3796  ac_cv_prog_cc_stdc="$ac_arg"; break
     3797else
     3798  echo "$as_me: failed program was:" >&5
     3799sed 's/^/| /' conftest.$ac_ext >&5
     3800
     3801fi
     3802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3803done
     3804CFLAGS="$ac_save_CFLAGS"
     3805
     3806fi
     3807
     3808echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     3809echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     3810case "x$ac_cv_prog_cc_stdc" in
     3811  x|xno) ;;
     3812  *) CC="$CC $ac_cv_prog_cc_stdc" ;;
     3813esac
     3814
     3815
     3816echo "$as_me:$LINENO: checking for function prototypes" >&5
     3817echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     3818if test "$ac_cv_prog_cc_stdc" != no; then
     3819  echo "$as_me:$LINENO: result: yes" >&5
     3820echo "${ECHO_T}yes" >&6
     3821  cat >>confdefs.h <<\_ACEOF
     3822#define PROTOTYPES 1
     3823_ACEOF
     3824
     3825  U= ANSI2KNR=
     3826else
     3827  echo "$as_me:$LINENO: result: no" >&5
     3828echo "${ECHO_T}no" >&6
     3829  U=_ ANSI2KNR=ansi2knr
     3830fi
     3831
     3832echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    26813833echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    26823834if test "${ac_cv_c_const+set}" = set; then
     
    26843836else
    26853837  cat >conftest.$ac_ext <<_ACEOF
    2686 #line 2686 "configure"
    2687 #include "confdefs.h"
     3838/* confdefs.h.  */
     3839_ACEOF
     3840cat confdefs.h >>conftest.$ac_ext
     3841cat >>conftest.$ac_ext <<_ACEOF
     3842/* end confdefs.h.  */
    26883843
    26893844int
     
    27423897_ACEOF
    27433898rm -f conftest.$ac_objext
    2744 if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5
    2745   (eval $ac_compile) 2>&5
    2746   ac_status=$?
    2747   echo "$as_me:2747: \$? = $ac_status" >&5
     3899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3900  (eval $ac_compile) 2>conftest.er1
     3901  ac_status=$?
     3902  grep -v '^ *+' conftest.er1 >conftest.err
     3903  rm -f conftest.er1
     3904  cat conftest.err >&5
     3905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    27483906  (exit $ac_status); } &&
    2749          { ac_try='test -s conftest.$ac_objext'
    2750   { (eval echo "$as_me:2750: \"$ac_try\"") >&5
    2751   (eval $ac_try) 2>&5
    2752   ac_status=$?
    2753   echo "$as_me:2753: \$? = $ac_status" >&5
     3907     { ac_try='test -z "$ac_c_werror_flag"
     3908             || test ! -s conftest.err'
     3909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3910  (eval $ac_try) 2>&5
     3911  ac_status=$?
     3912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3913  (exit $ac_status); }; } &&
     3914     { ac_try='test -s conftest.$ac_objext'
     3915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3916  (eval $ac_try) 2>&5
     3917  ac_status=$?
     3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    27543919  (exit $ac_status); }; }; then
    27553920  ac_cv_c_const=yes
    27563921else
    27573922  echo "$as_me: failed program was:" >&5
    2758 cat conftest.$ac_ext >&5
     3923sed 's/^/| /' conftest.$ac_ext >&5
     3924
    27593925ac_cv_c_const=no
    27603926fi
    2761 rm -f conftest.$ac_objext conftest.$ac_ext
    2762 fi
    2763 echo "$as_me:2763: result: $ac_cv_c_const" >&5
     3927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3928fi
     3929echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    27643930echo "${ECHO_T}$ac_cv_c_const" >&6
    27653931if test $ac_cv_c_const = no; then
    27663932
    2767 cat >>confdefs.h <<\EOF
     3933cat >>confdefs.h <<\_ACEOF
    27683934#define const
    2769 EOF
    2770 
    2771 fi
    2772 
    2773 echo "$as_me:2773: checking for ANSI C header files" >&5
    2774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    2775 if test "${ac_cv_header_stdc+set}" = set; then
    2776   echo $ECHO_N "(cached) $ECHO_C" >&6
    2777 else
    2778   cat >conftest.$ac_ext <<_ACEOF
    2779 #line 2779 "configure"
    2780 #include "confdefs.h"
    2781 #include <stdlib.h>
    2782 #include <stdarg.h>
    2783 #include <string.h>
    2784 #include <float.h>
    2785 
    2786 _ACEOF
    2787 if { (eval echo "$as_me:2787: \"$ac_cpp conftest.$ac_ext\"") >&5
    2788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2789   ac_status=$?
    2790   egrep -v '^ *\+' conftest.er1 >conftest.err
    2791   rm -f conftest.er1
    2792   cat conftest.err >&5
    2793   echo "$as_me:2793: \$? = $ac_status" >&5
    2794   (exit $ac_status); } >/dev/null; then
    2795   if test -s conftest.err; then
    2796     ac_cpp_err=$ac_c_preproc_warn_flag
    2797   else
    2798     ac_cpp_err=
    2799   fi
    2800 else
    2801   ac_cpp_err=yes
    2802 fi
    2803 if test -z "$ac_cpp_err"; then
    2804   ac_cv_header_stdc=yes
    2805 else
    2806   echo "$as_me: failed program was:" >&5
    2807   cat conftest.$ac_ext >&5
    2808   ac_cv_header_stdc=no
    2809 fi
    2810 rm -f conftest.err conftest.$ac_ext
    2811 
    2812 if test $ac_cv_header_stdc = yes; then
    2813   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2814   cat >conftest.$ac_ext <<_ACEOF
    2815 #line 2815 "configure"
    2816 #include "confdefs.h"
    2817 #include <string.h>
    2818 
    2819 _ACEOF
    2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2821   egrep "memchr" >/dev/null 2>&1; then
    2822   :
    2823 else
    2824   ac_cv_header_stdc=no
    2825 fi
    2826 rm -f conftest*
    2827 
    2828 fi
    2829 
    2830 if test $ac_cv_header_stdc = yes; then
    2831   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2832   cat >conftest.$ac_ext <<_ACEOF
    2833 #line 2833 "configure"
    2834 #include "confdefs.h"
    2835 #include <stdlib.h>
    2836 
    2837 _ACEOF
    2838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2839   egrep "free" >/dev/null 2>&1; then
    2840   :
    2841 else
    2842   ac_cv_header_stdc=no
    2843 fi
    2844 rm -f conftest*
    2845 
    2846 fi
    2847 
    2848 if test $ac_cv_header_stdc = yes; then
    2849   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2850   if test "$cross_compiling" = yes; then
    2851   :
    2852 else
    2853   cat >conftest.$ac_ext <<_ACEOF
    2854 #line 2854 "configure"
    2855 #include "confdefs.h"
    2856 #include <ctype.h>
    2857 #if ((' ' & 0x0FF) == 0x020)
    2858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    2860 #else
    2861 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    2862                      || ('j' <= (c) && (c) <= 'r') \
    2863                      || ('s' <= (c) && (c) <= 'z'))
    2864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    2865 #endif
    2866 
    2867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2868 int
    2869 main ()
    2870 {
    2871   int i;
    2872   for (i = 0; i < 256; i++)
    2873     if (XOR (islower (i), ISLOWER (i))
    2874         || toupper (i) != TOUPPER (i))
    2875       exit(2);
    2876   exit (0);
    2877 }
    2878 _ACEOF
    2879 rm -f conftest$ac_exeext
    2880 if { (eval echo "$as_me:2880: \"$ac_link\"") >&5
    2881   (eval $ac_link) 2>&5
    2882   ac_status=$?
    2883   echo "$as_me:2883: \$? = $ac_status" >&5
    2884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2885   { (eval echo "$as_me:2885: \"$ac_try\"") >&5
    2886   (eval $ac_try) 2>&5
    2887   ac_status=$?
    2888   echo "$as_me:2888: \$? = $ac_status" >&5
    2889   (exit $ac_status); }; }; then
    2890   :
    2891 else
    2892   echo "$as_me: program exited with status $ac_status" >&5
    2893 echo "$as_me: failed program was:" >&5
    2894 cat conftest.$ac_ext >&5
    2895 ac_cv_header_stdc=no
    2896 fi
    2897 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    2898 fi
    2899 fi
    2900 fi
    2901 echo "$as_me:2901: result: $ac_cv_header_stdc" >&5
    2902 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    2903 if test $ac_cv_header_stdc = yes; then
    2904 
    2905 cat >>confdefs.h <<\EOF
    2906 #define STDC_HEADERS 1
    2907 EOF
    2908 
    2909 fi
    2910 
    2911 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
    2912 do
    2913 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    2914 echo "$as_me:2914: checking for $ac_header" >&5
    2915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2916 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    2917   echo $ECHO_N "(cached) $ECHO_C" >&6
    2918 else
    2919   cat >conftest.$ac_ext <<_ACEOF
    2920 #line 2920 "configure"
    2921 #include "confdefs.h"
    2922 #include <$ac_header>
    2923 _ACEOF
    2924 if { (eval echo "$as_me:2924: \"$ac_cpp conftest.$ac_ext\"") >&5
    2925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2926   ac_status=$?
    2927   egrep -v '^ *\+' conftest.er1 >conftest.err
    2928   rm -f conftest.er1
    2929   cat conftest.err >&5
    2930   echo "$as_me:2930: \$? = $ac_status" >&5
    2931   (exit $ac_status); } >/dev/null; then
    2932   if test -s conftest.err; then
    2933     ac_cpp_err=$ac_c_preproc_warn_flag
    2934   else
    2935     ac_cpp_err=
    2936   fi
    2937 else
    2938   ac_cpp_err=yes
    2939 fi
    2940 if test -z "$ac_cpp_err"; then
    2941   eval "$ac_ac_Header=yes"
    2942 else
    2943   echo "$as_me: failed program was:" >&5
    2944   cat conftest.$ac_ext >&5
    2945   eval "$ac_ac_Header=no"
    2946 fi
    2947 rm -f conftest.err conftest.$ac_ext
    2948 fi
    2949 echo "$as_me:2949: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    2950 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    2951 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    2952   cat >>confdefs.h <<EOF
    2953 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    2954 EOF
    2955 
    2956 fi
    2957 done
    2958 
    2959 echo "$as_me:2959: checking for off_t" >&5
     3935_ACEOF
     3936
     3937fi
     3938
     3939echo "$as_me:$LINENO: checking for off_t" >&5
    29603940echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    29613941if test "${ac_cv_type_off_t+set}" = set; then
     
    29633943else
    29643944  cat >conftest.$ac_ext <<_ACEOF
    2965 #line 2965 "configure"
    2966 #include "confdefs.h"
     3945/* confdefs.h.  */
     3946_ACEOF
     3947cat confdefs.h >>conftest.$ac_ext
     3948cat >>conftest.$ac_ext <<_ACEOF
     3949/* end confdefs.h.  */
    29673950$ac_includes_default
    29683951int
     
    29783961_ACEOF
    29793962rm -f conftest.$ac_objext
    2980 if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5
    2981   (eval $ac_compile) 2>&5
    2982   ac_status=$?
    2983   echo "$as_me:2983: \$? = $ac_status" >&5
     3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3964  (eval $ac_compile) 2>conftest.er1
     3965  ac_status=$?
     3966  grep -v '^ *+' conftest.er1 >conftest.err
     3967  rm -f conftest.er1
     3968  cat conftest.err >&5
     3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29843970  (exit $ac_status); } &&
    2985          { ac_try='test -s conftest.$ac_objext'
    2986   { (eval echo "$as_me:2986: \"$ac_try\"") >&5
    2987   (eval $ac_try) 2>&5
    2988   ac_status=$?
    2989   echo "$as_me:2989: \$? = $ac_status" >&5
     3971     { ac_try='test -z "$ac_c_werror_flag"
     3972             || test ! -s conftest.err'
     3973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3974  (eval $ac_try) 2>&5
     3975  ac_status=$?
     3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3977  (exit $ac_status); }; } &&
     3978     { ac_try='test -s conftest.$ac_objext'
     3979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3980  (eval $ac_try) 2>&5
     3981  ac_status=$?
     3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29903983  (exit $ac_status); }; }; then
    29913984  ac_cv_type_off_t=yes
    29923985else
    29933986  echo "$as_me: failed program was:" >&5
    2994 cat conftest.$ac_ext >&5
     3987sed 's/^/| /' conftest.$ac_ext >&5
     3988
    29953989ac_cv_type_off_t=no
    29963990fi
    2997 rm -f conftest.$ac_objext conftest.$ac_ext
    2998 fi
    2999 echo "$as_me:2999: result: $ac_cv_type_off_t" >&5
     3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3992fi
     3993echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    30003994echo "${ECHO_T}$ac_cv_type_off_t" >&6
    30013995if test $ac_cv_type_off_t = yes; then
     
    30033997else
    30043998
    3005 cat >>confdefs.h <<EOF
     3999cat >>confdefs.h <<_ACEOF
    30064000#define off_t long
    3007 EOF
    3008 
    3009 fi
    3010 
    3011 echo "$as_me:3011: checking for size_t" >&5
     4001_ACEOF
     4002
     4003fi
     4004
     4005echo "$as_me:$LINENO: checking for size_t" >&5
    30124006echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    30134007if test "${ac_cv_type_size_t+set}" = set; then
     
    30154009else
    30164010  cat >conftest.$ac_ext <<_ACEOF
    3017 #line 3017 "configure"
    3018 #include "confdefs.h"
     4011/* confdefs.h.  */
     4012_ACEOF
     4013cat confdefs.h >>conftest.$ac_ext
     4014cat >>conftest.$ac_ext <<_ACEOF
     4015/* end confdefs.h.  */
    30194016$ac_includes_default
    30204017int
     
    30304027_ACEOF
    30314028rm -f conftest.$ac_objext
    3032 if { (eval echo "$as_me:3032: \"$ac_compile\"") >&5
    3033   (eval $ac_compile) 2>&5
    3034   ac_status=$?
    3035   echo "$as_me:3035: \$? = $ac_status" >&5
     4029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4030  (eval $ac_compile) 2>conftest.er1
     4031  ac_status=$?
     4032  grep -v '^ *+' conftest.er1 >conftest.err
     4033  rm -f conftest.er1
     4034  cat conftest.err >&5
     4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30364036  (exit $ac_status); } &&
    3037          { ac_try='test -s conftest.$ac_objext'
    3038   { (eval echo "$as_me:3038: \"$ac_try\"") >&5
    3039   (eval $ac_try) 2>&5
    3040   ac_status=$?
    3041   echo "$as_me:3041: \$? = $ac_status" >&5
     4037     { ac_try='test -z "$ac_c_werror_flag"
     4038             || test ! -s conftest.err'
     4039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4040  (eval $ac_try) 2>&5
     4041  ac_status=$?
     4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4043  (exit $ac_status); }; } &&
     4044     { ac_try='test -s conftest.$ac_objext'
     4045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4046  (eval $ac_try) 2>&5
     4047  ac_status=$?
     4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30424049  (exit $ac_status); }; }; then
    30434050  ac_cv_type_size_t=yes
    30444051else
    30454052  echo "$as_me: failed program was:" >&5
    3046 cat conftest.$ac_ext >&5
     4053sed 's/^/| /' conftest.$ac_ext >&5
     4054
    30474055ac_cv_type_size_t=no
    30484056fi
    3049 rm -f conftest.$ac_objext conftest.$ac_ext
    3050 fi
    3051 echo "$as_me:3051: result: $ac_cv_type_size_t" >&5
     4057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4058fi
     4059echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    30524060echo "${ECHO_T}$ac_cv_type_size_t" >&6
    30534061if test $ac_cv_type_size_t = yes; then
     
    30554063else
    30564064
    3057 cat >>confdefs.h <<EOF
     4065cat >>confdefs.h <<_ACEOF
    30584066#define size_t unsigned
    3059 EOF
    3060 
    3061 fi
    3062 
    3063 echo "$as_me:3063: checking whether time.h and sys/time.h may both be included" >&5
     4067_ACEOF
     4068
     4069fi
     4070
     4071echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    30644072echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    30654073if test "${ac_cv_header_time+set}" = set; then
     
    30674075else
    30684076  cat >conftest.$ac_ext <<_ACEOF
    3069 #line 3069 "configure"
    3070 #include "confdefs.h"
     4077/* confdefs.h.  */
     4078_ACEOF
     4079cat confdefs.h >>conftest.$ac_ext
     4080cat >>conftest.$ac_ext <<_ACEOF
     4081/* end confdefs.h.  */
    30714082#include <sys/types.h>
    30724083#include <sys/time.h>
     
    30764087main ()
    30774088{
    3078 struct tm *tp;
     4089if ((struct tm *) 0)
     4090return 0;
    30794091  ;
    30804092  return 0;
     
    30824094_ACEOF
    30834095rm -f conftest.$ac_objext
    3084 if { (eval echo "$as_me:3084: \"$ac_compile\"") >&5
    3085   (eval $ac_compile) 2>&5
    3086   ac_status=$?
    3087   echo "$as_me:3087: \$? = $ac_status" >&5
     4096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4097  (eval $ac_compile) 2>conftest.er1
     4098  ac_status=$?
     4099  grep -v '^ *+' conftest.er1 >conftest.err
     4100  rm -f conftest.er1
     4101  cat conftest.err >&5
     4102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30884103  (exit $ac_status); } &&
    3089          { ac_try='test -s conftest.$ac_objext'
    3090   { (eval echo "$as_me:3090: \"$ac_try\"") >&5
    3091   (eval $ac_try) 2>&5
    3092   ac_status=$?
    3093   echo "$as_me:3093: \$? = $ac_status" >&5
     4104     { ac_try='test -z "$ac_c_werror_flag"
     4105             || test ! -s conftest.err'
     4106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4107  (eval $ac_try) 2>&5
     4108  ac_status=$?
     4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4110  (exit $ac_status); }; } &&
     4111     { ac_try='test -s conftest.$ac_objext'
     4112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4113  (eval $ac_try) 2>&5
     4114  ac_status=$?
     4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30944116  (exit $ac_status); }; }; then
    30954117  ac_cv_header_time=yes
    30964118else
    30974119  echo "$as_me: failed program was:" >&5
    3098 cat conftest.$ac_ext >&5
     4120sed 's/^/| /' conftest.$ac_ext >&5
     4121
    30994122ac_cv_header_time=no
    31004123fi
    3101 rm -f conftest.$ac_objext conftest.$ac_ext
    3102 fi
    3103 echo "$as_me:3103: result: $ac_cv_header_time" >&5
     4124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4125fi
     4126echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    31044127echo "${ECHO_T}$ac_cv_header_time" >&6
    31054128if test $ac_cv_header_time = yes; then
    31064129
    3107 cat >>confdefs.h <<\EOF
     4130cat >>confdefs.h <<\_ACEOF
    31084131#define TIME_WITH_SYS_TIME 1
    3109 EOF
    3110 
    3111 fi
    3112 
    3113 echo "$as_me:3113: checking whether struct tm is in sys/time.h or time.h" >&5
     4132_ACEOF
     4133
     4134fi
     4135
     4136echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    31144137echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    31154138if test "${ac_cv_struct_tm+set}" = set; then
     
    31174140else
    31184141  cat >conftest.$ac_ext <<_ACEOF
    3119 #line 3119 "configure"
    3120 #include "confdefs.h"
     4142/* confdefs.h.  */
     4143_ACEOF
     4144cat confdefs.h >>conftest.$ac_ext
     4145cat >>conftest.$ac_ext <<_ACEOF
     4146/* end confdefs.h.  */
    31214147#include <sys/types.h>
    31224148#include <time.h>
     
    31314157_ACEOF
    31324158rm -f conftest.$ac_objext
    3133 if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5
    3134   (eval $ac_compile) 2>&5
    3135   ac_status=$?
    3136   echo "$as_me:3136: \$? = $ac_status" >&5
     4159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4160  (eval $ac_compile) 2>conftest.er1
     4161  ac_status=$?
     4162  grep -v '^ *+' conftest.er1 >conftest.err
     4163  rm -f conftest.er1
     4164  cat conftest.err >&5
     4165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31374166  (exit $ac_status); } &&
    3138          { ac_try='test -s conftest.$ac_objext'
    3139   { (eval echo "$as_me:3139: \"$ac_try\"") >&5
    3140   (eval $ac_try) 2>&5
    3141   ac_status=$?
    3142   echo "$as_me:3142: \$? = $ac_status" >&5
     4167     { ac_try='test -z "$ac_c_werror_flag"
     4168             || test ! -s conftest.err'
     4169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4170  (eval $ac_try) 2>&5
     4171  ac_status=$?
     4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4173  (exit $ac_status); }; } &&
     4174     { ac_try='test -s conftest.$ac_objext'
     4175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4176  (eval $ac_try) 2>&5
     4177  ac_status=$?
     4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31434179  (exit $ac_status); }; }; then
    31444180  ac_cv_struct_tm=time.h
    31454181else
    31464182  echo "$as_me: failed program was:" >&5
    3147 cat conftest.$ac_ext >&5
     4183sed 's/^/| /' conftest.$ac_ext >&5
     4184
    31484185ac_cv_struct_tm=sys/time.h
    31494186fi
    3150 rm -f conftest.$ac_objext conftest.$ac_ext
    3151 fi
    3152 echo "$as_me:3152: result: $ac_cv_struct_tm" >&5
     4187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4188fi
     4189echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    31534190echo "${ECHO_T}$ac_cv_struct_tm" >&6
    31544191if test $ac_cv_struct_tm = sys/time.h; then
    31554192
    3156 cat >>confdefs.h <<\EOF
     4193cat >>confdefs.h <<\_ACEOF
    31574194#define TM_IN_SYS_TIME 1
    3158 EOF
    3159 
    3160 fi
     4195_ACEOF
     4196
     4197fi
     4198
    31614199
    31624200if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    31634201cat >conftest.$ac_ext <<_ACEOF
    3164 #line 3164 "configure"
    3165 #include "confdefs.h"
     4202/* confdefs.h.  */
     4203_ACEOF
     4204cat confdefs.h >>conftest.$ac_ext
     4205cat >>conftest.$ac_ext <<_ACEOF
     4206/* end confdefs.h.  */
    31664207#include <stdio.h>
    31674208
     
    31754216_ACEOF
    31764217rm -f conftest.$ac_objext
    3177 if { (eval echo "$as_me:3177: \"$ac_compile\"") >&5
    3178   (eval $ac_compile) 2>&5
    3179   ac_status=$?
    3180   echo "$as_me:3180: \$? = $ac_status" >&5
     4218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4219  (eval $ac_compile) 2>conftest.er1
     4220  ac_status=$?
     4221  grep -v '^ *+' conftest.er1 >conftest.err
     4222  rm -f conftest.er1
     4223  cat conftest.err >&5
     4224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31814225  (exit $ac_status); } &&
    3182          { ac_try='test -s conftest.$ac_objext'
    3183   { (eval echo "$as_me:3183: \"$ac_try\"") >&5
    3184   (eval $ac_try) 2>&5
    3185   ac_status=$?
    3186   echo "$as_me:3186: \$? = $ac_status" >&5
     4226     { ac_try='test -z "$ac_c_werror_flag"
     4227             || test ! -s conftest.err'
     4228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4229  (eval $ac_try) 2>&5
     4230  ac_status=$?
     4231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4232  (exit $ac_status); }; } &&
     4233     { ac_try='test -s conftest.$ac_objext'
     4234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4235  (eval $ac_try) 2>&5
     4236  ac_status=$?
     4237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31874238  (exit $ac_status); }; }; then
    31884239  :
    31894240else
    31904241  echo "$as_me: failed program was:" >&5
    3191 cat conftest.$ac_ext >&5
     4242sed 's/^/| /' conftest.$ac_ext >&5
     4243
    31924244CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    31934245fi
    3194 rm -f conftest.$ac_objext conftest.$ac_ext
    3195 fi
    3196 
    3197 echo "$as_me:3197: checking for main in -lm" >&5
     4246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4247fi
     4248
     4249
     4250
     4251echo "$as_me:$LINENO: checking for main in -lm" >&5
    31984252echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    31994253if test "${ac_cv_lib_m_main+set}" = set; then
     
    32034257LIBS="-lm  $LIBS"
    32044258cat >conftest.$ac_ext <<_ACEOF
    3205 #line 3205 "configure"
    3206 #include "confdefs.h"
     4259/* confdefs.h.  */
     4260_ACEOF
     4261cat confdefs.h >>conftest.$ac_ext
     4262cat >>conftest.$ac_ext <<_ACEOF
     4263/* end confdefs.h.  */
     4264
    32074265
    32084266int
     
    32154273_ACEOF
    32164274rm -f conftest.$ac_objext conftest$ac_exeext
    3217 if { (eval echo "$as_me:3217: \"$ac_link\"") >&5
    3218   (eval $ac_link) 2>&5
    3219   ac_status=$?
    3220   echo "$as_me:3220: \$? = $ac_status" >&5
     4275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4276  (eval $ac_link) 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
    32214282  (exit $ac_status); } &&
    3222          { ac_try='test -s conftest$ac_exeext'
    3223   { (eval echo "$as_me:3223: \"$ac_try\"") >&5
    3224   (eval $ac_try) 2>&5
    3225   ac_status=$?
    3226   echo "$as_me:3226: \$? = $ac_status" >&5
     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_exeext'
     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
    32274295  (exit $ac_status); }; }; then
    32284296  ac_cv_lib_m_main=yes
    32294297else
    32304298  echo "$as_me: failed program was:" >&5
    3231 cat conftest.$ac_ext >&5
     4299sed 's/^/| /' conftest.$ac_ext >&5
     4300
    32324301ac_cv_lib_m_main=no
    32334302fi
    3234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4303rm -f conftest.err conftest.$ac_objext \
     4304      conftest$ac_exeext conftest.$ac_ext
    32354305LIBS=$ac_check_lib_save_LIBS
    32364306fi
    3237 echo "$as_me:3237: result: $ac_cv_lib_m_main" >&5
     4307echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    32384308echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    32394309if test $ac_cv_lib_m_main = yes; then
    3240   cat >>confdefs.h <<EOF
     4310  cat >>confdefs.h <<_ACEOF
    32414311#define HAVE_LIBM 1
    3242 EOF
     4312_ACEOF
    32434313
    32444314  LIBS="-lm $LIBS"
    32454315
    32464316fi
     4317
     4318
     4319
     4320
     4321
     4322
    32474323
    32484324ac_header_dirent=no
    32494325for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    3250   ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
    3251 echo "$as_me:3251: checking for $ac_hdr that defines DIR" >&5
     4326  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     4327echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    32524328echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    3253 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     4329if eval "test \"\${$as_ac_Header+set}\" = set"; then
    32544330  echo $ECHO_N "(cached) $ECHO_C" >&6
    32554331else
    32564332  cat >conftest.$ac_ext <<_ACEOF
    3257 #line 3257 "configure"
    3258 #include "confdefs.h"
     4333/* confdefs.h.  */
     4334_ACEOF
     4335cat confdefs.h >>conftest.$ac_ext
     4336cat >>conftest.$ac_ext <<_ACEOF
     4337/* end confdefs.h.  */
    32594338#include <sys/types.h>
    32604339#include <$ac_hdr>
     
    32634342main ()
    32644343{
    3265 DIR *dirp = 0;
     4344if ((DIR *) 0)
     4345return 0;
    32664346  ;
    32674347  return 0;
     
    32694349_ACEOF
    32704350rm -f conftest.$ac_objext
    3271 if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5
    3272   (eval $ac_compile) 2>&5
    3273   ac_status=$?
    3274   echo "$as_me:3274: \$? = $ac_status" >&5
     4351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4352  (eval $ac_compile) 2>conftest.er1
     4353  ac_status=$?
     4354  grep -v '^ *+' conftest.er1 >conftest.err
     4355  rm -f conftest.er1
     4356  cat conftest.err >&5
     4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32754358  (exit $ac_status); } &&
    3276          { ac_try='test -s conftest.$ac_objext'
    3277   { (eval echo "$as_me:3277: \"$ac_try\"") >&5
    3278   (eval $ac_try) 2>&5
    3279   ac_status=$?
    3280   echo "$as_me:3280: \$? = $ac_status" >&5
     4359     { ac_try='test -z "$ac_c_werror_flag"
     4360             || test ! -s conftest.err'
     4361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4362  (eval $ac_try) 2>&5
     4363  ac_status=$?
     4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4365  (exit $ac_status); }; } &&
     4366     { ac_try='test -s conftest.$ac_objext'
     4367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4368  (eval $ac_try) 2>&5
     4369  ac_status=$?
     4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32814371  (exit $ac_status); }; }; then
    3282   eval "$ac_ac_Header=yes"
     4372  eval "$as_ac_Header=yes"
    32834373else
    32844374  echo "$as_me: failed program was:" >&5
    3285 cat conftest.$ac_ext >&5
    3286 eval "$ac_ac_Header=no"
    3287 fi
    3288 rm -f conftest.$ac_objext conftest.$ac_ext
    3289 fi
    3290 echo "$as_me:3290: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3291 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3292 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3293   cat >>confdefs.h <<EOF
    3294 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
    3295 EOF
     4375sed 's/^/| /' conftest.$ac_ext >&5
     4376
     4377eval "$as_ac_Header=no"
     4378fi
     4379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4380fi
     4381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4383if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4384  cat >>confdefs.h <<_ACEOF
     4385#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     4386_ACEOF
    32964387
    32974388ac_header_dirent=$ac_hdr; break
     
    33014392# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    33024393if test $ac_header_dirent = dirent.h; then
    3303   echo "$as_me:3303: checking for opendir in -ldir" >&5
    3304 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
    3305 if test "${ac_cv_lib_dir_opendir+set}" = set; then
     4394  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4395echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4396if test "${ac_cv_search_opendir+set}" = set; then
    33064397  echo $ECHO_N "(cached) $ECHO_C" >&6
    33074398else
    3308   ac_check_lib_save_LIBS=$LIBS
    3309 LIBS="-ldir  $LIBS"
     4399  ac_func_search_save_LIBS=$LIBS
     4400ac_cv_search_opendir=no
    33104401cat >conftest.$ac_ext <<_ACEOF
    3311 #line 3311 "configure"
    3312 #include "confdefs.h"
     4402/* confdefs.h.  */
     4403_ACEOF
     4404cat confdefs.h >>conftest.$ac_ext
     4405cat >>conftest.$ac_ext <<_ACEOF
     4406/* end confdefs.h.  */
    33134407
    33144408/* Override any gcc2 internal prototype to avoid an error.  */
     
    33284422_ACEOF
    33294423rm -f conftest.$ac_objext conftest$ac_exeext
    3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5
    3331   (eval $ac_link) 2>&5
    3332   ac_status=$?
    3333   echo "$as_me:3333: \$? = $ac_status" >&5
     4424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4425  (eval $ac_link) 2>conftest.er1
     4426  ac_status=$?
     4427  grep -v '^ *+' conftest.er1 >conftest.err
     4428  rm -f conftest.er1
     4429  cat conftest.err >&5
     4430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33344431  (exit $ac_status); } &&
    3335          { ac_try='test -s conftest$ac_exeext'
    3336   { (eval echo "$as_me:3336: \"$ac_try\"") >&5
    3337   (eval $ac_try) 2>&5
    3338   ac_status=$?
    3339   echo "$as_me:3339: \$? = $ac_status" >&5
     4432     { ac_try='test -z "$ac_c_werror_flag"
     4433             || test ! -s conftest.err'
     4434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4435  (eval $ac_try) 2>&5
     4436  ac_status=$?
     4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4438  (exit $ac_status); }; } &&
     4439     { ac_try='test -s conftest$ac_exeext'
     4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4441  (eval $ac_try) 2>&5
     4442  ac_status=$?
     4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33404444  (exit $ac_status); }; }; then
    3341   ac_cv_lib_dir_opendir=yes
     4445  ac_cv_search_opendir="none required"
    33424446else
    33434447  echo "$as_me: failed program was:" >&5
    3344 cat conftest.$ac_ext >&5
    3345 ac_cv_lib_dir_opendir=no
    3346 fi
    3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3348 LIBS=$ac_check_lib_save_LIBS
    3349 fi
    3350 echo "$as_me:3350: result: $ac_cv_lib_dir_opendir" >&5
    3351 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
    3352 if test $ac_cv_lib_dir_opendir = yes; then
    3353   LIBS="$LIBS -ldir"
    3354 fi
    3355 
    3356 else
    3357   echo "$as_me:3357: checking for opendir in -lx" >&5
    3358 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
    3359 if test "${ac_cv_lib_x_opendir+set}" = set; then
    3360   echo $ECHO_N "(cached) $ECHO_C" >&6
    3361 else
    3362   ac_check_lib_save_LIBS=$LIBS
    3363 LIBS="-lx  $LIBS"
    3364 cat >conftest.$ac_ext <<_ACEOF
    3365 #line 3365 "configure"
    3366 #include "confdefs.h"
     4448sed 's/^/| /' conftest.$ac_ext >&5
     4449
     4450fi
     4451rm -f conftest.err conftest.$ac_objext \
     4452      conftest$ac_exeext conftest.$ac_ext
     4453if test "$ac_cv_search_opendir" = no; then
     4454  for ac_lib in dir; do
     4455    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4456    cat >conftest.$ac_ext <<_ACEOF
     4457/* confdefs.h.  */
     4458_ACEOF
     4459cat confdefs.h >>conftest.$ac_ext
     4460cat >>conftest.$ac_ext <<_ACEOF
     4461/* end confdefs.h.  */
    33674462
    33684463/* Override any gcc2 internal prototype to avoid an error.  */
     
    33824477_ACEOF
    33834478rm -f conftest.$ac_objext conftest$ac_exeext
    3384 if { (eval echo "$as_me:3384: \"$ac_link\"") >&5
    3385   (eval $ac_link) 2>&5
    3386   ac_status=$?
    3387   echo "$as_me:3387: \$? = $ac_status" >&5
     4479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4480  (eval $ac_link) 2>conftest.er1
     4481  ac_status=$?
     4482  grep -v '^ *+' conftest.er1 >conftest.err
     4483  rm -f conftest.er1
     4484  cat conftest.err >&5
     4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33884486  (exit $ac_status); } &&
    3389          { ac_try='test -s conftest$ac_exeext'
    3390   { (eval echo "$as_me:3390: \"$ac_try\"") >&5
    3391   (eval $ac_try) 2>&5
    3392   ac_status=$?
    3393   echo "$as_me:3393: \$? = $ac_status" >&5
     4487     { ac_try='test -z "$ac_c_werror_flag"
     4488             || test ! -s conftest.err'
     4489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4490  (eval $ac_try) 2>&5
     4491  ac_status=$?
     4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4493  (exit $ac_status); }; } &&
     4494     { ac_try='test -s conftest$ac_exeext'
     4495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4496  (eval $ac_try) 2>&5
     4497  ac_status=$?
     4498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33944499  (exit $ac_status); }; }; then
    3395   ac_cv_lib_x_opendir=yes
     4500  ac_cv_search_opendir="-l$ac_lib"
     4501break
    33964502else
    33974503  echo "$as_me: failed program was:" >&5
    3398 cat conftest.$ac_ext >&5
    3399 ac_cv_lib_x_opendir=no
    3400 fi
    3401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3402 LIBS=$ac_check_lib_save_LIBS
    3403 fi
    3404 echo "$as_me:3404: result: $ac_cv_lib_x_opendir" >&5
    3405 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
    3406 if test $ac_cv_lib_x_opendir = yes; then
    3407   LIBS="$LIBS -lx"
    3408 fi
    3409 
    3410 fi
    3411 
    3412 echo "$as_me:3412: checking for ANSI C header files" >&5
     4504sed 's/^/| /' conftest.$ac_ext >&5
     4505
     4506fi
     4507rm -f conftest.err conftest.$ac_objext \
     4508      conftest$ac_exeext conftest.$ac_ext
     4509  done
     4510fi
     4511LIBS=$ac_func_search_save_LIBS
     4512fi
     4513echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4514echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4515if test "$ac_cv_search_opendir" != no; then
     4516  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4517
     4518fi
     4519
     4520else
     4521  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4522echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4523if test "${ac_cv_search_opendir+set}" = set; then
     4524  echo $ECHO_N "(cached) $ECHO_C" >&6
     4525else
     4526  ac_func_search_save_LIBS=$LIBS
     4527ac_cv_search_opendir=no
     4528cat >conftest.$ac_ext <<_ACEOF
     4529/* confdefs.h.  */
     4530_ACEOF
     4531cat confdefs.h >>conftest.$ac_ext
     4532cat >>conftest.$ac_ext <<_ACEOF
     4533/* end confdefs.h.  */
     4534
     4535/* Override any gcc2 internal prototype to avoid an error.  */
     4536#ifdef __cplusplus
     4537extern "C"
     4538#endif
     4539/* We use char because int might match the return type of a gcc2
     4540   builtin and then its argument prototype would still apply.  */
     4541char opendir ();
     4542int
     4543main ()
     4544{
     4545opendir ();
     4546  ;
     4547  return 0;
     4548}
     4549_ACEOF
     4550rm -f conftest.$ac_objext conftest$ac_exeext
     4551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4552  (eval $ac_link) 2>conftest.er1
     4553  ac_status=$?
     4554  grep -v '^ *+' conftest.er1 >conftest.err
     4555  rm -f conftest.er1
     4556  cat conftest.err >&5
     4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4558  (exit $ac_status); } &&
     4559     { ac_try='test -z "$ac_c_werror_flag"
     4560             || test ! -s conftest.err'
     4561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4562  (eval $ac_try) 2>&5
     4563  ac_status=$?
     4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4565  (exit $ac_status); }; } &&
     4566     { ac_try='test -s conftest$ac_exeext'
     4567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4568  (eval $ac_try) 2>&5
     4569  ac_status=$?
     4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4571  (exit $ac_status); }; }; then
     4572  ac_cv_search_opendir="none required"
     4573else
     4574  echo "$as_me: failed program was:" >&5
     4575sed 's/^/| /' conftest.$ac_ext >&5
     4576
     4577fi
     4578rm -f conftest.err conftest.$ac_objext \
     4579      conftest$ac_exeext conftest.$ac_ext
     4580if test "$ac_cv_search_opendir" = no; then
     4581  for ac_lib in x; do
     4582    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4583    cat >conftest.$ac_ext <<_ACEOF
     4584/* confdefs.h.  */
     4585_ACEOF
     4586cat confdefs.h >>conftest.$ac_ext
     4587cat >>conftest.$ac_ext <<_ACEOF
     4588/* end confdefs.h.  */
     4589
     4590/* Override any gcc2 internal prototype to avoid an error.  */
     4591#ifdef __cplusplus
     4592extern "C"
     4593#endif
     4594/* We use char because int might match the return type of a gcc2
     4595   builtin and then its argument prototype would still apply.  */
     4596char opendir ();
     4597int
     4598main ()
     4599{
     4600opendir ();
     4601  ;
     4602  return 0;
     4603}
     4604_ACEOF
     4605rm -f conftest.$ac_objext conftest$ac_exeext
     4606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4607  (eval $ac_link) 2>conftest.er1
     4608  ac_status=$?
     4609  grep -v '^ *+' conftest.er1 >conftest.err
     4610  rm -f conftest.er1
     4611  cat conftest.err >&5
     4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4613  (exit $ac_status); } &&
     4614     { ac_try='test -z "$ac_c_werror_flag"
     4615             || test ! -s conftest.err'
     4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4617  (eval $ac_try) 2>&5
     4618  ac_status=$?
     4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4620  (exit $ac_status); }; } &&
     4621     { ac_try='test -s conftest$ac_exeext'
     4622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4623  (eval $ac_try) 2>&5
     4624  ac_status=$?
     4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4626  (exit $ac_status); }; }; then
     4627  ac_cv_search_opendir="-l$ac_lib"
     4628break
     4629else
     4630  echo "$as_me: failed program was:" >&5
     4631sed 's/^/| /' conftest.$ac_ext >&5
     4632
     4633fi
     4634rm -f conftest.err conftest.$ac_objext \
     4635      conftest$ac_exeext conftest.$ac_ext
     4636  done
     4637fi
     4638LIBS=$ac_func_search_save_LIBS
     4639fi
     4640echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4641echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4642if test "$ac_cv_search_opendir" != no; then
     4643  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4644
     4645fi
     4646
     4647fi
     4648
     4649echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    34134650echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    34144651if test "${ac_cv_header_stdc+set}" = set; then
     
    34164653else
    34174654  cat >conftest.$ac_ext <<_ACEOF
    3418 #line 3418 "configure"
    3419 #include "confdefs.h"
     4655/* confdefs.h.  */
     4656_ACEOF
     4657cat confdefs.h >>conftest.$ac_ext
     4658cat >>conftest.$ac_ext <<_ACEOF
     4659/* end confdefs.h.  */
    34204660#include <stdlib.h>
    34214661#include <stdarg.h>
     
    34234663#include <float.h>
    34244664
    3425 _ACEOF
    3426 if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5
    3427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3428   ac_status=$?
    3429   egrep -v '^ *\+' conftest.er1 >conftest.err
     4665int
     4666main ()
     4667{
     4668
     4669  ;
     4670  return 0;
     4671}
     4672_ACEOF
     4673rm -f conftest.$ac_objext
     4674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4675  (eval $ac_compile) 2>conftest.er1
     4676  ac_status=$?
     4677  grep -v '^ *+' conftest.er1 >conftest.err
    34304678  rm -f conftest.er1
    34314679  cat conftest.err >&5
    3432   echo "$as_me:3432: \$? = $ac_status" >&5
    3433   (exit $ac_status); } >/dev/null; then
    3434   if test -s conftest.err; then
    3435     ac_cpp_err=$ac_c_preproc_warn_flag
    3436   else
    3437     ac_cpp_err=
    3438   fi
    3439 else
    3440   ac_cpp_err=yes
    3441 fi
    3442 if test -z "$ac_cpp_err"; then
     4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4681  (exit $ac_status); } &&
     4682     { ac_try='test -z "$ac_c_werror_flag"
     4683             || test ! -s conftest.err'
     4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4685  (eval $ac_try) 2>&5
     4686  ac_status=$?
     4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4688  (exit $ac_status); }; } &&
     4689     { ac_try='test -s conftest.$ac_objext'
     4690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4691  (eval $ac_try) 2>&5
     4692  ac_status=$?
     4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4694  (exit $ac_status); }; }; then
    34434695  ac_cv_header_stdc=yes
    34444696else
    34454697  echo "$as_me: failed program was:" >&5
    3446   cat conftest.$ac_ext >&5
    3447   ac_cv_header_stdc=no
    3448 fi
    3449 rm -f conftest.err conftest.$ac_ext
     4698sed 's/^/| /' conftest.$ac_ext >&5
     4699
     4700ac_cv_header_stdc=no
     4701fi
     4702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    34504703
    34514704if test $ac_cv_header_stdc = yes; then
    34524705  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    34534706  cat >conftest.$ac_ext <<_ACEOF
    3454 #line 3454 "configure"
    3455 #include "confdefs.h"
     4707/* confdefs.h.  */
     4708_ACEOF
     4709cat confdefs.h >>conftest.$ac_ext
     4710cat >>conftest.$ac_ext <<_ACEOF
     4711/* end confdefs.h.  */
    34564712#include <string.h>
    34574713
    34584714_ACEOF
    34594715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3460   egrep "memchr" >/dev/null 2>&1; then
     4716  $EGREP "memchr" >/dev/null 2>&1; then
    34614717  :
    34624718else
     
    34704726  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    34714727  cat >conftest.$ac_ext <<_ACEOF
    3472 #line 3472 "configure"
    3473 #include "confdefs.h"
     4728/* confdefs.h.  */
     4729_ACEOF
     4730cat confdefs.h >>conftest.$ac_ext
     4731cat >>conftest.$ac_ext <<_ACEOF
     4732/* end confdefs.h.  */
    34744733#include <stdlib.h>
    34754734
    34764735_ACEOF
    34774736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3478   egrep "free" >/dev/null 2>&1; then
     4737  $EGREP "free" >/dev/null 2>&1; then
    34794738  :
    34804739else
     
    34914750else
    34924751  cat >conftest.$ac_ext <<_ACEOF
    3493 #line 3493 "configure"
    3494 #include "confdefs.h"
     4752/* confdefs.h.  */
     4753_ACEOF
     4754cat confdefs.h >>conftest.$ac_ext
     4755cat >>conftest.$ac_ext <<_ACEOF
     4756/* end confdefs.h.  */
    34954757#include <ctype.h>
    34964758#if ((' ' & 0x0FF) == 0x020)
     
    34984760# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    34994761#else
    3500 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    3501                      || ('j' <= (c) && (c) <= 'r') \
    3502                      || ('s' <= (c) && (c) <= 'z'))
     4762# define ISLOWER(c) \
     4763           (('a' <= (c) && (c) <= 'i') \
     4764             || ('j' <= (c) && (c) <= 'r') \
     4765             || ('s' <= (c) && (c) <= 'z'))
    35034766# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    35044767#endif
     
    35114774  for (i = 0; i < 256; i++)
    35124775    if (XOR (islower (i), ISLOWER (i))
    3513         || toupper (i) != TOUPPER (i))
     4776    || toupper (i) != TOUPPER (i))
    35144777      exit(2);
    35154778  exit (0);
     
    35174780_ACEOF
    35184781rm -f conftest$ac_exeext
    3519 if { (eval echo "$as_me:3519: \"$ac_link\"") >&5
     4782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    35204783  (eval $ac_link) 2>&5
    35214784  ac_status=$?
    3522   echo "$as_me:3522: \$? = $ac_status" >&5
     4785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35234786  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3524   { (eval echo "$as_me:3524: \"$ac_try\"") >&5
    3525   (eval $ac_try) 2>&5
    3526   ac_status=$?
    3527   echo "$as_me:3527: \$? = $ac_status" >&5
     4787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4788  (eval $ac_try) 2>&5
     4789  ac_status=$?
     4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35284791  (exit $ac_status); }; }; then
    35294792  :
     
    35314794  echo "$as_me: program exited with status $ac_status" >&5
    35324795echo "$as_me: failed program was:" >&5
    3533 cat conftest.$ac_ext >&5
     4796sed 's/^/| /' conftest.$ac_ext >&5
     4797
     4798( exit $ac_status )
    35344799ac_cv_header_stdc=no
    35354800fi
    3536 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3537 fi
    3538 fi
    3539 fi
    3540 echo "$as_me:3540: result: $ac_cv_header_stdc" >&5
     4801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4802fi
     4803fi
     4804fi
     4805echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    35414806echo "${ECHO_T}$ac_cv_header_stdc" >&6
    35424807if test $ac_cv_header_stdc = yes; then
    35434808
    3544 cat >>confdefs.h <<\EOF
     4809cat >>confdefs.h <<\_ACEOF
    35454810#define STDC_HEADERS 1
    3546 EOF
    3547 
    3548 fi
     4811_ACEOF
     4812
     4813fi
     4814
     4815
     4816
     4817
     4818
     4819
     4820
    35494821
    35504822for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
    35514823do
    3552 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    3553 echo "$as_me:3553: checking for $ac_header" >&5
     4824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4825if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4826  echo "$as_me:$LINENO: checking for $ac_header" >&5
    35544827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3555 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     4828if eval "test \"\${$as_ac_Header+set}\" = set"; then
    35564829  echo $ECHO_N "(cached) $ECHO_C" >&6
    3557 else
    3558   cat >conftest.$ac_ext <<_ACEOF
    3559 #line 3559 "configure"
    3560 #include "confdefs.h"
     4830fi
     4831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4833else
     4834  # Is the header compilable?
     4835echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4837cat >conftest.$ac_ext <<_ACEOF
     4838/* confdefs.h.  */
     4839_ACEOF
     4840cat confdefs.h >>conftest.$ac_ext
     4841cat >>conftest.$ac_ext <<_ACEOF
     4842/* end confdefs.h.  */
     4843$ac_includes_default
    35614844#include <$ac_header>
    35624845_ACEOF
    3563 if { (eval echo "$as_me:3563: \"$ac_cpp conftest.$ac_ext\"") >&5
    3564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3565   ac_status=$?
    3566   egrep -v '^ *\+' conftest.er1 >conftest.err
     4846rm -f conftest.$ac_objext
     4847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4848  (eval $ac_compile) 2>conftest.er1
     4849  ac_status=$?
     4850  grep -v '^ *+' conftest.er1 >conftest.err
    35674851  rm -f conftest.er1
    35684852  cat conftest.err >&5
    3569   echo "$as_me:3569: \$? = $ac_status" >&5
     4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4854  (exit $ac_status); } &&
     4855     { ac_try='test -z "$ac_c_werror_flag"
     4856             || test ! -s conftest.err'
     4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4858  (eval $ac_try) 2>&5
     4859  ac_status=$?
     4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4861  (exit $ac_status); }; } &&
     4862     { ac_try='test -s conftest.$ac_objext'
     4863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4864  (eval $ac_try) 2>&5
     4865  ac_status=$?
     4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4867  (exit $ac_status); }; }; then
     4868  ac_header_compiler=yes
     4869else
     4870  echo "$as_me: failed program was:" >&5
     4871sed 's/^/| /' conftest.$ac_ext >&5
     4872
     4873ac_header_compiler=no
     4874fi
     4875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4877echo "${ECHO_T}$ac_header_compiler" >&6
     4878
     4879# Is the header present?
     4880echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4882cat >conftest.$ac_ext <<_ACEOF
     4883/* confdefs.h.  */
     4884_ACEOF
     4885cat confdefs.h >>conftest.$ac_ext
     4886cat >>conftest.$ac_ext <<_ACEOF
     4887/* end confdefs.h.  */
     4888#include <$ac_header>
     4889_ACEOF
     4890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4891  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4892  ac_status=$?
     4893  grep -v '^ *+' conftest.er1 >conftest.err
     4894  rm -f conftest.er1
     4895  cat conftest.err >&5
     4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35704897  (exit $ac_status); } >/dev/null; then
    35714898  if test -s conftest.err; then
    35724899    ac_cpp_err=$ac_c_preproc_warn_flag
     4900    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    35734901  else
    35744902    ac_cpp_err=
     
    35784906fi
    35794907if test -z "$ac_cpp_err"; then
    3580   eval "$ac_ac_Header=yes"
     4908  ac_header_preproc=yes
    35814909else
    35824910  echo "$as_me: failed program was:" >&5
    3583   cat conftest.$ac_ext >&5
    3584   eval "$ac_ac_Header=no"
     4911sed 's/^/| /' conftest.$ac_ext >&5
     4912
     4913  ac_header_preproc=no
    35854914fi
    35864915rm -f conftest.err conftest.$ac_ext
    3587 fi
    3588 echo "$as_me:3588: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3589 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3590 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3591   cat >>confdefs.h <<EOF
    3592 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    3593 EOF
    3594 
    3595 fi
     4916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4917echo "${ECHO_T}$ac_header_preproc" >&6
     4918
     4919# So?  What about this header?
     4920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4921  yes:no: )
     4922    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4926    ac_header_preproc=yes
     4927    ;;
     4928  no:yes:* )
     4929    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4931    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4932echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4933    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4935    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4936echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4937    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4939    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4941    (
     4942      cat <<\_ASBOX
     4943## ------------------------------------------ ##
     4944## Report this to the AC_PACKAGE_NAME lists.  ##
     4945## ------------------------------------------ ##
     4946_ASBOX
     4947    ) |
     4948      sed "s/^/$as_me: WARNING:     /" >&2
     4949    ;;
     4950esac
     4951echo "$as_me:$LINENO: checking for $ac_header" >&5
     4952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4953if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4954  echo $ECHO_N "(cached) $ECHO_C" >&6
     4955else
     4956  eval "$as_ac_Header=\$ac_header_preproc"
     4957fi
     4958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4960
     4961fi
     4962if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4963  cat >>confdefs.h <<_ACEOF
     4964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4965_ACEOF
     4966
     4967fi
     4968
    35964969done
    35974970
    35984971cat >conftest.$ac_ext <<_ACEOF
    3599 #line 3599 "configure"
    3600 #include "confdefs.h"
     4972/* confdefs.h.  */
     4973_ACEOF
     4974cat confdefs.h >>conftest.$ac_ext
     4975cat >>conftest.$ac_ext <<_ACEOF
     4976/* end confdefs.h.  */
    36014977#include <stdio.h>
    36024978
    36034979_ACEOF
    36044980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3605   egrep "fread" >/dev/null 2>&1; then
    3606   cat >>confdefs.h <<\EOF
     4981  $EGREP "fread" >/dev/null 2>&1; then
     4982  cat >>confdefs.h <<\_ACEOF
    36074983#define HAVE_FREAD_DECL 1
    3608 EOF
     4984_ACEOF
    36094985
    36104986fi
     
    36124988
    36134989cat >conftest.$ac_ext <<_ACEOF
    3614 #line 3614 "configure"
    3615 #include "confdefs.h"
     4990/* confdefs.h.  */
     4991_ACEOF
     4992cat confdefs.h >>conftest.$ac_ext
     4993cat >>conftest.$ac_ext <<_ACEOF
     4994/* end confdefs.h.  */
    36164995#include <stdio.h>
    36174996
    36184997_ACEOF
    36194998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3620   egrep "fgetc" >/dev/null 2>&1; then
    3621   cat >>confdefs.h <<\EOF
     4999  $EGREP "fgetc" >/dev/null 2>&1; then
     5000  cat >>confdefs.h <<\_ACEOF
    36225001#define HAVE_FGETC_DECL 1
    3623 EOF
     5002_ACEOF
    36245003
    36255004fi
     
    36275006
    36285007cat >conftest.$ac_ext <<_ACEOF
    3629 #line 3629 "configure"
    3630 #include "confdefs.h"
     5008/* confdefs.h.  */
     5009_ACEOF
     5010cat confdefs.h >>conftest.$ac_ext
     5011cat >>conftest.$ac_ext <<_ACEOF
     5012/* end confdefs.h.  */
    36315013#include <sys/procfs.h>
    36325014
    36335015_ACEOF
    36345016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3635   egrep "pr_brksize" >/dev/null 2>&1; then
    3636   cat >>confdefs.h <<\EOF
     5017  $EGREP "pr_brksize" >/dev/null 2>&1; then
     5018  cat >>confdefs.h <<\_ACEOF
    36375019#define HAVE_PR_BRKSIZE 1
    3638 EOF
     5020_ACEOF
    36395021
    36405022fi
    36415023rm -f conftest*
     5024
    36425025
    36435026# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    36445027# for constant arguments.  Useless!
    3645 echo "$as_me:3645: checking for working alloca.h" >&5
     5028echo "$as_me:$LINENO: checking for working alloca.h" >&5
    36465029echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    36475030if test "${ac_cv_working_alloca_h+set}" = set; then
     
    36495032else
    36505033  cat >conftest.$ac_ext <<_ACEOF
    3651 #line 3651 "configure"
    3652 #include "confdefs.h"
     5034/* confdefs.h.  */
     5035_ACEOF
     5036cat confdefs.h >>conftest.$ac_ext
     5037cat >>conftest.$ac_ext <<_ACEOF
     5038/* end confdefs.h.  */
    36535039#include <alloca.h>
    36545040int
     
    36615047_ACEOF
    36625048rm -f conftest.$ac_objext conftest$ac_exeext
    3663 if { (eval echo "$as_me:3663: \"$ac_link\"") >&5
    3664   (eval $ac_link) 2>&5
    3665   ac_status=$?
    3666   echo "$as_me:3666: \$? = $ac_status" >&5
     5049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5050  (eval $ac_link) 2>conftest.er1
     5051  ac_status=$?
     5052  grep -v '^ *+' conftest.er1 >conftest.err
     5053  rm -f conftest.er1
     5054  cat conftest.err >&5
     5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    36675056  (exit $ac_status); } &&
    3668          { ac_try='test -s conftest$ac_exeext'
    3669   { (eval echo "$as_me:3669: \"$ac_try\"") >&5
    3670   (eval $ac_try) 2>&5
    3671   ac_status=$?
    3672   echo "$as_me:3672: \$? = $ac_status" >&5
     5057     { ac_try='test -z "$ac_c_werror_flag"
     5058             || test ! -s conftest.err'
     5059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5060  (eval $ac_try) 2>&5
     5061  ac_status=$?
     5062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5063  (exit $ac_status); }; } &&
     5064     { ac_try='test -s conftest$ac_exeext'
     5065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5066  (eval $ac_try) 2>&5
     5067  ac_status=$?
     5068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    36735069  (exit $ac_status); }; }; then
    36745070  ac_cv_working_alloca_h=yes
    36755071else
    36765072  echo "$as_me: failed program was:" >&5
    3677 cat conftest.$ac_ext >&5
     5073sed 's/^/| /' conftest.$ac_ext >&5
     5074
    36785075ac_cv_working_alloca_h=no
    36795076fi
    3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3681 fi
    3682 echo "$as_me:3682: result: $ac_cv_working_alloca_h" >&5
     5077rm -f conftest.err conftest.$ac_objext \
     5078      conftest$ac_exeext conftest.$ac_ext
     5079fi
     5080echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    36835081echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
    36845082if test $ac_cv_working_alloca_h = yes; then
    36855083
    3686 cat >>confdefs.h <<\EOF
     5084cat >>confdefs.h <<\_ACEOF
    36875085#define HAVE_ALLOCA_H 1
    3688 EOF
    3689 
    3690 fi
    3691 
    3692 echo "$as_me:3692: checking for alloca" >&5
     5086_ACEOF
     5087
     5088fi
     5089
     5090echo "$as_me:$LINENO: checking for alloca" >&5
    36935091echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    36945092if test "${ac_cv_func_alloca_works+set}" = set; then
     
    36965094else
    36975095  cat >conftest.$ac_ext <<_ACEOF
    3698 #line 3698 "configure"
    3699 #include "confdefs.h"
     5096/* confdefs.h.  */
     5097_ACEOF
     5098cat confdefs.h >>conftest.$ac_ext
     5099cat >>conftest.$ac_ext <<_ACEOF
     5100/* end confdefs.h.  */
    37005101#ifdef __GNUC__
    37015102# define alloca __builtin_alloca
     
    37285129_ACEOF
    37295130rm -f conftest.$ac_objext conftest$ac_exeext
    3730 if { (eval echo "$as_me:3730: \"$ac_link\"") >&5
    3731   (eval $ac_link) 2>&5
    3732   ac_status=$?
    3733   echo "$as_me:3733: \$? = $ac_status" >&5
     5131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5132  (eval $ac_link) 2>conftest.er1
     5133  ac_status=$?
     5134  grep -v '^ *+' conftest.er1 >conftest.err
     5135  rm -f conftest.er1
     5136  cat conftest.err >&5
     5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    37345138  (exit $ac_status); } &&
    3735          { ac_try='test -s conftest$ac_exeext'
    3736   { (eval echo "$as_me:3736: \"$ac_try\"") >&5
    3737   (eval $ac_try) 2>&5
    3738   ac_status=$?
    3739   echo "$as_me:3739: \$? = $ac_status" >&5
     5139     { ac_try='test -z "$ac_c_werror_flag"
     5140             || test ! -s conftest.err'
     5141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5142  (eval $ac_try) 2>&5
     5143  ac_status=$?
     5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5145  (exit $ac_status); }; } &&
     5146     { ac_try='test -s conftest$ac_exeext'
     5147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5148  (eval $ac_try) 2>&5
     5149  ac_status=$?
     5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    37405151  (exit $ac_status); }; }; then
    37415152  ac_cv_func_alloca_works=yes
    37425153else
    37435154  echo "$as_me: failed program was:" >&5
    3744 cat conftest.$ac_ext >&5
     5155sed 's/^/| /' conftest.$ac_ext >&5
     5156
    37455157ac_cv_func_alloca_works=no
    37465158fi
    3747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3748 fi
    3749 echo "$as_me:3749: result: $ac_cv_func_alloca_works" >&5
     5159rm -f conftest.err conftest.$ac_objext \
     5160      conftest$ac_exeext conftest.$ac_ext
     5161fi
     5162echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    37505163echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
    37515164
    37525165if test $ac_cv_func_alloca_works = yes; then
    37535166
    3754 cat >>confdefs.h <<\EOF
     5167cat >>confdefs.h <<\_ACEOF
    37555168#define HAVE_ALLOCA 1
    3756 EOF
     5169_ACEOF
    37575170
    37585171else
     
    37645177ALLOCA=alloca.$ac_objext
    37655178
    3766 cat >>confdefs.h <<\EOF
     5179cat >>confdefs.h <<\_ACEOF
    37675180#define C_ALLOCA 1
    3768 EOF
    3769 
    3770 echo "$as_me:3770: checking whether \`alloca.c' needs Cray hooks" >&5
     5181_ACEOF
     5182
     5183
     5184echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    37715185echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    37725186if test "${ac_cv_os_cray+set}" = set; then
     
    37745188else
    37755189  cat >conftest.$ac_ext <<_ACEOF
    3776 #line 3776 "configure"
    3777 #include "confdefs.h"
     5190/* confdefs.h.  */
     5191_ACEOF
     5192cat confdefs.h >>conftest.$ac_ext
     5193cat >>conftest.$ac_ext <<_ACEOF
     5194/* end confdefs.h.  */
    37785195#if defined(CRAY) && ! defined(CRAY2)
    37795196webecray
     
    37845201_ACEOF
    37855202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3786   egrep "webecray" >/dev/null 2>&1; then
     5203  $EGREP "webecray" >/dev/null 2>&1; then
    37875204  ac_cv_os_cray=yes
    37885205else
     
    37925209
    37935210fi
    3794 echo "$as_me:3794: result: $ac_cv_os_cray" >&5
     5211echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    37955212echo "${ECHO_T}$ac_cv_os_cray" >&6
    37965213if test $ac_cv_os_cray = yes; then
    37975214  for ac_func in _getb67 GETB67 getb67; do
    3798     ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    3799 echo "$as_me:3799: checking for $ac_func" >&5
     5215    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5216echo "$as_me:$LINENO: checking for $ac_func" >&5
    38005217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    3801 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5218if eval "test \"\${$as_ac_var+set}\" = set"; then
    38025219  echo $ECHO_N "(cached) $ECHO_C" >&6
    38035220else
    38045221  cat >conftest.$ac_ext <<_ACEOF
    3805 #line 3805 "configure"
    3806 #include "confdefs.h"
     5222/* confdefs.h.  */
     5223_ACEOF
     5224cat confdefs.h >>conftest.$ac_ext
     5225cat >>conftest.$ac_ext <<_ACEOF
     5226/* end confdefs.h.  */
     5227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5228   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5229#define $ac_func innocuous_$ac_func
     5230
    38075231/* System header to define __stub macros and hopefully few prototypes,
    3808     which can conflict with char $ac_func (); below.  */
    3809 #include <assert.h>
     5232    which can conflict with char $ac_func (); below.
     5233    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5234    <limits.h> exists even on freestanding compilers.  */
     5235
     5236#ifdef __STDC__
     5237# include <limits.h>
     5238#else
     5239# include <assert.h>
     5240#endif
     5241
     5242#undef $ac_func
     5243
    38105244/* Override any gcc2 internal prototype to avoid an error.  */
    38115245#ifdef __cplusplus
    38125246extern "C"
     5247{
    38135248#endif
    38145249/* We use char because int might match the return type of a gcc2
    38155250   builtin and then its argument prototype would still apply.  */
    38165251char $ac_func ();
    3817 char (*f) ();
    3818 
    3819 int
    3820 main ()
    3821 {
    38225252/* The GNU C library defines this for functions which it implements
    38235253    to always fail with ENOSYS.  Some functions are actually named
     
    38265256choke me
    38275257#else
    3828 f = $ac_func;
     5258char (*f) () = $ac_func;
    38295259#endif
    3830 
     5260#ifdef __cplusplus
     5261}
     5262#endif
     5263
     5264int
     5265main ()
     5266{
     5267return f != $ac_func;
    38315268  ;
    38325269  return 0;
     
    38345271_ACEOF
    38355272rm -f conftest.$ac_objext conftest$ac_exeext
    3836 if { (eval echo "$as_me:3836: \"$ac_link\"") >&5
    3837   (eval $ac_link) 2>&5
    3838   ac_status=$?
    3839   echo "$as_me:3839: \$? = $ac_status" >&5
     5273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5274  (eval $ac_link) 2>conftest.er1
     5275  ac_status=$?
     5276  grep -v '^ *+' conftest.er1 >conftest.err
     5277  rm -f conftest.er1
     5278  cat conftest.err >&5
     5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38405280  (exit $ac_status); } &&
    3841          { ac_try='test -s conftest$ac_exeext'
    3842   { (eval echo "$as_me:3842: \"$ac_try\"") >&5
    3843   (eval $ac_try) 2>&5
    3844   ac_status=$?
    3845   echo "$as_me:3845: \$? = $ac_status" >&5
     5281     { ac_try='test -z "$ac_c_werror_flag"
     5282             || test ! -s conftest.err'
     5283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5284  (eval $ac_try) 2>&5
     5285  ac_status=$?
     5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5287  (exit $ac_status); }; } &&
     5288     { ac_try='test -s conftest$ac_exeext'
     5289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5290  (eval $ac_try) 2>&5
     5291  ac_status=$?
     5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38465293  (exit $ac_status); }; }; then
    3847   eval "$ac_ac_var=yes"
     5294  eval "$as_ac_var=yes"
    38485295else
    38495296  echo "$as_me: failed program was:" >&5
    3850 cat conftest.$ac_ext >&5
    3851 eval "$ac_ac_var=no"
    3852 fi
    3853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3854 fi
    3855 echo "$as_me:3855: result: `eval echo '${'$ac_ac_var'}'`" >&5
    3856 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    3857 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    3858 
    3859 cat >>confdefs.h <<EOF
     5297sed 's/^/| /' conftest.$ac_ext >&5
     5298
     5299eval "$as_ac_var=no"
     5300fi
     5301rm -f conftest.err conftest.$ac_objext \
     5302      conftest$ac_exeext conftest.$ac_ext
     5303fi
     5304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5306if test `eval echo '${'$as_ac_var'}'` = yes; then
     5307
     5308cat >>confdefs.h <<_ACEOF
    38605309#define CRAY_STACKSEG_END $ac_func
    3861 EOF
     5310_ACEOF
    38625311
    38635312    break
     
    38675316fi
    38685317
    3869 echo "$as_me:3869: checking stack direction for C alloca" >&5
     5318echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    38705319echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    38715320if test "${ac_cv_c_stack_direction+set}" = set; then
     
    38765325else
    38775326  cat >conftest.$ac_ext <<_ACEOF
    3878 #line 3878 "configure"
    3879 #include "confdefs.h"
     5327/* confdefs.h.  */
     5328_ACEOF
     5329cat confdefs.h >>conftest.$ac_ext
     5330cat >>conftest.$ac_ext <<_ACEOF
     5331/* end confdefs.h.  */
    38805332int
    38815333find_stack_direction ()
     
    38995351_ACEOF
    39005352rm -f conftest$ac_exeext
    3901 if { (eval echo "$as_me:3901: \"$ac_link\"") >&5
     5353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    39025354  (eval $ac_link) 2>&5
    39035355  ac_status=$?
    3904   echo "$as_me:3904: \$? = $ac_status" >&5
     5356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39055357  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3906   { (eval echo "$as_me:3906: \"$ac_try\"") >&5
    3907   (eval $ac_try) 2>&5
    3908   ac_status=$?
    3909   echo "$as_me:3909: \$? = $ac_status" >&5
     5358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5359  (eval $ac_try) 2>&5
     5360  ac_status=$?
     5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39105362  (exit $ac_status); }; }; then
    39115363  ac_cv_c_stack_direction=1
     
    39135365  echo "$as_me: program exited with status $ac_status" >&5
    39145366echo "$as_me: failed program was:" >&5
    3915 cat conftest.$ac_ext >&5
     5367sed 's/^/| /' conftest.$ac_ext >&5
     5368
     5369( exit $ac_status )
    39165370ac_cv_c_stack_direction=-1
    39175371fi
    3918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3919 fi
    3920 fi
    3921 echo "$as_me:3921: result: $ac_cv_c_stack_direction" >&5
     5372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5373fi
     5374fi
     5375echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    39225376echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    39235377
    3924 cat >>confdefs.h <<EOF
     5378cat >>confdefs.h <<_ACEOF
    39255379#define STACK_DIRECTION $ac_cv_c_stack_direction
    3926 EOF
     5380_ACEOF
     5381
    39275382
    39285383fi
    39295384
    39305385if test $ac_cv_c_compiler_gnu = yes; then
    3931     echo "$as_me:3931: checking whether $CC needs -traditional" >&5
     5386    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    39325387echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    39335388if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     
    39365391    ac_pattern="Autoconf.*'x'"
    39375392  cat >conftest.$ac_ext <<_ACEOF
    3938 #line 3938 "configure"
    3939 #include "confdefs.h"
     5393/* confdefs.h.  */
     5394_ACEOF
     5395cat confdefs.h >>conftest.$ac_ext
     5396cat >>conftest.$ac_ext <<_ACEOF
     5397/* end confdefs.h.  */
    39405398#include <sgtty.h>
    39415399Autoconf TIOCGETP
    39425400_ACEOF
    39435401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3944   egrep "$ac_pattern" >/dev/null 2>&1; then
     5402  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    39455403  ac_cv_prog_gcc_traditional=yes
    39465404else
     
    39485406fi
    39495407rm -f conftest*
     5408
    39505409
    39515410  if test $ac_cv_prog_gcc_traditional = no; then
    39525411    cat >conftest.$ac_ext <<_ACEOF
    3953 #line 3953 "configure"
    3954 #include "confdefs.h"
     5412/* confdefs.h.  */
     5413_ACEOF
     5414cat confdefs.h >>conftest.$ac_ext
     5415cat >>conftest.$ac_ext <<_ACEOF
     5416/* end confdefs.h.  */
    39555417#include <termio.h>
    39565418Autoconf TCGETA
    39575419_ACEOF
    39585420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3959   egrep "$ac_pattern" >/dev/null 2>&1; then
     5421  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    39605422  ac_cv_prog_gcc_traditional=yes
    39615423fi
     
    39645426  fi
    39655427fi
    3966 echo "$as_me:3966: result: $ac_cv_prog_gcc_traditional" >&5
     5428echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    39675429echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    39685430  if test $ac_cv_prog_gcc_traditional = yes; then
     
    39715433fi
    39725434
    3973 echo "$as_me:3973: checking return type of signal handlers" >&5
     5435echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    39745436echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    39755437if test "${ac_cv_type_signal+set}" = set; then
     
    39775439else
    39785440  cat >conftest.$ac_ext <<_ACEOF
    3979 #line 3979 "configure"
    3980 #include "confdefs.h"
     5441/* confdefs.h.  */
     5442_ACEOF
     5443cat confdefs.h >>conftest.$ac_ext
     5444cat >>conftest.$ac_ext <<_ACEOF
     5445/* end confdefs.h.  */
    39815446#include <sys/types.h>
    39825447#include <signal.h>
     
    39995464_ACEOF
    40005465rm -f conftest.$ac_objext
    4001 if { (eval echo "$as_me:4001: \"$ac_compile\"") >&5
    4002   (eval $ac_compile) 2>&5
    4003   ac_status=$?
    4004   echo "$as_me:4004: \$? = $ac_status" >&5
     5466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5467  (eval $ac_compile) 2>conftest.er1
     5468  ac_status=$?
     5469  grep -v '^ *+' conftest.er1 >conftest.err
     5470  rm -f conftest.er1
     5471  cat conftest.err >&5
     5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40055473  (exit $ac_status); } &&
    4006          { ac_try='test -s conftest.$ac_objext'
    4007   { (eval echo "$as_me:4007: \"$ac_try\"") >&5
    4008   (eval $ac_try) 2>&5
    4009   ac_status=$?
    4010   echo "$as_me:4010: \$? = $ac_status" >&5
     5474     { ac_try='test -z "$ac_c_werror_flag"
     5475             || test ! -s conftest.err'
     5476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5477  (eval $ac_try) 2>&5
     5478  ac_status=$?
     5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5480  (exit $ac_status); }; } &&
     5481     { ac_try='test -s conftest.$ac_objext'
     5482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5483  (eval $ac_try) 2>&5
     5484  ac_status=$?
     5485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40115486  (exit $ac_status); }; }; then
    40125487  ac_cv_type_signal=void
    40135488else
    40145489  echo "$as_me: failed program was:" >&5
    4015 cat conftest.$ac_ext >&5
     5490sed 's/^/| /' conftest.$ac_ext >&5
     5491
    40165492ac_cv_type_signal=int
    40175493fi
    4018 rm -f conftest.$ac_objext conftest.$ac_ext
    4019 fi
    4020 echo "$as_me:4020: result: $ac_cv_type_signal" >&5
     5494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5495fi
     5496echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    40215497echo "${ECHO_T}$ac_cv_type_signal" >&6
    40225498
    4023 cat >>confdefs.h <<EOF
     5499cat >>confdefs.h <<_ACEOF
    40245500#define RETSIGTYPE $ac_cv_type_signal
    4025 EOF
     5501_ACEOF
     5502
     5503
    40265504
    40275505for ac_func in vprintf
    40285506do
    4029 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4030 echo "$as_me:4030: checking for $ac_func" >&5
     5507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5508echo "$as_me:$LINENO: checking for $ac_func" >&5
    40315509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4032 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5510if eval "test \"\${$as_ac_var+set}\" = set"; then
    40335511  echo $ECHO_N "(cached) $ECHO_C" >&6
    40345512else
    40355513  cat >conftest.$ac_ext <<_ACEOF
    4036 #line 4036 "configure"
    4037 #include "confdefs.h"
     5514/* confdefs.h.  */
     5515_ACEOF
     5516cat confdefs.h >>conftest.$ac_ext
     5517cat >>conftest.$ac_ext <<_ACEOF
     5518/* end confdefs.h.  */
     5519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5520   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5521#define $ac_func innocuous_$ac_func
     5522
    40385523/* System header to define __stub macros and hopefully few prototypes,
    4039     which can conflict with char $ac_func (); below.  */
    4040 #include <assert.h>
     5524    which can conflict with char $ac_func (); below.
     5525    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5526    <limits.h> exists even on freestanding compilers.  */
     5527
     5528#ifdef __STDC__
     5529# include <limits.h>
     5530#else
     5531# include <assert.h>
     5532#endif
     5533
     5534#undef $ac_func
     5535
    40415536/* Override any gcc2 internal prototype to avoid an error.  */
    40425537#ifdef __cplusplus
    40435538extern "C"
     5539{
    40445540#endif
    40455541/* We use char because int might match the return type of a gcc2
    40465542   builtin and then its argument prototype would still apply.  */
    40475543char $ac_func ();
    4048 char (*f) ();
    4049 
    4050 int
    4051 main ()
    4052 {
    40535544/* The GNU C library defines this for functions which it implements
    40545545    to always fail with ENOSYS.  Some functions are actually named
     
    40575548choke me
    40585549#else
    4059 f = $ac_func;
     5550char (*f) () = $ac_func;
    40605551#endif
    4061 
     5552#ifdef __cplusplus
     5553}
     5554#endif
     5555
     5556int
     5557main ()
     5558{
     5559return f != $ac_func;
    40625560  ;
    40635561  return 0;
     
    40655563_ACEOF
    40665564rm -f conftest.$ac_objext conftest$ac_exeext
    4067 if { (eval echo "$as_me:4067: \"$ac_link\"") >&5
    4068   (eval $ac_link) 2>&5
    4069   ac_status=$?
    4070   echo "$as_me:4070: \$? = $ac_status" >&5
     5565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5566  (eval $ac_link) 2>conftest.er1
     5567  ac_status=$?
     5568  grep -v '^ *+' conftest.er1 >conftest.err
     5569  rm -f conftest.er1
     5570  cat conftest.err >&5
     5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40715572  (exit $ac_status); } &&
    4072          { ac_try='test -s conftest$ac_exeext'
    4073   { (eval echo "$as_me:4073: \"$ac_try\"") >&5
    4074   (eval $ac_try) 2>&5
    4075   ac_status=$?
    4076   echo "$as_me:4076: \$? = $ac_status" >&5
     5573     { ac_try='test -z "$ac_c_werror_flag"
     5574             || test ! -s conftest.err'
     5575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5576  (eval $ac_try) 2>&5
     5577  ac_status=$?
     5578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5579  (exit $ac_status); }; } &&
     5580     { ac_try='test -s conftest$ac_exeext'
     5581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5582  (eval $ac_try) 2>&5
     5583  ac_status=$?
     5584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40775585  (exit $ac_status); }; }; then
    4078   eval "$ac_ac_var=yes"
     5586  eval "$as_ac_var=yes"
    40795587else
    40805588  echo "$as_me: failed program was:" >&5
    4081 cat conftest.$ac_ext >&5
    4082 eval "$ac_ac_var=no"
    4083 fi
    4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4085 fi
    4086 echo "$as_me:4086: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4087 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4088 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4089   cat >>confdefs.h <<EOF
    4090 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4091 EOF
    4092 
    4093 echo "$as_me:4093: checking for _doprnt" >&5
     5589sed 's/^/| /' conftest.$ac_ext >&5
     5590
     5591eval "$as_ac_var=no"
     5592fi
     5593rm -f conftest.err conftest.$ac_objext \
     5594      conftest$ac_exeext conftest.$ac_ext
     5595fi
     5596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5598if test `eval echo '${'$as_ac_var'}'` = yes; then
     5599  cat >>confdefs.h <<_ACEOF
     5600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5601_ACEOF
     5602
     5603echo "$as_me:$LINENO: checking for _doprnt" >&5
    40945604echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    40955605if test "${ac_cv_func__doprnt+set}" = set; then
     
    40975607else
    40985608  cat >conftest.$ac_ext <<_ACEOF
    4099 #line 4099 "configure"
    4100 #include "confdefs.h"
     5609/* confdefs.h.  */
     5610_ACEOF
     5611cat confdefs.h >>conftest.$ac_ext
     5612cat >>conftest.$ac_ext <<_ACEOF
     5613/* end confdefs.h.  */
     5614/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
     5615   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5616#define _doprnt innocuous__doprnt
     5617
    41015618/* System header to define __stub macros and hopefully few prototypes,
    4102     which can conflict with char _doprnt (); below.  */
    4103 #include <assert.h>
     5619    which can conflict with char _doprnt (); below.
     5620    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5621    <limits.h> exists even on freestanding compilers.  */
     5622
     5623#ifdef __STDC__
     5624# include <limits.h>
     5625#else
     5626# include <assert.h>
     5627#endif
     5628
     5629#undef _doprnt
     5630
    41045631/* Override any gcc2 internal prototype to avoid an error.  */
    41055632#ifdef __cplusplus
    41065633extern "C"
     5634{
    41075635#endif
    41085636/* We use char because int might match the return type of a gcc2
    41095637   builtin and then its argument prototype would still apply.  */
    41105638char _doprnt ();
    4111 char (*f) ();
    4112 
    4113 int
    4114 main ()
    4115 {
    41165639/* The GNU C library defines this for functions which it implements
    41175640    to always fail with ENOSYS.  Some functions are actually named
     
    41205643choke me
    41215644#else
    4122 f = _doprnt;
     5645char (*f) () = _doprnt;
    41235646#endif
    4124 
     5647#ifdef __cplusplus
     5648}
     5649#endif
     5650
     5651int
     5652main ()
     5653{
     5654return f != _doprnt;
    41255655  ;
    41265656  return 0;
     
    41285658_ACEOF
    41295659rm -f conftest.$ac_objext conftest$ac_exeext
    4130 if { (eval echo "$as_me:4130: \"$ac_link\"") >&5
    4131   (eval $ac_link) 2>&5
    4132   ac_status=$?
    4133   echo "$as_me:4133: \$? = $ac_status" >&5
     5660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5661  (eval $ac_link) 2>conftest.er1
     5662  ac_status=$?
     5663  grep -v '^ *+' conftest.er1 >conftest.err
     5664  rm -f conftest.er1
     5665  cat conftest.err >&5
     5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41345667  (exit $ac_status); } &&
    4135          { ac_try='test -s conftest$ac_exeext'
    4136   { (eval echo "$as_me:4136: \"$ac_try\"") >&5
    4137   (eval $ac_try) 2>&5
    4138   ac_status=$?
    4139   echo "$as_me:4139: \$? = $ac_status" >&5
     5668     { ac_try='test -z "$ac_c_werror_flag"
     5669             || test ! -s conftest.err'
     5670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5671  (eval $ac_try) 2>&5
     5672  ac_status=$?
     5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5674  (exit $ac_status); }; } &&
     5675     { ac_try='test -s conftest$ac_exeext'
     5676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5677  (eval $ac_try) 2>&5
     5678  ac_status=$?
     5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41405680  (exit $ac_status); }; }; then
    41415681  ac_cv_func__doprnt=yes
    41425682else
    41435683  echo "$as_me: failed program was:" >&5
    4144 cat conftest.$ac_ext >&5
     5684sed 's/^/| /' conftest.$ac_ext >&5
     5685
    41455686ac_cv_func__doprnt=no
    41465687fi
    4147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4148 fi
    4149 echo "$as_me:4149: result: $ac_cv_func__doprnt" >&5
     5688rm -f conftest.err conftest.$ac_objext \
     5689      conftest$ac_exeext conftest.$ac_ext
     5690fi
     5691echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    41505692echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    41515693if test $ac_cv_func__doprnt = yes; then
    41525694
    4153 cat >>confdefs.h <<\EOF
     5695cat >>confdefs.h <<\_ACEOF
    41545696#define HAVE_DOPRNT 1
    4155 EOF
     5697_ACEOF
    41565698
    41575699fi
     
    41595701fi
    41605702done
     5703
     5704
     5705
     5706
     5707
     5708
     5709
     5710
     5711
     5712
    41615713
    41625714for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
    41635715do
    4164 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4165 echo "$as_me:4165: checking for $ac_func" >&5
     5716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5717echo "$as_me:$LINENO: checking for $ac_func" >&5
    41665718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4167 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5719if eval "test \"\${$as_ac_var+set}\" = set"; then
    41685720  echo $ECHO_N "(cached) $ECHO_C" >&6
    41695721else
    41705722  cat >conftest.$ac_ext <<_ACEOF
    4171 #line 4171 "configure"
    4172 #include "confdefs.h"
     5723/* confdefs.h.  */
     5724_ACEOF
     5725cat confdefs.h >>conftest.$ac_ext
     5726cat >>conftest.$ac_ext <<_ACEOF
     5727/* end confdefs.h.  */
     5728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5729   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5730#define $ac_func innocuous_$ac_func
     5731
    41735732/* System header to define __stub macros and hopefully few prototypes,
    4174     which can conflict with char $ac_func (); below.  */
    4175 #include <assert.h>
     5733    which can conflict with char $ac_func (); below.
     5734    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5735    <limits.h> exists even on freestanding compilers.  */
     5736
     5737#ifdef __STDC__
     5738# include <limits.h>
     5739#else
     5740# include <assert.h>
     5741#endif
     5742
     5743#undef $ac_func
     5744
    41765745/* Override any gcc2 internal prototype to avoid an error.  */
    41775746#ifdef __cplusplus
    41785747extern "C"
     5748{
    41795749#endif
    41805750/* We use char because int might match the return type of a gcc2
    41815751   builtin and then its argument prototype would still apply.  */
    41825752char $ac_func ();
    4183 char (*f) ();
    4184 
    4185 int
    4186 main ()
    4187 {
    41885753/* The GNU C library defines this for functions which it implements
    41895754    to always fail with ENOSYS.  Some functions are actually named
     
    41925757choke me
    41935758#else
    4194 f = $ac_func;
     5759char (*f) () = $ac_func;
    41955760#endif
    4196 
     5761#ifdef __cplusplus
     5762}
     5763#endif
     5764
     5765int
     5766main ()
     5767{
     5768return f != $ac_func;
    41975769  ;
    41985770  return 0;
     
    42005772_ACEOF
    42015773rm -f conftest.$ac_objext conftest$ac_exeext
    4202 if { (eval echo "$as_me:4202: \"$ac_link\"") >&5
    4203   (eval $ac_link) 2>&5
    4204   ac_status=$?
    4205   echo "$as_me:4205: \$? = $ac_status" >&5
     5774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5775  (eval $ac_link) 2>conftest.er1
     5776  ac_status=$?
     5777  grep -v '^ *+' conftest.er1 >conftest.err
     5778  rm -f conftest.er1
     5779  cat conftest.err >&5
     5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42065781  (exit $ac_status); } &&
    4207          { ac_try='test -s conftest$ac_exeext'
    4208   { (eval echo "$as_me:4208: \"$ac_try\"") >&5
    4209   (eval $ac_try) 2>&5
    4210   ac_status=$?
    4211   echo "$as_me:4211: \$? = $ac_status" >&5
     5782     { ac_try='test -z "$ac_c_werror_flag"
     5783             || test ! -s conftest.err'
     5784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5785  (eval $ac_try) 2>&5
     5786  ac_status=$?
     5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5788  (exit $ac_status); }; } &&
     5789     { ac_try='test -s conftest$ac_exeext'
     5790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5791  (eval $ac_try) 2>&5
     5792  ac_status=$?
     5793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42125794  (exit $ac_status); }; }; then
    4213   eval "$ac_ac_var=yes"
     5795  eval "$as_ac_var=yes"
    42145796else
    42155797  echo "$as_me: failed program was:" >&5
    4216 cat conftest.$ac_ext >&5
    4217 eval "$ac_ac_var=no"
    4218 fi
    4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4220 fi
    4221 echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4222 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4223 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4224   cat >>confdefs.h <<EOF
    4225 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4226 EOF
     5798sed 's/^/| /' conftest.$ac_ext >&5
     5799
     5800eval "$as_ac_var=no"
     5801fi
     5802rm -f conftest.err conftest.$ac_objext \
     5803      conftest$ac_exeext conftest.$ac_ext
     5804fi
     5805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5807if test `eval echo '${'$as_ac_var'}'` = yes; then
     5808  cat >>confdefs.h <<_ACEOF
     5809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5810_ACEOF
    42275811
    42285812fi
    42295813done
     5814
     5815
     5816
    42305817
    42315818for ac_func in ftruncate strstr strcasecmp
    42325819do
    4233 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4234 echo "$as_me:4234: checking for $ac_func" >&5
     5820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5821echo "$as_me:$LINENO: checking for $ac_func" >&5
    42355822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4236 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5823if eval "test \"\${$as_ac_var+set}\" = set"; then
    42375824  echo $ECHO_N "(cached) $ECHO_C" >&6
    42385825else
    42395826  cat >conftest.$ac_ext <<_ACEOF
    4240 #line 4240 "configure"
    4241 #include "confdefs.h"
     5827/* confdefs.h.  */
     5828_ACEOF
     5829cat confdefs.h >>conftest.$ac_ext
     5830cat >>conftest.$ac_ext <<_ACEOF
     5831/* end confdefs.h.  */
     5832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5834#define $ac_func innocuous_$ac_func
     5835
    42425836/* System header to define __stub macros and hopefully few prototypes,
    4243     which can conflict with char $ac_func (); below.  */
    4244 #include <assert.h>
     5837    which can conflict with char $ac_func (); below.
     5838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5839    <limits.h> exists even on freestanding compilers.  */
     5840
     5841#ifdef __STDC__
     5842# include <limits.h>
     5843#else
     5844# include <assert.h>
     5845#endif
     5846
     5847#undef $ac_func
     5848
    42455849/* Override any gcc2 internal prototype to avoid an error.  */
    42465850#ifdef __cplusplus
    42475851extern "C"
     5852{
    42485853#endif
    42495854/* We use char because int might match the return type of a gcc2
    42505855   builtin and then its argument prototype would still apply.  */
    42515856char $ac_func ();
    4252 char (*f) ();
    4253 
    4254 int
    4255 main ()
    4256 {
    42575857/* The GNU C library defines this for functions which it implements
    42585858    to always fail with ENOSYS.  Some functions are actually named
     
    42615861choke me
    42625862#else
    4263 f = $ac_func;
     5863char (*f) () = $ac_func;
    42645864#endif
    4265 
     5865#ifdef __cplusplus
     5866}
     5867#endif
     5868
     5869int
     5870main ()
     5871{
     5872return f != $ac_func;
    42665873  ;
    42675874  return 0;
     
    42695876_ACEOF
    42705877rm -f conftest.$ac_objext conftest$ac_exeext
    4271 if { (eval echo "$as_me:4271: \"$ac_link\"") >&5
    4272   (eval $ac_link) 2>&5
    4273   ac_status=$?
    4274   echo "$as_me:4274: \$? = $ac_status" >&5
     5878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5879  (eval $ac_link) 2>conftest.er1
     5880  ac_status=$?
     5881  grep -v '^ *+' conftest.er1 >conftest.err
     5882  rm -f conftest.er1
     5883  cat conftest.err >&5
     5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42755885  (exit $ac_status); } &&
    4276          { ac_try='test -s conftest$ac_exeext'
    4277   { (eval echo "$as_me:4277: \"$ac_try\"") >&5
    4278   (eval $ac_try) 2>&5
    4279   ac_status=$?
    4280   echo "$as_me:4280: \$? = $ac_status" >&5
     5886     { ac_try='test -z "$ac_c_werror_flag"
     5887             || test ! -s conftest.err'
     5888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5889  (eval $ac_try) 2>&5
     5890  ac_status=$?
     5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5892  (exit $ac_status); }; } &&
     5893     { ac_try='test -s conftest$ac_exeext'
     5894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5895  (eval $ac_try) 2>&5
     5896  ac_status=$?
     5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42815898  (exit $ac_status); }; }; then
    4282   eval "$ac_ac_var=yes"
     5899  eval "$as_ac_var=yes"
    42835900else
    42845901  echo "$as_me: failed program was:" >&5
    4285 cat conftest.$ac_ext >&5
    4286 eval "$ac_ac_var=no"
    4287 fi
    4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4289 fi
    4290 echo "$as_me:4290: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4291 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4292 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4293   cat >>confdefs.h <<EOF
    4294 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4295 EOF
    4296 
    4297 else
    4298   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
     5902sed 's/^/| /' conftest.$ac_ext >&5
     5903
     5904eval "$as_ac_var=no"
     5905fi
     5906rm -f conftest.err conftest.$ac_objext \
     5907      conftest$ac_exeext conftest.$ac_ext
     5908fi
     5909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5911if test `eval echo '${'$as_ac_var'}'` = yes; then
     5912  cat >>confdefs.h <<_ACEOF
     5913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5914_ACEOF
     5915
     5916else
     5917  case $LIBOBJS in
     5918    "$ac_func.$ac_objext"   | \
     5919  *" $ac_func.$ac_objext"   | \
     5920    "$ac_func.$ac_objext "* | \
     5921  *" $ac_func.$ac_objext "* ) ;;
     5922  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     5923esac
     5924
    42995925fi
    43005926done
     5927
     5928
     5929
    43015930
    43025931# *** Custom checking (based on GNU tar configure.in) ***
    43035932# ---------------------------------------------------------------------------
    4304 echo "$as_me:4304: checking for HP-UX needing gmalloc" >&5
     5933echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
    43055934echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    43065935if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    4307   echo "$as_me:4307: result: yes" >&5
     5936  echo "$as_me:$LINENO: result: yes" >&5
    43085937echo "${ECHO_T}yes" >&6
    4309   LIBOBJS="$LIBOBJS gmalloc.o"
    4310   cat >>confdefs.h <<\EOF
     5938  case $LIBOBJS in
     5939    "gmalloc.$ac_objext"   | \
     5940  *" gmalloc.$ac_objext"   | \
     5941    "gmalloc.$ac_objext "* | \
     5942  *" gmalloc.$ac_objext "* ) ;;
     5943  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     5944esac
     5945
     5946  cat >>confdefs.h <<\_ACEOF
    43115947#define HAVE_VALLOC 1
    4312 EOF
    4313 
    4314 else
    4315   echo "$as_me:4315: result: no" >&5
     5948_ACEOF
     5949
     5950else
     5951  echo "$as_me:$LINENO: result: no" >&5
    43165952echo "${ECHO_T}no" >&6
    43175953
    43185954for ac_func in valloc
    43195955do
    4320 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4321 echo "$as_me:4321: checking for $ac_func" >&5
     5956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5957echo "$as_me:$LINENO: checking for $ac_func" >&5
    43225958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4323 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5959if eval "test \"\${$as_ac_var+set}\" = set"; then
    43245960  echo $ECHO_N "(cached) $ECHO_C" >&6
    43255961else
    43265962  cat >conftest.$ac_ext <<_ACEOF
    4327 #line 4327 "configure"
    4328 #include "confdefs.h"
     5963/* confdefs.h.  */
     5964_ACEOF
     5965cat confdefs.h >>conftest.$ac_ext
     5966cat >>conftest.$ac_ext <<_ACEOF
     5967/* end confdefs.h.  */
     5968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5969   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5970#define $ac_func innocuous_$ac_func
     5971
    43295972/* System header to define __stub macros and hopefully few prototypes,
    4330     which can conflict with char $ac_func (); below.  */
    4331 #include <assert.h>
     5973    which can conflict with char $ac_func (); below.
     5974    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5975    <limits.h> exists even on freestanding compilers.  */
     5976
     5977#ifdef __STDC__
     5978# include <limits.h>
     5979#else
     5980# include <assert.h>
     5981#endif
     5982
     5983#undef $ac_func
     5984
    43325985/* Override any gcc2 internal prototype to avoid an error.  */
    43335986#ifdef __cplusplus
    43345987extern "C"
     5988{
    43355989#endif
    43365990/* We use char because int might match the return type of a gcc2
    43375991   builtin and then its argument prototype would still apply.  */
    43385992char $ac_func ();
    4339 char (*f) ();
    4340 
    4341 int
    4342 main ()
    4343 {
    43445993/* The GNU C library defines this for functions which it implements
    43455994    to always fail with ENOSYS.  Some functions are actually named
     
    43485997choke me
    43495998#else
    4350 f = $ac_func;
     5999char (*f) () = $ac_func;
    43516000#endif
    4352 
     6001#ifdef __cplusplus
     6002}
     6003#endif
     6004
     6005int
     6006main ()
     6007{
     6008return f != $ac_func;
    43536009  ;
    43546010  return 0;
     
    43566012_ACEOF
    43576013rm -f conftest.$ac_objext conftest$ac_exeext
    4358 if { (eval echo "$as_me:4358: \"$ac_link\"") >&5
    4359   (eval $ac_link) 2>&5
    4360   ac_status=$?
    4361   echo "$as_me:4361: \$? = $ac_status" >&5
     6014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6015  (eval $ac_link) 2>conftest.er1
     6016  ac_status=$?
     6017  grep -v '^ *+' conftest.er1 >conftest.err
     6018  rm -f conftest.er1
     6019  cat conftest.err >&5
     6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    43626021  (exit $ac_status); } &&
    4363          { ac_try='test -s conftest$ac_exeext'
    4364   { (eval echo "$as_me:4364: \"$ac_try\"") >&5
    4365   (eval $ac_try) 2>&5
    4366   ac_status=$?
    4367   echo "$as_me:4367: \$? = $ac_status" >&5
     6022     { ac_try='test -z "$ac_c_werror_flag"
     6023             || test ! -s conftest.err'
     6024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6025  (eval $ac_try) 2>&5
     6026  ac_status=$?
     6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6028  (exit $ac_status); }; } &&
     6029     { ac_try='test -s conftest$ac_exeext'
     6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6031  (eval $ac_try) 2>&5
     6032  ac_status=$?
     6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    43686034  (exit $ac_status); }; }; then
    4369   eval "$ac_ac_var=yes"
     6035  eval "$as_ac_var=yes"
    43706036else
    43716037  echo "$as_me: failed program was:" >&5
    4372 cat conftest.$ac_ext >&5
    4373 eval "$ac_ac_var=no"
    4374 fi
    4375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4376 fi
    4377 echo "$as_me:4377: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4378 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4379 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4380   cat >>confdefs.h <<EOF
    4381 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4382 EOF
     6038sed 's/^/| /' conftest.$ac_ext >&5
     6039
     6040eval "$as_ac_var=no"
     6041fi
     6042rm -f conftest.err conftest.$ac_objext \
     6043      conftest$ac_exeext conftest.$ac_ext
     6044fi
     6045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6047if test `eval echo '${'$as_ac_var'}'` = yes; then
     6048  cat >>confdefs.h <<_ACEOF
     6049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6050_ACEOF
    43836051
    43846052fi
     
    43876055fi
    43886056
    4389 echo "$as_me:4389: checking if malloc debugging is wanted" >&5
     6057# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
     6058# a non-standard Path
     6059echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
     6060echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6061if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
     6062  echo "$as_me:$LINENO: result: yes" >&5
     6063echo "${ECHO_T}yes" >&6
     6064  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
     6065  JNISUFFIX="jnilib"
     6066  JNIFLAGS="-dynamiclib -fno-common -single_module"
     6067  LDFLAGS="-framework JavaVM"
     6068else
     6069  echo "$as_me:$LINENO: result: no" >&5
     6070echo "${ECHO_T}no" >&6
     6071  JNIINC=""
     6072  JNISUFFIX="so"
     6073  JNIFLAGS="-shared"
     6074fi
     6075
     6076
     6077
     6078
     6079echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
    43906080echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    43916081
     
    43946084  withval="$with_dmalloc"
    43956085  if test "$withval" = yes; then
    4396   echo "$as_me:4396: result: yes" >&5
     6086  echo "$as_me:$LINENO: result: yes" >&5
    43976087echo "${ECHO_T}yes" >&6
    4398   cat >>confdefs.h <<\EOF
     6088  cat >>confdefs.h <<\_ACEOF
    43996089#define WITH_DMALLOC 1
    4400 EOF
     6090_ACEOF
    44016091
    44026092  LIBS="$LIBS -ldmalloc"
    44036093  LDFLAGS="$LDFLAGS -g"
    44046094else
    4405   echo "$as_me:4405: result: no" >&5
     6095  echo "$as_me:$LINENO: result: no" >&5
    44066096echo "${ECHO_T}no" >&6
    44076097fi
    44086098else
    4409   echo "$as_me:4409: result: no" >&5
     6099  echo "$as_me:$LINENO: result: no" >&5
    44106100echo "${ECHO_T}no" >&6
    44116101fi;
    44126102
    4413 echo "$as_me:4413: checking which of rx or regex is wanted" >&5
     6103echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
    44146104echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    44156105
     
    44196109  if test "$withval" = yes; then
    44206110  ac_with_regex=1
    4421   echo "$as_me:4421: result: regex" >&5
     6111  echo "$as_me:$LINENO: result: regex" >&5
    44226112echo "${ECHO_T}regex" >&6
    4423   cat >>confdefs.h <<\EOF
     6113  cat >>confdefs.h <<\_ACEOF
    44246114#define WITH_REGEX 1
    4425 EOF
     6115_ACEOF
    44266116
    44276117  LIBOBJS="$LIBOBJS regex.o"
     
    44296119fi;
    44306120if test -z "$ac_with_regex"; then
    4431   echo "$as_me:4431: result: rx" >&5
     6121  echo "$as_me:$LINENO: result: rx" >&5
    44326122echo "${ECHO_T}rx" >&6
    4433   echo "$as_me:4433: checking for re_rx_search" >&5
     6123  echo "$as_me:$LINENO: checking for re_rx_search" >&5
    44346124echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    44356125if test "${ac_cv_func_re_rx_search+set}" = set; then
     
    44376127else
    44386128  cat >conftest.$ac_ext <<_ACEOF
    4439 #line 4439 "configure"
    4440 #include "confdefs.h"
     6129/* confdefs.h.  */
     6130_ACEOF
     6131cat confdefs.h >>conftest.$ac_ext
     6132cat >>conftest.$ac_ext <<_ACEOF
     6133/* end confdefs.h.  */
     6134/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
     6135   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6136#define re_rx_search innocuous_re_rx_search
     6137
    44416138/* System header to define __stub macros and hopefully few prototypes,
    4442     which can conflict with char re_rx_search (); below.  */
    4443 #include <assert.h>
     6139    which can conflict with char re_rx_search (); below.
     6140    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6141    <limits.h> exists even on freestanding compilers.  */
     6142
     6143#ifdef __STDC__
     6144# include <limits.h>
     6145#else
     6146# include <assert.h>
     6147#endif
     6148
     6149#undef re_rx_search
     6150
    44446151/* Override any gcc2 internal prototype to avoid an error.  */
    44456152#ifdef __cplusplus
    44466153extern "C"
     6154{
    44476155#endif
    44486156/* We use char because int might match the return type of a gcc2
    44496157   builtin and then its argument prototype would still apply.  */
    44506158char re_rx_search ();
    4451 char (*f) ();
    4452 
    4453 int
    4454 main ()
    4455 {
    44566159/* The GNU C library defines this for functions which it implements
    44576160    to always fail with ENOSYS.  Some functions are actually named
     
    44606163choke me
    44616164#else
    4462 f = re_rx_search;
     6165char (*f) () = re_rx_search;
    44636166#endif
    4464 
     6167#ifdef __cplusplus
     6168}
     6169#endif
     6170
     6171int
     6172main ()
     6173{
     6174return f != re_rx_search;
    44656175  ;
    44666176  return 0;
     
    44686178_ACEOF
    44696179rm -f conftest.$ac_objext conftest$ac_exeext
    4470 if { (eval echo "$as_me:4470: \"$ac_link\"") >&5
    4471   (eval $ac_link) 2>&5
    4472   ac_status=$?
    4473   echo "$as_me:4473: \$? = $ac_status" >&5
     6180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6181  (eval $ac_link) 2>conftest.er1
     6182  ac_status=$?
     6183  grep -v '^ *+' conftest.er1 >conftest.err
     6184  rm -f conftest.er1
     6185  cat conftest.err >&5
     6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44746187  (exit $ac_status); } &&
    4475          { ac_try='test -s conftest$ac_exeext'
    4476   { (eval echo "$as_me:4476: \"$ac_try\"") >&5
    4477   (eval $ac_try) 2>&5
    4478   ac_status=$?
    4479   echo "$as_me:4479: \$? = $ac_status" >&5
     6188     { ac_try='test -z "$ac_c_werror_flag"
     6189             || test ! -s conftest.err'
     6190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6191  (eval $ac_try) 2>&5
     6192  ac_status=$?
     6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6194  (exit $ac_status); }; } &&
     6195     { ac_try='test -s conftest$ac_exeext'
     6196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6197  (eval $ac_try) 2>&5
     6198  ac_status=$?
     6199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44806200  (exit $ac_status); }; }; then
    44816201  ac_cv_func_re_rx_search=yes
    44826202else
    44836203  echo "$as_me: failed program was:" >&5
    4484 cat conftest.$ac_ext >&5
     6204sed 's/^/| /' conftest.$ac_ext >&5
     6205
    44856206ac_cv_func_re_rx_search=no
    44866207fi
    4487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4488 fi
    4489 echo "$as_me:4489: result: $ac_cv_func_re_rx_search" >&5
     6208rm -f conftest.err conftest.$ac_objext \
     6209      conftest$ac_exeext conftest.$ac_ext
     6210fi
     6211echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
    44906212echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    44916213if test $ac_cv_func_re_rx_search = yes; then
     
    44976219fi
    44986220
     6221
    44996222# ---------------------------------------------------------------------------
    45006223if test "$ac_cv_func_alloca" = 'no'; then
    4501   LIBOBJS="$LIBOBJS xmalloc.o error.o"
    4502 fi
     6224  case $LIBOBJS in
     6225    "xmalloc.$ac_objext"   | \
     6226  *" xmalloc.$ac_objext"   | \
     6227    "xmalloc.$ac_objext "* | \
     6228  *" xmalloc.$ac_objext "* ) ;;
     6229  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6230esac
     6231
     6232  case $LIBOBJS in
     6233    "error.$ac_objext"   | \
     6234  *" error.$ac_objext"   | \
     6235    "error.$ac_objext "* | \
     6236  *" error.$ac_objext "* ) ;;
     6237  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6238esac
     6239
     6240fi
     6241
    45036242
    45046243# ---------------------------------------------------------------------------
    45056244
    4506 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
    4507 ac_config_commands="$ac_config_commands default"
     6245                                                                      ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
     6246          ac_config_commands="$ac_config_commands default"
    45086247cat >confcache <<\_ACEOF
    45096248# This file is a shell script that caches the results of configure
     
    45166255# the --recheck option to rerun configure.
    45176256#
    4518 # `ac_cv_env_foo' variables (set or unset) will be overriden when
     6257# `ac_cv_env_foo' variables (set or unset) will be overridden when
    45196258# loading this file, other *unset* `ac_cv_foo' will be assigned the
    45206259# following values.
     
    45346273      # substitution turns \\\\ into \\, and sed turns \\ into \).
    45356274      sed -n \
    4536         "s/'/'\\\\''/g;
    4537           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     6275    "s/'/'\\\\''/g;
     6276      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    45386277      ;;
    45396278    *)
    45406279      # `set' quotes correctly as required by POSIX, so do not add quotes.
    45416280      sed -n \
    4542         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6281    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    45436282      ;;
    45446283    esac;
     
    45516290     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    45526291     : end' >>confcache
    4553 if cmp -s $cache_file confcache; then :; else
     6292if diff $cache_file confcache >/dev/null 2>&1; then :; else
    45546293  if test -w $cache_file; then
    45556294    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     
    45706309# (actually we leave an empty line to preserve line numbers).
    45716310if test "x$srcdir" = x.; then
    4572   ac_vpsub='/^[     ]*VPATH[    ]*=/{
     6311  ac_vpsub='/^[  ]*VPATH[    ]*=/{
    45736312s/:*\$(srcdir):*/:/;
    45746313s/:*\${srcdir}:*/:/;
    45756314s/:*@srcdir@:*/:/;
    4576 s/^\([^=]*=[    ]*\):*/\1/;
     6315s/^\([^=]*=[     ]*\):*/\1/;
    45776316s/:*$//;
    4578 s/^[^=]*=[  ]*$//;
     6317s/^[^=]*=[   ]*$//;
    45796318}'
    45806319fi
    45816320
    45826321DEFS=-DHAVE_CONFIG_H
     6322
     6323ac_libobjs=
     6324ac_ltlibobjs=
     6325for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
     6326  # 1. Remove the extension, and $U if already installed.
     6327  ac_i=`echo "$ac_i" |
     6328     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     6329  # 2. Add them.
     6330  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     6331  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6332done
     6333LIBOBJS=$ac_libobjs
     6334
     6335LTLIBOBJS=$ac_ltlibobjs
     6336
     6337
    45836338
    45846339: ${CONFIG_STATUS=./config.status}
    45856340ac_clean_files_save=$ac_clean_files
    45866341ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    4587 { echo "$as_me:4587: creating $CONFIG_STATUS" >&5
     6342{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    45886343echo "$as_me: creating $CONFIG_STATUS" >&6;}
    45896344cat >$CONFIG_STATUS <<_ACEOF
    45906345#! $SHELL
    4591 # Generated automatically by configure.
     6346# Generated by $as_me.
    45926347# Run this file to recreate the current configuration.
    45936348# Compiler output produced by configure, useful for debugging
     
    45956350
    45966351debug=false
     6352ac_cs_recheck=false
     6353ac_cs_silent=false
    45976354SHELL=\${CONFIG_SHELL-$SHELL}
    4598 ac_cs_invocation="\$0 \$@"
    4599 
    46006355_ACEOF
    46016356
    46026357cat >>$CONFIG_STATUS <<\_ACEOF
     6358## --------------------- ##
     6359## M4sh Initialization.  ##
     6360## --------------------- ##
     6361
    46036362# Be Bourne compatible
    46046363if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    46056364  emulate sh
    46066365  NULLCMD=:
     6366  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6367  # is contrary to our usage.  Disable this feature.
     6368  alias -g '${1+"$@"}'='"$@"'
    46076369elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    46086370  set -o posix
    46096371fi
     6372DUALCASE=1; export DUALCASE # for MKS sh
     6373
     6374# Support unset when possible.
     6375if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     6376  as_unset=unset
     6377else
     6378  as_unset=false
     6379fi
     6380
     6381
     6382# Work around bugs in pre-3.0 UWIN ksh.
     6383$as_unset ENV MAIL MAILPATH
     6384PS1='$ '
     6385PS2='> '
     6386PS4='+ '
     6387
     6388# NLS nuisances.
     6389for as_var in \
     6390  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     6391  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     6392  LC_TELEPHONE LC_TIME
     6393do
     6394  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     6395    eval $as_var=C; export $as_var
     6396  else
     6397    $as_unset $as_var
     6398  fi
     6399done
     6400
     6401# Required to use basename.
     6402if expr a : '\(a\)' >/dev/null 2>&1; then
     6403  as_expr=expr
     6404else
     6405  as_expr=false
     6406fi
     6407
     6408if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6409  as_basename=basename
     6410else
     6411  as_basename=false
     6412fi
     6413
    46106414
    46116415# Name of the executable.
    4612 as_me=`echo "$0" |sed 's,.*[\\/],,'`
     6416as_me=`$as_basename "$0" ||
     6417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     6418     X"$0" : 'X\(//\)$' \| \
     6419     X"$0" : 'X\(/\)$' \| \
     6420     .     : '\(.\)' 2>/dev/null ||
     6421echo X/"$0" |
     6422    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     6423      /^X\/\(\/\/\)$/{ s//\1/; q; }
     6424      /^X\/\(\/\).*/{ s//\1/; q; }
     6425      s/.*/./; q'`
     6426
     6427
     6428# PATH needs CR, and LINENO needs CR and PATH.
     6429# Avoid depending upon Character Ranges.
     6430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     6431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     6432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     6433as_cr_digits='0123456789'
     6434as_cr_alnum=$as_cr_Letters$as_cr_digits
     6435
     6436# The user is always right.
     6437if test "${PATH_SEPARATOR+set}" != set; then
     6438  echo "#! /bin/sh" >conf$$.sh
     6439  echo  "exit 0"   >>conf$$.sh
     6440  chmod +x conf$$.sh
     6441  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     6442    PATH_SEPARATOR=';'
     6443  else
     6444    PATH_SEPARATOR=:
     6445  fi
     6446  rm -f conf$$.sh
     6447fi
     6448
     6449
     6450  as_lineno_1=$LINENO
     6451  as_lineno_2=$LINENO
     6452  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6453  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6454  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     6455  # Find who we are.  Look in the path if we contain no path at all
     6456  # relative or not.
     6457  case $0 in
     6458    *[\\/]* ) as_myself=$0 ;;
     6459    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6460for as_dir in $PATH
     6461do
     6462  IFS=$as_save_IFS
     6463  test -z "$as_dir" && as_dir=.
     6464  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6465done
     6466
     6467       ;;
     6468  esac
     6469  # We did not find ourselves, most probably we were run as `sh COMMAND'
     6470  # in which case we are not to be found in the path.
     6471  if test "x$as_myself" = x; then
     6472    as_myself=$0
     6473  fi
     6474  if test ! -f "$as_myself"; then
     6475    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
     6476echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
     6477   { (exit 1); exit 1; }; }
     6478  fi
     6479  case $CONFIG_SHELL in
     6480  '')
     6481    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6482for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     6483do
     6484  IFS=$as_save_IFS
     6485  test -z "$as_dir" && as_dir=.
     6486  for as_base in sh bash ksh sh5; do
     6487     case $as_dir in
     6488     /*)
     6489       if ("$as_dir/$as_base" -c '
     6490  as_lineno_1=$LINENO
     6491  as_lineno_2=$LINENO
     6492  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6493  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6494  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     6495         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     6496         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     6497         CONFIG_SHELL=$as_dir/$as_base
     6498         export CONFIG_SHELL
     6499         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     6500       fi;;
     6501     esac
     6502       done
     6503done
     6504;;
     6505  esac
     6506
     6507  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     6508  # uniformly replaced by the line number.  The first 'sed' inserts a
     6509  # line-number line before each line; the second 'sed' does the real
     6510  # work.  The second script uses 'N' to pair each line-number line
     6511  # with the numbered line, and appends trailing '-' during
     6512  # substitution so that $LINENO is not a special case at line end.
     6513  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     6514  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     6515  sed '=' <$as_myself |
     6516    sed '
     6517      N
     6518      s,$,-,
     6519      : loop
     6520      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     6521      t loop
     6522      s,-$,,
     6523      s,^['$as_cr_digits']*\n,,
     6524    ' >$as_me.lineno &&
     6525  chmod +x $as_me.lineno ||
     6526    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
     6527echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     6528   { (exit 1); exit 1; }; }
     6529
     6530  # Don't try to exec as it changes $[0], causing all sort of problems
     6531  # (the dirname of $[0] is not the place where we might find the
     6532  # original and so on.  Autoconf is especially sensible to this).
     6533  . ./$as_me.lineno
     6534  # Exit status is that of the last command.
     6535  exit
     6536}
     6537
     6538
     6539case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     6540  *c*,-n*) ECHO_N= ECHO_C='
     6541' ECHO_T='  ' ;;
     6542  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     6543  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     6544esac
    46136545
    46146546if expr a : '\(a\)' >/dev/null 2>&1; then
     
    46366568rm -f conf$$ conf$$.exe conf$$.file
    46376569
     6570if mkdir -p . 2>/dev/null; then
     6571  as_mkdir_p=:
     6572else
     6573  test -d ./-p && rmdir ./-p
     6574  as_mkdir_p=false
     6575fi
     6576
    46386577as_executable_p="test -f"
    46396578
    4640 # Support unset when possible.
    4641 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    4642   as_unset=unset
    4643 else
    4644   as_unset=false
    4645 fi
    4646 
    4647 # NLS nuisances.
    4648 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    4649 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    4650 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    4651 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    4652 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    4653 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    4654 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    4655 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     6579# Sed expression to map a string onto a valid CPP name.
     6580as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     6581
     6582# Sed expression to map a string onto a valid variable name.
     6583as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     6584
    46566585
    46576586# IFS
     
    46626591
    46636592# CDPATH.
    4664 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     6593$as_unset CDPATH
    46656594
    46666595exec 6>&1
    46676596
     6597# Open the log real soon, to keep \$[0] and so on meaningful, and to
     6598# report actual input values of CONFIG_FILES etc. instead of their
     6599# values after options handling.  Logging --version etc. is OK.
     6600exec 5>>config.log
     6601{
     6602  echo
     6603  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     6604## Running $as_me. ##
     6605_ASBOX
     6606} >&5
     6607cat >&5 <<_CSEOF
     6608
     6609This file was extended by $as_me, which was
     6610generated by GNU Autoconf 2.59.  Invocation command line was
     6611
     6612  CONFIG_FILES    = $CONFIG_FILES
     6613  CONFIG_HEADERS  = $CONFIG_HEADERS
     6614  CONFIG_LINKS    = $CONFIG_LINKS
     6615  CONFIG_COMMANDS = $CONFIG_COMMANDS
     6616  $ $0 $@
     6617
     6618_CSEOF
     6619echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
     6620echo >&5
    46686621_ACEOF
    46696622
     
    46856638fi
    46866639
    4687 cat >>$CONFIG_STATUS <<\EOF
     6640cat >>$CONFIG_STATUS <<\_ACEOF
    46886641
    46896642ac_cs_usage="\
     
    46956648  -h, --help       print this help, then exit
    46966649  -V, --version    print version number, then exit
     6650  -q, --quiet      do not print progress messages
    46976651  -d, --debug      don't remove temporary files
    46986652      --recheck    update $as_me by reconfiguring in the same conditions
    46996653  --file=FILE[:TEMPLATE]
    4700                    instantiate the configuration file FILE
     6654           instantiate the configuration file FILE
    47016655  --header=FILE[:TEMPLATE]
    4702                    instantiate the configuration header FILE
     6656           instantiate the configuration header FILE
    47036657
    47046658Configuration files:
     
    47126666
    47136667Report bugs to <[email protected]>."
    4714 EOF
    4715 
    4716 cat >>$CONFIG_STATUS <<EOF
     6668_ACEOF
     6669
     6670cat >>$CONFIG_STATUS <<_ACEOF
    47176671ac_cs_version="\\
    47186672config.status
    4719 configured by $0, generated by GNU Autoconf 2.50,
     6673configured by $0, generated by GNU Autoconf 2.59,
    47206674  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    47216675
    4722 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    4723 Free Software Foundation, Inc.
     6676Copyright (C) 2003 Free Software Foundation, Inc.
    47246677This config.status script is free software; the Free Software Foundation
    47256678gives unlimited permission to copy, distribute and modify it."
    47266679srcdir=$srcdir
    47276680INSTALL="$INSTALL"
    4728 EOF
    4729 
    4730 cat >>$CONFIG_STATUS <<\EOF
     6681_ACEOF
     6682
     6683cat >>$CONFIG_STATUS <<\_ACEOF
    47316684# If no file are specified by the user, then we need to provide default
    47326685# value.  By we need to know if files were specified by the user.
     
    47386691    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    47396692    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    4740     shift
    4741     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
    4742     shift
     6693    ac_shift=:
    47436694    ;;
    4744   -*);;
     6695  -*)
     6696    ac_option=$1
     6697    ac_optarg=$2
     6698    ac_shift=shift
     6699    ;;
    47456700  *) # This is not an option, so the user has probably given explicit
    47466701     # arguments.
     6702     ac_option=$1
    47476703     ac_need_defaults=false;;
    47486704  esac
    47496705
    4750   case $1 in
     6706  case $ac_option in
    47516707  # Handling of the options.
    4752 EOF
    4753 cat >>$CONFIG_STATUS <<EOF
     6708_ACEOF
     6709cat >>$CONFIG_STATUS <<\_ACEOF
    47546710  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    4755     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    4756     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
    4757 EOF
    4758 cat >>$CONFIG_STATUS <<\EOF
     6711    ac_cs_recheck=: ;;
    47596712  --version | --vers* | -V )
    47606713    echo "$ac_cs_version"; exit 0 ;;
    47616714  --he | --h)
    47626715    # Conflict between --help and --header
    4763     { { echo "$as_me:4763: error: ambiguous option: $1
     6716    { { echo "$as_me:$LINENO: error: ambiguous option: $1
    47646717Try \`$0 --help' for more information." >&5
    47656718echo "$as_me: error: ambiguous option: $1
     
    47716724    debug=: ;;
    47726725  --file | --fil | --fi | --f )
    4773     shift
    4774     CONFIG_FILES="$CONFIG_FILES $1"
     6726    $ac_shift
     6727    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    47756728    ac_need_defaults=false;;
    47766729  --header | --heade | --head | --hea )
    4777     shift
    4778     CONFIG_HEADERS="$CONFIG_HEADERS $1"
     6730    $ac_shift
     6731    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    47796732    ac_need_defaults=false;;
    4780 
    4781   # Handling of arguments.
    4782   'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    4783   'src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
    4784   'src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
    4785   'src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
    4786   'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    4787   'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
    4788   'java/org/greenstone/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
    4789   'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    4790   'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     6733  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     6734  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     6735    ac_cs_silent=: ;;
    47916736
    47926737  # This is an error.
    4793   -*) { { echo "$as_me:4793: error: unrecognized option: $1
     6738  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    47946739Try \`$0 --help' for more information." >&5
    47956740echo "$as_me: error: unrecognized option: $1
    47966741Try \`$0 --help' for more information." >&2;}
    47976742   { (exit 1); exit 1; }; } ;;
    4798   *) { { echo "$as_me:4798: error: invalid argument: $1" >&5
    4799 echo "$as_me: error: invalid argument: $1" >&2;}
    4800    { (exit 1); exit 1; }; };;
     6743
     6744  *) ac_config_targets="$ac_config_targets $1" ;;
     6745
    48016746  esac
    48026747  shift
    48036748done
    48046749
    4805 exec 5>>config.log
    4806 cat >&5 << _ACEOF
    4807 
    4808 ## ----------------------- ##
    4809 ## Running config.status.  ##
    4810 ## ----------------------- ##
    4811 
    4812 This file was extended by $as_me 2.50, executed with
    4813   > $ac_cs_invocation
    4814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
    4815 
    4816 _ACEOF
    4817 EOF
    4818 
    4819 cat >>$CONFIG_STATUS <<\EOF
     6750ac_configure_extra_args=
     6751
     6752if $ac_cs_silent; then
     6753  exec 6>/dev/null
     6754  ac_configure_extra_args="$ac_configure_extra_args --silent"
     6755fi
     6756
     6757_ACEOF
     6758cat >>$CONFIG_STATUS <<_ACEOF
     6759if \$ac_cs_recheck; then
     6760  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     6761  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     6762fi
     6763
     6764_ACEOF
     6765
     6766
     6767
     6768
     6769
     6770cat >>$CONFIG_STATUS <<\_ACEOF
     6771for ac_config_target in $ac_config_targets
     6772do
     6773  case "$ac_config_target" in
     6774  # Handling of arguments.
     6775  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     6776  "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
     6777  "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
     6778  "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
     6779  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     6780  "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
     6781  "java/org/greenstone/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
     6782  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     6783  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     6784  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     6785echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     6786   { (exit 1); exit 1; }; };;
     6787  esac
     6788done
     6789
    48206790# If the user did not use the arguments to specify the items to instantiate,
    48216791# then the envvar interface is used.  Set only those that are not.
     
    48286798fi
    48296799
     6800# Have a temporary directory for convenience.  Make it in the build tree
     6801# simply because there is no reason to put it here, and in addition,
     6802# creating and moving files from /tmp can sometimes cause problems.
    48306803# Create a temporary directory, and hook for its removal unless debugging.
    48316804$debug ||
    48326805{
    48336806  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    4834   trap '{ (exit $?); exit $?; }' 1 2 13 15
     6807  trap '{ (exit 1); exit 1; }' 1 2 13 15
    48356808}
    48366809
    48376810# Create a (secure) tmp directory for tmp files.
    4838 : ${TMPDIR=/tmp}
     6811
    48396812{
    4840   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
     6813  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
    48416814  test -n "$tmp" && test -d "$tmp"
    48426815}  ||
    48436816{
    4844   tmp=$TMPDIR/cs$$-$RANDOM
     6817  tmp=./confstat$$-$RANDOM
    48456818  (umask 077 && mkdir $tmp)
    48466819} ||
    48476820{
    4848    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     6821   echo "$me: cannot create a temporary directory in ." >&2
    48496822   { (exit 1); exit 1; }
    48506823}
    48516824
    4852 EOF
    4853 
    4854 cat >>$CONFIG_STATUS <<EOF
     6825_ACEOF
     6826
     6827cat >>$CONFIG_STATUS <<_ACEOF
    48556828
    48566829#
     
    48656838   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    48666839s,@SHELL@,$SHELL,;t t
     6840s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     6841s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     6842s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     6843s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     6844s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     6845s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    48676846s,@exec_prefix@,$exec_prefix,;t t
    48686847s,@prefix@,$prefix,;t t
     
    48806859s,@infodir@,$infodir,;t t
    48816860s,@mandir@,$mandir,;t t
    4882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    4883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    4884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    4885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    4886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     6861s,@build_alias@,$build_alias,;t t
     6862s,@host_alias@,$host_alias,;t t
     6863s,@target_alias@,$target_alias,;t t
     6864s,@DEFS@,$DEFS,;t t
    48876865s,@ECHO_C@,$ECHO_C,;t t
    48886866s,@ECHO_N@,$ECHO_N,;t t
    48896867s,@ECHO_T@,$ECHO_T,;t t
    4890 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    4891 s,@DEFS@,$DEFS,;t t
    48926868s,@LIBS@,$LIBS,;t t
    48936869s,@PACKAGE@,$PACKAGE,;t t
     
    49136889s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    49146890s,@CPP@,$CPP,;t t
     6891s,@EGREP@,$EGREP,;t t
    49156892s,@U@,$U,;t t
    49166893s,@ANSI2KNR@,$ANSI2KNR,;t t
    49176894s,@ALLOCA@,$ALLOCA,;t t
    49186895s,@LIBOBJS@,$LIBOBJS,;t t
     6896s,@JNIINC@,$JNIINC,;t t
     6897s,@JNISUFFIX@,$JNISUFFIX,;t t
     6898s,@JNIFLAGS@,$JNIFLAGS,;t t
     6899s,@LIBOBJS@,$LIBOBJS,;t t
     6900s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    49196901CEOF
    49206902
    4921 EOF
    4922 
    4923   cat >>$CONFIG_STATUS <<\EOF
     6903_ACEOF
     6904
     6905  cat >>$CONFIG_STATUS <<\_ACEOF
    49246906  # Split the substitutions into bite-sized pieces for seds with
    49256907  # small command number limits, like on Digital OSF/1 and HP-UX.
     
    49466928  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    49476929      if test -z "$ac_sed_cmds"; then
    4948     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     6930    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    49496931      else
    4950     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     6932    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    49516933      fi
    49526934      ac_sed_frag=`expr $ac_sed_frag + 1`
     
    49606942fi # test -n "$CONFIG_FILES"
    49616943
    4962 EOF
    4963 cat >>$CONFIG_STATUS <<\EOF
     6944_ACEOF
     6945cat >>$CONFIG_STATUS <<\_ACEOF
    49646946for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    49656947  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    49666948  case $ac_file in
    49676949  - | *:- | *:-:* ) # input from stdin
    4968         cat >$tmp/stdin
    4969         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    4970         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6950    cat >$tmp/stdin
     6951    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     6952    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    49716953  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    4972         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6954    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    49736955  * )   ac_file_in=$ac_file.in ;;
    49746956  esac
    49756957
    49766958  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    4977   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    4978          X"$ac_file" : 'X\(//\)[^/]' \| \
    4979          X"$ac_file" : 'X\(//\)$' \| \
    4980          X"$ac_file" : 'X\(/\)' \| \
    4981          .     : '\(.\)' 2>/dev/null ||
     6959  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     6960$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     6961     X"$ac_file" : 'X\(//\)[^/]' \| \
     6962     X"$ac_file" : 'X\(//\)$' \| \
     6963     X"$ac_file" : 'X\(/\)' \| \
     6964     .     : '\(.\)' 2>/dev/null ||
    49826965echo X"$ac_file" |
    49836966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    49866969      /^X\(\/\).*/{ s//\1/; q; }
    49876970      s/.*/./; q'`
    4988   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    4989     { case "$ac_dir" in
    4990   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    4991   *)                      as_incr_dir=.;;
     6971  { if $as_mkdir_p; then
     6972    mkdir -p "$ac_dir"
     6973  else
     6974    as_dir="$ac_dir"
     6975    as_dirs=
     6976    while test ! -d "$as_dir"; do
     6977      as_dirs="$as_dir $as_dirs"
     6978      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     6979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     6980     X"$as_dir" : 'X\(//\)[^/]' \| \
     6981     X"$as_dir" : 'X\(//\)$' \| \
     6982     X"$as_dir" : 'X\(/\)' \| \
     6983     .     : '\(.\)' 2>/dev/null ||
     6984echo X"$as_dir" |
     6985    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     6986      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     6987      /^X\(\/\/\)$/{ s//\1/; q; }
     6988      /^X\(\/\).*/{ s//\1/; q; }
     6989      s/.*/./; q'`
     6990    done
     6991    test ! -n "$as_dirs" || mkdir $as_dirs
     6992  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     6993echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     6994   { (exit 1); exit 1; }; }; }
     6995
     6996  ac_builddir=.
     6997
     6998if test "$ac_dir" != .; then
     6999  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7000  # A "../" for each directory in $ac_dir_suffix.
     7001  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7002else
     7003  ac_dir_suffix= ac_top_builddir=
     7004fi
     7005
     7006case $srcdir in
     7007  .)  # No --srcdir option.  We are building in place.
     7008    ac_srcdir=.
     7009    if test -z "$ac_top_builddir"; then
     7010       ac_top_srcdir=.
     7011    else
     7012       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7013    fi ;;
     7014  [\\/]* | ?:[\\/]* )  # Absolute path.
     7015    ac_srcdir=$srcdir$ac_dir_suffix;
     7016    ac_top_srcdir=$srcdir ;;
     7017  *) # Relative path.
     7018    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7019    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    49927020esac
    4993 as_dummy="$ac_dir"
    4994 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    4995   case $as_mkdir_dir in
    4996     # Skip DOS drivespec
    4997     ?:) as_incr_dir=$as_mkdir_dir ;;
    4998     *)
    4999       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5000       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5001     ;;
    5002   esac
    5003 done; }
    5004 
    5005     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    5006     # A "../" for each directory in $ac_dir_suffix.
    5007     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
    5008   else
    5009     ac_dir_suffix= ac_dots=
    5010   fi
    5011 
    5012   case $srcdir in
    5013   .)  ac_srcdir=.
    5014       if test -z "$ac_dots"; then
    5015          ac_top_srcdir=.
    5016       else
    5017          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
    5018       fi ;;
    5019   [\\/]* | ?:[\\/]* )
    5020       ac_srcdir=$srcdir$ac_dir_suffix;
    5021       ac_top_srcdir=$srcdir ;;
    5022   *) # Relative path.
    5023     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    5024     ac_top_srcdir=$ac_dots$srcdir ;;
    5025   esac
     7021
     7022# Do not use `cd foo && pwd` to compute absolute paths, because
     7023# the directories may not exist.
     7024case `pwd` in
     7025.) ac_abs_builddir="$ac_dir";;
     7026*)
     7027  case "$ac_dir" in
     7028  .) ac_abs_builddir=`pwd`;;
     7029  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     7030  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     7031  esac;;
     7032esac
     7033case $ac_abs_builddir in
     7034.) ac_abs_top_builddir=${ac_top_builddir}.;;
     7035*)
     7036  case ${ac_top_builddir}. in
     7037  .) ac_abs_top_builddir=$ac_abs_builddir;;
     7038  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     7039  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     7040  esac;;
     7041esac
     7042case $ac_abs_builddir in
     7043.) ac_abs_srcdir=$ac_srcdir;;
     7044*)
     7045  case $ac_srcdir in
     7046  .) ac_abs_srcdir=$ac_abs_builddir;;
     7047  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     7048  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     7049  esac;;
     7050esac
     7051case $ac_abs_builddir in
     7052.) ac_abs_top_srcdir=$ac_top_srcdir;;
     7053*)
     7054  case $ac_top_srcdir in
     7055  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     7056  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     7057  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     7058  esac;;
     7059esac
     7060
    50267061
    50277062  case $INSTALL in
    50287063  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    5029   *) ac_INSTALL=$ac_dots$INSTALL ;;
     7064  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
    50307065  esac
    50317066
    50327067  if test x"$ac_file" != x-; then
    5033     { echo "$as_me:5033: creating $ac_file" >&5
     7068    { echo "$as_me:$LINENO: creating $ac_file" >&5
    50347069echo "$as_me: creating $ac_file" >&6;}
    50357070    rm -f "$ac_file"
     
    50377072  # Let's still pretend it is `configure' which instantiates (i.e., don't
    50387073  # use $as_me), people would be surprised to read:
    5039   #    /* config.h.  Generated automatically by config.status.  */
    5040   configure_input="Generated automatically from `echo $ac_file_in |
    5041                                                  sed 's,.*/,,'` by configure."
     7074  #    /* config.h.  Generated by config.status.  */
     7075  if test x"$ac_file" = x-; then
     7076    configure_input=
     7077  else
     7078    configure_input="$ac_file.  "
     7079  fi
     7080  configure_input=$configure_input"Generated from `echo $ac_file_in |
     7081                     sed 's,.*/,,'` by configure."
    50427082
    50437083  # First look for the input files in the build tree, otherwise in the
     
    50487088      -) echo $tmp/stdin ;;
    50497089      [\\/$]*)
    5050         # Absolute (can't be DOS-style, as IFS=:)
    5051          test -f "$f" || { { echo "$as_me:5051: error: cannot find input file: $f" >&5
     7090    # Absolute (can't be DOS-style, as IFS=:)
     7091     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    50527092echo "$as_me: error: cannot find input file: $f" >&2;}
    50537093   { (exit 1); exit 1; }; }
    5054          echo $f;;
     7094     echo "$f";;
    50557095      *) # Relative
    5056         if test -f "$f"; then
    5057            # Build tree
    5058            echo $f
    5059         elif test -f "$srcdir/$f"; then
    5060            # Source tree
    5061            echo $srcdir/$f
    5062         else
    5063            # /dev/null tree
    5064            { { echo "$as_me:5064: error: cannot find input file: $f" >&5
     7096    if test -f "$f"; then
     7097       # Build tree
     7098       echo "$f"
     7099    elif test -f "$srcdir/$f"; then
     7100       # Source tree
     7101       echo "$srcdir/$f"
     7102    else
     7103       # /dev/null tree
     7104       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    50657105echo "$as_me: error: cannot find input file: $f" >&2;}
    50667106   { (exit 1); exit 1; }; }
    5067         fi;;
     7107    fi;;
    50687108      esac
    50697109    done` || { (exit 1); exit 1; }
    5070 EOF
    5071 cat >>$CONFIG_STATUS <<EOF
     7110_ACEOF
     7111cat >>$CONFIG_STATUS <<_ACEOF
    50727112  sed "$ac_vpsub
    50737113$extrasub
    5074 EOF
    5075 cat >>$CONFIG_STATUS <<\EOF
     7114_ACEOF
     7115cat >>$CONFIG_STATUS <<\_ACEOF
    50767116:t
    50777117/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    50787118s,@configure_input@,$configure_input,;t t
    50797119s,@srcdir@,$ac_srcdir,;t t
     7120s,@abs_srcdir@,$ac_abs_srcdir,;t t
    50807121s,@top_srcdir@,$ac_top_srcdir,;t t
     7122s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
     7123s,@builddir@,$ac_builddir,;t t
     7124s,@abs_builddir@,$ac_abs_builddir,;t t
     7125s,@top_builddir@,$ac_top_builddir,;t t
     7126s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    50817127s,@INSTALL@,$ac_INSTALL,;t t
    50827128" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     
    50907136
    50917137done
    5092 EOF
    5093 cat >>$CONFIG_STATUS <<\EOF
     7138_ACEOF
     7139cat >>$CONFIG_STATUS <<\_ACEOF
    50947140
    50957141#
     
    51017147#
    51027148# ac_d sets the value in "#define NAME VALUE" lines.
    5103 ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    5104 ac_dB='[    ].*$,\1#\2'
     7149ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
     7150ac_dB='[     ].*$,\1#\2'
    51057151ac_dC=' '
    51067152ac_dD=',;t'
    51077153# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    5108 ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     7154ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    51097155ac_uB='$,\1#\2define\3'
    51107156ac_uC=' '
     
    51157161  case $ac_file in
    51167162  - | *:- | *:-:* ) # input from stdin
    5117         cat >$tmp/stdin
    5118         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5119         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7163    cat >$tmp/stdin
     7164    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7165    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    51207166  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5121         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7167    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    51227168  * )   ac_file_in=$ac_file.in ;;
    51237169  esac
    51247170
    5125   test x"$ac_file" != x- && { echo "$as_me:5125: creating $ac_file" >&5
     7171  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    51267172echo "$as_me: creating $ac_file" >&6;}
    51277173
     
    51337179      -) echo $tmp/stdin ;;
    51347180      [\\/$]*)
    5135         # Absolute (can't be DOS-style, as IFS=:)
    5136          test -f "$f" || { { echo "$as_me:5136: error: cannot find input file: $f" >&5
     7181    # Absolute (can't be DOS-style, as IFS=:)
     7182     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    51377183echo "$as_me: error: cannot find input file: $f" >&2;}
    51387184   { (exit 1); exit 1; }; }
    5139          echo $f;;
     7185     # Do quote $f, to prevent DOS paths from being IFS'd.
     7186     echo "$f";;
    51407187      *) # Relative
    5141         if test -f "$f"; then
    5142            # Build tree
    5143            echo $f
    5144         elif test -f "$srcdir/$f"; then
    5145            # Source tree
    5146            echo $srcdir/$f
    5147         else
    5148            # /dev/null tree
    5149            { { echo "$as_me:5149: error: cannot find input file: $f" >&5
     7188    if test -f "$f"; then
     7189       # Build tree
     7190       echo "$f"
     7191    elif test -f "$srcdir/$f"; then
     7192       # Source tree
     7193       echo "$srcdir/$f"
     7194    else
     7195       # /dev/null tree
     7196       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    51507197echo "$as_me: error: cannot find input file: $f" >&2;}
    51517198   { (exit 1); exit 1; }; }
    5152         fi;;
     7199    fi;;
    51537200      esac
    51547201    done` || { (exit 1); exit 1; }
    51557202  # Remove the trailing spaces.
    5156   sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
    5157 
    5158 EOF
     7203  sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
     7204
     7205_ACEOF
    51597206
    51607207# Transform confdefs.h into two sed scripts, `conftest.defines' and
     
    51727219# 0-ary CPP macros) applies to n-ary macro definitions.
    51737220# See the Autoconf documentation for `clear'.
    5174 cat >confdef2sed.sed <<\EOF
     7221cat >confdef2sed.sed <<\_ACEOF
    51757222s/[\\&,]/\\&/g
    51767223s,[\\$`],\\&,g
    51777224t clear
    51787225: clear
    5179 s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
     7226s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    51807227t end
    5181 s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     7228s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    51827229: end
    5183 EOF
     7230_ACEOF
    51847231# If some macros were called several times there might be several times
    51857232# the same #defines, which is useless.  Nevertheless, we may not want to
     
    51927239# example, in the case of _POSIX_SOURCE, which is predefined and required
    51937240# on some systems where configure will not decide to define it.
    5194 cat >>conftest.undefs <<\EOF
    5195 s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    5196 EOF
     7241cat >>conftest.undefs <<\_ACEOF
     7242s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     7243_ACEOF
    51977244
    51987245# Break up conftest.defines because some shells have a limit on the size
    51997246# of here documents, and old seds have small limits too (100 cmds).
    52007247echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    5201 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     7248echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    52027249echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    52037250echo '  :' >>$CONFIG_STATUS
     
    52087255  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    52097256  # Speed up: don't consider the non `#define' lines.
    5210   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
     7257  echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
    52117258  # Work around the forget-to-reset-the-flag bug.
    52127259  echo 't clr' >>$CONFIG_STATUS
     
    52237270done
    52247271rm -f conftest.defines
    5225 echo '  fi # egrep' >>$CONFIG_STATUS
     7272echo '  fi # grep' >>$CONFIG_STATUS
    52267273echo >>$CONFIG_STATUS
    52277274
     
    52357282  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    52367283  # Speed up: don't consider the non `#undef'
    5237   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     7284  echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    52387285  # Work around the forget-to-reset-the-flag bug.
    52397286  echo 't clr' >>$CONFIG_STATUS
     
    52517298rm -f conftest.undefs
    52527299
    5253 cat >>$CONFIG_STATUS <<\EOF
     7300cat >>$CONFIG_STATUS <<\_ACEOF
    52547301  # Let's still pretend it is `configure' which instantiates (i.e., don't
    52557302  # use $as_me), people would be surprised to read:
    5256   #    /* config.h.  Generated automatically by config.status.  */
     7303  #    /* config.h.  Generated by config.status.  */
    52577304  if test x"$ac_file" = x-; then
    5258     echo "/* Generated automatically by configure.  */" >$tmp/config.h
     7305    echo "/* Generated by configure.  */" >$tmp/config.h
    52597306  else
    5260     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     7307    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    52617308  fi
    52627309  cat $tmp/in >>$tmp/config.h
    52637310  rm -f $tmp/in
    52647311  if test x"$ac_file" != x-; then
    5265     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
    5266       { echo "$as_me:5266: $ac_file is unchanged" >&5
     7312    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     7313      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    52677314echo "$as_me: $ac_file is unchanged" >&6;}
    52687315    else
    5269       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    5270          X"$ac_file" : 'X\(//\)[^/]' \| \
    5271          X"$ac_file" : 'X\(//\)$' \| \
    5272          X"$ac_file" : 'X\(/\)' \| \
    5273          .     : '\(.\)' 2>/dev/null ||
     7316      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7317$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7318     X"$ac_file" : 'X\(//\)[^/]' \| \
     7319     X"$ac_file" : 'X\(//\)$' \| \
     7320     X"$ac_file" : 'X\(/\)' \| \
     7321     .     : '\(.\)' 2>/dev/null ||
    52747322echo X"$ac_file" |
    52757323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    52787326      /^X\(\/\).*/{ s//\1/; q; }
    52797327      s/.*/./; q'`
    5280       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    5281         { case "$ac_dir" in
    5282   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    5283   *)                      as_incr_dir=.;;
    5284 esac
    5285 as_dummy="$ac_dir"
    5286 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    5287   case $as_mkdir_dir in
    5288     # Skip DOS drivespec
    5289     ?:) as_incr_dir=$as_mkdir_dir ;;
    5290     *)
    5291       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5292       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5293     ;;
    5294   esac
    5295 done; }
    5296 
    5297       fi
     7328      { if $as_mkdir_p; then
     7329    mkdir -p "$ac_dir"
     7330  else
     7331    as_dir="$ac_dir"
     7332    as_dirs=
     7333    while test ! -d "$as_dir"; do
     7334      as_dirs="$as_dir $as_dirs"
     7335      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7337     X"$as_dir" : 'X\(//\)[^/]' \| \
     7338     X"$as_dir" : 'X\(//\)$' \| \
     7339     X"$as_dir" : 'X\(/\)' \| \
     7340     .     : '\(.\)' 2>/dev/null ||
     7341echo X"$as_dir" |
     7342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7343      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7344      /^X\(\/\/\)$/{ s//\1/; q; }
     7345      /^X\(\/\).*/{ s//\1/; q; }
     7346      s/.*/./; q'`
     7347    done
     7348    test ! -n "$as_dirs" || mkdir $as_dirs
     7349  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7350echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7351   { (exit 1); exit 1; }; }; }
     7352
    52987353      rm -f $ac_file
    52997354      mv $tmp/config.h $ac_file
     
    53047359  fi
    53057360done
    5306 EOF
    5307 cat >>$CONFIG_STATUS <<\EOF
     7361_ACEOF
     7362cat >>$CONFIG_STATUS <<\_ACEOF
    53087363
    53097364#
     
    53137368  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    53147369  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5315 
     7370  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
     7371$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7372     X"$ac_dest" : 'X\(//\)[^/]' \| \
     7373     X"$ac_dest" : 'X\(//\)$' \| \
     7374     X"$ac_dest" : 'X\(/\)' \| \
     7375     .     : '\(.\)' 2>/dev/null ||
     7376echo X"$ac_dest" |
     7377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7378      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7379      /^X\(\/\/\)$/{ s//\1/; q; }
     7380      /^X\(\/\).*/{ s//\1/; q; }
     7381      s/.*/./; q'`
     7382  { if $as_mkdir_p; then
     7383    mkdir -p "$ac_dir"
     7384  else
     7385    as_dir="$ac_dir"
     7386    as_dirs=
     7387    while test ! -d "$as_dir"; do
     7388      as_dirs="$as_dir $as_dirs"
     7389      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7390$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7391     X"$as_dir" : 'X\(//\)[^/]' \| \
     7392     X"$as_dir" : 'X\(//\)$' \| \
     7393     X"$as_dir" : 'X\(/\)' \| \
     7394     .     : '\(.\)' 2>/dev/null ||
     7395echo X"$as_dir" |
     7396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7397      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7398      /^X\(\/\/\)$/{ s//\1/; q; }
     7399      /^X\(\/\).*/{ s//\1/; q; }
     7400      s/.*/./; q'`
     7401    done
     7402    test ! -n "$as_dirs" || mkdir $as_dirs
     7403  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7404echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7405   { (exit 1); exit 1; }; }; }
     7406
     7407  ac_builddir=.
     7408
     7409if test "$ac_dir" != .; then
     7410  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7411  # A "../" for each directory in $ac_dir_suffix.
     7412  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7413else
     7414  ac_dir_suffix= ac_top_builddir=
     7415fi
     7416
     7417case $srcdir in
     7418  .)  # No --srcdir option.  We are building in place.
     7419    ac_srcdir=.
     7420    if test -z "$ac_top_builddir"; then
     7421       ac_top_srcdir=.
     7422    else
     7423       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7424    fi ;;
     7425  [\\/]* | ?:[\\/]* )  # Absolute path.
     7426    ac_srcdir=$srcdir$ac_dir_suffix;
     7427    ac_top_srcdir=$srcdir ;;
     7428  *) # Relative path.
     7429    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7430    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7431esac
     7432
     7433# Do not use `cd foo && pwd` to compute absolute paths, because
     7434# the directories may not exist.
     7435case `pwd` in
     7436.) ac_abs_builddir="$ac_dir";;
     7437*)
     7438  case "$ac_dir" in
     7439  .) ac_abs_builddir=`pwd`;;
     7440  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     7441  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     7442  esac;;
     7443esac
     7444case $ac_abs_builddir in
     7445.) ac_abs_top_builddir=${ac_top_builddir}.;;
     7446*)
     7447  case ${ac_top_builddir}. in
     7448  .) ac_abs_top_builddir=$ac_abs_builddir;;
     7449  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     7450  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     7451  esac;;
     7452esac
     7453case $ac_abs_builddir in
     7454.) ac_abs_srcdir=$ac_srcdir;;
     7455*)
     7456  case $ac_srcdir in
     7457  .) ac_abs_srcdir=$ac_abs_builddir;;
     7458  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     7459  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     7460  esac;;
     7461esac
     7462case $ac_abs_builddir in
     7463.) ac_abs_top_srcdir=$ac_top_srcdir;;
     7464*)
     7465  case $ac_top_srcdir in
     7466  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     7467  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     7468  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     7469  esac;;
     7470esac
     7471
     7472
     7473  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
     7474echo "$as_me: executing $ac_dest commands" >&6;}
    53167475  case $ac_dest in
    53177476    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
    53187477  esac
    53197478done
    5320 EOF
    5321 
    5322 cat >>$CONFIG_STATUS <<\EOF
     7479_ACEOF
     7480
     7481cat >>$CONFIG_STATUS <<\_ACEOF
    53237482
    53247483{ (exit 0); exit 0; }
    5325 EOF
     7484_ACEOF
    53267485chmod +x $CONFIG_STATUS
    53277486ac_clean_files=$ac_clean_files_save
     7487
    53287488
    53297489# configure is writing to config.log, and then calls config.status.
     
    53377497if test "$no_create" != yes; then
    53387498  ac_cs_success=:
     7499  ac_config_status_args=
     7500  test "$silent" = yes &&
     7501    ac_config_status_args="$ac_config_status_args --quiet"
    53397502  exec 5>/dev/null
    5340   $SHELL $CONFIG_STATUS || ac_cs_success=false
     7503  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
    53417504  exec 5>>config.log
    53427505  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  • trunk/gsdl3/src/packages/mg/configure.in

    r7882 r10191  
    7777if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    7878  AC_MSG_RESULT(yes)
    79   LIBOBJS="$LIBOBJS gmalloc.o"
     79  AC_LIBOBJ(gmalloc)
    8080  AC_DEFINE(HAVE_VALLOC)
    8181else
     
    8383  AC_CHECK_FUNCS(valloc)
    8484fi
     85
     86# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
     87# a non-standard Path
     88AC_MSG_CHECKING(for Apple MacOS X/Darwin)
     89if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
     90  AC_MSG_RESULT(yes)
     91  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
     92  JNISUFFIX="jnilib"
     93  JNIFLAGS="-dynamiclib -fno-common -single_module"
     94  LDFLAGS="-framework JavaVM"
     95else
     96  AC_MSG_RESULT(no)
     97  JNIINC=""
     98  JNISUFFIX="so"
     99  JNIFLAGS="-shared"
     100fi
     101AC_SUBST(JNIINC)
     102AC_SUBST(JNISUFFIX)
     103AC_SUBST(JNIFLAGS)
    85104
    86105fp_WITH_DMALLOC
     
    90109if test "$ac_cv_func_alloca" = 'no'; then
    91110dnl    support functions for alloca.c
    92   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     111  AC_LIBOBJ(xmalloc)
     112  AC_LIBOBJ(error)
    93113fi
    94114
  • trunk/gsdl3/src/packages/mg/jni/Makefile.in

    r8208 r10191  
    2626AWK = @AWK@
    2727
     28JNIFLAGS=@JNIFLAGS@
     29JNISUFFIX=@JNISUFFIX@
     30JNIINC=@JNIINC@
    2831datadir = $(prefix)/share
    2932libexecdir = $(exec_prefix)/libexec
     
    3942    $(CCOMPILE) $<
    4043
    41 
    42 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
     44# can we get rid of JAVA_HOME from here??
     45INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(JNIINC)
    4346
    4447all: compile link
     
    4851
    4952link:
    50     $(CC) $(LDFLAGS) -shared -o libmgjni.so MGWrapperImpl.o $(QUERY_LIBS)
    51     $(CC) $(LDFLAGS) -shared -o libmgpassjni.so  MGPassesWrapperImpl.o  $(PASSES_LIBS)
     53    $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgjni.$(JNISUFFIX) MGWrapperImpl.o $(QUERY_LIBS)
     54    $(CC) $(LDFLAGS)  $(JNIFLAGS) -o libmgpassjni.$(JNISUFFIX)  MGPassesWrapperImpl.o  $(PASSES_LIBS)
    5255
    5356clean:
    54     rm -rf *.o libmgjni.so libmgpassjni.so
     57    rm -rf *.o libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX)
    5558
    5659distclean: clean
     
    5962install:
    6063    ../mkinstalldirs $(libdir); \
    61     cp libmgjni.so libmgpassjni.so  $(libdir)/;
     64    cp libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX)  $(libdir)/;
    6265
    6366
  • trunk/indexers/mg/configure

    r3745 r10191  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by Autoconf 2.50.
     3# Generated by GNU Autoconf 2.59.
    44#
    5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    6 # Free Software Foundation, Inc.
     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.
     8## --------------------- ##
     9## M4sh Initialization.  ##
     10## --------------------- ##
    911
    1012# Be Bourne compatible
     
    1214  emulate sh
    1315  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+"$@"}'='"$@"'
    1419elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    1520  set -o posix
    1621fi
     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
    1764
    1865# Name of the executable.
    19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
     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
    20193
    21194if expr a : '\(a\)' >/dev/null 2>&1; then
     
    43216rm -f conf$$ conf$$.exe conf$$.file
    44217
     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
    45225as_executable_p="test -f"
    46226
    47 # Support unset when possible.
    48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    49   as_unset=unset
    50 else
    51   as_unset=false
    52 fi
    53 
    54 # NLS nuisances.
    55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     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
    63233
    64234# IFS
     
    69239
    70240# CDPATH.
    71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     241$as_unset CDPATH
     242
    72243
    73244# Name of the host.
     
    82253#
    83254ac_default_prefix=/usr/local
     255ac_config_libobj_dir=.
    84256cross_compiling=no
    85257subdirs=
    86 MFLAGS= MAKEFLAGS=
     258MFLAGS=
     259MAKEFLAGS=
    87260SHELL=${CONFIG_SHELL-/bin/sh}
    88261
     
    92265: ${ac_max_here_lines=38}
    93266
    94 # Avoid depending upon Character Ranges.
    95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
    96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    97 ac_cr_09='0123456789'
    98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
    99 
    100 # Sed expression to map a string onto a valid sh and CPP variable names.
    101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
    102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
     267# Identity of this package.
     268PACKAGE_NAME=
     269PACKAGE_TARNAME=
     270PACKAGE_VERSION=
     271PACKAGE_STRING=
     272PACKAGE_BUGREPORT=
    103273
    104274ac_unique_file="src/text/mgquery.c"
     
    106276ac_includes_default="\
    107277#include <stdio.h>
    108 #include <sys/types.h>
    109 #include <sys/stat.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
    110284#if STDC_HEADERS
    111285# include <stdlib.h>
     
    121295# endif
    122296# include <string.h>
    123 #else
    124 # if HAVE_STRINGS_H
    125 #  include <strings.h>
    126 # endif
     297#endif
     298#if HAVE_STRINGS_H
     299# include <strings.h>
    127300#endif
    128301#if HAVE_INTTYPES_H
    129302# include <inttypes.h>
     303#else
     304# if HAVE_STDINT_H
     305#  include <stdint.h>
     306# endif
    130307#endif
    131308#if HAVE_UNISTD_H
    132309# include <unistd.h>
    133310#endif"
     311
     312ac_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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS'
     313ac_subst_files=''
    134314
    135315# Initialize some variables set by options.
     
    171351mandir='${prefix}/man'
    172352
    173 # Identity of this package.
    174 PACKAGE_NAME=
    175 PACKAGE_TARNAME=
    176 PACKAGE_VERSION=
    177 PACKAGE_STRING=
    178 PACKAGE_BUGREPORT=
    179 
    180353ac_prev=
    181354for ac_option
     
    223396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    224397    # Reject names that are not valid shell variable names.
    225     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    226399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    227400   { (exit 1); exit 1; }; }
     
    232405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    233406    # Reject names that are not valid shell variable names.
    234     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    235408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    236409   { (exit 1); exit 1; }; }
     
    310483
    311484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    312   | --no-cr | --no-c)
     485  | --no-cr | --no-c | -n)
    313486    no_create=yes ;;
    314487
     
    414587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    415588    # Reject names that are not valid shell variable names.
    416     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    417590      { echo "$as_me: error: invalid package name: $ac_package" >&2
    418591   { (exit 1); exit 1; }; }
     
    427600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    428601    # Reject names that are not valid shell variable names.
    429     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    430603      { echo "$as_me: error: invalid package name: $ac_package" >&2
    431604   { (exit 1); exit 1; }; }
     
    459632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    460633    # Reject names that are not valid shell variable names.
    461     expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
     634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    462635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    463636   { (exit 1); exit 1; }; }
     
    469642    # FIXME: should be removed in autoconf 3.0.
    470643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    471     expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
     644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    472645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    473646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     
    484657
    485658# Be sure to have absolute paths.
     659for ac_var in exec_prefix prefix
     660do
     661  eval ac_val=$`echo $ac_var`
     662  case $ac_val in
     663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     665   { (exit 1); exit 1; }; };;
     666  esac
     667done
     668
     669# Be sure to have absolute paths.
    486670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    487               localstatedir libdir includedir oldincludedir infodir mandir \
    488               exec_prefix prefix
     671          localstatedir libdir includedir oldincludedir infodir mandir
    489672do
    490673  eval ac_val=$`echo $ac_var`
    491674  case $ac_val in
    492675    [\\/$]* | ?:[\\/]* ) ;;
    493     NONE ) ;;
    494     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
     676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    495677   { (exit 1); exit 1; }; };;
    496678  esac
     
    499681# There might be people who depend on the old broken behavior: `$host'
    500682# used to hold the argument of --host etc.
     683# FIXME: To remove some day.
    501684build=$build_alias
    502685host=$host_alias
    503686target=$target_alias
    504687
    505 # FIXME: should be removed in autoconf 3.0.
     688# FIXME: To remove some day.
    506689if test "x$host_alias" != x; then
    507690  if test "x$build_alias" = x; then
     
    519702test "$silent" = yes && exec 6>/dev/null
    520703
     704
    521705# Find the source files, if location was not specified.
    522706if test -z "$srcdir"; then
    523707  ac_srcdir_defaulted=yes
    524708  # Try the directory containing this script, then its parent.
    525   ac_prog=$0
    526   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    527   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
     709  ac_confdir=`(dirname "$0") 2>/dev/null ||
     710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     711     X"$0" : 'X\(//\)[^/]' \| \
     712     X"$0" : 'X\(//\)$' \| \
     713     X"$0" : 'X\(/\)' \| \
     714     .     : '\(.\)' 2>/dev/null ||
     715echo X"$0" |
     716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     717      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     718      /^X\(\/\/\)$/{ s//\1/; q; }
     719      /^X\(\/\).*/{ s//\1/; q; }
     720      s/.*/./; q'`
    528721  srcdir=$ac_confdir
    529722  if test ! -r $srcdir/$ac_unique_file; then
     
    535728if test ! -r $srcdir/$ac_unique_file; then
    536729  if test "$ac_srcdir_defaulted" = yes; then
    537     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
     730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    538731   { (exit 1); exit 1; }; }
    539732  else
    540     { echo "$as_me: error: cannot find sources in $srcdir" >&2
     733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    541734   { (exit 1); exit 1; }; }
    542735  fi
    543736fi
     737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     739   { (exit 1); exit 1; }; }
    544740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    545741ac_env_build_alias_set=${build_alias+set}
     
    590786  # Omit some internal or obsolete options to make the list less imposing.
    591787  # This message is too long to be a string in the A/UX 3.1 sh.
    592   cat <<EOF
     788  cat <<_ACEOF
    593789\`configure' configures this package to adapt to many kinds of systems.
    594790
     
    611807      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    612808
    613 EOF
    614 
    615   cat <<EOF
     809_ACEOF
     810
     811  cat <<_ACEOF
    616812Installation directories:
    617813  --prefix=PREFIX         install architecture-independent files in PREFIX
    618                           [$ac_default_prefix]
     814              [$ac_default_prefix]
    619815  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    620                           [PREFIX]
     816              [PREFIX]
    621817
    622818By default, \`make install' will install all the files in
     
    640836  --infodir=DIR          info documentation [PREFIX/info]
    641837  --mandir=DIR           man documentation [PREFIX/man]
    642 EOF
    643 
    644   cat <<\EOF
     838_ACEOF
     839
     840  cat <<\_ACEOF
    645841
    646842Program names:
     
    648844  --program-suffix=SUFFIX            append SUFFIX to installed program names
    649845  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    650 EOF
     846_ACEOF
    651847fi
    652848
    653849if test -n "$ac_init_help"; then
    654850
    655   cat <<\EOF
     851  cat <<\_ACEOF
    656852
    657853Optional Packages:
     
    676872it to find libraries and programs with nonstandard names/locations.
    677873
    678 EOF
     874_ACEOF
    679875fi
    680876
     
    682878  # If there are subdirs, report their specific --help.
    683879  ac_popdir=`pwd`
    684   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    685     cd $ac_subdir
    686     # A "../" for each directory in /$ac_subdir.
    687     ac_dots=`echo $ac_subdir |
    688              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    689 
    690     case $srcdir in
    691     .) # No --srcdir option.  We are building in place.
    692       ac_sub_srcdir=$srcdir ;;
    693     [\\/]* | ?:[\\/]* ) # Absolute path.
    694       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    695     *) # Relative path.
    696       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    697     esac
    698 
     880  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     881    test -d $ac_dir || continue
     882    ac_builddir=.
     883
     884if test "$ac_dir" != .; then
     885  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     886  # A "../" for each directory in $ac_dir_suffix.
     887  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     888else
     889  ac_dir_suffix= ac_top_builddir=
     890fi
     891
     892case $srcdir in
     893  .)  # No --srcdir option.  We are building in place.
     894    ac_srcdir=.
     895    if test -z "$ac_top_builddir"; then
     896       ac_top_srcdir=.
     897    else
     898       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     899    fi ;;
     900  [\\/]* | ?:[\\/]* )  # Absolute path.
     901    ac_srcdir=$srcdir$ac_dir_suffix;
     902    ac_top_srcdir=$srcdir ;;
     903  *) # Relative path.
     904    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     905    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     906esac
     907
     908# Do not use `cd foo && pwd` to compute absolute paths, because
     909# the directories may not exist.
     910case `pwd` in
     911.) ac_abs_builddir="$ac_dir";;
     912*)
     913  case "$ac_dir" in
     914  .) ac_abs_builddir=`pwd`;;
     915  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     916  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     917  esac;;
     918esac
     919case $ac_abs_builddir in
     920.) ac_abs_top_builddir=${ac_top_builddir}.;;
     921*)
     922  case ${ac_top_builddir}. in
     923  .) ac_abs_top_builddir=$ac_abs_builddir;;
     924  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     925  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     926  esac;;
     927esac
     928case $ac_abs_builddir in
     929.) ac_abs_srcdir=$ac_srcdir;;
     930*)
     931  case $ac_srcdir in
     932  .) ac_abs_srcdir=$ac_abs_builddir;;
     933  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     934  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     935  esac;;
     936esac
     937case $ac_abs_builddir in
     938.) ac_abs_top_srcdir=$ac_top_srcdir;;
     939*)
     940  case $ac_top_srcdir in
     941  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     942  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     943  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     944  esac;;
     945esac
     946
     947    cd $ac_dir
    699948    # Check for guested configure; otherwise get Cygnus style configure.
    700     if test -f $ac_sub_srcdir/configure.gnu; then
     949    if test -f $ac_srcdir/configure.gnu; then
    701950      echo
    702       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    703     elif test -f $ac_sub_srcdir/configure; then
     951      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     952    elif test -f $ac_srcdir/configure; then
    704953      echo
    705       $SHELL $ac_sub_srcdir/configure  --help=recursive
    706     elif test -f $ac_sub_srcdir/configure.ac ||
    707            test -f $ac_sub_srcdir/configure.in; then
     954      $SHELL $ac_srcdir/configure  --help=recursive
     955    elif test -f $ac_srcdir/configure.ac ||
     956       test -f $ac_srcdir/configure.in; then
    708957      echo
    709958      $ac_configure --help
    710959    else
    711       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
     960      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    712961    fi
    713962    cd $ac_popdir
     
    717966test -n "$ac_init_help" && exit 0
    718967if $ac_init_version; then
    719   cat <<\EOF
    720 
    721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    722 Free Software Foundation, Inc.
     968  cat <<\_ACEOF
     969
     970Copyright (C) 2003 Free Software Foundation, Inc.
    723971This configure script is free software; the Free Software Foundation
    724972gives unlimited permission to copy, distribute and modify it.
    725 EOF
     973_ACEOF
    726974  exit 0
    727975fi
    728976exec 5>config.log
    729 cat >&5 <<EOF
     977cat >&5 <<_ACEOF
    730978This file contains any messages produced by compilers while
    731979running configure, to aid debugging if configure makes a mistake.
    732980
    733981It was created by $as_me, which was
    734 generated by GNU Autoconf 2.50.  Invocation command line was
     982generated by GNU Autoconf 2.59.  Invocation command line was
    735983
    736984  $ $0 $@
    737985
    738 EOF
     986_ACEOF
    739987{
    740988cat <<_ASUNAME
    741 ## ---------- ##
    742 ## Platform.  ##
    743 ## ---------- ##
     989## --------- ##
     990## Platform. ##
     991## --------- ##
    744992
    745993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     
    7601008/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    7611009
    762 PATH = $PATH
    763 
    7641010_ASUNAME
     1011
     1012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1013for as_dir in $PATH
     1014do
     1015  IFS=$as_save_IFS
     1016  test -z "$as_dir" && as_dir=.
     1017  echo "PATH: $as_dir"
     1018done
     1019
    7651020} >&5
    7661021
    767 cat >&5 <<EOF
    768 ## ------------ ##
    769 ## Core tests.  ##
    770 ## ------------ ##
    771 
    772 EOF
     1022cat >&5 <<_ACEOF
     1023
     1024
     1025## ----------- ##
     1026## Core tests. ##
     1027## ----------- ##
     1028
     1029_ACEOF
     1030
    7731031
    7741032# Keep a trace of the command line.
    7751033# Strip out --no-create and --no-recursion so they do not pile up.
     1034# Strip out --silent because we don't want to record it for future runs.
    7761035# Also quote any args containing shell meta-characters.
     1036# Make two passes to allow for proper duplicate-argument suppression.
    7771037ac_configure_args=
     1038ac_configure_args0=
     1039ac_configure_args1=
    7781040ac_sep=
    779 for ac_arg
     1041ac_must_keep_next=false
     1042for ac_pass in 1 2
    7801043do
    781   case $ac_arg in
    782   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    783   | --no-cr | --no-c) ;;
    784   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    785   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    786   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    787     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    788     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    789     ac_sep=" " ;;
    790   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    791      ac_sep=" " ;;
    792   esac
    793   # Get rid of the leading space.
     1044  for ac_arg
     1045  do
     1046    case $ac_arg in
     1047    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1049    | -silent | --silent | --silen | --sile | --sil)
     1050      continue ;;
     1051    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1052      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1053    esac
     1054    case $ac_pass in
     1055    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1056    2)
     1057      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1058      if test $ac_must_keep_next = true; then
     1059    ac_must_keep_next=false # Got value, back to normal.
     1060      else
     1061    case $ac_arg in
     1062      *=* | --config-cache | -C | -disable-* | --disable-* \
     1063      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1064      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1065      | -with-* | --with-* | -without-* | --without-* | --x)
     1066        case "$ac_configure_args0 " in
     1067          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1068        esac
     1069        ;;
     1070      -* ) ac_must_keep_next=true ;;
     1071    esac
     1072      fi
     1073      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1074      # Get rid of the leading space.
     1075      ac_sep=" "
     1076      ;;
     1077    esac
     1078  done
    7941079done
     1080$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1081$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
    7951082
    7961083# When interrupted or exit'd, cleanup temporary files, and complete
    7971084# config.log.  We remove comments because anyway the quotes in there
    7981085# would cause problems or look ugly.
     1086# WARNING: Be sure not to use single quotes in there, as some shells,
     1087# such as our DU 5.0 friend, will then `close' the trap.
    7991088trap 'exit_status=$?
    8001089  # Save into config.log some information that might help in debugging.
    801   echo >&5
    802   echo "## ----------------- ##" >&5
    803   echo "## Cache variables.  ##" >&5
    804   echo "## ----------------- ##" >&5
    805   echo >&5
    806   # The following way of writing the cache mishandles newlines in values,
     1090  {
     1091    echo
     1092
     1093    cat <<\_ASBOX
     1094## ---------------- ##
     1095## Cache variables. ##
     1096## ---------------- ##
     1097_ASBOX
     1098    echo
     1099    # The following way of writing the cache mishandles newlines in values,
    8071100{
    8081101  (set) 2>&1 |
     
    8101103    *ac_space=\ *)
    8111104      sed -n \
    812         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    813           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1105    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1106      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    8141107      ;;
    8151108    *)
    8161109      sed -n \
    817         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1110    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    8181111      ;;
    8191112    esac;
    820 } >&5
    821   sed "/^$/d" confdefs.h >conftest.log
    822   if test -s conftest.log; then
    823     echo >&5
    824     echo "## ------------ ##" >&5
    825     echo "## confdefs.h.  ##" >&5
    826     echo "## ------------ ##" >&5
    827     echo >&5
    828     cat conftest.log >&5
    829   fi
    830   (echo; echo) >&5
    831   test "$ac_signal" != 0 &&
    832     echo "$as_me: caught signal $ac_signal" >&5
    833   echo "$as_me: exit $exit_status" >&5
    834   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
     1113}
     1114    echo
     1115
     1116    cat <<\_ASBOX
     1117## ----------------- ##
     1118## Output variables. ##
     1119## ----------------- ##
     1120_ASBOX
     1121    echo
     1122    for ac_var in $ac_subst_vars
     1123    do
     1124      eval ac_val=$`echo $ac_var`
     1125      echo "$ac_var='"'"'$ac_val'"'"'"
     1126    done | sort
     1127    echo
     1128
     1129    if test -n "$ac_subst_files"; then
     1130      cat <<\_ASBOX
     1131## ------------- ##
     1132## Output files. ##
     1133## ------------- ##
     1134_ASBOX
     1135      echo
     1136      for ac_var in $ac_subst_files
     1137      do
     1138    eval ac_val=$`echo $ac_var`
     1139    echo "$ac_var='"'"'$ac_val'"'"'"
     1140      done | sort
     1141      echo
     1142    fi
     1143
     1144    if test -s confdefs.h; then
     1145      cat <<\_ASBOX
     1146## ----------- ##
     1147## confdefs.h. ##
     1148## ----------- ##
     1149_ASBOX
     1150      echo
     1151      sed "/^$/d" confdefs.h | sort
     1152      echo
     1153    fi
     1154    test "$ac_signal" != 0 &&
     1155      echo "$as_me: caught signal $ac_signal"
     1156    echo "$as_me: exit $exit_status"
     1157  } >&5
     1158  rm -f core *.core &&
     1159  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    8351160    exit $exit_status
    8361161     ' 0
    8371162for ac_signal in 1 2 13 15; do
    838   trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
     1163  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    8391164done
    8401165ac_signal=0
     
    8441169# AIX cpp loses on an empty file, so make sure it contains at least a newline.
    8451170echo >confdefs.h
     1171
     1172# Predefined preprocessor variables.
     1173
     1174cat >>confdefs.h <<_ACEOF
     1175#define PACKAGE_NAME "$PACKAGE_NAME"
     1176_ACEOF
     1177
     1178
     1179cat >>confdefs.h <<_ACEOF
     1180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1181_ACEOF
     1182
     1183
     1184cat >>confdefs.h <<_ACEOF
     1185#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1186_ACEOF
     1187
     1188
     1189cat >>confdefs.h <<_ACEOF
     1190#define PACKAGE_STRING "$PACKAGE_STRING"
     1191_ACEOF
     1192
     1193
     1194cat >>confdefs.h <<_ACEOF
     1195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1196_ACEOF
     1197
    8461198
    8471199# Let the site file select an alternate cache file if it wants to.
     
    8561208for ac_site_file in $CONFIG_SITE; do
    8571209  if test -r "$ac_site_file"; then
    858     { echo "$as_me:858: loading site script $ac_site_file" >&5
     1210    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    8591211echo "$as_me: loading site script $ac_site_file" >&6;}
    860     cat "$ac_site_file" >&5
     1212    sed 's/^/| /' "$ac_site_file" >&5
    8611213    . "$ac_site_file"
    8621214  fi
     
    8671219  # files actually), so we avoid doing that.
    8681220  if test -f "$cache_file"; then
    869     { echo "$as_me:869: loading cache $cache_file" >&5
     1221    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    8701222echo "$as_me: loading cache $cache_file" >&6;}
    8711223    case $cache_file in
     
    8751227  fi
    8761228else
    877   { echo "$as_me:877: creating cache $cache_file" >&5
     1229  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    8781230echo "$as_me: creating cache $cache_file" >&6;}
    8791231  >$cache_file
     
    8821234# Check that the precious variables saved in the cache have kept the same
    8831235# value.
    884 ac_suggest_removing_cache=false
     1236ac_cache_corrupted=false
    8851237for ac_var in `(set) 2>&1 |
    886                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1238           sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    8871239  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    8881240  eval ac_new_set=\$ac_env_${ac_var}_set
     
    8911243  case $ac_old_set,$ac_new_set in
    8921244    set,)
    893       { echo "$as_me:893: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    894 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    895       ac_suggest_removing_cache=: ;;
     1245      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1246echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1247      ac_cache_corrupted=: ;;
    8961248    ,set)
    897       { echo "$as_me:897: WARNING: \`$ac_var' was not set in the previous run" >&5
    898 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
    899       ac_suggest_removing_cache=: ;;
     1249      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1250echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1251      ac_cache_corrupted=: ;;
    9001252    ,);;
    9011253    *)
    9021254      if test "x$ac_old_val" != "x$ac_new_val"; then
    903         { echo "$as_me:903: WARNING: \`$ac_var' has changed since the previous run:" >&5
    904 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
    905         { echo "$as_me:905: WARNING:   former value:  $ac_old_val" >&5
    906 echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
    907         { echo "$as_me:907: WARNING:   current value: $ac_new_val" >&5
    908 echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
    909         ac_suggest_removing_cache=:
     1255    { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1256echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1257    { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1258echo "$as_me:   former value:  $ac_old_val" >&2;}
     1259    { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1260echo "$as_me:   current value: $ac_new_val" >&2;}
     1261    ac_cache_corrupted=:
    9101262      fi;;
    9111263  esac
     1264  # Pass precious variables to config.status.
     1265  if test "$ac_new_set" = set; then
     1266    case $ac_new_val in
     1267    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1268      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1269    *) ac_arg=$ac_var=$ac_new_val ;;
     1270    esac
     1271    case " $ac_configure_args " in
     1272      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1273      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1274    esac
     1275  fi
    9121276done
    913 if $ac_suggest_removing_cache; then
    914   { echo "$as_me:914: WARNING: changes in the environment can compromise the build" >&5
    915 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
    916   { echo "$as_me:916: WARNING: consider removing $cache_file and starting over" >&5
    917 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
     1277if $ac_cache_corrupted; then
     1278  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1279echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1280  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1281echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1282   { (exit 1); exit 1; }; }
    9181283fi
    9191284
     
    9241289ac_compiler_gnu=$ac_cv_c_compiler_gnu
    9251290
    926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    927   *c*,-n*) ECHO_N= ECHO_C='
    928 ' ECHO_T='  ' ;;
    929   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    930   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
    931 esac
    932 echo "#! $SHELL" >conftest.sh
    933 echo  "exit 0"   >>conftest.sh
    934 chmod +x conftest.sh
    935 if { (echo "$as_me:935: PATH=\".;.\"; conftest.sh") >&5
    936   (PATH=".;."; conftest.sh) 2>&5
    937   ac_status=$?
    938   echo "$as_me:938: \$? = $ac_status" >&5
    939   (exit $ac_status); }; then
    940   ac_path_separator=';'
    941 else
    942   ac_path_separator=:
    943 fi
    944 PATH_SEPARATOR="$ac_path_separator"
    945 rm -f conftest.sh
    946 
    947 ac_config_headers="$ac_config_headers config.h"
    948 
    949 if test "$program_transform_name" = s,x,x,; then
    950   program_transform_name=
    951 else
    952   # Double any \ or $.  echo might interpret backslashes.
    953   cat <<\EOF >conftest.sed
    954 s,\\,\\\\,g; s,\$,$$,g
    955 EOF
    956   program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    957   rm -f conftest.sed
    958 fi
     1291
     1292
     1293
     1294
     1295
     1296
     1297
     1298
     1299
     1300
     1301
     1302
     1303
     1304
     1305
     1306
     1307
     1308
     1309          ac_config_headers="$ac_config_headers config.h"
     1310
    9591311test "$program_prefix" != NONE &&
    960   program_transform_name="s,^,${program_prefix},;$program_transform_name"
     1312  program_transform_name="s,^,$program_prefix,;$program_transform_name"
    9611313# Use a double $ so make ignores it.
    9621314test "$program_suffix" != NONE &&
    963   program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
    964 
    965 # sed with no file args requires a program.
    966 test -z "$program_transform_name" && program_transform_name="s,x,x,"
     1315  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
     1316# Double any \ or $.  echo might interpret backslashes.
     1317# By default was `s,x,x', remove it if useless.
     1318cat <<\_ACEOF >conftest.sed
     1319s/[\\$]/&&/g;s/;s,x,x,$//
     1320_ACEOF
     1321program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     1322rm conftest.sed
     1323
    9671324
    9681325PACKAGE=mg
    9691326VERSION=1.2
    9701327
    971 cat >>confdefs.h <<EOF
     1328LDFLAGS=
     1329
     1330cat >>confdefs.h <<_ACEOF
    9721331#define PACKAGE "$PACKAGE"
    973 EOF
    974 
    975 cat >>confdefs.h <<EOF
     1332_ACEOF
     1333
     1334cat >>confdefs.h <<_ACEOF
    9761335#define VERSION "$VERSION"
    977 EOF
     1336_ACEOF
     1337
     1338
     1339
    9781340
    9791341ac_ext=cc
     
    9831345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    9841346if test -n "$ac_tool_prefix"; then
    985   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1347  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    9861348  do
    9871349    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    9881350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    989 echo "$as_me:989: checking for $ac_word" >&5
     1351echo "$as_me:$LINENO: checking for $ac_word" >&5
    9901352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    9911353if test "${ac_cv_prog_CXX+set}" = set; then
     
    9951357  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    9961358else
    997   ac_save_IFS=$IFS; IFS=$ac_path_separator
    998 ac_dummy="$PATH"
    999 for ac_dir in $ac_dummy; do
    1000   IFS=$ac_save_IFS
    1001   test -z "$ac_dir" && ac_dir=.
    1002   $as_executable_p "$ac_dir/$ac_word" || continue
    1003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    1004 echo "$as_me:1004: found $ac_dir/$ac_word" >&5
    1005 break
     1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1360for as_dir in $PATH
     1361do
     1362  IFS=$as_save_IFS
     1363  test -z "$as_dir" && as_dir=.
     1364  for ac_exec_ext in '' $ac_executable_extensions; do
     1365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1366    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1368    break 2
     1369  fi
     1370done
    10061371done
    10071372
     
    10101375CXX=$ac_cv_prog_CXX
    10111376if test -n "$CXX"; then
    1012   echo "$as_me:1012: result: $CXX" >&5
     1377  echo "$as_me:$LINENO: result: $CXX" >&5
    10131378echo "${ECHO_T}$CXX" >&6
    10141379else
    1015   echo "$as_me:1015: result: no" >&5
     1380  echo "$as_me:$LINENO: result: no" >&5
    10161381echo "${ECHO_T}no" >&6
    10171382fi
     
    10221387if test -z "$CXX"; then
    10231388  ac_ct_CXX=$CXX
    1024   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
     1389  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    10251390do
    10261391  # Extract the first word of "$ac_prog", so it can be a program name with args.
    10271392set dummy $ac_prog; ac_word=$2
    1028 echo "$as_me:1028: checking for $ac_word" >&5
     1393echo "$as_me:$LINENO: checking for $ac_word" >&5
    10291394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    10301395if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     
    10341399  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    10351400else
    1036   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1037 ac_dummy="$PATH"
    1038 for ac_dir in $ac_dummy; do
    1039   IFS=$ac_save_IFS
    1040   test -z "$ac_dir" && ac_dir=.
    1041   $as_executable_p "$ac_dir/$ac_word" || continue
    1042 ac_cv_prog_ac_ct_CXX="$ac_prog"
    1043 echo "$as_me:1043: found $ac_dir/$ac_word" >&5
    1044 break
     1401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1402for as_dir in $PATH
     1403do
     1404  IFS=$as_save_IFS
     1405  test -z "$as_dir" && as_dir=.
     1406  for ac_exec_ext in '' $ac_executable_extensions; do
     1407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1408    ac_cv_prog_ac_ct_CXX="$ac_prog"
     1409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1410    break 2
     1411  fi
     1412done
    10451413done
    10461414
     
    10491417ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    10501418if test -n "$ac_ct_CXX"; then
    1051   echo "$as_me:1051: result: $ac_ct_CXX" >&5
     1419  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    10521420echo "${ECHO_T}$ac_ct_CXX" >&6
    10531421else
    1054   echo "$as_me:1054: result: no" >&5
     1422  echo "$as_me:$LINENO: result: no" >&5
    10551423echo "${ECHO_T}no" >&6
    10561424fi
     
    10631431fi
    10641432
     1433
     1434# Provide some information about the compiler.
     1435echo "$as_me:$LINENO:" \
     1436     "checking for C++ compiler version" >&5
     1437ac_compiler=`set X $ac_compile; echo $2`
     1438{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1439  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1440  ac_status=$?
     1441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1442  (exit $ac_status); }
     1443{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1444  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1445  ac_status=$?
     1446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1447  (exit $ac_status); }
     1448{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1449  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1450  ac_status=$?
     1451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1452  (exit $ac_status); }
     1453
    10651454cat >conftest.$ac_ext <<_ACEOF
    1066 #line 1066 "configure"
    1067 #include "confdefs.h"
     1455/* confdefs.h.  */
     1456_ACEOF
     1457cat confdefs.h >>conftest.$ac_ext
     1458cat >>conftest.$ac_ext <<_ACEOF
     1459/* end confdefs.h.  */
    10681460
    10691461int
     
    10761468_ACEOF
    10771469ac_clean_files_save=$ac_clean_files
    1078 ac_clean_files="$ac_clean_files a.out a.exe"
     1470ac_clean_files="$ac_clean_files a.out a.exe b.out"
    10791471# Try to create an executable without -o first, disregard a.out.
    1080 # It will help us diagnose broken compiler, and finding out an intuition
     1472# It will help us diagnose broken compilers, and finding out an intuition
    10811473# of exeext.
    1082 echo "$as_me:1082: checking for C++ compiler default output" >&5
    1083 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
     1474echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
     1475echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
    10841476ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1085 if { (eval echo "$as_me:1085: \"$ac_link_default\"") >&5
     1477if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    10861478  (eval $ac_link_default) 2>&5
    10871479  ac_status=$?
    1088   echo "$as_me:1088: \$? = $ac_status" >&5
     1480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10891481  (exit $ac_status); }; then
    1090   for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
     1482  # Find the output, starting from the most likely.  This scheme is
     1483# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1484# resort.
     1485
     1486# Be careful to initialize this variable, since it used to be cached.
     1487# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1488ac_cv_exeext=
     1489# b.out is created by i960 compilers.
     1490for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1491do
     1492  test -f "$ac_file" || continue
    10911493  case $ac_file in
    1092     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    1093     a.out ) # We found the default executable, but exeext='' is most
    1094             # certainly right.
    1095             break;;
    1096     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1097           export ac_cv_exeext
    1098           break;;
    1099     * ) break;;
     1494    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1495    ;;
     1496    conftest.$ac_ext )
     1497    # This is the source file.
     1498    ;;
     1499    [ab].out )
     1500    # We found the default executable, but exeext='' is most
     1501    # certainly right.
     1502    break;;
     1503    *.* )
     1504    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1505    # FIXME: I believe we export ac_cv_exeext for Libtool,
     1506    # but it would be cool to find out if it's true.  Does anybody
     1507    # maintain Libtool? --akim.
     1508    export ac_cv_exeext
     1509    break;;
     1510    * )
     1511    break;;
    11001512  esac
    11011513done
    11021514else
    11031515  echo "$as_me: failed program was:" >&5
    1104 cat conftest.$ac_ext >&5
    1105 { { echo "$as_me:1105: error: C++ compiler cannot create executables" >&5
    1106 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
     1516sed 's/^/| /' conftest.$ac_ext >&5
     1517
     1518{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
     1519See \`config.log' for more details." >&5
     1520echo "$as_me: error: C++ compiler cannot create executables
     1521See \`config.log' for more details." >&2;}
    11071522   { (exit 77); exit 77; }; }
    11081523fi
    11091524
    11101525ac_exeext=$ac_cv_exeext
    1111 echo "$as_me:1111: result: $ac_file" >&5
     1526echo "$as_me:$LINENO: result: $ac_file" >&5
    11121527echo "${ECHO_T}$ac_file" >&6
    11131528
    11141529# Check the compiler produces executables we can run.  If not, either
    11151530# the compiler is broken, or we cross compile.
    1116 echo "$as_me:1116: checking whether the C++ compiler works" >&5
     1531echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
    11171532echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
    11181533# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     
    11201535if test "$cross_compiling" != yes; then
    11211536  if { ac_try='./$ac_file'
    1122   { (eval echo "$as_me:1122: \"$ac_try\"") >&5
    1123   (eval $ac_try) 2>&5
    1124   ac_status=$?
    1125   echo "$as_me:1125: \$? = $ac_status" >&5
     1537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1538  (eval $ac_try) 2>&5
     1539  ac_status=$?
     1540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11261541  (exit $ac_status); }; }; then
    11271542    cross_compiling=no
     
    11301545    cross_compiling=yes
    11311546    else
    1132     { { echo "$as_me:1132: error: cannot run C++ compiled programs.
    1133 If you meant to cross compile, use \`--host'." >&5
     1547    { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
     1548If you meant to cross compile, use \`--host'.
     1549See \`config.log' for more details." >&5
    11341550echo "$as_me: error: cannot run C++ compiled programs.
    1135 If you meant to cross compile, use \`--host'." >&2;}
     1551If you meant to cross compile, use \`--host'.
     1552See \`config.log' for more details." >&2;}
    11361553   { (exit 1); exit 1; }; }
    11371554    fi
    11381555  fi
    11391556fi
    1140 echo "$as_me:1140: result: yes" >&5
     1557echo "$as_me:$LINENO: result: yes" >&5
    11411558echo "${ECHO_T}yes" >&6
    11421559
    1143 rm -f a.out a.exe conftest$ac_cv_exeext
     1560rm -f a.out a.exe conftest$ac_cv_exeext b.out
    11441561ac_clean_files=$ac_clean_files_save
    11451562# Check the compiler produces executables we can run.  If not, either
    11461563# the compiler is broken, or we cross compile.
    1147 echo "$as_me:1147: checking whether we are cross compiling" >&5
     1564echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    11481565echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1149 echo "$as_me:1149: result: $cross_compiling" >&5
     1566echo "$as_me:$LINENO: result: $cross_compiling" >&5
    11501567echo "${ECHO_T}$cross_compiling" >&6
    11511568
    1152 echo "$as_me:1152: checking for executable suffix" >&5
    1153 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
    1154 if { (eval echo "$as_me:1154: \"$ac_link\"") >&5
     1569echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1570echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    11551572  (eval $ac_link) 2>&5
    11561573  ac_status=$?
    1157   echo "$as_me:1157: \$? = $ac_status" >&5
     1574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11581575  (exit $ac_status); }; then
    11591576  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     
    11611578# work properly (i.e., refer to `conftest.exe'), while it won't with
    11621579# `rm'.
    1163 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     1580for ac_file in conftest.exe conftest conftest.*; do
     1581  test -f "$ac_file" || continue
    11641582  case $ac_file in
    1165     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1583    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    11661584    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1167           export ac_cv_exeext
    1168           break;;
     1585      export ac_cv_exeext
     1586      break;;
    11691587    * ) break;;
    11701588  esac
    11711589done
    11721590else
    1173   { { echo "$as_me:1173: error: cannot compute EXEEXT: cannot compile and link" >&5
    1174 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
     1591  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1592See \`config.log' for more details." >&5
     1593echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1594See \`config.log' for more details." >&2;}
    11751595   { (exit 1); exit 1; }; }
    11761596fi
    11771597
    11781598rm -f conftest$ac_cv_exeext
    1179 echo "$as_me:1179: result: $ac_cv_exeext" >&5
     1599echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    11801600echo "${ECHO_T}$ac_cv_exeext" >&6
    11811601
     
    11831603EXEEXT=$ac_cv_exeext
    11841604ac_exeext=$EXEEXT
    1185 echo "$as_me:1185: checking for object suffix" >&5
    1186 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
     1605echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1606echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    11871607if test "${ac_cv_objext+set}" = set; then
    11881608  echo $ECHO_N "(cached) $ECHO_C" >&6
    11891609else
    11901610  cat >conftest.$ac_ext <<_ACEOF
    1191 #line 1191 "configure"
    1192 #include "confdefs.h"
     1611/* confdefs.h.  */
     1612_ACEOF
     1613cat confdefs.h >>conftest.$ac_ext
     1614cat >>conftest.$ac_ext <<_ACEOF
     1615/* end confdefs.h.  */
    11931616
    11941617int
     
    12011624_ACEOF
    12021625rm -f conftest.o conftest.obj
    1203 if { (eval echo "$as_me:1203: \"$ac_compile\"") >&5
     1626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    12041627  (eval $ac_compile) 2>&5
    12051628  ac_status=$?
    1206   echo "$as_me:1206: \$? = $ac_status" >&5
     1629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12071630  (exit $ac_status); }; then
    12081631  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    12091632  case $ac_file in
    1210     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1633    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    12111634    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    12121635       break;;
     
    12151638else
    12161639  echo "$as_me: failed program was:" >&5
    1217 cat conftest.$ac_ext >&5
    1218 { { echo "$as_me:1218: error: cannot compute OBJEXT: cannot compile" >&5
    1219 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
     1640sed 's/^/| /' conftest.$ac_ext >&5
     1641
     1642{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1643See \`config.log' for more details." >&5
     1644echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1645See \`config.log' for more details." >&2;}
    12201646   { (exit 1); exit 1; }; }
    12211647fi
     
    12231649rm -f conftest.$ac_cv_objext conftest.$ac_ext
    12241650fi
    1225 echo "$as_me:1225: result: $ac_cv_objext" >&5
     1651echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    12261652echo "${ECHO_T}$ac_cv_objext" >&6
    12271653OBJEXT=$ac_cv_objext
    12281654ac_objext=$OBJEXT
    1229 echo "$as_me:1229: checking whether we are using the GNU C++ compiler" >&5
     1655echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    12301656echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    12311657if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     
    12331659else
    12341660  cat >conftest.$ac_ext <<_ACEOF
    1235 #line 1235 "configure"
    1236 #include "confdefs.h"
     1661/* confdefs.h.  */
     1662_ACEOF
     1663cat confdefs.h >>conftest.$ac_ext
     1664cat >>conftest.$ac_ext <<_ACEOF
     1665/* end confdefs.h.  */
    12371666
    12381667int
     
    12481677_ACEOF
    12491678rm -f conftest.$ac_objext
    1250 if { (eval echo "$as_me:1250: \"$ac_compile\"") >&5
    1251   (eval $ac_compile) 2>&5
    1252   ac_status=$?
    1253   echo "$as_me:1253: \$? = $ac_status" >&5
     1679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1680  (eval $ac_compile) 2>conftest.er1
     1681  ac_status=$?
     1682  grep -v '^ *+' conftest.er1 >conftest.err
     1683  rm -f conftest.er1
     1684  cat conftest.err >&5
     1685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12541686  (exit $ac_status); } &&
    1255          { ac_try='test -s conftest.$ac_objext'
    1256   { (eval echo "$as_me:1256: \"$ac_try\"") >&5
    1257   (eval $ac_try) 2>&5
    1258   ac_status=$?
    1259   echo "$as_me:1259: \$? = $ac_status" >&5
     1687     { ac_try='test -z "$ac_cxx_werror_flag"
     1688             || test ! -s conftest.err'
     1689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1690  (eval $ac_try) 2>&5
     1691  ac_status=$?
     1692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1693  (exit $ac_status); }; } &&
     1694     { ac_try='test -s conftest.$ac_objext'
     1695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1696  (eval $ac_try) 2>&5
     1697  ac_status=$?
     1698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12601699  (exit $ac_status); }; }; then
    12611700  ac_compiler_gnu=yes
    12621701else
    12631702  echo "$as_me: failed program was:" >&5
    1264 cat conftest.$ac_ext >&5
     1703sed 's/^/| /' conftest.$ac_ext >&5
     1704
    12651705ac_compiler_gnu=no
    12661706fi
    1267 rm -f conftest.$ac_objext conftest.$ac_ext
     1707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    12681708ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    12691709
    12701710fi
    1271 echo "$as_me:1271: result: $ac_cv_cxx_compiler_gnu" >&5
     1711echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    12721712echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    12731713GXX=`test $ac_compiler_gnu = yes && echo yes`
     
    12751715ac_save_CXXFLAGS=$CXXFLAGS
    12761716CXXFLAGS="-g"
    1277 echo "$as_me:1277: checking whether $CXX accepts -g" >&5
     1717echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    12781718echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    12791719if test "${ac_cv_prog_cxx_g+set}" = set; then
     
    12811721else
    12821722  cat >conftest.$ac_ext <<_ACEOF
    1283 #line 1283 "configure"
    1284 #include "confdefs.h"
     1723/* confdefs.h.  */
     1724_ACEOF
     1725cat confdefs.h >>conftest.$ac_ext
     1726cat >>conftest.$ac_ext <<_ACEOF
     1727/* end confdefs.h.  */
    12851728
    12861729int
     
    12931736_ACEOF
    12941737rm -f conftest.$ac_objext
    1295 if { (eval echo "$as_me:1295: \"$ac_compile\"") >&5
    1296   (eval $ac_compile) 2>&5
    1297   ac_status=$?
    1298   echo "$as_me:1298: \$? = $ac_status" >&5
     1738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1739  (eval $ac_compile) 2>conftest.er1
     1740  ac_status=$?
     1741  grep -v '^ *+' conftest.er1 >conftest.err
     1742  rm -f conftest.er1
     1743  cat conftest.err >&5
     1744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12991745  (exit $ac_status); } &&
    1300          { ac_try='test -s conftest.$ac_objext'
    1301   { (eval echo "$as_me:1301: \"$ac_try\"") >&5
    1302   (eval $ac_try) 2>&5
    1303   ac_status=$?
    1304   echo "$as_me:1304: \$? = $ac_status" >&5
     1746     { ac_try='test -z "$ac_cxx_werror_flag"
     1747             || test ! -s conftest.err'
     1748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1749  (eval $ac_try) 2>&5
     1750  ac_status=$?
     1751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1752  (exit $ac_status); }; } &&
     1753     { ac_try='test -s conftest.$ac_objext'
     1754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1755  (eval $ac_try) 2>&5
     1756  ac_status=$?
     1757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13051758  (exit $ac_status); }; }; then
    13061759  ac_cv_prog_cxx_g=yes
    13071760else
    13081761  echo "$as_me: failed program was:" >&5
    1309 cat conftest.$ac_ext >&5
     1762sed 's/^/| /' conftest.$ac_ext >&5
     1763
    13101764ac_cv_prog_cxx_g=no
    13111765fi
    1312 rm -f conftest.$ac_objext conftest.$ac_ext
    1313 fi
    1314 echo "$as_me:1314: result: $ac_cv_prog_cxx_g" >&5
     1766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1767fi
     1768echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    13151769echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    13161770if test "$ac_test_CXXFLAGS" = set; then
     
    13301784fi
    13311785for ac_declaration in \
    1332    ''\
    1333    '#include <stdlib.h>' \
     1786   '' \
    13341787   'extern "C" void std::exit (int) throw (); using std::exit;' \
    13351788   'extern "C" void std::exit (int); using std::exit;' \
     
    13391792do
    13401793  cat >conftest.$ac_ext <<_ACEOF
    1341 #line 1341 "configure"
    1342 #include "confdefs.h"
     1794/* confdefs.h.  */
     1795_ACEOF
     1796cat confdefs.h >>conftest.$ac_ext
     1797cat >>conftest.$ac_ext <<_ACEOF
     1798/* end confdefs.h.  */
     1799$ac_declaration
    13431800#include <stdlib.h>
     1801int
     1802main ()
     1803{
     1804exit (42);
     1805  ;
     1806  return 0;
     1807}
     1808_ACEOF
     1809rm -f conftest.$ac_objext
     1810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1811  (eval $ac_compile) 2>conftest.er1
     1812  ac_status=$?
     1813  grep -v '^ *+' conftest.er1 >conftest.err
     1814  rm -f conftest.er1
     1815  cat conftest.err >&5
     1816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1817  (exit $ac_status); } &&
     1818     { ac_try='test -z "$ac_cxx_werror_flag"
     1819             || test ! -s conftest.err'
     1820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1821  (eval $ac_try) 2>&5
     1822  ac_status=$?
     1823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1824  (exit $ac_status); }; } &&
     1825     { ac_try='test -s conftest.$ac_objext'
     1826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1827  (eval $ac_try) 2>&5
     1828  ac_status=$?
     1829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1830  (exit $ac_status); }; }; then
     1831  :
     1832else
     1833  echo "$as_me: failed program was:" >&5
     1834sed 's/^/| /' conftest.$ac_ext >&5
     1835
     1836continue
     1837fi
     1838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1839  cat >conftest.$ac_ext <<_ACEOF
     1840/* confdefs.h.  */
     1841_ACEOF
     1842cat confdefs.h >>conftest.$ac_ext
     1843cat >>conftest.$ac_ext <<_ACEOF
     1844/* end confdefs.h.  */
    13441845$ac_declaration
    13451846int
     
    13521853_ACEOF
    13531854rm -f conftest.$ac_objext
    1354 if { (eval echo "$as_me:1354: \"$ac_compile\"") >&5
    1355   (eval $ac_compile) 2>&5
    1356   ac_status=$?
    1357   echo "$as_me:1357: \$? = $ac_status" >&5
     1855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1856  (eval $ac_compile) 2>conftest.er1
     1857  ac_status=$?
     1858  grep -v '^ *+' conftest.er1 >conftest.err
     1859  rm -f conftest.er1
     1860  cat conftest.err >&5
     1861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13581862  (exit $ac_status); } &&
    1359          { ac_try='test -s conftest.$ac_objext'
    1360   { (eval echo "$as_me:1360: \"$ac_try\"") >&5
    1361   (eval $ac_try) 2>&5
    1362   ac_status=$?
    1363   echo "$as_me:1363: \$? = $ac_status" >&5
    1364   (exit $ac_status); }; }; then
    1365   :
    1366 else
    1367   echo "$as_me: failed program was:" >&5
    1368 cat conftest.$ac_ext >&5
    1369 continue
    1370 fi
    1371 rm -f conftest.$ac_objext conftest.$ac_ext
    1372   cat >conftest.$ac_ext <<_ACEOF
    1373 #line 1373 "configure"
    1374 #include "confdefs.h"
    1375 $ac_declaration
    1376 int
    1377 main ()
    1378 {
    1379 exit (42);
    1380   ;
    1381   return 0;
    1382 }
    1383 _ACEOF
    1384 rm -f conftest.$ac_objext
    1385 if { (eval echo "$as_me:1385: \"$ac_compile\"") >&5
    1386   (eval $ac_compile) 2>&5
    1387   ac_status=$?
    1388   echo "$as_me:1388: \$? = $ac_status" >&5
    1389   (exit $ac_status); } &&
    1390          { ac_try='test -s conftest.$ac_objext'
    1391   { (eval echo "$as_me:1391: \"$ac_try\"") >&5
    1392   (eval $ac_try) 2>&5
    1393   ac_status=$?
    1394   echo "$as_me:1394: \$? = $ac_status" >&5
     1863     { ac_try='test -z "$ac_cxx_werror_flag"
     1864             || test ! -s conftest.err'
     1865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1866  (eval $ac_try) 2>&5
     1867  ac_status=$?
     1868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1869  (exit $ac_status); }; } &&
     1870     { ac_try='test -s conftest.$ac_objext'
     1871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1872  (eval $ac_try) 2>&5
     1873  ac_status=$?
     1874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13951875  (exit $ac_status); }; }; then
    13961876  break
    13971877else
    13981878  echo "$as_me: failed program was:" >&5
    1399 cat conftest.$ac_ext >&5
    1400 fi
    1401 rm -f conftest.$ac_objext conftest.$ac_ext
     1879sed 's/^/| /' conftest.$ac_ext >&5
     1880
     1881fi
     1882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    14021883done
    1403 echo '#ifdef __cplusplus' >>confdefs.h
    1404 echo $ac_declaration      >>confdefs.h
    1405 echo '#endif'             >>confdefs.h
     1884rm -f conftest*
     1885if test -n "$ac_declaration"; then
     1886  echo '#ifdef __cplusplus' >>confdefs.h
     1887  echo $ac_declaration      >>confdefs.h
     1888  echo '#endif'             >>confdefs.h
     1889fi
    14061890
    14071891ac_ext=c
     
    14111895ac_compiler_gnu=$ac_cv_c_compiler_gnu
    14121896
    1413 for ac_prog in mawk gawk nawk awk
     1897for ac_prog in gawk mawk nawk awk
    14141898do
    14151899  # Extract the first word of "$ac_prog", so it can be a program name with args.
    14161900set dummy $ac_prog; ac_word=$2
    1417 echo "$as_me:1417: checking for $ac_word" >&5
     1901echo "$as_me:$LINENO: checking for $ac_word" >&5
    14181902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    14191903if test "${ac_cv_prog_AWK+set}" = set; then
     
    14231907  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    14241908else
    1425   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1426 ac_dummy="$PATH"
    1427 for ac_dir in $ac_dummy; do
    1428   IFS=$ac_save_IFS
    1429   test -z "$ac_dir" && ac_dir=.
    1430   $as_executable_p "$ac_dir/$ac_word" || continue
    1431 ac_cv_prog_AWK="$ac_prog"
    1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5
    1433 break
     1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1910for as_dir in $PATH
     1911do
     1912  IFS=$as_save_IFS
     1913  test -z "$as_dir" && as_dir=.
     1914  for ac_exec_ext in '' $ac_executable_extensions; do
     1915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1916    ac_cv_prog_AWK="$ac_prog"
     1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1918    break 2
     1919  fi
     1920done
    14341921done
    14351922
     
    14381925AWK=$ac_cv_prog_AWK
    14391926if test -n "$AWK"; then
    1440   echo "$as_me:1440: result: $AWK" >&5
     1927  echo "$as_me:$LINENO: result: $AWK" >&5
    14411928echo "${ECHO_T}$AWK" >&6
    14421929else
    1443   echo "$as_me:1443: result: no" >&5
     1930  echo "$as_me:$LINENO: result: no" >&5
    14441931echo "${ECHO_T}no" >&6
    14451932fi
     
    14521939  # Extract the first word of "$ac_prog", so it can be a program name with args.
    14531940set dummy $ac_prog; ac_word=$2
    1454 echo "$as_me:1454: checking for $ac_word" >&5
     1941echo "$as_me:$LINENO: checking for $ac_word" >&5
    14551942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    14561943if test "${ac_cv_prog_YACC+set}" = set; then
     
    14601947  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    14611948else
    1462   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1463 ac_dummy="$PATH"
    1464 for ac_dir in $ac_dummy; do
    1465   IFS=$ac_save_IFS
    1466   test -z "$ac_dir" && ac_dir=.
    1467   $as_executable_p "$ac_dir/$ac_word" || continue
    1468 ac_cv_prog_YACC="$ac_prog"
    1469 echo "$as_me:1469: found $ac_dir/$ac_word" >&5
    1470 break
     1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1950for as_dir in $PATH
     1951do
     1952  IFS=$as_save_IFS
     1953  test -z "$as_dir" && as_dir=.
     1954  for ac_exec_ext in '' $ac_executable_extensions; do
     1955  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1956    ac_cv_prog_YACC="$ac_prog"
     1957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1958    break 2
     1959  fi
     1960done
    14711961done
    14721962
     
    14751965YACC=$ac_cv_prog_YACC
    14761966if test -n "$YACC"; then
    1477   echo "$as_me:1477: result: $YACC" >&5
     1967  echo "$as_me:$LINENO: result: $YACC" >&5
    14781968echo "${ECHO_T}$YACC" >&6
    14791969else
    1480   echo "$as_me:1480: result: no" >&5
     1970  echo "$as_me:$LINENO: result: no" >&5
    14811971echo "${ECHO_T}no" >&6
    14821972fi
     
    14941984  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    14951985set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1496 echo "$as_me:1496: checking for $ac_word" >&5
     1986echo "$as_me:$LINENO: checking for $ac_word" >&5
    14971987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    14981988if test "${ac_cv_prog_CC+set}" = set; then
     
    15021992  ac_cv_prog_CC="$CC" # Let the user override the test.
    15031993else
    1504   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1505 ac_dummy="$PATH"
    1506 for ac_dir in $ac_dummy; do
    1507   IFS=$ac_save_IFS
    1508   test -z "$ac_dir" && ac_dir=.
    1509   $as_executable_p "$ac_dir/$ac_word" || continue
    1510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1511 echo "$as_me:1511: found $ac_dir/$ac_word" >&5
    1512 break
     1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1995for as_dir in $PATH
     1996do
     1997  IFS=$as_save_IFS
     1998  test -z "$as_dir" && as_dir=.
     1999  for ac_exec_ext in '' $ac_executable_extensions; do
     2000  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2001    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2003    break 2
     2004  fi
     2005done
    15132006done
    15142007
     
    15172010CC=$ac_cv_prog_CC
    15182011if test -n "$CC"; then
    1519   echo "$as_me:1519: result: $CC" >&5
     2012  echo "$as_me:$LINENO: result: $CC" >&5
    15202013echo "${ECHO_T}$CC" >&6
    15212014else
    1522   echo "$as_me:1522: result: no" >&5
     2015  echo "$as_me:$LINENO: result: no" >&5
    15232016echo "${ECHO_T}no" >&6
    15242017fi
     
    15292022  # Extract the first word of "gcc", so it can be a program name with args.
    15302023set dummy gcc; ac_word=$2
    1531 echo "$as_me:1531: checking for $ac_word" >&5
     2024echo "$as_me:$LINENO: checking for $ac_word" >&5
    15322025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15332026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    15372030  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    15382031else
    1539   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1540 ac_dummy="$PATH"
    1541 for ac_dir in $ac_dummy; do
    1542   IFS=$ac_save_IFS
    1543   test -z "$ac_dir" && ac_dir=.
    1544   $as_executable_p "$ac_dir/$ac_word" || continue
    1545 ac_cv_prog_ac_ct_CC="gcc"
    1546 echo "$as_me:1546: found $ac_dir/$ac_word" >&5
    1547 break
     2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2033for as_dir in $PATH
     2034do
     2035  IFS=$as_save_IFS
     2036  test -z "$as_dir" && as_dir=.
     2037  for ac_exec_ext in '' $ac_executable_extensions; do
     2038  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2039    ac_cv_prog_ac_ct_CC="gcc"
     2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2041    break 2
     2042  fi
     2043done
    15482044done
    15492045
     
    15522048ac_ct_CC=$ac_cv_prog_ac_ct_CC
    15532049if test -n "$ac_ct_CC"; then
    1554   echo "$as_me:1554: result: $ac_ct_CC" >&5
     2050  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    15552051echo "${ECHO_T}$ac_ct_CC" >&6
    15562052else
    1557   echo "$as_me:1557: result: no" >&5
     2053  echo "$as_me:$LINENO: result: no" >&5
    15582054echo "${ECHO_T}no" >&6
    15592055fi
     
    15682064  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    15692065set dummy ${ac_tool_prefix}cc; ac_word=$2
    1570 echo "$as_me:1570: checking for $ac_word" >&5
     2066echo "$as_me:$LINENO: checking for $ac_word" >&5
    15712067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15722068if test "${ac_cv_prog_CC+set}" = set; then
     
    15762072  ac_cv_prog_CC="$CC" # Let the user override the test.
    15772073else
    1578   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1579 ac_dummy="$PATH"
    1580 for ac_dir in $ac_dummy; do
    1581   IFS=$ac_save_IFS
    1582   test -z "$ac_dir" && ac_dir=.
    1583   $as_executable_p "$ac_dir/$ac_word" || continue
    1584 ac_cv_prog_CC="${ac_tool_prefix}cc"
    1585 echo "$as_me:1585: found $ac_dir/$ac_word" >&5
    1586 break
     2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2075for as_dir in $PATH
     2076do
     2077  IFS=$as_save_IFS
     2078  test -z "$as_dir" && as_dir=.
     2079  for ac_exec_ext in '' $ac_executable_extensions; do
     2080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2081    ac_cv_prog_CC="${ac_tool_prefix}cc"
     2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2083    break 2
     2084  fi
     2085done
    15872086done
    15882087
     
    15912090CC=$ac_cv_prog_CC
    15922091if test -n "$CC"; then
    1593   echo "$as_me:1593: result: $CC" >&5
     2092  echo "$as_me:$LINENO: result: $CC" >&5
    15942093echo "${ECHO_T}$CC" >&6
    15952094else
    1596   echo "$as_me:1596: result: no" >&5
     2095  echo "$as_me:$LINENO: result: no" >&5
    15972096echo "${ECHO_T}no" >&6
    15982097fi
     
    16032102  # Extract the first word of "cc", so it can be a program name with args.
    16042103set dummy cc; ac_word=$2
    1605 echo "$as_me:1605: checking for $ac_word" >&5
     2104echo "$as_me:$LINENO: checking for $ac_word" >&5
    16062105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    16072106if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    16112110  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    16122111else
    1613   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1614 ac_dummy="$PATH"
    1615 for ac_dir in $ac_dummy; do
    1616   IFS=$ac_save_IFS
    1617   test -z "$ac_dir" && ac_dir=.
    1618   $as_executable_p "$ac_dir/$ac_word" || continue
    1619 ac_cv_prog_ac_ct_CC="cc"
    1620 echo "$as_me:1620: found $ac_dir/$ac_word" >&5
    1621 break
     2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2113for as_dir in $PATH
     2114do
     2115  IFS=$as_save_IFS
     2116  test -z "$as_dir" && as_dir=.
     2117  for ac_exec_ext in '' $ac_executable_extensions; do
     2118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2119    ac_cv_prog_ac_ct_CC="cc"
     2120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2121    break 2
     2122  fi
     2123done
    16222124done
    16232125
     
    16262128ac_ct_CC=$ac_cv_prog_ac_ct_CC
    16272129if test -n "$ac_ct_CC"; then
    1628   echo "$as_me:1628: result: $ac_ct_CC" >&5
     2130  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    16292131echo "${ECHO_T}$ac_ct_CC" >&6
    16302132else
    1631   echo "$as_me:1631: result: no" >&5
     2133  echo "$as_me:$LINENO: result: no" >&5
    16322134echo "${ECHO_T}no" >&6
    16332135fi
     
    16422144  # Extract the first word of "cc", so it can be a program name with args.
    16432145set dummy cc; ac_word=$2
    1644 echo "$as_me:1644: checking for $ac_word" >&5
     2146echo "$as_me:$LINENO: checking for $ac_word" >&5
    16452147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    16462148if test "${ac_cv_prog_CC+set}" = set; then
     
    16512153else
    16522154  ac_prog_rejected=no
    1653   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1654 ac_dummy="$PATH"
    1655 for ac_dir in $ac_dummy; do
    1656   IFS=$ac_save_IFS
    1657   test -z "$ac_dir" && ac_dir=.
    1658   $as_executable_p "$ac_dir/$ac_word" || continue
    1659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    1660   ac_prog_rejected=yes
    1661   continue
    1662 fi
    1663 ac_cv_prog_CC="cc"
    1664 echo "$as_me:1664: found $ac_dir/$ac_word" >&5
    1665 break
     2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2156for as_dir in $PATH
     2157do
     2158  IFS=$as_save_IFS
     2159  test -z "$as_dir" && as_dir=.
     2160  for ac_exec_ext in '' $ac_executable_extensions; do
     2161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2162    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     2163       ac_prog_rejected=yes
     2164       continue
     2165     fi
     2166    ac_cv_prog_CC="cc"
     2167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2168    break 2
     2169  fi
     2170done
    16662171done
    16672172
     
    16752180    # first if we set CC to just the basename; use the full file name.
    16762181    shift
    1677     set dummy "$ac_dir/$ac_word" ${1+"$@"}
    1678     shift
    1679     ac_cv_prog_CC="$@"
     2182    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    16802183  fi
    16812184fi
     
    16842187CC=$ac_cv_prog_CC
    16852188if test -n "$CC"; then
    1686   echo "$as_me:1686: result: $CC" >&5
     2189  echo "$as_me:$LINENO: result: $CC" >&5
    16872190echo "${ECHO_T}$CC" >&6
    16882191else
    1689   echo "$as_me:1689: result: no" >&5
     2192  echo "$as_me:$LINENO: result: no" >&5
    16902193echo "${ECHO_T}no" >&6
    16912194fi
     
    16982201    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    16992202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1700 echo "$as_me:1700: checking for $ac_word" >&5
     2203echo "$as_me:$LINENO: checking for $ac_word" >&5
    17012204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    17022205if test "${ac_cv_prog_CC+set}" = set; then
     
    17062209  ac_cv_prog_CC="$CC" # Let the user override the test.
    17072210else
    1708   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1709 ac_dummy="$PATH"
    1710 for ac_dir in $ac_dummy; do
    1711   IFS=$ac_save_IFS
    1712   test -z "$ac_dir" && ac_dir=.
    1713   $as_executable_p "$ac_dir/$ac_word" || continue
    1714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1715 echo "$as_me:1715: found $ac_dir/$ac_word" >&5
    1716 break
     2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2212for as_dir in $PATH
     2213do
     2214  IFS=$as_save_IFS
     2215  test -z "$as_dir" && as_dir=.
     2216  for ac_exec_ext in '' $ac_executable_extensions; do
     2217  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2218    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     2219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2220    break 2
     2221  fi
     2222done
    17172223done
    17182224
     
    17212227CC=$ac_cv_prog_CC
    17222228if test -n "$CC"; then
    1723   echo "$as_me:1723: result: $CC" >&5
     2229  echo "$as_me:$LINENO: result: $CC" >&5
    17242230echo "${ECHO_T}$CC" >&6
    17252231else
    1726   echo "$as_me:1726: result: no" >&5
     2232  echo "$as_me:$LINENO: result: no" >&5
    17272233echo "${ECHO_T}no" >&6
    17282234fi
     
    17372243  # Extract the first word of "$ac_prog", so it can be a program name with args.
    17382244set dummy $ac_prog; ac_word=$2
    1739 echo "$as_me:1739: checking for $ac_word" >&5
     2245echo "$as_me:$LINENO: checking for $ac_word" >&5
    17402246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    17412247if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    17452251  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    17462252else
    1747   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1748 ac_dummy="$PATH"
    1749 for ac_dir in $ac_dummy; do
    1750   IFS=$ac_save_IFS
    1751   test -z "$ac_dir" && ac_dir=.
    1752   $as_executable_p "$ac_dir/$ac_word" || continue
    1753 ac_cv_prog_ac_ct_CC="$ac_prog"
    1754 echo "$as_me:1754: found $ac_dir/$ac_word" >&5
    1755 break
     2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2254for as_dir in $PATH
     2255do
     2256  IFS=$as_save_IFS
     2257  test -z "$as_dir" && as_dir=.
     2258  for ac_exec_ext in '' $ac_executable_extensions; do
     2259  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2260    ac_cv_prog_ac_ct_CC="$ac_prog"
     2261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2262    break 2
     2263  fi
     2264done
    17562265done
    17572266
     
    17602269ac_ct_CC=$ac_cv_prog_ac_ct_CC
    17612270if test -n "$ac_ct_CC"; then
    1762   echo "$as_me:1762: result: $ac_ct_CC" >&5
     2271  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    17632272echo "${ECHO_T}$ac_ct_CC" >&6
    17642273else
    1765   echo "$as_me:1765: result: no" >&5
     2274  echo "$as_me:$LINENO: result: no" >&5
    17662275echo "${ECHO_T}no" >&6
    17672276fi
     
    17752284fi
    17762285
    1777 test -z "$CC" && { { echo "$as_me:1777: error: no acceptable cc found in \$PATH" >&5
    1778 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
     2286
     2287test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2288See \`config.log' for more details." >&5
     2289echo "$as_me: error: no acceptable C compiler found in \$PATH
     2290See \`config.log' for more details." >&2;}
    17792291   { (exit 1); exit 1; }; }
    17802292
    1781 echo "$as_me:1781: checking whether we are using the GNU C compiler" >&5
     2293# Provide some information about the compiler.
     2294echo "$as_me:$LINENO:" \
     2295     "checking for C compiler version" >&5
     2296ac_compiler=`set X $ac_compile; echo $2`
     2297{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2298  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2299  ac_status=$?
     2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2301  (exit $ac_status); }
     2302{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2303  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2304  ac_status=$?
     2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2306  (exit $ac_status); }
     2307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2308  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2309  ac_status=$?
     2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2311  (exit $ac_status); }
     2312
     2313echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    17822314echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    17832315if test "${ac_cv_c_compiler_gnu+set}" = set; then
     
    17852317else
    17862318  cat >conftest.$ac_ext <<_ACEOF
    1787 #line 1787 "configure"
    1788 #include "confdefs.h"
     2319/* confdefs.h.  */
     2320_ACEOF
     2321cat confdefs.h >>conftest.$ac_ext
     2322cat >>conftest.$ac_ext <<_ACEOF
     2323/* end confdefs.h.  */
    17892324
    17902325int
     
    18002335_ACEOF
    18012336rm -f conftest.$ac_objext
    1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5
    1803   (eval $ac_compile) 2>&5
    1804   ac_status=$?
    1805   echo "$as_me:1805: \$? = $ac_status" >&5
     2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2338  (eval $ac_compile) 2>conftest.er1
     2339  ac_status=$?
     2340  grep -v '^ *+' conftest.er1 >conftest.err
     2341  rm -f conftest.er1
     2342  cat conftest.err >&5
     2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18062344  (exit $ac_status); } &&
    1807          { ac_try='test -s conftest.$ac_objext'
    1808   { (eval echo "$as_me:1808: \"$ac_try\"") >&5
    1809   (eval $ac_try) 2>&5
    1810   ac_status=$?
    1811   echo "$as_me:1811: \$? = $ac_status" >&5
     2345     { ac_try='test -z "$ac_c_werror_flag"
     2346             || test ! -s conftest.err'
     2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2348  (eval $ac_try) 2>&5
     2349  ac_status=$?
     2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2351  (exit $ac_status); }; } &&
     2352     { ac_try='test -s conftest.$ac_objext'
     2353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2354  (eval $ac_try) 2>&5
     2355  ac_status=$?
     2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18122357  (exit $ac_status); }; }; then
    18132358  ac_compiler_gnu=yes
    18142359else
    18152360  echo "$as_me: failed program was:" >&5
    1816 cat conftest.$ac_ext >&5
     2361sed 's/^/| /' conftest.$ac_ext >&5
     2362
    18172363ac_compiler_gnu=no
    18182364fi
    1819 rm -f conftest.$ac_objext conftest.$ac_ext
     2365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    18202366ac_cv_c_compiler_gnu=$ac_compiler_gnu
    18212367
    18222368fi
    1823 echo "$as_me:1823: result: $ac_cv_c_compiler_gnu" >&5
     2369echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    18242370echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    18252371GCC=`test $ac_compiler_gnu = yes && echo yes`
     
    18272373ac_save_CFLAGS=$CFLAGS
    18282374CFLAGS="-g"
    1829 echo "$as_me:1829: checking whether $CC accepts -g" >&5
     2375echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    18302376echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    18312377if test "${ac_cv_prog_cc_g+set}" = set; then
     
    18332379else
    18342380  cat >conftest.$ac_ext <<_ACEOF
    1835 #line 1835 "configure"
    1836 #include "confdefs.h"
     2381/* confdefs.h.  */
     2382_ACEOF
     2383cat confdefs.h >>conftest.$ac_ext
     2384cat >>conftest.$ac_ext <<_ACEOF
     2385/* end confdefs.h.  */
    18372386
    18382387int
     
    18452394_ACEOF
    18462395rm -f conftest.$ac_objext
    1847 if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5
    1848   (eval $ac_compile) 2>&5
    1849   ac_status=$?
    1850   echo "$as_me:1850: \$? = $ac_status" >&5
     2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2397  (eval $ac_compile) 2>conftest.er1
     2398  ac_status=$?
     2399  grep -v '^ *+' conftest.er1 >conftest.err
     2400  rm -f conftest.er1
     2401  cat conftest.err >&5
     2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18512403  (exit $ac_status); } &&
    1852          { ac_try='test -s conftest.$ac_objext'
    1853   { (eval echo "$as_me:1853: \"$ac_try\"") >&5
    1854   (eval $ac_try) 2>&5
    1855   ac_status=$?
    1856   echo "$as_me:1856: \$? = $ac_status" >&5
     2404     { ac_try='test -z "$ac_c_werror_flag"
     2405             || test ! -s conftest.err'
     2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2407  (eval $ac_try) 2>&5
     2408  ac_status=$?
     2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2410  (exit $ac_status); }; } &&
     2411     { ac_try='test -s conftest.$ac_objext'
     2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2413  (eval $ac_try) 2>&5
     2414  ac_status=$?
     2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18572416  (exit $ac_status); }; }; then
    18582417  ac_cv_prog_cc_g=yes
    18592418else
    18602419  echo "$as_me: failed program was:" >&5
    1861 cat conftest.$ac_ext >&5
     2420sed 's/^/| /' conftest.$ac_ext >&5
     2421
    18622422ac_cv_prog_cc_g=no
    18632423fi
    1864 rm -f conftest.$ac_objext conftest.$ac_ext
    1865 fi
    1866 echo "$as_me:1866: result: $ac_cv_prog_cc_g" >&5
     2424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2425fi
     2426echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    18672427echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    18682428if test "$ac_test_CFLAGS" = set; then
     
    18812441  fi
    18822442fi
    1883 # Some people use a C++ compiler to compile C.  Since we use `exit',
    1884 # in C++ we need to declare it.  In case someone uses the same compiler
    1885 # for both compiling C and C++ we need to have the C++ compiler decide
    1886 # the declaration of exit, since it's the most demanding environment.
    1887 cat >conftest.$ac_ext <<_ACEOF
    1888 #ifndef __cplusplus
    1889   choke me
    1890 #endif
    1891 _ACEOF
    1892 rm -f conftest.$ac_objext
    1893 if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5
    1894   (eval $ac_compile) 2>&5
    1895   ac_status=$?
    1896   echo "$as_me:1896: \$? = $ac_status" >&5
    1897   (exit $ac_status); } &&
    1898          { ac_try='test -s conftest.$ac_objext'
    1899   { (eval echo "$as_me:1899: \"$ac_try\"") >&5
    1900   (eval $ac_try) 2>&5
    1901   ac_status=$?
    1902   echo "$as_me:1902: \$? = $ac_status" >&5
    1903   (exit $ac_status); }; }; then
    1904   for ac_declaration in \
    1905    ''\
    1906    '#include <stdlib.h>' \
    1907    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1908    'extern "C" void std::exit (int); using std::exit;' \
    1909    'extern "C" void exit (int) throw ();' \
    1910    'extern "C" void exit (int);' \
    1911    'void exit (int);'
    1912 do
    1913   cat >conftest.$ac_ext <<_ACEOF
    1914 #line 1914 "configure"
    1915 #include "confdefs.h"
    1916 #include <stdlib.h>
    1917 $ac_declaration
    1918 int
    1919 main ()
    1920 {
    1921 exit (42);
    1922   ;
    1923   return 0;
    1924 }
    1925 _ACEOF
    1926 rm -f conftest.$ac_objext
    1927 if { (eval echo "$as_me:1927: \"$ac_compile\"") >&5
    1928   (eval $ac_compile) 2>&5
    1929   ac_status=$?
    1930   echo "$as_me:1930: \$? = $ac_status" >&5
    1931   (exit $ac_status); } &&
    1932          { ac_try='test -s conftest.$ac_objext'
    1933   { (eval echo "$as_me:1933: \"$ac_try\"") >&5
    1934   (eval $ac_try) 2>&5
    1935   ac_status=$?
    1936   echo "$as_me:1936: \$? = $ac_status" >&5
    1937   (exit $ac_status); }; }; then
    1938   :
    1939 else
    1940   echo "$as_me: failed program was:" >&5
    1941 cat conftest.$ac_ext >&5
    1942 continue
    1943 fi
    1944 rm -f conftest.$ac_objext conftest.$ac_ext
    1945   cat >conftest.$ac_ext <<_ACEOF
    1946 #line 1946 "configure"
    1947 #include "confdefs.h"
    1948 $ac_declaration
    1949 int
    1950 main ()
    1951 {
    1952 exit (42);
    1953   ;
    1954   return 0;
    1955 }
    1956 _ACEOF
    1957 rm -f conftest.$ac_objext
    1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
    1959   (eval $ac_compile) 2>&5
    1960   ac_status=$?
    1961   echo "$as_me:1961: \$? = $ac_status" >&5
    1962   (exit $ac_status); } &&
    1963          { ac_try='test -s conftest.$ac_objext'
    1964   { (eval echo "$as_me:1964: \"$ac_try\"") >&5
    1965   (eval $ac_try) 2>&5
    1966   ac_status=$?
    1967   echo "$as_me:1967: \$? = $ac_status" >&5
    1968   (exit $ac_status); }; }; then
    1969   break
    1970 else
    1971   echo "$as_me: failed program was:" >&5
    1972 cat conftest.$ac_ext >&5
    1973 fi
    1974 rm -f conftest.$ac_objext conftest.$ac_ext
    1975 done
    1976 echo '#ifdef __cplusplus' >>confdefs.h
    1977 echo $ac_declaration      >>confdefs.h
    1978 echo '#endif'             >>confdefs.h
    1979 
    1980 else
    1981   echo "$as_me: failed program was:" >&5
    1982 cat conftest.$ac_ext >&5
    1983 fi
    1984 rm -f conftest.$ac_objext conftest.$ac_ext
    1985 ac_ext=c
    1986 ac_cpp='$CPP $CPPFLAGS'
    1987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1990 
    1991 ac_aux_dir=
    1992 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    1993   if test -f $ac_dir/install-sh; then
    1994     ac_aux_dir=$ac_dir
    1995     ac_install_sh="$ac_aux_dir/install-sh -c"
    1996     break
    1997   elif test -f $ac_dir/install.sh; then
    1998     ac_aux_dir=$ac_dir
    1999     ac_install_sh="$ac_aux_dir/install.sh -c"
    2000     break
    2001   elif test -f $ac_dir/shtool; then
    2002     ac_aux_dir=$ac_dir
    2003     ac_install_sh="$ac_aux_dir/shtool install -c"
    2004     break
    2005   fi
    2006 done
    2007 if test -z "$ac_aux_dir"; then
    2008   { { echo "$as_me:2008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2009 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2010    { (exit 1); exit 1; }; }
    2011 fi
    2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2014 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    2015 
    2016 # Find a good install program.  We prefer a C program (faster),
    2017 # so one script is as good as another.  But avoid the broken or
    2018 # incompatible versions:
    2019 # SysV /etc/install, /usr/sbin/install
    2020 # SunOS /usr/etc/install
    2021 # IRIX /sbin/install
    2022 # AIX /bin/install
    2023 # AmigaOS /C/install, which installs bootblocks on floppy discs
    2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    2025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    2026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    2027 # ./install, which can be erroneously created by make from ./install.sh.
    2028 echo "$as_me:2028: checking for a BSD compatible install" >&5
    2029 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    2030 if test -z "$INSTALL"; then
    2031 if test "${ac_cv_path_install+set}" = set; then
    2032   echo $ECHO_N "(cached) $ECHO_C" >&6
    2033 else
    2034     ac_save_IFS=$IFS; IFS=$ac_path_separator
    2035   for ac_dir in $PATH; do
    2036     IFS=$ac_save_IFS
    2037     # Account for people who put trailing slashes in PATH elements.
    2038     case $ac_dir/ in
    2039     / | ./ | .// | /cC/* \
    2040     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    2041     | /usr/ucb/* ) ;;
    2042     *)
    2043       # OSF1 and SCO ODT 3.0 have their own names for install.
    2044       # Don't use installbsd from OSF since it installs stuff as root
    2045       # by default.
    2046       for ac_prog in ginstall scoinst install; do
    2047         if $as_executable_p "$ac_dir/$ac_prog"; then
    2048       if test $ac_prog = install &&
    2049             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    2050         # AIX install.  It has an incompatible calling convention.
    2051         :
    2052       elif test $ac_prog = install &&
    2053         grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    2054         # program-specific install script used by HP pwplus--don't use.
    2055         :
    2056       else
    2057         ac_cv_path_install="$ac_dir/$ac_prog -c"
    2058         break 2
    2059       fi
    2060     fi
    2061       done
    2062       ;;
    2063     esac
    2064   done
    2065 
    2066 fi
    2067   if test "${ac_cv_path_install+set}" = set; then
    2068     INSTALL=$ac_cv_path_install
    2069   else
    2070     # As a last resort, use the slow shell script.  We don't cache a
    2071     # path for INSTALL within a source directory, because that will
    2072     # break other packages using the cache if that directory is
    2073     # removed, or if the path is relative.
    2074     INSTALL=$ac_install_sh
    2075   fi
    2076 fi
    2077 echo "$as_me:2077: result: $INSTALL" >&5
    2078 echo "${ECHO_T}$INSTALL" >&6
    2079 
    2080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    2081 # It thinks the first close brace ends the variable substitution.
    2082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    2083 
    2084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    2085 
    2086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    2087 
    2088 echo "$as_me:2088: checking whether ln -s works" >&5
    2089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    2090 LN_S=$as_ln_s
    2091 if test "$LN_S" = "ln -s"; then
    2092   echo "$as_me:2092: result: yes" >&5
    2093 echo "${ECHO_T}yes" >&6
    2094 else
    2095   echo "$as_me:2095: result: no, using $LN_S" >&5
    2096 echo "${ECHO_T}no, using $LN_S" >&6
    2097 fi
    2098 
    2099 echo "$as_me:2099: checking whether ${MAKE-make} sets \${MAKE}" >&5
    2100 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
    2101 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    2102 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2103   echo $ECHO_N "(cached) $ECHO_C" >&6
    2104 else
    2105   cat >conftest.make <<\EOF
    2106 all:
    2107     @echo 'ac_maketemp="${MAKE}"'
    2108 EOF
    2109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2110 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    2111 if test -n "$ac_maketemp"; then
    2112   eval ac_cv_prog_make_${ac_make}_set=yes
    2113 else
    2114   eval ac_cv_prog_make_${ac_make}_set=no
    2115 fi
    2116 rm -f conftest.make
    2117 fi
    2118 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2119   echo "$as_me:2119: result: yes" >&5
    2120 echo "${ECHO_T}yes" >&6
    2121   SET_MAKE=
    2122 else
    2123   echo "$as_me:2123: result: no" >&5
    2124 echo "${ECHO_T}no" >&6
    2125   SET_MAKE="MAKE=${MAKE-make}"
    2126 fi
    2127 
    2128 if test -n "$ac_tool_prefix"; then
    2129   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    2130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2131 echo "$as_me:2131: checking for $ac_word" >&5
    2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2133 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2134   echo $ECHO_N "(cached) $ECHO_C" >&6
    2135 else
    2136   if test -n "$RANLIB"; then
    2137   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    2138 else
    2139   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2140 ac_dummy="$PATH"
    2141 for ac_dir in $ac_dummy; do
    2142   IFS=$ac_save_IFS
    2143   test -z "$ac_dir" && ac_dir=.
    2144   $as_executable_p "$ac_dir/$ac_word" || continue
    2145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2146 echo "$as_me:2146: found $ac_dir/$ac_word" >&5
    2147 break
    2148 done
    2149 
    2150 fi
    2151 fi
    2152 RANLIB=$ac_cv_prog_RANLIB
    2153 if test -n "$RANLIB"; then
    2154   echo "$as_me:2154: result: $RANLIB" >&5
    2155 echo "${ECHO_T}$RANLIB" >&6
    2156 else
    2157   echo "$as_me:2157: result: no" >&5
    2158 echo "${ECHO_T}no" >&6
    2159 fi
    2160 
    2161 fi
    2162 if test -z "$ac_cv_prog_RANLIB"; then
    2163   ac_ct_RANLIB=$RANLIB
    2164   # Extract the first word of "ranlib", so it can be a program name with args.
    2165 set dummy ranlib; ac_word=$2
    2166 echo "$as_me:2166: checking for $ac_word" >&5
    2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    2169   echo $ECHO_N "(cached) $ECHO_C" >&6
    2170 else
    2171   if test -n "$ac_ct_RANLIB"; then
    2172   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    2173 else
    2174   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2175 ac_dummy="$PATH"
    2176 for ac_dir in $ac_dummy; do
    2177   IFS=$ac_save_IFS
    2178   test -z "$ac_dir" && ac_dir=.
    2179   $as_executable_p "$ac_dir/$ac_word" || continue
    2180 ac_cv_prog_ac_ct_RANLIB="ranlib"
    2181 echo "$as_me:2181: found $ac_dir/$ac_word" >&5
    2182 break
    2183 done
    2184 
    2185   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
    2186 fi
    2187 fi
    2188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    2189 if test -n "$ac_ct_RANLIB"; then
    2190   echo "$as_me:2190: result: $ac_ct_RANLIB" >&5
    2191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    2192 else
    2193   echo "$as_me:2193: result: no" >&5
    2194 echo "${ECHO_T}no" >&6
    2195 fi
    2196 
    2197   RANLIB=$ac_ct_RANLIB
    2198 else
    2199   RANLIB="$ac_cv_prog_RANLIB"
    2200 fi
    2201 
    2202 ac_ext=c
    2203 ac_cpp='$CPP $CPPFLAGS'
    2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2207 echo "$as_me:2207: checking how to run the C preprocessor" >&5
    2208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    2209 # On Suns, sometimes $CPP names a directory.
    2210 if test -n "$CPP" && test -d "$CPP"; then
    2211   CPP=
    2212 fi
    2213 if test -z "$CPP"; then
    2214   if test "${ac_cv_prog_CPP+set}" = set; then
    2215   echo $ECHO_N "(cached) $ECHO_C" >&6
    2216 else
    2217       # Double quotes because CPP needs to be expanded
    2218     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    2219     do
    2220       # break 2 since there is a loop in there.
    2221       ac_preproc_ok=false
    2222 for ac_c_preproc_warn_flag in '' yes
    2223 do
    2224   # Use a header file that comes with gcc, so configuring glibc
    2225   # with a fresh cross-compiler works.
    2226   # On the NeXT, cc -E runs the code through the compiler's parser,
    2227   # not just through cpp. "Syntax error" is here to catch this case.
    2228   cat >conftest.$ac_ext <<_ACEOF
    2229 #line 2229 "configure"
    2230 #include "confdefs.h"
    2231 #include <assert.h>
    2232                      Syntax error
    2233 _ACEOF
    2234 if { (eval echo "$as_me:2234: \"$ac_cpp conftest.$ac_ext\"") >&5
    2235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2236   ac_status=$?
    2237   egrep -v '^ *\+' conftest.er1 >conftest.err
    2238   rm -f conftest.er1
    2239   cat conftest.err >&5
    2240   echo "$as_me:2240: \$? = $ac_status" >&5
    2241   (exit $ac_status); } >/dev/null; then
    2242   if test -s conftest.err; then
    2243     ac_cpp_err=$ac_c_preproc_warn_flag
    2244   else
    2245     ac_cpp_err=
    2246   fi
    2247 else
    2248   ac_cpp_err=yes
    2249 fi
    2250 if test -z "$ac_cpp_err"; then
    2251   :
    2252 else
    2253   echo "$as_me: failed program was:" >&5
    2254   cat conftest.$ac_ext >&5
    2255   # Broken: fails on valid input.
    2256 continue
    2257 fi
    2258 rm -f conftest.err conftest.$ac_ext
    2259 
    2260   # OK, works on sane cases.  Now check whether non-existent headers
    2261   # can be detected and how.
    2262   cat >conftest.$ac_ext <<_ACEOF
    2263 #line 2263 "configure"
    2264 #include "confdefs.h"
    2265 #include <ac_nonexistent.h>
    2266 _ACEOF
    2267 if { (eval echo "$as_me:2267: \"$ac_cpp conftest.$ac_ext\"") >&5
    2268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2269   ac_status=$?
    2270   egrep -v '^ *\+' conftest.er1 >conftest.err
    2271   rm -f conftest.er1
    2272   cat conftest.err >&5
    2273   echo "$as_me:2273: \$? = $ac_status" >&5
    2274   (exit $ac_status); } >/dev/null; then
    2275   if test -s conftest.err; then
    2276     ac_cpp_err=$ac_c_preproc_warn_flag
    2277   else
    2278     ac_cpp_err=
    2279   fi
    2280 else
    2281   ac_cpp_err=yes
    2282 fi
    2283 if test -z "$ac_cpp_err"; then
    2284   # Broken: success on invalid input.
    2285 continue
    2286 else
    2287   echo "$as_me: failed program was:" >&5
    2288   cat conftest.$ac_ext >&5
    2289   # Passes both tests.
    2290 ac_preproc_ok=:
    2291 break
    2292 fi
    2293 rm -f conftest.err conftest.$ac_ext
    2294 
    2295 done
    2296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2297 rm -f conftest.err conftest.$ac_ext
    2298 if $ac_preproc_ok; then
    2299   break 2
    2300 fi
    2301 
    2302     done
    2303     ac_cv_prog_CPP=$CPP
    2304 
    2305 fi
    2306   CPP=$ac_cv_prog_CPP
    2307 else
    2308   ac_cv_prog_CPP=$CPP
    2309 fi
    2310 echo "$as_me:2310: result: $CPP" >&5
    2311 echo "${ECHO_T}$CPP" >&6
    2312 ac_preproc_ok=false
    2313 for ac_c_preproc_warn_flag in '' yes
    2314 do
    2315   # Use a header file that comes with gcc, so configuring glibc
    2316   # with a fresh cross-compiler works.
    2317   # On the NeXT, cc -E runs the code through the compiler's parser,
    2318   # not just through cpp. "Syntax error" is here to catch this case.
    2319   cat >conftest.$ac_ext <<_ACEOF
    2320 #line 2320 "configure"
    2321 #include "confdefs.h"
    2322 #include <assert.h>
    2323                      Syntax error
    2324 _ACEOF
    2325 if { (eval echo "$as_me:2325: \"$ac_cpp conftest.$ac_ext\"") >&5
    2326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2327   ac_status=$?
    2328   egrep -v '^ *\+' conftest.er1 >conftest.err
    2329   rm -f conftest.er1
    2330   cat conftest.err >&5
    2331   echo "$as_me:2331: \$? = $ac_status" >&5
    2332   (exit $ac_status); } >/dev/null; then
    2333   if test -s conftest.err; then
    2334     ac_cpp_err=$ac_c_preproc_warn_flag
    2335   else
    2336     ac_cpp_err=
    2337   fi
    2338 else
    2339   ac_cpp_err=yes
    2340 fi
    2341 if test -z "$ac_cpp_err"; then
    2342   :
    2343 else
    2344   echo "$as_me: failed program was:" >&5
    2345   cat conftest.$ac_ext >&5
    2346   # Broken: fails on valid input.
    2347 continue
    2348 fi
    2349 rm -f conftest.err conftest.$ac_ext
    2350 
    2351   # OK, works on sane cases.  Now check whether non-existent headers
    2352   # can be detected and how.
    2353   cat >conftest.$ac_ext <<_ACEOF
    2354 #line 2354 "configure"
    2355 #include "confdefs.h"
    2356 #include <ac_nonexistent.h>
    2357 _ACEOF
    2358 if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5
    2359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2360   ac_status=$?
    2361   egrep -v '^ *\+' conftest.er1 >conftest.err
    2362   rm -f conftest.er1
    2363   cat conftest.err >&5
    2364   echo "$as_me:2364: \$? = $ac_status" >&5
    2365   (exit $ac_status); } >/dev/null; then
    2366   if test -s conftest.err; then
    2367     ac_cpp_err=$ac_c_preproc_warn_flag
    2368   else
    2369     ac_cpp_err=
    2370   fi
    2371 else
    2372   ac_cpp_err=yes
    2373 fi
    2374 if test -z "$ac_cpp_err"; then
    2375   # Broken: success on invalid input.
    2376 continue
    2377 else
    2378   echo "$as_me: failed program was:" >&5
    2379   cat conftest.$ac_ext >&5
    2380   # Passes both tests.
    2381 ac_preproc_ok=:
    2382 break
    2383 fi
    2384 rm -f conftest.err conftest.$ac_ext
    2385 
    2386 done
    2387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2388 rm -f conftest.err conftest.$ac_ext
    2389 if $ac_preproc_ok; then
    2390   :
    2391 else
    2392   { { echo "$as_me:2392: error: C preprocessor \"$CPP\" fails sanity check" >&5
    2393 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
    2394    { (exit 1); exit 1; }; }
    2395 fi
    2396 
    2397 ac_ext=c
    2398 ac_cpp='$CPP $CPPFLAGS'
    2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2402 
    2403 echo "$as_me:2403: checking for AIX" >&5
    2404 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    2405 cat >conftest.$ac_ext <<_ACEOF
    2406 #line 2406 "configure"
    2407 #include "confdefs.h"
    2408 #ifdef _AIX
    2409   yes
    2410 #endif
    2411 
    2412 _ACEOF
    2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2414   egrep "yes" >/dev/null 2>&1; then
    2415   echo "$as_me:2415: result: yes" >&5
    2416 echo "${ECHO_T}yes" >&6
    2417 cat >>confdefs.h <<\EOF
    2418 #define _ALL_SOURCE 1
    2419 EOF
    2420 
    2421 else
    2422   echo "$as_me:2422: result: no" >&5
    2423 echo "${ECHO_T}no" >&6
    2424 fi
    2425 rm -f conftest*
    2426 
    2427 echo "$as_me:2427: checking for POSIXized ISC" >&5
    2428 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
    2429 if test -d /etc/conf/kconfig.d &&
    2430    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    2431 then
    2432   echo "$as_me:2432: result: yes" >&5
    2433 echo "${ECHO_T}yes" >&6
    2434   ISC=yes # If later tests want to check for ISC.
    2435 
    2436 cat >>confdefs.h <<\EOF
    2437 #define _POSIX_SOURCE 1
    2438 EOF
    2439 
    2440   if test "$GCC" = yes; then
    2441     CC="$CC -posix"
    2442   else
    2443     CC="$CC -Xp"
    2444   fi
    2445 else
    2446   echo "$as_me:2446: result: no" >&5
    2447 echo "${ECHO_T}no" >&6
    2448   ISC=
    2449 fi
    2450 
    2451 echo "$as_me:2451: checking for minix/config.h" >&5
    2452 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    2453 if test "${ac_cv_header_minix_config_h+set}" = set; then
    2454   echo $ECHO_N "(cached) $ECHO_C" >&6
    2455 else
    2456   cat >conftest.$ac_ext <<_ACEOF
    2457 #line 2457 "configure"
    2458 #include "confdefs.h"
    2459 #include <minix/config.h>
    2460 _ACEOF
    2461 if { (eval echo "$as_me:2461: \"$ac_cpp conftest.$ac_ext\"") >&5
    2462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2463   ac_status=$?
    2464   egrep -v '^ *\+' conftest.er1 >conftest.err
    2465   rm -f conftest.er1
    2466   cat conftest.err >&5
    2467   echo "$as_me:2467: \$? = $ac_status" >&5
    2468   (exit $ac_status); } >/dev/null; then
    2469   if test -s conftest.err; then
    2470     ac_cpp_err=$ac_c_preproc_warn_flag
    2471   else
    2472     ac_cpp_err=
    2473   fi
    2474 else
    2475   ac_cpp_err=yes
    2476 fi
    2477 if test -z "$ac_cpp_err"; then
    2478   ac_cv_header_minix_config_h=yes
    2479 else
    2480   echo "$as_me: failed program was:" >&5
    2481   cat conftest.$ac_ext >&5
    2482   ac_cv_header_minix_config_h=no
    2483 fi
    2484 rm -f conftest.err conftest.$ac_ext
    2485 fi
    2486 echo "$as_me:2486: result: $ac_cv_header_minix_config_h" >&5
    2487 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    2488 if test $ac_cv_header_minix_config_h = yes; then
    2489   MINIX=yes
    2490 else
    2491   MINIX=
    2492 fi
    2493 
    2494 if test "$MINIX" = yes; then
    2495 
    2496 cat >>confdefs.h <<\EOF
    2497 #define _POSIX_SOURCE 1
    2498 EOF
    2499 
    2500 cat >>confdefs.h <<\EOF
    2501 #define _POSIX_1_SOURCE 2
    2502 EOF
    2503 
    2504 cat >>confdefs.h <<\EOF
    2505 #define _MINIX 1
    2506 EOF
    2507 
    2508 fi
    2509 
    2510 echo "$as_me:2510: checking for ${CC-cc} option to accept ANSI C" >&5
    2511 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2513   echo $ECHO_N "(cached) $ECHO_C" >&6
    2514 else
    2515   ac_cv_prog_cc_stdc=no
    2516 ac_save_CFLAGS="$CFLAGS"
    2517 # Don't try gcc -ansi; that turns off useful extensions and
    2518 # breaks some systems' header files.
    2519 # AIX           -qlanglvl=ansi
    2520 # Ultrix and OSF/1  -std1
    2521 # HP-UX         -Aa -D_HPUX_SOURCE
    2522 # SVR4          -Xc
    2523 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
    2524 do
    2525   CFLAGS="$ac_save_CFLAGS $ac_arg"
    2526   cat >conftest.$ac_ext <<_ACEOF
    2527 #line 2527 "configure"
    2528 #include "confdefs.h"
    2529 #if !defined(__STDC__) || __STDC__ != 1
    2530 choke me
    2531 #endif
    2532 
    2533 int
    2534 main ()
    2535 {
    2536 int test (int i, double x);
    2537 struct s1 {int (*f) (int a);};
    2538 struct s2 {int (*f) (double a);};
    2539   ;
    2540   return 0;
    2541 }
    2542 _ACEOF
    2543 rm -f conftest.$ac_objext
    2544 if { (eval echo "$as_me:2544: \"$ac_compile\"") >&5
    2545   (eval $ac_compile) 2>&5
    2546   ac_status=$?
    2547   echo "$as_me:2547: \$? = $ac_status" >&5
    2548   (exit $ac_status); } &&
    2549          { ac_try='test -s conftest.$ac_objext'
    2550   { (eval echo "$as_me:2550: \"$ac_try\"") >&5
    2551   (eval $ac_try) 2>&5
    2552   ac_status=$?
    2553   echo "$as_me:2553: \$? = $ac_status" >&5
    2554   (exit $ac_status); }; }; then
    2555   ac_cv_prog_cc_stdc="$ac_arg"; break
    2556 else
    2557   echo "$as_me: failed program was:" >&5
    2558 cat conftest.$ac_ext >&5
    2559 fi
    2560 rm -f conftest.$ac_objext conftest.$ac_ext
    2561 done
    2562 CFLAGS="$ac_save_CFLAGS"
    2563 
    2564 fi
    2565 
    2566 echo "$as_me:2566: result: $ac_cv_prog_cc_stdc" >&5
    2567 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2568 case "x$ac_cv_prog_cc_stdc" in
    2569   x|xno) ;;
    2570   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
    2571 esac
    2572 
    2573 echo "$as_me:2573: checking for function prototypes" >&5
    2574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    2575 if test "$ac_cv_prog_cc_stdc" != no; then
    2576   echo "$as_me:2576: result: yes" >&5
    2577 echo "${ECHO_T}yes" >&6
    2578   cat >>confdefs.h <<\EOF
    2579 #define PROTOTYPES 1
    2580 EOF
    2581 
    2582   U= ANSI2KNR=
    2583 else
    2584   echo "$as_me:2584: result: no" >&5
    2585 echo "${ECHO_T}no" >&6
    2586   U=_ ANSI2KNR=ansi2knr
    2587 fi
    2588 
    2589 echo "$as_me:2589: checking for $CC option to accept ANSI C" >&5
     2443echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    25902444echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    25912445if test "${ac_cv_prog_cc_stdc+set}" = set; then
     
    25952449ac_save_CC=$CC
    25962450cat >conftest.$ac_ext <<_ACEOF
    2597 #line 2597 "configure"
    2598 #include "confdefs.h"
     2451/* confdefs.h.  */
     2452_ACEOF
     2453cat confdefs.h >>conftest.$ac_ext
     2454cat >>conftest.$ac_ext <<_ACEOF
     2455/* end confdefs.h.  */
    25992456#include <stdarg.h>
    26002457#include <stdio.h>
     
    26192476  return s;
    26202477}
     2478
     2479/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2480   function prototypes and stuff, but not '\xHH' hex character constants.
     2481   These don't provoke an error unfortunately, instead are silently treated
     2482   as 'x'.  The following induces an error, until -std1 is added to get
     2483   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2484   array size at least.  It's necessary to write '\x00'==0 to get something
     2485   that's true only with -std1.  */
     2486int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2487
    26212488int test (int i, double x);
    26222489struct s1 {int (*f) (int a);};
     
    26442511  CC="$ac_save_CC $ac_arg"
    26452512  rm -f conftest.$ac_objext
    2646 if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5
    2647   (eval $ac_compile) 2>&5
    2648   ac_status=$?
    2649   echo "$as_me:2649: \$? = $ac_status" >&5
     2513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2514  (eval $ac_compile) 2>conftest.er1
     2515  ac_status=$?
     2516  grep -v '^ *+' conftest.er1 >conftest.err
     2517  rm -f conftest.er1
     2518  cat conftest.err >&5
     2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26502520  (exit $ac_status); } &&
    2651          { ac_try='test -s conftest.$ac_objext'
    2652   { (eval echo "$as_me:2652: \"$ac_try\"") >&5
    2653   (eval $ac_try) 2>&5
    2654   ac_status=$?
    2655   echo "$as_me:2655: \$? = $ac_status" >&5
     2521     { ac_try='test -z "$ac_c_werror_flag"
     2522             || test ! -s conftest.err'
     2523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2524  (eval $ac_try) 2>&5
     2525  ac_status=$?
     2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2527  (exit $ac_status); }; } &&
     2528     { ac_try='test -s conftest.$ac_objext'
     2529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2530  (eval $ac_try) 2>&5
     2531  ac_status=$?
     2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26562533  (exit $ac_status); }; }; then
    26572534  ac_cv_prog_cc_stdc=$ac_arg
     
    26592536else
    26602537  echo "$as_me: failed program was:" >&5
    2661 cat conftest.$ac_ext >&5
    2662 fi
    2663 rm -f conftest.$ac_objext
     2538sed 's/^/| /' conftest.$ac_ext >&5
     2539
     2540fi
     2541rm -f conftest.err conftest.$ac_objext
    26642542done
    26652543rm -f conftest.$ac_ext conftest.$ac_objext
     
    26702548case "x$ac_cv_prog_cc_stdc" in
    26712549  x|xno)
    2672     echo "$as_me:2672: result: none needed" >&5
     2550    echo "$as_me:$LINENO: result: none needed" >&5
    26732551echo "${ECHO_T}none needed" >&6 ;;
    26742552  *)
    2675     echo "$as_me:2675: result: $ac_cv_prog_cc_stdc" >&5
     2553    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    26762554echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    26772555    CC="$CC $ac_cv_prog_cc_stdc" ;;
    26782556esac
    26792557
    2680 echo "$as_me:2680: checking for an ANSI C-conforming const" >&5
     2558# Some people use a C++ compiler to compile C.  Since we use `exit',
     2559# in C++ we need to declare it.  In case someone uses the same compiler
     2560# for both compiling C and C++ we need to have the C++ compiler decide
     2561# the declaration of exit, since it's the most demanding environment.
     2562cat >conftest.$ac_ext <<_ACEOF
     2563#ifndef __cplusplus
     2564  choke me
     2565#endif
     2566_ACEOF
     2567rm -f conftest.$ac_objext
     2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2569  (eval $ac_compile) 2>conftest.er1
     2570  ac_status=$?
     2571  grep -v '^ *+' conftest.er1 >conftest.err
     2572  rm -f conftest.er1
     2573  cat conftest.err >&5
     2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2575  (exit $ac_status); } &&
     2576     { ac_try='test -z "$ac_c_werror_flag"
     2577             || test ! -s conftest.err'
     2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2579  (eval $ac_try) 2>&5
     2580  ac_status=$?
     2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2582  (exit $ac_status); }; } &&
     2583     { ac_try='test -s conftest.$ac_objext'
     2584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2585  (eval $ac_try) 2>&5
     2586  ac_status=$?
     2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2588  (exit $ac_status); }; }; then
     2589  for ac_declaration in \
     2590   '' \
     2591   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2592   'extern "C" void std::exit (int); using std::exit;' \
     2593   'extern "C" void exit (int) throw ();' \
     2594   'extern "C" void exit (int);' \
     2595   'void exit (int);'
     2596do
     2597  cat >conftest.$ac_ext <<_ACEOF
     2598/* confdefs.h.  */
     2599_ACEOF
     2600cat confdefs.h >>conftest.$ac_ext
     2601cat >>conftest.$ac_ext <<_ACEOF
     2602/* end confdefs.h.  */
     2603$ac_declaration
     2604#include <stdlib.h>
     2605int
     2606main ()
     2607{
     2608exit (42);
     2609  ;
     2610  return 0;
     2611}
     2612_ACEOF
     2613rm -f conftest.$ac_objext
     2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2615  (eval $ac_compile) 2>conftest.er1
     2616  ac_status=$?
     2617  grep -v '^ *+' conftest.er1 >conftest.err
     2618  rm -f conftest.er1
     2619  cat conftest.err >&5
     2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2621  (exit $ac_status); } &&
     2622     { ac_try='test -z "$ac_c_werror_flag"
     2623             || test ! -s conftest.err'
     2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2625  (eval $ac_try) 2>&5
     2626  ac_status=$?
     2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2628  (exit $ac_status); }; } &&
     2629     { ac_try='test -s conftest.$ac_objext'
     2630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2631  (eval $ac_try) 2>&5
     2632  ac_status=$?
     2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2634  (exit $ac_status); }; }; then
     2635  :
     2636else
     2637  echo "$as_me: failed program was:" >&5
     2638sed 's/^/| /' conftest.$ac_ext >&5
     2639
     2640continue
     2641fi
     2642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2643  cat >conftest.$ac_ext <<_ACEOF
     2644/* confdefs.h.  */
     2645_ACEOF
     2646cat confdefs.h >>conftest.$ac_ext
     2647cat >>conftest.$ac_ext <<_ACEOF
     2648/* end confdefs.h.  */
     2649$ac_declaration
     2650int
     2651main ()
     2652{
     2653exit (42);
     2654  ;
     2655  return 0;
     2656}
     2657_ACEOF
     2658rm -f conftest.$ac_objext
     2659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2660  (eval $ac_compile) 2>conftest.er1
     2661  ac_status=$?
     2662  grep -v '^ *+' conftest.er1 >conftest.err
     2663  rm -f conftest.er1
     2664  cat conftest.err >&5
     2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2666  (exit $ac_status); } &&
     2667     { ac_try='test -z "$ac_c_werror_flag"
     2668             || test ! -s conftest.err'
     2669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2670  (eval $ac_try) 2>&5
     2671  ac_status=$?
     2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2673  (exit $ac_status); }; } &&
     2674     { ac_try='test -s conftest.$ac_objext'
     2675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2676  (eval $ac_try) 2>&5
     2677  ac_status=$?
     2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2679  (exit $ac_status); }; }; then
     2680  break
     2681else
     2682  echo "$as_me: failed program was:" >&5
     2683sed 's/^/| /' conftest.$ac_ext >&5
     2684
     2685fi
     2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2687done
     2688rm -f conftest*
     2689if test -n "$ac_declaration"; then
     2690  echo '#ifdef __cplusplus' >>confdefs.h
     2691  echo $ac_declaration      >>confdefs.h
     2692  echo '#endif'             >>confdefs.h
     2693fi
     2694
     2695else
     2696  echo "$as_me: failed program was:" >&5
     2697sed 's/^/| /' conftest.$ac_ext >&5
     2698
     2699fi
     2700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2701ac_ext=c
     2702ac_cpp='$CPP $CPPFLAGS'
     2703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2705ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2706
     2707ac_aux_dir=
     2708for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     2709  if test -f $ac_dir/install-sh; then
     2710    ac_aux_dir=$ac_dir
     2711    ac_install_sh="$ac_aux_dir/install-sh -c"
     2712    break
     2713  elif test -f $ac_dir/install.sh; then
     2714    ac_aux_dir=$ac_dir
     2715    ac_install_sh="$ac_aux_dir/install.sh -c"
     2716    break
     2717  elif test -f $ac_dir/shtool; then
     2718    ac_aux_dir=$ac_dir
     2719    ac_install_sh="$ac_aux_dir/shtool install -c"
     2720    break
     2721  fi
     2722done
     2723if test -z "$ac_aux_dir"; then
     2724  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2725echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2726   { (exit 1); exit 1; }; }
     2727fi
     2728ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2729ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2730ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     2731
     2732# Find a good install program.  We prefer a C program (faster),
     2733# so one script is as good as another.  But avoid the broken or
     2734# incompatible versions:
     2735# SysV /etc/install, /usr/sbin/install
     2736# SunOS /usr/etc/install
     2737# IRIX /sbin/install
     2738# AIX /bin/install
     2739# AmigaOS /C/install, which installs bootblocks on floppy discs
     2740# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     2741# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     2742# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2743# OS/2's system install, which has a completely different semantic
     2744# ./install, which can be erroneously created by make from ./install.sh.
     2745echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2746echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     2747if test -z "$INSTALL"; then
     2748if test "${ac_cv_path_install+set}" = set; then
     2749  echo $ECHO_N "(cached) $ECHO_C" >&6
     2750else
     2751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2752for as_dir in $PATH
     2753do
     2754  IFS=$as_save_IFS
     2755  test -z "$as_dir" && as_dir=.
     2756  # Account for people who put trailing slashes in PATH elements.
     2757case $as_dir/ in
     2758  ./ | .// | /cC/* | \
     2759  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2760  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     2761  /usr/ucb/* ) ;;
     2762  *)
     2763    # OSF1 and SCO ODT 3.0 have their own names for install.
     2764    # Don't use installbsd from OSF since it installs stuff as root
     2765    # by default.
     2766    for ac_prog in ginstall scoinst install; do
     2767      for ac_exec_ext in '' $ac_executable_extensions; do
     2768    if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     2769      if test $ac_prog = install &&
     2770        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2771        # AIX install.  It has an incompatible calling convention.
     2772        :
     2773      elif test $ac_prog = install &&
     2774        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2775        # program-specific install script used by HP pwplus--don't use.
     2776        :
     2777      else
     2778        ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2779        break 3
     2780      fi
     2781    fi
     2782      done
     2783    done
     2784    ;;
     2785esac
     2786done
     2787
     2788
     2789fi
     2790  if test "${ac_cv_path_install+set}" = set; then
     2791    INSTALL=$ac_cv_path_install
     2792  else
     2793    # As a last resort, use the slow shell script.  We don't cache a
     2794    # path for INSTALL within a source directory, because that will
     2795    # break other packages using the cache if that directory is
     2796    # removed, or if the path is relative.
     2797    INSTALL=$ac_install_sh
     2798  fi
     2799fi
     2800echo "$as_me:$LINENO: result: $INSTALL" >&5
     2801echo "${ECHO_T}$INSTALL" >&6
     2802
     2803# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     2804# It thinks the first close brace ends the variable substitution.
     2805test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     2806
     2807test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     2808
     2809test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     2810
     2811echo "$as_me:$LINENO: checking whether ln -s works" >&5
     2812echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2813LN_S=$as_ln_s
     2814if test "$LN_S" = "ln -s"; then
     2815  echo "$as_me:$LINENO: result: yes" >&5
     2816echo "${ECHO_T}yes" >&6
     2817else
     2818  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     2819echo "${ECHO_T}no, using $LN_S" >&6
     2820fi
     2821
     2822echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     2823echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     2824set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     2825if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2826  echo $ECHO_N "(cached) $ECHO_C" >&6
     2827else
     2828  cat >conftest.make <<\_ACEOF
     2829all:
     2830    @echo 'ac_maketemp="$(MAKE)"'
     2831_ACEOF
     2832# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     2833eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     2834if test -n "$ac_maketemp"; then
     2835  eval ac_cv_prog_make_${ac_make}_set=yes
     2836else
     2837  eval ac_cv_prog_make_${ac_make}_set=no
     2838fi
     2839rm -f conftest.make
     2840fi
     2841if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     2842  echo "$as_me:$LINENO: result: yes" >&5
     2843echo "${ECHO_T}yes" >&6
     2844  SET_MAKE=
     2845else
     2846  echo "$as_me:$LINENO: result: no" >&5
     2847echo "${ECHO_T}no" >&6
     2848  SET_MAKE="MAKE=${MAKE-make}"
     2849fi
     2850
     2851if test -n "$ac_tool_prefix"; then
     2852  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2853set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2854echo "$as_me:$LINENO: checking for $ac_word" >&5
     2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2856if test "${ac_cv_prog_RANLIB+set}" = set; then
     2857  echo $ECHO_N "(cached) $ECHO_C" >&6
     2858else
     2859  if test -n "$RANLIB"; then
     2860  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     2861else
     2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2863for as_dir in $PATH
     2864do
     2865  IFS=$as_save_IFS
     2866  test -z "$as_dir" && as_dir=.
     2867  for ac_exec_ext in '' $ac_executable_extensions; do
     2868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2869    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2871    break 2
     2872  fi
     2873done
     2874done
     2875
     2876fi
     2877fi
     2878RANLIB=$ac_cv_prog_RANLIB
     2879if test -n "$RANLIB"; then
     2880  echo "$as_me:$LINENO: result: $RANLIB" >&5
     2881echo "${ECHO_T}$RANLIB" >&6
     2882else
     2883  echo "$as_me:$LINENO: result: no" >&5
     2884echo "${ECHO_T}no" >&6
     2885fi
     2886
     2887fi
     2888if test -z "$ac_cv_prog_RANLIB"; then
     2889  ac_ct_RANLIB=$RANLIB
     2890  # Extract the first word of "ranlib", so it can be a program name with args.
     2891set dummy ranlib; ac_word=$2
     2892echo "$as_me:$LINENO: checking for $ac_word" >&5
     2893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2895  echo $ECHO_N "(cached) $ECHO_C" >&6
     2896else
     2897  if test -n "$ac_ct_RANLIB"; then
     2898  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2899else
     2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2901for as_dir in $PATH
     2902do
     2903  IFS=$as_save_IFS
     2904  test -z "$as_dir" && as_dir=.
     2905  for ac_exec_ext in '' $ac_executable_extensions; do
     2906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2907    ac_cv_prog_ac_ct_RANLIB="ranlib"
     2908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2909    break 2
     2910  fi
     2911done
     2912done
     2913
     2914  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2915fi
     2916fi
     2917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2918if test -n "$ac_ct_RANLIB"; then
     2919  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     2920echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2921else
     2922  echo "$as_me:$LINENO: result: no" >&5
     2923echo "${ECHO_T}no" >&6
     2924fi
     2925
     2926  RANLIB=$ac_ct_RANLIB
     2927else
     2928  RANLIB="$ac_cv_prog_RANLIB"
     2929fi
     2930
     2931
     2932
     2933ac_ext=c
     2934ac_cpp='$CPP $CPPFLAGS'
     2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2937ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2938echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     2939echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     2940# On Suns, sometimes $CPP names a directory.
     2941if test -n "$CPP" && test -d "$CPP"; then
     2942  CPP=
     2943fi
     2944if test -z "$CPP"; then
     2945  if test "${ac_cv_prog_CPP+set}" = set; then
     2946  echo $ECHO_N "(cached) $ECHO_C" >&6
     2947else
     2948      # Double quotes because CPP needs to be expanded
     2949    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2950    do
     2951      ac_preproc_ok=false
     2952for ac_c_preproc_warn_flag in '' yes
     2953do
     2954  # Use a header file that comes with gcc, so configuring glibc
     2955  # with a fresh cross-compiler works.
     2956  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2957  # <limits.h> exists even on freestanding compilers.
     2958  # On the NeXT, cc -E runs the code through the compiler's parser,
     2959  # not just through cpp. "Syntax error" is here to catch this case.
     2960  cat >conftest.$ac_ext <<_ACEOF
     2961/* confdefs.h.  */
     2962_ACEOF
     2963cat confdefs.h >>conftest.$ac_ext
     2964cat >>conftest.$ac_ext <<_ACEOF
     2965/* end confdefs.h.  */
     2966#ifdef __STDC__
     2967# include <limits.h>
     2968#else
     2969# include <assert.h>
     2970#endif
     2971             Syntax error
     2972_ACEOF
     2973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2974  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2975  ac_status=$?
     2976  grep -v '^ *+' conftest.er1 >conftest.err
     2977  rm -f conftest.er1
     2978  cat conftest.err >&5
     2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2980  (exit $ac_status); } >/dev/null; then
     2981  if test -s conftest.err; then
     2982    ac_cpp_err=$ac_c_preproc_warn_flag
     2983    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2984  else
     2985    ac_cpp_err=
     2986  fi
     2987else
     2988  ac_cpp_err=yes
     2989fi
     2990if test -z "$ac_cpp_err"; then
     2991  :
     2992else
     2993  echo "$as_me: failed program was:" >&5
     2994sed 's/^/| /' conftest.$ac_ext >&5
     2995
     2996  # Broken: fails on valid input.
     2997continue
     2998fi
     2999rm -f conftest.err conftest.$ac_ext
     3000
     3001  # OK, works on sane cases.  Now check whether non-existent headers
     3002  # can be detected and how.
     3003  cat >conftest.$ac_ext <<_ACEOF
     3004/* confdefs.h.  */
     3005_ACEOF
     3006cat confdefs.h >>conftest.$ac_ext
     3007cat >>conftest.$ac_ext <<_ACEOF
     3008/* end confdefs.h.  */
     3009#include <ac_nonexistent.h>
     3010_ACEOF
     3011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3013  ac_status=$?
     3014  grep -v '^ *+' conftest.er1 >conftest.err
     3015  rm -f conftest.er1
     3016  cat conftest.err >&5
     3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3018  (exit $ac_status); } >/dev/null; then
     3019  if test -s conftest.err; then
     3020    ac_cpp_err=$ac_c_preproc_warn_flag
     3021    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3022  else
     3023    ac_cpp_err=
     3024  fi
     3025else
     3026  ac_cpp_err=yes
     3027fi
     3028if test -z "$ac_cpp_err"; then
     3029  # Broken: success on invalid input.
     3030continue
     3031else
     3032  echo "$as_me: failed program was:" >&5
     3033sed 's/^/| /' conftest.$ac_ext >&5
     3034
     3035  # Passes both tests.
     3036ac_preproc_ok=:
     3037break
     3038fi
     3039rm -f conftest.err conftest.$ac_ext
     3040
     3041done
     3042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3043rm -f conftest.err conftest.$ac_ext
     3044if $ac_preproc_ok; then
     3045  break
     3046fi
     3047
     3048    done
     3049    ac_cv_prog_CPP=$CPP
     3050
     3051fi
     3052  CPP=$ac_cv_prog_CPP
     3053else
     3054  ac_cv_prog_CPP=$CPP
     3055fi
     3056echo "$as_me:$LINENO: result: $CPP" >&5
     3057echo "${ECHO_T}$CPP" >&6
     3058ac_preproc_ok=false
     3059for ac_c_preproc_warn_flag in '' yes
     3060do
     3061  # Use a header file that comes with gcc, so configuring glibc
     3062  # with a fresh cross-compiler works.
     3063  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3064  # <limits.h> exists even on freestanding compilers.
     3065  # On the NeXT, cc -E runs the code through the compiler's parser,
     3066  # not just through cpp. "Syntax error" is here to catch this case.
     3067  cat >conftest.$ac_ext <<_ACEOF
     3068/* confdefs.h.  */
     3069_ACEOF
     3070cat confdefs.h >>conftest.$ac_ext
     3071cat >>conftest.$ac_ext <<_ACEOF
     3072/* end confdefs.h.  */
     3073#ifdef __STDC__
     3074# include <limits.h>
     3075#else
     3076# include <assert.h>
     3077#endif
     3078             Syntax error
     3079_ACEOF
     3080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3081  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3082  ac_status=$?
     3083  grep -v '^ *+' conftest.er1 >conftest.err
     3084  rm -f conftest.er1
     3085  cat conftest.err >&5
     3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3087  (exit $ac_status); } >/dev/null; then
     3088  if test -s conftest.err; then
     3089    ac_cpp_err=$ac_c_preproc_warn_flag
     3090    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3091  else
     3092    ac_cpp_err=
     3093  fi
     3094else
     3095  ac_cpp_err=yes
     3096fi
     3097if test -z "$ac_cpp_err"; then
     3098  :
     3099else
     3100  echo "$as_me: failed program was:" >&5
     3101sed 's/^/| /' conftest.$ac_ext >&5
     3102
     3103  # Broken: fails on valid input.
     3104continue
     3105fi
     3106rm -f conftest.err conftest.$ac_ext
     3107
     3108  # OK, works on sane cases.  Now check whether non-existent headers
     3109  # can be detected and how.
     3110  cat >conftest.$ac_ext <<_ACEOF
     3111/* confdefs.h.  */
     3112_ACEOF
     3113cat confdefs.h >>conftest.$ac_ext
     3114cat >>conftest.$ac_ext <<_ACEOF
     3115/* end confdefs.h.  */
     3116#include <ac_nonexistent.h>
     3117_ACEOF
     3118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3120  ac_status=$?
     3121  grep -v '^ *+' conftest.er1 >conftest.err
     3122  rm -f conftest.er1
     3123  cat conftest.err >&5
     3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3125  (exit $ac_status); } >/dev/null; then
     3126  if test -s conftest.err; then
     3127    ac_cpp_err=$ac_c_preproc_warn_flag
     3128    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3129  else
     3130    ac_cpp_err=
     3131  fi
     3132else
     3133  ac_cpp_err=yes
     3134fi
     3135if test -z "$ac_cpp_err"; then
     3136  # Broken: success on invalid input.
     3137continue
     3138else
     3139  echo "$as_me: failed program was:" >&5
     3140sed 's/^/| /' conftest.$ac_ext >&5
     3141
     3142  # Passes both tests.
     3143ac_preproc_ok=:
     3144break
     3145fi
     3146rm -f conftest.err conftest.$ac_ext
     3147
     3148done
     3149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3150rm -f conftest.err conftest.$ac_ext
     3151if $ac_preproc_ok; then
     3152  :
     3153else
     3154  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3155See \`config.log' for more details." >&5
     3156echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3157See \`config.log' for more details." >&2;}
     3158   { (exit 1); exit 1; }; }
     3159fi
     3160
     3161ac_ext=c
     3162ac_cpp='$CPP $CPPFLAGS'
     3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3165ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3166
     3167
     3168echo "$as_me:$LINENO: checking for egrep" >&5
     3169echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3170if test "${ac_cv_prog_egrep+set}" = set; then
     3171  echo $ECHO_N "(cached) $ECHO_C" >&6
     3172else
     3173  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3174    then ac_cv_prog_egrep='grep -E'
     3175    else ac_cv_prog_egrep='egrep'
     3176    fi
     3177fi
     3178echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3179echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3180 EGREP=$ac_cv_prog_egrep
     3181
     3182
     3183
     3184echo "$as_me:$LINENO: checking for AIX" >&5
     3185echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     3186cat >conftest.$ac_ext <<_ACEOF
     3187/* confdefs.h.  */
     3188_ACEOF
     3189cat confdefs.h >>conftest.$ac_ext
     3190cat >>conftest.$ac_ext <<_ACEOF
     3191/* end confdefs.h.  */
     3192#ifdef _AIX
     3193  yes
     3194#endif
     3195
     3196_ACEOF
     3197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3198  $EGREP "yes" >/dev/null 2>&1; then
     3199  echo "$as_me:$LINENO: result: yes" >&5
     3200echo "${ECHO_T}yes" >&6
     3201cat >>confdefs.h <<\_ACEOF
     3202#define _ALL_SOURCE 1
     3203_ACEOF
     3204
     3205else
     3206  echo "$as_me:$LINENO: result: no" >&5
     3207echo "${ECHO_T}no" >&6
     3208fi
     3209rm -f conftest*
     3210
     3211
     3212echo "$as_me:$LINENO: checking for library containing strerror" >&5
     3213echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
     3214if test "${ac_cv_search_strerror+set}" = set; then
     3215  echo $ECHO_N "(cached) $ECHO_C" >&6
     3216else
     3217  ac_func_search_save_LIBS=$LIBS
     3218ac_cv_search_strerror=no
     3219cat >conftest.$ac_ext <<_ACEOF
     3220/* confdefs.h.  */
     3221_ACEOF
     3222cat confdefs.h >>conftest.$ac_ext
     3223cat >>conftest.$ac_ext <<_ACEOF
     3224/* end confdefs.h.  */
     3225
     3226/* Override any gcc2 internal prototype to avoid an error.  */
     3227#ifdef __cplusplus
     3228extern "C"
     3229#endif
     3230/* We use char because int might match the return type of a gcc2
     3231   builtin and then its argument prototype would still apply.  */
     3232char strerror ();
     3233int
     3234main ()
     3235{
     3236strerror ();
     3237  ;
     3238  return 0;
     3239}
     3240_ACEOF
     3241rm -f conftest.$ac_objext conftest$ac_exeext
     3242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3243  (eval $ac_link) 2>conftest.er1
     3244  ac_status=$?
     3245  grep -v '^ *+' conftest.er1 >conftest.err
     3246  rm -f conftest.er1
     3247  cat conftest.err >&5
     3248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3249  (exit $ac_status); } &&
     3250     { ac_try='test -z "$ac_c_werror_flag"
     3251             || test ! -s conftest.err'
     3252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3253  (eval $ac_try) 2>&5
     3254  ac_status=$?
     3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3256  (exit $ac_status); }; } &&
     3257     { ac_try='test -s conftest$ac_exeext'
     3258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3259  (eval $ac_try) 2>&5
     3260  ac_status=$?
     3261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3262  (exit $ac_status); }; }; then
     3263  ac_cv_search_strerror="none required"
     3264else
     3265  echo "$as_me: failed program was:" >&5
     3266sed 's/^/| /' conftest.$ac_ext >&5
     3267
     3268fi
     3269rm -f conftest.err conftest.$ac_objext \
     3270      conftest$ac_exeext conftest.$ac_ext
     3271if test "$ac_cv_search_strerror" = no; then
     3272  for ac_lib in cposix; do
     3273    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     3274    cat >conftest.$ac_ext <<_ACEOF
     3275/* confdefs.h.  */
     3276_ACEOF
     3277cat confdefs.h >>conftest.$ac_ext
     3278cat >>conftest.$ac_ext <<_ACEOF
     3279/* end confdefs.h.  */
     3280
     3281/* Override any gcc2 internal prototype to avoid an error.  */
     3282#ifdef __cplusplus
     3283extern "C"
     3284#endif
     3285/* We use char because int might match the return type of a gcc2
     3286   builtin and then its argument prototype would still apply.  */
     3287char strerror ();
     3288int
     3289main ()
     3290{
     3291strerror ();
     3292  ;
     3293  return 0;
     3294}
     3295_ACEOF
     3296rm -f conftest.$ac_objext conftest$ac_exeext
     3297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3298  (eval $ac_link) 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); } &&
     3305     { ac_try='test -z "$ac_c_werror_flag"
     3306             || test ! -s conftest.err'
     3307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3308  (eval $ac_try) 2>&5
     3309  ac_status=$?
     3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3311  (exit $ac_status); }; } &&
     3312     { ac_try='test -s conftest$ac_exeext'
     3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3314  (eval $ac_try) 2>&5
     3315  ac_status=$?
     3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3317  (exit $ac_status); }; }; then
     3318  ac_cv_search_strerror="-l$ac_lib"
     3319break
     3320else
     3321  echo "$as_me: failed program was:" >&5
     3322sed 's/^/| /' conftest.$ac_ext >&5
     3323
     3324fi
     3325rm -f conftest.err conftest.$ac_objext \
     3326      conftest$ac_exeext conftest.$ac_ext
     3327  done
     3328fi
     3329LIBS=$ac_func_search_save_LIBS
     3330fi
     3331echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
     3332echo "${ECHO_T}$ac_cv_search_strerror" >&6
     3333if test "$ac_cv_search_strerror" != no; then
     3334  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
     3335
     3336fi
     3337
     3338echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3339echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3340if test "${ac_cv_header_stdc+set}" = set; then
     3341  echo $ECHO_N "(cached) $ECHO_C" >&6
     3342else
     3343  cat >conftest.$ac_ext <<_ACEOF
     3344/* confdefs.h.  */
     3345_ACEOF
     3346cat confdefs.h >>conftest.$ac_ext
     3347cat >>conftest.$ac_ext <<_ACEOF
     3348/* end confdefs.h.  */
     3349#include <stdlib.h>
     3350#include <stdarg.h>
     3351#include <string.h>
     3352#include <float.h>
     3353
     3354int
     3355main ()
     3356{
     3357
     3358  ;
     3359  return 0;
     3360}
     3361_ACEOF
     3362rm -f conftest.$ac_objext
     3363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3364  (eval $ac_compile) 2>conftest.er1
     3365  ac_status=$?
     3366  grep -v '^ *+' conftest.er1 >conftest.err
     3367  rm -f conftest.er1
     3368  cat conftest.err >&5
     3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3370  (exit $ac_status); } &&
     3371     { ac_try='test -z "$ac_c_werror_flag"
     3372             || test ! -s conftest.err'
     3373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3374  (eval $ac_try) 2>&5
     3375  ac_status=$?
     3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3377  (exit $ac_status); }; } &&
     3378     { ac_try='test -s conftest.$ac_objext'
     3379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3380  (eval $ac_try) 2>&5
     3381  ac_status=$?
     3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3383  (exit $ac_status); }; }; then
     3384  ac_cv_header_stdc=yes
     3385else
     3386  echo "$as_me: failed program was:" >&5
     3387sed 's/^/| /' conftest.$ac_ext >&5
     3388
     3389ac_cv_header_stdc=no
     3390fi
     3391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3392
     3393if test $ac_cv_header_stdc = yes; then
     3394  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3395  cat >conftest.$ac_ext <<_ACEOF
     3396/* confdefs.h.  */
     3397_ACEOF
     3398cat confdefs.h >>conftest.$ac_ext
     3399cat >>conftest.$ac_ext <<_ACEOF
     3400/* end confdefs.h.  */
     3401#include <string.h>
     3402
     3403_ACEOF
     3404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3405  $EGREP "memchr" >/dev/null 2>&1; then
     3406  :
     3407else
     3408  ac_cv_header_stdc=no
     3409fi
     3410rm -f conftest*
     3411
     3412fi
     3413
     3414if test $ac_cv_header_stdc = yes; then
     3415  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3416  cat >conftest.$ac_ext <<_ACEOF
     3417/* confdefs.h.  */
     3418_ACEOF
     3419cat confdefs.h >>conftest.$ac_ext
     3420cat >>conftest.$ac_ext <<_ACEOF
     3421/* end confdefs.h.  */
     3422#include <stdlib.h>
     3423
     3424_ACEOF
     3425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3426  $EGREP "free" >/dev/null 2>&1; then
     3427  :
     3428else
     3429  ac_cv_header_stdc=no
     3430fi
     3431rm -f conftest*
     3432
     3433fi
     3434
     3435if test $ac_cv_header_stdc = yes; then
     3436  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3437  if test "$cross_compiling" = yes; then
     3438  :
     3439else
     3440  cat >conftest.$ac_ext <<_ACEOF
     3441/* confdefs.h.  */
     3442_ACEOF
     3443cat confdefs.h >>conftest.$ac_ext
     3444cat >>conftest.$ac_ext <<_ACEOF
     3445/* end confdefs.h.  */
     3446#include <ctype.h>
     3447#if ((' ' & 0x0FF) == 0x020)
     3448# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3449# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3450#else
     3451# define ISLOWER(c) \
     3452           (('a' <= (c) && (c) <= 'i') \
     3453             || ('j' <= (c) && (c) <= 'r') \
     3454             || ('s' <= (c) && (c) <= 'z'))
     3455# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3456#endif
     3457
     3458#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3459int
     3460main ()
     3461{
     3462  int i;
     3463  for (i = 0; i < 256; i++)
     3464    if (XOR (islower (i), ISLOWER (i))
     3465    || toupper (i) != TOUPPER (i))
     3466      exit(2);
     3467  exit (0);
     3468}
     3469_ACEOF
     3470rm -f conftest$ac_exeext
     3471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3472  (eval $ac_link) 2>&5
     3473  ac_status=$?
     3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3475  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3477  (eval $ac_try) 2>&5
     3478  ac_status=$?
     3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3480  (exit $ac_status); }; }; then
     3481  :
     3482else
     3483  echo "$as_me: program exited with status $ac_status" >&5
     3484echo "$as_me: failed program was:" >&5
     3485sed 's/^/| /' conftest.$ac_ext >&5
     3486
     3487( exit $ac_status )
     3488ac_cv_header_stdc=no
     3489fi
     3490rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3491fi
     3492fi
     3493fi
     3494echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3495echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3496if test $ac_cv_header_stdc = yes; then
     3497
     3498cat >>confdefs.h <<\_ACEOF
     3499#define STDC_HEADERS 1
     3500_ACEOF
     3501
     3502fi
     3503
     3504# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3505
     3506
     3507
     3508
     3509
     3510
     3511
     3512
     3513
     3514for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3515          inttypes.h stdint.h unistd.h
     3516do
     3517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3518echo "$as_me:$LINENO: checking for $ac_header" >&5
     3519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3520if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3521  echo $ECHO_N "(cached) $ECHO_C" >&6
     3522else
     3523  cat >conftest.$ac_ext <<_ACEOF
     3524/* confdefs.h.  */
     3525_ACEOF
     3526cat confdefs.h >>conftest.$ac_ext
     3527cat >>conftest.$ac_ext <<_ACEOF
     3528/* end confdefs.h.  */
     3529$ac_includes_default
     3530
     3531#include <$ac_header>
     3532_ACEOF
     3533rm -f conftest.$ac_objext
     3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3535  (eval $ac_compile) 2>conftest.er1
     3536  ac_status=$?
     3537  grep -v '^ *+' conftest.er1 >conftest.err
     3538  rm -f conftest.er1
     3539  cat conftest.err >&5
     3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3541  (exit $ac_status); } &&
     3542     { ac_try='test -z "$ac_c_werror_flag"
     3543             || test ! -s conftest.err'
     3544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3545  (eval $ac_try) 2>&5
     3546  ac_status=$?
     3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3548  (exit $ac_status); }; } &&
     3549     { ac_try='test -s conftest.$ac_objext'
     3550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3551  (eval $ac_try) 2>&5
     3552  ac_status=$?
     3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3554  (exit $ac_status); }; }; then
     3555  eval "$as_ac_Header=yes"
     3556else
     3557  echo "$as_me: failed program was:" >&5
     3558sed 's/^/| /' conftest.$ac_ext >&5
     3559
     3560eval "$as_ac_Header=no"
     3561fi
     3562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3563fi
     3564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3566if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3567  cat >>confdefs.h <<_ACEOF
     3568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3569_ACEOF
     3570
     3571fi
     3572
     3573done
     3574
     3575
     3576if test "${ac_cv_header_minix_config_h+set}" = set; then
     3577  echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3578echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3579if test "${ac_cv_header_minix_config_h+set}" = set; then
     3580  echo $ECHO_N "(cached) $ECHO_C" >&6
     3581fi
     3582echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3583echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3584else
     3585  # Is the header compilable?
     3586echo "$as_me:$LINENO: checking minix/config.h usability" >&5
     3587echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
     3588cat >conftest.$ac_ext <<_ACEOF
     3589/* confdefs.h.  */
     3590_ACEOF
     3591cat confdefs.h >>conftest.$ac_ext
     3592cat >>conftest.$ac_ext <<_ACEOF
     3593/* end confdefs.h.  */
     3594$ac_includes_default
     3595#include <minix/config.h>
     3596_ACEOF
     3597rm -f conftest.$ac_objext
     3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3599  (eval $ac_compile) 2>conftest.er1
     3600  ac_status=$?
     3601  grep -v '^ *+' conftest.er1 >conftest.err
     3602  rm -f conftest.er1
     3603  cat conftest.err >&5
     3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3605  (exit $ac_status); } &&
     3606     { ac_try='test -z "$ac_c_werror_flag"
     3607             || test ! -s conftest.err'
     3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3609  (eval $ac_try) 2>&5
     3610  ac_status=$?
     3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3612  (exit $ac_status); }; } &&
     3613     { ac_try='test -s conftest.$ac_objext'
     3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3615  (eval $ac_try) 2>&5
     3616  ac_status=$?
     3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3618  (exit $ac_status); }; }; then
     3619  ac_header_compiler=yes
     3620else
     3621  echo "$as_me: failed program was:" >&5
     3622sed 's/^/| /' conftest.$ac_ext >&5
     3623
     3624ac_header_compiler=no
     3625fi
     3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3628echo "${ECHO_T}$ac_header_compiler" >&6
     3629
     3630# Is the header present?
     3631echo "$as_me:$LINENO: checking minix/config.h presence" >&5
     3632echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
     3633cat >conftest.$ac_ext <<_ACEOF
     3634/* confdefs.h.  */
     3635_ACEOF
     3636cat confdefs.h >>conftest.$ac_ext
     3637cat >>conftest.$ac_ext <<_ACEOF
     3638/* end confdefs.h.  */
     3639#include <minix/config.h>
     3640_ACEOF
     3641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3642  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3643  ac_status=$?
     3644  grep -v '^ *+' conftest.er1 >conftest.err
     3645  rm -f conftest.er1
     3646  cat conftest.err >&5
     3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3648  (exit $ac_status); } >/dev/null; then
     3649  if test -s conftest.err; then
     3650    ac_cpp_err=$ac_c_preproc_warn_flag
     3651    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3652  else
     3653    ac_cpp_err=
     3654  fi
     3655else
     3656  ac_cpp_err=yes
     3657fi
     3658if test -z "$ac_cpp_err"; then
     3659  ac_header_preproc=yes
     3660else
     3661  echo "$as_me: failed program was:" >&5
     3662sed 's/^/| /' conftest.$ac_ext >&5
     3663
     3664  ac_header_preproc=no
     3665fi
     3666rm -f conftest.err conftest.$ac_ext
     3667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     3668echo "${ECHO_T}$ac_header_preproc" >&6
     3669
     3670# So?  What about this header?
     3671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     3672  yes:no: )
     3673    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
     3674echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     3675    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
     3676echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
     3677    ac_header_preproc=yes
     3678    ;;
     3679  no:yes:* )
     3680    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
     3681echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
     3682    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
     3683echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
     3684    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
     3685echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
     3686    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
     3687echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     3688    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
     3689echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
     3690    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
     3691echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
     3692    (
     3693      cat <<\_ASBOX
     3694## ------------------------------------------ ##
     3695## Report this to the AC_PACKAGE_NAME lists.  ##
     3696## ------------------------------------------ ##
     3697_ASBOX
     3698    ) |
     3699      sed "s/^/$as_me: WARNING:     /" >&2
     3700    ;;
     3701esac
     3702echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3703echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3704if test "${ac_cv_header_minix_config_h+set}" = set; then
     3705  echo $ECHO_N "(cached) $ECHO_C" >&6
     3706else
     3707  ac_cv_header_minix_config_h=$ac_header_preproc
     3708fi
     3709echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3710echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3711
     3712fi
     3713if test $ac_cv_header_minix_config_h = yes; then
     3714  MINIX=yes
     3715else
     3716  MINIX=
     3717fi
     3718
     3719
     3720if test "$MINIX" = yes; then
     3721
     3722cat >>confdefs.h <<\_ACEOF
     3723#define _POSIX_SOURCE 1
     3724_ACEOF
     3725
     3726
     3727cat >>confdefs.h <<\_ACEOF
     3728#define _POSIX_1_SOURCE 2
     3729_ACEOF
     3730
     3731
     3732cat >>confdefs.h <<\_ACEOF
     3733#define _MINIX 1
     3734_ACEOF
     3735
     3736fi
     3737
     3738echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
     3739echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     3740if test "${ac_cv_prog_cc_stdc+set}" = set; then
     3741  echo $ECHO_N "(cached) $ECHO_C" >&6
     3742else
     3743  ac_cv_prog_cc_stdc=no
     3744ac_save_CFLAGS="$CFLAGS"
     3745# Don't try gcc -ansi; that turns off useful extensions and
     3746# breaks some systems' header files.
     3747# AIX           -qlanglvl=ansi
     3748# Ultrix and OSF/1  -std1
     3749# HP-UX         -Aa -D_HPUX_SOURCE
     3750# SVR4          -Xc
     3751for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
     3752do
     3753  CFLAGS="$ac_save_CFLAGS $ac_arg"
     3754  cat >conftest.$ac_ext <<_ACEOF
     3755/* confdefs.h.  */
     3756_ACEOF
     3757cat confdefs.h >>conftest.$ac_ext
     3758cat >>conftest.$ac_ext <<_ACEOF
     3759/* end confdefs.h.  */
     3760#if !defined(__STDC__) || __STDC__ != 1
     3761choke me
     3762#endif
     3763
     3764int
     3765main ()
     3766{
     3767int test (int i, double x);
     3768struct s1 {int (*f) (int a);};
     3769struct s2 {int (*f) (double a);};
     3770  ;
     3771  return 0;
     3772}
     3773_ACEOF
     3774rm -f conftest.$ac_objext
     3775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3776  (eval $ac_compile) 2>conftest.er1
     3777  ac_status=$?
     3778  grep -v '^ *+' conftest.er1 >conftest.err
     3779  rm -f conftest.er1
     3780  cat conftest.err >&5
     3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3782  (exit $ac_status); } &&
     3783     { ac_try='test -z "$ac_c_werror_flag"
     3784             || test ! -s conftest.err'
     3785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3786  (eval $ac_try) 2>&5
     3787  ac_status=$?
     3788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3789  (exit $ac_status); }; } &&
     3790     { ac_try='test -s conftest.$ac_objext'
     3791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3792  (eval $ac_try) 2>&5
     3793  ac_status=$?
     3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3795  (exit $ac_status); }; }; then
     3796  ac_cv_prog_cc_stdc="$ac_arg"; break
     3797else
     3798  echo "$as_me: failed program was:" >&5
     3799sed 's/^/| /' conftest.$ac_ext >&5
     3800
     3801fi
     3802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3803done
     3804CFLAGS="$ac_save_CFLAGS"
     3805
     3806fi
     3807
     3808echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     3809echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     3810case "x$ac_cv_prog_cc_stdc" in
     3811  x|xno) ;;
     3812  *) CC="$CC $ac_cv_prog_cc_stdc" ;;
     3813esac
     3814
     3815
     3816echo "$as_me:$LINENO: checking for function prototypes" >&5
     3817echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     3818if test "$ac_cv_prog_cc_stdc" != no; then
     3819  echo "$as_me:$LINENO: result: yes" >&5
     3820echo "${ECHO_T}yes" >&6
     3821  cat >>confdefs.h <<\_ACEOF
     3822#define PROTOTYPES 1
     3823_ACEOF
     3824
     3825  U= ANSI2KNR=
     3826else
     3827  echo "$as_me:$LINENO: result: no" >&5
     3828echo "${ECHO_T}no" >&6
     3829  U=_ ANSI2KNR=ansi2knr
     3830fi
     3831
     3832echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    26813833echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    26823834if test "${ac_cv_c_const+set}" = set; then
     
    26843836else
    26853837  cat >conftest.$ac_ext <<_ACEOF
    2686 #line 2686 "configure"
    2687 #include "confdefs.h"
     3838/* confdefs.h.  */
     3839_ACEOF
     3840cat confdefs.h >>conftest.$ac_ext
     3841cat >>conftest.$ac_ext <<_ACEOF
     3842/* end confdefs.h.  */
    26883843
    26893844int
     
    27423897_ACEOF
    27433898rm -f conftest.$ac_objext
    2744 if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5
    2745   (eval $ac_compile) 2>&5
    2746   ac_status=$?
    2747   echo "$as_me:2747: \$? = $ac_status" >&5
     3899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3900  (eval $ac_compile) 2>conftest.er1
     3901  ac_status=$?
     3902  grep -v '^ *+' conftest.er1 >conftest.err
     3903  rm -f conftest.er1
     3904  cat conftest.err >&5
     3905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    27483906  (exit $ac_status); } &&
    2749          { ac_try='test -s conftest.$ac_objext'
    2750   { (eval echo "$as_me:2750: \"$ac_try\"") >&5
    2751   (eval $ac_try) 2>&5
    2752   ac_status=$?
    2753   echo "$as_me:2753: \$? = $ac_status" >&5
     3907     { ac_try='test -z "$ac_c_werror_flag"
     3908             || test ! -s conftest.err'
     3909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3910  (eval $ac_try) 2>&5
     3911  ac_status=$?
     3912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3913  (exit $ac_status); }; } &&
     3914     { ac_try='test -s conftest.$ac_objext'
     3915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3916  (eval $ac_try) 2>&5
     3917  ac_status=$?
     3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    27543919  (exit $ac_status); }; }; then
    27553920  ac_cv_c_const=yes
    27563921else
    27573922  echo "$as_me: failed program was:" >&5
    2758 cat conftest.$ac_ext >&5
     3923sed 's/^/| /' conftest.$ac_ext >&5
     3924
    27593925ac_cv_c_const=no
    27603926fi
    2761 rm -f conftest.$ac_objext conftest.$ac_ext
    2762 fi
    2763 echo "$as_me:2763: result: $ac_cv_c_const" >&5
     3927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3928fi
     3929echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    27643930echo "${ECHO_T}$ac_cv_c_const" >&6
    27653931if test $ac_cv_c_const = no; then
    27663932
    2767 cat >>confdefs.h <<\EOF
     3933cat >>confdefs.h <<\_ACEOF
    27683934#define const
    2769 EOF
    2770 
    2771 fi
    2772 
    2773 echo "$as_me:2773: checking for ANSI C header files" >&5
    2774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    2775 if test "${ac_cv_header_stdc+set}" = set; then
    2776   echo $ECHO_N "(cached) $ECHO_C" >&6
    2777 else
    2778   cat >conftest.$ac_ext <<_ACEOF
    2779 #line 2779 "configure"
    2780 #include "confdefs.h"
    2781 #include <stdlib.h>
    2782 #include <stdarg.h>
    2783 #include <string.h>
    2784 #include <float.h>
    2785 
    2786 _ACEOF
    2787 if { (eval echo "$as_me:2787: \"$ac_cpp conftest.$ac_ext\"") >&5
    2788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2789   ac_status=$?
    2790   egrep -v '^ *\+' conftest.er1 >conftest.err
    2791   rm -f conftest.er1
    2792   cat conftest.err >&5
    2793   echo "$as_me:2793: \$? = $ac_status" >&5
    2794   (exit $ac_status); } >/dev/null; then
    2795   if test -s conftest.err; then
    2796     ac_cpp_err=$ac_c_preproc_warn_flag
    2797   else
    2798     ac_cpp_err=
    2799   fi
    2800 else
    2801   ac_cpp_err=yes
    2802 fi
    2803 if test -z "$ac_cpp_err"; then
    2804   ac_cv_header_stdc=yes
    2805 else
    2806   echo "$as_me: failed program was:" >&5
    2807   cat conftest.$ac_ext >&5
    2808   ac_cv_header_stdc=no
    2809 fi
    2810 rm -f conftest.err conftest.$ac_ext
    2811 
    2812 if test $ac_cv_header_stdc = yes; then
    2813   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2814   cat >conftest.$ac_ext <<_ACEOF
    2815 #line 2815 "configure"
    2816 #include "confdefs.h"
    2817 #include <string.h>
    2818 
    2819 _ACEOF
    2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2821   egrep "memchr" >/dev/null 2>&1; then
    2822   :
    2823 else
    2824   ac_cv_header_stdc=no
    2825 fi
    2826 rm -f conftest*
    2827 
    2828 fi
    2829 
    2830 if test $ac_cv_header_stdc = yes; then
    2831   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2832   cat >conftest.$ac_ext <<_ACEOF
    2833 #line 2833 "configure"
    2834 #include "confdefs.h"
    2835 #include <stdlib.h>
    2836 
    2837 _ACEOF
    2838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2839   egrep "free" >/dev/null 2>&1; then
    2840   :
    2841 else
    2842   ac_cv_header_stdc=no
    2843 fi
    2844 rm -f conftest*
    2845 
    2846 fi
    2847 
    2848 if test $ac_cv_header_stdc = yes; then
    2849   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2850   if test "$cross_compiling" = yes; then
    2851   :
    2852 else
    2853   cat >conftest.$ac_ext <<_ACEOF
    2854 #line 2854 "configure"
    2855 #include "confdefs.h"
    2856 #include <ctype.h>
    2857 #if ((' ' & 0x0FF) == 0x020)
    2858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    2860 #else
    2861 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    2862                      || ('j' <= (c) && (c) <= 'r') \
    2863                      || ('s' <= (c) && (c) <= 'z'))
    2864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    2865 #endif
    2866 
    2867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2868 int
    2869 main ()
    2870 {
    2871   int i;
    2872   for (i = 0; i < 256; i++)
    2873     if (XOR (islower (i), ISLOWER (i))
    2874         || toupper (i) != TOUPPER (i))
    2875       exit(2);
    2876   exit (0);
    2877 }
    2878 _ACEOF
    2879 rm -f conftest$ac_exeext
    2880 if { (eval echo "$as_me:2880: \"$ac_link\"") >&5
    2881   (eval $ac_link) 2>&5
    2882   ac_status=$?
    2883   echo "$as_me:2883: \$? = $ac_status" >&5
    2884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2885   { (eval echo "$as_me:2885: \"$ac_try\"") >&5
    2886   (eval $ac_try) 2>&5
    2887   ac_status=$?
    2888   echo "$as_me:2888: \$? = $ac_status" >&5
    2889   (exit $ac_status); }; }; then
    2890   :
    2891 else
    2892   echo "$as_me: program exited with status $ac_status" >&5
    2893 echo "$as_me: failed program was:" >&5
    2894 cat conftest.$ac_ext >&5
    2895 ac_cv_header_stdc=no
    2896 fi
    2897 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    2898 fi
    2899 fi
    2900 fi
    2901 echo "$as_me:2901: result: $ac_cv_header_stdc" >&5
    2902 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    2903 if test $ac_cv_header_stdc = yes; then
    2904 
    2905 cat >>confdefs.h <<\EOF
    2906 #define STDC_HEADERS 1
    2907 EOF
    2908 
    2909 fi
    2910 
    2911 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
    2912 do
    2913 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    2914 echo "$as_me:2914: checking for $ac_header" >&5
    2915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2916 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    2917   echo $ECHO_N "(cached) $ECHO_C" >&6
    2918 else
    2919   cat >conftest.$ac_ext <<_ACEOF
    2920 #line 2920 "configure"
    2921 #include "confdefs.h"
    2922 #include <$ac_header>
    2923 _ACEOF
    2924 if { (eval echo "$as_me:2924: \"$ac_cpp conftest.$ac_ext\"") >&5
    2925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2926   ac_status=$?
    2927   egrep -v '^ *\+' conftest.er1 >conftest.err
    2928   rm -f conftest.er1
    2929   cat conftest.err >&5
    2930   echo "$as_me:2930: \$? = $ac_status" >&5
    2931   (exit $ac_status); } >/dev/null; then
    2932   if test -s conftest.err; then
    2933     ac_cpp_err=$ac_c_preproc_warn_flag
    2934   else
    2935     ac_cpp_err=
    2936   fi
    2937 else
    2938   ac_cpp_err=yes
    2939 fi
    2940 if test -z "$ac_cpp_err"; then
    2941   eval "$ac_ac_Header=yes"
    2942 else
    2943   echo "$as_me: failed program was:" >&5
    2944   cat conftest.$ac_ext >&5
    2945   eval "$ac_ac_Header=no"
    2946 fi
    2947 rm -f conftest.err conftest.$ac_ext
    2948 fi
    2949 echo "$as_me:2949: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    2950 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    2951 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    2952   cat >>confdefs.h <<EOF
    2953 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    2954 EOF
    2955 
    2956 fi
    2957 done
    2958 
    2959 echo "$as_me:2959: checking for off_t" >&5
     3935_ACEOF
     3936
     3937fi
     3938
     3939echo "$as_me:$LINENO: checking for off_t" >&5
    29603940echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    29613941if test "${ac_cv_type_off_t+set}" = set; then
     
    29633943else
    29643944  cat >conftest.$ac_ext <<_ACEOF
    2965 #line 2965 "configure"
    2966 #include "confdefs.h"
     3945/* confdefs.h.  */
     3946_ACEOF
     3947cat confdefs.h >>conftest.$ac_ext
     3948cat >>conftest.$ac_ext <<_ACEOF
     3949/* end confdefs.h.  */
    29673950$ac_includes_default
    29683951int
     
    29783961_ACEOF
    29793962rm -f conftest.$ac_objext
    2980 if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5
    2981   (eval $ac_compile) 2>&5
    2982   ac_status=$?
    2983   echo "$as_me:2983: \$? = $ac_status" >&5
     3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3964  (eval $ac_compile) 2>conftest.er1
     3965  ac_status=$?
     3966  grep -v '^ *+' conftest.er1 >conftest.err
     3967  rm -f conftest.er1
     3968  cat conftest.err >&5
     3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29843970  (exit $ac_status); } &&
    2985          { ac_try='test -s conftest.$ac_objext'
    2986   { (eval echo "$as_me:2986: \"$ac_try\"") >&5
    2987   (eval $ac_try) 2>&5
    2988   ac_status=$?
    2989   echo "$as_me:2989: \$? = $ac_status" >&5
     3971     { ac_try='test -z "$ac_c_werror_flag"
     3972             || test ! -s conftest.err'
     3973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3974  (eval $ac_try) 2>&5
     3975  ac_status=$?
     3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3977  (exit $ac_status); }; } &&
     3978     { ac_try='test -s conftest.$ac_objext'
     3979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3980  (eval $ac_try) 2>&5
     3981  ac_status=$?
     3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29903983  (exit $ac_status); }; }; then
    29913984  ac_cv_type_off_t=yes
    29923985else
    29933986  echo "$as_me: failed program was:" >&5
    2994 cat conftest.$ac_ext >&5
     3987sed 's/^/| /' conftest.$ac_ext >&5
     3988
    29953989ac_cv_type_off_t=no
    29963990fi
    2997 rm -f conftest.$ac_objext conftest.$ac_ext
    2998 fi
    2999 echo "$as_me:2999: result: $ac_cv_type_off_t" >&5
     3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3992fi
     3993echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    30003994echo "${ECHO_T}$ac_cv_type_off_t" >&6
    30013995if test $ac_cv_type_off_t = yes; then
     
    30033997else
    30043998
    3005 cat >>confdefs.h <<EOF
     3999cat >>confdefs.h <<_ACEOF
    30064000#define off_t long
    3007 EOF
    3008 
    3009 fi
    3010 
    3011 echo "$as_me:3011: checking for size_t" >&5
     4001_ACEOF
     4002
     4003fi
     4004
     4005echo "$as_me:$LINENO: checking for size_t" >&5
    30124006echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    30134007if test "${ac_cv_type_size_t+set}" = set; then
     
    30154009else
    30164010  cat >conftest.$ac_ext <<_ACEOF
    3017 #line 3017 "configure"
    3018 #include "confdefs.h"
     4011/* confdefs.h.  */
     4012_ACEOF
     4013cat confdefs.h >>conftest.$ac_ext
     4014cat >>conftest.$ac_ext <<_ACEOF
     4015/* end confdefs.h.  */
    30194016$ac_includes_default
    30204017int
     
    30304027_ACEOF
    30314028rm -f conftest.$ac_objext
    3032 if { (eval echo "$as_me:3032: \"$ac_compile\"") >&5
    3033   (eval $ac_compile) 2>&5
    3034   ac_status=$?
    3035   echo "$as_me:3035: \$? = $ac_status" >&5
     4029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4030  (eval $ac_compile) 2>conftest.er1
     4031  ac_status=$?
     4032  grep -v '^ *+' conftest.er1 >conftest.err
     4033  rm -f conftest.er1
     4034  cat conftest.err >&5
     4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30364036  (exit $ac_status); } &&
    3037          { ac_try='test -s conftest.$ac_objext'
    3038   { (eval echo "$as_me:3038: \"$ac_try\"") >&5
    3039   (eval $ac_try) 2>&5
    3040   ac_status=$?
    3041   echo "$as_me:3041: \$? = $ac_status" >&5
     4037     { ac_try='test -z "$ac_c_werror_flag"
     4038             || test ! -s conftest.err'
     4039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4040  (eval $ac_try) 2>&5
     4041  ac_status=$?
     4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4043  (exit $ac_status); }; } &&
     4044     { ac_try='test -s conftest.$ac_objext'
     4045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4046  (eval $ac_try) 2>&5
     4047  ac_status=$?
     4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30424049  (exit $ac_status); }; }; then
    30434050  ac_cv_type_size_t=yes
    30444051else
    30454052  echo "$as_me: failed program was:" >&5
    3046 cat conftest.$ac_ext >&5
     4053sed 's/^/| /' conftest.$ac_ext >&5
     4054
    30474055ac_cv_type_size_t=no
    30484056fi
    3049 rm -f conftest.$ac_objext conftest.$ac_ext
    3050 fi
    3051 echo "$as_me:3051: result: $ac_cv_type_size_t" >&5
     4057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4058fi
     4059echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    30524060echo "${ECHO_T}$ac_cv_type_size_t" >&6
    30534061if test $ac_cv_type_size_t = yes; then
     
    30554063else
    30564064
    3057 cat >>confdefs.h <<EOF
     4065cat >>confdefs.h <<_ACEOF
    30584066#define size_t unsigned
    3059 EOF
    3060 
    3061 fi
    3062 
    3063 echo "$as_me:3063: checking whether time.h and sys/time.h may both be included" >&5
     4067_ACEOF
     4068
     4069fi
     4070
     4071echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    30644072echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    30654073if test "${ac_cv_header_time+set}" = set; then
     
    30674075else
    30684076  cat >conftest.$ac_ext <<_ACEOF
    3069 #line 3069 "configure"
    3070 #include "confdefs.h"
     4077/* confdefs.h.  */
     4078_ACEOF
     4079cat confdefs.h >>conftest.$ac_ext
     4080cat >>conftest.$ac_ext <<_ACEOF
     4081/* end confdefs.h.  */
    30714082#include <sys/types.h>
    30724083#include <sys/time.h>
     
    30764087main ()
    30774088{
    3078 struct tm *tp;
     4089if ((struct tm *) 0)
     4090return 0;
    30794091  ;
    30804092  return 0;
     
    30824094_ACEOF
    30834095rm -f conftest.$ac_objext
    3084 if { (eval echo "$as_me:3084: \"$ac_compile\"") >&5
    3085   (eval $ac_compile) 2>&5
    3086   ac_status=$?
    3087   echo "$as_me:3087: \$? = $ac_status" >&5
     4096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4097  (eval $ac_compile) 2>conftest.er1
     4098  ac_status=$?
     4099  grep -v '^ *+' conftest.er1 >conftest.err
     4100  rm -f conftest.er1
     4101  cat conftest.err >&5
     4102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30884103  (exit $ac_status); } &&
    3089          { ac_try='test -s conftest.$ac_objext'
    3090   { (eval echo "$as_me:3090: \"$ac_try\"") >&5
    3091   (eval $ac_try) 2>&5
    3092   ac_status=$?
    3093   echo "$as_me:3093: \$? = $ac_status" >&5
     4104     { ac_try='test -z "$ac_c_werror_flag"
     4105             || test ! -s conftest.err'
     4106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4107  (eval $ac_try) 2>&5
     4108  ac_status=$?
     4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4110  (exit $ac_status); }; } &&
     4111     { ac_try='test -s conftest.$ac_objext'
     4112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4113  (eval $ac_try) 2>&5
     4114  ac_status=$?
     4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    30944116  (exit $ac_status); }; }; then
    30954117  ac_cv_header_time=yes
    30964118else
    30974119  echo "$as_me: failed program was:" >&5
    3098 cat conftest.$ac_ext >&5
     4120sed 's/^/| /' conftest.$ac_ext >&5
     4121
    30994122ac_cv_header_time=no
    31004123fi
    3101 rm -f conftest.$ac_objext conftest.$ac_ext
    3102 fi
    3103 echo "$as_me:3103: result: $ac_cv_header_time" >&5
     4124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4125fi
     4126echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    31044127echo "${ECHO_T}$ac_cv_header_time" >&6
    31054128if test $ac_cv_header_time = yes; then
    31064129
    3107 cat >>confdefs.h <<\EOF
     4130cat >>confdefs.h <<\_ACEOF
    31084131#define TIME_WITH_SYS_TIME 1
    3109 EOF
    3110 
    3111 fi
    3112 
    3113 echo "$as_me:3113: checking whether struct tm is in sys/time.h or time.h" >&5
     4132_ACEOF
     4133
     4134fi
     4135
     4136echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    31144137echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    31154138if test "${ac_cv_struct_tm+set}" = set; then
     
    31174140else
    31184141  cat >conftest.$ac_ext <<_ACEOF
    3119 #line 3119 "configure"
    3120 #include "confdefs.h"
     4142/* confdefs.h.  */
     4143_ACEOF
     4144cat confdefs.h >>conftest.$ac_ext
     4145cat >>conftest.$ac_ext <<_ACEOF
     4146/* end confdefs.h.  */
    31214147#include <sys/types.h>
    31224148#include <time.h>
     
    31314157_ACEOF
    31324158rm -f conftest.$ac_objext
    3133 if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5
    3134   (eval $ac_compile) 2>&5
    3135   ac_status=$?
    3136   echo "$as_me:3136: \$? = $ac_status" >&5
     4159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4160  (eval $ac_compile) 2>conftest.er1
     4161  ac_status=$?
     4162  grep -v '^ *+' conftest.er1 >conftest.err
     4163  rm -f conftest.er1
     4164  cat conftest.err >&5
     4165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31374166  (exit $ac_status); } &&
    3138          { ac_try='test -s conftest.$ac_objext'
    3139   { (eval echo "$as_me:3139: \"$ac_try\"") >&5
    3140   (eval $ac_try) 2>&5
    3141   ac_status=$?
    3142   echo "$as_me:3142: \$? = $ac_status" >&5
     4167     { ac_try='test -z "$ac_c_werror_flag"
     4168             || test ! -s conftest.err'
     4169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4170  (eval $ac_try) 2>&5
     4171  ac_status=$?
     4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4173  (exit $ac_status); }; } &&
     4174     { ac_try='test -s conftest.$ac_objext'
     4175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4176  (eval $ac_try) 2>&5
     4177  ac_status=$?
     4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31434179  (exit $ac_status); }; }; then
    31444180  ac_cv_struct_tm=time.h
    31454181else
    31464182  echo "$as_me: failed program was:" >&5
    3147 cat conftest.$ac_ext >&5
     4183sed 's/^/| /' conftest.$ac_ext >&5
     4184
    31484185ac_cv_struct_tm=sys/time.h
    31494186fi
    3150 rm -f conftest.$ac_objext conftest.$ac_ext
    3151 fi
    3152 echo "$as_me:3152: result: $ac_cv_struct_tm" >&5
     4187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4188fi
     4189echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    31534190echo "${ECHO_T}$ac_cv_struct_tm" >&6
    31544191if test $ac_cv_struct_tm = sys/time.h; then
    31554192
    3156 cat >>confdefs.h <<\EOF
     4193cat >>confdefs.h <<\_ACEOF
    31574194#define TM_IN_SYS_TIME 1
    3158 EOF
    3159 
    3160 fi
     4195_ACEOF
     4196
     4197fi
     4198
    31614199
    31624200if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    31634201cat >conftest.$ac_ext <<_ACEOF
    3164 #line 3164 "configure"
    3165 #include "confdefs.h"
     4202/* confdefs.h.  */
     4203_ACEOF
     4204cat confdefs.h >>conftest.$ac_ext
     4205cat >>conftest.$ac_ext <<_ACEOF
     4206/* end confdefs.h.  */
    31664207#include <stdio.h>
    31674208
     
    31754216_ACEOF
    31764217rm -f conftest.$ac_objext
    3177 if { (eval echo "$as_me:3177: \"$ac_compile\"") >&5
    3178   (eval $ac_compile) 2>&5
    3179   ac_status=$?
    3180   echo "$as_me:3180: \$? = $ac_status" >&5
     4218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4219  (eval $ac_compile) 2>conftest.er1
     4220  ac_status=$?
     4221  grep -v '^ *+' conftest.er1 >conftest.err
     4222  rm -f conftest.er1
     4223  cat conftest.err >&5
     4224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31814225  (exit $ac_status); } &&
    3182          { ac_try='test -s conftest.$ac_objext'
    3183   { (eval echo "$as_me:3183: \"$ac_try\"") >&5
    3184   (eval $ac_try) 2>&5
    3185   ac_status=$?
    3186   echo "$as_me:3186: \$? = $ac_status" >&5
     4226     { ac_try='test -z "$ac_c_werror_flag"
     4227             || test ! -s conftest.err'
     4228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4229  (eval $ac_try) 2>&5
     4230  ac_status=$?
     4231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4232  (exit $ac_status); }; } &&
     4233     { ac_try='test -s conftest.$ac_objext'
     4234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4235  (eval $ac_try) 2>&5
     4236  ac_status=$?
     4237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31874238  (exit $ac_status); }; }; then
    31884239  :
    31894240else
    31904241  echo "$as_me: failed program was:" >&5
    3191 cat conftest.$ac_ext >&5
     4242sed 's/^/| /' conftest.$ac_ext >&5
     4243
    31924244CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    31934245fi
    3194 rm -f conftest.$ac_objext conftest.$ac_ext
    3195 fi
    3196 
    3197 echo "$as_me:3197: checking for main in -lm" >&5
     4246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4247fi
     4248
     4249
     4250
     4251echo "$as_me:$LINENO: checking for main in -lm" >&5
    31984252echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    31994253if test "${ac_cv_lib_m_main+set}" = set; then
     
    32034257LIBS="-lm  $LIBS"
    32044258cat >conftest.$ac_ext <<_ACEOF
    3205 #line 3205 "configure"
    3206 #include "confdefs.h"
     4259/* confdefs.h.  */
     4260_ACEOF
     4261cat confdefs.h >>conftest.$ac_ext
     4262cat >>conftest.$ac_ext <<_ACEOF
     4263/* end confdefs.h.  */
     4264
    32074265
    32084266int
     
    32154273_ACEOF
    32164274rm -f conftest.$ac_objext conftest$ac_exeext
    3217 if { (eval echo "$as_me:3217: \"$ac_link\"") >&5
    3218   (eval $ac_link) 2>&5
    3219   ac_status=$?
    3220   echo "$as_me:3220: \$? = $ac_status" >&5
     4275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4276  (eval $ac_link) 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
    32214282  (exit $ac_status); } &&
    3222          { ac_try='test -s conftest$ac_exeext'
    3223   { (eval echo "$as_me:3223: \"$ac_try\"") >&5
    3224   (eval $ac_try) 2>&5
    3225   ac_status=$?
    3226   echo "$as_me:3226: \$? = $ac_status" >&5
     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_exeext'
     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
    32274295  (exit $ac_status); }; }; then
    32284296  ac_cv_lib_m_main=yes
    32294297else
    32304298  echo "$as_me: failed program was:" >&5
    3231 cat conftest.$ac_ext >&5
     4299sed 's/^/| /' conftest.$ac_ext >&5
     4300
    32324301ac_cv_lib_m_main=no
    32334302fi
    3234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4303rm -f conftest.err conftest.$ac_objext \
     4304      conftest$ac_exeext conftest.$ac_ext
    32354305LIBS=$ac_check_lib_save_LIBS
    32364306fi
    3237 echo "$as_me:3237: result: $ac_cv_lib_m_main" >&5
     4307echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    32384308echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    32394309if test $ac_cv_lib_m_main = yes; then
    3240   cat >>confdefs.h <<EOF
     4310  cat >>confdefs.h <<_ACEOF
    32414311#define HAVE_LIBM 1
    3242 EOF
     4312_ACEOF
    32434313
    32444314  LIBS="-lm $LIBS"
    32454315
    32464316fi
     4317
     4318
     4319
     4320
     4321
     4322
    32474323
    32484324ac_header_dirent=no
    32494325for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    3250   ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
    3251 echo "$as_me:3251: checking for $ac_hdr that defines DIR" >&5
     4326  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     4327echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    32524328echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    3253 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     4329if eval "test \"\${$as_ac_Header+set}\" = set"; then
    32544330  echo $ECHO_N "(cached) $ECHO_C" >&6
    32554331else
    32564332  cat >conftest.$ac_ext <<_ACEOF
    3257 #line 3257 "configure"
    3258 #include "confdefs.h"
     4333/* confdefs.h.  */
     4334_ACEOF
     4335cat confdefs.h >>conftest.$ac_ext
     4336cat >>conftest.$ac_ext <<_ACEOF
     4337/* end confdefs.h.  */
    32594338#include <sys/types.h>
    32604339#include <$ac_hdr>
     
    32634342main ()
    32644343{
    3265 DIR *dirp = 0;
     4344if ((DIR *) 0)
     4345return 0;
    32664346  ;
    32674347  return 0;
     
    32694349_ACEOF
    32704350rm -f conftest.$ac_objext
    3271 if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5
    3272   (eval $ac_compile) 2>&5
    3273   ac_status=$?
    3274   echo "$as_me:3274: \$? = $ac_status" >&5
     4351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4352  (eval $ac_compile) 2>conftest.er1
     4353  ac_status=$?
     4354  grep -v '^ *+' conftest.er1 >conftest.err
     4355  rm -f conftest.er1
     4356  cat conftest.err >&5
     4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32754358  (exit $ac_status); } &&
    3276          { ac_try='test -s conftest.$ac_objext'
    3277   { (eval echo "$as_me:3277: \"$ac_try\"") >&5
    3278   (eval $ac_try) 2>&5
    3279   ac_status=$?
    3280   echo "$as_me:3280: \$? = $ac_status" >&5
     4359     { ac_try='test -z "$ac_c_werror_flag"
     4360             || test ! -s conftest.err'
     4361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4362  (eval $ac_try) 2>&5
     4363  ac_status=$?
     4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4365  (exit $ac_status); }; } &&
     4366     { ac_try='test -s conftest.$ac_objext'
     4367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4368  (eval $ac_try) 2>&5
     4369  ac_status=$?
     4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32814371  (exit $ac_status); }; }; then
    3282   eval "$ac_ac_Header=yes"
     4372  eval "$as_ac_Header=yes"
    32834373else
    32844374  echo "$as_me: failed program was:" >&5
    3285 cat conftest.$ac_ext >&5
    3286 eval "$ac_ac_Header=no"
    3287 fi
    3288 rm -f conftest.$ac_objext conftest.$ac_ext
    3289 fi
    3290 echo "$as_me:3290: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3291 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3292 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3293   cat >>confdefs.h <<EOF
    3294 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
    3295 EOF
     4375sed 's/^/| /' conftest.$ac_ext >&5
     4376
     4377eval "$as_ac_Header=no"
     4378fi
     4379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4380fi
     4381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4383if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4384  cat >>confdefs.h <<_ACEOF
     4385#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     4386_ACEOF
    32964387
    32974388ac_header_dirent=$ac_hdr; break
     
    33014392# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    33024393if test $ac_header_dirent = dirent.h; then
    3303   echo "$as_me:3303: checking for opendir in -ldir" >&5
    3304 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
    3305 if test "${ac_cv_lib_dir_opendir+set}" = set; then
     4394  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4395echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4396if test "${ac_cv_search_opendir+set}" = set; then
    33064397  echo $ECHO_N "(cached) $ECHO_C" >&6
    33074398else
    3308   ac_check_lib_save_LIBS=$LIBS
    3309 LIBS="-ldir  $LIBS"
     4399  ac_func_search_save_LIBS=$LIBS
     4400ac_cv_search_opendir=no
    33104401cat >conftest.$ac_ext <<_ACEOF
    3311 #line 3311 "configure"
    3312 #include "confdefs.h"
     4402/* confdefs.h.  */
     4403_ACEOF
     4404cat confdefs.h >>conftest.$ac_ext
     4405cat >>conftest.$ac_ext <<_ACEOF
     4406/* end confdefs.h.  */
    33134407
    33144408/* Override any gcc2 internal prototype to avoid an error.  */
     
    33284422_ACEOF
    33294423rm -f conftest.$ac_objext conftest$ac_exeext
    3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5
    3331   (eval $ac_link) 2>&5
    3332   ac_status=$?
    3333   echo "$as_me:3333: \$? = $ac_status" >&5
     4424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4425  (eval $ac_link) 2>conftest.er1
     4426  ac_status=$?
     4427  grep -v '^ *+' conftest.er1 >conftest.err
     4428  rm -f conftest.er1
     4429  cat conftest.err >&5
     4430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33344431  (exit $ac_status); } &&
    3335          { ac_try='test -s conftest$ac_exeext'
    3336   { (eval echo "$as_me:3336: \"$ac_try\"") >&5
    3337   (eval $ac_try) 2>&5
    3338   ac_status=$?
    3339   echo "$as_me:3339: \$? = $ac_status" >&5
     4432     { ac_try='test -z "$ac_c_werror_flag"
     4433             || test ! -s conftest.err'
     4434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4435  (eval $ac_try) 2>&5
     4436  ac_status=$?
     4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4438  (exit $ac_status); }; } &&
     4439     { ac_try='test -s conftest$ac_exeext'
     4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4441  (eval $ac_try) 2>&5
     4442  ac_status=$?
     4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33404444  (exit $ac_status); }; }; then
    3341   ac_cv_lib_dir_opendir=yes
     4445  ac_cv_search_opendir="none required"
    33424446else
    33434447  echo "$as_me: failed program was:" >&5
    3344 cat conftest.$ac_ext >&5
    3345 ac_cv_lib_dir_opendir=no
    3346 fi
    3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3348 LIBS=$ac_check_lib_save_LIBS
    3349 fi
    3350 echo "$as_me:3350: result: $ac_cv_lib_dir_opendir" >&5
    3351 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
    3352 if test $ac_cv_lib_dir_opendir = yes; then
    3353   LIBS="$LIBS -ldir"
    3354 fi
    3355 
    3356 else
    3357   echo "$as_me:3357: checking for opendir in -lx" >&5
    3358 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
    3359 if test "${ac_cv_lib_x_opendir+set}" = set; then
    3360   echo $ECHO_N "(cached) $ECHO_C" >&6
    3361 else
    3362   ac_check_lib_save_LIBS=$LIBS
    3363 LIBS="-lx  $LIBS"
    3364 cat >conftest.$ac_ext <<_ACEOF
    3365 #line 3365 "configure"
    3366 #include "confdefs.h"
     4448sed 's/^/| /' conftest.$ac_ext >&5
     4449
     4450fi
     4451rm -f conftest.err conftest.$ac_objext \
     4452      conftest$ac_exeext conftest.$ac_ext
     4453if test "$ac_cv_search_opendir" = no; then
     4454  for ac_lib in dir; do
     4455    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4456    cat >conftest.$ac_ext <<_ACEOF
     4457/* confdefs.h.  */
     4458_ACEOF
     4459cat confdefs.h >>conftest.$ac_ext
     4460cat >>conftest.$ac_ext <<_ACEOF
     4461/* end confdefs.h.  */
    33674462
    33684463/* Override any gcc2 internal prototype to avoid an error.  */
     
    33824477_ACEOF
    33834478rm -f conftest.$ac_objext conftest$ac_exeext
    3384 if { (eval echo "$as_me:3384: \"$ac_link\"") >&5
    3385   (eval $ac_link) 2>&5
    3386   ac_status=$?
    3387   echo "$as_me:3387: \$? = $ac_status" >&5
     4479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4480  (eval $ac_link) 2>conftest.er1
     4481  ac_status=$?
     4482  grep -v '^ *+' conftest.er1 >conftest.err
     4483  rm -f conftest.er1
     4484  cat conftest.err >&5
     4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33884486  (exit $ac_status); } &&
    3389          { ac_try='test -s conftest$ac_exeext'
    3390   { (eval echo "$as_me:3390: \"$ac_try\"") >&5
    3391   (eval $ac_try) 2>&5
    3392   ac_status=$?
    3393   echo "$as_me:3393: \$? = $ac_status" >&5
     4487     { ac_try='test -z "$ac_c_werror_flag"
     4488             || test ! -s conftest.err'
     4489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4490  (eval $ac_try) 2>&5
     4491  ac_status=$?
     4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4493  (exit $ac_status); }; } &&
     4494     { ac_try='test -s conftest$ac_exeext'
     4495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4496  (eval $ac_try) 2>&5
     4497  ac_status=$?
     4498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33944499  (exit $ac_status); }; }; then
    3395   ac_cv_lib_x_opendir=yes
     4500  ac_cv_search_opendir="-l$ac_lib"
     4501break
    33964502else
    33974503  echo "$as_me: failed program was:" >&5
    3398 cat conftest.$ac_ext >&5
    3399 ac_cv_lib_x_opendir=no
    3400 fi
    3401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3402 LIBS=$ac_check_lib_save_LIBS
    3403 fi
    3404 echo "$as_me:3404: result: $ac_cv_lib_x_opendir" >&5
    3405 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
    3406 if test $ac_cv_lib_x_opendir = yes; then
    3407   LIBS="$LIBS -lx"
    3408 fi
    3409 
    3410 fi
    3411 
    3412 echo "$as_me:3412: checking for ANSI C header files" >&5
     4504sed 's/^/| /' conftest.$ac_ext >&5
     4505
     4506fi
     4507rm -f conftest.err conftest.$ac_objext \
     4508      conftest$ac_exeext conftest.$ac_ext
     4509  done
     4510fi
     4511LIBS=$ac_func_search_save_LIBS
     4512fi
     4513echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4514echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4515if test "$ac_cv_search_opendir" != no; then
     4516  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4517
     4518fi
     4519
     4520else
     4521  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4522echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4523if test "${ac_cv_search_opendir+set}" = set; then
     4524  echo $ECHO_N "(cached) $ECHO_C" >&6
     4525else
     4526  ac_func_search_save_LIBS=$LIBS
     4527ac_cv_search_opendir=no
     4528cat >conftest.$ac_ext <<_ACEOF
     4529/* confdefs.h.  */
     4530_ACEOF
     4531cat confdefs.h >>conftest.$ac_ext
     4532cat >>conftest.$ac_ext <<_ACEOF
     4533/* end confdefs.h.  */
     4534
     4535/* Override any gcc2 internal prototype to avoid an error.  */
     4536#ifdef __cplusplus
     4537extern "C"
     4538#endif
     4539/* We use char because int might match the return type of a gcc2
     4540   builtin and then its argument prototype would still apply.  */
     4541char opendir ();
     4542int
     4543main ()
     4544{
     4545opendir ();
     4546  ;
     4547  return 0;
     4548}
     4549_ACEOF
     4550rm -f conftest.$ac_objext conftest$ac_exeext
     4551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4552  (eval $ac_link) 2>conftest.er1
     4553  ac_status=$?
     4554  grep -v '^ *+' conftest.er1 >conftest.err
     4555  rm -f conftest.er1
     4556  cat conftest.err >&5
     4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4558  (exit $ac_status); } &&
     4559     { ac_try='test -z "$ac_c_werror_flag"
     4560             || test ! -s conftest.err'
     4561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4562  (eval $ac_try) 2>&5
     4563  ac_status=$?
     4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4565  (exit $ac_status); }; } &&
     4566     { ac_try='test -s conftest$ac_exeext'
     4567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4568  (eval $ac_try) 2>&5
     4569  ac_status=$?
     4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4571  (exit $ac_status); }; }; then
     4572  ac_cv_search_opendir="none required"
     4573else
     4574  echo "$as_me: failed program was:" >&5
     4575sed 's/^/| /' conftest.$ac_ext >&5
     4576
     4577fi
     4578rm -f conftest.err conftest.$ac_objext \
     4579      conftest$ac_exeext conftest.$ac_ext
     4580if test "$ac_cv_search_opendir" = no; then
     4581  for ac_lib in x; do
     4582    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4583    cat >conftest.$ac_ext <<_ACEOF
     4584/* confdefs.h.  */
     4585_ACEOF
     4586cat confdefs.h >>conftest.$ac_ext
     4587cat >>conftest.$ac_ext <<_ACEOF
     4588/* end confdefs.h.  */
     4589
     4590/* Override any gcc2 internal prototype to avoid an error.  */
     4591#ifdef __cplusplus
     4592extern "C"
     4593#endif
     4594/* We use char because int might match the return type of a gcc2
     4595   builtin and then its argument prototype would still apply.  */
     4596char opendir ();
     4597int
     4598main ()
     4599{
     4600opendir ();
     4601  ;
     4602  return 0;
     4603}
     4604_ACEOF
     4605rm -f conftest.$ac_objext conftest$ac_exeext
     4606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4607  (eval $ac_link) 2>conftest.er1
     4608  ac_status=$?
     4609  grep -v '^ *+' conftest.er1 >conftest.err
     4610  rm -f conftest.er1
     4611  cat conftest.err >&5
     4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4613  (exit $ac_status); } &&
     4614     { ac_try='test -z "$ac_c_werror_flag"
     4615             || test ! -s conftest.err'
     4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4617  (eval $ac_try) 2>&5
     4618  ac_status=$?
     4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4620  (exit $ac_status); }; } &&
     4621     { ac_try='test -s conftest$ac_exeext'
     4622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4623  (eval $ac_try) 2>&5
     4624  ac_status=$?
     4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4626  (exit $ac_status); }; }; then
     4627  ac_cv_search_opendir="-l$ac_lib"
     4628break
     4629else
     4630  echo "$as_me: failed program was:" >&5
     4631sed 's/^/| /' conftest.$ac_ext >&5
     4632
     4633fi
     4634rm -f conftest.err conftest.$ac_objext \
     4635      conftest$ac_exeext conftest.$ac_ext
     4636  done
     4637fi
     4638LIBS=$ac_func_search_save_LIBS
     4639fi
     4640echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4641echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4642if test "$ac_cv_search_opendir" != no; then
     4643  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4644
     4645fi
     4646
     4647fi
     4648
     4649echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    34134650echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    34144651if test "${ac_cv_header_stdc+set}" = set; then
     
    34164653else
    34174654  cat >conftest.$ac_ext <<_ACEOF
    3418 #line 3418 "configure"
    3419 #include "confdefs.h"
     4655/* confdefs.h.  */
     4656_ACEOF
     4657cat confdefs.h >>conftest.$ac_ext
     4658cat >>conftest.$ac_ext <<_ACEOF
     4659/* end confdefs.h.  */
    34204660#include <stdlib.h>
    34214661#include <stdarg.h>
     
    34234663#include <float.h>
    34244664
    3425 _ACEOF
    3426 if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5
    3427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3428   ac_status=$?
    3429   egrep -v '^ *\+' conftest.er1 >conftest.err
     4665int
     4666main ()
     4667{
     4668
     4669  ;
     4670  return 0;
     4671}
     4672_ACEOF
     4673rm -f conftest.$ac_objext
     4674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4675  (eval $ac_compile) 2>conftest.er1
     4676  ac_status=$?
     4677  grep -v '^ *+' conftest.er1 >conftest.err
    34304678  rm -f conftest.er1
    34314679  cat conftest.err >&5
    3432   echo "$as_me:3432: \$? = $ac_status" >&5
    3433   (exit $ac_status); } >/dev/null; then
    3434   if test -s conftest.err; then
    3435     ac_cpp_err=$ac_c_preproc_warn_flag
    3436   else
    3437     ac_cpp_err=
    3438   fi
    3439 else
    3440   ac_cpp_err=yes
    3441 fi
    3442 if test -z "$ac_cpp_err"; then
     4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4681  (exit $ac_status); } &&
     4682     { ac_try='test -z "$ac_c_werror_flag"
     4683             || test ! -s conftest.err'
     4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4685  (eval $ac_try) 2>&5
     4686  ac_status=$?
     4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4688  (exit $ac_status); }; } &&
     4689     { ac_try='test -s conftest.$ac_objext'
     4690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4691  (eval $ac_try) 2>&5
     4692  ac_status=$?
     4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4694  (exit $ac_status); }; }; then
    34434695  ac_cv_header_stdc=yes
    34444696else
    34454697  echo "$as_me: failed program was:" >&5
    3446   cat conftest.$ac_ext >&5
    3447   ac_cv_header_stdc=no
    3448 fi
    3449 rm -f conftest.err conftest.$ac_ext
     4698sed 's/^/| /' conftest.$ac_ext >&5
     4699
     4700ac_cv_header_stdc=no
     4701fi
     4702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    34504703
    34514704if test $ac_cv_header_stdc = yes; then
    34524705  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    34534706  cat >conftest.$ac_ext <<_ACEOF
    3454 #line 3454 "configure"
    3455 #include "confdefs.h"
     4707/* confdefs.h.  */
     4708_ACEOF
     4709cat confdefs.h >>conftest.$ac_ext
     4710cat >>conftest.$ac_ext <<_ACEOF
     4711/* end confdefs.h.  */
    34564712#include <string.h>
    34574713
    34584714_ACEOF
    34594715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3460   egrep "memchr" >/dev/null 2>&1; then
     4716  $EGREP "memchr" >/dev/null 2>&1; then
    34614717  :
    34624718else
     
    34704726  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    34714727  cat >conftest.$ac_ext <<_ACEOF
    3472 #line 3472 "configure"
    3473 #include "confdefs.h"
     4728/* confdefs.h.  */
     4729_ACEOF
     4730cat confdefs.h >>conftest.$ac_ext
     4731cat >>conftest.$ac_ext <<_ACEOF
     4732/* end confdefs.h.  */
    34744733#include <stdlib.h>
    34754734
    34764735_ACEOF
    34774736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3478   egrep "free" >/dev/null 2>&1; then
     4737  $EGREP "free" >/dev/null 2>&1; then
    34794738  :
    34804739else
     
    34914750else
    34924751  cat >conftest.$ac_ext <<_ACEOF
    3493 #line 3493 "configure"
    3494 #include "confdefs.h"
     4752/* confdefs.h.  */
     4753_ACEOF
     4754cat confdefs.h >>conftest.$ac_ext
     4755cat >>conftest.$ac_ext <<_ACEOF
     4756/* end confdefs.h.  */
    34954757#include <ctype.h>
    34964758#if ((' ' & 0x0FF) == 0x020)
     
    34984760# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    34994761#else
    3500 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    3501                      || ('j' <= (c) && (c) <= 'r') \
    3502                      || ('s' <= (c) && (c) <= 'z'))
     4762# define ISLOWER(c) \
     4763           (('a' <= (c) && (c) <= 'i') \
     4764             || ('j' <= (c) && (c) <= 'r') \
     4765             || ('s' <= (c) && (c) <= 'z'))
    35034766# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    35044767#endif
     
    35114774  for (i = 0; i < 256; i++)
    35124775    if (XOR (islower (i), ISLOWER (i))
    3513         || toupper (i) != TOUPPER (i))
     4776    || toupper (i) != TOUPPER (i))
    35144777      exit(2);
    35154778  exit (0);
     
    35174780_ACEOF
    35184781rm -f conftest$ac_exeext
    3519 if { (eval echo "$as_me:3519: \"$ac_link\"") >&5
     4782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    35204783  (eval $ac_link) 2>&5
    35214784  ac_status=$?
    3522   echo "$as_me:3522: \$? = $ac_status" >&5
     4785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35234786  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3524   { (eval echo "$as_me:3524: \"$ac_try\"") >&5
    3525   (eval $ac_try) 2>&5
    3526   ac_status=$?
    3527   echo "$as_me:3527: \$? = $ac_status" >&5
     4787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4788  (eval $ac_try) 2>&5
     4789  ac_status=$?
     4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35284791  (exit $ac_status); }; }; then
    35294792  :
     
    35314794  echo "$as_me: program exited with status $ac_status" >&5
    35324795echo "$as_me: failed program was:" >&5
    3533 cat conftest.$ac_ext >&5
     4796sed 's/^/| /' conftest.$ac_ext >&5
     4797
     4798( exit $ac_status )
    35344799ac_cv_header_stdc=no
    35354800fi
    3536 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3537 fi
    3538 fi
    3539 fi
    3540 echo "$as_me:3540: result: $ac_cv_header_stdc" >&5
     4801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4802fi
     4803fi
     4804fi
     4805echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    35414806echo "${ECHO_T}$ac_cv_header_stdc" >&6
    35424807if test $ac_cv_header_stdc = yes; then
    35434808
    3544 cat >>confdefs.h <<\EOF
     4809cat >>confdefs.h <<\_ACEOF
    35454810#define STDC_HEADERS 1
    3546 EOF
    3547 
    3548 fi
     4811_ACEOF
     4812
     4813fi
     4814
     4815
     4816
     4817
     4818
     4819
     4820
    35494821
    35504822for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
    35514823do
    3552 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    3553 echo "$as_me:3553: checking for $ac_header" >&5
     4824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4825if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4826  echo "$as_me:$LINENO: checking for $ac_header" >&5
    35544827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3555 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     4828if eval "test \"\${$as_ac_Header+set}\" = set"; then
    35564829  echo $ECHO_N "(cached) $ECHO_C" >&6
    3557 else
    3558   cat >conftest.$ac_ext <<_ACEOF
    3559 #line 3559 "configure"
    3560 #include "confdefs.h"
     4830fi
     4831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4833else
     4834  # Is the header compilable?
     4835echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4837cat >conftest.$ac_ext <<_ACEOF
     4838/* confdefs.h.  */
     4839_ACEOF
     4840cat confdefs.h >>conftest.$ac_ext
     4841cat >>conftest.$ac_ext <<_ACEOF
     4842/* end confdefs.h.  */
     4843$ac_includes_default
    35614844#include <$ac_header>
    35624845_ACEOF
    3563 if { (eval echo "$as_me:3563: \"$ac_cpp conftest.$ac_ext\"") >&5
    3564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3565   ac_status=$?
    3566   egrep -v '^ *\+' conftest.er1 >conftest.err
     4846rm -f conftest.$ac_objext
     4847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4848  (eval $ac_compile) 2>conftest.er1
     4849  ac_status=$?
     4850  grep -v '^ *+' conftest.er1 >conftest.err
    35674851  rm -f conftest.er1
    35684852  cat conftest.err >&5
    3569   echo "$as_me:3569: \$? = $ac_status" >&5
     4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4854  (exit $ac_status); } &&
     4855     { ac_try='test -z "$ac_c_werror_flag"
     4856             || test ! -s conftest.err'
     4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4858  (eval $ac_try) 2>&5
     4859  ac_status=$?
     4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4861  (exit $ac_status); }; } &&
     4862     { ac_try='test -s conftest.$ac_objext'
     4863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4864  (eval $ac_try) 2>&5
     4865  ac_status=$?
     4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4867  (exit $ac_status); }; }; then
     4868  ac_header_compiler=yes
     4869else
     4870  echo "$as_me: failed program was:" >&5
     4871sed 's/^/| /' conftest.$ac_ext >&5
     4872
     4873ac_header_compiler=no
     4874fi
     4875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4877echo "${ECHO_T}$ac_header_compiler" >&6
     4878
     4879# Is the header present?
     4880echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4882cat >conftest.$ac_ext <<_ACEOF
     4883/* confdefs.h.  */
     4884_ACEOF
     4885cat confdefs.h >>conftest.$ac_ext
     4886cat >>conftest.$ac_ext <<_ACEOF
     4887/* end confdefs.h.  */
     4888#include <$ac_header>
     4889_ACEOF
     4890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4891  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4892  ac_status=$?
     4893  grep -v '^ *+' conftest.er1 >conftest.err
     4894  rm -f conftest.er1
     4895  cat conftest.err >&5
     4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35704897  (exit $ac_status); } >/dev/null; then
    35714898  if test -s conftest.err; then
    35724899    ac_cpp_err=$ac_c_preproc_warn_flag
     4900    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    35734901  else
    35744902    ac_cpp_err=
     
    35784906fi
    35794907if test -z "$ac_cpp_err"; then
    3580   eval "$ac_ac_Header=yes"
     4908  ac_header_preproc=yes
    35814909else
    35824910  echo "$as_me: failed program was:" >&5
    3583   cat conftest.$ac_ext >&5
    3584   eval "$ac_ac_Header=no"
     4911sed 's/^/| /' conftest.$ac_ext >&5
     4912
     4913  ac_header_preproc=no
    35854914fi
    35864915rm -f conftest.err conftest.$ac_ext
    3587 fi
    3588 echo "$as_me:3588: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3589 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3590 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3591   cat >>confdefs.h <<EOF
    3592 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    3593 EOF
    3594 
    3595 fi
     4916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4917echo "${ECHO_T}$ac_header_preproc" >&6
     4918
     4919# So?  What about this header?
     4920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4921  yes:no: )
     4922    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4926    ac_header_preproc=yes
     4927    ;;
     4928  no:yes:* )
     4929    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4931    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4932echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4933    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4935    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4936echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4937    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4939    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4941    (
     4942      cat <<\_ASBOX
     4943## ------------------------------------------ ##
     4944## Report this to the AC_PACKAGE_NAME lists.  ##
     4945## ------------------------------------------ ##
     4946_ASBOX
     4947    ) |
     4948      sed "s/^/$as_me: WARNING:     /" >&2
     4949    ;;
     4950esac
     4951echo "$as_me:$LINENO: checking for $ac_header" >&5
     4952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4953if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4954  echo $ECHO_N "(cached) $ECHO_C" >&6
     4955else
     4956  eval "$as_ac_Header=\$ac_header_preproc"
     4957fi
     4958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4960
     4961fi
     4962if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4963  cat >>confdefs.h <<_ACEOF
     4964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4965_ACEOF
     4966
     4967fi
     4968
    35964969done
    35974970
    35984971cat >conftest.$ac_ext <<_ACEOF
    3599 #line 3599 "configure"
    3600 #include "confdefs.h"
     4972/* confdefs.h.  */
     4973_ACEOF
     4974cat confdefs.h >>conftest.$ac_ext
     4975cat >>conftest.$ac_ext <<_ACEOF
     4976/* end confdefs.h.  */
    36014977#include <stdio.h>
    36024978
    36034979_ACEOF
    36044980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3605   egrep "fread" >/dev/null 2>&1; then
    3606   cat >>confdefs.h <<\EOF
     4981  $EGREP "fread" >/dev/null 2>&1; then
     4982  cat >>confdefs.h <<\_ACEOF
    36074983#define HAVE_FREAD_DECL 1
    3608 EOF
     4984_ACEOF
    36094985
    36104986fi
     
    36124988
    36134989cat >conftest.$ac_ext <<_ACEOF
    3614 #line 3614 "configure"
    3615 #include "confdefs.h"
     4990/* confdefs.h.  */
     4991_ACEOF
     4992cat confdefs.h >>conftest.$ac_ext
     4993cat >>conftest.$ac_ext <<_ACEOF
     4994/* end confdefs.h.  */
    36164995#include <stdio.h>
    36174996
    36184997_ACEOF
    36194998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3620   egrep "fgetc" >/dev/null 2>&1; then
    3621   cat >>confdefs.h <<\EOF
     4999  $EGREP "fgetc" >/dev/null 2>&1; then
     5000  cat >>confdefs.h <<\_ACEOF
    36225001#define HAVE_FGETC_DECL 1
    3623 EOF
     5002_ACEOF
    36245003
    36255004fi
     
    36275006
    36285007cat >conftest.$ac_ext <<_ACEOF
    3629 #line 3629 "configure"
    3630 #include "confdefs.h"
     5008/* confdefs.h.  */
     5009_ACEOF
     5010cat confdefs.h >>conftest.$ac_ext
     5011cat >>conftest.$ac_ext <<_ACEOF
     5012/* end confdefs.h.  */
    36315013#include <sys/procfs.h>
    36325014
    36335015_ACEOF
    36345016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3635   egrep "pr_brksize" >/dev/null 2>&1; then
    3636   cat >>confdefs.h <<\EOF
     5017  $EGREP "pr_brksize" >/dev/null 2>&1; then
     5018  cat >>confdefs.h <<\_ACEOF
    36375019#define HAVE_PR_BRKSIZE 1
    3638 EOF
     5020_ACEOF
    36395021
    36405022fi
    36415023rm -f conftest*
     5024
    36425025
    36435026# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    36445027# for constant arguments.  Useless!
    3645 echo "$as_me:3645: checking for working alloca.h" >&5
     5028echo "$as_me:$LINENO: checking for working alloca.h" >&5
    36465029echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    36475030if test "${ac_cv_working_alloca_h+set}" = set; then
     
    36495032else
    36505033  cat >conftest.$ac_ext <<_ACEOF
    3651 #line 3651 "configure"
    3652 #include "confdefs.h"
     5034/* confdefs.h.  */
     5035_ACEOF
     5036cat confdefs.h >>conftest.$ac_ext
     5037cat >>conftest.$ac_ext <<_ACEOF
     5038/* end confdefs.h.  */
    36535039#include <alloca.h>
    36545040int
     
    36615047_ACEOF
    36625048rm -f conftest.$ac_objext conftest$ac_exeext
    3663 if { (eval echo "$as_me:3663: \"$ac_link\"") >&5
    3664   (eval $ac_link) 2>&5
    3665   ac_status=$?
    3666   echo "$as_me:3666: \$? = $ac_status" >&5
     5049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5050  (eval $ac_link) 2>conftest.er1
     5051  ac_status=$?
     5052  grep -v '^ *+' conftest.er1 >conftest.err
     5053  rm -f conftest.er1
     5054  cat conftest.err >&5
     5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    36675056  (exit $ac_status); } &&
    3668          { ac_try='test -s conftest$ac_exeext'
    3669   { (eval echo "$as_me:3669: \"$ac_try\"") >&5
    3670   (eval $ac_try) 2>&5
    3671   ac_status=$?
    3672   echo "$as_me:3672: \$? = $ac_status" >&5
     5057     { ac_try='test -z "$ac_c_werror_flag"
     5058             || test ! -s conftest.err'
     5059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5060  (eval $ac_try) 2>&5
     5061  ac_status=$?
     5062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5063  (exit $ac_status); }; } &&
     5064     { ac_try='test -s conftest$ac_exeext'
     5065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5066  (eval $ac_try) 2>&5
     5067  ac_status=$?
     5068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    36735069  (exit $ac_status); }; }; then
    36745070  ac_cv_working_alloca_h=yes
    36755071else
    36765072  echo "$as_me: failed program was:" >&5
    3677 cat conftest.$ac_ext >&5
     5073sed 's/^/| /' conftest.$ac_ext >&5
     5074
    36785075ac_cv_working_alloca_h=no
    36795076fi
    3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3681 fi
    3682 echo "$as_me:3682: result: $ac_cv_working_alloca_h" >&5
     5077rm -f conftest.err conftest.$ac_objext \
     5078      conftest$ac_exeext conftest.$ac_ext
     5079fi
     5080echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    36835081echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
    36845082if test $ac_cv_working_alloca_h = yes; then
    36855083
    3686 cat >>confdefs.h <<\EOF
     5084cat >>confdefs.h <<\_ACEOF
    36875085#define HAVE_ALLOCA_H 1
    3688 EOF
    3689 
    3690 fi
    3691 
    3692 echo "$as_me:3692: checking for alloca" >&5
     5086_ACEOF
     5087
     5088fi
     5089
     5090echo "$as_me:$LINENO: checking for alloca" >&5
    36935091echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    36945092if test "${ac_cv_func_alloca_works+set}" = set; then
     
    36965094else
    36975095  cat >conftest.$ac_ext <<_ACEOF
    3698 #line 3698 "configure"
    3699 #include "confdefs.h"
     5096/* confdefs.h.  */
     5097_ACEOF
     5098cat confdefs.h >>conftest.$ac_ext
     5099cat >>conftest.$ac_ext <<_ACEOF
     5100/* end confdefs.h.  */
    37005101#ifdef __GNUC__
    37015102# define alloca __builtin_alloca
     
    37285129_ACEOF
    37295130rm -f conftest.$ac_objext conftest$ac_exeext
    3730 if { (eval echo "$as_me:3730: \"$ac_link\"") >&5
    3731   (eval $ac_link) 2>&5
    3732   ac_status=$?
    3733   echo "$as_me:3733: \$? = $ac_status" >&5
     5131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5132  (eval $ac_link) 2>conftest.er1
     5133  ac_status=$?
     5134  grep -v '^ *+' conftest.er1 >conftest.err
     5135  rm -f conftest.er1
     5136  cat conftest.err >&5
     5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    37345138  (exit $ac_status); } &&
    3735          { ac_try='test -s conftest$ac_exeext'
    3736   { (eval echo "$as_me:3736: \"$ac_try\"") >&5
    3737   (eval $ac_try) 2>&5
    3738   ac_status=$?
    3739   echo "$as_me:3739: \$? = $ac_status" >&5
     5139     { ac_try='test -z "$ac_c_werror_flag"
     5140             || test ! -s conftest.err'
     5141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5142  (eval $ac_try) 2>&5
     5143  ac_status=$?
     5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5145  (exit $ac_status); }; } &&
     5146     { ac_try='test -s conftest$ac_exeext'
     5147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5148  (eval $ac_try) 2>&5
     5149  ac_status=$?
     5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    37405151  (exit $ac_status); }; }; then
    37415152  ac_cv_func_alloca_works=yes
    37425153else
    37435154  echo "$as_me: failed program was:" >&5
    3744 cat conftest.$ac_ext >&5
     5155sed 's/^/| /' conftest.$ac_ext >&5
     5156
    37455157ac_cv_func_alloca_works=no
    37465158fi
    3747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3748 fi
    3749 echo "$as_me:3749: result: $ac_cv_func_alloca_works" >&5
     5159rm -f conftest.err conftest.$ac_objext \
     5160      conftest$ac_exeext conftest.$ac_ext
     5161fi
     5162echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    37505163echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
    37515164
    37525165if test $ac_cv_func_alloca_works = yes; then
    37535166
    3754 cat >>confdefs.h <<\EOF
     5167cat >>confdefs.h <<\_ACEOF
    37555168#define HAVE_ALLOCA 1
    3756 EOF
     5169_ACEOF
    37575170
    37585171else
     
    37645177ALLOCA=alloca.$ac_objext
    37655178
    3766 cat >>confdefs.h <<\EOF
     5179cat >>confdefs.h <<\_ACEOF
    37675180#define C_ALLOCA 1
    3768 EOF
    3769 
    3770 echo "$as_me:3770: checking whether \`alloca.c' needs Cray hooks" >&5
     5181_ACEOF
     5182
     5183
     5184echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    37715185echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    37725186if test "${ac_cv_os_cray+set}" = set; then
     
    37745188else
    37755189  cat >conftest.$ac_ext <<_ACEOF
    3776 #line 3776 "configure"
    3777 #include "confdefs.h"
     5190/* confdefs.h.  */
     5191_ACEOF
     5192cat confdefs.h >>conftest.$ac_ext
     5193cat >>conftest.$ac_ext <<_ACEOF
     5194/* end confdefs.h.  */
    37785195#if defined(CRAY) && ! defined(CRAY2)
    37795196webecray
     
    37845201_ACEOF
    37855202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3786   egrep "webecray" >/dev/null 2>&1; then
     5203  $EGREP "webecray" >/dev/null 2>&1; then
    37875204  ac_cv_os_cray=yes
    37885205else
     
    37925209
    37935210fi
    3794 echo "$as_me:3794: result: $ac_cv_os_cray" >&5
     5211echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    37955212echo "${ECHO_T}$ac_cv_os_cray" >&6
    37965213if test $ac_cv_os_cray = yes; then
    37975214  for ac_func in _getb67 GETB67 getb67; do
    3798     ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    3799 echo "$as_me:3799: checking for $ac_func" >&5
     5215    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5216echo "$as_me:$LINENO: checking for $ac_func" >&5
    38005217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    3801 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5218if eval "test \"\${$as_ac_var+set}\" = set"; then
    38025219  echo $ECHO_N "(cached) $ECHO_C" >&6
    38035220else
    38045221  cat >conftest.$ac_ext <<_ACEOF
    3805 #line 3805 "configure"
    3806 #include "confdefs.h"
     5222/* confdefs.h.  */
     5223_ACEOF
     5224cat confdefs.h >>conftest.$ac_ext
     5225cat >>conftest.$ac_ext <<_ACEOF
     5226/* end confdefs.h.  */
     5227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5228   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5229#define $ac_func innocuous_$ac_func
     5230
    38075231/* System header to define __stub macros and hopefully few prototypes,
    3808     which can conflict with char $ac_func (); below.  */
    3809 #include <assert.h>
     5232    which can conflict with char $ac_func (); below.
     5233    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5234    <limits.h> exists even on freestanding compilers.  */
     5235
     5236#ifdef __STDC__
     5237# include <limits.h>
     5238#else
     5239# include <assert.h>
     5240#endif
     5241
     5242#undef $ac_func
     5243
    38105244/* Override any gcc2 internal prototype to avoid an error.  */
    38115245#ifdef __cplusplus
    38125246extern "C"
     5247{
    38135248#endif
    38145249/* We use char because int might match the return type of a gcc2
    38155250   builtin and then its argument prototype would still apply.  */
    38165251char $ac_func ();
    3817 char (*f) ();
    3818 
    3819 int
    3820 main ()
    3821 {
    38225252/* The GNU C library defines this for functions which it implements
    38235253    to always fail with ENOSYS.  Some functions are actually named
     
    38265256choke me
    38275257#else
    3828 f = $ac_func;
     5258char (*f) () = $ac_func;
    38295259#endif
    3830 
     5260#ifdef __cplusplus
     5261}
     5262#endif
     5263
     5264int
     5265main ()
     5266{
     5267return f != $ac_func;
    38315268  ;
    38325269  return 0;
     
    38345271_ACEOF
    38355272rm -f conftest.$ac_objext conftest$ac_exeext
    3836 if { (eval echo "$as_me:3836: \"$ac_link\"") >&5
    3837   (eval $ac_link) 2>&5
    3838   ac_status=$?
    3839   echo "$as_me:3839: \$? = $ac_status" >&5
     5273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5274  (eval $ac_link) 2>conftest.er1
     5275  ac_status=$?
     5276  grep -v '^ *+' conftest.er1 >conftest.err
     5277  rm -f conftest.er1
     5278  cat conftest.err >&5
     5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38405280  (exit $ac_status); } &&
    3841          { ac_try='test -s conftest$ac_exeext'
    3842   { (eval echo "$as_me:3842: \"$ac_try\"") >&5
    3843   (eval $ac_try) 2>&5
    3844   ac_status=$?
    3845   echo "$as_me:3845: \$? = $ac_status" >&5
     5281     { ac_try='test -z "$ac_c_werror_flag"
     5282             || test ! -s conftest.err'
     5283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5284  (eval $ac_try) 2>&5
     5285  ac_status=$?
     5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5287  (exit $ac_status); }; } &&
     5288     { ac_try='test -s conftest$ac_exeext'
     5289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5290  (eval $ac_try) 2>&5
     5291  ac_status=$?
     5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38465293  (exit $ac_status); }; }; then
    3847   eval "$ac_ac_var=yes"
     5294  eval "$as_ac_var=yes"
    38485295else
    38495296  echo "$as_me: failed program was:" >&5
    3850 cat conftest.$ac_ext >&5
    3851 eval "$ac_ac_var=no"
    3852 fi
    3853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3854 fi
    3855 echo "$as_me:3855: result: `eval echo '${'$ac_ac_var'}'`" >&5
    3856 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    3857 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    3858 
    3859 cat >>confdefs.h <<EOF
     5297sed 's/^/| /' conftest.$ac_ext >&5
     5298
     5299eval "$as_ac_var=no"
     5300fi
     5301rm -f conftest.err conftest.$ac_objext \
     5302      conftest$ac_exeext conftest.$ac_ext
     5303fi
     5304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5306if test `eval echo '${'$as_ac_var'}'` = yes; then
     5307
     5308cat >>confdefs.h <<_ACEOF
    38605309#define CRAY_STACKSEG_END $ac_func
    3861 EOF
     5310_ACEOF
    38625311
    38635312    break
     
    38675316fi
    38685317
    3869 echo "$as_me:3869: checking stack direction for C alloca" >&5
     5318echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    38705319echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    38715320if test "${ac_cv_c_stack_direction+set}" = set; then
     
    38765325else
    38775326  cat >conftest.$ac_ext <<_ACEOF
    3878 #line 3878 "configure"
    3879 #include "confdefs.h"
     5327/* confdefs.h.  */
     5328_ACEOF
     5329cat confdefs.h >>conftest.$ac_ext
     5330cat >>conftest.$ac_ext <<_ACEOF
     5331/* end confdefs.h.  */
    38805332int
    38815333find_stack_direction ()
     
    38995351_ACEOF
    39005352rm -f conftest$ac_exeext
    3901 if { (eval echo "$as_me:3901: \"$ac_link\"") >&5
     5353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    39025354  (eval $ac_link) 2>&5
    39035355  ac_status=$?
    3904   echo "$as_me:3904: \$? = $ac_status" >&5
     5356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39055357  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3906   { (eval echo "$as_me:3906: \"$ac_try\"") >&5
    3907   (eval $ac_try) 2>&5
    3908   ac_status=$?
    3909   echo "$as_me:3909: \$? = $ac_status" >&5
     5358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5359  (eval $ac_try) 2>&5
     5360  ac_status=$?
     5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39105362  (exit $ac_status); }; }; then
    39115363  ac_cv_c_stack_direction=1
     
    39135365  echo "$as_me: program exited with status $ac_status" >&5
    39145366echo "$as_me: failed program was:" >&5
    3915 cat conftest.$ac_ext >&5
     5367sed 's/^/| /' conftest.$ac_ext >&5
     5368
     5369( exit $ac_status )
    39165370ac_cv_c_stack_direction=-1
    39175371fi
    3918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3919 fi
    3920 fi
    3921 echo "$as_me:3921: result: $ac_cv_c_stack_direction" >&5
     5372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5373fi
     5374fi
     5375echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    39225376echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    39235377
    3924 cat >>confdefs.h <<EOF
     5378cat >>confdefs.h <<_ACEOF
    39255379#define STACK_DIRECTION $ac_cv_c_stack_direction
    3926 EOF
     5380_ACEOF
     5381
    39275382
    39285383fi
    39295384
    39305385if test $ac_cv_c_compiler_gnu = yes; then
    3931     echo "$as_me:3931: checking whether $CC needs -traditional" >&5
     5386    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    39325387echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    39335388if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     
    39365391    ac_pattern="Autoconf.*'x'"
    39375392  cat >conftest.$ac_ext <<_ACEOF
    3938 #line 3938 "configure"
    3939 #include "confdefs.h"
     5393/* confdefs.h.  */
     5394_ACEOF
     5395cat confdefs.h >>conftest.$ac_ext
     5396cat >>conftest.$ac_ext <<_ACEOF
     5397/* end confdefs.h.  */
    39405398#include <sgtty.h>
    39415399Autoconf TIOCGETP
    39425400_ACEOF
    39435401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3944   egrep "$ac_pattern" >/dev/null 2>&1; then
     5402  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    39455403  ac_cv_prog_gcc_traditional=yes
    39465404else
     
    39485406fi
    39495407rm -f conftest*
     5408
    39505409
    39515410  if test $ac_cv_prog_gcc_traditional = no; then
    39525411    cat >conftest.$ac_ext <<_ACEOF
    3953 #line 3953 "configure"
    3954 #include "confdefs.h"
     5412/* confdefs.h.  */
     5413_ACEOF
     5414cat confdefs.h >>conftest.$ac_ext
     5415cat >>conftest.$ac_ext <<_ACEOF
     5416/* end confdefs.h.  */
    39555417#include <termio.h>
    39565418Autoconf TCGETA
    39575419_ACEOF
    39585420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3959   egrep "$ac_pattern" >/dev/null 2>&1; then
     5421  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    39605422  ac_cv_prog_gcc_traditional=yes
    39615423fi
     
    39645426  fi
    39655427fi
    3966 echo "$as_me:3966: result: $ac_cv_prog_gcc_traditional" >&5
     5428echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    39675429echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    39685430  if test $ac_cv_prog_gcc_traditional = yes; then
     
    39715433fi
    39725434
    3973 echo "$as_me:3973: checking return type of signal handlers" >&5
     5435echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    39745436echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    39755437if test "${ac_cv_type_signal+set}" = set; then
     
    39775439else
    39785440  cat >conftest.$ac_ext <<_ACEOF
    3979 #line 3979 "configure"
    3980 #include "confdefs.h"
     5441/* confdefs.h.  */
     5442_ACEOF
     5443cat confdefs.h >>conftest.$ac_ext
     5444cat >>conftest.$ac_ext <<_ACEOF
     5445/* end confdefs.h.  */
    39815446#include <sys/types.h>
    39825447#include <signal.h>
     
    39995464_ACEOF
    40005465rm -f conftest.$ac_objext
    4001 if { (eval echo "$as_me:4001: \"$ac_compile\"") >&5
    4002   (eval $ac_compile) 2>&5
    4003   ac_status=$?
    4004   echo "$as_me:4004: \$? = $ac_status" >&5
     5466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5467  (eval $ac_compile) 2>conftest.er1
     5468  ac_status=$?
     5469  grep -v '^ *+' conftest.er1 >conftest.err
     5470  rm -f conftest.er1
     5471  cat conftest.err >&5
     5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40055473  (exit $ac_status); } &&
    4006          { ac_try='test -s conftest.$ac_objext'
    4007   { (eval echo "$as_me:4007: \"$ac_try\"") >&5
    4008   (eval $ac_try) 2>&5
    4009   ac_status=$?
    4010   echo "$as_me:4010: \$? = $ac_status" >&5
     5474     { ac_try='test -z "$ac_c_werror_flag"
     5475             || test ! -s conftest.err'
     5476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5477  (eval $ac_try) 2>&5
     5478  ac_status=$?
     5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5480  (exit $ac_status); }; } &&
     5481     { ac_try='test -s conftest.$ac_objext'
     5482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5483  (eval $ac_try) 2>&5
     5484  ac_status=$?
     5485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40115486  (exit $ac_status); }; }; then
    40125487  ac_cv_type_signal=void
    40135488else
    40145489  echo "$as_me: failed program was:" >&5
    4015 cat conftest.$ac_ext >&5
     5490sed 's/^/| /' conftest.$ac_ext >&5
     5491
    40165492ac_cv_type_signal=int
    40175493fi
    4018 rm -f conftest.$ac_objext conftest.$ac_ext
    4019 fi
    4020 echo "$as_me:4020: result: $ac_cv_type_signal" >&5
     5494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5495fi
     5496echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    40215497echo "${ECHO_T}$ac_cv_type_signal" >&6
    40225498
    4023 cat >>confdefs.h <<EOF
     5499cat >>confdefs.h <<_ACEOF
    40245500#define RETSIGTYPE $ac_cv_type_signal
    4025 EOF
     5501_ACEOF
     5502
     5503
    40265504
    40275505for ac_func in vprintf
    40285506do
    4029 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4030 echo "$as_me:4030: checking for $ac_func" >&5
     5507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5508echo "$as_me:$LINENO: checking for $ac_func" >&5
    40315509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4032 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5510if eval "test \"\${$as_ac_var+set}\" = set"; then
    40335511  echo $ECHO_N "(cached) $ECHO_C" >&6
    40345512else
    40355513  cat >conftest.$ac_ext <<_ACEOF
    4036 #line 4036 "configure"
    4037 #include "confdefs.h"
     5514/* confdefs.h.  */
     5515_ACEOF
     5516cat confdefs.h >>conftest.$ac_ext
     5517cat >>conftest.$ac_ext <<_ACEOF
     5518/* end confdefs.h.  */
     5519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5520   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5521#define $ac_func innocuous_$ac_func
     5522
    40385523/* System header to define __stub macros and hopefully few prototypes,
    4039     which can conflict with char $ac_func (); below.  */
    4040 #include <assert.h>
     5524    which can conflict with char $ac_func (); below.
     5525    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5526    <limits.h> exists even on freestanding compilers.  */
     5527
     5528#ifdef __STDC__
     5529# include <limits.h>
     5530#else
     5531# include <assert.h>
     5532#endif
     5533
     5534#undef $ac_func
     5535
    40415536/* Override any gcc2 internal prototype to avoid an error.  */
    40425537#ifdef __cplusplus
    40435538extern "C"
     5539{
    40445540#endif
    40455541/* We use char because int might match the return type of a gcc2
    40465542   builtin and then its argument prototype would still apply.  */
    40475543char $ac_func ();
    4048 char (*f) ();
    4049 
    4050 int
    4051 main ()
    4052 {
    40535544/* The GNU C library defines this for functions which it implements
    40545545    to always fail with ENOSYS.  Some functions are actually named
     
    40575548choke me
    40585549#else
    4059 f = $ac_func;
     5550char (*f) () = $ac_func;
    40605551#endif
    4061 
     5552#ifdef __cplusplus
     5553}
     5554#endif
     5555
     5556int
     5557main ()
     5558{
     5559return f != $ac_func;
    40625560  ;
    40635561  return 0;
     
    40655563_ACEOF
    40665564rm -f conftest.$ac_objext conftest$ac_exeext
    4067 if { (eval echo "$as_me:4067: \"$ac_link\"") >&5
    4068   (eval $ac_link) 2>&5
    4069   ac_status=$?
    4070   echo "$as_me:4070: \$? = $ac_status" >&5
     5565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5566  (eval $ac_link) 2>conftest.er1
     5567  ac_status=$?
     5568  grep -v '^ *+' conftest.er1 >conftest.err
     5569  rm -f conftest.er1
     5570  cat conftest.err >&5
     5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40715572  (exit $ac_status); } &&
    4072          { ac_try='test -s conftest$ac_exeext'
    4073   { (eval echo "$as_me:4073: \"$ac_try\"") >&5
    4074   (eval $ac_try) 2>&5
    4075   ac_status=$?
    4076   echo "$as_me:4076: \$? = $ac_status" >&5
     5573     { ac_try='test -z "$ac_c_werror_flag"
     5574             || test ! -s conftest.err'
     5575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5576  (eval $ac_try) 2>&5
     5577  ac_status=$?
     5578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5579  (exit $ac_status); }; } &&
     5580     { ac_try='test -s conftest$ac_exeext'
     5581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5582  (eval $ac_try) 2>&5
     5583  ac_status=$?
     5584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    40775585  (exit $ac_status); }; }; then
    4078   eval "$ac_ac_var=yes"
     5586  eval "$as_ac_var=yes"
    40795587else
    40805588  echo "$as_me: failed program was:" >&5
    4081 cat conftest.$ac_ext >&5
    4082 eval "$ac_ac_var=no"
    4083 fi
    4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4085 fi
    4086 echo "$as_me:4086: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4087 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4088 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4089   cat >>confdefs.h <<EOF
    4090 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4091 EOF
    4092 
    4093 echo "$as_me:4093: checking for _doprnt" >&5
     5589sed 's/^/| /' conftest.$ac_ext >&5
     5590
     5591eval "$as_ac_var=no"
     5592fi
     5593rm -f conftest.err conftest.$ac_objext \
     5594      conftest$ac_exeext conftest.$ac_ext
     5595fi
     5596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5598if test `eval echo '${'$as_ac_var'}'` = yes; then
     5599  cat >>confdefs.h <<_ACEOF
     5600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5601_ACEOF
     5602
     5603echo "$as_me:$LINENO: checking for _doprnt" >&5
    40945604echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    40955605if test "${ac_cv_func__doprnt+set}" = set; then
     
    40975607else
    40985608  cat >conftest.$ac_ext <<_ACEOF
    4099 #line 4099 "configure"
    4100 #include "confdefs.h"
     5609/* confdefs.h.  */
     5610_ACEOF
     5611cat confdefs.h >>conftest.$ac_ext
     5612cat >>conftest.$ac_ext <<_ACEOF
     5613/* end confdefs.h.  */
     5614/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
     5615   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5616#define _doprnt innocuous__doprnt
     5617
    41015618/* System header to define __stub macros and hopefully few prototypes,
    4102     which can conflict with char _doprnt (); below.  */
    4103 #include <assert.h>
     5619    which can conflict with char _doprnt (); below.
     5620    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5621    <limits.h> exists even on freestanding compilers.  */
     5622
     5623#ifdef __STDC__
     5624# include <limits.h>
     5625#else
     5626# include <assert.h>
     5627#endif
     5628
     5629#undef _doprnt
     5630
    41045631/* Override any gcc2 internal prototype to avoid an error.  */
    41055632#ifdef __cplusplus
    41065633extern "C"
     5634{
    41075635#endif
    41085636/* We use char because int might match the return type of a gcc2
    41095637   builtin and then its argument prototype would still apply.  */
    41105638char _doprnt ();
    4111 char (*f) ();
    4112 
    4113 int
    4114 main ()
    4115 {
    41165639/* The GNU C library defines this for functions which it implements
    41175640    to always fail with ENOSYS.  Some functions are actually named
     
    41205643choke me
    41215644#else
    4122 f = _doprnt;
     5645char (*f) () = _doprnt;
    41235646#endif
    4124 
     5647#ifdef __cplusplus
     5648}
     5649#endif
     5650
     5651int
     5652main ()
     5653{
     5654return f != _doprnt;
    41255655  ;
    41265656  return 0;
     
    41285658_ACEOF
    41295659rm -f conftest.$ac_objext conftest$ac_exeext
    4130 if { (eval echo "$as_me:4130: \"$ac_link\"") >&5
    4131   (eval $ac_link) 2>&5
    4132   ac_status=$?
    4133   echo "$as_me:4133: \$? = $ac_status" >&5
     5660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5661  (eval $ac_link) 2>conftest.er1
     5662  ac_status=$?
     5663  grep -v '^ *+' conftest.er1 >conftest.err
     5664  rm -f conftest.er1
     5665  cat conftest.err >&5
     5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41345667  (exit $ac_status); } &&
    4135          { ac_try='test -s conftest$ac_exeext'
    4136   { (eval echo "$as_me:4136: \"$ac_try\"") >&5
    4137   (eval $ac_try) 2>&5
    4138   ac_status=$?
    4139   echo "$as_me:4139: \$? = $ac_status" >&5
     5668     { ac_try='test -z "$ac_c_werror_flag"
     5669             || test ! -s conftest.err'
     5670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5671  (eval $ac_try) 2>&5
     5672  ac_status=$?
     5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5674  (exit $ac_status); }; } &&
     5675     { ac_try='test -s conftest$ac_exeext'
     5676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5677  (eval $ac_try) 2>&5
     5678  ac_status=$?
     5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41405680  (exit $ac_status); }; }; then
    41415681  ac_cv_func__doprnt=yes
    41425682else
    41435683  echo "$as_me: failed program was:" >&5
    4144 cat conftest.$ac_ext >&5
     5684sed 's/^/| /' conftest.$ac_ext >&5
     5685
    41455686ac_cv_func__doprnt=no
    41465687fi
    4147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4148 fi
    4149 echo "$as_me:4149: result: $ac_cv_func__doprnt" >&5
     5688rm -f conftest.err conftest.$ac_objext \
     5689      conftest$ac_exeext conftest.$ac_ext
     5690fi
     5691echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    41505692echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    41515693if test $ac_cv_func__doprnt = yes; then
    41525694
    4153 cat >>confdefs.h <<\EOF
     5695cat >>confdefs.h <<\_ACEOF
    41545696#define HAVE_DOPRNT 1
    4155 EOF
     5697_ACEOF
    41565698
    41575699fi
     
    41595701fi
    41605702done
     5703
     5704
     5705
     5706
     5707
     5708
     5709
     5710
     5711
     5712
    41615713
    41625714for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
    41635715do
    4164 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4165 echo "$as_me:4165: checking for $ac_func" >&5
     5716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5717echo "$as_me:$LINENO: checking for $ac_func" >&5
    41665718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4167 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5719if eval "test \"\${$as_ac_var+set}\" = set"; then
    41685720  echo $ECHO_N "(cached) $ECHO_C" >&6
    41695721else
    41705722  cat >conftest.$ac_ext <<_ACEOF
    4171 #line 4171 "configure"
    4172 #include "confdefs.h"
     5723/* confdefs.h.  */
     5724_ACEOF
     5725cat confdefs.h >>conftest.$ac_ext
     5726cat >>conftest.$ac_ext <<_ACEOF
     5727/* end confdefs.h.  */
     5728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5729   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5730#define $ac_func innocuous_$ac_func
     5731
    41735732/* System header to define __stub macros and hopefully few prototypes,
    4174     which can conflict with char $ac_func (); below.  */
    4175 #include <assert.h>
     5733    which can conflict with char $ac_func (); below.
     5734    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5735    <limits.h> exists even on freestanding compilers.  */
     5736
     5737#ifdef __STDC__
     5738# include <limits.h>
     5739#else
     5740# include <assert.h>
     5741#endif
     5742
     5743#undef $ac_func
     5744
    41765745/* Override any gcc2 internal prototype to avoid an error.  */
    41775746#ifdef __cplusplus
    41785747extern "C"
     5748{
    41795749#endif
    41805750/* We use char because int might match the return type of a gcc2
    41815751   builtin and then its argument prototype would still apply.  */
    41825752char $ac_func ();
    4183 char (*f) ();
    4184 
    4185 int
    4186 main ()
    4187 {
    41885753/* The GNU C library defines this for functions which it implements
    41895754    to always fail with ENOSYS.  Some functions are actually named
     
    41925757choke me
    41935758#else
    4194 f = $ac_func;
     5759char (*f) () = $ac_func;
    41955760#endif
    4196 
     5761#ifdef __cplusplus
     5762}
     5763#endif
     5764
     5765int
     5766main ()
     5767{
     5768return f != $ac_func;
    41975769  ;
    41985770  return 0;
     
    42005772_ACEOF
    42015773rm -f conftest.$ac_objext conftest$ac_exeext
    4202 if { (eval echo "$as_me:4202: \"$ac_link\"") >&5
    4203   (eval $ac_link) 2>&5
    4204   ac_status=$?
    4205   echo "$as_me:4205: \$? = $ac_status" >&5
     5774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5775  (eval $ac_link) 2>conftest.er1
     5776  ac_status=$?
     5777  grep -v '^ *+' conftest.er1 >conftest.err
     5778  rm -f conftest.er1
     5779  cat conftest.err >&5
     5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42065781  (exit $ac_status); } &&
    4207          { ac_try='test -s conftest$ac_exeext'
    4208   { (eval echo "$as_me:4208: \"$ac_try\"") >&5
    4209   (eval $ac_try) 2>&5
    4210   ac_status=$?
    4211   echo "$as_me:4211: \$? = $ac_status" >&5
     5782     { ac_try='test -z "$ac_c_werror_flag"
     5783             || test ! -s conftest.err'
     5784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5785  (eval $ac_try) 2>&5
     5786  ac_status=$?
     5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5788  (exit $ac_status); }; } &&
     5789     { ac_try='test -s conftest$ac_exeext'
     5790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5791  (eval $ac_try) 2>&5
     5792  ac_status=$?
     5793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42125794  (exit $ac_status); }; }; then
    4213   eval "$ac_ac_var=yes"
     5795  eval "$as_ac_var=yes"
    42145796else
    42155797  echo "$as_me: failed program was:" >&5
    4216 cat conftest.$ac_ext >&5
    4217 eval "$ac_ac_var=no"
    4218 fi
    4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4220 fi
    4221 echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4222 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4223 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4224   cat >>confdefs.h <<EOF
    4225 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4226 EOF
     5798sed 's/^/| /' conftest.$ac_ext >&5
     5799
     5800eval "$as_ac_var=no"
     5801fi
     5802rm -f conftest.err conftest.$ac_objext \
     5803      conftest$ac_exeext conftest.$ac_ext
     5804fi
     5805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5807if test `eval echo '${'$as_ac_var'}'` = yes; then
     5808  cat >>confdefs.h <<_ACEOF
     5809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5810_ACEOF
    42275811
    42285812fi
    42295813done
     5814
     5815
     5816
    42305817
    42315818for ac_func in ftruncate strstr strcasecmp
    42325819do
    4233 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4234 echo "$as_me:4234: checking for $ac_func" >&5
     5820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5821echo "$as_me:$LINENO: checking for $ac_func" >&5
    42355822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4236 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5823if eval "test \"\${$as_ac_var+set}\" = set"; then
    42375824  echo $ECHO_N "(cached) $ECHO_C" >&6
    42385825else
    42395826  cat >conftest.$ac_ext <<_ACEOF
    4240 #line 4240 "configure"
    4241 #include "confdefs.h"
     5827/* confdefs.h.  */
     5828_ACEOF
     5829cat confdefs.h >>conftest.$ac_ext
     5830cat >>conftest.$ac_ext <<_ACEOF
     5831/* end confdefs.h.  */
     5832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5834#define $ac_func innocuous_$ac_func
     5835
    42425836/* System header to define __stub macros and hopefully few prototypes,
    4243     which can conflict with char $ac_func (); below.  */
    4244 #include <assert.h>
     5837    which can conflict with char $ac_func (); below.
     5838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5839    <limits.h> exists even on freestanding compilers.  */
     5840
     5841#ifdef __STDC__
     5842# include <limits.h>
     5843#else
     5844# include <assert.h>
     5845#endif
     5846
     5847#undef $ac_func
     5848
    42455849/* Override any gcc2 internal prototype to avoid an error.  */
    42465850#ifdef __cplusplus
    42475851extern "C"
     5852{
    42485853#endif
    42495854/* We use char because int might match the return type of a gcc2
    42505855   builtin and then its argument prototype would still apply.  */
    42515856char $ac_func ();
    4252 char (*f) ();
    4253 
    4254 int
    4255 main ()
    4256 {
    42575857/* The GNU C library defines this for functions which it implements
    42585858    to always fail with ENOSYS.  Some functions are actually named
     
    42615861choke me
    42625862#else
    4263 f = $ac_func;
     5863char (*f) () = $ac_func;
    42645864#endif
    4265 
     5865#ifdef __cplusplus
     5866}
     5867#endif
     5868
     5869int
     5870main ()
     5871{
     5872return f != $ac_func;
    42665873  ;
    42675874  return 0;
     
    42695876_ACEOF
    42705877rm -f conftest.$ac_objext conftest$ac_exeext
    4271 if { (eval echo "$as_me:4271: \"$ac_link\"") >&5
    4272   (eval $ac_link) 2>&5
    4273   ac_status=$?
    4274   echo "$as_me:4274: \$? = $ac_status" >&5
     5878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5879  (eval $ac_link) 2>conftest.er1
     5880  ac_status=$?
     5881  grep -v '^ *+' conftest.er1 >conftest.err
     5882  rm -f conftest.er1
     5883  cat conftest.err >&5
     5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42755885  (exit $ac_status); } &&
    4276          { ac_try='test -s conftest$ac_exeext'
    4277   { (eval echo "$as_me:4277: \"$ac_try\"") >&5
    4278   (eval $ac_try) 2>&5
    4279   ac_status=$?
    4280   echo "$as_me:4280: \$? = $ac_status" >&5
     5886     { ac_try='test -z "$ac_c_werror_flag"
     5887             || test ! -s conftest.err'
     5888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5889  (eval $ac_try) 2>&5
     5890  ac_status=$?
     5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5892  (exit $ac_status); }; } &&
     5893     { ac_try='test -s conftest$ac_exeext'
     5894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5895  (eval $ac_try) 2>&5
     5896  ac_status=$?
     5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    42815898  (exit $ac_status); }; }; then
    4282   eval "$ac_ac_var=yes"
     5899  eval "$as_ac_var=yes"
    42835900else
    42845901  echo "$as_me: failed program was:" >&5
    4285 cat conftest.$ac_ext >&5
    4286 eval "$ac_ac_var=no"
    4287 fi
    4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4289 fi
    4290 echo "$as_me:4290: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4291 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4292 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4293   cat >>confdefs.h <<EOF
    4294 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4295 EOF
    4296 
    4297 else
    4298   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
     5902sed 's/^/| /' conftest.$ac_ext >&5
     5903
     5904eval "$as_ac_var=no"
     5905fi
     5906rm -f conftest.err conftest.$ac_objext \
     5907      conftest$ac_exeext conftest.$ac_ext
     5908fi
     5909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5911if test `eval echo '${'$as_ac_var'}'` = yes; then
     5912  cat >>confdefs.h <<_ACEOF
     5913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5914_ACEOF
     5915
     5916else
     5917  case $LIBOBJS in
     5918    "$ac_func.$ac_objext"   | \
     5919  *" $ac_func.$ac_objext"   | \
     5920    "$ac_func.$ac_objext "* | \
     5921  *" $ac_func.$ac_objext "* ) ;;
     5922  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     5923esac
     5924
    42995925fi
    43005926done
     5927
     5928
     5929
    43015930
    43025931# *** Custom checking (based on GNU tar configure.in) ***
    43035932# ---------------------------------------------------------------------------
    4304 echo "$as_me:4304: checking for HP-UX needing gmalloc" >&5
     5933echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
    43055934echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    43065935if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    4307   echo "$as_me:4307: result: yes" >&5
     5936  echo "$as_me:$LINENO: result: yes" >&5
    43085937echo "${ECHO_T}yes" >&6
    4309   LIBOBJS="$LIBOBJS gmalloc.o"
    4310   cat >>confdefs.h <<\EOF
     5938  case $LIBOBJS in
     5939    "gmalloc.$ac_objext"   | \
     5940  *" gmalloc.$ac_objext"   | \
     5941    "gmalloc.$ac_objext "* | \
     5942  *" gmalloc.$ac_objext "* ) ;;
     5943  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     5944esac
     5945
     5946  cat >>confdefs.h <<\_ACEOF
    43115947#define HAVE_VALLOC 1
    4312 EOF
    4313 
    4314 else
    4315   echo "$as_me:4315: result: no" >&5
     5948_ACEOF
     5949
     5950else
     5951  echo "$as_me:$LINENO: result: no" >&5
    43165952echo "${ECHO_T}no" >&6
    43175953
    43185954for ac_func in valloc
    43195955do
    4320 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4321 echo "$as_me:4321: checking for $ac_func" >&5
     5956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5957echo "$as_me:$LINENO: checking for $ac_func" >&5
    43225958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4323 if eval "test \"\${$ac_ac_var+set}\" = set"; then
     5959if eval "test \"\${$as_ac_var+set}\" = set"; then
    43245960  echo $ECHO_N "(cached) $ECHO_C" >&6
    43255961else
    43265962  cat >conftest.$ac_ext <<_ACEOF
    4327 #line 4327 "configure"
    4328 #include "confdefs.h"
     5963/* confdefs.h.  */
     5964_ACEOF
     5965cat confdefs.h >>conftest.$ac_ext
     5966cat >>conftest.$ac_ext <<_ACEOF
     5967/* end confdefs.h.  */
     5968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5969   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5970#define $ac_func innocuous_$ac_func
     5971
    43295972/* System header to define __stub macros and hopefully few prototypes,
    4330     which can conflict with char $ac_func (); below.  */
    4331 #include <assert.h>
     5973    which can conflict with char $ac_func (); below.
     5974    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5975    <limits.h> exists even on freestanding compilers.  */
     5976
     5977#ifdef __STDC__
     5978# include <limits.h>
     5979#else
     5980# include <assert.h>
     5981#endif
     5982
     5983#undef $ac_func
     5984
    43325985/* Override any gcc2 internal prototype to avoid an error.  */
    43335986#ifdef __cplusplus
    43345987extern "C"
     5988{
    43355989#endif
    43365990/* We use char because int might match the return type of a gcc2
    43375991   builtin and then its argument prototype would still apply.  */
    43385992char $ac_func ();
    4339 char (*f) ();
    4340 
    4341 int
    4342 main ()
    4343 {
    43445993/* The GNU C library defines this for functions which it implements
    43455994    to always fail with ENOSYS.  Some functions are actually named
     
    43485997choke me
    43495998#else
    4350 f = $ac_func;
     5999char (*f) () = $ac_func;
    43516000#endif
    4352 
     6001#ifdef __cplusplus
     6002}
     6003#endif
     6004
     6005int
     6006main ()
     6007{
     6008return f != $ac_func;
    43536009  ;
    43546010  return 0;
     
    43566012_ACEOF
    43576013rm -f conftest.$ac_objext conftest$ac_exeext
    4358 if { (eval echo "$as_me:4358: \"$ac_link\"") >&5
    4359   (eval $ac_link) 2>&5
    4360   ac_status=$?
    4361   echo "$as_me:4361: \$? = $ac_status" >&5
     6014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6015  (eval $ac_link) 2>conftest.er1
     6016  ac_status=$?
     6017  grep -v '^ *+' conftest.er1 >conftest.err
     6018  rm -f conftest.er1
     6019  cat conftest.err >&5
     6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    43626021  (exit $ac_status); } &&
    4363          { ac_try='test -s conftest$ac_exeext'
    4364   { (eval echo "$as_me:4364: \"$ac_try\"") >&5
    4365   (eval $ac_try) 2>&5
    4366   ac_status=$?
    4367   echo "$as_me:4367: \$? = $ac_status" >&5
     6022     { ac_try='test -z "$ac_c_werror_flag"
     6023             || test ! -s conftest.err'
     6024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6025  (eval $ac_try) 2>&5
     6026  ac_status=$?
     6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6028  (exit $ac_status); }; } &&
     6029     { ac_try='test -s conftest$ac_exeext'
     6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6031  (eval $ac_try) 2>&5
     6032  ac_status=$?
     6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    43686034  (exit $ac_status); }; }; then
    4369   eval "$ac_ac_var=yes"
     6035  eval "$as_ac_var=yes"
    43706036else
    43716037  echo "$as_me: failed program was:" >&5
    4372 cat conftest.$ac_ext >&5
    4373 eval "$ac_ac_var=no"
    4374 fi
    4375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4376 fi
    4377 echo "$as_me:4377: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4378 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4379 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4380   cat >>confdefs.h <<EOF
    4381 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4382 EOF
     6038sed 's/^/| /' conftest.$ac_ext >&5
     6039
     6040eval "$as_ac_var=no"
     6041fi
     6042rm -f conftest.err conftest.$ac_objext \
     6043      conftest$ac_exeext conftest.$ac_ext
     6044fi
     6045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6047if test `eval echo '${'$as_ac_var'}'` = yes; then
     6048  cat >>confdefs.h <<_ACEOF
     6049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6050_ACEOF
    43836051
    43846052fi
     
    43876055fi
    43886056
    4389 echo "$as_me:4389: checking if malloc debugging is wanted" >&5
     6057# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
     6058# a non-standard Path
     6059echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
     6060echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6061if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
     6062  echo "$as_me:$LINENO: result: yes" >&5
     6063echo "${ECHO_T}yes" >&6
     6064  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
     6065  JNISUFFIX="jnilib"
     6066  JNIFLAGS="-dynamiclib -fno-common -single_module"
     6067  LDFLAGS="-framework JavaVM"
     6068else
     6069  echo "$as_me:$LINENO: result: no" >&5
     6070echo "${ECHO_T}no" >&6
     6071  JNIINC=""
     6072  JNISUFFIX="so"
     6073  JNIFLAGS="-shared"
     6074fi
     6075
     6076
     6077
     6078
     6079echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
    43906080echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    43916081
     
    43946084  withval="$with_dmalloc"
    43956085  if test "$withval" = yes; then
    4396   echo "$as_me:4396: result: yes" >&5
     6086  echo "$as_me:$LINENO: result: yes" >&5
    43976087echo "${ECHO_T}yes" >&6
    4398   cat >>confdefs.h <<\EOF
     6088  cat >>confdefs.h <<\_ACEOF
    43996089#define WITH_DMALLOC 1
    4400 EOF
     6090_ACEOF
    44016091
    44026092  LIBS="$LIBS -ldmalloc"
    44036093  LDFLAGS="$LDFLAGS -g"
    44046094else
    4405   echo "$as_me:4405: result: no" >&5
     6095  echo "$as_me:$LINENO: result: no" >&5
    44066096echo "${ECHO_T}no" >&6
    44076097fi
    44086098else
    4409   echo "$as_me:4409: result: no" >&5
     6099  echo "$as_me:$LINENO: result: no" >&5
    44106100echo "${ECHO_T}no" >&6
    44116101fi;
    44126102
    4413 echo "$as_me:4413: checking which of rx or regex is wanted" >&5
     6103echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
    44146104echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    44156105
     
    44196109  if test "$withval" = yes; then
    44206110  ac_with_regex=1
    4421   echo "$as_me:4421: result: regex" >&5
     6111  echo "$as_me:$LINENO: result: regex" >&5
    44226112echo "${ECHO_T}regex" >&6
    4423   cat >>confdefs.h <<\EOF
     6113  cat >>confdefs.h <<\_ACEOF
    44246114#define WITH_REGEX 1
    4425 EOF
     6115_ACEOF
    44266116
    44276117  LIBOBJS="$LIBOBJS regex.o"
     
    44296119fi;
    44306120if test -z "$ac_with_regex"; then
    4431   echo "$as_me:4431: result: rx" >&5
     6121  echo "$as_me:$LINENO: result: rx" >&5
    44326122echo "${ECHO_T}rx" >&6
    4433   echo "$as_me:4433: checking for re_rx_search" >&5
     6123  echo "$as_me:$LINENO: checking for re_rx_search" >&5
    44346124echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    44356125if test "${ac_cv_func_re_rx_search+set}" = set; then
     
    44376127else
    44386128  cat >conftest.$ac_ext <<_ACEOF
    4439 #line 4439 "configure"
    4440 #include "confdefs.h"
     6129/* confdefs.h.  */
     6130_ACEOF
     6131cat confdefs.h >>conftest.$ac_ext
     6132cat >>conftest.$ac_ext <<_ACEOF
     6133/* end confdefs.h.  */
     6134/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
     6135   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6136#define re_rx_search innocuous_re_rx_search
     6137
    44416138/* System header to define __stub macros and hopefully few prototypes,
    4442     which can conflict with char re_rx_search (); below.  */
    4443 #include <assert.h>
     6139    which can conflict with char re_rx_search (); below.
     6140    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6141    <limits.h> exists even on freestanding compilers.  */
     6142
     6143#ifdef __STDC__
     6144# include <limits.h>
     6145#else
     6146# include <assert.h>
     6147#endif
     6148
     6149#undef re_rx_search
     6150
    44446151/* Override any gcc2 internal prototype to avoid an error.  */
    44456152#ifdef __cplusplus
    44466153extern "C"
     6154{
    44476155#endif
    44486156/* We use char because int might match the return type of a gcc2
    44496157   builtin and then its argument prototype would still apply.  */
    44506158char re_rx_search ();
    4451 char (*f) ();
    4452 
    4453 int
    4454 main ()
    4455 {
    44566159/* The GNU C library defines this for functions which it implements
    44576160    to always fail with ENOSYS.  Some functions are actually named
     
    44606163choke me
    44616164#else
    4462 f = re_rx_search;
     6165char (*f) () = re_rx_search;
    44636166#endif
    4464 
     6167#ifdef __cplusplus
     6168}
     6169#endif
     6170
     6171int
     6172main ()
     6173{
     6174return f != re_rx_search;
    44656175  ;
    44666176  return 0;
     
    44686178_ACEOF
    44696179rm -f conftest.$ac_objext conftest$ac_exeext
    4470 if { (eval echo "$as_me:4470: \"$ac_link\"") >&5
    4471   (eval $ac_link) 2>&5
    4472   ac_status=$?
    4473   echo "$as_me:4473: \$? = $ac_status" >&5
     6180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6181  (eval $ac_link) 2>conftest.er1
     6182  ac_status=$?
     6183  grep -v '^ *+' conftest.er1 >conftest.err
     6184  rm -f conftest.er1
     6185  cat conftest.err >&5
     6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44746187  (exit $ac_status); } &&
    4475          { ac_try='test -s conftest$ac_exeext'
    4476   { (eval echo "$as_me:4476: \"$ac_try\"") >&5
    4477   (eval $ac_try) 2>&5
    4478   ac_status=$?
    4479   echo "$as_me:4479: \$? = $ac_status" >&5
     6188     { ac_try='test -z "$ac_c_werror_flag"
     6189             || test ! -s conftest.err'
     6190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6191  (eval $ac_try) 2>&5
     6192  ac_status=$?
     6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6194  (exit $ac_status); }; } &&
     6195     { ac_try='test -s conftest$ac_exeext'
     6196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6197  (eval $ac_try) 2>&5
     6198  ac_status=$?
     6199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44806200  (exit $ac_status); }; }; then
    44816201  ac_cv_func_re_rx_search=yes
    44826202else
    44836203  echo "$as_me: failed program was:" >&5
    4484 cat conftest.$ac_ext >&5
     6204sed 's/^/| /' conftest.$ac_ext >&5
     6205
    44856206ac_cv_func_re_rx_search=no
    44866207fi
    4487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4488 fi
    4489 echo "$as_me:4489: result: $ac_cv_func_re_rx_search" >&5
     6208rm -f conftest.err conftest.$ac_objext \
     6209      conftest$ac_exeext conftest.$ac_ext
     6210fi
     6211echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
    44906212echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    44916213if test $ac_cv_func_re_rx_search = yes; then
     
    44976219fi
    44986220
     6221
    44996222# ---------------------------------------------------------------------------
    45006223if test "$ac_cv_func_alloca" = 'no'; then
    4501   LIBOBJS="$LIBOBJS xmalloc.o error.o"
    4502 fi
     6224  case $LIBOBJS in
     6225    "xmalloc.$ac_objext"   | \
     6226  *" xmalloc.$ac_objext"   | \
     6227    "xmalloc.$ac_objext "* | \
     6228  *" xmalloc.$ac_objext "* ) ;;
     6229  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6230esac
     6231
     6232  case $LIBOBJS in
     6233    "error.$ac_objext"   | \
     6234  *" error.$ac_objext"   | \
     6235    "error.$ac_objext "* | \
     6236  *" error.$ac_objext "* ) ;;
     6237  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6238esac
     6239
     6240fi
     6241
    45036242
    45046243# ---------------------------------------------------------------------------
    45056244
    4506 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
    4507 ac_config_commands="$ac_config_commands default"
     6245                                                                      ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
     6246          ac_config_commands="$ac_config_commands default"
    45086247cat >confcache <<\_ACEOF
    45096248# This file is a shell script that caches the results of configure
     
    45166255# the --recheck option to rerun configure.
    45176256#
    4518 # `ac_cv_env_foo' variables (set or unset) will be overriden when
     6257# `ac_cv_env_foo' variables (set or unset) will be overridden when
    45196258# loading this file, other *unset* `ac_cv_foo' will be assigned the
    45206259# following values.
     
    45346273      # substitution turns \\\\ into \\, and sed turns \\ into \).
    45356274      sed -n \
    4536         "s/'/'\\\\''/g;
    4537           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     6275    "s/'/'\\\\''/g;
     6276      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    45386277      ;;
    45396278    *)
    45406279      # `set' quotes correctly as required by POSIX, so do not add quotes.
    45416280      sed -n \
    4542         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6281    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    45436282      ;;
    45446283    esac;
     
    45516290     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    45526291     : end' >>confcache
    4553 if cmp -s $cache_file confcache; then :; else
     6292if diff $cache_file confcache >/dev/null 2>&1; then :; else
    45546293  if test -w $cache_file; then
    45556294    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     
    45706309# (actually we leave an empty line to preserve line numbers).
    45716310if test "x$srcdir" = x.; then
    4572   ac_vpsub='/^[     ]*VPATH[    ]*=/{
     6311  ac_vpsub='/^[  ]*VPATH[    ]*=/{
    45736312s/:*\$(srcdir):*/:/;
    45746313s/:*\${srcdir}:*/:/;
    45756314s/:*@srcdir@:*/:/;
    4576 s/^\([^=]*=[    ]*\):*/\1/;
     6315s/^\([^=]*=[     ]*\):*/\1/;
    45776316s/:*$//;
    4578 s/^[^=]*=[  ]*$//;
     6317s/^[^=]*=[   ]*$//;
    45796318}'
    45806319fi
    45816320
    45826321DEFS=-DHAVE_CONFIG_H
     6322
     6323ac_libobjs=
     6324ac_ltlibobjs=
     6325for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
     6326  # 1. Remove the extension, and $U if already installed.
     6327  ac_i=`echo "$ac_i" |
     6328     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     6329  # 2. Add them.
     6330  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     6331  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6332done
     6333LIBOBJS=$ac_libobjs
     6334
     6335LTLIBOBJS=$ac_ltlibobjs
     6336
     6337
    45836338
    45846339: ${CONFIG_STATUS=./config.status}
    45856340ac_clean_files_save=$ac_clean_files
    45866341ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    4587 { echo "$as_me:4587: creating $CONFIG_STATUS" >&5
     6342{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    45886343echo "$as_me: creating $CONFIG_STATUS" >&6;}
    45896344cat >$CONFIG_STATUS <<_ACEOF
    45906345#! $SHELL
    4591 # Generated automatically by configure.
     6346# Generated by $as_me.
    45926347# Run this file to recreate the current configuration.
    45936348# Compiler output produced by configure, useful for debugging
     
    45956350
    45966351debug=false
     6352ac_cs_recheck=false
     6353ac_cs_silent=false
    45976354SHELL=\${CONFIG_SHELL-$SHELL}
    4598 ac_cs_invocation="\$0 \$@"
    4599 
    46006355_ACEOF
    46016356
    46026357cat >>$CONFIG_STATUS <<\_ACEOF
     6358## --------------------- ##
     6359## M4sh Initialization.  ##
     6360## --------------------- ##
     6361
    46036362# Be Bourne compatible
    46046363if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    46056364  emulate sh
    46066365  NULLCMD=:
     6366  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6367  # is contrary to our usage.  Disable this feature.
     6368  alias -g '${1+"$@"}'='"$@"'
    46076369elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    46086370  set -o posix
    46096371fi
     6372DUALCASE=1; export DUALCASE # for MKS sh
     6373
     6374# Support unset when possible.
     6375if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     6376  as_unset=unset
     6377else
     6378  as_unset=false
     6379fi
     6380
     6381
     6382# Work around bugs in pre-3.0 UWIN ksh.
     6383$as_unset ENV MAIL MAILPATH
     6384PS1='$ '
     6385PS2='> '
     6386PS4='+ '
     6387
     6388# NLS nuisances.
     6389for as_var in \
     6390  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     6391  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     6392  LC_TELEPHONE LC_TIME
     6393do
     6394  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     6395    eval $as_var=C; export $as_var
     6396  else
     6397    $as_unset $as_var
     6398  fi
     6399done
     6400
     6401# Required to use basename.
     6402if expr a : '\(a\)' >/dev/null 2>&1; then
     6403  as_expr=expr
     6404else
     6405  as_expr=false
     6406fi
     6407
     6408if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6409  as_basename=basename
     6410else
     6411  as_basename=false
     6412fi
     6413
    46106414
    46116415# Name of the executable.
    4612 as_me=`echo "$0" |sed 's,.*[\\/],,'`
     6416as_me=`$as_basename "$0" ||
     6417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     6418     X"$0" : 'X\(//\)$' \| \
     6419     X"$0" : 'X\(/\)$' \| \
     6420     .     : '\(.\)' 2>/dev/null ||
     6421echo X/"$0" |
     6422    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     6423      /^X\/\(\/\/\)$/{ s//\1/; q; }
     6424      /^X\/\(\/\).*/{ s//\1/; q; }
     6425      s/.*/./; q'`
     6426
     6427
     6428# PATH needs CR, and LINENO needs CR and PATH.
     6429# Avoid depending upon Character Ranges.
     6430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     6431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     6432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     6433as_cr_digits='0123456789'
     6434as_cr_alnum=$as_cr_Letters$as_cr_digits
     6435
     6436# The user is always right.
     6437if test "${PATH_SEPARATOR+set}" != set; then
     6438  echo "#! /bin/sh" >conf$$.sh
     6439  echo  "exit 0"   >>conf$$.sh
     6440  chmod +x conf$$.sh
     6441  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     6442    PATH_SEPARATOR=';'
     6443  else
     6444    PATH_SEPARATOR=:
     6445  fi
     6446  rm -f conf$$.sh
     6447fi
     6448
     6449
     6450  as_lineno_1=$LINENO
     6451  as_lineno_2=$LINENO
     6452  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6453  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6454  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     6455  # Find who we are.  Look in the path if we contain no path at all
     6456  # relative or not.
     6457  case $0 in
     6458    *[\\/]* ) as_myself=$0 ;;
     6459    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6460for as_dir in $PATH
     6461do
     6462  IFS=$as_save_IFS
     6463  test -z "$as_dir" && as_dir=.
     6464  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6465done
     6466
     6467       ;;
     6468  esac
     6469  # We did not find ourselves, most probably we were run as `sh COMMAND'
     6470  # in which case we are not to be found in the path.
     6471  if test "x$as_myself" = x; then
     6472    as_myself=$0
     6473  fi
     6474  if test ! -f "$as_myself"; then
     6475    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
     6476echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
     6477   { (exit 1); exit 1; }; }
     6478  fi
     6479  case $CONFIG_SHELL in
     6480  '')
     6481    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6482for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     6483do
     6484  IFS=$as_save_IFS
     6485  test -z "$as_dir" && as_dir=.
     6486  for as_base in sh bash ksh sh5; do
     6487     case $as_dir in
     6488     /*)
     6489       if ("$as_dir/$as_base" -c '
     6490  as_lineno_1=$LINENO
     6491  as_lineno_2=$LINENO
     6492  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6493  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6494  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     6495         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     6496         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     6497         CONFIG_SHELL=$as_dir/$as_base
     6498         export CONFIG_SHELL
     6499         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     6500       fi;;
     6501     esac
     6502       done
     6503done
     6504;;
     6505  esac
     6506
     6507  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     6508  # uniformly replaced by the line number.  The first 'sed' inserts a
     6509  # line-number line before each line; the second 'sed' does the real
     6510  # work.  The second script uses 'N' to pair each line-number line
     6511  # with the numbered line, and appends trailing '-' during
     6512  # substitution so that $LINENO is not a special case at line end.
     6513  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     6514  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     6515  sed '=' <$as_myself |
     6516    sed '
     6517      N
     6518      s,$,-,
     6519      : loop
     6520      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     6521      t loop
     6522      s,-$,,
     6523      s,^['$as_cr_digits']*\n,,
     6524    ' >$as_me.lineno &&
     6525  chmod +x $as_me.lineno ||
     6526    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
     6527echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     6528   { (exit 1); exit 1; }; }
     6529
     6530  # Don't try to exec as it changes $[0], causing all sort of problems
     6531  # (the dirname of $[0] is not the place where we might find the
     6532  # original and so on.  Autoconf is especially sensible to this).
     6533  . ./$as_me.lineno
     6534  # Exit status is that of the last command.
     6535  exit
     6536}
     6537
     6538
     6539case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     6540  *c*,-n*) ECHO_N= ECHO_C='
     6541' ECHO_T='  ' ;;
     6542  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     6543  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     6544esac
    46136545
    46146546if expr a : '\(a\)' >/dev/null 2>&1; then
     
    46366568rm -f conf$$ conf$$.exe conf$$.file
    46376569
     6570if mkdir -p . 2>/dev/null; then
     6571  as_mkdir_p=:
     6572else
     6573  test -d ./-p && rmdir ./-p
     6574  as_mkdir_p=false
     6575fi
     6576
    46386577as_executable_p="test -f"
    46396578
    4640 # Support unset when possible.
    4641 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    4642   as_unset=unset
    4643 else
    4644   as_unset=false
    4645 fi
    4646 
    4647 # NLS nuisances.
    4648 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    4649 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    4650 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    4651 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    4652 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    4653 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    4654 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    4655 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     6579# Sed expression to map a string onto a valid CPP name.
     6580as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     6581
     6582# Sed expression to map a string onto a valid variable name.
     6583as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     6584
    46566585
    46576586# IFS
     
    46626591
    46636592# CDPATH.
    4664 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     6593$as_unset CDPATH
    46656594
    46666595exec 6>&1
    46676596
     6597# Open the log real soon, to keep \$[0] and so on meaningful, and to
     6598# report actual input values of CONFIG_FILES etc. instead of their
     6599# values after options handling.  Logging --version etc. is OK.
     6600exec 5>>config.log
     6601{
     6602  echo
     6603  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     6604## Running $as_me. ##
     6605_ASBOX
     6606} >&5
     6607cat >&5 <<_CSEOF
     6608
     6609This file was extended by $as_me, which was
     6610generated by GNU Autoconf 2.59.  Invocation command line was
     6611
     6612  CONFIG_FILES    = $CONFIG_FILES
     6613  CONFIG_HEADERS  = $CONFIG_HEADERS
     6614  CONFIG_LINKS    = $CONFIG_LINKS
     6615  CONFIG_COMMANDS = $CONFIG_COMMANDS
     6616  $ $0 $@
     6617
     6618_CSEOF
     6619echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
     6620echo >&5
    46686621_ACEOF
    46696622
     
    46856638fi
    46866639
    4687 cat >>$CONFIG_STATUS <<\EOF
     6640cat >>$CONFIG_STATUS <<\_ACEOF
    46886641
    46896642ac_cs_usage="\
     
    46956648  -h, --help       print this help, then exit
    46966649  -V, --version    print version number, then exit
     6650  -q, --quiet      do not print progress messages
    46976651  -d, --debug      don't remove temporary files
    46986652      --recheck    update $as_me by reconfiguring in the same conditions
    46996653  --file=FILE[:TEMPLATE]
    4700                    instantiate the configuration file FILE
     6654           instantiate the configuration file FILE
    47016655  --header=FILE[:TEMPLATE]
    4702                    instantiate the configuration header FILE
     6656           instantiate the configuration header FILE
    47036657
    47046658Configuration files:
     
    47126666
    47136667Report bugs to <[email protected]>."
    4714 EOF
    4715 
    4716 cat >>$CONFIG_STATUS <<EOF
     6668_ACEOF
     6669
     6670cat >>$CONFIG_STATUS <<_ACEOF
    47176671ac_cs_version="\\
    47186672config.status
    4719 configured by $0, generated by GNU Autoconf 2.50,
     6673configured by $0, generated by GNU Autoconf 2.59,
    47206674  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    47216675
    4722 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    4723 Free Software Foundation, Inc.
     6676Copyright (C) 2003 Free Software Foundation, Inc.
    47246677This config.status script is free software; the Free Software Foundation
    47256678gives unlimited permission to copy, distribute and modify it."
    47266679srcdir=$srcdir
    47276680INSTALL="$INSTALL"
    4728 EOF
    4729 
    4730 cat >>$CONFIG_STATUS <<\EOF
     6681_ACEOF
     6682
     6683cat >>$CONFIG_STATUS <<\_ACEOF
    47316684# If no file are specified by the user, then we need to provide default
    47326685# value.  By we need to know if files were specified by the user.
     
    47386691    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    47396692    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    4740     shift
    4741     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
    4742     shift
     6693    ac_shift=:
    47436694    ;;
    4744   -*);;
     6695  -*)
     6696    ac_option=$1
     6697    ac_optarg=$2
     6698    ac_shift=shift
     6699    ;;
    47456700  *) # This is not an option, so the user has probably given explicit
    47466701     # arguments.
     6702     ac_option=$1
    47476703     ac_need_defaults=false;;
    47486704  esac
    47496705
    4750   case $1 in
     6706  case $ac_option in
    47516707  # Handling of the options.
    4752 EOF
    4753 cat >>$CONFIG_STATUS <<EOF
     6708_ACEOF
     6709cat >>$CONFIG_STATUS <<\_ACEOF
    47546710  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    4755     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    4756     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
    4757 EOF
    4758 cat >>$CONFIG_STATUS <<\EOF
     6711    ac_cs_recheck=: ;;
    47596712  --version | --vers* | -V )
    47606713    echo "$ac_cs_version"; exit 0 ;;
    47616714  --he | --h)
    47626715    # Conflict between --help and --header
    4763     { { echo "$as_me:4763: error: ambiguous option: $1
     6716    { { echo "$as_me:$LINENO: error: ambiguous option: $1
    47646717Try \`$0 --help' for more information." >&5
    47656718echo "$as_me: error: ambiguous option: $1
     
    47716724    debug=: ;;
    47726725  --file | --fil | --fi | --f )
    4773     shift
    4774     CONFIG_FILES="$CONFIG_FILES $1"
     6726    $ac_shift
     6727    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    47756728    ac_need_defaults=false;;
    47766729  --header | --heade | --head | --hea )
    4777     shift
    4778     CONFIG_HEADERS="$CONFIG_HEADERS $1"
     6730    $ac_shift
     6731    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    47796732    ac_need_defaults=false;;
    4780 
    4781   # Handling of arguments.
    4782   'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    4783   'src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
    4784   'src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
    4785   'src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
    4786   'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    4787   'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
    4788   'java/org/greenstone/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
    4789   'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    4790   'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     6733  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     6734  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     6735    ac_cs_silent=: ;;
    47916736
    47926737  # This is an error.
    4793   -*) { { echo "$as_me:4793: error: unrecognized option: $1
     6738  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    47946739Try \`$0 --help' for more information." >&5
    47956740echo "$as_me: error: unrecognized option: $1
    47966741Try \`$0 --help' for more information." >&2;}
    47976742   { (exit 1); exit 1; }; } ;;
    4798   *) { { echo "$as_me:4798: error: invalid argument: $1" >&5
    4799 echo "$as_me: error: invalid argument: $1" >&2;}
    4800    { (exit 1); exit 1; }; };;
     6743
     6744  *) ac_config_targets="$ac_config_targets $1" ;;
     6745
    48016746  esac
    48026747  shift
    48036748done
    48046749
    4805 exec 5>>config.log
    4806 cat >&5 << _ACEOF
    4807 
    4808 ## ----------------------- ##
    4809 ## Running config.status.  ##
    4810 ## ----------------------- ##
    4811 
    4812 This file was extended by $as_me 2.50, executed with
    4813   > $ac_cs_invocation
    4814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
    4815 
    4816 _ACEOF
    4817 EOF
    4818 
    4819 cat >>$CONFIG_STATUS <<\EOF
     6750ac_configure_extra_args=
     6751
     6752if $ac_cs_silent; then
     6753  exec 6>/dev/null
     6754  ac_configure_extra_args="$ac_configure_extra_args --silent"
     6755fi
     6756
     6757_ACEOF
     6758cat >>$CONFIG_STATUS <<_ACEOF
     6759if \$ac_cs_recheck; then
     6760  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     6761  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     6762fi
     6763
     6764_ACEOF
     6765
     6766
     6767
     6768
     6769
     6770cat >>$CONFIG_STATUS <<\_ACEOF
     6771for ac_config_target in $ac_config_targets
     6772do
     6773  case "$ac_config_target" in
     6774  # Handling of arguments.
     6775  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     6776  "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
     6777  "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
     6778  "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
     6779  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     6780  "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
     6781  "java/org/greenstone/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
     6782  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     6783  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     6784  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     6785echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     6786   { (exit 1); exit 1; }; };;
     6787  esac
     6788done
     6789
    48206790# If the user did not use the arguments to specify the items to instantiate,
    48216791# then the envvar interface is used.  Set only those that are not.
     
    48286798fi
    48296799
     6800# Have a temporary directory for convenience.  Make it in the build tree
     6801# simply because there is no reason to put it here, and in addition,
     6802# creating and moving files from /tmp can sometimes cause problems.
    48306803# Create a temporary directory, and hook for its removal unless debugging.
    48316804$debug ||
    48326805{
    48336806  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    4834   trap '{ (exit $?); exit $?; }' 1 2 13 15
     6807  trap '{ (exit 1); exit 1; }' 1 2 13 15
    48356808}
    48366809
    48376810# Create a (secure) tmp directory for tmp files.
    4838 : ${TMPDIR=/tmp}
     6811
    48396812{
    4840   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
     6813  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
    48416814  test -n "$tmp" && test -d "$tmp"
    48426815}  ||
    48436816{
    4844   tmp=$TMPDIR/cs$$-$RANDOM
     6817  tmp=./confstat$$-$RANDOM
    48456818  (umask 077 && mkdir $tmp)
    48466819} ||
    48476820{
    4848    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     6821   echo "$me: cannot create a temporary directory in ." >&2
    48496822   { (exit 1); exit 1; }
    48506823}
    48516824
    4852 EOF
    4853 
    4854 cat >>$CONFIG_STATUS <<EOF
     6825_ACEOF
     6826
     6827cat >>$CONFIG_STATUS <<_ACEOF
    48556828
    48566829#
     
    48656838   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    48666839s,@SHELL@,$SHELL,;t t
     6840s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     6841s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     6842s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     6843s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     6844s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     6845s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    48676846s,@exec_prefix@,$exec_prefix,;t t
    48686847s,@prefix@,$prefix,;t t
     
    48806859s,@infodir@,$infodir,;t t
    48816860s,@mandir@,$mandir,;t t
    4882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    4883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    4884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    4885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    4886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     6861s,@build_alias@,$build_alias,;t t
     6862s,@host_alias@,$host_alias,;t t
     6863s,@target_alias@,$target_alias,;t t
     6864s,@DEFS@,$DEFS,;t t
    48876865s,@ECHO_C@,$ECHO_C,;t t
    48886866s,@ECHO_N@,$ECHO_N,;t t
    48896867s,@ECHO_T@,$ECHO_T,;t t
    4890 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    4891 s,@DEFS@,$DEFS,;t t
    48926868s,@LIBS@,$LIBS,;t t
    48936869s,@PACKAGE@,$PACKAGE,;t t
     
    49136889s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    49146890s,@CPP@,$CPP,;t t
     6891s,@EGREP@,$EGREP,;t t
    49156892s,@U@,$U,;t t
    49166893s,@ANSI2KNR@,$ANSI2KNR,;t t
    49176894s,@ALLOCA@,$ALLOCA,;t t
    49186895s,@LIBOBJS@,$LIBOBJS,;t t
     6896s,@JNIINC@,$JNIINC,;t t
     6897s,@JNISUFFIX@,$JNISUFFIX,;t t
     6898s,@JNIFLAGS@,$JNIFLAGS,;t t
     6899s,@LIBOBJS@,$LIBOBJS,;t t
     6900s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    49196901CEOF
    49206902
    4921 EOF
    4922 
    4923   cat >>$CONFIG_STATUS <<\EOF
     6903_ACEOF
     6904
     6905  cat >>$CONFIG_STATUS <<\_ACEOF
    49246906  # Split the substitutions into bite-sized pieces for seds with
    49256907  # small command number limits, like on Digital OSF/1 and HP-UX.
     
    49466928  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    49476929      if test -z "$ac_sed_cmds"; then
    4948     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     6930    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    49496931      else
    4950     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     6932    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    49516933      fi
    49526934      ac_sed_frag=`expr $ac_sed_frag + 1`
     
    49606942fi # test -n "$CONFIG_FILES"
    49616943
    4962 EOF
    4963 cat >>$CONFIG_STATUS <<\EOF
     6944_ACEOF
     6945cat >>$CONFIG_STATUS <<\_ACEOF
    49646946for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    49656947  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    49666948  case $ac_file in
    49676949  - | *:- | *:-:* ) # input from stdin
    4968         cat >$tmp/stdin
    4969         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    4970         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6950    cat >$tmp/stdin
     6951    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     6952    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    49716953  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    4972         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6954    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    49736955  * )   ac_file_in=$ac_file.in ;;
    49746956  esac
    49756957
    49766958  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    4977   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    4978          X"$ac_file" : 'X\(//\)[^/]' \| \
    4979          X"$ac_file" : 'X\(//\)$' \| \
    4980          X"$ac_file" : 'X\(/\)' \| \
    4981          .     : '\(.\)' 2>/dev/null ||
     6959  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     6960$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     6961     X"$ac_file" : 'X\(//\)[^/]' \| \
     6962     X"$ac_file" : 'X\(//\)$' \| \
     6963     X"$ac_file" : 'X\(/\)' \| \
     6964     .     : '\(.\)' 2>/dev/null ||
    49826965echo X"$ac_file" |
    49836966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    49866969      /^X\(\/\).*/{ s//\1/; q; }
    49876970      s/.*/./; q'`
    4988   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    4989     { case "$ac_dir" in
    4990   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    4991   *)                      as_incr_dir=.;;
     6971  { if $as_mkdir_p; then
     6972    mkdir -p "$ac_dir"
     6973  else
     6974    as_dir="$ac_dir"
     6975    as_dirs=
     6976    while test ! -d "$as_dir"; do
     6977      as_dirs="$as_dir $as_dirs"
     6978      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     6979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     6980     X"$as_dir" : 'X\(//\)[^/]' \| \
     6981     X"$as_dir" : 'X\(//\)$' \| \
     6982     X"$as_dir" : 'X\(/\)' \| \
     6983     .     : '\(.\)' 2>/dev/null ||
     6984echo X"$as_dir" |
     6985    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     6986      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     6987      /^X\(\/\/\)$/{ s//\1/; q; }
     6988      /^X\(\/\).*/{ s//\1/; q; }
     6989      s/.*/./; q'`
     6990    done
     6991    test ! -n "$as_dirs" || mkdir $as_dirs
     6992  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     6993echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     6994   { (exit 1); exit 1; }; }; }
     6995
     6996  ac_builddir=.
     6997
     6998if test "$ac_dir" != .; then
     6999  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7000  # A "../" for each directory in $ac_dir_suffix.
     7001  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7002else
     7003  ac_dir_suffix= ac_top_builddir=
     7004fi
     7005
     7006case $srcdir in
     7007  .)  # No --srcdir option.  We are building in place.
     7008    ac_srcdir=.
     7009    if test -z "$ac_top_builddir"; then
     7010       ac_top_srcdir=.
     7011    else
     7012       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7013    fi ;;
     7014  [\\/]* | ?:[\\/]* )  # Absolute path.
     7015    ac_srcdir=$srcdir$ac_dir_suffix;
     7016    ac_top_srcdir=$srcdir ;;
     7017  *) # Relative path.
     7018    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7019    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    49927020esac
    4993 as_dummy="$ac_dir"
    4994 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    4995   case $as_mkdir_dir in
    4996     # Skip DOS drivespec
    4997     ?:) as_incr_dir=$as_mkdir_dir ;;
    4998     *)
    4999       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5000       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5001     ;;
    5002   esac
    5003 done; }
    5004 
    5005     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    5006     # A "../" for each directory in $ac_dir_suffix.
    5007     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
    5008   else
    5009     ac_dir_suffix= ac_dots=
    5010   fi
    5011 
    5012   case $srcdir in
    5013   .)  ac_srcdir=.
    5014       if test -z "$ac_dots"; then
    5015          ac_top_srcdir=.
    5016       else
    5017          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
    5018       fi ;;
    5019   [\\/]* | ?:[\\/]* )
    5020       ac_srcdir=$srcdir$ac_dir_suffix;
    5021       ac_top_srcdir=$srcdir ;;
    5022   *) # Relative path.
    5023     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    5024     ac_top_srcdir=$ac_dots$srcdir ;;
    5025   esac
     7021
     7022# Do not use `cd foo && pwd` to compute absolute paths, because
     7023# the directories may not exist.
     7024case `pwd` in
     7025.) ac_abs_builddir="$ac_dir";;
     7026*)
     7027  case "$ac_dir" in
     7028  .) ac_abs_builddir=`pwd`;;
     7029  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     7030  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     7031  esac;;
     7032esac
     7033case $ac_abs_builddir in
     7034.) ac_abs_top_builddir=${ac_top_builddir}.;;
     7035*)
     7036  case ${ac_top_builddir}. in
     7037  .) ac_abs_top_builddir=$ac_abs_builddir;;
     7038  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     7039  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     7040  esac;;
     7041esac
     7042case $ac_abs_builddir in
     7043.) ac_abs_srcdir=$ac_srcdir;;
     7044*)
     7045  case $ac_srcdir in
     7046  .) ac_abs_srcdir=$ac_abs_builddir;;
     7047  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     7048  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     7049  esac;;
     7050esac
     7051case $ac_abs_builddir in
     7052.) ac_abs_top_srcdir=$ac_top_srcdir;;
     7053*)
     7054  case $ac_top_srcdir in
     7055  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     7056  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     7057  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     7058  esac;;
     7059esac
     7060
    50267061
    50277062  case $INSTALL in
    50287063  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    5029   *) ac_INSTALL=$ac_dots$INSTALL ;;
     7064  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
    50307065  esac
    50317066
    50327067  if test x"$ac_file" != x-; then
    5033     { echo "$as_me:5033: creating $ac_file" >&5
     7068    { echo "$as_me:$LINENO: creating $ac_file" >&5
    50347069echo "$as_me: creating $ac_file" >&6;}
    50357070    rm -f "$ac_file"
     
    50377072  # Let's still pretend it is `configure' which instantiates (i.e., don't
    50387073  # use $as_me), people would be surprised to read:
    5039   #    /* config.h.  Generated automatically by config.status.  */
    5040   configure_input="Generated automatically from `echo $ac_file_in |
    5041                                                  sed 's,.*/,,'` by configure."
     7074  #    /* config.h.  Generated by config.status.  */
     7075  if test x"$ac_file" = x-; then
     7076    configure_input=
     7077  else
     7078    configure_input="$ac_file.  "
     7079  fi
     7080  configure_input=$configure_input"Generated from `echo $ac_file_in |
     7081                     sed 's,.*/,,'` by configure."
    50427082
    50437083  # First look for the input files in the build tree, otherwise in the
     
    50487088      -) echo $tmp/stdin ;;
    50497089      [\\/$]*)
    5050         # Absolute (can't be DOS-style, as IFS=:)
    5051          test -f "$f" || { { echo "$as_me:5051: error: cannot find input file: $f" >&5
     7090    # Absolute (can't be DOS-style, as IFS=:)
     7091     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    50527092echo "$as_me: error: cannot find input file: $f" >&2;}
    50537093   { (exit 1); exit 1; }; }
    5054          echo $f;;
     7094     echo "$f";;
    50557095      *) # Relative
    5056         if test -f "$f"; then
    5057            # Build tree
    5058            echo $f
    5059         elif test -f "$srcdir/$f"; then
    5060            # Source tree
    5061            echo $srcdir/$f
    5062         else
    5063            # /dev/null tree
    5064            { { echo "$as_me:5064: error: cannot find input file: $f" >&5
     7096    if test -f "$f"; then
     7097       # Build tree
     7098       echo "$f"
     7099    elif test -f "$srcdir/$f"; then
     7100       # Source tree
     7101       echo "$srcdir/$f"
     7102    else
     7103       # /dev/null tree
     7104       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    50657105echo "$as_me: error: cannot find input file: $f" >&2;}
    50667106   { (exit 1); exit 1; }; }
    5067         fi;;
     7107    fi;;
    50687108      esac
    50697109    done` || { (exit 1); exit 1; }
    5070 EOF
    5071 cat >>$CONFIG_STATUS <<EOF
     7110_ACEOF
     7111cat >>$CONFIG_STATUS <<_ACEOF
    50727112  sed "$ac_vpsub
    50737113$extrasub
    5074 EOF
    5075 cat >>$CONFIG_STATUS <<\EOF
     7114_ACEOF
     7115cat >>$CONFIG_STATUS <<\_ACEOF
    50767116:t
    50777117/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    50787118s,@configure_input@,$configure_input,;t t
    50797119s,@srcdir@,$ac_srcdir,;t t
     7120s,@abs_srcdir@,$ac_abs_srcdir,;t t
    50807121s,@top_srcdir@,$ac_top_srcdir,;t t
     7122s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
     7123s,@builddir@,$ac_builddir,;t t
     7124s,@abs_builddir@,$ac_abs_builddir,;t t
     7125s,@top_builddir@,$ac_top_builddir,;t t
     7126s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    50817127s,@INSTALL@,$ac_INSTALL,;t t
    50827128" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     
    50907136
    50917137done
    5092 EOF
    5093 cat >>$CONFIG_STATUS <<\EOF
     7138_ACEOF
     7139cat >>$CONFIG_STATUS <<\_ACEOF
    50947140
    50957141#
     
    51017147#
    51027148# ac_d sets the value in "#define NAME VALUE" lines.
    5103 ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    5104 ac_dB='[    ].*$,\1#\2'
     7149ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
     7150ac_dB='[     ].*$,\1#\2'
    51057151ac_dC=' '
    51067152ac_dD=',;t'
    51077153# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    5108 ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     7154ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    51097155ac_uB='$,\1#\2define\3'
    51107156ac_uC=' '
     
    51157161  case $ac_file in
    51167162  - | *:- | *:-:* ) # input from stdin
    5117         cat >$tmp/stdin
    5118         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5119         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7163    cat >$tmp/stdin
     7164    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7165    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    51207166  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5121         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7167    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    51227168  * )   ac_file_in=$ac_file.in ;;
    51237169  esac
    51247170
    5125   test x"$ac_file" != x- && { echo "$as_me:5125: creating $ac_file" >&5
     7171  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    51267172echo "$as_me: creating $ac_file" >&6;}
    51277173
     
    51337179      -) echo $tmp/stdin ;;
    51347180      [\\/$]*)
    5135         # Absolute (can't be DOS-style, as IFS=:)
    5136          test -f "$f" || { { echo "$as_me:5136: error: cannot find input file: $f" >&5
     7181    # Absolute (can't be DOS-style, as IFS=:)
     7182     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    51377183echo "$as_me: error: cannot find input file: $f" >&2;}
    51387184   { (exit 1); exit 1; }; }
    5139          echo $f;;
     7185     # Do quote $f, to prevent DOS paths from being IFS'd.
     7186     echo "$f";;
    51407187      *) # Relative
    5141         if test -f "$f"; then
    5142            # Build tree
    5143            echo $f
    5144         elif test -f "$srcdir/$f"; then
    5145            # Source tree
    5146            echo $srcdir/$f
    5147         else
    5148            # /dev/null tree
    5149            { { echo "$as_me:5149: error: cannot find input file: $f" >&5
     7188    if test -f "$f"; then
     7189       # Build tree
     7190       echo "$f"
     7191    elif test -f "$srcdir/$f"; then
     7192       # Source tree
     7193       echo "$srcdir/$f"
     7194    else
     7195       # /dev/null tree
     7196       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    51507197echo "$as_me: error: cannot find input file: $f" >&2;}
    51517198   { (exit 1); exit 1; }; }
    5152         fi;;
     7199    fi;;
    51537200      esac
    51547201    done` || { (exit 1); exit 1; }
    51557202  # Remove the trailing spaces.
    5156   sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
    5157 
    5158 EOF
     7203  sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
     7204
     7205_ACEOF
    51597206
    51607207# Transform confdefs.h into two sed scripts, `conftest.defines' and
     
    51727219# 0-ary CPP macros) applies to n-ary macro definitions.
    51737220# See the Autoconf documentation for `clear'.
    5174 cat >confdef2sed.sed <<\EOF
     7221cat >confdef2sed.sed <<\_ACEOF
    51757222s/[\\&,]/\\&/g
    51767223s,[\\$`],\\&,g
    51777224t clear
    51787225: clear
    5179 s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
     7226s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    51807227t end
    5181 s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     7228s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    51827229: end
    5183 EOF
     7230_ACEOF
    51847231# If some macros were called several times there might be several times
    51857232# the same #defines, which is useless.  Nevertheless, we may not want to
     
    51927239# example, in the case of _POSIX_SOURCE, which is predefined and required
    51937240# on some systems where configure will not decide to define it.
    5194 cat >>conftest.undefs <<\EOF
    5195 s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    5196 EOF
     7241cat >>conftest.undefs <<\_ACEOF
     7242s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     7243_ACEOF
    51977244
    51987245# Break up conftest.defines because some shells have a limit on the size
    51997246# of here documents, and old seds have small limits too (100 cmds).
    52007247echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    5201 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     7248echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    52027249echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    52037250echo '  :' >>$CONFIG_STATUS
     
    52087255  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    52097256  # Speed up: don't consider the non `#define' lines.
    5210   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
     7257  echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
    52117258  # Work around the forget-to-reset-the-flag bug.
    52127259  echo 't clr' >>$CONFIG_STATUS
     
    52237270done
    52247271rm -f conftest.defines
    5225 echo '  fi # egrep' >>$CONFIG_STATUS
     7272echo '  fi # grep' >>$CONFIG_STATUS
    52267273echo >>$CONFIG_STATUS
    52277274
     
    52357282  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    52367283  # Speed up: don't consider the non `#undef'
    5237   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     7284  echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    52387285  # Work around the forget-to-reset-the-flag bug.
    52397286  echo 't clr' >>$CONFIG_STATUS
     
    52517298rm -f conftest.undefs
    52527299
    5253 cat >>$CONFIG_STATUS <<\EOF
     7300cat >>$CONFIG_STATUS <<\_ACEOF
    52547301  # Let's still pretend it is `configure' which instantiates (i.e., don't
    52557302  # use $as_me), people would be surprised to read:
    5256   #    /* config.h.  Generated automatically by config.status.  */
     7303  #    /* config.h.  Generated by config.status.  */
    52577304  if test x"$ac_file" = x-; then
    5258     echo "/* Generated automatically by configure.  */" >$tmp/config.h
     7305    echo "/* Generated by configure.  */" >$tmp/config.h
    52597306  else
    5260     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     7307    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    52617308  fi
    52627309  cat $tmp/in >>$tmp/config.h
    52637310  rm -f $tmp/in
    52647311  if test x"$ac_file" != x-; then
    5265     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
    5266       { echo "$as_me:5266: $ac_file is unchanged" >&5
     7312    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     7313      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    52677314echo "$as_me: $ac_file is unchanged" >&6;}
    52687315    else
    5269       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    5270          X"$ac_file" : 'X\(//\)[^/]' \| \
    5271          X"$ac_file" : 'X\(//\)$' \| \
    5272          X"$ac_file" : 'X\(/\)' \| \
    5273          .     : '\(.\)' 2>/dev/null ||
     7316      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7317$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7318     X"$ac_file" : 'X\(//\)[^/]' \| \
     7319     X"$ac_file" : 'X\(//\)$' \| \
     7320     X"$ac_file" : 'X\(/\)' \| \
     7321     .     : '\(.\)' 2>/dev/null ||
    52747322echo X"$ac_file" |
    52757323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    52787326      /^X\(\/\).*/{ s//\1/; q; }
    52797327      s/.*/./; q'`
    5280       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    5281         { case "$ac_dir" in
    5282   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    5283   *)                      as_incr_dir=.;;
    5284 esac
    5285 as_dummy="$ac_dir"
    5286 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    5287   case $as_mkdir_dir in
    5288     # Skip DOS drivespec
    5289     ?:) as_incr_dir=$as_mkdir_dir ;;
    5290     *)
    5291       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5292       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5293     ;;
    5294   esac
    5295 done; }
    5296 
    5297       fi
     7328      { if $as_mkdir_p; then
     7329    mkdir -p "$ac_dir"
     7330  else
     7331    as_dir="$ac_dir"
     7332    as_dirs=
     7333    while test ! -d "$as_dir"; do
     7334      as_dirs="$as_dir $as_dirs"
     7335      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7337     X"$as_dir" : 'X\(//\)[^/]' \| \
     7338     X"$as_dir" : 'X\(//\)$' \| \
     7339     X"$as_dir" : 'X\(/\)' \| \
     7340     .     : '\(.\)' 2>/dev/null ||
     7341echo X"$as_dir" |
     7342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7343      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7344      /^X\(\/\/\)$/{ s//\1/; q; }
     7345      /^X\(\/\).*/{ s//\1/; q; }
     7346      s/.*/./; q'`
     7347    done
     7348    test ! -n "$as_dirs" || mkdir $as_dirs
     7349  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7350echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7351   { (exit 1); exit 1; }; }; }
     7352
    52987353      rm -f $ac_file
    52997354      mv $tmp/config.h $ac_file
     
    53047359  fi
    53057360done
    5306 EOF
    5307 cat >>$CONFIG_STATUS <<\EOF
     7361_ACEOF
     7362cat >>$CONFIG_STATUS <<\_ACEOF
    53087363
    53097364#
     
    53137368  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    53147369  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5315 
     7370  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
     7371$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7372     X"$ac_dest" : 'X\(//\)[^/]' \| \
     7373     X"$ac_dest" : 'X\(//\)$' \| \
     7374     X"$ac_dest" : 'X\(/\)' \| \
     7375     .     : '\(.\)' 2>/dev/null ||
     7376echo X"$ac_dest" |
     7377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7378      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7379      /^X\(\/\/\)$/{ s//\1/; q; }
     7380      /^X\(\/\).*/{ s//\1/; q; }
     7381      s/.*/./; q'`
     7382  { if $as_mkdir_p; then
     7383    mkdir -p "$ac_dir"
     7384  else
     7385    as_dir="$ac_dir"
     7386    as_dirs=
     7387    while test ! -d "$as_dir"; do
     7388      as_dirs="$as_dir $as_dirs"
     7389      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7390$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7391     X"$as_dir" : 'X\(//\)[^/]' \| \
     7392     X"$as_dir" : 'X\(//\)$' \| \
     7393     X"$as_dir" : 'X\(/\)' \| \
     7394     .     : '\(.\)' 2>/dev/null ||
     7395echo X"$as_dir" |
     7396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7397      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7398      /^X\(\/\/\)$/{ s//\1/; q; }
     7399      /^X\(\/\).*/{ s//\1/; q; }
     7400      s/.*/./; q'`
     7401    done
     7402    test ! -n "$as_dirs" || mkdir $as_dirs
     7403  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7404echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7405   { (exit 1); exit 1; }; }; }
     7406
     7407  ac_builddir=.
     7408
     7409if test "$ac_dir" != .; then
     7410  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7411  # A "../" for each directory in $ac_dir_suffix.
     7412  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7413else
     7414  ac_dir_suffix= ac_top_builddir=
     7415fi
     7416
     7417case $srcdir in
     7418  .)  # No --srcdir option.  We are building in place.
     7419    ac_srcdir=.
     7420    if test -z "$ac_top_builddir"; then
     7421       ac_top_srcdir=.
     7422    else
     7423       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7424    fi ;;
     7425  [\\/]* | ?:[\\/]* )  # Absolute path.
     7426    ac_srcdir=$srcdir$ac_dir_suffix;
     7427    ac_top_srcdir=$srcdir ;;
     7428  *) # Relative path.
     7429    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7430    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7431esac
     7432
     7433# Do not use `cd foo && pwd` to compute absolute paths, because
     7434# the directories may not exist.
     7435case `pwd` in
     7436.) ac_abs_builddir="$ac_dir";;
     7437*)
     7438  case "$ac_dir" in
     7439  .) ac_abs_builddir=`pwd`;;
     7440  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     7441  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     7442  esac;;
     7443esac
     7444case $ac_abs_builddir in
     7445.) ac_abs_top_builddir=${ac_top_builddir}.;;
     7446*)
     7447  case ${ac_top_builddir}. in
     7448  .) ac_abs_top_builddir=$ac_abs_builddir;;
     7449  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     7450  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     7451  esac;;
     7452esac
     7453case $ac_abs_builddir in
     7454.) ac_abs_srcdir=$ac_srcdir;;
     7455*)
     7456  case $ac_srcdir in
     7457  .) ac_abs_srcdir=$ac_abs_builddir;;
     7458  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     7459  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     7460  esac;;
     7461esac
     7462case $ac_abs_builddir in
     7463.) ac_abs_top_srcdir=$ac_top_srcdir;;
     7464*)
     7465  case $ac_top_srcdir in
     7466  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     7467  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     7468  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     7469  esac;;
     7470esac
     7471
     7472
     7473  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
     7474echo "$as_me: executing $ac_dest commands" >&6;}
    53167475  case $ac_dest in
    53177476    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
    53187477  esac
    53197478done
    5320 EOF
    5321 
    5322 cat >>$CONFIG_STATUS <<\EOF
     7479_ACEOF
     7480
     7481cat >>$CONFIG_STATUS <<\_ACEOF
    53237482
    53247483{ (exit 0); exit 0; }
    5325 EOF
     7484_ACEOF
    53267485chmod +x $CONFIG_STATUS
    53277486ac_clean_files=$ac_clean_files_save
     7487
    53287488
    53297489# configure is writing to config.log, and then calls config.status.
     
    53377497if test "$no_create" != yes; then
    53387498  ac_cs_success=:
     7499  ac_config_status_args=
     7500  test "$silent" = yes &&
     7501    ac_config_status_args="$ac_config_status_args --quiet"
    53397502  exec 5>/dev/null
    5340   $SHELL $CONFIG_STATUS || ac_cs_success=false
     7503  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
    53417504  exec 5>>config.log
    53427505  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  • trunk/indexers/mg/configure.in

    r7882 r10191  
    7777if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    7878  AC_MSG_RESULT(yes)
    79   LIBOBJS="$LIBOBJS gmalloc.o"
     79  AC_LIBOBJ(gmalloc)
    8080  AC_DEFINE(HAVE_VALLOC)
    8181else
     
    8383  AC_CHECK_FUNCS(valloc)
    8484fi
     85
     86# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
     87# a non-standard Path
     88AC_MSG_CHECKING(for Apple MacOS X/Darwin)
     89if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
     90  AC_MSG_RESULT(yes)
     91  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
     92  JNISUFFIX="jnilib"
     93  JNIFLAGS="-dynamiclib -fno-common -single_module"
     94  LDFLAGS="-framework JavaVM"
     95else
     96  AC_MSG_RESULT(no)
     97  JNIINC=""
     98  JNISUFFIX="so"
     99  JNIFLAGS="-shared"
     100fi
     101AC_SUBST(JNIINC)
     102AC_SUBST(JNISUFFIX)
     103AC_SUBST(JNIFLAGS)
    85104
    86105fp_WITH_DMALLOC
     
    90109if test "$ac_cv_func_alloca" = 'no'; then
    91110dnl    support functions for alloca.c
    92   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     111  AC_LIBOBJ(xmalloc)
     112  AC_LIBOBJ(error)
    93113fi
    94114
  • trunk/indexers/mg/jni/Makefile.in

    r8208 r10191  
    2626AWK = @AWK@
    2727
     28JNIFLAGS=@JNIFLAGS@
     29JNISUFFIX=@JNISUFFIX@
     30JNIINC=@JNIINC@
    2831datadir = $(prefix)/share
    2932libexecdir = $(exec_prefix)/libexec
     
    3942    $(CCOMPILE) $<
    4043
    41 
    42 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
     44# can we get rid of JAVA_HOME from here??
     45INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(JNIINC)
    4346
    4447all: compile link
     
    4851
    4952link:
    50     $(CC) $(LDFLAGS) -shared -o libmgjni.so MGWrapperImpl.o $(QUERY_LIBS)
    51     $(CC) $(LDFLAGS) -shared -o libmgpassjni.so  MGPassesWrapperImpl.o  $(PASSES_LIBS)
     53    $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgjni.$(JNISUFFIX) MGWrapperImpl.o $(QUERY_LIBS)
     54    $(CC) $(LDFLAGS)  $(JNIFLAGS) -o libmgpassjni.$(JNISUFFIX)  MGPassesWrapperImpl.o  $(PASSES_LIBS)
    5255
    5356clean:
    54     rm -rf *.o libmgjni.so libmgpassjni.so
     57    rm -rf *.o libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX)
    5558
    5659distclean: clean
     
    5962install:
    6063    ../mkinstalldirs $(libdir); \
    61     cp libmgjni.so libmgpassjni.so  $(libdir)/;
     64    cp libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX)  $(libdir)/;
    6265
    6366
Note: See TracChangeset for help on using the changeset viewer.